diff --git a/.idea/gradle.xml b/.idea/gradle.xml new file mode 100644 index 0000000000..fd3f0cd70a --- /dev/null +++ b/.idea/gradle.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/libraries/KotlinJavaRuntime.xml b/.idea/libraries/KotlinJavaRuntime.xml new file mode 100644 index 0000000000..6b22a67680 --- /dev/null +++ b/.idea/libraries/KotlinJavaRuntime.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 87bf9c1edd..01c4410510 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -48,7 +48,7 @@ - + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml index da46863d0e..23280972f6 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -2,73 +2,16 @@ - - - - + - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -112,12 +55,54 @@ - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + \ No newline at end of file diff --git a/.idea/modules/extract.iml b/.idea/modules/extract.iml index 7049f38597..c4d0698c4d 100644 --- a/.idea/modules/extract.iml +++ b/.idea/modules/extract.iml @@ -30,5 +30,6 @@ + \ No newline at end of file diff --git a/.idea/modules/generator.iml b/.idea/modules/generator.iml index c9edaff303..07d118af6a 100644 --- a/.idea/modules/generator.iml +++ b/.idea/modules/generator.iml @@ -21,5 +21,6 @@ + \ No newline at end of file diff --git a/.idea/modules/root.iml b/.idea/modules/root.iml index 62f55ca9c2..f30ae397cf 100644 --- a/.idea/modules/root.iml +++ b/.idea/modules/root.iml @@ -1,11 +1,12 @@ - - - - - - - - - - + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules/templates/templates.assimp.iml b/.idea/modules/templates/templates.assimp.iml index 05651ac555..d69170375d 100644 --- a/.idea/modules/templates/templates.assimp.iml +++ b/.idea/modules/templates/templates.assimp.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.bgfx.iml b/.idea/modules/templates/templates.bgfx.iml index 789c303256..de26e9284f 100644 --- a/.idea/modules/templates/templates.bgfx.iml +++ b/.idea/modules/templates/templates.bgfx.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.core.iml b/.idea/modules/templates/templates.core.iml index a8b0ba2eab..c177810374 100644 --- a/.idea/modules/templates/templates.core.iml +++ b/.idea/modules/templates/templates.core.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.cuda.iml b/.idea/modules/templates/templates.cuda.iml index d4d09c167a..4c42fc558e 100644 --- a/.idea/modules/templates/templates.cuda.iml +++ b/.idea/modules/templates/templates.cuda.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.egl.iml b/.idea/modules/templates/templates.egl.iml index 683087e1db..8c61976768 100644 --- a/.idea/modules/templates/templates.egl.iml +++ b/.idea/modules/templates/templates.egl.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.fmod.iml b/.idea/modules/templates/templates.fmod.iml index 87f60ab7cf..33bd36ef25 100644 --- a/.idea/modules/templates/templates.fmod.iml +++ b/.idea/modules/templates/templates.fmod.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.freetype.iml b/.idea/modules/templates/templates.freetype.iml index 86cd3c7ec0..a51dc40029 100644 --- a/.idea/modules/templates/templates.freetype.iml +++ b/.idea/modules/templates/templates.freetype.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.glfw.iml b/.idea/modules/templates/templates.glfw.iml index 3b3db20d9f..d928863b48 100644 --- a/.idea/modules/templates/templates.glfw.iml +++ b/.idea/modules/templates/templates.glfw.iml @@ -15,5 +15,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.harfbuzz.iml b/.idea/modules/templates/templates.harfbuzz.iml index 46dc641d72..5d50911dc7 100644 --- a/.idea/modules/templates/templates.harfbuzz.iml +++ b/.idea/modules/templates/templates.harfbuzz.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.hwloc.iml b/.idea/modules/templates/templates.hwloc.iml index 2cf5911d3b..682af097b6 100644 --- a/.idea/modules/templates/templates.hwloc.iml +++ b/.idea/modules/templates/templates.hwloc.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.jawt.iml b/.idea/modules/templates/templates.jawt.iml index 0ac4c5fa4b..f62a91d05f 100644 --- a/.idea/modules/templates/templates.jawt.iml +++ b/.idea/modules/templates/templates.jawt.iml @@ -12,5 +12,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.jemalloc.iml b/.idea/modules/templates/templates.jemalloc.iml index e24d014ab4..3efad7bda6 100644 --- a/.idea/modules/templates/templates.jemalloc.iml +++ b/.idea/modules/templates/templates.jemalloc.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.ktx.iml b/.idea/modules/templates/templates.ktx.iml index 436a128300..5ce56124a7 100644 --- a/.idea/modules/templates/templates.ktx.iml +++ b/.idea/modules/templates/templates.ktx.iml @@ -12,5 +12,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.libdivide.iml b/.idea/modules/templates/templates.libdivide.iml index 59bcd16ac2..6e954bd1bf 100644 --- a/.idea/modules/templates/templates.libdivide.iml +++ b/.idea/modules/templates/templates.libdivide.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.llvm.iml b/.idea/modules/templates/templates.llvm.iml index d2accc6267..99a12fcdca 100644 --- a/.idea/modules/templates/templates.llvm.iml +++ b/.idea/modules/templates/templates.llvm.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.lmdb.iml b/.idea/modules/templates/templates.lmdb.iml index f25d30560b..8d66c8dcd0 100644 --- a/.idea/modules/templates/templates.lmdb.iml +++ b/.idea/modules/templates/templates.lmdb.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.lz4.iml b/.idea/modules/templates/templates.lz4.iml index e61160f5b3..8e87f958b5 100644 --- a/.idea/modules/templates/templates.lz4.iml +++ b/.idea/modules/templates/templates.lz4.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.meow.iml b/.idea/modules/templates/templates.meow.iml index 03a3f1cd4f..9954d7d514 100644 --- a/.idea/modules/templates/templates.meow.iml +++ b/.idea/modules/templates/templates.meow.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.meshoptimizer.iml b/.idea/modules/templates/templates.meshoptimizer.iml index c92fb26e45..5ce1529425 100644 --- a/.idea/modules/templates/templates.meshoptimizer.iml +++ b/.idea/modules/templates/templates.meshoptimizer.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.nanovg.iml b/.idea/modules/templates/templates.nanovg.iml index c3d2a5619e..13a988c129 100644 --- a/.idea/modules/templates/templates.nanovg.iml +++ b/.idea/modules/templates/templates.nanovg.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.nfd.iml b/.idea/modules/templates/templates.nfd.iml index 067913257e..904052c6d7 100644 --- a/.idea/modules/templates/templates.nfd.iml +++ b/.idea/modules/templates/templates.nfd.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.nuklear.iml b/.idea/modules/templates/templates.nuklear.iml index a79e0f9ce5..f329720c2a 100644 --- a/.idea/modules/templates/templates.nuklear.iml +++ b/.idea/modules/templates/templates.nuklear.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.odbc.iml b/.idea/modules/templates/templates.odbc.iml index b8e20fedcd..8793705eb0 100644 --- a/.idea/modules/templates/templates.odbc.iml +++ b/.idea/modules/templates/templates.odbc.iml @@ -12,5 +12,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.openal.iml b/.idea/modules/templates/templates.openal.iml index 29dc1b4b5d..ef64b6d799 100644 --- a/.idea/modules/templates/templates.openal.iml +++ b/.idea/modules/templates/templates.openal.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.opencl.iml b/.idea/modules/templates/templates.opencl.iml index 63a625b3db..ebec3c34fc 100644 --- a/.idea/modules/templates/templates.opencl.iml +++ b/.idea/modules/templates/templates.opencl.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.opengl.iml b/.idea/modules/templates/templates.opengl.iml index 11dc9a117a..a1813135be 100644 --- a/.idea/modules/templates/templates.opengl.iml +++ b/.idea/modules/templates/templates.opengl.iml @@ -12,5 +12,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.opengles.iml b/.idea/modules/templates/templates.opengles.iml index f072288e41..4c89db4c5f 100644 --- a/.idea/modules/templates/templates.opengles.iml +++ b/.idea/modules/templates/templates.opengles.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.openvr.iml b/.idea/modules/templates/templates.openvr.iml index 8dbdfa03c2..75860e7f56 100644 --- a/.idea/modules/templates/templates.openvr.iml +++ b/.idea/modules/templates/templates.openvr.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.openxr.iml b/.idea/modules/templates/templates.openxr.iml index 058b7b14ae..2021230714 100644 --- a/.idea/modules/templates/templates.openxr.iml +++ b/.idea/modules/templates/templates.openxr.iml @@ -15,5 +15,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.opus.iml b/.idea/modules/templates/templates.opus.iml index 83f42490f0..3a08456ecf 100644 --- a/.idea/modules/templates/templates.opus.iml +++ b/.idea/modules/templates/templates.opus.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.ovr.iml b/.idea/modules/templates/templates.ovr.iml index 692ece6218..5661ddb766 100644 --- a/.idea/modules/templates/templates.ovr.iml +++ b/.idea/modules/templates/templates.ovr.iml @@ -12,5 +12,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.par.iml b/.idea/modules/templates/templates.par.iml index 2c61197602..49b38f2831 100644 --- a/.idea/modules/templates/templates.par.iml +++ b/.idea/modules/templates/templates.par.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.remotery.iml b/.idea/modules/templates/templates.remotery.iml index b133de545f..82578e8908 100644 --- a/.idea/modules/templates/templates.remotery.iml +++ b/.idea/modules/templates/templates.remotery.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.rpmalloc.iml b/.idea/modules/templates/templates.rpmalloc.iml index 37a4a0cdd7..9d66adcd9a 100644 --- a/.idea/modules/templates/templates.rpmalloc.iml +++ b/.idea/modules/templates/templates.rpmalloc.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.shaderc.iml b/.idea/modules/templates/templates.shaderc.iml index f3c56b2b4a..496b14e42b 100644 --- a/.idea/modules/templates/templates.shaderc.iml +++ b/.idea/modules/templates/templates.shaderc.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.spvc.iml b/.idea/modules/templates/templates.spvc.iml index 72d9691c8c..f4d434bd0a 100644 --- a/.idea/modules/templates/templates.spvc.iml +++ b/.idea/modules/templates/templates.spvc.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.sse.iml b/.idea/modules/templates/templates.sse.iml index c7b9f11bec..b160a35046 100644 --- a/.idea/modules/templates/templates.sse.iml +++ b/.idea/modules/templates/templates.sse.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.stb.iml b/.idea/modules/templates/templates.stb.iml index dd7365cea9..3a844bf6b1 100644 --- a/.idea/modules/templates/templates.stb.iml +++ b/.idea/modules/templates/templates.stb.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.tinyexr.iml b/.idea/modules/templates/templates.tinyexr.iml index b9abaa92bf..28b553dc3b 100644 --- a/.idea/modules/templates/templates.tinyexr.iml +++ b/.idea/modules/templates/templates.tinyexr.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.tinyfd.iml b/.idea/modules/templates/templates.tinyfd.iml index 97dcf48d0c..12ad9b5711 100644 --- a/.idea/modules/templates/templates.tinyfd.iml +++ b/.idea/modules/templates/templates.tinyfd.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.tootle.iml b/.idea/modules/templates/templates.tootle.iml index fdc8d35d34..3fc21981d6 100644 --- a/.idea/modules/templates/templates.tootle.iml +++ b/.idea/modules/templates/templates.tootle.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.vma.iml b/.idea/modules/templates/templates.vma.iml index eb42028fd0..12650e17db 100644 --- a/.idea/modules/templates/templates.vma.iml +++ b/.idea/modules/templates/templates.vma.iml @@ -12,5 +12,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.vulkan.iml b/.idea/modules/templates/templates.vulkan.iml index 0f9a387e17..7fc87a2960 100644 --- a/.idea/modules/templates/templates.vulkan.iml +++ b/.idea/modules/templates/templates.vulkan.iml @@ -12,5 +12,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.xxhash.iml b/.idea/modules/templates/templates.xxhash.iml index 0225f8f6d5..ab6afcfd46 100644 --- a/.idea/modules/templates/templates.xxhash.iml +++ b/.idea/modules/templates/templates.xxhash.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.yoga.iml b/.idea/modules/templates/templates.yoga.iml index 228f7f6149..9559eb18cf 100644 --- a/.idea/modules/templates/templates.yoga.iml +++ b/.idea/modules/templates/templates.yoga.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/.idea/modules/templates/templates.zstd.iml b/.idea/modules/templates/templates.zstd.iml index 4cfd16cf2e..8d409870ee 100644 --- a/.idea/modules/templates/templates.zstd.iml +++ b/.idea/modules/templates/templates.zstd.iml @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/modules/lwjgl/assimp/src/generated/java/org/lwjgl/assimp/package-info.java b/modules/lwjgl/assimp/src/generated/java/org/lwjgl/assimp/package-info.java index 6482a10f26..f071e2c5e1 100644 --- a/modules/lwjgl/assimp/src/generated/java/org/lwjgl/assimp/package-info.java +++ b/modules/lwjgl/assimp/src/generated/java/org/lwjgl/assimp/package-info.java @@ -3,7 +3,7 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to the Assimp library, a library to import and export various 3d-model-formats including * scene-post-processing to generate missing render data. @@ -14,7 +14,7 @@ *

Written in C++, it is available under a liberal BSD license. Assimp loads all input model formats into one straightforward data structure for further * processing. This feature set is augmented by various post processing tools, including frequently-needed operations such as computing normal and tangent * vectors.

- */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.assimp; - + diff --git a/modules/lwjgl/bgfx/src/generated/java/org/lwjgl/bgfx/package-info.java b/modules/lwjgl/bgfx/src/generated/java/org/lwjgl/bgfx/package-info.java index d17162b047..9111b6db31 100644 --- a/modules/lwjgl/bgfx/src/generated/java/org/lwjgl/bgfx/package-info.java +++ b/modules/lwjgl/bgfx/src/generated/java/org/lwjgl/bgfx/package-info.java @@ -3,7 +3,7 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to the bgfx library. * @@ -22,7 +22,7 @@ * *

The binaries are built from source, at the corresponding commit that was used to build the bgfx library. For example, the latest Windows x64 version of * shaderc can be found under {@code nightly/windows/x64/bgfx-tools/}.

- */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.bgfx; - + diff --git a/modules/lwjgl/core/src/generated/c/org_lwjgl_system_JNI.c b/modules/lwjgl/core/src/generated/c/org_lwjgl_system_JNI.c index 0d9084c843..cec6fc9763 100644 --- a/modules/lwjgl/core/src/generated/c/org_lwjgl_system_JNI.c +++ b/modules/lwjgl/core/src/generated/c/org_lwjgl_system_JNI.c @@ -3,14 +3,14 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ -#include "common_tools.h" +#include "common_tools.h" #ifdef LWJGL_WINDOWS #define APIENTRY __stdcall #else #define APIENTRY #endif - + JNIEXPORT jbyte JNICALL Java_org_lwjgl_system_JNI_invokePB__JJ(JNIEnv *__env, jclass clazz, jlong param0, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jbyte (*) (uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0); @@ -239,14 +239,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePJI__JJIJ(JNIEnv *__env, UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, jlong, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePNI__JIJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, jint, long))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (long)param2); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePNI__JJIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, long, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (long)param1, param2); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPI__IJJJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jlong param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (*) (jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, (uintptr_t)param2); @@ -263,14 +255,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPI__JJIJ(JNIEnv *__env, UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPI__JJZJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jboolean param2, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, uintptr_t, jboolean))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPI__JZJJ(JNIEnv *__env, jclass clazz, jlong param0, jboolean param1, jlong param2, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, jboolean, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPI__JIIJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlong param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3); @@ -279,22 +263,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPI__JIJIJ(JNIEnv *__env, UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, jint, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, param3); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPI__JIJZJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jboolean param3, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, jint, uintptr_t, jboolean))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, param3); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPI__JIZJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jboolean param2, jlong param3, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, jint, jboolean, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPI__JJIIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, uintptr_t, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, param3); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPI__JJZZJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jboolean param2, jboolean param3, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, uintptr_t, jboolean, jboolean))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, param3); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPI__JIIIJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jint param3, jlong param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, (uintptr_t)param4); @@ -303,10 +271,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPI__JIIJIJ(JNIEnv *__env UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, jint, jint, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, param4); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPI__JIJIIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jint param3, jint param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, jint, uintptr_t, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, param3, param4); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPI__IJIJIZJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jint param2, jlong param3, jint param4, jboolean param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (*) (jint, uintptr_t, jint, uintptr_t, jint, jboolean))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, param2, (uintptr_t)param3, param4, param5); @@ -323,18 +287,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokeCPUI__SJBJ(JNIEnv *__env, UNUSED_PARAMS(__env, clazz) return ((jint (*) (uint16_t, uintptr_t, uint8_t))(uintptr_t)__functionAddress)((uint16_t)param0, (uintptr_t)param1, (uint8_t)param2); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePCPI__JSJJ(JNIEnv *__env, jclass clazz, jlong param0, jshort param1, jlong param2, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, uint16_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uint16_t)param1, (uintptr_t)param2); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePNNI__JJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, long, long))(uintptr_t)__functionAddress)((uintptr_t)param0, (long)param1, (long)param2); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePNPI__JJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, long, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (long)param1, (uintptr_t)param2); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPCI__JJSJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jshort param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, uintptr_t, uint16_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uint16_t)param2); @@ -343,26 +295,10 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPJI__JJJJ(JNIEnv *__env, UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, uintptr_t, jlong))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPNI__JJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, uintptr_t, long))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (long)param2); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPI__JJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePNPI__JJIJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, long, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (long)param1, param2, (uintptr_t)param3); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePNPI__JJJIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jint param3, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, long, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (long)param1, (uintptr_t)param2, param3); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPNI__JIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, jint, uintptr_t, long))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (long)param3); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPI__JIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3); @@ -375,10 +311,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPI__JJJIJ(JNIEnv *__env UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePNNI__JJJIIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jint param3, jint param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, long, long, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (long)param1, (long)param2, param3, param4); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPI__JIIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlong param3, jlong param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, (uintptr_t)param4); @@ -387,10 +319,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPI__JIJIJJ(JNIEnv *__en UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, jint, uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, param3, (uintptr_t)param4); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPI__JIJJIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jint param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, jint, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, param4); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPI__JJIIJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jlong param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, uintptr_t, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, param3, (uintptr_t)param4); @@ -399,18 +327,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPI__JJIJIJ(JNIEnv *__en UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, uintptr_t, jint, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, param4); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPI__JJJIIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jint param3, jint param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, uintptr_t, uintptr_t, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, param4); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPI__JIIIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jint param3, jlong param4, jlong param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, jint, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, (uintptr_t)param4, (uintptr_t)param5); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPI__JIJIJIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jint param3, jlong param4, jint param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, jint, uintptr_t, jint, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, param3, (uintptr_t)param4, param5); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPI__JJIJIIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jint param4, jint param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, uintptr_t, jint, uintptr_t, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, param4, param5); @@ -419,34 +335,10 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPI__JJJIZFJ(JNIEnv *__e UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, uintptr_t, uintptr_t, jint, jboolean, jfloat))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, param4, param5); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPI__JIIIIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jint param3, jint param4, jlong param5, jlong param6, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, jint, jint, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, (uintptr_t)param5, (uintptr_t)param6); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPI__JIIIJJIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jint param3, jlong param4, jlong param5, jint param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, jint, jint, jint, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, (uintptr_t)param4, (uintptr_t)param5, param6); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPI__JIIJIJIIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlong param3, jint param4, jlong param5, jint param6, jint param7, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, jint, jint, uintptr_t, jint, uintptr_t, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, param4, (uintptr_t)param5, param6, param7); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePNPPI__JJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, long, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (long)param1, (uintptr_t)param2, (uintptr_t)param3); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPNNI__JJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, uintptr_t, long, long))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (long)param2, (long)param3); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPNPI__JJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, uintptr_t, long, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (long)param2, (uintptr_t)param3); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPNI__JJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, uintptr_t, uintptr_t, long))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (long)param3); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPI__JJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)param3); @@ -455,14 +347,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePNNPI__JJIJJJ(JNIEnv *__e UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, long, jint, long, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (long)param1, param2, (long)param3, (uintptr_t)param4); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPNI__JJIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jlong param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, uintptr_t, jint, uintptr_t, long))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (long)param4); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPI__JIJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jlong param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPI__JJIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jlong param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)param4); @@ -475,34 +359,14 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPI__JJJJIJ(JNIEnv *__e UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, uintptr_t, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)param3, param4); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPI__JIIJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlong param3, jlong param4, jlong param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, jint, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPI__JJIIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jlong param4, jlong param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, uintptr_t, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, param3, (uintptr_t)param4, (uintptr_t)param5); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPI__JJIJIJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jint param4, jlong param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, uintptr_t, jint, uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, param4, (uintptr_t)param5); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPI__JJIJJIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jlong param4, jint param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)param4, param5); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPI__JJJIIJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jint param3, jint param4, jlong param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, uintptr_t, uintptr_t, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, param4, (uintptr_t)param5); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPI__JJJJIIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jint param4, jint param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, uintptr_t, uintptr_t, uintptr_t, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)param3, param4, param5); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPI__JIIIJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jint param3, jlong param4, jlong param5, jlong param6, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, jint, jint, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPI__JIIJJJIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlong param3, jlong param4, jlong param5, jint param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, jint, jint, uintptr_t, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5, param6); @@ -511,98 +375,18 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPI__JJJJIIIIJ(JNIEnv * UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, uintptr_t, uintptr_t, uintptr_t, jint, jint, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)param3, param4, param5, param6, param7); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPI__JIIJIJJIIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlong param3, jint param4, jlong param5, jlong param6, jint param7, jint param8, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, jint, jint, uintptr_t, jint, uintptr_t, uintptr_t, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, param4, (uintptr_t)param5, (uintptr_t)param6, param7, param8); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePNNPPI__JJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, long, long, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (long)param1, (long)param2, (uintptr_t)param3, (uintptr_t)param4); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPNNPI__JJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, uintptr_t, long, long, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (long)param2, (long)param3, (uintptr_t)param4); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPNNI__JJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, uintptr_t, uintptr_t, long, long))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (long)param3, (long)param4); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPNI__JJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, uintptr_t, uintptr_t, uintptr_t, long))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)param3, (long)param4); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPPI__JJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePJPPNI__JIJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, jint, jlong, uintptr_t, uintptr_t, long))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, (uintptr_t)param4, (long)param5); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPNPPI__JIJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, jint, uintptr_t, long, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (long)param3, (uintptr_t)param4, (uintptr_t)param5); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPNPPI__JJJIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jint param3, jlong param4, jlong param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, uintptr_t, long, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (long)param2, param3, (uintptr_t)param4, (uintptr_t)param5); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPNJI__JIJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, jint, uintptr_t, uintptr_t, long, jlong))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, (long)param4, param5); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPNNI__JIJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, jint, uintptr_t, uintptr_t, long, long))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, (long)param4, (long)param5); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPNPI__JIJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, jint, uintptr_t, uintptr_t, long, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, (long)param4, (uintptr_t)param5); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPNI__JIJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, long))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4, (long)param5); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPNI__JJIJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jlong param4, jlong param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, long))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)param4, (long)param5); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPPI__JIJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPPI__JJIJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jlong param4, jlong param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPPI__JJJIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jint param3, jlong param4, jlong param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, (uintptr_t)param4, (uintptr_t)param5); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPPI__JJJJJIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jint param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4, param5); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePNPPPI__JIIJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlong param3, jlong param4, jlong param5, jlong param6, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, jint, jint, long, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (long)param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPPI__JJIIJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jlong param4, jlong param5, jlong param6, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, uintptr_t, jint, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPPI__JJIJIJIJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jint param4, jlong param5, jint param6, jlong param7, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, uintptr_t, jint, uintptr_t, jint, uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, param4, (uintptr_t)param5, param6, (uintptr_t)param7); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPPI__JJJIJIIJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jint param3, jlong param4, jint param5, jint param6, jlong param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, (uintptr_t)param4, param5, param6, (uintptr_t)param7); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPPI__JJJIIIFJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jint param3, jint param4, jint param5, jfloat param6, jlong param7, jlong param8, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, uintptr_t, uintptr_t, jint, jint, jint, jfloat, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, param4, param5, param6, (uintptr_t)param7, (uintptr_t)param8); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPPPI__JJJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5); @@ -611,14 +395,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePJJJJPI__JJJJJIJJ(JNIEnv UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, jlong, jlong, jlong, jlong, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, param5, (uintptr_t)param6); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPNPPPI__JIJJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong param6, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, jint, uintptr_t, long, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (long)param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPPPI__JIJJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong param6, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPPPI__JJJJJJIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jlong param5, jint param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5, param6); @@ -627,14 +403,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePNNPPPI__JJJIIJJJJ(JNIEnv UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, long, long, jint, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (long)param1, (long)param2, param3, param4, (uintptr_t)param5, (uintptr_t)param6, (uintptr_t)param7); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPPPI__JIIJJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlong param3, jlong param4, jlong param5, jlong param6, jlong param7, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, jint, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6, (uintptr_t)param7); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPPPPI__JJJIJFFJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jint param3, jlong param4, jfloat param5, jfloat param6, jlong param7, jlong param8, jlong param9, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (*) (uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, jfloat, jfloat, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, (uintptr_t)param4, param5, param6, (uintptr_t)param7, (uintptr_t)param8, (uintptr_t)param9); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPPPPI__JJJIIJJIJIJIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jint param3, jint param4, jlong param5, jlong param6, jint param7, jlong param8, jint param9, jlong param10, jint param11, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (*) (uintptr_t, uintptr_t, uintptr_t, jint, jint, uintptr_t, uintptr_t, jint, uintptr_t, jint, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, param4, (uintptr_t)param5, (uintptr_t)param6, param7, (uintptr_t)param8, param9, (uintptr_t)param10, param11); @@ -667,10 +435,6 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePPJ__JJIJ(JNIEnv *__env, UNUSED_PARAMS(__env, clazz) return ((jlong (*) (uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2); } -JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokeNN__JJ(JNIEnv *__env, jclass clazz, jlong param0, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return (jlong)((long (*) (long))(uintptr_t)__functionAddress)((long)param0); -} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePN__JJ(JNIEnv *__env, jclass clazz, jlong param0, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return (jlong)((long (*) (uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0); @@ -679,34 +443,10 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePN__JIJ(JNIEnv *__env, j UNUSED_PARAMS(__env, clazz) return (jlong)((long (*) (uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1); } -JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokeNNN__JJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return (jlong)((long (*) (long, long))(uintptr_t)__functionAddress)((long)param0, (long)param1); -} -JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePPN__JJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return (jlong)((long (*) (uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1); -} -JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokeNNNN__JJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return (jlong)((long (*) (long, long, long))(uintptr_t)__functionAddress)((long)param0, (long)param1, (long)param2); -} -JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePNPN__JJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return (jlong)((long (*) (uintptr_t, long, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (long)param1, (uintptr_t)param2); -} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePNPN__JJJIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jint param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return (jlong)((long (*) (uintptr_t, long, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (long)param1, (uintptr_t)param2, param3); } -JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePPNN__JIIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlong param3, jlong param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return (jlong)((long (*) (uintptr_t, jint, jint, uintptr_t, long))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, (long)param4); -} -JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePNPNN__JJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return (jlong)((long (*) (uintptr_t, long, uintptr_t, long))(uintptr_t)__functionAddress)((uintptr_t)param0, (long)param1, (uintptr_t)param2, (long)param3); -} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePNPNPN__JJIIIIIIIJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jint param4, jint param5, jint param6, jint param7, jint param8, jlong param9, jlong param10, jlong param11, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return (jlong)((long (*) (uintptr_t, long, jint, jint, jint, jint, jint, jint, jint, uintptr_t, long, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (long)param1, param2, param3, param4, param5, param6, param7, param8, (uintptr_t)param9, (long)param10, (uintptr_t)param11); @@ -779,10 +519,6 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePJP__JJJ(JNIEnv *__env, UNUSED_PARAMS(__env, clazz) return (jlong)((uintptr_t (*) (uintptr_t, jlong))(uintptr_t)__functionAddress)((uintptr_t)param0, param1); } -JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePNP__JJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return (jlong)((uintptr_t (*) (uintptr_t, long))(uintptr_t)__functionAddress)((uintptr_t)param0, (long)param1); -} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePPP__JJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return (jlong)((uintptr_t (*) (uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1); @@ -935,18 +671,10 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePBPPP__JBJJJ(JNIEnv *__e UNUSED_PARAMS(__env, clazz) return (jlong)((uintptr_t (*) (uintptr_t, jbyte, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3); } -JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePNNPP__JJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return (jlong)((uintptr_t (*) (uintptr_t, long, long, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (long)param1, (long)param2, (uintptr_t)param3); -} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePPJPP__JJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return (jlong)((uintptr_t (*) (uintptr_t, uintptr_t, jlong, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3); } -JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePPNNP__JJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return (jlong)((uintptr_t (*) (uintptr_t, uintptr_t, long, long))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (long)param2, (long)param3); -} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePPPPP__JJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return (jlong)((uintptr_t (*) (uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)param3); @@ -1031,10 +759,6 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokeCCCUJP__SSSBIJJ(JNIEnv * UNUSED_PARAMS(__env, clazz) return (jlong)((uintptr_t (*) (uint16_t, uint16_t, uint16_t, uint8_t, jint, jlong))(uintptr_t)__functionAddress)((uint16_t)param0, (uint16_t)param1, (uint16_t)param2, (uint8_t)param3, param4, param5); } -JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePPPPNP__JJIJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jlong param4, jlong param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return (jlong)((uintptr_t (*) (uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, long))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)param4, (long)param5); -} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePPPPPP__JJJIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jint param3, jlong param4, jlong param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return (jlong)((uintptr_t (*) (uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, (uintptr_t)param4, (uintptr_t)param5); @@ -1051,10 +775,6 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePPJPPP__JJJIIJJJ(JNIEnv UNUSED_PARAMS(__env, clazz) return (jlong)((uintptr_t (*) (uintptr_t, uintptr_t, jlong, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, param3, param4, (uintptr_t)param5, (uintptr_t)param6); } -JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePPPPPP__JJJIJIJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jint param3, jlong param4, jint param5, jlong param6, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return (jlong)((uintptr_t (*) (uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, (uintptr_t)param4, param5, (uintptr_t)param6); -} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePPPPPP__JJJJIJIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jint param4, jlong param5, jint param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return (jlong)((uintptr_t (*) (uintptr_t, uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)param3, param4, (uintptr_t)param5, param6); @@ -1187,10 +907,6 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePPPPPJJPPPPPPP__JJJJJIJI UNUSED_PARAMS(__env, clazz) return (jlong)((uintptr_t (*) (uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, jint, jlong, jint, jlong, jint, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4, param5, param6, param7, param8, param9, (uintptr_t)param10, (uintptr_t)param11, param12, (uintptr_t)param13, (uintptr_t)param14, (uintptr_t)param15, (uintptr_t)param16); } -JNIEXPORT jbyte JNICALL Java_org_lwjgl_system_JNI_invokeU__IJ(JNIEnv *__env, jclass clazz, jint param0, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return (jbyte)((uint8_t (*) (jint))(uintptr_t)__functionAddress)(param0); -} JNIEXPORT jbyte JNICALL Java_org_lwjgl_system_JNI_invokeUPU__BJJ(JNIEnv *__env, jclass clazz, jbyte param0, jlong param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return (jbyte)((uint8_t (*) (uint8_t, uintptr_t))(uintptr_t)__functionAddress)((uint8_t)param0, (uintptr_t)param1); @@ -1335,10 +1051,6 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePV__JIDJ(JNIEnv *__env, j UNUSED_PARAMS(__env, clazz) ((void (*) (uintptr_t, jint, jdouble))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2); } -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePV__JIFJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jfloat param2, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, jint, jfloat))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2); -} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePV__JIIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) ((void (*) (uintptr_t, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2); @@ -1351,10 +1063,6 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePV__JFFFJ(JNIEnv *__env, UNUSED_PARAMS(__env, clazz) ((void (*) (uintptr_t, jfloat, jfloat, jfloat))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3); } -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePV__JFFIJ(JNIEnv *__env, jclass clazz, jlong param0, jfloat param1, jfloat param2, jint param3, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, jfloat, jfloat, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3); -} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePV__JIIDJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jdouble param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) ((void (*) (uintptr_t, jint, jint, jdouble))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3); @@ -1403,10 +1111,6 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePJV__JJJ(JNIEnv *__env, j UNUSED_PARAMS(__env, clazz) ((void (*) (uintptr_t, jlong))(uintptr_t)__functionAddress)((uintptr_t)param0, param1); } -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePNV__JJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, long))(uintptr_t)__functionAddress)((uintptr_t)param0, (long)param1); -} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPV__JJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) ((void (*) (uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1); @@ -1483,10 +1187,6 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePCV__JSIIJ(JNIEnv *__env, UNUSED_PARAMS(__env, clazz) ((void (*) (uintptr_t, uint16_t, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uint16_t)param1, param2, param3); } -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPV__IIJJJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jlong param2, jlong param3, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)param2, (uintptr_t)param3); -} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPV__JIIJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlong param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) ((void (*) (uintptr_t, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3); @@ -1531,30 +1231,14 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPV__JIIIJJ(JNIEnv *__env UNUSED_PARAMS(__env, clazz) ((void (*) (uintptr_t, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, (uintptr_t)param4); } -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPV__JJIIIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jint param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, uintptr_t, jint, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, param3, param4); -} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPV__IIIIJJJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jlong param4, jlong param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) ((void (*) (jint, jint, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, (uintptr_t)param4, (uintptr_t)param5); } -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPV__JIIIIJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jint param3, jint param4, jlong param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, (uintptr_t)param5); -} -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPV__JJFFFFJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jfloat param2, jfloat param3, jfloat param4, jfloat param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, uintptr_t, jfloat, jfloat, jfloat, jfloat))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, param3, param4, param5); -} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPV__JJIIIIIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jint param4, jint param5, jint param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) ((void (*) (uintptr_t, uintptr_t, jint, jint, jint, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, param3, param4, param5, param6); } -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPV__JJFFFFFFJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jfloat param2, jfloat param3, jfloat param4, jfloat param5, jfloat param6, jfloat param7, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, uintptr_t, jfloat, jfloat, jfloat, jfloat, jfloat, jfloat))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, param3, param4, param5, param6, param7); -} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokeCCPV__SSJJ(JNIEnv *__env, jclass clazz, jshort param0, jshort param1, jlong param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) ((void (*) (uint16_t, uint16_t, uintptr_t))(uintptr_t)__functionAddress)((uint16_t)param0, (uint16_t)param1, (uintptr_t)param2); @@ -1567,18 +1251,10 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokeCPPV__SJJJ(JNIEnv *__env, UNUSED_PARAMS(__env, clazz) ((void (*) (uint16_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uint16_t)param0, (uintptr_t)param1, (uintptr_t)param2); } -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePNNV__JJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, long, long))(uintptr_t)__functionAddress)((uintptr_t)param0, (long)param1, (long)param2); -} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePNPV__JJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) ((void (*) (uintptr_t, long, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (long)param1, (uintptr_t)param2); } -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPNV__JJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, uintptr_t, long))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (long)param2); -} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__JJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) ((void (*) (uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2); @@ -1631,34 +1307,14 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokeJJJV__IIJJJJ(JNIEnv *__en UNUSED_PARAMS(__env, clazz) ((void (*) (jint, jint, jlong, jlong, jlong))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4); } -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePNNV__JJIIJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jlong param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, long, jint, jint, long))(uintptr_t)__functionAddress)((uintptr_t)param0, (long)param1, param2, param3, (long)param4); -} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__IIJJJJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jlong param2, jlong param3, jlong param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) ((void (*) (jint, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4); } -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__JIIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlong param3, jlong param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, (uintptr_t)param4); -} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__JIJJIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jint param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) ((void (*) (uintptr_t, jint, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, param4); } -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__JJIIJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jlong param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, uintptr_t, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, param3, (uintptr_t)param4); -} -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__JJIJIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jint param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, uintptr_t, jint, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, param4); -} -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__JJJFFJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jfloat param3, jfloat param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, uintptr_t, uintptr_t, jfloat, jfloat))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, param4); -} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__JJJZZJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jboolean param3, jboolean param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) ((void (*) (uintptr_t, uintptr_t, uintptr_t, jboolean, jboolean))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, param4); @@ -1687,18 +1343,6 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokeCCUV__SSIIIBJ(JNIEnv *__e UNUSED_PARAMS(__env, clazz) ((void (*) (uint16_t, uint16_t, jint, jint, jint, uint8_t))(uintptr_t)__functionAddress)((uint16_t)param0, (uint16_t)param1, param2, param3, param4, (uint8_t)param5); } -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__JIIIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jint param3, jlong param4, jlong param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, jint, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, (uintptr_t)param4, (uintptr_t)param5); -} -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__JIJIJIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jint param3, jlong param4, jint param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, jint, uintptr_t, jint, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, param3, (uintptr_t)param4, param5); -} -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__JIJJIIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jint param4, jint param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, jint, uintptr_t, uintptr_t, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, param4, param5); -} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__JJJIZZJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jint param3, jboolean param4, jboolean param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) ((void (*) (uintptr_t, uintptr_t, uintptr_t, jint, jboolean, jboolean))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, param4, param5); @@ -1707,30 +1351,10 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__JZIJJIJ(JNIEnv *__e UNUSED_PARAMS(__env, clazz) ((void (*) (uintptr_t, jboolean, jint, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, (uintptr_t)param4, param5); } -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__JIIJIJIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlong param3, jint param4, jlong param5, jint param6, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, jint, jint, uintptr_t, jint, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, param4, (uintptr_t)param5, param6); -} -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__JJFFFFJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jfloat param2, jfloat param3, jfloat param4, jfloat param5, jlong param6, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, uintptr_t, jfloat, jfloat, jfloat, jfloat, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, param3, param4, param5, (uintptr_t)param6); -} -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__JJJFFFFJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jfloat param3, jfloat param4, jfloat param5, jfloat param6, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, uintptr_t, uintptr_t, jfloat, jfloat, jfloat, jfloat))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, param4, param5, param6); -} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__JJIIIJIZJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jint param4, jlong param5, jint param6, jboolean param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) ((void (*) (uintptr_t, uintptr_t, jint, jint, jint, uintptr_t, jint, jboolean))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, param3, param4, (uintptr_t)param5, param6, param7); } -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__JJFFFFFFJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jfloat param2, jfloat param3, jfloat param4, jfloat param5, jfloat param6, jfloat param7, jlong param8, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, uintptr_t, jfloat, jfloat, jfloat, jfloat, jfloat, jfloat, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, param3, param4, param5, param6, param7, (uintptr_t)param8); -} -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__JJJFFFFFFJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jfloat param3, jfloat param4, jfloat param5, jfloat param6, jfloat param7, jfloat param8, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, uintptr_t, uintptr_t, jfloat, jfloat, jfloat, jfloat, jfloat, jfloat))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, param4, param5, param6, param7, param8); -} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokeCCUPV__SSBJJ(JNIEnv *__env, jclass clazz, jshort param0, jshort param1, jbyte param2, jlong param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) ((void (*) (uint16_t, uint16_t, uint8_t, uintptr_t))(uintptr_t)__functionAddress)((uint16_t)param0, (uint16_t)param1, (uint8_t)param2, (uintptr_t)param3); @@ -1771,14 +1395,6 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPPV__JIJJJJ(JNIEnv *__e UNUSED_PARAMS(__env, clazz) ((void (*) (uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4); } -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPPV__JJIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jlong param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)param4); -} -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPPV__JJJIJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jint param3, jlong param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, (uintptr_t)param4); -} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPPV__JJJJIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jint param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) ((void (*) (uintptr_t, uintptr_t, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)param3, param4); @@ -1787,10 +1403,6 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePUCCV__JBSSIJ(JNIEnv *__e UNUSED_PARAMS(__env, clazz) ((void (*) (uintptr_t, uint8_t, uint16_t, uint16_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uint8_t)param1, (uint16_t)param2, (uint16_t)param3, param4); } -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPPV__JJJFFJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jfloat param3, jfloat param4, jlong param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, uintptr_t, uintptr_t, jfloat, jfloat, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, param4, (uintptr_t)param5); -} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePUCCV__JBSIISJ(JNIEnv *__env, jclass clazz, jlong param0, jbyte param1, jshort param2, jint param3, jint param4, jshort param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) ((void (*) (uintptr_t, uint8_t, uint16_t, jint, jint, uint16_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uint8_t)param1, (uint16_t)param2, param3, param4, (uint16_t)param5); @@ -1807,18 +1419,6 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePCCUV__JSSIIIBJ(JNIEnv *_ UNUSED_PARAMS(__env, clazz) ((void (*) (uintptr_t, uint16_t, uint16_t, jint, jint, jint, uint8_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uint16_t)param1, (uint16_t)param2, param3, param4, param5, (uint8_t)param6); } -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPPV__JJJFFFFJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jfloat param3, jfloat param4, jfloat param5, jfloat param6, jlong param7, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, uintptr_t, uintptr_t, jfloat, jfloat, jfloat, jfloat, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, param4, param5, param6, (uintptr_t)param7); -} -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPPV__JJJIIIFJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jint param3, jint param4, jint param5, jfloat param6, jlong param7, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, uintptr_t, uintptr_t, jint, jint, jint, jfloat, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, param4, param5, param6, (uintptr_t)param7); -} -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPPV__JJJFFFFFFJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jfloat param3, jfloat param4, jfloat param5, jfloat param6, jfloat param7, jfloat param8, jlong param9, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, uintptr_t, uintptr_t, jfloat, jfloat, jfloat, jfloat, jfloat, jfloat, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, param4, param5, param6, param7, param8, (uintptr_t)param9); -} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokeCCCCCV__SSSSSJ(JNIEnv *__env, jclass clazz, jshort param0, jshort param1, jshort param2, jshort param3, jshort param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) ((void (*) (uint16_t, uint16_t, uint16_t, uint16_t, uint16_t))(uintptr_t)__functionAddress)((uint16_t)param0, (uint16_t)param1, (uint16_t)param2, (uint16_t)param3, (uint16_t)param4); @@ -1839,34 +1439,14 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePCCCUV__JSSSIBJ(JNIEnv *_ UNUSED_PARAMS(__env, clazz) ((void (*) (uintptr_t, uint16_t, uint16_t, uint16_t, jint, uint8_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uint16_t)param1, (uint16_t)param2, (uint16_t)param3, param4, (uint8_t)param5); } -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPPPV__IJJJJJJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5); -} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPPPV__JIJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) ((void (*) (uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5); } -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPPPV__JJIJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jlong param4, jlong param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5); -} -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPPPV__JIIJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlong param3, jlong param4, jlong param5, jlong param6, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, jint, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6); -} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePCCCCV__JSSSZZSIJ(JNIEnv *__env, jclass clazz, jlong param0, jshort param1, jshort param2, jshort param3, jboolean param4, jboolean param5, jshort param6, jint param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) ((void (*) (uintptr_t, uint16_t, uint16_t, uint16_t, jboolean, jboolean, uint16_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uint16_t)param1, (uint16_t)param2, (uint16_t)param3, param4, param5, (uint16_t)param6, param7); } -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPPPV__JJIJIJIJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jint param4, jlong param5, jint param6, jlong param7, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, uintptr_t, jint, uintptr_t, jint, uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, param4, (uintptr_t)param5, param6, (uintptr_t)param7); -} -JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPPPV__JJIJJIIJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jlong param4, jint param5, jint param6, jlong param7, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - ((void (*) (uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)param4, param5, param6, (uintptr_t)param7); -} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPPPV__IJIJJJIJIZJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jint param2, jlong param3, jlong param4, jlong param5, jint param6, jlong param7, jint param8, jboolean param9, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) ((void (*) (jint, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, jint, jboolean))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5, param6, (uintptr_t)param7, param8, param9); @@ -1955,10 +1535,6 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_system_JNI_invokePZ__JIJ(JNIEnv *__env UNUSED_PARAMS(__env, clazz) return ((jboolean (*) (uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1); } -JNIEXPORT jboolean JNICALL Java_org_lwjgl_system_JNI_invokePZ__JZJ(JNIEnv *__env, jclass clazz, jlong param0, jboolean param1, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jboolean (*) (uintptr_t, jboolean))(uintptr_t)__functionAddress)((uintptr_t)param0, param1); -} JNIEXPORT jboolean JNICALL Java_org_lwjgl_system_JNI_invokePZ__JIIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jboolean (*) (uintptr_t, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2); @@ -2011,10 +1587,6 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_system_JNI_invokePPPPZ__JJJJJ(JNIEnv * UNUSED_PARAMS(__env, clazz) return ((jboolean (*) (uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)param3); } -JNIEXPORT jboolean JNICALL Java_org_lwjgl_system_JNI_invokePPPPZ__JIJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jlong param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jboolean (*) (uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4); -} JNIEXPORT jboolean JNICALL Java_org_lwjgl_system_JNI_invokePPPUPZ__JJJBJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jbyte param3, jlong param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jboolean (*) (uintptr_t, uintptr_t, uintptr_t, uint8_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uint8_t)param3, (uintptr_t)param4); @@ -2039,10 +1611,6 @@ JNIEXPORT jfloat JNICALL Java_org_lwjgl_system_JNI_callF__IIIJ(JNIEnv *__env, jc UNUSED_PARAMS(__env, clazz) return ((jfloat (APIENTRY *) (jint, jint, jint))(uintptr_t)__functionAddress)(param0, param1, param2); } -JNIEXPORT jfloat JNICALL Java_org_lwjgl_system_JNI_callPF__JFJ(JNIEnv *__env, jclass clazz, jlong param0, jfloat param1, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jfloat (APIENTRY *) (uintptr_t, jfloat))(uintptr_t)__functionAddress)((uintptr_t)param0, param1); -} JNIEXPORT jfloat JNICALL Java_org_lwjgl_system_JNI_callPF__IIJJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jlong param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jfloat (APIENTRY *) (jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)param2); @@ -2119,10 +1687,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPI__JFFJ(JNIEnv *__env, jcl UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jfloat, jfloat))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPI__JFIJ(JNIEnv *__env, jclass clazz, jlong param0, jfloat param1, jint param2, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jfloat, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPI__JIFJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jfloat param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jint, jfloat))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2); @@ -2131,10 +1695,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPI__JIIJ(JNIEnv *__env, jcl UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callJI__IJIIJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jint param2, jint param3, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (jint, jlong, jint, jint))(uintptr_t)__functionAddress)(param0, param1, param2, param3); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callJI__JFFFJ(JNIEnv *__env, jclass clazz, jlong param0, jfloat param1, jfloat param2, jfloat param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (jlong, jfloat, jfloat, jfloat))(uintptr_t)__functionAddress)(param0, param1, param2, param3); @@ -2151,30 +1711,14 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPI__IJIIJ(JNIEnv *__env, jc UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (jint, uintptr_t, jint, jint))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, param2, param3); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPI__JFFFJ(JNIEnv *__env, jclass clazz, jlong param0, jfloat param1, jfloat param2, jfloat param3, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jfloat, jfloat, jfloat))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPI__JIFFJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jfloat param2, jfloat param3, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jint, jfloat, jfloat))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPI__JIIIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jint param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jint, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPI__JIIZJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jboolean param3, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jint, jint, jboolean))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPI__IIIIJJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jlong param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, (uintptr_t)param4); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPI__JIFFIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jfloat param2, jfloat param3, jint param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jint, jfloat, jfloat, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPI__JIIIIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jint param3, jint param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jint, jint, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4); @@ -2191,10 +1735,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPI__IJIIFIJ(JNIEnv *__env, UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (jint, uintptr_t, jint, jint, jfloat, jint))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, param2, param3, param4, param5); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPI__JIIIIIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jint param3, jint param4, jint param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jint, jint, jint, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, param5); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPI__JIIIIIIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jint param3, jint param4, jint param5, jint param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jint, jint, jint, jint, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, param5, param6); @@ -2203,10 +1743,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPI__IIJIIIIFJ(JNIEnv *__env UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (jint, jint, uintptr_t, jint, jint, jint, jint, jfloat))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)param2, param3, param4, param5, param6, param7); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPI__JFFFFFFFFJ(JNIEnv *__env, jclass clazz, jlong param0, jfloat param1, jfloat param2, jfloat param3, jfloat param4, jfloat param5, jfloat param6, jfloat param7, jfloat param8, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jfloat, jfloat, jfloat, jfloat, jfloat, jfloat, jfloat, jfloat))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, param5, param6, param7, param8); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callJJI__JJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (jlong, jlong))(uintptr_t)__functionAddress)(param0, param1); @@ -2235,10 +1771,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJI__JIJJ(JNIEnv *__env, jc UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jint, jlong))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJI__JJFJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jfloat param2, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jlong, jfloat))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJI__JJIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jlong, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2); @@ -2247,10 +1779,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__IJJJ(JNIEnv *__env, jc UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, (uintptr_t)param2); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JFJJ(JNIEnv *__env, jclass clazz, jlong param0, jfloat param1, jlong param2, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jfloat, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JIJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2); @@ -2283,10 +1811,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__IJJIJ(JNIEnv *__env, j UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (jint, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, (uintptr_t)param2, param3); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JIFJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jfloat param2, jlong param3, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jint, jfloat, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JIIJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlong param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3); @@ -2295,14 +1819,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JIJIJ(JNIEnv *__env, j UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, param3); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JJFFJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jfloat param2, jfloat param3, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, uintptr_t, jfloat, jfloat))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, param3); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JJFIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jfloat param2, jint param3, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, uintptr_t, jfloat, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, param3); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JJIIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, param3); @@ -2323,10 +1839,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__IIJIJJ(JNIEnv *__env, UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (jint, jint, uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)param2, param3, (uintptr_t)param4); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JIFFJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jfloat param2, jfloat param3, jlong param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jint, jfloat, jfloat, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, (uintptr_t)param4); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JIIIJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jint param3, jlong param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, (uintptr_t)param4); @@ -2339,10 +1851,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JJIIIJ(JNIEnv *__env, UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, param3, param4); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JJIIZJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jboolean param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, jint, jboolean))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, param3, param4); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callJJI__JFFFFJJ(JNIEnv *__env, jclass clazz, jlong param0, jfloat param1, jfloat param2, jfloat param3, jfloat param4, jlong param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (jlong, jfloat, jfloat, jfloat, jfloat, jlong))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5); @@ -2355,26 +1863,14 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__IJIIFJJ(JNIEnv *__env, UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (jint, uintptr_t, jint, jint, jfloat, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, param2, param3, param4, (uintptr_t)param5); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JIFFFJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jfloat param2, jfloat param3, jfloat param4, jlong param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jint, jfloat, jfloat, jfloat, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, (uintptr_t)param5); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JJIIIIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jint param4, jint param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, jint, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, param3, param4, param5); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JIFFFIJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jfloat param2, jfloat param3, jfloat param4, jint param5, jlong param6, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jint, jfloat, jfloat, jfloat, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, param5, (uintptr_t)param6); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JIIIIIJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jint param3, jint param4, jint param5, jlong param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, param5, (uintptr_t)param6); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JIFFFFIJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jfloat param2, jfloat param3, jfloat param4, jfloat param5, jint param6, jlong param7, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jint, jfloat, jfloat, jfloat, jfloat, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, param5, param6, (uintptr_t)param7); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JIIIIIIJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jint param3, jint param4, jint param5, jint param6, jlong param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, param5, param6, (uintptr_t)param7); @@ -2383,19 +1879,11 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__IIJJIIIIFJ(JNIEnv *__e UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (jint, jint, uintptr_t, uintptr_t, jint, jint, jint, jint, jfloat))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)param2, (uintptr_t)param3, param4, param5, param6, param7, param8); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JIFFFFFIJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jfloat param2, jfloat param3, jfloat param4, jfloat param5, jfloat param6, jint param7, jlong param8, jlong __functionAddress) { +JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JIIIIIIJIIIIIIIIIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jint param3, jint param4, jint param5, jint param6, jlong param7, jint param8, jint param9, jint param10, jint param11, jint param12, jint param13, jint param14, jint param15, jint param16, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jint, jfloat, jfloat, jfloat, jfloat, jfloat, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, param5, param6, param7, (uintptr_t)param8); + return ((jint (APIENTRY *) (uintptr_t, jint, jint, jint, jint, jint, jint, uintptr_t, jint, jint, jint, jint, jint, jint, jint, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, param5, param6, (uintptr_t)param7, param8, param9, param10, param11, param12, param13, param14, param15, param16); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JIIFFFFFIJIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jfloat param3, jfloat param4, jfloat param5, jfloat param6, jfloat param7, jint param8, jlong param9, jint param10, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jint, jint, jfloat, jfloat, jfloat, jfloat, jfloat, jint, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, param5, param6, param7, param8, (uintptr_t)param9, param10); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JIIIIIIJIIIIIIIIIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jint param3, jint param4, jint param5, jint param6, jlong param7, jint param8, jint param9, jint param10, jint param11, jint param12, jint param13, jint param14, jint param15, jint param16, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jint, jint, jint, jint, jint, jint, uintptr_t, jint, jint, jint, jint, jint, jint, jint, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, param5, param6, (uintptr_t)param7, param8, param9, param10, param11, param12, param13, param14, param15, param16); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callJPPI__JJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong __functionAddress) { +JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callJPPI__JJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (jlong, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, (uintptr_t)param2); } @@ -2523,10 +2011,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJJI__JJIJIJ(JNIEnv *__env, UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jlong, jint, jlong, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJPI__JIJJIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jint param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jint, jlong, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, param4); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPJI__JIJIJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jint param3, jlong param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, jint, jlong))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, param3, param4); @@ -2535,10 +2019,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__IIJJJJ(JNIEnv *__env, UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (jint, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__IJIJJJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jint param2, jlong param3, jlong param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (jint, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)param4); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JIIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlong param3, jlong param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, (uintptr_t)param4); @@ -2547,10 +2027,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JIJIJJ(JNIEnv *__env, UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, param3, (uintptr_t)param4); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JIJJIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jint param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, param4); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JJIJIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jint param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, param4); @@ -2571,42 +2047,14 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JIIIJJJ(JNIEnv *__env UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jint, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, (uintptr_t)param4, (uintptr_t)param5); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JIIJIJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlong param3, jint param4, jlong param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jint, jint, uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, param4, (uintptr_t)param5); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JIJJIIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jint param4, jint param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, param4, param5); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JJIIIJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jint param4, jlong param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, param3, param4, (uintptr_t)param5); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JJJIIIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jint param3, jint param4, jint param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t, jint, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, param4, param5); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JFFIIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jfloat param1, jfloat param2, jint param3, jint param4, jlong param5, jlong param6, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jfloat, jfloat, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, (uintptr_t)param5, (uintptr_t)param6); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JIIIIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jint param3, jint param4, jlong param5, jlong param6, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jint, jint, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, (uintptr_t)param5, (uintptr_t)param6); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JIJJIIIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jint param4, jint param5, jint param6, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t, jint, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, param4, param5, param6); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JJIIIIJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jint param4, jint param5, jlong param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, param3, param4, param5, (uintptr_t)param6); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callJPPI__IIIIIJJJJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jlong param5, jlong param6, jlong param7, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (jint, jint, jint, jint, jint, jlong, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, (uintptr_t)param6, (uintptr_t)param7); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPJI__IIIJIJZJJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jlong param3, jint param4, jlong param5, jboolean param6, jlong param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (jint, jint, jint, uintptr_t, jint, uintptr_t, jboolean, jlong))(uintptr_t)__functionAddress)(param0, param1, param2, (uintptr_t)param3, param4, (uintptr_t)param5, param6, param7); @@ -2715,38 +2163,18 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JIJIJJJ(JNIEnv *__en UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, param3, (uintptr_t)param4, (uintptr_t)param5); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JIJJIJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jint param4, jlong param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, param4, (uintptr_t)param5); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JIJJJIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jlong param4, jint param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4, param5); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JJIIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jlong param4, jlong param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, param3, (uintptr_t)param4, (uintptr_t)param5); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JJIJIJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jint param4, jlong param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, param4, (uintptr_t)param5); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JJJIIJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jint param3, jint param4, jlong param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, param4, (uintptr_t)param5); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JJJIJIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jint param3, jlong param4, jint param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, (uintptr_t)param4, param5); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJPPI__JJIIIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jint param4, jlong param5, jlong param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jlong, jint, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, (uintptr_t)param5, (uintptr_t)param6); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JIIIJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jint param3, jlong param4, jlong param5, jlong param6, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jint, jint, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JIJIIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jint param3, jint param4, jlong param5, jlong param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, param3, param4, (uintptr_t)param5, (uintptr_t)param6); @@ -2843,10 +2271,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPI__IIJJJJJJ(JNIEnv *__ UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (jint, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPI__JIIJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlong param3, jlong param4, jlong param5, jlong param6, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jint, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPI__JIJIJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jint param3, jlong param4, jlong param5, jlong param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6); @@ -2883,10 +2307,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPCPPPI__JJSJJJJ(JNIEnv *__ UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, uintptr_t, uint16_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uint16_t)param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPJPI__JJJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t, uintptr_t, jlong, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)param3, param4, (uintptr_t)param5); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPI__JJJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5); @@ -2899,10 +2319,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJJPPPI__JJJIJJJJ(JNIEnv *_ UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jlong, jlong, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJPPPPI__JIJJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong param6, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jint, jlong, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPJPPI__JJJJIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jint param4, jlong param5, jlong param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t, jlong, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, param4, (uintptr_t)param5, (uintptr_t)param6); @@ -2919,10 +2335,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPI__IIJJJJJJJ(JNIEnv * UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (jint, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6, (uintptr_t)param7); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPI__JIJIJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jint param3, jlong param4, jlong param5, jlong param6, jlong param7, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6, (uintptr_t)param7); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPI__JIJJJIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jlong param4, jint param5, jlong param6, jlong param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4, param5, (uintptr_t)param6, (uintptr_t)param7); @@ -2947,14 +2359,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPI__JJJJJIJJJ(JNIEnv UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4, param5, (uintptr_t)param6, (uintptr_t)param7); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPI__JJJJJJJIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong param6, jint param7, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6, param7); -} -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPI__JIJIJJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jint param3, jlong param4, jlong param5, jlong param6, jlong param7, jlong param8, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6, (uintptr_t)param7, (uintptr_t)param8); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPI__JIJJIJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jint param4, jlong param5, jlong param6, jlong param7, jlong param8, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, param4, (uintptr_t)param5, (uintptr_t)param6, (uintptr_t)param7, (uintptr_t)param8); @@ -2971,10 +2375,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPI__JIIJJJJJIIJIIIIJ( UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, jint, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, jint, jint, uintptr_t, jint, jint, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6, (uintptr_t)param7, param8, param9, (uintptr_t)param10, param11, param12, param13, param14); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPJPPI__JJJJJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong param6, jlong param7, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, jlong, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4, param5, (uintptr_t)param6, (uintptr_t)param7); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPJPPPPPI__JJJJJIJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jint param5, jlong param6, jlong param7, jlong param8, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, uintptr_t, jlong, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)param4, param5, (uintptr_t)param6, (uintptr_t)param7, (uintptr_t)param8); @@ -2987,10 +2387,6 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPPI__JJJJIJJIJJJ(JNIE UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)param3, param4, (uintptr_t)param5, (uintptr_t)param6, param7, (uintptr_t)param8, (uintptr_t)param9); } -JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPPI__JIIJJJJIJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlong param3, jlong param4, jlong param5, jlong param6, jint param7, jlong param8, jlong param9, jlong param10, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return ((jint (APIENTRY *) (uintptr_t, jint, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6, param7, (uintptr_t)param8, (uintptr_t)param9, (uintptr_t)param10); -} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callJPPPPPPPPI__JJJJJJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong param6, jlong param7, jlong param8, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return ((jint (APIENTRY *) (jlong, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6, (uintptr_t)param7, (uintptr_t)param8); @@ -3095,10 +2491,6 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPP__JIJ(JNIEnv *__env, jcl UNUSED_PARAMS(__env, clazz) return (jlong)((uintptr_t (APIENTRY *) (uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1); } -JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPP__IIJJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jlong param2, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return (jlong)((uintptr_t (APIENTRY *) (jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)param2); -} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPP__IJIJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jint param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return (jlong)((uintptr_t (APIENTRY *) (jint, uintptr_t, jint))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, param2); @@ -3107,10 +2499,6 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPP__JIIJ(JNIEnv *__env, jc UNUSED_PARAMS(__env, clazz) return (jlong)((uintptr_t (APIENTRY *) (uintptr_t, jint, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2); } -JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPP__IIJIJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jlong param2, jint param3, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return (jlong)((uintptr_t (APIENTRY *) (jint, jint, uintptr_t, jint))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)param2, param3); -} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPNP__JJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return (jlong)((uintptr_t (APIENTRY *) (uintptr_t, long))(uintptr_t)__functionAddress)((uintptr_t)param0, (long)param1); @@ -3135,10 +2523,6 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPP__IJJIJ(JNIEnv *__env, UNUSED_PARAMS(__env, clazz) return (jlong)((uintptr_t (APIENTRY *) (jint, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, (uintptr_t)param2, param3); } -JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPP__JIIJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlong param3, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return (jlong)((uintptr_t (APIENTRY *) (uintptr_t, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3); -} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPP__IIIJJJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jlong param3, jlong param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return (jlong)((uintptr_t (APIENTRY *) (jint, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, (uintptr_t)param3, (uintptr_t)param4); @@ -3239,10 +2623,6 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPP__JJJJJJ(JNIEnv *__e UNUSED_PARAMS(__env, clazz) return (jlong)((uintptr_t (APIENTRY *) (uintptr_t, jlong, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4); } -JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPJPP__JJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return (jlong)((uintptr_t (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t, jlong, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, (uintptr_t)param4); -} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPPPP__JIJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return (jlong)((uintptr_t (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5); @@ -3275,10 +2655,6 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPJPPPPP__JJJJJJJJ(JNIEnv UNUSED_PARAMS(__env, clazz) return (jlong)((uintptr_t (APIENTRY *) (uintptr_t, uintptr_t, jlong, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6); } -JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPPJPPP__JJJJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong param6, jlong __functionAddress) { - UNUSED_PARAMS(__env, clazz) - return (jlong)((uintptr_t (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t, uintptr_t, jlong, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)param3, param4, (uintptr_t)param5, (uintptr_t)param6); -} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPP__JIJJIJJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jint param4, jlong param5, jlong param6, jlong param7, jlong param8, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) return (jlong)((uintptr_t (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, param4, (uintptr_t)param5, (uintptr_t)param6, (uintptr_t)param7, (uintptr_t)param8); @@ -4647,42 +4023,42 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_system_JNI_callPPPPPZ__JJJJJJ(JNIEnv * UNUSED_PARAMS(__env, clazz) return ((jboolean (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4); } - + JNIEXPORT jshort JNICALL Java_org_lwjgl_system_JNI_invokeUPC__B_3SZJ(JNIEnv *__env, jclass clazz, jbyte param0, jshortArray param1, jboolean param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param1, NULL); jshort __result = (jshort)((uint16_t (*) (jbyte, uintptr_t, jboolean))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1, param2); if (param1 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jshort JNICALL Java_org_lwjgl_system_JNI_invokeCPCC__S_3SSJ(JNIEnv *__env, jclass clazz, jshort param0, jshortArray param1, jshort param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param1, NULL); jshort __result = (jshort)((uint16_t (*) (jshort, uintptr_t, jshort))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1, param2); if (param1 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokeCPI__S_3IJ(JNIEnv *__env, jclass clazz, jshort param0, jintArray param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); jint __result = ((jint (*) (jshort, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1); if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePCI___3FSJ(JNIEnv *__env, jclass clazz, jfloatArray param0, jshort param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray0 = param0 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param0, NULL); jint __result = ((jint (*) (uintptr_t, jshort))(uintptr_t)__functionAddress)((uintptr_t)paramArray0, param1); if (param0 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param0, paramArray0, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPI__IJ_3IJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jintArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); jint __result = ((jint (*) (jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPI__I_3II_3IIZJ(JNIEnv *__env, jclass clazz, jint param0, jintArray param1, jint param2, jintArray param3, jint param4, jboolean param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); @@ -4691,7 +4067,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPI__I_3II_3IIZJ(JNIEnv * if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPI__I_3SI_3SIZJ(JNIEnv *__env, jclass clazz, jint param0, jshortArray param1, jint param2, jshortArray param3, jint param4, jboolean param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param1, NULL); @@ -4700,56 +4076,56 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPI__I_3SI_3SIZJ(JNIEnv * if (param3 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param3, paramArray3, 0); } if (param1 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokeCPUI__S_3FBJ(JNIEnv *__env, jclass clazz, jshort param0, jfloatArray param1, jbyte param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param1, NULL); jint __result = ((jint (*) (jshort, uintptr_t, jbyte))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1, param2); if (param1 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokeCPUI__S_3IBJ(JNIEnv *__env, jclass clazz, jshort param0, jintArray param1, jbyte param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); jint __result = ((jint (*) (jshort, uintptr_t, jbyte))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1, param2); if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokeCPUI__S_3SBJ(JNIEnv *__env, jclass clazz, jshort param0, jshortArray param1, jbyte param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param1, NULL); jint __result = ((jint (*) (jshort, uintptr_t, jbyte))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1, param2); if (param1 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPCI__J_3FSJ(JNIEnv *__env, jclass clazz, jlong param0, jfloatArray param1, jshort param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param1, NULL); jint __result = ((jint (*) (uintptr_t, uintptr_t, jshort))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)paramArray1, param2); if (param1 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPI___3IJJIZFJ(JNIEnv *__env, jclass clazz, jintArray param0, jlong param1, jlong param2, jint param3, jboolean param4, jfloat param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray0 = param0 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param0, NULL); jint __result = ((jint (*) (uintptr_t, uintptr_t, uintptr_t, jint, jboolean, jfloat))(uintptr_t)__functionAddress)((uintptr_t)paramArray0, (uintptr_t)param1, (uintptr_t)param2, param3, param4, param5); if (param0 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param0, paramArray0, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPI___3SJJIZFJ(JNIEnv *__env, jclass clazz, jshortArray param0, jlong param1, jlong param2, jint param3, jboolean param4, jfloat param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray0 = param0 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param0, NULL); jint __result = ((jint (*) (uintptr_t, uintptr_t, uintptr_t, jint, jboolean, jfloat))(uintptr_t)__functionAddress)((uintptr_t)paramArray0, (uintptr_t)param1, (uintptr_t)param2, param3, param4, param5); if (param0 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param0, paramArray0, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPI__JJJ_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlongArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param3, NULL); jint __result = ((jint (*) (uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPI__JJII_3F_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jfloatArray param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param4, NULL); @@ -4758,7 +4134,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPI__JJII_3F_3IJ(JNIEnv if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } if (param4 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPI__JJII_3I_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jintArray param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); @@ -4767,7 +4143,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPI__JJII_3I_3IJ(JNIEnv if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPPI__J_3I_3I_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jintArray param1, jintArray param2, jintArray param3, jlong param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); @@ -4778,7 +4154,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPPI__J_3I_3I_3IJJ(JNIE if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePNNPPPI__JJJII_3I_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jint param3, jint param4, jintArray param5, jintArray param6, jlong param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param5, NULL); @@ -4787,7 +4163,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePNNPPPI__JJJII_3I_3IJJ(JN if (param6 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param6, paramArray6, 0); } if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPPPPPI__JIIJ_3I_3I_3F_3I_3I_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlong param3, jintArray param4, jintArray param5, jfloatArray param6, jintArray param7, jintArray param8, jintArray param9, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); @@ -4804,248 +4180,248 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_invokePPPPPPPPI__JIIJ_3I_3I_3F_ if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePP___3DIJ(JNIEnv *__env, jclass clazz, jdoubleArray param0, jint param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray0 = param0 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param0, NULL); jlong __result = (jlong)((uintptr_t (*) (uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)paramArray0, param1); if (param0 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param0, paramArray0, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePP___3FIJ(JNIEnv *__env, jclass clazz, jfloatArray param0, jint param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray0 = param0 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param0, NULL); jlong __result = (jlong)((uintptr_t (*) (uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)paramArray0, param1); if (param0 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param0, paramArray0, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePP___3IIJ(JNIEnv *__env, jclass clazz, jintArray param0, jint param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray0 = param0 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param0, NULL); jlong __result = (jlong)((uintptr_t (*) (uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)paramArray0, param1); if (param0 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param0, paramArray0, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePP___3JIJ(JNIEnv *__env, jclass clazz, jlongArray param0, jint param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray0 = param0 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param0, NULL); jlong __result = (jlong)((uintptr_t (*) (uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)paramArray0, param1); if (param0 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param0, paramArray0, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePP___3SIJ(JNIEnv *__env, jclass clazz, jshortArray param0, jint param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray0 = param0 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param0, NULL); jlong __result = (jlong)((uintptr_t (*) (uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)paramArray0, param1); if (param0 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param0, paramArray0, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_invokePPP__J_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jintArray param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); jlong __result = (jlong)((uintptr_t (*) (uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)paramArray1); if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jbyte JNICALL Java_org_lwjgl_system_JNI_invokeUPU__B_3IJ(JNIEnv *__env, jclass clazz, jbyte param0, jintArray param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); jbyte __result = (jbyte)((uint8_t (*) (jbyte, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1); if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePV__I_3DJ(JNIEnv *__env, jclass clazz, jint param0, jdoubleArray param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param1, NULL); ((void (*) (jint, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1); if (param1 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePV__I_3FJ(JNIEnv *__env, jclass clazz, jint param0, jfloatArray param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param1, NULL); ((void (*) (jint, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1); if (param1 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePV__I_3IJ(JNIEnv *__env, jclass clazz, jint param0, jintArray param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); ((void (*) (jint, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1); if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePV__II_3DJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jdoubleArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param2, NULL); ((void (*) (jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePV__II_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jfloatArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param2, NULL); ((void (*) (jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePV__II_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jintArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); ((void (*) (jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePV__II_3JJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jlongArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param2, NULL); ((void (*) (jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePV__I_3IZJ(JNIEnv *__env, jclass clazz, jint param0, jintArray param1, jboolean param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); ((void (*) (jint, uintptr_t, jboolean))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1, param2); if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePV__II_3FIIJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jfloatArray param2, jint param3, jint param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param2, NULL); ((void (*) (jint, jint, uintptr_t, jint, jint))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)paramArray2, param3, param4); if (param2 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePV__II_3IIIJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jintArray param2, jint param3, jint param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); ((void (*) (jint, jint, uintptr_t, jint, jint))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)paramArray2, param3, param4); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePV__II_3SIIJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jshortArray param2, jint param3, jint param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param2, NULL); ((void (*) (jint, jint, uintptr_t, jint, jint))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)paramArray2, param3, param4); if (param2 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePV__IIIII_3DJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jdoubleArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param5, NULL); ((void (*) (jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param5, paramArray5, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePV__IIIII_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jfloatArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param5, NULL); ((void (*) (jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param5, paramArray5, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePV__IIIII_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param5, NULL); ((void (*) (jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePV__IIIII_3SJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jshortArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param5, NULL); ((void (*) (jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param5, paramArray5, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePV__IIIIII_3DJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jdoubleArray param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray6 = param6 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param6, NULL); ((void (*) (jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, (uintptr_t)paramArray6); if (param6 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param6, paramArray6, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePV__IIIIII_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jfloatArray param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray6 = param6 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param6, NULL); ((void (*) (jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, (uintptr_t)paramArray6); if (param6 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param6, paramArray6, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePV__IIIIII_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jintArray param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray6 = param6 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param6, NULL); ((void (*) (jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, (uintptr_t)paramArray6); if (param6 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param6, paramArray6, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePV__IIIIII_3SJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jshortArray param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray6 = param6 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param6, NULL); ((void (*) (jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, (uintptr_t)paramArray6); if (param6 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param6, paramArray6, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokeUPV__B_3FJ(JNIEnv *__env, jclass clazz, jbyte param0, jfloatArray param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param1, NULL); ((void (*) (jbyte, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1); if (param1 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePJV__I_3IJJ(JNIEnv *__env, jclass clazz, jint param0, jintArray param1, jlong param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); ((void (*) (jint, uintptr_t, jlong))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1, param2); if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPV__J_3FIJ(JNIEnv *__env, jclass clazz, jlong param0, jfloatArray param1, jint param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param1, NULL); ((void (*) (uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)paramArray1, param2); if (param1 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPV__J_3IIJ(JNIEnv *__env, jclass clazz, jlong param0, jintArray param1, jint param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); ((void (*) (uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)paramArray1, param2); if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPV__J_3SIJ(JNIEnv *__env, jclass clazz, jlong param0, jshortArray param1, jint param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param1, NULL); ((void (*) (uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)paramArray1, param2); if (param1 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPV__JII_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jintArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); ((void (*) (uintptr_t, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPV__JII_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlongArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param3, NULL); ((void (*) (uintptr_t, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokeCCPV__SS_3SJ(JNIEnv *__env, jclass clazz, jshort param0, jshort param1, jshortArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param2, NULL); ((void (*) (jshort, jshort, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokeCPCV__S_3DSJ(JNIEnv *__env, jclass clazz, jshort param0, jdoubleArray param1, jshort param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param1, NULL); ((void (*) (jshort, uintptr_t, jshort))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1, param2); if (param1 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokeCPCV__S_3FSJ(JNIEnv *__env, jclass clazz, jshort param0, jfloatArray param1, jshort param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param1, NULL); ((void (*) (jshort, uintptr_t, jshort))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1, param2); if (param1 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokeCPCV__S_3ISJ(JNIEnv *__env, jclass clazz, jshort param0, jintArray param1, jshort param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); ((void (*) (jshort, uintptr_t, jshort))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1, param2); if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokeCPCV__S_3JSJ(JNIEnv *__env, jclass clazz, jshort param0, jlongArray param1, jshort param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param1, NULL); ((void (*) (jshort, uintptr_t, jshort))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1, param2); if (param1 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokeCPCV__S_3SSJ(JNIEnv *__env, jclass clazz, jshort param0, jshortArray param1, jshort param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param1, NULL); ((void (*) (jshort, uintptr_t, jshort))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1, param2); if (param1 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokeCPPV__S_3F_3FJ(JNIEnv *__env, jclass clazz, jshort param0, jfloatArray param1, jfloatArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param1, NULL); @@ -5053,13 +4429,13 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokeCPPV__S_3F_3FJ(JNIEnv *__ ((void (*) (jshort, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param2, paramArray2, 0); } if (param1 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePNPV__JJ_3SJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jshortArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param2, NULL); ((void (*) (uintptr_t, long, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (long)param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__J_3D_3DJ(JNIEnv *__env, jclass clazz, jlong param0, jdoubleArray param1, jdoubleArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param1, NULL); @@ -5067,7 +4443,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__J_3D_3DJ(JNIEnv *__ ((void (*) (uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)paramArray1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param2, paramArray2, 0); } if (param1 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__J_3F_3FJ(JNIEnv *__env, jclass clazz, jlong param0, jfloatArray param1, jfloatArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param1, NULL); @@ -5075,7 +4451,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__J_3F_3FJ(JNIEnv *__ ((void (*) (uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)paramArray1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param2, paramArray2, 0); } if (param1 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__J_3I_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jintArray param1, jintArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); @@ -5083,7 +4459,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__J_3I_3IJ(JNIEnv *__ ((void (*) (uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)paramArray1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV___3I_3I_3IJ(JNIEnv *__env, jclass clazz, jintArray param0, jintArray param1, jintArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray0 = param0 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param0, NULL); @@ -5093,7 +4469,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV___3I_3I_3IJ(JNIEnv * if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } if (param0 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param0, paramArray0, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__I_3F_3F_3FJ(JNIEnv *__env, jclass clazz, jint param0, jfloatArray param1, jfloatArray param2, jfloatArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param1, NULL); @@ -5103,7 +4479,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__I_3F_3F_3FJ(JNIEnv if (param3 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param3, paramArray3, 0); } if (param2 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param2, paramArray2, 0); } if (param1 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__II_3D_3D_3DJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jdoubleArray param2, jdoubleArray param3, jdoubleArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param2, NULL); @@ -5113,7 +4489,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__II_3D_3D_3DJ(JNIEnv if (param4 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param4, paramArray4, 0); } if (param3 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param3, paramArray3, 0); } if (param2 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__II_3F_3F_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jfloatArray param2, jfloatArray param3, jfloatArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param2, NULL); @@ -5123,7 +4499,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__II_3F_3F_3FJ(JNIEnv if (param4 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param4, paramArray4, 0); } if (param3 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param3, paramArray3, 0); } if (param2 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__II_3J_3J_3JJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jlongArray param2, jlongArray param3, jlongArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param2, NULL); @@ -5133,61 +4509,61 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV__II_3J_3J_3JJ(JNIEnv if (param4 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param4, paramArray4, 0); } if (param3 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param3, paramArray3, 0); } if (param2 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV___3FIJJIJ(JNIEnv *__env, jclass clazz, jfloatArray param0, jint param1, jlong param2, jlong param3, jint param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray0 = param0 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param0, NULL); ((void (*) (uintptr_t, jint, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)paramArray0, param1, (uintptr_t)param2, (uintptr_t)param3, param4); if (param0 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param0, paramArray0, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPV___3FZIJJIJ(JNIEnv *__env, jclass clazz, jfloatArray param0, jboolean param1, jint param2, jlong param3, jlong param4, jint param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray0 = param0 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param0, NULL); ((void (*) (uintptr_t, jboolean, jint, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)paramArray0, param1, param2, (uintptr_t)param3, (uintptr_t)param4, param5); if (param0 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param0, paramArray0, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePCPCV__JS_3DSJ(JNIEnv *__env, jclass clazz, jlong param0, jshort param1, jdoubleArray param2, jshort param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param2, NULL); ((void (*) (uintptr_t, jshort, uintptr_t, jshort))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2, param3); if (param2 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePCPCV__JS_3FSJ(JNIEnv *__env, jclass clazz, jlong param0, jshort param1, jfloatArray param2, jshort param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param2, NULL); ((void (*) (uintptr_t, jshort, uintptr_t, jshort))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2, param3); if (param2 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePCPCV__JS_3ISJ(JNIEnv *__env, jclass clazz, jlong param0, jshort param1, jintArray param2, jshort param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); ((void (*) (uintptr_t, jshort, uintptr_t, jshort))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2, param3); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePCPCV__JS_3JSJ(JNIEnv *__env, jclass clazz, jlong param0, jshort param1, jlongArray param2, jshort param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param2, NULL); ((void (*) (uintptr_t, jshort, uintptr_t, jshort))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2, param3); if (param2 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePCPCV__JS_3SSJ(JNIEnv *__env, jclass clazz, jlong param0, jshort param1, jshortArray param2, jshort param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param2, NULL); ((void (*) (uintptr_t, jshort, uintptr_t, jshort))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2, param3); if (param2 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePNPPV__JJJ_3SJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jshortArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param3, NULL); ((void (*) (uintptr_t, long, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (long)param1, (uintptr_t)param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPPPV__JJJ_3FJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jfloatArray param3, jlong param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param3, NULL); ((void (*) (uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)paramArray3, (uintptr_t)param4); if (param3 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPPPV__J_3I_3I_3I_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jintArray param1, jintArray param2, jintArray param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); @@ -5199,13 +4575,13 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPPPV__J_3I_3I_3I_3IJ(JN if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPPPV__JIJ_3IJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jintArray param3, jlong param4, jlong param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); ((void (*) (uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)paramArray3, (uintptr_t)param4, (uintptr_t)param5); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPPPV__IJI_3F_3FJIJIZJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jint param2, jfloatArray param3, jfloatArray param4, jlong param5, jint param6, jlong param7, jint param8, jboolean param9, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param3, NULL); @@ -5213,7 +4589,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPPPV__IJI_3F_3FJIJIZJ(J ((void (*) (jint, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, jint, jboolean))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, param2, (uintptr_t)paramArray3, (uintptr_t)paramArray4, (uintptr_t)param5, param6, (uintptr_t)param7, param8, param9); if (param4 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param4, paramArray4, 0); } if (param3 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPPPV__I_3II_3F_3FJI_3IIZJ(JNIEnv *__env, jclass clazz, jint param0, jintArray param1, jint param2, jfloatArray param3, jfloatArray param4, jlong param5, jint param6, jintArray param7, jint param8, jboolean param9, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); @@ -5225,7 +4601,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPPPV__I_3II_3F_3FJI_3II if (param4 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param4, paramArray4, 0); } if (param3 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param3, paramArray3, 0); } if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPPPV__I_3SI_3F_3FJI_3SIZJ(JNIEnv *__env, jclass clazz, jint param0, jshortArray param1, jint param2, jfloatArray param3, jfloatArray param4, jlong param5, jint param6, jshortArray param7, jint param8, jboolean param9, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param1, NULL); @@ -5237,196 +4613,196 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_invokePPPPPV__I_3SI_3F_3FJI_3SI if (param4 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param4, paramArray4, 0); } if (param3 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param3, paramArray3, 0); } if (param1 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT jboolean JNICALL Java_org_lwjgl_system_JNI_invokePPZ__J_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jintArray param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); jboolean __result = ((jboolean (*) (uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)paramArray1); if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jboolean JNICALL Java_org_lwjgl_system_JNI_invokePPPZ__JJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jintArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); jboolean __result = ((jboolean (*) (uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPI___3IJ(JNIEnv *__env, jclass clazz, jintArray param0, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray0 = param0 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param0, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)paramArray0); if (param0 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param0, paramArray0, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPI__I_3IJ(JNIEnv *__env, jclass clazz, jint param0, jintArray param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); jint __result = ((jint (APIENTRY *) (jint, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1); if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPI___3IIJ(JNIEnv *__env, jclass clazz, jintArray param0, jint param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray0 = param0 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param0, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)paramArray0, param1); if (param0 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param0, paramArray0, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPI__II_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jintArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); jint __result = ((jint (APIENTRY *) (jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPI__I_3IIJ(JNIEnv *__env, jclass clazz, jint param0, jintArray param1, jint param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); jint __result = ((jint (APIENTRY *) (jint, uintptr_t, jint))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1, param2); if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPI__III_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jintArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); jint __result = ((jint (APIENTRY *) (jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPI__IIII_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jfloatArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param4, NULL); jint __result = ((jint (APIENTRY *) (jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPI__IIII_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); jint __result = ((jint (APIENTRY *) (jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__J_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jintArray param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)paramArray1); if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__J_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jlongArray param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param1, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)paramArray1); if (param1 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI___3IJJ(JNIEnv *__env, jclass clazz, jintArray param0, jlong param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray0 = param0 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param0, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)paramArray0, (uintptr_t)param1); if (param0 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param0, paramArray0, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__IJ_3IJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jintArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); jint __result = ((jint (APIENTRY *) (jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JI_3DJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jdoubleArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param2, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JI_3FJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jfloatArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param2, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JI_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jintArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JI_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlongArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param2, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JI_3SJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jshortArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param2, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JII_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jintArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__JII_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlongArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param3, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPI__IJIIF_3IJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jint param2, jint param3, jfloat param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param5, NULL); jint __result = ((jint (APIENTRY *) (jint, uintptr_t, jint, jint, jfloat, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, param2, param3, param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJPI__JJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jintArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jlong, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJPI__JJ_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlongArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param2, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jlong, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jintArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JJ_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlongArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param2, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__J_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jintArray param1, jlong param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)paramArray1, (uintptr_t)param2); if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__J_3I_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jintArray param1, jintArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); @@ -5435,7 +4811,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__J_3I_3IJ(JNIEnv *__en if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__J_3J_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jlongArray param1, jlongArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param1, NULL); @@ -5444,7 +4820,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__J_3J_3JJ(JNIEnv *__en if (param2 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param2, paramArray2, 0); } if (param1 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI___3IJ_3IJ(JNIEnv *__env, jclass clazz, jintArray param0, jlong param1, jintArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray0 = param0 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param0, NULL); @@ -5453,56 +4829,56 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI___3IJ_3IJ(JNIEnv *__en if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } if (param0 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param0, paramArray0, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJPI__JIJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jintArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jint, jlong, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJPI__JJI_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlongArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param3, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jlong, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JIJ_3DJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jdoubleArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param3, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JIJ_3FJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jfloatArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param3, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JIJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jintArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JIJ_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlongArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param3, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JIJ_3SJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jshortArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param3, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JI_3I_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jintArray param2, jintArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); @@ -5511,7 +4887,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JI_3I_3IJ(JNIEnv *__e if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JI_3I_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jintArray param2, jlongArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); @@ -5520,42 +4896,42 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JI_3I_3JJ(JNIEnv *__e if (param3 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param3, paramArray3, 0); } if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JJI_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jintArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JJI_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlongArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param3, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JJ_3IIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jintArray param2, jint param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)paramArray2, param3); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPJI__JI_3JIJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlongArray param2, jint param3, jlong param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param2, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, jint, jlong))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2, param3, param4); if (param2 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JIIJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlong param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JIII_3I_3FJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jint param3, jintArray param4, jfloatArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); @@ -5564,7 +4940,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JIII_3I_3FJ(JNIEnv *_ if (param5 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param5, paramArray5, 0); } if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JIII_3I_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jint param3, jintArray param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); @@ -5573,28 +4949,28 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPI__JIII_3I_3IJ(JNIEnv *_ if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJPPI__JJJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jintArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jlong, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJPPI__JJJ_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlongArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param3, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jlong, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJPPI__JJ_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jintArray param2, jlong param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jlong, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2, (uintptr_t)param3); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJPPI__JJ_3I_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jintArray param2, jintArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); @@ -5603,7 +4979,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJPPI__JJ_3I_3IJ(JNIEnv *__ if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJPPI__JJ_3I_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jintArray param2, jlongArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); @@ -5612,28 +4988,28 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJPPI__JJ_3I_3JJ(JNIEnv *__ if (param3 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param3, paramArray3, 0); } if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPNPI__JJJ_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlongArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param3, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, long, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (long)param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JJJ_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlongArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param3, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JJ_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jintArray param2, jlong param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)paramArray2, (uintptr_t)param3); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JJ_3I_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jintArray param2, jintArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); @@ -5642,35 +5018,35 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JJ_3I_3IJ(JNIEnv *__ if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJPPI__JJIJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jlong, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JIJJ_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jlongArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param4, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JIJ_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jintArray param3, jlong param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)paramArray3, (uintptr_t)param4); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JIJ_3JJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlongArray param3, jlong param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param3, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)paramArray3, (uintptr_t)param4); if (param3 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JIJ_3J_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlongArray param3, jlongArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param3, NULL); @@ -5679,35 +5055,35 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JIJ_3J_3JJ(JNIEnv *_ if (param4 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param4, paramArray4, 0); } if (param3 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JI_3IJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jintArray param2, jlong param3, jlong param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2, (uintptr_t)param3, (uintptr_t)param4); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JJIJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JJI_3JJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlongArray param3, jlong param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param3, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)paramArray3, (uintptr_t)param4); if (param3 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JJJI_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jint param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__J_3IJI_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jintArray param1, jlong param2, jint param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); @@ -5716,7 +5092,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__J_3IJI_3IJ(JNIEnv *_ if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__J_3JIJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlongArray param1, jint param2, jlong param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param1, NULL); @@ -5725,14 +5101,14 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__J_3JIJ_3IJ(JNIEnv *_ if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } if (param1 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJPPI__JJIIJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jlong param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param5, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jlong, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, (uintptr_t)param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJPPI__JJII_3I_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jintArray param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); @@ -5741,21 +5117,21 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJPPI__JJII_3I_3IJ(JNIEnv * if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JIIJ_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlong param3, jintArray param4, jlong param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jint, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, (uintptr_t)paramArray4, (uintptr_t)param5); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JIIJ_3JJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlong param3, jlongArray param4, jlong param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param4, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jint, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, (uintptr_t)paramArray4, (uintptr_t)param5); if (param4 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JII_3J_3I_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlongArray param3, jintArray param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param3, NULL); @@ -5766,21 +5142,21 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JII_3J_3I_3IJ(JNIEnv if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } if (param3 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJPPI__JJIIIJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jint param4, jlong param5, jintArray param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray6 = param6 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param6, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jlong, jint, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, (uintptr_t)param5, (uintptr_t)paramArray6); if (param6 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param6, paramArray6, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__JIJIIJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jint param3, jint param4, jlong param5, jintArray param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray6 = param6 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param6, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, param3, param4, (uintptr_t)param5, (uintptr_t)paramArray6); if (param6 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param6, paramArray6, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__I_3I_3JIIIIIIIIIIIIIIIIII_3I_3JJ(JNIEnv *__env, jclass clazz, jint param0, jintArray param1, jlongArray param2, jint param3, jint param4, jint param5, jint param6, jint param7, jint param8, jint param9, jint param10, jint param11, jint param12, jint param13, jint param14, jint param15, jint param16, jint param17, jint param18, jint param19, jint param20, jintArray param21, jlongArray param22, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); @@ -5793,21 +5169,21 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPI__I_3I_3JIIIIIIIIIIIII if (param2 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param2, paramArray2, 0); } if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJPPPI__JJJJ_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlongArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param4, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jlong, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPJPPI__JJJ_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jintArray param3, jlong param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, jlong, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)paramArray3, (uintptr_t)param4); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPI__JJ_3I_3I_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jintArray param2, jintArray param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); @@ -5818,7 +5194,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPI__JJ_3I_3I_3IJ(JNIEnv if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPI__JJ_3I_3I_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jintArray param2, jintArray param3, jlongArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); @@ -5829,7 +5205,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPI__JJ_3I_3I_3JJ(JNIEnv if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPI__J_3I_3I_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jintArray param1, jintArray param2, jintArray param3, jlong param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); @@ -5840,28 +5216,28 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPI__J_3I_3I_3IJJ(JNIEnv if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJPPPI__JJIJJ_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jlong param4, jlongArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param5, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jlong, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param5, paramArray5, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPI__JJIJ_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jintArray param4, jlong param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)paramArray4, (uintptr_t)param5); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPI__JJIJ_3JJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jlongArray param4, jlong param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param4, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)paramArray4, (uintptr_t)param5); if (param4 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPI__JJI_3I_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jintArray param3, jintArray param4, jlong param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); @@ -5870,7 +5246,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPI__JJI_3I_3IJJ(JNIEnv if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPI__JJJ_3II_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jintArray param3, jint param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); @@ -5879,7 +5255,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPI__JJJ_3II_3IJ(JNIEnv if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPI__J_3I_3FI_3I_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jintArray param1, jfloatArray param2, jint param3, jintArray param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); @@ -5892,7 +5268,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPI__J_3I_3FI_3I_3IJ(JNI if (param2 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param2, paramArray2, 0); } if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPI__II_3I_3I_3I_3IJJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jintArray param2, jintArray param3, jintArray param4, jintArray param5, jlong param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); @@ -5905,42 +5281,42 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPI__II_3I_3I_3I_3IJJ(JN if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPI__JIJ_3JIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlongArray param3, jint param4, jlong param5, jlong param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param3, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)paramArray3, param4, (uintptr_t)param5, (uintptr_t)param6); if (param3 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPI__JI_3JIJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlongArray param2, jint param3, jlong param4, jlong param5, jlong param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param2, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jint, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2, param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6); if (param2 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJPPJI__JJIIJ_3IJIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jlong param4, jintArray param5, jlong param6, jint param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param5, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jlong, jint, jint, uintptr_t, uintptr_t, jlong, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, (uintptr_t)param4, (uintptr_t)paramArray5, param6, param7); if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJPPJI__JJIIJ_3JJIJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jlong param4, jlongArray param5, jlong param6, jint param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param5, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jlong, jint, jint, uintptr_t, uintptr_t, jlong, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, (uintptr_t)param4, (uintptr_t)paramArray5, param6, param7); if (param5 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param5, paramArray5, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJJJJPI__JJJJJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param5, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jlong, jlong, jlong, jlong, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPI__J_3I_3I_3I_3I_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jintArray param1, jintArray param2, jintArray param3, jintArray param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); @@ -5955,14 +5331,14 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPI__J_3I_3I_3I_3I_3IJ( if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPJJPPPI__JJJIJJ_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jint param3, jlong param4, jlong param5, jlongArray param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray6 = param6 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param6, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, jlong, jlong, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)paramArray6); if (param6 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param6, paramArray6, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPI__II_3I_3I_3I_3I_3IJJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jintArray param2, jintArray param3, jintArray param4, jintArray param5, jintArray param6, jlong param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); @@ -5977,63 +5353,63 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPI__II_3I_3I_3I_3I_3IJ if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPI__JJJJIJ_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jint param4, jlong param5, jintArray param6, jlong param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray6 = param6 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param6, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)param3, param4, (uintptr_t)param5, (uintptr_t)paramArray6, (uintptr_t)param7); if (param6 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param6, paramArray6, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPI__JJ_3FJJIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jfloatArray param2, jlong param3, jlong param4, jint param5, jlong param6, jlong param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param2, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)paramArray2, (uintptr_t)param3, (uintptr_t)param4, param5, (uintptr_t)param6, (uintptr_t)param7); if (param2 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPI__JJ_3IJJIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jintArray param2, jlong param3, jlong param4, jint param5, jlong param6, jlong param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)paramArray2, (uintptr_t)param3, (uintptr_t)param4, param5, (uintptr_t)param6, (uintptr_t)param7); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPI__JJIJJ_3DIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jlong param4, jdoubleArray param5, jint param6, jlong param7, jlong param8, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param5, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)paramArray5, param6, (uintptr_t)param7, (uintptr_t)param8); if (param5 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param5, paramArray5, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPI__JJIJJ_3FIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jlong param4, jfloatArray param5, jint param6, jlong param7, jlong param8, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param5, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)paramArray5, param6, (uintptr_t)param7, (uintptr_t)param8); if (param5 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param5, paramArray5, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPI__JJIJJ_3IIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jlong param4, jintArray param5, jint param6, jlong param7, jlong param8, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param5, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)paramArray5, param6, (uintptr_t)param7, (uintptr_t)param8); if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPI__JJIJJ_3SIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jlong param4, jshortArray param5, jint param6, jlong param7, jlong param8, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param5, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)paramArray5, param6, (uintptr_t)param7, (uintptr_t)param8); if (param5 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param5, paramArray5, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPJPPPPPI__J_3JJJJIJJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlongArray param1, jlong param2, jlong param3, jlong param4, jint param5, jlong param6, jlong param7, jlong param8, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param1, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, jlong, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)paramArray1, param2, (uintptr_t)param3, (uintptr_t)param4, param5, (uintptr_t)param6, (uintptr_t)param7, (uintptr_t)param8); if (param1 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPJPPPPPI__J_3JJJJIJ_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jlongArray param1, jlong param2, jlong param3, jlong param4, jint param5, jlong param6, jintArray param7, jlong param8, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param1, NULL); @@ -6042,7 +5418,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPJPPPPPI__J_3JJJJIJ_3IJJ(J if (param7 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param7, paramArray7, 0); } if (param1 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPPPI__JJJJJJI_3I_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jlong param5, jint param6, jintArray param7, jintArray param8, jlong param9, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray7 = param7 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param7, NULL); @@ -6051,7 +5427,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPPPI__JJJJJJI_3I_3IJJ if (param8 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param8, paramArray8, 0); } if (param7 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param7, paramArray7, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPPPI__JJJ_3FJJI_3I_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jfloatArray param3, jlong param4, jlong param5, jint param6, jintArray param7, jintArray param8, jlong param9, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param3, NULL); @@ -6062,7 +5438,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPPPI__JJJ_3FJJI_3I_3I if (param7 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param7, paramArray7, 0); } if (param3 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPPPI__JJJ_3IJJI_3I_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jintArray param3, jlong param4, jlong param5, jint param6, jintArray param7, jintArray param8, jlong param9, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); @@ -6073,35 +5449,35 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPPPI__JJJ_3IJJI_3I_3I if (param7 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param7, paramArray7, 0); } if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPPPI__JJIJJJJ_3DIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jlong param4, jlong param5, jlong param6, jdoubleArray param7, jint param8, jlong param9, jlong param10, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray7 = param7 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param7, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6, (uintptr_t)paramArray7, param8, (uintptr_t)param9, (uintptr_t)param10); if (param7 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param7, paramArray7, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPPPI__JJIJJJJ_3FIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jlong param4, jlong param5, jlong param6, jfloatArray param7, jint param8, jlong param9, jlong param10, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray7 = param7 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param7, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6, (uintptr_t)paramArray7, param8, (uintptr_t)param9, (uintptr_t)param10); if (param7 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param7, paramArray7, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPPPI__JJIJJJJ_3IIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jlong param4, jlong param5, jlong param6, jintArray param7, jint param8, jlong param9, jlong param10, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray7 = param7 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param7, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6, (uintptr_t)paramArray7, param8, (uintptr_t)param9, (uintptr_t)param10); if (param7 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param7, paramArray7, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPPPI__JJIJJJJ_3SIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jlong param4, jlong param5, jlong param6, jshortArray param7, jint param8, jlong param9, jlong param10, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray7 = param7 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param7, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6, (uintptr_t)paramArray7, param8, (uintptr_t)param9, (uintptr_t)param10); if (param7 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param7, paramArray7, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPPPPI__JJJJJJJI_3I_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong param6, jint param7, jintArray param8, jintArray param9, jlong param10, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray8 = param8 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param8, NULL); @@ -6110,7 +5486,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPPPPI__JJJJJJJI_3I_3I if (param9 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param9, paramArray9, 0); } if (param8 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param8, paramArray8, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPPPPI__JJ_3JJIJJJI_3I_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlongArray param2, jlong param3, jint param4, jlong param5, jlong param6, jlong param7, jint param8, jintArray param9, jintArray param10, jlong param11, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param2, NULL); @@ -6121,35 +5497,35 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPPPPI__JJ_3JJIJJJI_3I if (param9 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param9, paramArray9, 0); } if (param2 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPPPPPPI__JJIJJJJJJJ_3DIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jlong param4, jlong param5, jlong param6, jlong param7, jlong param8, jlong param9, jdoubleArray param10, jint param11, jlong param12, jlong param13, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray10 = param10 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param10, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6, (uintptr_t)param7, (uintptr_t)param8, (uintptr_t)param9, (uintptr_t)paramArray10, param11, (uintptr_t)param12, (uintptr_t)param13); if (param10 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param10, paramArray10, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPPPPPPI__JJIJJJJJJJ_3FIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jlong param4, jlong param5, jlong param6, jlong param7, jlong param8, jlong param9, jfloatArray param10, jint param11, jlong param12, jlong param13, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray10 = param10 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param10, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6, (uintptr_t)param7, (uintptr_t)param8, (uintptr_t)param9, (uintptr_t)paramArray10, param11, (uintptr_t)param12, (uintptr_t)param13); if (param10 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param10, paramArray10, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPPPPPPI__JJIJJJJJJJ_3IIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jlong param4, jlong param5, jlong param6, jlong param7, jlong param8, jlong param9, jintArray param10, jint param11, jlong param12, jlong param13, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray10 = param10 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param10, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6, (uintptr_t)param7, (uintptr_t)param8, (uintptr_t)param9, (uintptr_t)paramArray10, param11, (uintptr_t)param12, (uintptr_t)param13); if (param10 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param10, paramArray10, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPPPPPPI__JJIJJJJJJJ_3SIJJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jlong param4, jlong param5, jlong param6, jlong param7, jlong param8, jlong param9, jshortArray param10, jint param11, jlong param12, jlong param13, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray10 = param10 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param10, NULL); jint __result = ((jint (APIENTRY *) (uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6, (uintptr_t)param7, (uintptr_t)param8, (uintptr_t)param9, (uintptr_t)paramArray10, param11, (uintptr_t)param12, (uintptr_t)param13); if (param10 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param10, paramArray10, 0); } return __result; -} +} JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPPPPPPPPI__JJJJJJJJJJJI_3I_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong param6, jlong param7, jlong param8, jlong param9, jlong param10, jint param11, jintArray param12, jintArray param13, jlong param14, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray12 = param12 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param12, NULL); @@ -6158,35 +5534,35 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPPPPPPPPI__JJJJJJJJJJ if (param13 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param13, paramArray13, 0); } if (param12 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param12, paramArray12, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPP___3IJ(JNIEnv *__env, jclass clazz, jintArray param0, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray0 = param0 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param0, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)paramArray0); if (param0 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param0, paramArray0, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPP__J_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jintArray param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)paramArray1); if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPP__IJ_3IJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jintArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPP__JI_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jintArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPP__III_3I_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jintArray param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); @@ -6195,21 +5571,21 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPP__III_3I_3IJ(JNIEnv *__ if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPP__JIII_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jint param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPP__JJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jintArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPP__J_3J_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlongArray param1, jintArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param1, NULL); @@ -6218,14 +5594,14 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPP__J_3J_3IJ(JNIEnv *__e if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } if (param1 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPP__JJI_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jintArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, jlong, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPP__IJ_3J_3IJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jlongArray param2, jintArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param2, NULL); @@ -6234,56 +5610,56 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPP__IJ_3J_3IJ(JNIEnv *__ if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } if (param2 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPP__JI_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jintArray param2, jlong param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2, (uintptr_t)param3); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPP__JJI_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jintArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPP__JJII_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, uintptr_t, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPP__JJIII_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jint param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param5, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, jlong, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPJPP__JJJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jintArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, uintptr_t, jlong, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPNPP__JJJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jintArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, uintptr_t, long, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (long)param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPPP__JJJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jintArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPPP__JJ_3J_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlongArray param2, jintArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param2, NULL); @@ -6292,14 +5668,14 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPPP__JJ_3J_3IJ(JNIEnv *_ if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } if (param2 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPP__JJIJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, jlong, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPP__JJ_3II_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jintArray param2, jint param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); @@ -6308,28 +5684,28 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPP__JJ_3II_3IJ(JNIEnv * if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPPP__JIJJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPPP__JJIJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPPP__JJJI_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jint param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPPP__J_3JJI_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlongArray param1, jlong param2, jint param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param1, NULL); @@ -6338,21 +5714,21 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPPP__J_3JJI_3IJ(JNIEnv * if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } if (param1 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPP__JJIIJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jlong param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param5, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, jlong, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, (uintptr_t)param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPP__JJJJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, jlong, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPP__JJJ_3D_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jdoubleArray param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param3, NULL); @@ -6361,7 +5737,7 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPP__JJJ_3D_3IJ(JNIEnv if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } if (param3 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPP__JJJ_3F_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jfloatArray param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param3, NULL); @@ -6370,7 +5746,7 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPP__JJJ_3F_3IJ(JNIEnv if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } if (param3 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPP__JJJ_3I_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jintArray param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); @@ -6379,7 +5755,7 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPP__JJJ_3I_3IJ(JNIEnv if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPP__JJJ_3S_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jshortArray param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param3, NULL); @@ -6388,14 +5764,14 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPP__JJJ_3S_3IJ(JNIEnv if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } if (param3 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param3, paramArray3, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPPPP__JIJJJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jlong param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param5, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPPPP__JJ_3JJI_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlongArray param2, jlong param3, jint param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param2, NULL); @@ -6404,14 +5780,14 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPPPP__JJ_3JJI_3IJ(JNIEnv if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } if (param2 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param2, paramArray2, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJJPPPP__JJJJJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param5, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, jlong, jlong, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJJPPPP__JJJJ_3D_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jdoubleArray param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param4, NULL); @@ -6420,7 +5796,7 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJJPPPP__JJJJ_3D_3IJ(JNIEn if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } if (param4 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJJPPPP__JJJJ_3F_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jfloatArray param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param4, NULL); @@ -6429,7 +5805,7 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJJPPPP__JJJJ_3F_3IJ(JNIEn if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } if (param4 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJJPPPP__JJJJ_3I_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jintArray param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); @@ -6438,7 +5814,7 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJJPPPP__JJJJ_3I_3IJ(JNIEn if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJJPPPP__JJJJ_3S_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jshortArray param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param4, NULL); @@ -6447,14 +5823,14 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJJPPPP__JJJJ_3S_3IJ(JNIEn if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } if (param4 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPPP__JJJJJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param5, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, jlong, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPPP__JJJJ_3F_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jfloatArray param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param4, NULL); @@ -6463,7 +5839,7 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPPP__JJJJ_3F_3IJ(JNIEn if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } if (param4 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPPP__JJJJ_3I_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jintArray param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); @@ -6472,7 +5848,7 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPPP__JJJJ_3I_3IJ(JNIEn if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPPP__JJJJ_3S_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jshortArray param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param4, NULL); @@ -6481,7 +5857,7 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPPP__JJJJ_3S_3IJ(JNIEn if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } if (param4 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPJPPPP__J_3JJJJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlongArray param1, jlong param2, jlong param3, jlong param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param1, NULL); @@ -6490,7 +5866,7 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPJPPPP__J_3JJJJ_3IJ(JNIEn if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } if (param1 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPJPPPP__J_3JJJ_3D_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlongArray param1, jlong param2, jlong param3, jdoubleArray param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param1, NULL); @@ -6501,7 +5877,7 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPJPPPP__J_3JJJ_3D_3IJ(JNI if (param4 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param4, paramArray4, 0); } if (param1 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPJPPPP__J_3JJJ_3F_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlongArray param1, jlong param2, jlong param3, jfloatArray param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param1, NULL); @@ -6512,7 +5888,7 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPJPPPP__J_3JJJ_3F_3IJ(JNI if (param4 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param4, paramArray4, 0); } if (param1 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPJPPPP__J_3JJJ_3I_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlongArray param1, jlong param2, jlong param3, jintArray param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param1, NULL); @@ -6523,7 +5899,7 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPJPPPP__J_3JJJ_3I_3IJ(JNI if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } if (param1 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPJPPPP__J_3JJJ_3S_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlongArray param1, jlong param2, jlong param3, jshortArray param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param1, NULL); @@ -6534,14 +5910,14 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPJPPPP__J_3JJJ_3S_3IJ(JNI if (param4 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param4, paramArray4, 0); } if (param1 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPJPPP__JJJJJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param5, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t, jlong, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)param2, param3, (uintptr_t)param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPPPPP__JIJJJ_3I_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jlong param4, jintArray param5, jintArray param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param5, NULL); @@ -6550,7 +5926,7 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPPPPP__JIJJJ_3I_3IJ(JNIE if (param6 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param6, paramArray6, 0); } if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPJPPPPP__J_3JJJJJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlongArray param1, jlong param2, jlong param3, jlong param4, jlong param5, jintArray param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param1, NULL); @@ -6559,7 +5935,7 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPJPPPPP__J_3JJJJJ_3IJ(JNI if (param6 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param6, paramArray6, 0); } if (param1 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPJPPPPP__J_3JJJJ_3F_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlongArray param1, jlong param2, jlong param3, jlong param4, jfloatArray param5, jintArray param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param1, NULL); @@ -6570,7 +5946,7 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPJPPPPP__J_3JJJJ_3F_3IJ(J if (param5 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param5, paramArray5, 0); } if (param1 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPJPPPPP__J_3JJJJ_3I_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlongArray param1, jlong param2, jlong param3, jlong param4, jintArray param5, jintArray param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param1, NULL); @@ -6581,7 +5957,7 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPJPPPPP__J_3JJJJ_3I_3IJ(J if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } if (param1 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPJPPPPP__J_3JJJJ_3S_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlongArray param1, jlong param2, jlong param3, jlong param4, jshortArray param5, jintArray param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param1, NULL); @@ -6592,14 +5968,14 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPJPPPPP__J_3JJJJ_3S_3IJ(J if (param5 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param5, paramArray5, 0); } if (param1 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPP__JIJJIJJJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jint param4, jlong param5, jlong param6, jlong param7, jintArray param8, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray8 = param8 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param8, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, param4, (uintptr_t)param5, (uintptr_t)param6, (uintptr_t)param7, (uintptr_t)paramArray8); if (param8 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param8, paramArray8, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPP__I_3I_3JIIIIJJJI_3I_3JJ(JNIEnv *__env, jclass clazz, jint param0, jintArray param1, jlongArray param2, jint param3, jint param4, jint param5, jint param6, jlong param7, jlong param8, jlong param9, jint param10, jintArray param11, jlongArray param12, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); @@ -6612,14 +5988,14 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPP__I_3I_3JIIIIJJJI_ if (param2 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param2, paramArray2, 0); } if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPPPPP__JJJJJJJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong param6, jintArray param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray7 = param7 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param7, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, jlong, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6, (uintptr_t)paramArray7); if (param7 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param7, paramArray7, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPPPPP__JJJJJJ_3F_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jlong param5, jfloatArray param6, jintArray param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray6 = param6 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param6, NULL); @@ -6628,7 +6004,7 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPPPPP__JJJJJJ_3F_3IJ(J if (param7 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param7, paramArray7, 0); } if (param6 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param6, paramArray6, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPPPPP__JJJJJJ_3I_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jlong param5, jintArray param6, jintArray param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray6 = param6 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param6, NULL); @@ -6637,7 +6013,7 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPPPPP__JJJJJJ_3I_3IJ(J if (param7 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param7, paramArray7, 0); } if (param6 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param6, paramArray6, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPPPPP__JJJJJJ_3S_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jlong param5, jshortArray param6, jintArray param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray6 = param6 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param6, NULL); @@ -6646,21 +6022,21 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPPPPP__JJJJJJ_3S_3IJ(J if (param7 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param7, paramArray7, 0); } if (param6 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param6, paramArray6, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPJPPPPPP__JJIJJJIJJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jlong param4, jlong param5, jint param6, jlong param7, jlong param8, jintArray param9, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray9 = param9 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param9, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, uintptr_t, jint, jlong, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, param3, (uintptr_t)param4, (uintptr_t)param5, param6, (uintptr_t)param7, (uintptr_t)param8, (uintptr_t)paramArray9); if (param9 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param9, paramArray9, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPPPPPPP__JJJJJJJJJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong param6, jlong param7, jlong param8, jintArray param9, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray9 = param9 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param9, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, jlong, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6, (uintptr_t)param7, (uintptr_t)param8, (uintptr_t)paramArray9); if (param9 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param9, paramArray9, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPPPPPPP__JJJJJJJJ_3F_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong param6, jlong param7, jfloatArray param8, jintArray param9, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray8 = param8 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param8, NULL); @@ -6669,7 +6045,7 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPPPPPPP__JJJJJJJJ_3F_3 if (param9 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param9, paramArray9, 0); } if (param8 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param8, paramArray8, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPPPPPPP__JJJJJJJJ_3I_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong param6, jlong param7, jintArray param8, jintArray param9, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray8 = param8 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param8, NULL); @@ -6678,7 +6054,7 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPPPPPPP__JJJJJJJJ_3I_3 if (param9 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param9, paramArray9, 0); } if (param8 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param8, paramArray8, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPPPPPPP__JJJJJJJJ_3S_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlong param4, jlong param5, jlong param6, jlong param7, jshortArray param8, jintArray param9, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray8 = param8 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param8, NULL); @@ -6687,458 +6063,458 @@ JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPJPPPPPPPPP__JJJJJJJJ_3S_3 if (param9 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param9, paramArray9, 0); } if (param8 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param8, paramArray8, 0); } return __result; -} +} JNIEXPORT jlong JNICALL Java_org_lwjgl_system_JNI_callPPJPPPPPPPP__JJIJJJJJIJJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlong param3, jlong param4, jlong param5, jlong param6, jlong param7, jint param8, jlong param9, jlong param10, jintArray param11, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray11 = param11 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param11, NULL); jlong __result = (jlong)((uintptr_t (APIENTRY *) (uintptr_t, uintptr_t, jint, jlong, uintptr_t, uintptr_t, uintptr_t, uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, param3, (uintptr_t)param4, (uintptr_t)param5, (uintptr_t)param6, (uintptr_t)param7, param8, (uintptr_t)param9, (uintptr_t)param10, (uintptr_t)paramArray11); if (param11 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param11, paramArray11, 0); } return __result; -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV___3DJ(JNIEnv *__env, jclass clazz, jdoubleArray param0, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray0 = param0 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param0, NULL); ((void (APIENTRY *) (uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)paramArray0); if (param0 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param0, paramArray0, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV___3FJ(JNIEnv *__env, jclass clazz, jfloatArray param0, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray0 = param0 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param0, NULL); ((void (APIENTRY *) (uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)paramArray0); if (param0 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param0, paramArray0, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV___3IJ(JNIEnv *__env, jclass clazz, jintArray param0, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray0 = param0 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param0, NULL); ((void (APIENTRY *) (uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)paramArray0); if (param0 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param0, paramArray0, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV___3SJ(JNIEnv *__env, jclass clazz, jshortArray param0, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray0 = param0 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param0, NULL); ((void (APIENTRY *) (uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)paramArray0); if (param0 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param0, paramArray0, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__I_3DJ(JNIEnv *__env, jclass clazz, jint param0, jdoubleArray param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param1, NULL); ((void (APIENTRY *) (jint, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1); if (param1 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__I_3FJ(JNIEnv *__env, jclass clazz, jint param0, jfloatArray param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param1, NULL); ((void (APIENTRY *) (jint, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1); if (param1 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__I_3IJ(JNIEnv *__env, jclass clazz, jint param0, jintArray param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); ((void (APIENTRY *) (jint, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1); if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__I_3JJ(JNIEnv *__env, jclass clazz, jint param0, jlongArray param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param1, NULL); ((void (APIENTRY *) (jint, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1); if (param1 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__I_3SJ(JNIEnv *__env, jclass clazz, jint param0, jshortArray param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param1, NULL); ((void (APIENTRY *) (jint, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1); if (param1 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__II_3DJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jdoubleArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param2, NULL); ((void (APIENTRY *) (jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__II_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jfloatArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param2, NULL); ((void (APIENTRY *) (jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__II_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jintArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); ((void (APIENTRY *) (jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__II_3JJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jlongArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param2, NULL); ((void (APIENTRY *) (jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__II_3SJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jshortArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param2, NULL); ((void (APIENTRY *) (jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__I_3IIJ(JNIEnv *__env, jclass clazz, jint param0, jintArray param1, jint param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); ((void (APIENTRY *) (jint, uintptr_t, jint))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1, param2); if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__III_3DJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jdoubleArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param3, NULL); ((void (APIENTRY *) (jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__III_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jfloatArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param3, NULL); ((void (APIENTRY *) (jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__III_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jintArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); ((void (APIENTRY *) (jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__III_3JJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jlongArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param3, NULL); ((void (APIENTRY *) (jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__III_3SJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jshortArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param3, NULL); ((void (APIENTRY *) (jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIZ_3DJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jboolean param2, jdoubleArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param3, NULL); ((void (APIENTRY *) (jint, jint, jboolean, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIZ_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jboolean param2, jfloatArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param3, NULL); ((void (APIENTRY *) (jint, jint, jboolean, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIZ_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jboolean param2, jintArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); ((void (APIENTRY *) (jint, jint, jboolean, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__II_3IIJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jintArray param2, jint param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); ((void (APIENTRY *) (jint, jint, uintptr_t, jint))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)paramArray2, param3); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__I_3IIIJ(JNIEnv *__env, jclass clazz, jint param0, jintArray param1, jint param2, jint param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); ((void (APIENTRY *) (jint, uintptr_t, jint, jint))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1, param2, param3); if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIII_3DJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jdoubleArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param4, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param4, paramArray4, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIII_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jfloatArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param4, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param4, paramArray4, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIII_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIII_3JJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jlongArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param4, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param4, paramArray4, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIII_3SJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jshortArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param4, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param4, paramArray4, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIZ_3DJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jboolean param3, jdoubleArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param4, NULL); ((void (APIENTRY *) (jint, jint, jint, jboolean, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param4, paramArray4, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIZ_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jboolean param3, jfloatArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param4, NULL); ((void (APIENTRY *) (jint, jint, jint, jboolean, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param4, paramArray4, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__III_3IZJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jintArray param3, jboolean param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); ((void (APIENTRY *) (jint, jint, jint, uintptr_t, jboolean))(uintptr_t)__functionAddress)(param0, param1, param2, (uintptr_t)paramArray3, param4); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__II_3IIIJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jintArray param2, jint param3, jint param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); ((void (APIENTRY *) (jint, jint, uintptr_t, jint, jint))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)paramArray2, param3, param4); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IZII_3IJ(JNIEnv *__env, jclass clazz, jint param0, jboolean param1, jint param2, jint param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); ((void (APIENTRY *) (jint, jboolean, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IDDII_3DJ(JNIEnv *__env, jclass clazz, jint param0, jdouble param1, jdouble param2, jint param3, jint param4, jdoubleArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param5, NULL); ((void (APIENTRY *) (jint, jdouble, jdouble, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param5, paramArray5, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IFFII_3FJ(JNIEnv *__env, jclass clazz, jint param0, jfloat param1, jfloat param2, jint param3, jint param4, jfloatArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param5, NULL); ((void (APIENTRY *) (jint, jfloat, jfloat, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param5, paramArray5, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIII_3DJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jdoubleArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param5, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param5, paramArray5, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIII_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jfloatArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param5, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param5, paramArray5, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIII_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param5, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIII_3SJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jshortArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param5, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param5, paramArray5, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIII_3IZJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jintArray param4, jboolean param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, uintptr_t, jboolean))(uintptr_t)__functionAddress)(param0, param1, param2, param3, (uintptr_t)paramArray4, param5); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIZI_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jboolean param3, jint param4, jfloatArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param5, NULL); ((void (APIENTRY *) (jint, jint, jint, jboolean, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param5, paramArray5, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIZI_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jboolean param3, jint param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param5, NULL); ((void (APIENTRY *) (jint, jint, jint, jboolean, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIZI_3SJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jboolean param3, jint param4, jshortArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param5, NULL); ((void (APIENTRY *) (jint, jint, jint, jboolean, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param5, paramArray5, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIIII_3DJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jdoubleArray param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray6 = param6 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param6, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, (uintptr_t)paramArray6); if (param6 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param6, paramArray6, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIIII_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jfloatArray param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray6 = param6 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param6, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, (uintptr_t)paramArray6); if (param6 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param6, paramArray6, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIIII_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jintArray param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray6 = param6 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param6, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, (uintptr_t)paramArray6); if (param6 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param6, paramArray6, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIIII_3SJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jshortArray param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray6 = param6 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param6, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, (uintptr_t)paramArray6); if (param6 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param6, paramArray6, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__II_3IIIIIJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jintArray param2, jint param3, jint param4, jint param5, jint param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); ((void (APIENTRY *) (jint, jint, uintptr_t, jint, jint, jint, jint))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)paramArray2, param3, param4, param5, param6); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIIIII_3DJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jint param6, jdoubleArray param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray7 = param7 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param7, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, param6, (uintptr_t)paramArray7); if (param7 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param7, paramArray7, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIIIII_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jint param6, jfloatArray param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray7 = param7 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param7, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, param6, (uintptr_t)paramArray7); if (param7 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param7, paramArray7, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIIIII_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jint param6, jintArray param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray7 = param7 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param7, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, param6, (uintptr_t)paramArray7); if (param7 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param7, paramArray7, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIIIII_3SJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jint param6, jshortArray param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray7 = param7 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param7, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, param6, (uintptr_t)paramArray7); if (param7 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param7, paramArray7, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIIIIII_3DJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jint param6, jint param7, jdoubleArray param8, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray8 = param8 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param8, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, param6, param7, (uintptr_t)paramArray8); if (param8 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param8, paramArray8, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIIIIII_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jint param6, jint param7, jfloatArray param8, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray8 = param8 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param8, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, param6, param7, (uintptr_t)paramArray8); if (param8 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param8, paramArray8, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIIIIII_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jint param6, jint param7, jintArray param8, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray8 = param8 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param8, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, param6, param7, (uintptr_t)paramArray8); if (param8 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param8, paramArray8, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIIIIII_3SJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jint param6, jint param7, jshortArray param8, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray8 = param8 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param8, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, param6, param7, (uintptr_t)paramArray8); if (param8 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param8, paramArray8, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IDDIIDDII_3DJ(JNIEnv *__env, jclass clazz, jint param0, jdouble param1, jdouble param2, jint param3, jint param4, jdouble param5, jdouble param6, jint param7, jint param8, jdoubleArray param9, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray9 = param9 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param9, NULL); ((void (APIENTRY *) (jint, jdouble, jdouble, jint, jint, jdouble, jdouble, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, param6, param7, param8, (uintptr_t)paramArray9); if (param9 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param9, paramArray9, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IFFIIFFII_3FJ(JNIEnv *__env, jclass clazz, jint param0, jfloat param1, jfloat param2, jint param3, jint param4, jfloat param5, jfloat param6, jint param7, jint param8, jfloatArray param9, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray9 = param9 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param9, NULL); ((void (APIENTRY *) (jint, jfloat, jfloat, jint, jint, jfloat, jfloat, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, param6, param7, param8, (uintptr_t)paramArray9); if (param9 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param9, paramArray9, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIIIIIII_3DJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jint param6, jint param7, jint param8, jdoubleArray param9, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray9 = param9 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param9, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, param6, param7, param8, (uintptr_t)paramArray9); if (param9 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param9, paramArray9, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIIIIIII_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jint param6, jint param7, jint param8, jfloatArray param9, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray9 = param9 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param9, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, param6, param7, param8, (uintptr_t)paramArray9); if (param9 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param9, paramArray9, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIIIIIII_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jint param6, jint param7, jint param8, jintArray param9, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray9 = param9 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param9, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, param6, param7, param8, (uintptr_t)paramArray9); if (param9 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param9, paramArray9, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIIIIIII_3SJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jint param6, jint param7, jint param8, jshortArray param9, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray9 = param9 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param9, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, param6, param7, param8, (uintptr_t)paramArray9); if (param9 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param9, paramArray9, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIIIIIIII_3DJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jint param6, jint param7, jint param8, jint param9, jdoubleArray param10, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray10 = param10 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param10, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, param6, param7, param8, param9, (uintptr_t)paramArray10); if (param10 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param10, paramArray10, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIIIIIIII_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jint param6, jint param7, jint param8, jint param9, jfloatArray param10, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray10 = param10 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param10, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, param6, param7, param8, param9, (uintptr_t)paramArray10); if (param10 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param10, paramArray10, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIIIIIIII_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jint param6, jint param7, jint param8, jint param9, jintArray param10, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray10 = param10 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param10, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, param6, param7, param8, param9, (uintptr_t)paramArray10); if (param10 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param10, paramArray10, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIIIIIIII_3SJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jint param6, jint param7, jint param8, jint param9, jshortArray param10, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray10 = param10 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param10, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, param6, param7, param8, param9, (uintptr_t)paramArray10); if (param10 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param10, paramArray10, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIIIIIIIII_3DJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jint param6, jint param7, jint param8, jint param9, jint param10, jdoubleArray param11, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray11 = param11 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param11, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, (uintptr_t)paramArray11); if (param11 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param11, paramArray11, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIIIIIIIII_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jint param6, jint param7, jint param8, jint param9, jint param10, jfloatArray param11, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray11 = param11 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param11, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, (uintptr_t)paramArray11); if (param11 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param11, paramArray11, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIIIIIIIII_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jint param6, jint param7, jint param8, jint param9, jint param10, jintArray param11, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray11 = param11 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param11, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, (uintptr_t)paramArray11); if (param11 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param11, paramArray11, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPV__IIIIIIIIIII_3SJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jint param4, jint param5, jint param6, jint param7, jint param8, jint param9, jint param10, jshortArray param11, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray11 = param11 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param11, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, jint, jint, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, (uintptr_t)paramArray11); if (param11 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param11, paramArray11, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__J_3FJ(JNIEnv *__env, jclass clazz, jlong param0, jfloatArray param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param1, NULL); ((void (APIENTRY *) (uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)paramArray1); if (param1 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__J_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jintArray param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); ((void (APIENTRY *) (uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)paramArray1); if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV___3D_3DJ(JNIEnv *__env, jclass clazz, jdoubleArray param0, jdoubleArray param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray0 = param0 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param0, NULL); @@ -7146,7 +6522,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV___3D_3DJ(JNIEnv *__env, ((void (APIENTRY *) (uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)paramArray0, (uintptr_t)paramArray1); if (param1 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param1, paramArray1, 0); } if (param0 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param0, paramArray0, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV___3F_3FJ(JNIEnv *__env, jclass clazz, jfloatArray param0, jfloatArray param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray0 = param0 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param0, NULL); @@ -7154,7 +6530,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV___3F_3FJ(JNIEnv *__env, ((void (APIENTRY *) (uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)paramArray0, (uintptr_t)paramArray1); if (param1 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param1, paramArray1, 0); } if (param0 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param0, paramArray0, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV___3I_3IJ(JNIEnv *__env, jclass clazz, jintArray param0, jintArray param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray0 = param0 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param0, NULL); @@ -7162,7 +6538,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV___3I_3IJ(JNIEnv *__env, ((void (APIENTRY *) (uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)paramArray0, (uintptr_t)paramArray1); if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } if (param0 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param0, paramArray0, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV___3S_3SJ(JNIEnv *__env, jclass clazz, jshortArray param0, jshortArray param1, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray0 = param0 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param0, NULL); @@ -7170,13 +6546,13 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV___3S_3SJ(JNIEnv *__env, ((void (APIENTRY *) (uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)paramArray0, (uintptr_t)paramArray1); if (param1 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param1, paramArray1, 0); } if (param0 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param0, paramArray0, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__IJ_3IJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jintArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); ((void (APIENTRY *) (jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__I_3I_3FJ(JNIEnv *__env, jclass clazz, jint param0, jintArray param1, jfloatArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); @@ -7184,7 +6560,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__I_3I_3FJ(JNIEnv *__env ((void (APIENTRY *) (jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param2, paramArray2, 0); } if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__I_3I_3IJ(JNIEnv *__env, jclass clazz, jint param0, jintArray param1, jintArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); @@ -7192,7 +6568,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__I_3I_3IJ(JNIEnv *__env ((void (APIENTRY *) (jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__I_3I_3JJ(JNIEnv *__env, jclass clazz, jint param0, jintArray param1, jlongArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); @@ -7200,19 +6576,19 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__I_3I_3JJ(JNIEnv *__env ((void (APIENTRY *) (jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param2, paramArray2, 0); } if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__JI_3FJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jfloatArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param2, NULL); ((void (APIENTRY *) (uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__JI_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jintArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); ((void (APIENTRY *) (uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV___3II_3IJ(JNIEnv *__env, jclass clazz, jintArray param0, jint param1, jintArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray0 = param0 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param0, NULL); @@ -7220,19 +6596,19 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV___3II_3IJ(JNIEnv *__env ((void (APIENTRY *) (uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)paramArray0, param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } if (param0 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param0, paramArray0, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__IIJ_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jlong param2, jintArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); ((void (APIENTRY *) (jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__II_3IJJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jintArray param2, jlong param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); ((void (APIENTRY *) (jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)paramArray2, (uintptr_t)param3); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__II_3I_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jintArray param2, jfloatArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); @@ -7240,7 +6616,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__II_3I_3FJ(JNIEnv *__en ((void (APIENTRY *) (jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)paramArray2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param3, paramArray3, 0); } if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__II_3I_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jintArray param2, jintArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); @@ -7248,7 +6624,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__II_3I_3IJ(JNIEnv *__en ((void (APIENTRY *) (jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)paramArray2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__II_3I_3JJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jintArray param2, jlongArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); @@ -7256,43 +6632,43 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__II_3I_3JJ(JNIEnv *__en ((void (APIENTRY *) (jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)paramArray2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param3, paramArray3, 0); } if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__IJI_3IJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jint param2, jintArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); ((void (APIENTRY *) (jint, uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__IJ_3DIJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jdoubleArray param2, jint param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param2, NULL); ((void (APIENTRY *) (jint, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, (uintptr_t)paramArray2, param3); if (param2 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__IJ_3FIJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jfloatArray param2, jint param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param2, NULL); ((void (APIENTRY *) (jint, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, (uintptr_t)paramArray2, param3); if (param2 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__IJ_3IIJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jintArray param2, jint param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); ((void (APIENTRY *) (jint, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, (uintptr_t)paramArray2, param3); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__IJ_3JIJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jlongArray param2, jint param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param2, NULL); ((void (APIENTRY *) (jint, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, (uintptr_t)paramArray2, param3); if (param2 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__IJ_3SIJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jshortArray param2, jint param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param2, NULL); ((void (APIENTRY *) (jint, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, (uintptr_t)paramArray2, param3); if (param2 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__I_3I_3IIJ(JNIEnv *__env, jclass clazz, jint param0, jintArray param1, jintArray param2, jint param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); @@ -7300,7 +6676,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__I_3I_3IIJ(JNIEnv *__en ((void (APIENTRY *) (jint, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1, (uintptr_t)paramArray2, param3); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__I_3J_3IIJ(JNIEnv *__env, jclass clazz, jint param0, jlongArray param1, jintArray param2, jint param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param1, NULL); @@ -7308,25 +6684,25 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__I_3J_3IIJ(JNIEnv *__en ((void (APIENTRY *) (jint, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1, (uintptr_t)paramArray2, param3); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } if (param1 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__JII_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jintArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); ((void (APIENTRY *) (uintptr_t, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__IIIJ_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jlong param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); ((void (APIENTRY *) (jint, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, (uintptr_t)param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__III_3IJJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jintArray param3, jlong param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); ((void (APIENTRY *) (jint, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, (uintptr_t)paramArray3, (uintptr_t)param4); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__III_3I_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jintArray param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); @@ -7334,13 +6710,13 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__III_3I_3IJ(JNIEnv *__e ((void (APIENTRY *) (jint, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, (uintptr_t)paramArray3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__IIJ_3IIJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jlong param2, jintArray param3, jint param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); ((void (APIENTRY *) (jint, jint, uintptr_t, uintptr_t, jint))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)param2, (uintptr_t)paramArray3, param4); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__II_3II_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jintArray param2, jint param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); @@ -7348,13 +6724,13 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__II_3II_3IJ(JNIEnv *__e ((void (APIENTRY *) (jint, jint, uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)paramArray2, param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__I_3IIJIJ(JNIEnv *__env, jclass clazz, jint param0, jintArray param1, jint param2, jlong param3, jint param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); ((void (APIENTRY *) (jint, uintptr_t, jint, uintptr_t, jint))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1, param2, (uintptr_t)param3, param4); if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__I_3II_3IIJ(JNIEnv *__env, jclass clazz, jint param0, jintArray param1, jint param2, jintArray param3, jint param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); @@ -7362,145 +6738,145 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__I_3II_3IIJ(JNIEnv *__e ((void (APIENTRY *) (jint, uintptr_t, jint, uintptr_t, jint))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1, param2, (uintptr_t)paramArray3, param4); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__I_3IJIIJ(JNIEnv *__env, jclass clazz, jint param0, jintArray param1, jlong param2, jint param3, jint param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); ((void (APIENTRY *) (jint, uintptr_t, uintptr_t, jint, jint))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1, (uintptr_t)param2, param3, param4); if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__JIII_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jint param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); ((void (APIENTRY *) (uintptr_t, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__IIII_3IJJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jintArray param4, jlong param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, (uintptr_t)paramArray4, (uintptr_t)param5); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__IIJII_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jlong param2, jint param3, jint param4, jfloatArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param5, NULL); ((void (APIENTRY *) (jint, jint, uintptr_t, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)param2, param3, param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param5, paramArray5, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__IIJII_3SJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jlong param2, jint param3, jint param4, jshortArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param5, NULL); ((void (APIENTRY *) (jint, jint, uintptr_t, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)param2, param3, param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param5, paramArray5, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__II_3IJIIJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jintArray param2, jlong param3, jint param4, jint param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); ((void (APIENTRY *) (jint, jint, uintptr_t, uintptr_t, jint, jint))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)paramArray2, (uintptr_t)param3, param4, param5); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__IIIJII_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jlong param3, jint param4, jint param5, jfloatArray param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray6 = param6 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param6, NULL); ((void (APIENTRY *) (jint, jint, jint, uintptr_t, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, (uintptr_t)param3, param4, param5, (uintptr_t)paramArray6); if (param6 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param6, paramArray6, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__IIJIII_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jlong param2, jint param3, jint param4, jint param5, jfloatArray param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray6 = param6 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param6, NULL); ((void (APIENTRY *) (jint, jint, uintptr_t, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)param2, param3, param4, param5, (uintptr_t)paramArray6); if (param6 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param6, paramArray6, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__IIIIJII_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jlong param4, jint param5, jint param6, jfloatArray param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray7 = param7 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param7, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, uintptr_t, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, (uintptr_t)param4, param5, param6, (uintptr_t)paramArray7); if (param7 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param7, paramArray7, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__IIIIJII_3SJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jlong param4, jint param5, jint param6, jshortArray param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray7 = param7 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param7, NULL); ((void (APIENTRY *) (jint, jint, jint, jint, uintptr_t, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, param3, (uintptr_t)param4, param5, param6, (uintptr_t)paramArray7); if (param7 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param7, paramArray7, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__IIJIIII_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jlong param2, jint param3, jint param4, jint param5, jint param6, jfloatArray param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray7 = param7 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param7, NULL); ((void (APIENTRY *) (jint, jint, uintptr_t, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)param2, param3, param4, param5, param6, (uintptr_t)paramArray7); if (param7 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param7, paramArray7, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__IIIJIFFI_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jlong param3, jint param4, jfloat param5, jfloat param6, jint param7, jfloatArray param8, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray8 = param8 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param8, NULL); ((void (APIENTRY *) (jint, jint, jint, uintptr_t, jint, jfloat, jfloat, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, (uintptr_t)param3, param4, param5, param6, param7, (uintptr_t)paramArray8); if (param8 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param8, paramArray8, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPV__IIJIIIII_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jlong param2, jint param3, jint param4, jint param5, jint param6, jint param7, jfloatArray param8, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray8 = param8 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param8, NULL); ((void (APIENTRY *) (jint, jint, uintptr_t, jint, jint, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)param2, param3, param4, param5, param6, param7, (uintptr_t)paramArray8); if (param8 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param8, paramArray8, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPJPV__JJ_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlongArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param2, NULL); ((void (APIENTRY *) (uintptr_t, jlong, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__JJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jintArray param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); ((void (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)paramArray2); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__J_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jintArray param1, jlong param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); ((void (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)paramArray1, (uintptr_t)param2); if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPJPV__JJI_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jlongArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param3, NULL); ((void (APIENTRY *) (uintptr_t, jlong, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__IJJ_3DJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jlong param2, jdoubleArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param3, NULL); ((void (APIENTRY *) (jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__IJJ_3FJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jlong param2, jfloatArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param3, NULL); ((void (APIENTRY *) (jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__IJJ_3IJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jlong param2, jintArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); ((void (APIENTRY *) (jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__IJJ_3JJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jlong param2, jlongArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param3, NULL); ((void (APIENTRY *) (jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__IJJ_3SJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jlong param2, jshortArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param3, NULL); ((void (APIENTRY *) (jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, (uintptr_t)param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__JI_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jintArray param2, jlong param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); ((void (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2, (uintptr_t)param3); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__JI_3I_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jintArray param2, jlongArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); @@ -7508,43 +6884,43 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__JI_3I_3JJ(JNIEnv *__e ((void (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param3, paramArray3, 0); } if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__JI_3JJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlongArray param2, jlong param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param2, NULL); ((void (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2, (uintptr_t)param3); if (param2 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__JJI_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jintArray param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); ((void (APIENTRY *) (uintptr_t, uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, param2, (uintptr_t)paramArray3); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__IIJJ_3DJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jlong param2, jlong param3, jdoubleArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param4, NULL); ((void (APIENTRY *) (jint, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param4, paramArray4, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__IIJJ_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jlong param2, jlong param3, jfloatArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param4, NULL); ((void (APIENTRY *) (jint, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param4, paramArray4, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__IIJJ_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jlong param2, jlong param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); ((void (APIENTRY *) (jint, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__IIJJ_3SJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jlong param2, jlong param3, jshortArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param4, NULL); ((void (APIENTRY *) (jint, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)param2, (uintptr_t)param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param4, paramArray4, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__II_3IJ_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jintArray param2, jlong param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); @@ -7552,7 +6928,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__II_3IJ_3IJ(JNIEnv *__ ((void (APIENTRY *) (jint, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)paramArray2, (uintptr_t)param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__II_3I_3IJJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jintArray param2, jintArray param3, jlong param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); @@ -7560,13 +6936,13 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__II_3I_3IJJ(JNIEnv *__ ((void (APIENTRY *) (jint, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)paramArray2, (uintptr_t)paramArray3, (uintptr_t)param4); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__IJI_3IJJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jint param2, jintArray param3, jlong param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); ((void (APIENTRY *) (jint, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, param2, (uintptr_t)paramArray3, (uintptr_t)param4); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__IJI_3I_3IJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jint param2, jintArray param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); @@ -7574,7 +6950,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__IJI_3I_3IJ(JNIEnv *__ ((void (APIENTRY *) (jint, uintptr_t, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)param1, param2, (uintptr_t)paramArray3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__I_3I_3II_3IJ(JNIEnv *__env, jclass clazz, jint param0, jintArray param1, jintArray param2, jint param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); @@ -7584,7 +6960,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__I_3I_3II_3IJ(JNIEnv * if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__JII_3I_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jintArray param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); @@ -7592,7 +6968,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__JII_3I_3IJ(JNIEnv *__ ((void (APIENTRY *) (uintptr_t, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)paramArray3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__JII_3J_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlongArray param3, jlongArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param3, NULL); @@ -7600,49 +6976,49 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__JII_3J_3JJ(JNIEnv *__ ((void (APIENTRY *) (uintptr_t, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, (uintptr_t)paramArray3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param4, paramArray4, 0); } if (param3 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPJPV__JJIII_3DJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jint param4, jdoubleArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param5, NULL); ((void (APIENTRY *) (uintptr_t, jlong, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param5, paramArray5, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPJPV__JJIII_3FJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jint param4, jfloatArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param5, NULL); ((void (APIENTRY *) (uintptr_t, jlong, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param5, paramArray5, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPJPV__JJIII_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jint param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param5, NULL); ((void (APIENTRY *) (uintptr_t, jlong, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPJPV__JJIII_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jint param4, jlongArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param5, NULL); ((void (APIENTRY *) (uintptr_t, jlong, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param5, paramArray5, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPJPV__JJIII_3SJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jint param2, jint param3, jint param4, jshortArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param5, NULL); ((void (APIENTRY *) (uintptr_t, jlong, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param5, paramArray5, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPJV__JI_3JIJIJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlongArray param2, jint param3, jlong param4, jint param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param2, NULL); ((void (APIENTRY *) (uintptr_t, jint, uintptr_t, jint, jlong, jint))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2, param3, param4, param5); if (param2 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__III_3IJJJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jintArray param3, jlong param4, jlong param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); ((void (APIENTRY *) (jint, jint, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, (uintptr_t)paramArray3, (uintptr_t)param4, (uintptr_t)param5); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__III_3IJ_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jintArray param3, jlong param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); @@ -7650,7 +7026,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__III_3IJ_3IJ(JNIEnv *_ ((void (APIENTRY *) (jint, jint, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, param2, (uintptr_t)paramArray3, (uintptr_t)param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__II_3II_3I_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jintArray param2, jint param3, jintArray param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); @@ -7660,7 +7036,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__II_3II_3I_3IJ(JNIEnv if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__I_3IIJI_3IJ(JNIEnv *__env, jclass clazz, jint param0, jintArray param1, jint param2, jlong param3, jint param4, jintArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); @@ -7668,31 +7044,31 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__I_3IIJI_3IJ(JNIEnv *_ ((void (APIENTRY *) (jint, uintptr_t, jint, uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1, param2, (uintptr_t)param3, param4, (uintptr_t)paramArray5); if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__IIJJII_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jlong param2, jlong param3, jint param4, jint param5, jfloatArray param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray6 = param6 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param6, NULL); ((void (APIENTRY *) (jint, jint, uintptr_t, uintptr_t, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)param2, (uintptr_t)param3, param4, param5, (uintptr_t)paramArray6); if (param6 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param6, paramArray6, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__IIJJII_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jlong param2, jlong param3, jint param4, jint param5, jintArray param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray6 = param6 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param6, NULL); ((void (APIENTRY *) (jint, jint, uintptr_t, uintptr_t, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)param2, (uintptr_t)param3, param4, param5, (uintptr_t)paramArray6); if (param6 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param6, paramArray6, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__IIJJII_3SJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jlong param2, jlong param3, jint param4, jint param5, jshortArray param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray6 = param6 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param6, NULL); ((void (APIENTRY *) (jint, jint, uintptr_t, uintptr_t, jint, jint, uintptr_t))(uintptr_t)__functionAddress)(param0, param1, (uintptr_t)param2, (uintptr_t)param3, param4, param5, (uintptr_t)paramArray6); if (param6 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param6, paramArray6, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__JIJIII_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jint param3, jint param4, jint param5, jintArray param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray6 = param6 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param6, NULL); ((void (APIENTRY *) (uintptr_t, jint, uintptr_t, jint, jint, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, param3, param4, param5, (uintptr_t)paramArray6); if (param6 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param6, paramArray6, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__IIII_3II_3I_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jintArray param4, jint param5, jintArray param6, jfloatArray param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); @@ -7702,7 +7078,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__IIII_3II_3I_3FJ(JNIEn if (param7 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param7, paramArray7, 0); } if (param6 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param6, paramArray6, 0); } if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__IIII_3II_3I_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jint param3, jintArray param4, jint param5, jintArray param6, jintArray param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); @@ -7712,37 +7088,37 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__IIII_3II_3I_3IJ(JNIEn if (param7 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param7, paramArray7, 0); } if (param6 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param6, paramArray6, 0); } if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPV__JIIIII_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jint param3, jint param4, jint param5, jintArray param6, jlong param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray6 = param6 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param6, NULL); ((void (APIENTRY *) (uintptr_t, jint, jint, jint, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, param5, (uintptr_t)paramArray6, (uintptr_t)param7); if (param6 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param6, paramArray6, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPJPPV__JJ_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jintArray param2, jlong param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); ((void (APIENTRY *) (uintptr_t, jlong, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2, (uintptr_t)param3); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPPV__JJ_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jintArray param2, jlong param3, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); ((void (APIENTRY *) (uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, (uintptr_t)param1, (uintptr_t)paramArray2, (uintptr_t)param3); if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPJJPV__JIJJ_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlong param3, jlongArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param4, NULL); ((void (APIENTRY *) (uintptr_t, jint, jlong, jlong, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param4, paramArray4, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPPV__JIJ_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jintArray param3, jlong param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); ((void (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)paramArray3, (uintptr_t)param4); if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPPV___3J_3I_3I_3IIJ(JNIEnv *__env, jclass clazz, jlongArray param0, jintArray param1, jintArray param2, jintArray param3, jint param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray0 = param0 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param0, NULL); @@ -7754,7 +7130,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPPV___3J_3I_3I_3IIJ(JNIEn if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } if (param0 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param0, paramArray0, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPPV__IJ_3I_3I_3IIJ(JNIEnv *__env, jclass clazz, jint param0, jlong param1, jintArray param2, jintArray param3, jintArray param4, jint param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param2, NULL); @@ -7764,7 +7140,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPPV__IJ_3I_3I_3IIJ(JNIEnv if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } if (param2 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPPV__JII_3J_3J_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlongArray param3, jlongArray param4, jlongArray param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param3, NULL); @@ -7774,7 +7150,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPPV__JII_3J_3J_3JJ(JNIEnv if (param5 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param5, paramArray5, 0); } if (param4 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param4, paramArray4, 0); } if (param3 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPJPPV__JIJII_3I_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jint param3, jint param4, jintArray param5, jlongArray param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param5, NULL); @@ -7782,7 +7158,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPJPPV__JIJII_3I_3JJ(JNIEnv ((void (APIENTRY *) (uintptr_t, jint, jlong, jint, jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, (uintptr_t)paramArray5, (uintptr_t)paramArray6); if (param6 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param6, paramArray6, 0); } if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPPV__III_3I_3I_3IJJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jintArray param3, jintArray param4, jintArray param5, jlong param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); @@ -7792,7 +7168,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPPV__III_3I_3I_3IJJ(JNIEn if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPPV__IIJ_3I_3I_3IIJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jlong param2, jintArray param3, jintArray param4, jintArray param5, jint param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); @@ -7802,7 +7178,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPPV__IIJ_3I_3I_3IIJ(JNIEn if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPJPPV__JIJII_3JI_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jint param3, jint param4, jlongArray param5, jint param6, jintArray param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray5 = param5 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param5, NULL); @@ -7810,37 +7186,37 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPJPPV__JIJII_3JI_3IJ(JNIEnv ((void (APIENTRY *) (uintptr_t, jint, jlong, jint, jint, uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, param4, (uintptr_t)paramArray5, param6, (uintptr_t)paramArray7); if (param7 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param7, paramArray7, 0); } if (param5 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param5, paramArray5, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPJJJPV__JJJJ_3DJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jdoubleArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetDoubleArrayElements(__env, param4, NULL); ((void (APIENTRY *) (uintptr_t, jlong, jlong, jlong, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseDoubleArrayElements(__env, param4, paramArray4, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPJJJPV__JJJJ_3FJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jfloatArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param4, NULL); ((void (APIENTRY *) (uintptr_t, jlong, jlong, jlong, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param4, paramArray4, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPJJJPV__JJJJ_3IJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jintArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param4, NULL); ((void (APIENTRY *) (uintptr_t, jlong, jlong, jlong, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPJJJPV__JJJJ_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jlongArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param4, NULL); ((void (APIENTRY *) (uintptr_t, jlong, jlong, jlong, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param4, paramArray4, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPJJJPV__JJJJ_3SJ(JNIEnv *__env, jclass clazz, jlong param0, jlong param1, jlong param2, jlong param3, jshortArray param4, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetShortArrayElements(__env, param4, NULL); ((void (APIENTRY *) (uintptr_t, jlong, jlong, jlong, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, param2, param3, (uintptr_t)paramArray4); if (param4 != NULL) { (*__env)->ReleaseShortArrayElements(__env, param4, paramArray4, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPPPV__JIJ_3J_3IJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlong param2, jlongArray param3, jintArray param4, jlong param5, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param3, NULL); @@ -7848,7 +7224,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPPPV__JIJ_3J_3IJJ(JNIEnv ((void (APIENTRY *) (uintptr_t, jint, uintptr_t, uintptr_t, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)param2, (uintptr_t)paramArray3, (uintptr_t)paramArray4, (uintptr_t)param5); if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } if (param3 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPPPV__IIJ_3I_3I_3I_3IJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jlong param2, jintArray param3, jintArray param4, jintArray param5, jintArray param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param3, NULL); @@ -7860,7 +7236,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPPPV__IIJ_3I_3I_3I_3IJ(JN if (param5 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param5, paramArray5, 0); } if (param4 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param4, paramArray4, 0); } if (param3 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPPPV__JII_3J_3J_3J_3JJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jint param2, jlongArray param3, jlongArray param4, jlongArray param5, jlongArray param6, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray3 = param3 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param3, NULL); @@ -7872,13 +7248,13 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPPPV__JII_3J_3J_3J_3JJ(JN if (param5 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param5, paramArray5, 0); } if (param4 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param4, paramArray4, 0); } if (param3 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param3, paramArray3, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPPPV__JI_3JIIIJIJIJJ(JNIEnv *__env, jclass clazz, jlong param0, jint param1, jlongArray param2, jint param3, jint param4, jint param5, jlong param6, jint param7, jlong param8, jint param9, jlong param10, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray2 = param2 == NULL ? NULL : (*__env)->GetLongArrayElements(__env, param2, NULL); ((void (APIENTRY *) (uintptr_t, jint, uintptr_t, jint, jint, jint, uintptr_t, jint, uintptr_t, jint, uintptr_t))(uintptr_t)__functionAddress)((uintptr_t)param0, param1, (uintptr_t)paramArray2, param3, param4, param5, (uintptr_t)param6, param7, (uintptr_t)param8, param9, (uintptr_t)param10); if (param2 != NULL) { (*__env)->ReleaseLongArrayElements(__env, param2, paramArray2, 0); } -} +} JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPV__IIIJIJ_3I_3I_3I_3I_3JJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jlong param3, jint param4, jlong param5, jintArray param6, jintArray param7, jintArray param8, jintArray param9, jlongArray param10, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray6 = param6 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param6, NULL); @@ -7892,14 +7268,14 @@ JNIEXPORT void JNICALL Java_org_lwjgl_system_JNI_callPPPPPPPV__IIIJIJ_3I_3I_3I_3 if (param8 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param8, paramArray8, 0); } if (param7 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param7, paramArray7, 0); } if (param6 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param6, paramArray6, 0); } -} +} JNIEXPORT jboolean JNICALL Java_org_lwjgl_system_JNI_callPPZ__I_3IJJ(JNIEnv *__env, jclass clazz, jint param0, jintArray param1, jlong param2, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray1 = param1 == NULL ? NULL : (*__env)->GetIntArrayElements(__env, param1, NULL); jboolean __result = ((jboolean (APIENTRY *) (jint, uintptr_t, uintptr_t))(uintptr_t)__functionAddress)(param0, (uintptr_t)paramArray1, (uintptr_t)param2); if (param1 != NULL) { (*__env)->ReleaseIntArrayElements(__env, param1, paramArray1, 0); } return __result; -} +} JNIEXPORT jboolean JNICALL Java_org_lwjgl_system_JNI_callPPPPZ__IIIF_3F_3F_3F_3FJ(JNIEnv *__env, jclass clazz, jint param0, jint param1, jint param2, jfloat param3, jfloatArray param4, jfloatArray param5, jfloatArray param6, jfloatArray param7, jlong __functionAddress) { UNUSED_PARAMS(__env, clazz) void *paramArray4 = param4 == NULL ? NULL : (*__env)->GetFloatArrayElements(__env, param4, NULL); @@ -7912,6 +7288,6 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_system_JNI_callPPPPZ__IIIF_3F_3F_3F_3F if (param5 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param5, paramArray5, 0); } if (param4 != NULL) { (*__env)->ReleaseFloatArrayElements(__env, param4, paramArray4, 0); } return __result; -} +} -EXTERN_C_EXIT +EXTERN_C_EXIT diff --git a/modules/lwjgl/core/src/generated/java/org/lwjgl/system/JNI.java b/modules/lwjgl/core/src/generated/java/org/lwjgl/system/JNI.java index eba9d837d6..1ea4e933d2 100644 --- a/modules/lwjgl/core/src/generated/java/org/lwjgl/system/JNI.java +++ b/modules/lwjgl/core/src/generated/java/org/lwjgl/system/JNI.java @@ -4,9 +4,9 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.system; - -import javax.annotation.*; - + +import javax.annotation.*; + /** * This class contains native methods that can be used to call dynamically loaded functions. It is used internally by the LWJGL bindings, but can also * be used to call other dynamically loaded functions. Not all possible signatures are available, only those needed by the LWJGL bindings. To call a @@ -29,7 +29,7 @@ * depending on the platform. {@code P} parameters represent pointer addresses, which maybe 32-bit or 64-bit values depending on the JVM.

*
  • the return value JNI type signature
  • * - */ + */ public final class JNI { static { @@ -40,1613 +40,1457 @@ private JNI() {} // Pointer API - public static native byte invokePB(long param0, long __functionAddress); - public static native short invokeC(long __functionAddress); - public static native short invokeC(int param0, long __functionAddress); - public static native short invokePC(long param0, long __functionAddress); - public static native short invokeCC(int param0, short param1, long __functionAddress); - public static native short invokeCC(short param0, boolean param1, long __functionAddress); - public static native short invokeJC(int param0, int param1, long param2, long __functionAddress); - public static native short invokeCUC(short param0, byte param1, long __functionAddress); - public static native short invokePCC(long param0, short param1, long __functionAddress); - public static native short invokeCCC(short param0, short param1, boolean param2, long __functionAddress); - public static native short invokePCC(int param0, long param1, short param2, long __functionAddress); - public static native short invokePCC(long param0, int param1, short param2, long __functionAddress); - public static native short invokeUPC(byte param0, long param1, boolean param2, long __functionAddress); - public static native short invokeCJC(int param0, boolean param1, short param2, int param3, long param4, long __functionAddress); - public static native short invokeCPCC(short param0, long param1, short param2, long __functionAddress); - public static native short invokePPCC(long param0, long param1, short param2, long __functionAddress); - public static native short invokeCCJC(short param0, short param1, int param2, long param3, long __functionAddress); - public static native short invokePCCC(long param0, short param1, short param2, int param3, int param4, long __functionAddress); - public static native short invokeCCCCC(short param0, short param1, short param2, short param3, long __functionAddress); - public static native short invokePJUPC(long param0, long param1, byte param2, long param3, long __functionAddress); - public static native short invokeCCJPC(short param0, boolean param1, short param2, int param3, long param4, long param5, long __functionAddress); - public static native short invokePCCCCC(long param0, short param1, short param2, short param3, short param4, long __functionAddress); - public static native short invokeCCCJPC(short param0, short param1, short param2, boolean param3, int param4, long param5, long param6, long __functionAddress); - public static native short invokeCCCJPC(short param0, short param1, boolean param2, short param3, int param4, long param5, long param6, long __functionAddress); - public static native double invokeD(long __functionAddress); - public static native double invokeD(int param0, long __functionAddress); - public static native double invokePD(long param0, long __functionAddress); - public static native double invokePD(long param0, int param1, long __functionAddress); - public static native double invokePD(long param0, int param1, int param2, long __functionAddress); - public static native double invokePPD(long param0, long param1, long __functionAddress); - public static native float invokeF(int param0, long __functionAddress); - public static native float invokePF(long param0, long __functionAddress); - public static native float invokePF(long param0, int param1, long __functionAddress); - public static native float invokePF(long param0, float param1, float param2, long __functionAddress); - public static native float invokePF(long param0, int param1, int param2, long __functionAddress); - public static native float invokePPF(long param0, long param1, long __functionAddress); - public static native float invokePPF(long param0, int param1, long param2, long __functionAddress); - public static native float invokePPF(long param0, float param1, long param2, int param3, long __functionAddress); - public static native int invokeI(long __functionAddress); - public static native int invokeI(int param0, long __functionAddress); - public static native int invokeI(boolean param0, long __functionAddress); - public static native int invokeI(int param0, int param1, long __functionAddress); - public static native int invokeI(int param0, boolean param1, long __functionAddress); - public static native int invokeI(int param0, int param1, int param2, long __functionAddress); - public static native int invokePI(long param0, long __functionAddress); - public static native int invokeCI(int param0, short param1, long __functionAddress); - public static native int invokePI(int param0, long param1, long __functionAddress); - public static native int invokePI(long param0, int param1, long __functionAddress); - public static native int invokePI(long param0, int param1, int param2, long __functionAddress); - public static native int invokePI(long param0, int param1, boolean param2, long __functionAddress); - public static native int invokePI(long param0, int param1, int param2, int param3, long __functionAddress); - public static native int invokeCPI(short param0, long param1, long __functionAddress); - public static native int invokePCI(long param0, short param1, long __functionAddress); - public static native int invokePJI(long param0, long param1, long __functionAddress); - public static native int invokePNI(long param0, long param1, long __functionAddress); - public static native int invokePPI(long param0, long param1, long __functionAddress); - public static native int invokePJI(long param0, long param1, int param2, long __functionAddress); - public static native int invokePNI(long param0, int param1, long param2, long __functionAddress); - public static native int invokePNI(long param0, long param1, int param2, long __functionAddress); - public static native int invokePPI(int param0, long param1, long param2, long __functionAddress); - public static native int invokePPI(long param0, int param1, long param2, long __functionAddress); - public static native int invokePPI(long param0, long param1, float param2, long __functionAddress); - public static native int invokePPI(long param0, long param1, int param2, long __functionAddress); - public static native int invokePPI(long param0, long param1, boolean param2, long __functionAddress); - public static native int invokePPI(long param0, boolean param1, long param2, long __functionAddress); - public static native int invokePPI(long param0, int param1, int param2, long param3, long __functionAddress); - public static native int invokePPI(long param0, int param1, long param2, int param3, long __functionAddress); - public static native int invokePPI(long param0, int param1, long param2, boolean param3, long __functionAddress); - public static native int invokePPI(long param0, int param1, boolean param2, long param3, long __functionAddress); - public static native int invokePPI(long param0, long param1, int param2, int param3, long __functionAddress); - public static native int invokePPI(long param0, long param1, boolean param2, boolean param3, long __functionAddress); - public static native int invokePPI(long param0, int param1, int param2, int param3, long param4, long __functionAddress); - public static native int invokePPI(long param0, int param1, int param2, long param3, int param4, long __functionAddress); - public static native int invokePPI(long param0, int param1, long param2, int param3, int param4, long __functionAddress); - public static native int invokePPI(int param0, long param1, int param2, long param3, int param4, boolean param5, long __functionAddress); - public static native int invokePPI(long param0, int param1, int param2, int param3, int param4, long param5, long __functionAddress); - public static native int invokePPI(long param0, int param1, int param2, int param3, int param4, long param5, int param6, long __functionAddress); - public static native int invokeCPUI(short param0, long param1, byte param2, long __functionAddress); - public static native int invokePCPI(long param0, short param1, long param2, long __functionAddress); - public static native int invokePNNI(long param0, long param1, long param2, long __functionAddress); - public static native int invokePNPI(long param0, long param1, long param2, long __functionAddress); - public static native int invokePPCI(long param0, long param1, short param2, long __functionAddress); - public static native int invokePPJI(long param0, long param1, long param2, long __functionAddress); - public static native int invokePPNI(long param0, long param1, long param2, long __functionAddress); - public static native int invokePPPI(long param0, long param1, long param2, long __functionAddress); - public static native int invokePNPI(long param0, long param1, int param2, long param3, long __functionAddress); - public static native int invokePNPI(long param0, long param1, long param2, int param3, long __functionAddress); - public static native int invokePPNI(long param0, int param1, long param2, long param3, long __functionAddress); - public static native int invokePPPI(long param0, int param1, long param2, long param3, long __functionAddress); - public static native int invokePPPI(long param0, long param1, int param2, long param3, long __functionAddress); - public static native int invokePPPI(long param0, long param1, long param2, int param3, long __functionAddress); - public static native int invokePNNI(long param0, long param1, long param2, int param3, int param4, long __functionAddress); - public static native int invokePPPI(long param0, int param1, int param2, long param3, long param4, long __functionAddress); - public static native int invokePPPI(long param0, int param1, long param2, int param3, long param4, long __functionAddress); - public static native int invokePPPI(long param0, int param1, long param2, long param3, int param4, long __functionAddress); - public static native int invokePPPI(long param0, long param1, int param2, int param3, long param4, long __functionAddress); - public static native int invokePPPI(long param0, long param1, int param2, long param3, int param4, long __functionAddress); - public static native int invokePPPI(long param0, long param1, long param2, int param3, int param4, long __functionAddress); - public static native int invokePPPI(long param0, int param1, int param2, int param3, long param4, long param5, long __functionAddress); - public static native int invokePPPI(long param0, int param1, long param2, int param3, long param4, int param5, long __functionAddress); - public static native int invokePPPI(long param0, long param1, int param2, long param3, int param4, int param5, long __functionAddress); - public static native int invokePPPI(long param0, long param1, long param2, int param3, boolean param4, float param5, long __functionAddress); - public static native int invokePPPI(long param0, int param1, int param2, int param3, int param4, long param5, long param6, long __functionAddress); - public static native int invokePPPI(long param0, int param1, int param2, int param3, long param4, long param5, int param6, long __functionAddress); - public static native int invokePPPI(long param0, int param1, int param2, long param3, int param4, long param5, int param6, int param7, long __functionAddress); - public static native int invokePNPPI(long param0, long param1, long param2, long param3, long __functionAddress); - public static native int invokePPNNI(long param0, long param1, long param2, long param3, long __functionAddress); - public static native int invokePPNPI(long param0, long param1, long param2, long param3, long __functionAddress); - public static native int invokePPPNI(long param0, long param1, long param2, long param3, long __functionAddress); - public static native int invokePPPPI(long param0, long param1, long param2, long param3, long __functionAddress); - public static native int invokePNNPI(long param0, long param1, int param2, long param3, long param4, long __functionAddress); - public static native int invokePPPNI(long param0, long param1, int param2, long param3, long param4, long __functionAddress); - public static native int invokePPPPI(long param0, int param1, long param2, long param3, long param4, long __functionAddress); - public static native int invokePPPPI(long param0, long param1, int param2, long param3, long param4, long __functionAddress); - public static native int invokePPPPI(long param0, long param1, long param2, int param3, long param4, long __functionAddress); - public static native int invokePPPPI(long param0, long param1, long param2, long param3, int param4, long __functionAddress); - public static native int invokePPPPI(long param0, int param1, int param2, long param3, long param4, long param5, long __functionAddress); - public static native int invokePPPPI(long param0, long param1, int param2, int param3, long param4, long param5, long __functionAddress); - public static native int invokePPPPI(long param0, long param1, int param2, long param3, int param4, long param5, long __functionAddress); - public static native int invokePPPPI(long param0, long param1, int param2, long param3, long param4, int param5, long __functionAddress); - public static native int invokePPPPI(long param0, long param1, long param2, int param3, int param4, long param5, long __functionAddress); - public static native int invokePPPPI(long param0, long param1, long param2, long param3, int param4, int param5, long __functionAddress); - public static native int invokePPPPI(long param0, int param1, int param2, int param3, long param4, long param5, long param6, long __functionAddress); - public static native int invokePPPPI(long param0, int param1, int param2, long param3, long param4, long param5, int param6, long __functionAddress); - public static native int invokePPPPI(long param0, long param1, long param2, long param3, int param4, int param5, int param6, int param7, long __functionAddress); - public static native int invokePPPPI(long param0, int param1, int param2, long param3, int param4, long param5, long param6, int param7, int param8, long __functionAddress); - public static native int invokePNNPPI(long param0, long param1, long param2, long param3, long param4, long __functionAddress); - public static native int invokePPNNPI(long param0, long param1, long param2, long param3, long param4, long __functionAddress); - public static native int invokePPPNNI(long param0, long param1, long param2, long param3, long param4, long __functionAddress); - public static native int invokePPPPNI(long param0, long param1, long param2, long param3, long param4, long __functionAddress); - public static native int invokePPPPPI(long param0, long param1, long param2, long param3, long param4, long __functionAddress); - public static native int invokePJPPNI(long param0, int param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native int invokePPNPPI(long param0, int param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native int invokePPNPPI(long param0, long param1, long param2, int param3, long param4, long param5, long __functionAddress); - public static native int invokePPPNJI(long param0, int param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native int invokePPPNNI(long param0, int param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native int invokePPPNPI(long param0, int param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native int invokePPPPNI(long param0, int param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native int invokePPPPNI(long param0, long param1, int param2, long param3, long param4, long param5, long __functionAddress); - public static native int invokePPPPPI(long param0, int param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native int invokePPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long __functionAddress); - public static native int invokePPPPPI(long param0, long param1, long param2, int param3, long param4, long param5, long __functionAddress); - public static native int invokePPPPPI(long param0, long param1, long param2, long param3, long param4, int param5, long __functionAddress); - public static native int invokePNPPPI(long param0, int param1, int param2, long param3, long param4, long param5, long param6, long __functionAddress); - public static native int invokePPPPPI(long param0, long param1, int param2, int param3, long param4, long param5, long param6, long __functionAddress); - public static native int invokePPPPPI(long param0, long param1, int param2, long param3, int param4, long param5, int param6, long param7, long __functionAddress); - public static native int invokePPPPPI(long param0, long param1, long param2, int param3, long param4, int param5, int param6, long param7, long __functionAddress); - public static native int invokePPPPPI(long param0, long param1, long param2, int param3, int param4, int param5, float param6, long param7, long param8, long __functionAddress); - public static native int invokePPPPPPI(long param0, long param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native int invokePJJJJPI(long param0, long param1, long param2, long param3, long param4, int param5, long param6, long __functionAddress); - public static native int invokePPNPPPI(long param0, int param1, long param2, long param3, long param4, long param5, long param6, long __functionAddress); - public static native int invokePPPPPPI(long param0, int param1, long param2, long param3, long param4, long param5, long param6, long __functionAddress); - public static native int invokePPPPPPI(long param0, long param1, long param2, long param3, long param4, long param5, int param6, long __functionAddress); - public static native int invokePNNPPPI(long param0, long param1, long param2, int param3, int param4, long param5, long param6, long param7, long __functionAddress); - public static native int invokePPPPPPI(long param0, int param1, int param2, long param3, long param4, long param5, long param6, long param7, long __functionAddress); - public static native int invokePPPPPPPI(long param0, long param1, long param2, int param3, long param4, float param5, float param6, long param7, long param8, long param9, long __functionAddress); - public static native int invokePPPPPPPI(long param0, long param1, long param2, int param3, int param4, long param5, long param6, int param7, long param8, int param9, long param10, int param11, long __functionAddress); - public static native int invokePPPPPPPPI(long param0, int param1, int param2, long param3, long param4, long param5, long param6, long param7, long param8, long param9, long __functionAddress); - public static native long invokeJ(long __functionAddress); - public static native long invokePJ(long param0, long __functionAddress); - public static native long invokePJ(long param0, int param1, long __functionAddress); - public static native long invokePJJ(long param0, long param1, long __functionAddress); - public static native long invokePPJ(long param0, long param1, long __functionAddress); - public static native long invokePPJ(long param0, long param1, int param2, long __functionAddress); - public static native long invokeNN(long param0, long __functionAddress); - public static native long invokePN(long param0, long __functionAddress); - public static native long invokePN(long param0, int param1, long __functionAddress); - public static native long invokeNNN(long param0, long param1, long __functionAddress); - public static native long invokePPN(long param0, long param1, long __functionAddress); - public static native long invokeNNNN(long param0, long param1, long param2, long __functionAddress); - public static native long invokePNPN(long param0, long param1, long param2, long __functionAddress); - public static native long invokePNPN(long param0, long param1, long param2, int param3, long __functionAddress); - public static native long invokePPNN(long param0, int param1, int param2, long param3, long param4, long __functionAddress); - public static native long invokePNPNN(long param0, long param1, long param2, long param3, long __functionAddress); - public static native long invokePNPNPN(long param0, long param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, long param9, long param10, long param11, long __functionAddress); - public static native long invokeP(long __functionAddress); - public static native long invokeP(int param0, long __functionAddress); - public static native long invokeP(boolean param0, long __functionAddress); - public static native long invokeP(int param0, int param1, long __functionAddress); - public static native long invokeCP(short param0, long __functionAddress); - public static native long invokePP(long param0, long __functionAddress); - public static native long invokePP(int param0, long param1, long __functionAddress); - public static native long invokePP(long param0, double param1, long __functionAddress); - public static native long invokePP(long param0, int param1, long __functionAddress); - public static native long invokePP(int param0, int param1, long param2, long __functionAddress); - public static native long invokePP(long param0, int param1, int param2, long __functionAddress); - public static native long invokePP(int param0, int param1, int param2, long param3, long __functionAddress); - public static native long invokePP(long param0, int param1, int param2, int param3, long __functionAddress); - public static native long invokePP(long param0, float param1, int param2, float param3, int param4, long __functionAddress); - public static native long invokePP(long param0, int param1, int param2, int param3, int param4, int param5, long __functionAddress); - public static native long invokeCPP(short param0, long param1, long __functionAddress); - public static native long invokePJP(long param0, long param1, long __functionAddress); - public static native long invokePNP(long param0, long param1, long __functionAddress); - public static native long invokePPP(long param0, long param1, long __functionAddress); - public static native long invokePUP(long param0, byte param1, long __functionAddress); - public static native long invokeCPP(int param0, short param1, long param2, long __functionAddress); - public static native long invokePCP(long param0, short param1, boolean param2, long __functionAddress); - public static native long invokePJP(long param0, int param1, long param2, long __functionAddress); - public static native long invokePJP(long param0, long param1, int param2, long __functionAddress); - public static native long invokePPP(int param0, long param1, long param2, long __functionAddress); - public static native long invokePPP(long param0, int param1, long param2, long __functionAddress); - public static native long invokePPP(long param0, long param1, int param2, long __functionAddress); - public static native long invokePPP(long param0, int param1, int param2, long param3, long __functionAddress); - public static native long invokePPP(long param0, int param1, long param2, int param3, long __functionAddress); - public static native long invokePPP(long param0, long param1, int param2, int param3, long __functionAddress); - public static native long invokePPP(long param0, long param1, boolean param2, boolean param3, long __functionAddress); - public static native long invokePPP(long param0, boolean param1, boolean param2, long param3, long __functionAddress); - public static native long invokePPP(long param0, int param1, int param2, int param3, long param4, long __functionAddress); - public static native long invokePPP(int param0, int param1, int param2, int param3, long param4, long param5, long __functionAddress); - public static native long invokePUP(long param0, int param1, byte param2, int param3, boolean param4, boolean param5, long __functionAddress); - public static native long invokePPP(int param0, int param1, int param2, int param3, long param4, int param5, long param6, long __functionAddress); - public static native long invokePJJP(long param0, long param1, long param2, long __functionAddress); - public static native long invokePPPP(long param0, long param1, long param2, long __functionAddress); - public static native long invokePPUP(long param0, long param1, byte param2, long __functionAddress); - public static native long invokePPPP(int param0, long param1, long param2, long param3, long __functionAddress); - public static native long invokePPPP(long param0, int param1, long param2, long param3, long __functionAddress); - public static native long invokePPPP(long param0, long param1, int param2, long param3, long __functionAddress); - public static native long invokePPPP(long param0, long param1, long param2, int param3, long __functionAddress); - public static native long invokePPUP(long param0, long param1, int param2, byte param3, long __functionAddress); - public static native long invokePPPP(int param0, int param1, long param2, long param3, long param4, long __functionAddress); - public static native long invokePPPP(long param0, int param1, int param2, long param3, long param4, long __functionAddress); - public static native long invokePPPP(long param0, long param1, int param2, int param3, long param4, long __functionAddress); - public static native long invokePPPP(long param0, long param1, int param2, long param3, int param4, long __functionAddress); - public static native long invokePPPP(long param0, long param1, long param2, int param3, int param4, long __functionAddress); - public static native long invokeJPPP(int param0, int param1, int param2, long param3, long param4, long param5, long __functionAddress); - public static native long invokePPPP(long param0, int param1, long param2, long param3, int param4, int param5, long __functionAddress); - public static native long invokePPPP(long param0, long param1, int param2, int param3, int param4, long param5, long __functionAddress); - public static native long invokePPPP(long param0, long param1, int param2, int param3, long param4, int param5, long __functionAddress); - public static native long invokePPPP(int param0, int param1, int param2, long param3, long param4, int param5, long param6, long __functionAddress); - public static native long invokePPPP(long param0, long param1, int param2, int param3, long param4, int param5, int param6, long __functionAddress); - public static native long invokePBPPP(long param0, byte param1, long param2, long param3, long __functionAddress); - public static native long invokePNNPP(long param0, long param1, long param2, long param3, long __functionAddress); - public static native long invokePPJPP(long param0, long param1, long param2, long param3, long __functionAddress); - public static native long invokePPNNP(long param0, long param1, long param2, long param3, long __functionAddress); - public static native long invokePPPPP(long param0, long param1, long param2, long param3, long __functionAddress); - public static native long invokePPPJP(int param0, long param1, long param2, long param3, long param4, long __functionAddress); - public static native long invokePPPJP(long param0, long param1, long param2, long param3, int param4, long __functionAddress); - public static native long invokePPPPP(long param0, int param1, long param2, long param3, long param4, long __functionAddress); - public static native long invokePPPPP(long param0, long param1, int param2, long param3, long param4, long __functionAddress); - public static native long invokePPPPP(long param0, long param1, long param2, int param3, long param4, long __functionAddress); - public static native long invokePPPPP(long param0, long param1, long param2, long param3, int param4, long __functionAddress); - public static native long invokePJPPP(long param0, int param1, int param2, long param3, long param4, long param5, long __functionAddress); - public static native long invokePJPPP(long param0, long param1, int param2, long param3, long param4, int param5, long __functionAddress); - public static native long invokePPPJP(long param0, long param1, long param2, long param3, int param4, int param5, long __functionAddress); - public static native long invokePPPPP(long param0, long param1, int param2, long param3, int param4, long param5, long __functionAddress); - public static native long invokePPPPP(long param0, long param1, long param2, int param3, long param4, int param5, long __functionAddress); - public static native long invokePPPPP(long param0, long param1, long param2, int param3, int param4, int param5, long param6, long __functionAddress); - public static native long invokePPPPP(long param0, long param1, long param2, int param3, long param4, int param5, int param6, long __functionAddress); - public static native long invokePPPPP(long param0, long param1, long param2, long param3, int param4, int param5, int param6, long __functionAddress); - public static native long invokePPPPP(int param0, int param1, int param2, long param3, long param4, long param5, int param6, long param7, long __functionAddress); - public static native long invokePJPJPP(long param0, long param1, long param2, long param3, long param4, long __functionAddress); - public static native long invokePNNNPP(long param0, long param1, long param2, long param3, long param4, long __functionAddress); - public static native long invokePPBPPP(long param0, long param1, byte param2, long param3, long param4, long __functionAddress); - public static native long invokePPPPPP(long param0, long param1, long param2, long param3, long param4, long __functionAddress); - public static native long invokeCCCUJP(short param0, short param1, short param2, byte param3, int param4, long param5, long __functionAddress); - public static native long invokePPPPNP(long param0, long param1, int param2, long param3, long param4, long param5, long __functionAddress); - public static native long invokePPPPPP(long param0, long param1, long param2, int param3, long param4, long param5, long __functionAddress); - public static native long invokePPPPPP(long param0, long param1, long param2, long param3, int param4, long param5, long __functionAddress); - public static native long invokePPPPPP(long param0, long param1, long param2, long param3, long param4, int param5, long __functionAddress); - public static native long invokePPJPPP(long param0, long param1, long param2, int param3, int param4, long param5, long param6, long __functionAddress); - public static native long invokePPPPPP(long param0, long param1, long param2, int param3, long param4, int param5, long param6, long __functionAddress); - public static native long invokePPPPPP(long param0, long param1, long param2, long param3, int param4, long param5, int param6, long __functionAddress); - public static native long invokePPPPPP(long param0, long param1, long param2, long param3, long param4, int param5, int param6, int param7, int param8, long __functionAddress); - public static native long invokePPJJPPP(long param0, long param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native long invokePPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native long invokePSSCCPP(long param0, short param1, short param2, short param3, short param4, long param5, long __functionAddress); - public static native long invokePPPPPPP(long param0, long param1, long param2, int param3, long param4, long param5, long param6, long __functionAddress); - public static native long invokePPPPPPP(long param0, long param1, long param2, long param3, int param4, long param5, long param6, long __functionAddress); - public static native long invokePPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, int param6, long __functionAddress); - public static native long invokePPPPPPP(long param0, long param1, int param2, int param3, long param4, long param5, long param6, long param7, long __functionAddress); - public static native long invokePPPPPPP(long param0, long param1, long param2, int param3, long param4, int param5, long param6, long param7, long __functionAddress); - public static native long invokePPPPPPP(long param0, long param1, long param2, long param3, long param4, int param5, long param6, int param7, long __functionAddress); - public static native long invokePPPPPPP(long param0, long param1, long param2, long param3, int param4, long param5, int param6, long param7, int param8, int param9, long __functionAddress); - public static native long invokePPPPPPP(long param0, long param1, long param2, long param3, long param4, int param5, long param6, int param7, int param8, int param9, long __functionAddress); - public static native long invokePPPPPPPP(long param0, long param1, long param2, long param3, int param4, long param5, long param6, long param7, long __functionAddress); - public static native long invokePPPPPPPP(long param0, long param1, long param2, long param3, int param4, long param5, long param6, long param7, int param8, long __functionAddress); - public static native long invokePPPPPPPP(long param0, long param1, long param2, long param3, long param4, int param5, long param6, int param7, long param8, int param9, long __functionAddress); - public static native long invokePPPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, long __functionAddress); - public static native long invokePPPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, int param7, long param8, long __functionAddress); - public static native long invokePPPPJJPPP(long param0, long param1, long param2, long param3, int param4, long param5, int param6, long param7, int param8, long param9, long param10, long __functionAddress); - public static native long invokePPPPPJJPP(long param0, long param1, long param2, long param3, long param4, int param5, long param6, int param7, long param8, int param9, long param10, long __functionAddress); - public static native long invokePPPPPJPPP(long param0, long param1, long param2, long param3, long param4, int param5, long param6, int param7, long param8, int param9, long param10, long __functionAddress); - public static native long invokePPPPPJPPP(long param0, int param1, long param2, long param3, long param4, long param5, int param6, int param7, long param8, int param9, long param10, long param11, long __functionAddress); - public static native long invokePPPPPJPPP(long param0, int param1, long param2, long param3, long param4, long param5, int param6, int param7, long param8, int param9, int param10, long param11, long param12, long __functionAddress); - public static native long invokePPPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, int param7, long param8, int param9, int param10, int param11, int param12, int param13, long __functionAddress); - public static native long invokePPPPPJJJPP(long param0, long param1, long param2, long param3, long param4, int param5, long param6, long param7, long param8, int param9, long param10, long __functionAddress); - public static native long invokePPPPPPPPPP(long param0, long param1, long param2, long param3, int param4, long param5, long param6, long param7, long param8, int param9, long param10, long __functionAddress); - public static native long invokePPPPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, int param7, long param8, int param9, long param10, int param11, long __functionAddress); - public static native long invokePPPPPJPPPP(long param0, long param1, long param2, long param3, long param4, int param5, long param6, int param7, int param8, long param9, int param10, int param11, long param12, long param13, long __functionAddress); - public static native long invokePPPPPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, long param8, long param9, long __functionAddress); - public static native long invokePPPPPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, int param7, long param8, int param9, long param10, long param11, int param12, long __functionAddress); - public static native long invokePPPPPJPPPPPP(long param0, long param1, long param2, long param3, long param4, int param5, long param6, int param7, int param8, long param9, long param10, int param11, int param12, long param13, long param14, long param15, long __functionAddress); - public static native long invokePPPPPPPPPPPPP(long param0, int param1, long param2, long param3, long param4, int param5, long param6, long param7, int param8, long param9, long param10, int param11, int param12, int param13, int param14, long param15, long param16, long param17, long param18, long __functionAddress); - public static native long invokePPPPPJJPPPPPPP(long param0, long param1, long param2, long param3, long param4, int param5, long param6, int param7, long param8, int param9, long param10, long param11, int param12, long param13, long param14, long param15, long param16, long __functionAddress); - public static native byte invokeU(int param0, long __functionAddress); - public static native byte invokeUPU(byte param0, long param1, long __functionAddress); - public static native void invokeV(long __functionAddress); - public static native void invokeV(double param0, long __functionAddress); - public static native void invokeV(float param0, long __functionAddress); - public static native void invokeV(int param0, long __functionAddress); - public static native void invokeV(int param0, float param1, long __functionAddress); - public static native void invokeV(int param0, int param1, long __functionAddress); - public static native void invokeV(int param0, int param1, double param2, long __functionAddress); - public static native void invokeV(int param0, int param1, float param2, long __functionAddress); - public static native void invokeV(int param0, int param1, int param2, long __functionAddress); - public static native void invokeV(int param0, float param1, float param2, float param3, long __functionAddress); - public static native void invokeV(int param0, int param1, int param2, int param3, long __functionAddress); - public static native void invokeV(int param0, int param1, double param2, double param3, double param4, long __functionAddress); - public static native void invokeV(int param0, int param1, float param2, float param3, float param4, long __functionAddress); - public static native void invokeV(int param0, int param1, int param2, int param3, int param4, long __functionAddress); - public static native void invokeCV(short param0, long __functionAddress); - public static native void invokePV(long param0, long __functionAddress); - public static native void invokeUV(byte param0, long __functionAddress); - public static native void invokeCV(int param0, short param1, long __functionAddress); - public static native void invokeCV(short param0, int param1, long __functionAddress); - public static native void invokeCV(short param0, boolean param1, long __functionAddress); - public static native void invokeJV(int param0, long param1, long __functionAddress); - public static native void invokeJV(long param0, int param1, long __functionAddress); - public static native void invokePV(int param0, long param1, long __functionAddress); - public static native void invokePV(long param0, float param1, long __functionAddress); - public static native void invokePV(long param0, int param1, long __functionAddress); - public static native void invokePV(long param0, boolean param1, long __functionAddress); - public static native void invokeUV(byte param0, int param1, long __functionAddress); - public static native void invokeUV(byte param0, boolean param1, long __functionAddress); - public static native void invokeCV(short param0, int param1, int param2, long __functionAddress); - public static native void invokeJV(int param0, int param1, long param2, long __functionAddress); - public static native void invokePV(int param0, int param1, long param2, long __functionAddress); - public static native void invokePV(int param0, long param1, boolean param2, long __functionAddress); - public static native void invokePV(long param0, double param1, double param2, long __functionAddress); - public static native void invokePV(long param0, float param1, float param2, long __functionAddress); - public static native void invokePV(long param0, int param1, double param2, long __functionAddress); - public static native void invokePV(long param0, int param1, float param2, long __functionAddress); - public static native void invokePV(long param0, int param1, int param2, long __functionAddress); - public static native void invokePV(long param0, int param1, boolean param2, long __functionAddress); - public static native void invokePV(long param0, float param1, float param2, float param3, long __functionAddress); - public static native void invokePV(long param0, float param1, float param2, int param3, long __functionAddress); - public static native void invokePV(long param0, int param1, int param2, double param3, long __functionAddress); - public static native void invokePV(long param0, int param1, int param2, float param3, long __functionAddress); - public static native void invokePV(long param0, int param1, int param2, int param3, long __functionAddress); - public static native void invokePV(int param0, int param1, long param2, int param3, int param4, long __functionAddress); - public static native void invokePV(long param0, int param1, int param2, int param3, int param4, long __functionAddress); - public static native void invokePV(int param0, int param1, int param2, int param3, int param4, long param5, long __functionAddress); - public static native void invokePV(long param0, int param1, int param2, int param3, int param4, boolean param5, long __functionAddress); - public static native void invokePV(int param0, int param1, int param2, int param3, int param4, int param5, long param6, long __functionAddress); - public static native void invokeCCV(short param0, short param1, long __functionAddress); - public static native void invokeCPV(short param0, long param1, long __functionAddress); - public static native void invokePCV(long param0, short param1, long __functionAddress); - public static native void invokePJV(long param0, long param1, long __functionAddress); - public static native void invokePNV(long param0, long param1, long __functionAddress); - public static native void invokePPV(long param0, long param1, long __functionAddress); - public static native void invokePUV(long param0, byte param1, long __functionAddress); - public static native void invokeUPV(byte param0, long param1, long __functionAddress); - public static native void invokeCPV(short param0, int param1, long param2, long __functionAddress); - public static native void invokeCPV(short param0, long param1, int param2, long __functionAddress); - public static native void invokePCV(long param0, int param1, short param2, long __functionAddress); - public static native void invokePCV(long param0, short param1, boolean param2, long __functionAddress); - public static native void invokePJV(int param0, long param1, long param2, long __functionAddress); - public static native void invokePJV(long param0, int param1, long param2, long __functionAddress); - public static native void invokePJV(long param0, long param1, int param2, long __functionAddress); - public static native void invokePPV(int param0, long param1, long param2, long __functionAddress); - public static native void invokePPV(long param0, int param1, long param2, long __functionAddress); - public static native void invokePPV(long param0, long param1, float param2, long __functionAddress); - public static native void invokePPV(long param0, long param1, int param2, long __functionAddress); - public static native void invokePPV(long param0, long param1, boolean param2, long __functionAddress); - public static native void invokeUCV(byte param0, short param1, int param2, long __functionAddress); - public static native void invokePBV(long param0, int param1, int param2, byte param3, long __functionAddress); - public static native void invokePCV(long param0, int param1, int param2, short param3, long __functionAddress); - public static native void invokePCV(long param0, short param1, int param2, int param3, long __functionAddress); - public static native void invokePPV(int param0, int param1, long param2, long param3, long __functionAddress); - public static native void invokePPV(long param0, int param1, int param2, long param3, long __functionAddress); - public static native void invokePPV(long param0, int param1, long param2, int param3, long __functionAddress); - public static native void invokePPV(long param0, long param1, int param2, int param3, long __functionAddress); - public static native void invokePSV(long param0, int param1, int param2, short param3, long __functionAddress); - public static native void invokePUV(long param0, int param1, int param2, byte param3, long __functionAddress); - public static native void invokeUCV(byte param0, short param1, int param2, int param3, long __functionAddress); - public static native void invokeUPV(byte param0, long param1, int param2, int param3, long __functionAddress); - public static native void invokePCV(long param0, short param1, int param2, int param3, int param4, long __functionAddress); - public static native void invokePPV(int param0, int param1, int param2, long param3, long param4, long __functionAddress); - public static native void invokePPV(long param0, float param1, long param2, int param3, int param4, long __functionAddress); - public static native void invokePPV(long param0, int param1, int param2, int param3, long param4, long __functionAddress); - public static native void invokePPV(long param0, long param1, int param2, int param3, int param4, long __functionAddress); - public static native void invokePPV(int param0, int param1, int param2, int param3, long param4, long param5, long __functionAddress); - public static native void invokePPV(long param0, int param1, int param2, int param3, int param4, long param5, long __functionAddress); - public static native void invokePPV(long param0, long param1, float param2, float param3, float param4, float param5, long __functionAddress); - public static native void invokePPV(long param0, long param1, int param2, int param3, int param4, int param5, int param6, long __functionAddress); - public static native void invokePPV(long param0, long param1, float param2, float param3, float param4, float param5, float param6, float param7, long __functionAddress); - public static native void invokeCCPV(short param0, short param1, long param2, long __functionAddress); - public static native void invokeCPCV(short param0, long param1, short param2, long __functionAddress); - public static native void invokeCPPV(short param0, long param1, long param2, long __functionAddress); - public static native void invokePNNV(long param0, long param1, long param2, long __functionAddress); - public static native void invokePNPV(long param0, long param1, long param2, long __functionAddress); - public static native void invokePPNV(long param0, long param1, long param2, long __functionAddress); - public static native void invokePPPV(long param0, long param1, long param2, long __functionAddress); - public static native void invokeCCCV(short param0, short param1, short param2, int param3, long __functionAddress); - public static native void invokeCCUV(short param0, short param1, int param2, byte param3, long __functionAddress); - public static native void invokePJPV(long param0, long param1, long param2, int param3, long __functionAddress); - public static native void invokePPPV(int param0, long param1, long param2, long param3, long __functionAddress); - public static native void invokePPPV(long param0, int param1, long param2, long param3, long __functionAddress); - public static native void invokePPPV(long param0, long param1, int param2, long param3, long __functionAddress); - public static native void invokePPPV(long param0, long param1, long param2, float param3, long __functionAddress); - public static native void invokePPPV(long param0, long param1, long param2, int param3, long __functionAddress); - public static native void invokePUCV(long param0, byte param1, short param2, int param3, long __functionAddress); - public static native void invokeUCCV(byte param0, short param1, short param2, int param3, long __functionAddress); - public static native void invokeCCUV(short param0, short param1, int param2, float param3, byte param4, long __functionAddress); - public static native void invokeJJJV(int param0, int param1, long param2, long param3, long param4, long __functionAddress); - public static native void invokePNNV(long param0, long param1, int param2, int param3, long param4, long __functionAddress); - public static native void invokePPPV(int param0, int param1, long param2, long param3, long param4, long __functionAddress); - public static native void invokePPPV(long param0, int param1, int param2, long param3, long param4, long __functionAddress); - public static native void invokePPPV(long param0, int param1, long param2, long param3, int param4, long __functionAddress); - public static native void invokePPPV(long param0, long param1, int param2, int param3, long param4, long __functionAddress); - public static native void invokePPPV(long param0, long param1, int param2, long param3, int param4, long __functionAddress); - public static native void invokePPPV(long param0, long param1, long param2, float param3, float param4, long __functionAddress); - public static native void invokePPPV(long param0, long param1, long param2, boolean param3, boolean param4, long __functionAddress); - public static native void invokePUCV(long param0, byte param1, short param2, int param3, int param4, long __functionAddress); - public static native void invokePUPV(long param0, byte param1, long param2, int param3, int param4, long __functionAddress); - public static native void invokeUCCV(byte param0, short param1, int param2, int param3, short param4, long __functionAddress); - public static native void invokeUCUV(byte param0, short param1, byte param2, int param3, int param4, long __functionAddress); - public static native void invokeUPCV(byte param0, long param1, int param2, int param3, short param4, long __functionAddress); - public static native void invokeCCUV(short param0, short param1, int param2, int param3, int param4, byte param5, long __functionAddress); - public static native void invokePPPV(long param0, int param1, int param2, int param3, long param4, long param5, long __functionAddress); - public static native void invokePPPV(long param0, int param1, long param2, int param3, long param4, int param5, long __functionAddress); - public static native void invokePPPV(long param0, int param1, long param2, long param3, int param4, int param5, long __functionAddress); - public static native void invokePPPV(long param0, long param1, long param2, int param3, boolean param4, boolean param5, long __functionAddress); - public static native void invokePPPV(long param0, boolean param1, int param2, long param3, long param4, int param5, long __functionAddress); - public static native void invokePPPV(long param0, int param1, int param2, long param3, int param4, long param5, int param6, long __functionAddress); - public static native void invokePPPV(long param0, long param1, float param2, float param3, float param4, float param5, long param6, long __functionAddress); - public static native void invokePPPV(long param0, long param1, long param2, float param3, float param4, float param5, float param6, long __functionAddress); - public static native void invokePPPV(long param0, long param1, int param2, int param3, int param4, long param5, int param6, boolean param7, long __functionAddress); - public static native void invokePPPV(long param0, long param1, float param2, float param3, float param4, float param5, float param6, float param7, long param8, long __functionAddress); - public static native void invokePPPV(long param0, long param1, long param2, float param3, float param4, float param5, float param6, float param7, float param8, long __functionAddress); - public static native void invokeCCUPV(short param0, short param1, byte param2, long param3, long __functionAddress); - public static native void invokePCPCV(long param0, short param1, long param2, short param3, long __functionAddress); - public static native void invokePNPPV(long param0, long param1, long param2, long param3, long __functionAddress); - public static native void invokePPPPV(long param0, long param1, long param2, long param3, long __functionAddress); - public static native void invokeCCCUV(short param0, short param1, short param2, int param3, byte param4, long __functionAddress); - public static native void invokePCCUV(long param0, short param1, short param2, int param3, byte param4, long __functionAddress); - public static native void invokePJJPV(long param0, int param1, long param2, long param3, long param4, long __functionAddress); - public static native void invokePPCPV(long param0, long param1, short param2, int param3, long param4, long __functionAddress); - public static native void invokePPPCV(long param0, long param1, int param2, long param3, short param4, long __functionAddress); - public static native void invokePPPPV(long param0, int param1, long param2, long param3, long param4, long __functionAddress); - public static native void invokePPPPV(long param0, long param1, int param2, long param3, long param4, long __functionAddress); - public static native void invokePPPPV(long param0, long param1, long param2, int param3, long param4, long __functionAddress); - public static native void invokePPPPV(long param0, long param1, long param2, long param3, int param4, long __functionAddress); - public static native void invokePUCCV(long param0, byte param1, short param2, short param3, int param4, long __functionAddress); - public static native void invokePPPPV(long param0, long param1, long param2, float param3, float param4, long param5, long __functionAddress); - public static native void invokePUCCV(long param0, byte param1, short param2, int param3, int param4, short param5, long __functionAddress); - public static native void invokePUCUV(long param0, byte param1, short param2, byte param3, int param4, int param5, long __functionAddress); - public static native void invokePUPCV(long param0, byte param1, long param2, int param3, int param4, short param5, long __functionAddress); - public static native void invokePCCUV(long param0, short param1, short param2, int param3, int param4, int param5, byte param6, long __functionAddress); - public static native void invokePPPPV(long param0, long param1, long param2, float param3, float param4, float param5, float param6, long param7, long __functionAddress); - public static native void invokePPPPV(long param0, long param1, long param2, int param3, int param4, int param5, float param6, long param7, long __functionAddress); - public static native void invokePPPPV(long param0, long param1, long param2, float param3, float param4, float param5, float param6, float param7, float param8, long param9, long __functionAddress); - public static native void invokeCCCCCV(short param0, short param1, short param2, short param3, short param4, long __functionAddress); - public static native void invokeCCUPPV(short param0, short param1, byte param2, long param3, long param4, long __functionAddress); - public static native void invokePPCPPV(long param0, long param1, short param2, long param3, long param4, long __functionAddress); - public static native void invokePPPPPV(long param0, long param1, long param2, long param3, long param4, long __functionAddress); - public static native void invokePCCCUV(long param0, short param1, short param2, short param3, int param4, byte param5, long __functionAddress); - public static native void invokePPPPPV(int param0, long param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native void invokePPPPPV(long param0, int param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native void invokePPPPPV(long param0, long param1, int param2, long param3, long param4, long param5, long __functionAddress); - public static native void invokePPPPPV(long param0, int param1, int param2, long param3, long param4, long param5, long param6, long __functionAddress); - public static native void invokePCCCCV(long param0, short param1, short param2, short param3, boolean param4, boolean param5, short param6, int param7, long __functionAddress); - public static native void invokePPPPPV(long param0, long param1, int param2, long param3, int param4, long param5, int param6, long param7, long __functionAddress); - public static native void invokePPPPPV(long param0, long param1, int param2, long param3, long param4, int param5, int param6, long param7, long __functionAddress); - public static native void invokePPPPPV(int param0, long param1, int param2, long param3, long param4, long param5, int param6, long param7, int param8, boolean param9, long __functionAddress); - public static native void invokeCCCCCUV(short param0, short param1, short param2, short param3, short param4, byte param5, long __functionAddress); - public static native void invokeCCCCPCV(short param0, short param1, short param2, short param3, long param4, short param5, long __functionAddress); - public static native void invokePPPPPPV(long param0, long param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native void invokeCCCCCUV(short param0, short param1, short param2, short param3, short param4, int param5, byte param6, long __functionAddress); - public static native void invokePCCCCUV(long param0, short param1, int param2, short param3, short param4, short param5, byte param6, long __functionAddress); - public static native void invokePCCCCCUV(long param0, short param1, short param2, short param3, short param4, short param5, byte param6, long __functionAddress); - public static native void invokePPPPPPPV(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long __functionAddress); - public static native void invokePCCCCCUV(long param0, short param1, short param2, short param3, short param4, short param5, int param6, byte param7, long __functionAddress); - public static native void invokePPPPPPPV(long param0, int param1, long param2, long param3, long param4, long param5, long param6, long param7, long __functionAddress); - public static native void invokeCCCCCCUV(short param0, short param1, short param2, short param3, short param4, int param5, short param6, int param7, byte param8, long __functionAddress); - public static native void invokePCCCCCCUV(long param0, short param1, short param2, short param3, short param4, short param5, int param6, short param7, int param8, byte param9, long __functionAddress); - public static native void invokeCCUCCCCPCV(short param0, short param1, byte param2, short param3, short param4, short param5, short param6, long param7, short param8, long __functionAddress); - public static native void invokeCUCCCCCCPV(short param0, byte param1, short param2, short param3, short param4, short param5, short param6, short param7, long param8, long __functionAddress); - public static native void invokeCCUUCCCCPCV(short param0, short param1, byte param2, byte param3, short param4, short param5, short param6, short param7, long param8, short param9, long __functionAddress); - public static native void invokeCCUUUUUUUUUV(short param0, short param1, float param2, byte param3, byte param4, byte param5, byte param6, byte param7, byte param8, byte param9, byte param10, byte param11, long __functionAddress); - public static native void invokeCCUCCCCUCCCCCCV(short param0, short param1, byte param2, short param3, short param4, short param5, short param6, byte param7, short param8, short param9, short param10, short param11, short param12, short param13, long __functionAddress); - public static native void invokePCCUCCCCUCCCCCCV(long param0, short param1, short param2, byte param3, short param4, short param5, short param6, short param7, byte param8, short param9, short param10, short param11, short param12, short param13, short param14, long __functionAddress); - public static native boolean invokeZ(long __functionAddress); - public static native boolean invokeZ(int param0, long __functionAddress); - public static native boolean invokePZ(long param0, long __functionAddress); - public static native boolean invokePZ(long param0, int param1, long __functionAddress); - public static native boolean invokePZ(long param0, boolean param1, long __functionAddress); - public static native boolean invokePZ(long param0, int param1, int param2, long __functionAddress); - public static native boolean invokePZ(long param0, int param1, int param2, int param3, long __functionAddress); - public static native boolean invokePPZ(long param0, long param1, long __functionAddress); - public static native boolean invokeUPZ(byte param0, long param1, long __functionAddress); - public static native boolean invokePPZ(long param0, int param1, long param2, long __functionAddress); - public static native boolean invokePPZ(long param0, int param1, int param2, long param3, long __functionAddress); - public static native boolean invokePPPZ(long param0, long param1, long param2, long __functionAddress); - public static native boolean invokePJPZ(long param0, long param1, long param2, int param3, long __functionAddress); - public static native boolean invokePPPZ(long param0, long param1, long param2, int param3, long __functionAddress); - public static native boolean invokeCCJZ(short param0, boolean param1, short param2, int param3, long param4, long __functionAddress); - public static native boolean invokePPPZ(long param0, long param1, long param2, boolean param3, int param4, long __functionAddress); - public static native boolean invokePPPZ(long param0, long param1, int param2, long param3, int param4, boolean param5, long __functionAddress); - public static native boolean invokePPPPZ(long param0, long param1, long param2, long param3, long __functionAddress); - public static native boolean invokePPPPZ(long param0, int param1, long param2, long param3, long param4, long __functionAddress); - public static native boolean invokePPPUPZ(long param0, long param1, long param2, byte param3, long param4, long __functionAddress); - public static native boolean invokePPPPPZ(long param0, long param1, long param2, long param3, long param4, int param5, long __functionAddress); - public static native boolean invokePPPPPZ(long param0, long param1, long param2, long param3, long param4, boolean param5, int param6, long __functionAddress); - public static native short callC(int param0, long __functionAddress); - public static native float callF(long __functionAddress); - public static native float callF(int param0, int param1, int param2, long __functionAddress); - public static native float callPF(long param0, float param1, long __functionAddress); - public static native float callPF(int param0, int param1, long param2, long __functionAddress); - public static native float callPPPF(long param0, long param1, long param2, long __functionAddress); - public static native int callI(long __functionAddress); - public static native int callI(int param0, long __functionAddress); - public static native int callI(int param0, float param1, long __functionAddress); - public static native int callI(int param0, int param1, long __functionAddress); - public static native int callI(int param0, int param1, int param2, long __functionAddress); - public static native int callJI(long param0, long __functionAddress); - public static native int callPI(long param0, long __functionAddress); - public static native int callJI(long param0, float param1, long __functionAddress); - public static native int callJI(long param0, int param1, long __functionAddress); - public static native int callPI(int param0, long param1, long __functionAddress); - public static native int callPI(long param0, float param1, long __functionAddress); - public static native int callPI(long param0, int param1, long __functionAddress); - public static native int callPI(long param0, boolean param1, long __functionAddress); - public static native int callJI(long param0, int param1, boolean param2, long __functionAddress); - public static native int callPI(int param0, int param1, long param2, long __functionAddress); - public static native int callPI(int param0, long param1, int param2, long __functionAddress); - public static native int callPI(long param0, float param1, float param2, long __functionAddress); - public static native int callPI(long param0, float param1, int param2, long __functionAddress); - public static native int callPI(long param0, int param1, float param2, long __functionAddress); - public static native int callPI(long param0, int param1, int param2, long __functionAddress); - public static native int callJI(int param0, long param1, int param2, int param3, long __functionAddress); - public static native int callJI(long param0, float param1, float param2, float param3, long __functionAddress); - public static native int callPI(int param0, int param1, int param2, long param3, long __functionAddress); - public static native int callPI(int param0, int param1, long param2, int param3, long __functionAddress); - public static native int callPI(int param0, long param1, int param2, int param3, long __functionAddress); - public static native int callPI(long param0, float param1, float param2, float param3, long __functionAddress); - public static native int callPI(long param0, int param1, float param2, float param3, long __functionAddress); - public static native int callPI(long param0, int param1, int param2, int param3, long __functionAddress); - public static native int callPI(long param0, int param1, int param2, boolean param3, long __functionAddress); - public static native int callPI(int param0, int param1, int param2, int param3, long param4, long __functionAddress); - public static native int callPI(long param0, int param1, float param2, float param3, int param4, long __functionAddress); - public static native int callPI(long param0, int param1, int param2, int param3, int param4, long __functionAddress); - public static native int callPI(int param0, int param1, int param2, float param3, float param4, long param5, long __functionAddress); - public static native int callPI(int param0, int param1, int param2, int param3, int param4, long param5, long __functionAddress); - public static native int callPI(int param0, long param1, int param2, int param3, float param4, int param5, long __functionAddress); - public static native int callPI(long param0, int param1, int param2, int param3, int param4, int param5, long __functionAddress); - public static native int callPI(long param0, int param1, int param2, int param3, int param4, int param5, int param6, long __functionAddress); - public static native int callPI(int param0, int param1, long param2, int param3, int param4, int param5, int param6, float param7, long __functionAddress); - public static native int callPI(long param0, float param1, float param2, float param3, float param4, float param5, float param6, float param7, float param8, long __functionAddress); - public static native int callJJI(long param0, long param1, long __functionAddress); - public static native int callJPI(long param0, long param1, long __functionAddress); - public static native int callPJI(long param0, long param1, long __functionAddress); - public static native int callPPI(long param0, long param1, long __functionAddress); - public static native int callJPI(long param0, int param1, long param2, long __functionAddress); - public static native int callJPI(long param0, long param1, int param2, long __functionAddress); - public static native int callPJI(long param0, int param1, long param2, long __functionAddress); - public static native int callPJI(long param0, long param1, float param2, long __functionAddress); - public static native int callPJI(long param0, long param1, int param2, long __functionAddress); - public static native int callPPI(int param0, long param1, long param2, long __functionAddress); - public static native int callPPI(long param0, float param1, long param2, long __functionAddress); - public static native int callPPI(long param0, int param1, long param2, long __functionAddress); - public static native int callPPI(long param0, long param1, float param2, long __functionAddress); - public static native int callPPI(long param0, long param1, int param2, long __functionAddress); - public static native int callJPI(long param0, int param1, long param2, int param3, long __functionAddress); - public static native int callJPI(long param0, long param1, int param2, int param3, long __functionAddress); - public static native int callPJI(long param0, int param1, int param2, long param3, long __functionAddress); - public static native int callPPI(int param0, int param1, long param2, long param3, long __functionAddress); - public static native int callPPI(int param0, long param1, long param2, int param3, long __functionAddress); - public static native int callPPI(long param0, int param1, float param2, long param3, long __functionAddress); - public static native int callPPI(long param0, int param1, int param2, long param3, long __functionAddress); - public static native int callPPI(long param0, int param1, long param2, int param3, long __functionAddress); - public static native int callPPI(long param0, long param1, float param2, float param3, long __functionAddress); - public static native int callPPI(long param0, long param1, float param2, int param3, long __functionAddress); - public static native int callPPI(long param0, long param1, int param2, int param3, long __functionAddress); - public static native int callJPI(long param0, int param1, int param2, long param3, int param4, long __functionAddress); - public static native int callJPI(long param0, long param1, int param2, int param3, int param4, long __functionAddress); - public static native int callPPI(int param0, int param1, int param2, long param3, long param4, long __functionAddress); - public static native int callPPI(int param0, int param1, long param2, int param3, long param4, long __functionAddress); - public static native int callPPI(long param0, int param1, float param2, float param3, long param4, long __functionAddress); - public static native int callPPI(long param0, int param1, int param2, int param3, long param4, long __functionAddress); - public static native int callPPI(long param0, int param1, int param2, long param3, int param4, long __functionAddress); - public static native int callPPI(long param0, long param1, int param2, int param3, int param4, long __functionAddress); - public static native int callPPI(long param0, long param1, int param2, int param3, boolean param4, long __functionAddress); - public static native int callJJI(long param0, float param1, float param2, float param3, float param4, long param5, long __functionAddress); - public static native int callPPI(int param0, int param1, int param2, long param3, int param4, long param5, long __functionAddress); - public static native int callPPI(int param0, long param1, int param2, int param3, float param4, long param5, long __functionAddress); - public static native int callPPI(long param0, int param1, float param2, float param3, float param4, long param5, long __functionAddress); - public static native int callPPI(long param0, long param1, int param2, int param3, int param4, int param5, long __functionAddress); - public static native int callPPI(long param0, int param1, float param2, float param3, float param4, int param5, long param6, long __functionAddress); - public static native int callPPI(long param0, int param1, int param2, int param3, int param4, int param5, long param6, long __functionAddress); - public static native int callPPI(long param0, int param1, float param2, float param3, float param4, float param5, int param6, long param7, long __functionAddress); - public static native int callPPI(long param0, int param1, int param2, int param3, int param4, int param5, int param6, long param7, long __functionAddress); - public static native int callPPI(int param0, int param1, long param2, long param3, int param4, int param5, int param6, int param7, float param8, long __functionAddress); - public static native int callPPI(long param0, int param1, float param2, float param3, float param4, float param5, float param6, int param7, long param8, long __functionAddress); - public static native int callPPI(long param0, int param1, int param2, float param3, float param4, float param5, float param6, float param7, int param8, long param9, int param10, long __functionAddress); - public static native int callPPI(long param0, int param1, int param2, int param3, int param4, int param5, int param6, long param7, int param8, int param9, int param10, int param11, int param12, int param13, int param14, int param15, int param16, long __functionAddress); - public static native int callJPPI(long param0, long param1, long param2, long __functionAddress); - public static native int callPCPI(long param0, short param1, long param2, long __functionAddress); - public static native int callPJJI(long param0, long param1, long param2, long __functionAddress); - public static native int callPJPI(long param0, long param1, long param2, long __functionAddress); - public static native int callPPJI(long param0, long param1, long param2, long __functionAddress); - public static native int callPPPI(long param0, long param1, long param2, long __functionAddress); - public static native int callPUPI(long param0, byte param1, long param2, long __functionAddress); - public static native int callJJPI(long param0, long param1, long param2, int param3, long __functionAddress); - public static native int callJPJI(long param0, long param1, int param2, long param3, long __functionAddress); - public static native int callJPPI(long param0, int param1, long param2, long param3, long __functionAddress); - public static native int callJPPI(long param0, long param1, int param2, long param3, long __functionAddress); - public static native int callJPPI(long param0, long param1, long param2, int param3, long __functionAddress); - public static native int callPJJI(long param0, long param1, int param2, long param3, long __functionAddress); - public static native int callPJJI(long param0, long param1, long param2, float param3, long __functionAddress); - public static native int callPJJI(long param0, long param1, long param2, int param3, long __functionAddress); - public static native int callPJJI(long param0, long param1, long param2, boolean param3, long __functionAddress); - public static native int callPJPI(long param0, int param1, long param2, long param3, long __functionAddress); - public static native int callPJPI(long param0, long param1, int param2, long param3, long __functionAddress); - public static native int callPPJI(long param0, int param1, long param2, long param3, long __functionAddress); - public static native int callPPJI(long param0, long param1, int param2, long param3, long __functionAddress); - public static native int callPPJI(long param0, long param1, long param2, int param3, long __functionAddress); - public static native int callPPNI(long param0, int param1, long param2, long param3, long __functionAddress); - public static native int callPPPI(int param0, long param1, long param2, long param3, long __functionAddress); - public static native int callPPPI(long param0, int param1, long param2, long param3, long __functionAddress); - public static native int callPPPI(long param0, long param1, int param2, long param3, long __functionAddress); - public static native int callPPPI(long param0, long param1, long param2, int param3, long __functionAddress); - public static native int callJPJI(long param0, int param1, long param2, int param3, long param4, long __functionAddress); - public static native int callJPPI(long param0, int param1, long param2, int param3, long param4, long __functionAddress); - public static native int callJPPI(long param0, int param1, long param2, long param3, int param4, long __functionAddress); - public static native int callJPPI(long param0, long param1, int param2, int param3, long param4, long __functionAddress); - public static native int callJPPI(long param0, long param1, long param2, int param3, int param4, long __functionAddress); - public static native int callPJJI(long param0, long param1, int param2, long param3, int param4, long __functionAddress); - public static native int callPJPI(long param0, int param1, long param2, long param3, int param4, long __functionAddress); - public static native int callPPJI(long param0, int param1, long param2, int param3, long param4, long __functionAddress); - public static native int callPPPI(int param0, int param1, long param2, long param3, long param4, long __functionAddress); - public static native int callPPPI(int param0, long param1, int param2, long param3, long param4, long __functionAddress); - public static native int callPPPI(long param0, int param1, int param2, long param3, long param4, long __functionAddress); - public static native int callPPPI(long param0, int param1, long param2, int param3, long param4, long __functionAddress); - public static native int callPPPI(long param0, int param1, long param2, long param3, int param4, long __functionAddress); - public static native int callPPPI(long param0, long param1, int param2, long param3, int param4, long __functionAddress); - public static native int callPPPI(long param0, long param1, long param2, int param3, int param4, long __functionAddress); - public static native int callJPJI(long param0, int param1, float param2, long param3, int param4, long param5, long __functionAddress); - public static native int callJPPI(long param0, int param1, long param2, int param3, long param4, int param5, long __functionAddress); - public static native int callPPPI(long param0, int param1, int param2, int param3, long param4, long param5, long __functionAddress); - public static native int callPPPI(long param0, int param1, int param2, long param3, int param4, long param5, long __functionAddress); - public static native int callPPPI(long param0, int param1, long param2, long param3, int param4, int param5, long __functionAddress); - public static native int callPPPI(long param0, long param1, int param2, int param3, int param4, long param5, long __functionAddress); - public static native int callPPPI(long param0, long param1, long param2, int param3, int param4, int param5, long __functionAddress); - public static native int callPPPI(long param0, float param1, float param2, int param3, int param4, long param5, long param6, long __functionAddress); - public static native int callPPPI(long param0, int param1, int param2, int param3, int param4, long param5, long param6, long __functionAddress); - public static native int callPPPI(long param0, int param1, long param2, long param3, int param4, int param5, int param6, long __functionAddress); - public static native int callPPPI(long param0, long param1, int param2, int param3, int param4, int param5, long param6, long __functionAddress); - public static native int callJPPI(int param0, int param1, int param2, int param3, int param4, long param5, long param6, long param7, long __functionAddress); - public static native int callPPJI(int param0, int param1, int param2, long param3, int param4, long param5, boolean param6, long param7, long __functionAddress); - public static native int callPPPI(long param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, long param8, long param9, long __functionAddress); - public static native int callJJPPI(long param0, long param1, long param2, long param3, long __functionAddress); - public static native int callJPPPI(long param0, long param1, long param2, long param3, long __functionAddress); - public static native int callPCPPI(long param0, short param1, long param2, long param3, long __functionAddress); - public static native int callPJJJI(long param0, long param1, long param2, long param3, long __functionAddress); - public static native int callPJJPI(long param0, long param1, long param2, long param3, long __functionAddress); - public static native int callPJPPI(long param0, long param1, long param2, long param3, long __functionAddress); - public static native int callPPJPI(long param0, long param1, long param2, long param3, long __functionAddress); - public static native int callPPNPI(long param0, long param1, long param2, long param3, long __functionAddress); - public static native int callPPPJI(long param0, long param1, long param2, long param3, long __functionAddress); - public static native int callPPPPI(long param0, long param1, long param2, long param3, long __functionAddress); - public static native int callPUPPI(long param0, byte param1, long param2, long param3, long __functionAddress); - public static native int callJPPPI(long param0, long param1, int param2, long param3, long param4, long __functionAddress); - public static native int callPJJJI(long param0, int param1, long param2, long param3, long param4, long __functionAddress); - public static native int callPJPPI(long param0, long param1, int param2, long param3, long param4, long __functionAddress); - public static native int callPPJPI(long param0, long param1, int param2, long param3, long param4, long __functionAddress); - public static native int callPPPJI(long param0, long param1, long param2, int param3, long param4, long __functionAddress); - public static native int callPPPPI(long param0, int param1, long param2, long param3, long param4, long __functionAddress); - public static native int callPPPPI(long param0, long param1, int param2, long param3, long param4, long __functionAddress); - public static native int callPPPPI(long param0, long param1, long param2, int param3, long param4, long __functionAddress); - public static native int callPPPPI(long param0, long param1, long param2, long param3, int param4, long __functionAddress); - public static native int callJPPPI(long param0, int param1, long param2, long param3, long param4, int param5, long __functionAddress); - public static native int callPJPPI(long param0, long param1, int param2, int param3, long param4, long param5, long __functionAddress); - public static native int callPPPPI(int param0, long param1, long param2, int param3, long param4, long param5, long __functionAddress); - public static native int callPPPPI(long param0, int param1, int param2, long param3, long param4, long param5, long __functionAddress); - public static native int callPPPPI(long param0, int param1, long param2, int param3, long param4, long param5, long __functionAddress); - public static native int callPPPPI(long param0, int param1, long param2, long param3, int param4, long param5, long __functionAddress); - public static native int callPPPPI(long param0, int param1, long param2, long param3, long param4, int param5, long __functionAddress); - public static native int callPPPPI(long param0, long param1, int param2, int param3, long param4, long param5, long __functionAddress); - public static native int callPPPPI(long param0, long param1, int param2, long param3, int param4, long param5, long __functionAddress); - public static native int callPPPPI(long param0, long param1, long param2, int param3, int param4, long param5, long __functionAddress); - public static native int callPPPPI(long param0, long param1, long param2, int param3, long param4, int param5, long __functionAddress); - public static native int callPJPPI(long param0, long param1, int param2, int param3, int param4, long param5, long param6, long __functionAddress); - public static native int callPPPPI(long param0, int param1, int param2, int param3, long param4, long param5, long param6, long __functionAddress); - public static native int callPPPPI(long param0, int param1, long param2, int param3, int param4, long param5, long param6, long __functionAddress); - public static native int callJPPJI(long param0, int param1, int param2, int param3, long param4, int param5, long param6, boolean param7, long param8, long __functionAddress); - public static native int callPPPPI(long param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, long param8, long param9, long param10, long __functionAddress); - public static native int callPPPPI(int param0, long param1, long param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, int param10, int param11, int param12, int param13, int param14, int param15, int param16, int param17, int param18, int param19, int param20, long param21, long param22, long __functionAddress); - public static native int callJPPPJI(long param0, long param1, long param2, long param3, long param4, long __functionAddress); - public static native int callPJJPPI(long param0, long param1, long param2, long param3, long param4, long __functionAddress); - public static native int callPJPPPI(long param0, long param1, long param2, long param3, long param4, long __functionAddress); - public static native int callPPCPPI(long param0, long param1, short param2, long param3, long param4, long __functionAddress); - public static native int callPPJPPI(long param0, long param1, long param2, long param3, long param4, long __functionAddress); - public static native int callPPPJJI(long param0, long param1, long param2, long param3, long param4, long __functionAddress); - public static native int callPPPPJI(long param0, long param1, long param2, long param3, long param4, long __functionAddress); - public static native int callPPPPPI(long param0, long param1, long param2, long param3, long param4, long __functionAddress); - public static native int callPPUPPI(long param0, long param1, byte param2, long param3, long param4, long __functionAddress); - public static native int callPJJJPI(long param0, long param1, long param2, long param3, int param4, long param5, long __functionAddress); - public static native int callPJPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long __functionAddress); - public static native int callPPPPPI(long param0, int param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native int callPPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long __functionAddress); - public static native int callPPPPPI(long param0, long param1, long param2, int param3, long param4, long param5, long __functionAddress); - public static native int callPPPPPI(long param0, long param1, long param2, long param3, int param4, long param5, long __functionAddress); - public static native int callPPPPPI(long param0, long param1, long param2, long param3, long param4, int param5, long __functionAddress); - public static native int callJJPPPI(long param0, long param1, int param2, long param3, int param4, long param5, long param6, long __functionAddress); - public static native int callPPJPPI(long param0, int param1, long param2, long param3, int param4, long param5, long param6, long __functionAddress); - public static native int callPPJPPI(long param0, long param1, int param2, long param3, int param4, long param5, long param6, long __functionAddress); - public static native int callPPPPPI(int param0, int param1, long param2, long param3, long param4, long param5, long param6, long __functionAddress); - public static native int callPPPPPI(long param0, int param1, int param2, long param3, long param4, long param5, long param6, long __functionAddress); - public static native int callPPPPPI(long param0, int param1, long param2, int param3, long param4, long param5, long param6, long __functionAddress); - public static native int callPPPPPI(long param0, int param1, long param2, long param3, int param4, long param5, long param6, long __functionAddress); - public static native int callPPPPPI(long param0, long param1, long param2, long param3, long param4, int param5, int param6, long __functionAddress); - public static native int callJPPPPI(int param0, int param1, long param2, long param3, int param4, long param5, long param6, long param7, long __functionAddress); - public static native int callPJPPJI(long param0, long param1, int param2, int param3, long param4, long param5, long param6, int param7, long __functionAddress); - public static native int callPPPPPI(long param0, int param1, long param2, int param3, long param4, int param5, long param6, long param7, long __functionAddress); - public static native int callJPJPPJI(long param0, long param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native int callPJJJJPI(long param0, long param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native int callPPCPPPI(long param0, long param1, short param2, long param3, long param4, long param5, long __functionAddress); - public static native int callPPPPJPI(long param0, long param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native int callPPPPPPI(long param0, long param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native int callPPUPPPI(long param0, long param1, byte param2, long param3, long param4, long param5, long __functionAddress); - public static native int callPJJPPPI(long param0, long param1, long param2, int param3, long param4, long param5, long param6, long __functionAddress); - public static native int callPJPPPPI(long param0, int param1, long param2, long param3, long param4, long param5, long param6, long __functionAddress); - public static native int callPPPJPPI(long param0, long param1, long param2, long param3, int param4, long param5, long param6, long __functionAddress); - public static native int callPJPPPPI(long param0, int param1, long param2, long param3, long param4, int param5, long param6, long param7, long __functionAddress); - public static native int callPPPJPPI(long param0, int param1, long param2, long param3, long param4, int param5, long param6, long param7, long __functionAddress); - public static native int callPPPPPPI(int param0, int param1, long param2, long param3, long param4, long param5, long param6, long param7, long __functionAddress); - public static native int callPPPPPPI(long param0, int param1, long param2, int param3, long param4, long param5, long param6, long param7, long __functionAddress); - public static native int callPPPPPPI(long param0, int param1, long param2, long param3, long param4, int param5, long param6, long param7, long __functionAddress); - public static native int callPPPPPPI(long param0, long param1, long param2, long param3, int param4, long param5, long param6, int param7, long __functionAddress); - public static native int callPPPPPPI(long param0, int param1, int param2, long param3, long param4, long param5, long param6, long param7, int param8, int param9, int param10, int param11, long __functionAddress); - public static native int callPPPPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long param6, long param7, long __functionAddress); - public static native int callPPPPPPPI(long param0, long param1, long param2, long param3, int param4, long param5, long param6, long param7, long __functionAddress); - public static native int callPPPPPPPI(long param0, long param1, long param2, long param3, long param4, int param5, long param6, long param7, long __functionAddress); - public static native int callPPPPPPPI(long param0, long param1, long param2, long param3, long param4, long param5, long param6, int param7, long __functionAddress); - public static native int callPPPPPPPI(long param0, int param1, long param2, int param3, long param4, long param5, long param6, long param7, long param8, long __functionAddress); - public static native int callPPPPPPPI(long param0, int param1, long param2, long param3, int param4, long param5, long param6, long param7, long param8, long __functionAddress); - public static native int callPPPPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, int param6, long param7, long param8, long __functionAddress); - public static native int callPPPPPPPI(long param0, long param1, long param2, int param3, long param4, long param5, int param6, long param7, long param8, long __functionAddress); - public static native int callPPPPPPPI(long param0, int param1, int param2, long param3, long param4, long param5, long param6, long param7, int param8, int param9, long param10, int param11, int param12, int param13, int param14, long __functionAddress); - public static native int callPPPPPJPPI(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, long __functionAddress); - public static native int callPPJPPPPPI(long param0, long param1, long param2, long param3, long param4, int param5, long param6, long param7, long param8, long __functionAddress); - public static native int callPPPPPPPPI(long param0, long param1, long param2, long param3, long param4, long param5, int param6, long param7, long param8, long __functionAddress); - public static native int callPPPPPPPPI(long param0, long param1, long param2, long param3, int param4, long param5, long param6, int param7, long param8, long param9, long __functionAddress); - public static native int callPPPPPPPPI(long param0, int param1, int param2, long param3, long param4, long param5, long param6, int param7, long param8, long param9, long param10, long __functionAddress); - public static native int callJPPPPPPPPI(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, long param8, long __functionAddress); - public static native int callPPPPPPPPPI(long param0, long param1, long param2, long param3, long param4, long param5, int param6, long param7, long param8, long param9, long __functionAddress); - public static native int callPPPPPPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long param6, long param7, int param8, long param9, long param10, long __functionAddress); - public static native int callPPPPPPPPPPI(long param0, long param1, long param2, long param3, long param4, long param5, long param6, int param7, long param8, long param9, long param10, long __functionAddress); - public static native int callPPPPPPPPPPI(long param0, long param1, long param2, long param3, int param4, long param5, long param6, long param7, int param8, long param9, long param10, long param11, long __functionAddress); - public static native int callPPPPPPPPPPPPI(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, long param8, long param9, int param10, long param11, long param12, long __functionAddress); - public static native int callPPPPPPPPPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long param6, long param7, long param8, long param9, long param10, int param11, long param12, long param13, long __functionAddress); - public static native int callPPPPPPPPPPPPPPI(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, long param8, long param9, long param10, int param11, long param12, long param13, long param14, long __functionAddress); - public static native long callJ(long __functionAddress); - public static native long callJ(int param0, long __functionAddress); - public static native long callJ(int param0, int param1, long __functionAddress); - public static native long callJ(int param0, int param1, boolean param2, int param3, int param4, long __functionAddress); - public static native long callJJ(long param0, long __functionAddress); - public static native long callPJ(long param0, long __functionAddress); - public static native long callPJ(int param0, int param1, long param2, long __functionAddress); - public static native long callPPJ(long param0, long param1, long __functionAddress); - public static native long callPPJ(long param0, int param1, long param2, long __functionAddress); - public static native long callPJJ(long param0, long param1, int param2, int param3, long __functionAddress); - public static native long callPN(long param0, long __functionAddress); - public static native long callP(long __functionAddress); - public static native long callP(int param0, long __functionAddress); - public static native long callP(int param0, int param1, long __functionAddress); - public static native long callP(int param0, float param1, float param2, float param3, long __functionAddress); - public static native long callPP(long param0, long __functionAddress); - public static native long callPP(int param0, long param1, long __functionAddress); - public static native long callPP(long param0, int param1, long __functionAddress); - public static native long callPP(int param0, int param1, long param2, long __functionAddress); - public static native long callPP(int param0, long param1, int param2, long __functionAddress); - public static native long callPP(long param0, int param1, int param2, long __functionAddress); - public static native long callPP(int param0, int param1, long param2, int param3, long __functionAddress); - public static native long callPNP(long param0, long param1, long __functionAddress); - public static native long callPPP(long param0, long param1, long __functionAddress); - public static native long callPPP(int param0, long param1, long param2, long __functionAddress); - public static native long callPPP(long param0, int param1, long param2, long __functionAddress); - public static native long callPPP(long param0, long param1, int param2, long __functionAddress); - public static native long callPPP(int param0, long param1, long param2, int param3, long __functionAddress); - public static native long callPPP(long param0, int param1, int param2, long param3, long __functionAddress); - public static native long callPPP(int param0, int param1, int param2, long param3, long param4, long __functionAddress); - public static native long callPPP(long param0, int param1, int param2, int param3, long param4, long __functionAddress); - public static native long callPPP(long param0, long param1, int param2, int param3, int param4, long __functionAddress); - public static native long callPPNP(long param0, long param1, long param2, long __functionAddress); - public static native long callPPPP(long param0, long param1, long param2, long __functionAddress); - public static native long callPJPP(long param0, long param1, int param2, long param3, long __functionAddress); - public static native long callPJPP(long param0, long param1, long param2, int param3, long __functionAddress); - public static native long callPPPP(int param0, long param1, long param2, long param3, long __functionAddress); - public static native long callPPPP(long param0, int param1, long param2, long param3, long __functionAddress); - public static native long callPPPP(long param0, long param1, int param2, long param3, long __functionAddress); - public static native long callPPPP(long param0, long param1, long param2, int param3, long __functionAddress); - public static native long callPPPP(long param0, long param1, int param2, int param3, long param4, long __functionAddress); - public static native long callPPPP(long param0, long param1, int param2, long param3, int param4, long __functionAddress); - public static native long callPJPP(long param0, long param1, int param2, int param3, int param4, long param5, long __functionAddress); - public static native long callPPJPP(long param0, long param1, long param2, long param3, long __functionAddress); - public static native long callPPNPP(long param0, long param1, long param2, long param3, long __functionAddress); - public static native long callPPPPP(long param0, long param1, long param2, long param3, long __functionAddress); - public static native long callPJPPP(long param0, long param1, int param2, long param3, long param4, long __functionAddress); - public static native long callPJPPP(long param0, long param1, long param2, int param3, long param4, long __functionAddress); - public static native long callPPPPP(long param0, int param1, long param2, long param3, long param4, long __functionAddress); - public static native long callPPPPP(long param0, long param1, int param2, long param3, long param4, long __functionAddress); - public static native long callPPPPP(long param0, long param1, long param2, int param3, long param4, long __functionAddress); - public static native long callPPPPP(long param0, long param1, long param2, long param3, int param4, long __functionAddress); - public static native long callPJPPP(long param0, long param1, int param2, int param3, long param4, long param5, long __functionAddress); - public static native long callPJPPPP(long param0, long param1, long param2, long param3, long param4, long __functionAddress); - public static native long callPPPJPP(long param0, long param1, long param2, long param3, long param4, long __functionAddress); - public static native long callPPPPPP(long param0, int param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native long callPPPPPP(long param0, long param1, long param2, long param3, int param4, long param5, long __functionAddress); - public static native long callPJJPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native long callPJPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native long callPPJPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native long callPPPJPPP(long param0, long param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native long callPPPPPPP(long param0, int param1, long param2, long param3, long param4, long param5, long param6, long __functionAddress); - public static native long callPPJPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long __functionAddress); - public static native long callPPPPJPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long __functionAddress); - public static native long callPPPPPPPP(long param0, int param1, long param2, long param3, int param4, long param5, long param6, long param7, long param8, long __functionAddress); - public static native long callPPPPPPPP(int param0, long param1, long param2, int param3, int param4, int param5, int param6, long param7, long param8, long param9, int param10, long param11, long param12, long __functionAddress); - public static native long callPJPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, long __functionAddress); - public static native long callPPJPPPPPP(long param0, long param1, int param2, long param3, long param4, long param5, int param6, long param7, long param8, long param9, long __functionAddress); - public static native long callPJPPPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, long param8, long param9, long __functionAddress); - public static native long callPPJPPPPPPPP(long param0, long param1, int param2, long param3, long param4, long param5, long param6, long param7, int param8, long param9, long param10, long param11, long __functionAddress); - public static native short callS(int param0, long __functionAddress); - public static native short callPS(long param0, long __functionAddress); - public static native short callPCS(long param0, short param1, long __functionAddress); - public static native short callPPS(long param0, long param1, long __functionAddress); - public static native short callPSS(long param0, short param1, long __functionAddress); - public static native short callSPS(short param0, long param1, long __functionAddress); - public static native short callPPS(long param0, long param1, int param2, long __functionAddress); - public static native short callPPS(long param0, int param1, long param2, int param3, long __functionAddress); - public static native short callPCPS(long param0, short param1, long param2, long __functionAddress); - public static native short callPPCS(long param0, long param1, short param2, long __functionAddress); - public static native short callPPPS(long param0, long param1, long param2, long __functionAddress); - public static native short callPPSS(long param0, long param1, short param2, long __functionAddress); - public static native short callPSPS(long param0, short param1, long param2, long __functionAddress); - public static native short callSPPS(short param0, long param1, long param2, long __functionAddress); - public static native short callSPSS(short param0, long param1, short param2, long __functionAddress); - public static native short callPPPS(long param0, int param1, long param2, int param3, long param4, long __functionAddress); - public static native short callPJCCS(long param0, long param1, short param2, short param3, long __functionAddress); - public static native short callPPSPS(long param0, long param1, short param2, long param3, long __functionAddress); - public static native short callPSSPS(long param0, short param1, short param2, long param3, int param4, long __functionAddress); - public static native short callPPPPS(long param0, long param1, int param2, long param3, int param4, long param5, long __functionAddress); - public static native short callPCPPPS(long param0, short param1, long param2, long param3, long param4, long __functionAddress); - public static native short callPCPSPS(long param0, short param1, long param2, short param3, long param4, long __functionAddress); - public static native short callPSSPPS(long param0, short param1, short param2, long param3, int param4, long param5, long __functionAddress); - public static native short callPCPPPPS(long param0, short param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native short callPCSPPPS(long param0, short param1, short param2, long param3, long param4, long param5, long __functionAddress); - public static native short callPPSPSPS(long param0, long param1, short param2, long param3, short param4, long param5, long __functionAddress); - public static native short callPCCPSPPS(long param0, short param1, short param2, long param3, short param4, long param5, long param6, long __functionAddress); - public static native short callPPSPSPSS(long param0, long param1, short param2, long param3, short param4, long param5, short param6, long __functionAddress); - public static native short callSPSSPSPS(short param0, long param1, short param2, short param3, long param4, short param5, long param6, long __functionAddress); - public static native short callPCPSPPSPS(long param0, short param1, long param2, short param3, long param4, long param5, short param6, long param7, long __functionAddress); - public static native short callPPPSPSPCS(long param0, long param1, long param2, short param3, long param4, short param5, long param6, short param7, long __functionAddress); - public static native short callSPSPPPSPS(short param0, long param1, short param2, long param3, long param4, long param5, short param6, long param7, long __functionAddress); - public static native short callPCPSPPPPPS(long param0, short param1, long param2, short param3, long param4, long param5, long param6, long param7, long param8, long __functionAddress); - public static native short callPPSPSPSCCS(long param0, long param1, short param2, long param3, short param4, long param5, short param6, short param7, short param8, long __functionAddress); - public static native short callPPSPSPSPSS(long param0, long param1, short param2, long param3, short param4, long param5, short param6, long param7, short param8, long __functionAddress); - public static native short callPCPSPSPSCCS(long param0, short param1, long param2, short param3, long param4, short param5, long param6, short param7, short param8, short param9, long __functionAddress); - public static native short callPCSSSPSPPPS(long param0, short param1, short param2, short param3, short param4, long param5, short param6, long param7, long param8, long param9, long __functionAddress); - public static native short callPSSSPSSPPPS(long param0, short param1, short param2, short param3, long param4, short param5, short param6, long param7, long param8, long param9, long __functionAddress); - public static native short callPSPSPPPPPPPS(long param0, short param1, long param2, short param3, long param4, long param5, long param6, long param7, long param8, long param9, long param10, long __functionAddress); - public static native short callPPSPSPSPSPSPSS(long param0, long param1, short param2, long param3, short param4, long param5, short param6, long param7, short param8, long param9, short param10, long param11, short param12, long __functionAddress); - public static native void callV(long __functionAddress); - public static native void callV(double param0, long __functionAddress); - public static native void callV(float param0, long __functionAddress); - public static native void callV(int param0, long __functionAddress); - public static native void callV(boolean param0, long __functionAddress); - public static native void callV(double param0, double param1, long __functionAddress); - public static native void callV(float param0, float param1, long __functionAddress); - public static native void callV(float param0, boolean param1, long __functionAddress); - public static native void callV(int param0, double param1, long __functionAddress); - public static native void callV(int param0, float param1, long __functionAddress); - public static native void callV(int param0, int param1, long __functionAddress); - public static native void callV(int param0, boolean param1, long __functionAddress); - public static native void callV(double param0, double param1, double param2, long __functionAddress); - public static native void callV(float param0, float param1, float param2, long __functionAddress); - public static native void callV(int param0, double param1, double param2, long __functionAddress); - public static native void callV(int param0, float param1, float param2, long __functionAddress); - public static native void callV(int param0, int param1, double param2, long __functionAddress); - public static native void callV(int param0, int param1, float param2, long __functionAddress); - public static native void callV(int param0, int param1, int param2, long __functionAddress); - public static native void callV(int param0, int param1, boolean param2, long __functionAddress); - public static native void callV(double param0, double param1, double param2, double param3, long __functionAddress); - public static native void callV(float param0, float param1, float param2, float param3, long __functionAddress); - public static native void callV(int param0, double param1, double param2, double param3, long __functionAddress); - public static native void callV(int param0, float param1, float param2, float param3, long __functionAddress); - public static native void callV(int param0, int param1, double param2, double param3, long __functionAddress); - public static native void callV(int param0, int param1, float param2, float param3, long __functionAddress); - public static native void callV(int param0, int param1, float param2, int param3, long __functionAddress); - public static native void callV(int param0, int param1, int param2, double param3, long __functionAddress); - public static native void callV(int param0, int param1, int param2, float param3, long __functionAddress); - public static native void callV(int param0, int param1, int param2, int param3, long __functionAddress); - public static native void callV(int param0, int param1, int param2, boolean param3, long __functionAddress); - public static native void callV(int param0, int param1, boolean param2, int param3, long __functionAddress); - public static native void callV(boolean param0, boolean param1, boolean param2, boolean param3, long __functionAddress); - public static native void callV(int param0, double param1, double param2, double param3, double param4, long __functionAddress); - public static native void callV(int param0, float param1, float param2, float param3, float param4, long __functionAddress); - public static native void callV(int param0, int param1, double param2, double param3, double param4, long __functionAddress); - public static native void callV(int param0, int param1, float param2, float param3, float param4, long __functionAddress); - public static native void callV(int param0, int param1, int param2, float param3, int param4, long __functionAddress); - public static native void callV(int param0, int param1, int param2, int param3, int param4, long __functionAddress); - public static native void callV(int param0, int param1, int param2, boolean param3, int param4, long __functionAddress); - public static native void callV(int param0, boolean param1, boolean param2, boolean param3, boolean param4, long __functionAddress); - public static native void callV(double param0, double param1, double param2, double param3, double param4, double param5, long __functionAddress); - public static native void callV(float param0, float param1, float param2, float param3, float param4, boolean param5, long __functionAddress); - public static native void callV(int param0, double param1, double param2, int param3, double param4, double param5, long __functionAddress); - public static native void callV(int param0, float param1, float param2, int param3, float param4, float param5, long __functionAddress); - public static native void callV(int param0, int param1, double param2, double param3, double param4, double param5, long __functionAddress); - public static native void callV(int param0, int param1, float param2, float param3, float param4, float param5, long __functionAddress); - public static native void callV(int param0, int param1, int param2, int param3, int param4, int param5, long __functionAddress); - public static native void callV(int param0, int param1, int param2, int param3, int param4, boolean param5, long __functionAddress); - public static native void callV(int param0, int param1, int param2, int param3, boolean param4, int param5, long __functionAddress); - public static native void callV(int param0, double param1, double param2, double param3, double param4, double param5, double param6, long __functionAddress); - public static native void callV(int param0, int param1, int param2, double param3, double param4, double param5, double param6, long __functionAddress); - public static native void callV(int param0, int param1, int param2, float param3, float param4, float param5, float param6, long __functionAddress); - public static native void callV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, long __functionAddress); - public static native void callV(int param0, int param1, int param2, int param3, int param4, int param5, boolean param6, long __functionAddress); - public static native void callV(int param0, int param1, int param2, boolean param3, int param4, int param5, int param6, long __functionAddress); - public static native void callV(float param0, float param1, float param2, float param3, float param4, float param5, float param6, float param7, long __functionAddress); - public static native void callV(int param0, int param1, int param2, float param3, float param4, float param5, float param6, float param7, long __functionAddress); - public static native void callV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, long __functionAddress); - public static native void callV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, boolean param7, long __functionAddress); - public static native void callV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, long __functionAddress); - public static native void callV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, boolean param8, long __functionAddress); - public static native void callV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, long __functionAddress); - public static native void callV(int param0, int param1, float param2, float param3, float param4, float param5, float param6, float param7, float param8, float param9, float param10, long __functionAddress); - public static native void callV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, int param10, int param11, long __functionAddress); - public static native void callV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, int param10, int param11, int param12, int param13, int param14, long __functionAddress); - public static native void callV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, int param10, int param11, int param12, int param13, int param14, int param15, int param16, long __functionAddress); - public static native void callJV(long param0, long __functionAddress); - public static native void callPV(long param0, long __functionAddress); - public static native void callSV(short param0, long __functionAddress); - public static native void callUV(byte param0, long __functionAddress); - public static native void callCV(int param0, short param1, long __functionAddress); - public static native void callJV(int param0, long param1, long __functionAddress); - public static native void callJV(long param0, int param1, long __functionAddress); - public static native void callPV(int param0, long param1, long __functionAddress); - public static native void callPV(long param0, float param1, long __functionAddress); - public static native void callPV(long param0, int param1, long __functionAddress); - public static native void callSV(int param0, short param1, long __functionAddress); - public static native void callCV(int param0, int param1, short param2, long __functionAddress); - public static native void callJV(int param0, int param1, long param2, long __functionAddress); - public static native void callPV(int param0, int param1, long param2, long __functionAddress); - public static native void callPV(int param0, long param1, int param2, long __functionAddress); - public static native void callPV(long param0, float param1, float param2, long __functionAddress); - public static native void callPV(long param0, int param1, int param2, long __functionAddress); - public static native void callJV(int param0, long param1, int param2, int param3, long __functionAddress); - public static native void callNV(long param0, int param1, int param2, int param3, long __functionAddress); - public static native void callPV(int param0, float param1, long param2, int param3, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, long param3, long __functionAddress); - public static native void callPV(int param0, int param1, long param2, int param3, long __functionAddress); - public static native void callPV(int param0, int param1, boolean param2, long param3, long __functionAddress); - public static native void callPV(int param0, long param1, int param2, int param3, long __functionAddress); - public static native void callPV(long param0, float param1, float param2, float param3, long __functionAddress); - public static native void callPV(long param0, int param1, int param2, int param3, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, long param4, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, long param3, int param4, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, long param3, boolean param4, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, boolean param3, long param4, long __functionAddress); - public static native void callPV(int param0, int param1, long param2, int param3, int param4, long __functionAddress); - public static native void callPV(int param0, long param1, int param2, int param3, int param4, long __functionAddress); - public static native void callPV(int param0, boolean param1, int param2, int param3, long param4, long __functionAddress); - public static native void callPV(long param0, int param1, int param2, int param3, int param4, long __functionAddress); - public static native void callJV(int param0, int param1, int param2, int param3, int param4, long param5, long __functionAddress); - public static native void callPV(int param0, double param1, double param2, int param3, int param4, long param5, long __functionAddress); - public static native void callPV(int param0, float param1, float param2, int param3, int param4, long param5, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, long param5, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, long param4, boolean param5, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, long param3, int param4, int param5, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, boolean param3, int param4, long param5, long __functionAddress); - public static native void callPV(int param0, int param1, long param2, int param3, int param4, int param5, long __functionAddress); - public static native void callPV(int param0, boolean param1, int param2, int param3, int param4, long param5, long __functionAddress); - public static native void callPV(long param0, int param1, int param2, int param3, int param4, int param5, long __functionAddress); - public static native void callJV(int param0, int param1, int param2, int param3, int param4, int param5, long param6, long __functionAddress); - public static native void callPV(int param0, int param1, float param2, float param3, float param4, float param5, long param6, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, long param6, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, long param5, int param6, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, long param3, int param4, int param5, int param6, long __functionAddress); - public static native void callPV(int param0, int param1, long param2, int param3, int param4, int param5, int param6, long __functionAddress); - public static native void callPV(long param0, int param1, int param2, int param3, int param4, int param5, int param6, long __functionAddress); - public static native void callJV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, long param7, long __functionAddress); - public static native void callJV(int param0, int param1, int param2, int param3, int param4, boolean param5, int param6, long param7, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, long param7, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, boolean param5, int param6, long param7, long __functionAddress); - public static native void callJV(int param0, int param1, int param2, int param3, int param4, int param5, boolean param6, int param7, long param8, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, long param8, long __functionAddress); - public static native void callPV(int param0, int param1, long param2, int param3, int param4, int param5, int param6, int param7, float param8, long __functionAddress); - public static native void callPV(int param0, double param1, double param2, int param3, int param4, double param5, double param6, int param7, int param8, long param9, long __functionAddress); - public static native void callPV(int param0, float param1, float param2, int param3, int param4, float param5, float param6, int param7, int param8, long param9, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, long param9, long __functionAddress); - public static native void callJV(long param0, int param1, float param2, float param3, float param4, float param5, float param6, float param7, float param8, float param9, float param10, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, long param10, long __functionAddress); - public static native void callPV(long param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, int param10, long __functionAddress); - public static native void callJV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, long param10, boolean param11, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, int param10, long param11, long __functionAddress); - public static native void callJPV(long param0, long param1, long __functionAddress); - public static native void callPJV(long param0, long param1, long __functionAddress); - public static native void callPPV(long param0, long param1, long __functionAddress); - public static native void callSSV(short param0, short param1, long __functionAddress); - public static native void callJJV(int param0, long param1, long param2, long __functionAddress); - public static native void callPCV(long param0, int param1, short param2, long __functionAddress); - public static native void callPJV(long param0, int param1, long param2, long __functionAddress); - public static native void callPJV(long param0, long param1, float param2, long __functionAddress); - public static native void callPJV(long param0, long param1, int param2, long __functionAddress); - public static native void callPPV(int param0, long param1, long param2, long __functionAddress); - public static native void callPPV(long param0, int param1, long param2, long __functionAddress); - public static native void callPPV(long param0, long param1, int param2, long __functionAddress); - public static native void callSSV(int param0, short param1, short param2, long __functionAddress); - public static native void callJJV(int param0, int param1, long param2, long param3, long __functionAddress); - public static native void callJPV(int param0, int param1, long param2, long param3, long __functionAddress); - public static native void callJPV(int param0, long param1, int param2, long param3, long __functionAddress); - public static native void callPJV(int param0, long param1, int param2, long param3, long __functionAddress); - public static native void callPJV(long param0, int param1, long param2, int param3, long __functionAddress); - public static native void callPJV(long param0, long param1, int param2, int param3, long __functionAddress); - public static native void callPPV(int param0, int param1, long param2, long param3, long __functionAddress); - public static native void callPPV(int param0, long param1, int param2, long param3, long __functionAddress); - public static native void callPPV(int param0, long param1, long param2, int param3, long __functionAddress); - public static native void callPPV(int param0, long param1, long param2, boolean param3, long __functionAddress); - public static native void callPPV(long param0, int param1, float param2, long param3, long __functionAddress); - public static native void callPPV(long param0, int param1, int param2, long param3, long __functionAddress); - public static native void callPPV(long param0, long param1, int param2, int param3, long __functionAddress); - public static native void callPJV(long param0, long param1, int param2, int param3, int param4, long __functionAddress); - public static native void callPPV(int param0, int param1, int param2, long param3, long param4, long __functionAddress); - public static native void callPPV(int param0, int param1, long param2, int param3, long param4, long __functionAddress); - public static native void callPPV(int param0, int param1, long param2, long param3, int param4, long __functionAddress); - public static native void callPPV(int param0, long param1, int param2, long param3, int param4, long __functionAddress); - public static native void callPPV(int param0, long param1, long param2, int param3, int param4, long __functionAddress); - public static native void callPPV(long param0, int param1, int param2, int param3, long param4, long __functionAddress); - public static native void callPPV(int param0, int param1, int param2, int param3, long param4, long param5, long __functionAddress); - public static native void callPPV(int param0, int param1, long param2, int param3, int param4, long param5, long __functionAddress); - public static native void callPPV(int param0, int param1, long param2, long param3, int param4, int param5, long __functionAddress); - public static native void callPPV(int param0, long param1, long param2, int param3, int param4, int param5, long __functionAddress); - public static native void callPPV(long param0, int param1, long param2, int param3, int param4, int param5, long __functionAddress); - public static native void callPPV(int param0, int param1, int param2, int param3, int param4, long param5, long param6, long __functionAddress); - public static native void callPPV(int param0, int param1, int param2, long param3, int param4, int param5, long param6, long __functionAddress); - public static native void callPPV(int param0, int param1, long param2, int param3, int param4, int param5, long param6, long __functionAddress); - public static native void callPPV(int param0, int param1, long param2, long param3, int param4, int param5, int param6, long __functionAddress); - public static native void callPPV(int param0, int param1, int param2, int param3, int param4, int param5, long param6, long param7, long __functionAddress); - public static native void callPPV(int param0, int param1, int param2, int param3, long param4, int param5, int param6, long param7, long __functionAddress); - public static native void callPPV(int param0, int param1, long param2, int param3, int param4, int param5, int param6, long param7, long __functionAddress); - public static native void callPPV(int param0, int param1, int param2, long param3, int param4, float param5, float param6, int param7, long param8, long __functionAddress); - public static native void callPPV(int param0, int param1, long param2, int param3, int param4, int param5, int param6, int param7, long param8, long __functionAddress); - public static native void callPPV(int param0, int param1, long param2, int param3, int param4, int param5, long param6, int param7, int param8, float param9, long __functionAddress); - public static native void callBBBV(byte param0, byte param1, byte param2, long __functionAddress); - public static native void callCCCV(short param0, short param1, short param2, long __functionAddress); - public static native void callPJJV(long param0, long param1, long param2, long __functionAddress); - public static native void callPJPV(long param0, long param1, long param2, long __functionAddress); - public static native void callPPNV(long param0, long param1, long param2, long __functionAddress); - public static native void callPPPV(long param0, long param1, long param2, long __functionAddress); - public static native void callSSSV(short param0, short param1, short param2, long __functionAddress); - public static native void callUUUV(byte param0, byte param1, byte param2, long __functionAddress); - public static native void callJJJV(int param0, long param1, long param2, long param3, long __functionAddress); - public static native void callPJJV(long param0, long param1, long param2, int param3, long __functionAddress); - public static native void callPJPV(long param0, long param1, int param2, long param3, long __functionAddress); - public static native void callPPPV(int param0, long param1, long param2, long param3, long __functionAddress); - public static native void callPPPV(long param0, int param1, long param2, long param3, long __functionAddress); - public static native void callPPPV(long param0, long param1, float param2, long param3, long __functionAddress); - public static native void callPPPV(long param0, long param1, int param2, long param3, long __functionAddress); - public static native void callPPPV(long param0, long param1, long param2, int param3, long __functionAddress); - public static native void callPPPV(long param0, long param1, boolean param2, long param3, long __functionAddress); - public static native void callSSSV(int param0, short param1, short param2, short param3, long __functionAddress); - public static native void callJJJV(int param0, int param1, long param2, long param3, long param4, long __functionAddress); - public static native void callPJJV(long param0, int param1, long param2, long param3, int param4, long __functionAddress); - public static native void callPJJV(long param0, long param1, long param2, int param3, int param4, long __functionAddress); - public static native void callPPPV(int param0, int param1, long param2, long param3, long param4, long __functionAddress); - public static native void callPPPV(int param0, long param1, int param2, long param3, long param4, long __functionAddress); - public static native void callPPPV(int param0, long param1, long param2, int param3, long param4, long __functionAddress); - public static native void callPPPV(int param0, long param1, long param2, long param3, int param4, long __functionAddress); - public static native void callPPPV(long param0, int param1, int param2, long param3, long param4, long __functionAddress); - public static native void callPPPV(long param0, int param1, long param2, int param3, long param4, long __functionAddress); - public static native void callPJPV(long param0, int param1, long param2, int param3, int param4, long param5, long __functionAddress); - public static native void callPJPV(long param0, long param1, int param2, int param3, int param4, long param5, long __functionAddress); - public static native void callPPJV(int param0, long param1, long param2, int param3, long param4, boolean param5, long __functionAddress); - public static native void callPPJV(long param0, int param1, long param2, int param3, long param4, int param5, long __functionAddress); - public static native void callPPPV(int param0, int param1, int param2, long param3, long param4, long param5, long __functionAddress); - public static native void callPPPV(int param0, int param1, long param2, int param3, long param4, long param5, long __functionAddress); - public static native void callPPPV(int param0, long param1, int param2, long param3, int param4, long param5, long __functionAddress); - public static native void callPJJV(long param0, int param1, int param2, long param3, long param4, int param5, int param6, long __functionAddress); - public static native void callPPPV(int param0, int param1, int param2, int param3, long param4, long param5, long param6, long __functionAddress); - public static native void callPPPV(int param0, int param1, long param2, long param3, int param4, int param5, long param6, long __functionAddress); - public static native void callPPPV(long param0, int param1, long param2, int param3, int param4, int param5, long param6, long __functionAddress); - public static native void callPPPV(int param0, int param1, int param2, int param3, long param4, int param5, long param6, long param7, long __functionAddress); - public static native void callPPPV(long param0, int param1, int param2, int param3, int param4, int param5, long param6, long param7, long __functionAddress); - public static native void callPPPV(long param0, long param1, int param2, int param3, int param4, int param5, int param6, int param7, long param8, int param9, int param10, int param11, int param12, int param13, int param14, int param15, int param16, int param17, long __functionAddress); - public static native void callBBBBV(byte param0, byte param1, byte param2, byte param3, long __functionAddress); - public static native void callCCCCV(short param0, short param1, short param2, short param3, long __functionAddress); - public static native void callPJJPV(long param0, long param1, long param2, long param3, long __functionAddress); - public static native void callPJPPV(long param0, long param1, long param2, long param3, long __functionAddress); - public static native void callPPPNV(long param0, long param1, long param2, long param3, long __functionAddress); - public static native void callPPPPV(long param0, long param1, long param2, long param3, long __functionAddress); - public static native void callSSSSV(short param0, short param1, short param2, short param3, long __functionAddress); - public static native void callUUUUV(byte param0, byte param1, byte param2, byte param3, long __functionAddress); - public static native void callJJJJV(int param0, long param1, long param2, long param3, long param4, long __functionAddress); - public static native void callPJJJV(long param0, long param1, long param2, long param3, int param4, long __functionAddress); - public static native void callPJJPV(long param0, int param1, long param2, long param3, long param4, long __functionAddress); - public static native void callPJJPV(long param0, long param1, long param2, int param3, long param4, long __functionAddress); - public static native void callPPPPV(int param0, long param1, long param2, long param3, long param4, long __functionAddress); - public static native void callPPPPV(long param0, int param1, long param2, long param3, long param4, long __functionAddress); - public static native void callPPPPV(long param0, long param1, long param2, int param3, long param4, long __functionAddress); - public static native void callPPPPV(long param0, long param1, long param2, long param3, int param4, long __functionAddress); - public static native void callSSSSV(int param0, short param1, short param2, short param3, short param4, long __functionAddress); - public static native void callUUUUV(int param0, byte param1, byte param2, byte param3, byte param4, long __functionAddress); - public static native void callJJJJV(int param0, int param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native void callPJJPV(long param0, long param1, int param2, long param3, int param4, long param5, long __functionAddress); - public static native void callPJJPV(long param0, long param1, long param2, int param3, int param4, long param5, long __functionAddress); - public static native void callPJPPV(long param0, long param1, int param2, long param3, int param4, long param5, long __functionAddress); - public static native void callPPPPV(int param0, long param1, int param2, long param3, long param4, long param5, long __functionAddress); - public static native void callPPPPV(int param0, long param1, long param2, long param3, long param4, int param5, long __functionAddress); - public static native void callPPPPV(long param0, int param1, int param2, long param3, long param4, long param5, long __functionAddress); - public static native void callPJJPV(long param0, long param1, int param2, int param3, long param4, int param5, long param6, long __functionAddress); - public static native void callPJJPV(long param0, long param1, int param2, long param3, int param4, int param5, long param6, long __functionAddress); - public static native void callPJPPV(long param0, int param1, long param2, int param3, int param4, long param5, long param6, long __functionAddress); - public static native void callPPPPV(int param0, int param1, int param2, long param3, long param4, long param5, long param6, long __functionAddress); - public static native void callPPPPV(int param0, int param1, long param2, long param3, long param4, long param5, int param6, long __functionAddress); - public static native void callPJJPV(long param0, long param1, int param2, long param3, int param4, int param5, long param6, int param7, long __functionAddress); - public static native void callPJPPV(long param0, int param1, long param2, int param3, int param4, long param5, int param6, long param7, long __functionAddress); - public static native void callPPPPV(long param0, int param1, int param2, int param3, int param4, long param5, int param6, long param7, int param8, long param9, long __functionAddress); - public static native void callPJJJPV(long param0, long param1, long param2, long param3, long param4, long __functionAddress); - public static native void callPPPPPV(long param0, int param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native void callPJJJJV(long param0, long param1, long param2, long param3, long param4, int param5, int param6, long __functionAddress); - public static native void callPPPPPV(int param0, int param1, long param2, long param3, long param4, long param5, long param6, long __functionAddress); - public static native void callPPPPPV(long param0, int param1, int param2, long param3, long param4, long param5, long param6, long __functionAddress); - public static native void callPJJJJV(long param0, long param1, int param2, int param3, long param4, long param5, long param6, int param7, long __functionAddress); - public static native void callPJPPPV(long param0, int param1, int param2, long param3, long param4, int param5, long param6, long param7, long __functionAddress); - public static native void callPPPPPV(long param0, long param1, long param2, long param3, long param4, int param5, int param6, int param7, long __functionAddress); - public static native void callPPPPPV(long param0, int param1, long param2, int param3, int param4, int param5, long param6, int param7, long param8, int param9, long param10, long __functionAddress); - public static native void callPPPPPJV(long param0, long param1, long param2, long param3, long param4, long param5, long __functionAddress); - public static native void callPPPPPPV(long param0, long param1, long param2, int param3, int param4, long param5, long param6, long param7, long __functionAddress); - public static native void callPPPPPPPV(int param0, int param1, int param2, long param3, int param4, long param5, long param6, long param7, long param8, long param9, long param10, long __functionAddress); - public static native void callPPJJJJJJV(long param0, long param1, long param2, long param3, int param4, long param5, long param6, long param7, long param8, long __functionAddress); - public static native void callPJJJJJJJJJJJV(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, long param8, long param9, long param10, long param11, int param12, int param13, int param14, long __functionAddress); - public static native boolean callZ(long __functionAddress); - public static native boolean callZ(int param0, long __functionAddress); - public static native boolean callZ(boolean param0, long __functionAddress); - public static native boolean callZ(int param0, int param1, long __functionAddress); - public static native boolean callZ(int param0, float param1, float param2, long __functionAddress); - public static native boolean callZ(int param0, int param1, float param2, float param3, long __functionAddress); - public static native boolean callJZ(long param0, long __functionAddress); - public static native boolean callPZ(long param0, long __functionAddress); - public static native boolean callJZ(int param0, long param1, long __functionAddress); - public static native boolean callPZ(int param0, long param1, long __functionAddress); - public static native boolean callPZ(long param0, int param1, long __functionAddress); - public static native boolean callJZ(int param0, long param1, int param2, long __functionAddress); - public static native boolean callPZ(int param0, int param1, long param2, long __functionAddress); - public static native boolean callPZ(int param0, long param1, int param2, long __functionAddress); - public static native boolean callPZ(int param0, float param1, float param2, long param3, long __functionAddress); - public static native boolean callPPZ(long param0, long param1, long __functionAddress); - public static native boolean callJPZ(long param0, long param1, int param2, long __functionAddress); - public static native boolean callPPZ(int param0, long param1, long param2, long __functionAddress); - public static native boolean callPPZ(long param0, int param1, long param2, long __functionAddress); - public static native boolean callPPZ(long param0, long param1, int param2, long __functionAddress); - public static native boolean callPPZ(int param0, long param1, int param2, long param3, long __functionAddress); - public static native boolean callPPZ(int param0, int param1, long param2, int param3, long param4, long __functionAddress); - public static native boolean callJPPZ(long param0, long param1, long param2, long __functionAddress); - public static native boolean callPPPZ(long param0, long param1, long param2, long __functionAddress); - public static native boolean callPPPPZ(int param0, int param1, int param2, float param3, long param4, long param5, long param6, long param7, long __functionAddress); - public static native boolean callPPJPPZ(long param0, long param1, long param2, long param3, long param4, long __functionAddress); - public static native boolean callPPPPPZ(long param0, long param1, long param2, long param3, long param4, long __functionAddress); + public static native byte invokePB(long param0, long __functionAddress); + public static native short invokeC(long __functionAddress); + public static native short invokeC(int param0, long __functionAddress); + public static native short invokePC(long param0, long __functionAddress); + public static native short invokeCC(int param0, short param1, long __functionAddress); + public static native short invokeCC(short param0, boolean param1, long __functionAddress); + public static native short invokeJC(int param0, int param1, long param2, long __functionAddress); + public static native short invokeCUC(short param0, byte param1, long __functionAddress); + public static native short invokePCC(long param0, short param1, long __functionAddress); + public static native short invokeCCC(short param0, short param1, boolean param2, long __functionAddress); + public static native short invokePCC(int param0, long param1, short param2, long __functionAddress); + public static native short invokePCC(long param0, int param1, short param2, long __functionAddress); + public static native short invokeUPC(byte param0, long param1, boolean param2, long __functionAddress); + public static native short invokeCJC(int param0, boolean param1, short param2, int param3, long param4, long __functionAddress); + public static native short invokeCPCC(short param0, long param1, short param2, long __functionAddress); + public static native short invokePPCC(long param0, long param1, short param2, long __functionAddress); + public static native short invokeCCJC(short param0, short param1, int param2, long param3, long __functionAddress); + public static native short invokePCCC(long param0, short param1, short param2, int param3, int param4, long __functionAddress); + public static native short invokeCCCCC(short param0, short param1, short param2, short param3, long __functionAddress); + public static native short invokePJUPC(long param0, long param1, byte param2, long param3, long __functionAddress); + public static native short invokeCCJPC(short param0, boolean param1, short param2, int param3, long param4, long param5, long __functionAddress); + public static native short invokePCCCCC(long param0, short param1, short param2, short param3, short param4, long __functionAddress); + public static native short invokeCCCJPC(short param0, short param1, short param2, boolean param3, int param4, long param5, long param6, long __functionAddress); + public static native short invokeCCCJPC(short param0, short param1, boolean param2, short param3, int param4, long param5, long param6, long __functionAddress); + public static native double invokeD(long __functionAddress); + public static native double invokeD(int param0, long __functionAddress); + public static native double invokePD(long param0, long __functionAddress); + public static native double invokePD(long param0, int param1, long __functionAddress); + public static native double invokePD(long param0, int param1, int param2, long __functionAddress); + public static native double invokePPD(long param0, long param1, long __functionAddress); + public static native float invokeF(int param0, long __functionAddress); + public static native float invokePF(long param0, long __functionAddress); + public static native float invokePF(long param0, int param1, long __functionAddress); + public static native float invokePF(long param0, float param1, float param2, long __functionAddress); + public static native float invokePF(long param0, int param1, int param2, long __functionAddress); + public static native float invokePPF(long param0, long param1, long __functionAddress); + public static native float invokePPF(long param0, int param1, long param2, long __functionAddress); + public static native float invokePPF(long param0, float param1, long param2, int param3, long __functionAddress); + public static native int invokeI(long __functionAddress); + public static native int invokeI(int param0, long __functionAddress); + public static native int invokeI(boolean param0, long __functionAddress); + public static native int invokeI(int param0, int param1, long __functionAddress); + public static native int invokeI(int param0, boolean param1, long __functionAddress); + public static native int invokeI(int param0, int param1, int param2, long __functionAddress); + public static native int invokePI(long param0, long __functionAddress); + public static native int invokeCI(int param0, short param1, long __functionAddress); + public static native int invokePI(int param0, long param1, long __functionAddress); + public static native int invokePI(long param0, int param1, long __functionAddress); + public static native int invokePI(long param0, int param1, int param2, long __functionAddress); + public static native int invokePI(long param0, int param1, boolean param2, long __functionAddress); + public static native int invokePI(long param0, int param1, int param2, int param3, long __functionAddress); + public static native int invokeCPI(short param0, long param1, long __functionAddress); + public static native int invokePCI(long param0, short param1, long __functionAddress); + public static native int invokePJI(long param0, long param1, long __functionAddress); + public static native int invokePNI(long param0, long param1, long __functionAddress); + public static native int invokePPI(long param0, long param1, long __functionAddress); + public static native int invokePJI(long param0, long param1, int param2, long __functionAddress); + public static native int invokePPI(int param0, long param1, long param2, long __functionAddress); + public static native int invokePPI(long param0, int param1, long param2, long __functionAddress); + public static native int invokePPI(long param0, long param1, float param2, long __functionAddress); + public static native int invokePPI(long param0, long param1, int param2, long __functionAddress); + public static native int invokePPI(long param0, int param1, int param2, long param3, long __functionAddress); + public static native int invokePPI(long param0, int param1, long param2, int param3, long __functionAddress); + public static native int invokePPI(long param0, int param1, int param2, int param3, long param4, long __functionAddress); + public static native int invokePPI(long param0, int param1, int param2, long param3, int param4, long __functionAddress); + public static native int invokePPI(int param0, long param1, int param2, long param3, int param4, boolean param5, long __functionAddress); + public static native int invokePPI(long param0, int param1, int param2, int param3, int param4, long param5, long __functionAddress); + public static native int invokePPI(long param0, int param1, int param2, int param3, int param4, long param5, int param6, long __functionAddress); + public static native int invokeCPUI(short param0, long param1, byte param2, long __functionAddress); + public static native int invokePPCI(long param0, long param1, short param2, long __functionAddress); + public static native int invokePPJI(long param0, long param1, long param2, long __functionAddress); + public static native int invokePPPI(long param0, long param1, long param2, long __functionAddress); + public static native int invokePPPI(long param0, int param1, long param2, long param3, long __functionAddress); + public static native int invokePPPI(long param0, long param1, int param2, long param3, long __functionAddress); + public static native int invokePPPI(long param0, long param1, long param2, int param3, long __functionAddress); + public static native int invokePPPI(long param0, int param1, int param2, long param3, long param4, long __functionAddress); + public static native int invokePPPI(long param0, int param1, long param2, int param3, long param4, long __functionAddress); + public static native int invokePPPI(long param0, long param1, int param2, int param3, long param4, long __functionAddress); + public static native int invokePPPI(long param0, long param1, int param2, long param3, int param4, long __functionAddress); + public static native int invokePPPI(long param0, long param1, int param2, long param3, int param4, int param5, long __functionAddress); + public static native int invokePPPI(long param0, long param1, long param2, int param3, boolean param4, float param5, long __functionAddress); + public static native int invokePPPI(long param0, int param1, int param2, int param3, long param4, long param5, int param6, long __functionAddress); + public static native int invokePPPPI(long param0, long param1, long param2, long param3, long __functionAddress); + public static native int invokePNNPI(long param0, long param1, int param2, long param3, long param4, long __functionAddress); + public static native int invokePPPPI(long param0, long param1, int param2, long param3, long param4, long __functionAddress); + public static native int invokePPPPI(long param0, long param1, long param2, int param3, long param4, long __functionAddress); + public static native int invokePPPPI(long param0, long param1, long param2, long param3, int param4, long __functionAddress); + public static native int invokePPPPI(long param0, long param1, int param2, int param3, long param4, long param5, long __functionAddress); + public static native int invokePPPPI(long param0, long param1, long param2, int param3, int param4, long param5, long __functionAddress); + public static native int invokePPPPI(long param0, int param1, int param2, long param3, long param4, long param5, int param6, long __functionAddress); + public static native int invokePPPPI(long param0, long param1, long param2, long param3, int param4, int param5, int param6, int param7, long __functionAddress); + public static native int invokePPPPPI(long param0, long param1, long param2, long param3, long param4, long __functionAddress); + public static native int invokePPPPPI(long param0, int param1, long param2, long param3, long param4, long param5, long __functionAddress); + public static native int invokePPPPPI(long param0, long param1, long param2, int param3, long param4, int param5, int param6, long param7, long __functionAddress); + public static native int invokePPPPPPI(long param0, long param1, long param2, long param3, long param4, long param5, long __functionAddress); + public static native int invokePJJJJPI(long param0, long param1, long param2, long param3, long param4, int param5, long param6, long __functionAddress); + public static native int invokePPPPPPI(long param0, long param1, long param2, long param3, long param4, long param5, int param6, long __functionAddress); + public static native int invokePNNPPPI(long param0, long param1, long param2, int param3, int param4, long param5, long param6, long param7, long __functionAddress); + public static native int invokePPPPPPPI(long param0, long param1, long param2, int param3, int param4, long param5, long param6, int param7, long param8, int param9, long param10, int param11, long __functionAddress); + public static native int invokePPPPPPPPI(long param0, int param1, int param2, long param3, long param4, long param5, long param6, long param7, long param8, long param9, long __functionAddress); + public static native long invokeJ(long __functionAddress); + public static native long invokePJ(long param0, long __functionAddress); + public static native long invokePJ(long param0, int param1, long __functionAddress); + public static native long invokePJJ(long param0, long param1, long __functionAddress); + public static native long invokePPJ(long param0, long param1, long __functionAddress); + public static native long invokePPJ(long param0, long param1, int param2, long __functionAddress); + public static native long invokePN(long param0, long __functionAddress); + public static native long invokePN(long param0, int param1, long __functionAddress); + public static native long invokePNPN(long param0, long param1, long param2, int param3, long __functionAddress); + public static native long invokePNPNPN(long param0, long param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, long param9, long param10, long param11, long __functionAddress); + public static native long invokeP(long __functionAddress); + public static native long invokeP(int param0, long __functionAddress); + public static native long invokeP(boolean param0, long __functionAddress); + public static native long invokeP(int param0, int param1, long __functionAddress); + public static native long invokeCP(short param0, long __functionAddress); + public static native long invokePP(long param0, long __functionAddress); + public static native long invokePP(int param0, long param1, long __functionAddress); + public static native long invokePP(long param0, double param1, long __functionAddress); + public static native long invokePP(long param0, int param1, long __functionAddress); + public static native long invokePP(int param0, int param1, long param2, long __functionAddress); + public static native long invokePP(long param0, int param1, int param2, long __functionAddress); + public static native long invokePP(int param0, int param1, int param2, long param3, long __functionAddress); + public static native long invokePP(long param0, int param1, int param2, int param3, long __functionAddress); + public static native long invokePP(long param0, float param1, int param2, float param3, int param4, long __functionAddress); + public static native long invokePP(long param0, int param1, int param2, int param3, int param4, int param5, long __functionAddress); + public static native long invokeCPP(short param0, long param1, long __functionAddress); + public static native long invokePJP(long param0, long param1, long __functionAddress); + public static native long invokePPP(long param0, long param1, long __functionAddress); + public static native long invokePUP(long param0, byte param1, long __functionAddress); + public static native long invokeCPP(int param0, short param1, long param2, long __functionAddress); + public static native long invokePCP(long param0, short param1, boolean param2, long __functionAddress); + public static native long invokePJP(long param0, int param1, long param2, long __functionAddress); + public static native long invokePJP(long param0, long param1, int param2, long __functionAddress); + public static native long invokePPP(int param0, long param1, long param2, long __functionAddress); + public static native long invokePPP(long param0, int param1, long param2, long __functionAddress); + public static native long invokePPP(long param0, long param1, int param2, long __functionAddress); + public static native long invokePPP(long param0, int param1, int param2, long param3, long __functionAddress); + public static native long invokePPP(long param0, int param1, long param2, int param3, long __functionAddress); + public static native long invokePPP(long param0, long param1, int param2, int param3, long __functionAddress); + public static native long invokePPP(long param0, long param1, boolean param2, boolean param3, long __functionAddress); + public static native long invokePPP(long param0, boolean param1, boolean param2, long param3, long __functionAddress); + public static native long invokePPP(long param0, int param1, int param2, int param3, long param4, long __functionAddress); + public static native long invokePPP(int param0, int param1, int param2, int param3, long param4, long param5, long __functionAddress); + public static native long invokePUP(long param0, int param1, byte param2, int param3, boolean param4, boolean param5, long __functionAddress); + public static native long invokePPP(int param0, int param1, int param2, int param3, long param4, int param5, long param6, long __functionAddress); + public static native long invokePJJP(long param0, long param1, long param2, long __functionAddress); + public static native long invokePPPP(long param0, long param1, long param2, long __functionAddress); + public static native long invokePPUP(long param0, long param1, byte param2, long __functionAddress); + public static native long invokePPPP(int param0, long param1, long param2, long param3, long __functionAddress); + public static native long invokePPPP(long param0, int param1, long param2, long param3, long __functionAddress); + public static native long invokePPPP(long param0, long param1, int param2, long param3, long __functionAddress); + public static native long invokePPPP(long param0, long param1, long param2, int param3, long __functionAddress); + public static native long invokePPUP(long param0, long param1, int param2, byte param3, long __functionAddress); + public static native long invokePPPP(int param0, int param1, long param2, long param3, long param4, long __functionAddress); + public static native long invokePPPP(long param0, int param1, int param2, long param3, long param4, long __functionAddress); + public static native long invokePPPP(long param0, long param1, int param2, int param3, long param4, long __functionAddress); + public static native long invokePPPP(long param0, long param1, int param2, long param3, int param4, long __functionAddress); + public static native long invokePPPP(long param0, long param1, long param2, int param3, int param4, long __functionAddress); + public static native long invokeJPPP(int param0, int param1, int param2, long param3, long param4, long param5, long __functionAddress); + public static native long invokePPPP(long param0, int param1, long param2, long param3, int param4, int param5, long __functionAddress); + public static native long invokePPPP(long param0, long param1, int param2, int param3, int param4, long param5, long __functionAddress); + public static native long invokePPPP(long param0, long param1, int param2, int param3, long param4, int param5, long __functionAddress); + public static native long invokePPPP(int param0, int param1, int param2, long param3, long param4, int param5, long param6, long __functionAddress); + public static native long invokePPPP(long param0, long param1, int param2, int param3, long param4, int param5, int param6, long __functionAddress); + public static native long invokePBPPP(long param0, byte param1, long param2, long param3, long __functionAddress); + public static native long invokePPJPP(long param0, long param1, long param2, long param3, long __functionAddress); + public static native long invokePPPPP(long param0, long param1, long param2, long param3, long __functionAddress); + public static native long invokePPPJP(int param0, long param1, long param2, long param3, long param4, long __functionAddress); + public static native long invokePPPJP(long param0, long param1, long param2, long param3, int param4, long __functionAddress); + public static native long invokePPPPP(long param0, int param1, long param2, long param3, long param4, long __functionAddress); + public static native long invokePPPPP(long param0, long param1, int param2, long param3, long param4, long __functionAddress); + public static native long invokePPPPP(long param0, long param1, long param2, int param3, long param4, long __functionAddress); + public static native long invokePPPPP(long param0, long param1, long param2, long param3, int param4, long __functionAddress); + public static native long invokePJPPP(long param0, int param1, int param2, long param3, long param4, long param5, long __functionAddress); + public static native long invokePJPPP(long param0, long param1, int param2, long param3, long param4, int param5, long __functionAddress); + public static native long invokePPPJP(long param0, long param1, long param2, long param3, int param4, int param5, long __functionAddress); + public static native long invokePPPPP(long param0, long param1, int param2, long param3, int param4, long param5, long __functionAddress); + public static native long invokePPPPP(long param0, long param1, long param2, int param3, long param4, int param5, long __functionAddress); + public static native long invokePPPPP(long param0, long param1, long param2, int param3, int param4, int param5, long param6, long __functionAddress); + public static native long invokePPPPP(long param0, long param1, long param2, int param3, long param4, int param5, int param6, long __functionAddress); + public static native long invokePPPPP(long param0, long param1, long param2, long param3, int param4, int param5, int param6, long __functionAddress); + public static native long invokePPPPP(int param0, int param1, int param2, long param3, long param4, long param5, int param6, long param7, long __functionAddress); + public static native long invokePJPJPP(long param0, long param1, long param2, long param3, long param4, long __functionAddress); + public static native long invokePNNNPP(long param0, long param1, long param2, long param3, long param4, long __functionAddress); + public static native long invokePPBPPP(long param0, long param1, byte param2, long param3, long param4, long __functionAddress); + public static native long invokePPPPPP(long param0, long param1, long param2, long param3, long param4, long __functionAddress); + public static native long invokeCCCUJP(short param0, short param1, short param2, byte param3, int param4, long param5, long __functionAddress); + public static native long invokePPPPPP(long param0, long param1, long param2, int param3, long param4, long param5, long __functionAddress); + public static native long invokePPPPPP(long param0, long param1, long param2, long param3, int param4, long param5, long __functionAddress); + public static native long invokePPPPPP(long param0, long param1, long param2, long param3, long param4, int param5, long __functionAddress); + public static native long invokePPJPPP(long param0, long param1, long param2, int param3, int param4, long param5, long param6, long __functionAddress); + public static native long invokePPPPPP(long param0, long param1, long param2, long param3, int param4, long param5, int param6, long __functionAddress); + public static native long invokePPPPPP(long param0, long param1, long param2, long param3, long param4, int param5, int param6, int param7, int param8, long __functionAddress); + public static native long invokePPJJPPP(long param0, long param1, long param2, long param3, long param4, long param5, long __functionAddress); + public static native long invokePPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long __functionAddress); + public static native long invokePSSCCPP(long param0, short param1, short param2, short param3, short param4, long param5, long __functionAddress); + public static native long invokePPPPPPP(long param0, long param1, long param2, int param3, long param4, long param5, long param6, long __functionAddress); + public static native long invokePPPPPPP(long param0, long param1, long param2, long param3, int param4, long param5, long param6, long __functionAddress); + public static native long invokePPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, int param6, long __functionAddress); + public static native long invokePPPPPPP(long param0, long param1, int param2, int param3, long param4, long param5, long param6, long param7, long __functionAddress); + public static native long invokePPPPPPP(long param0, long param1, long param2, int param3, long param4, int param5, long param6, long param7, long __functionAddress); + public static native long invokePPPPPPP(long param0, long param1, long param2, long param3, long param4, int param5, long param6, int param7, long __functionAddress); + public static native long invokePPPPPPP(long param0, long param1, long param2, long param3, int param4, long param5, int param6, long param7, int param8, int param9, long __functionAddress); + public static native long invokePPPPPPP(long param0, long param1, long param2, long param3, long param4, int param5, long param6, int param7, int param8, int param9, long __functionAddress); + public static native long invokePPPPPPPP(long param0, long param1, long param2, long param3, int param4, long param5, long param6, long param7, long __functionAddress); + public static native long invokePPPPPPPP(long param0, long param1, long param2, long param3, int param4, long param5, long param6, long param7, int param8, long __functionAddress); + public static native long invokePPPPPPPP(long param0, long param1, long param2, long param3, long param4, int param5, long param6, int param7, long param8, int param9, long __functionAddress); + public static native long invokePPPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, long __functionAddress); + public static native long invokePPPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, int param7, long param8, long __functionAddress); + public static native long invokePPPPJJPPP(long param0, long param1, long param2, long param3, int param4, long param5, int param6, long param7, int param8, long param9, long param10, long __functionAddress); + public static native long invokePPPPPJJPP(long param0, long param1, long param2, long param3, long param4, int param5, long param6, int param7, long param8, int param9, long param10, long __functionAddress); + public static native long invokePPPPPJPPP(long param0, long param1, long param2, long param3, long param4, int param5, long param6, int param7, long param8, int param9, long param10, long __functionAddress); + public static native long invokePPPPPJPPP(long param0, int param1, long param2, long param3, long param4, long param5, int param6, int param7, long param8, int param9, long param10, long param11, long __functionAddress); + public static native long invokePPPPPJPPP(long param0, int param1, long param2, long param3, long param4, long param5, int param6, int param7, long param8, int param9, int param10, long param11, long param12, long __functionAddress); + public static native long invokePPPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, int param7, long param8, int param9, int param10, int param11, int param12, int param13, long __functionAddress); + public static native long invokePPPPPJJJPP(long param0, long param1, long param2, long param3, long param4, int param5, long param6, long param7, long param8, int param9, long param10, long __functionAddress); + public static native long invokePPPPPPPPPP(long param0, long param1, long param2, long param3, int param4, long param5, long param6, long param7, long param8, int param9, long param10, long __functionAddress); + public static native long invokePPPPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, int param7, long param8, int param9, long param10, int param11, long __functionAddress); + public static native long invokePPPPPJPPPP(long param0, long param1, long param2, long param3, long param4, int param5, long param6, int param7, int param8, long param9, int param10, int param11, long param12, long param13, long __functionAddress); + public static native long invokePPPPPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, long param8, long param9, long __functionAddress); + public static native long invokePPPPPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, int param7, long param8, int param9, long param10, long param11, int param12, long __functionAddress); + public static native long invokePPPPPJPPPPPP(long param0, long param1, long param2, long param3, long param4, int param5, long param6, int param7, int param8, long param9, long param10, int param11, int param12, long param13, long param14, long param15, long __functionAddress); + public static native long invokePPPPPPPPPPPPP(long param0, int param1, long param2, long param3, long param4, int param5, long param6, long param7, int param8, long param9, long param10, int param11, int param12, int param13, int param14, long param15, long param16, long param17, long param18, long __functionAddress); + public static native long invokePPPPPJJPPPPPPP(long param0, long param1, long param2, long param3, long param4, int param5, long param6, int param7, long param8, int param9, long param10, long param11, int param12, long param13, long param14, long param15, long param16, long __functionAddress); + public static native byte invokeUPU(byte param0, long param1, long __functionAddress); + public static native void invokeV(long __functionAddress); + public static native void invokeV(double param0, long __functionAddress); + public static native void invokeV(float param0, long __functionAddress); + public static native void invokeV(int param0, long __functionAddress); + public static native void invokeV(int param0, float param1, long __functionAddress); + public static native void invokeV(int param0, int param1, long __functionAddress); + public static native void invokeV(int param0, int param1, double param2, long __functionAddress); + public static native void invokeV(int param0, int param1, float param2, long __functionAddress); + public static native void invokeV(int param0, int param1, int param2, long __functionAddress); + public static native void invokeV(int param0, float param1, float param2, float param3, long __functionAddress); + public static native void invokeV(int param0, int param1, int param2, int param3, long __functionAddress); + public static native void invokeV(int param0, int param1, double param2, double param3, double param4, long __functionAddress); + public static native void invokeV(int param0, int param1, float param2, float param3, float param4, long __functionAddress); + public static native void invokeV(int param0, int param1, int param2, int param3, int param4, long __functionAddress); + public static native void invokeCV(short param0, long __functionAddress); + public static native void invokePV(long param0, long __functionAddress); + public static native void invokeUV(byte param0, long __functionAddress); + public static native void invokeCV(int param0, short param1, long __functionAddress); + public static native void invokeCV(short param0, int param1, long __functionAddress); + public static native void invokeCV(short param0, boolean param1, long __functionAddress); + public static native void invokeJV(int param0, long param1, long __functionAddress); + public static native void invokeJV(long param0, int param1, long __functionAddress); + public static native void invokePV(int param0, long param1, long __functionAddress); + public static native void invokePV(long param0, float param1, long __functionAddress); + public static native void invokePV(long param0, int param1, long __functionAddress); + public static native void invokePV(long param0, boolean param1, long __functionAddress); + public static native void invokeUV(byte param0, int param1, long __functionAddress); + public static native void invokeUV(byte param0, boolean param1, long __functionAddress); + public static native void invokeCV(short param0, int param1, int param2, long __functionAddress); + public static native void invokeJV(int param0, int param1, long param2, long __functionAddress); + public static native void invokePV(int param0, int param1, long param2, long __functionAddress); + public static native void invokePV(int param0, long param1, boolean param2, long __functionAddress); + public static native void invokePV(long param0, double param1, double param2, long __functionAddress); + public static native void invokePV(long param0, float param1, float param2, long __functionAddress); + public static native void invokePV(long param0, int param1, double param2, long __functionAddress); + public static native void invokePV(long param0, int param1, int param2, long __functionAddress); + public static native void invokePV(long param0, int param1, boolean param2, long __functionAddress); + public static native void invokePV(long param0, float param1, float param2, float param3, long __functionAddress); + public static native void invokePV(long param0, int param1, int param2, double param3, long __functionAddress); + public static native void invokePV(long param0, int param1, int param2, float param3, long __functionAddress); + public static native void invokePV(long param0, int param1, int param2, int param3, long __functionAddress); + public static native void invokePV(int param0, int param1, long param2, int param3, int param4, long __functionAddress); + public static native void invokePV(long param0, int param1, int param2, int param3, int param4, long __functionAddress); + public static native void invokePV(int param0, int param1, int param2, int param3, int param4, long param5, long __functionAddress); + public static native void invokePV(long param0, int param1, int param2, int param3, int param4, boolean param5, long __functionAddress); + public static native void invokePV(int param0, int param1, int param2, int param3, int param4, int param5, long param6, long __functionAddress); + public static native void invokeCCV(short param0, short param1, long __functionAddress); + public static native void invokeCPV(short param0, long param1, long __functionAddress); + public static native void invokePCV(long param0, short param1, long __functionAddress); + public static native void invokePJV(long param0, long param1, long __functionAddress); + public static native void invokePPV(long param0, long param1, long __functionAddress); + public static native void invokePUV(long param0, byte param1, long __functionAddress); + public static native void invokeUPV(byte param0, long param1, long __functionAddress); + public static native void invokeCPV(short param0, int param1, long param2, long __functionAddress); + public static native void invokeCPV(short param0, long param1, int param2, long __functionAddress); + public static native void invokePCV(long param0, int param1, short param2, long __functionAddress); + public static native void invokePCV(long param0, short param1, boolean param2, long __functionAddress); + public static native void invokePJV(int param0, long param1, long param2, long __functionAddress); + public static native void invokePJV(long param0, int param1, long param2, long __functionAddress); + public static native void invokePJV(long param0, long param1, int param2, long __functionAddress); + public static native void invokePPV(int param0, long param1, long param2, long __functionAddress); + public static native void invokePPV(long param0, int param1, long param2, long __functionAddress); + public static native void invokePPV(long param0, long param1, float param2, long __functionAddress); + public static native void invokePPV(long param0, long param1, int param2, long __functionAddress); + public static native void invokePPV(long param0, long param1, boolean param2, long __functionAddress); + public static native void invokeUCV(byte param0, short param1, int param2, long __functionAddress); + public static native void invokePBV(long param0, int param1, int param2, byte param3, long __functionAddress); + public static native void invokePCV(long param0, int param1, int param2, short param3, long __functionAddress); + public static native void invokePCV(long param0, short param1, int param2, int param3, long __functionAddress); + public static native void invokePPV(long param0, int param1, int param2, long param3, long __functionAddress); + public static native void invokePPV(long param0, int param1, long param2, int param3, long __functionAddress); + public static native void invokePPV(long param0, long param1, int param2, int param3, long __functionAddress); + public static native void invokePSV(long param0, int param1, int param2, short param3, long __functionAddress); + public static native void invokePUV(long param0, int param1, int param2, byte param3, long __functionAddress); + public static native void invokeUCV(byte param0, short param1, int param2, int param3, long __functionAddress); + public static native void invokeUPV(byte param0, long param1, int param2, int param3, long __functionAddress); + public static native void invokePCV(long param0, short param1, int param2, int param3, int param4, long __functionAddress); + public static native void invokePPV(int param0, int param1, int param2, long param3, long param4, long __functionAddress); + public static native void invokePPV(long param0, float param1, long param2, int param3, int param4, long __functionAddress); + public static native void invokePPV(long param0, int param1, int param2, int param3, long param4, long __functionAddress); + public static native void invokePPV(int param0, int param1, int param2, int param3, long param4, long param5, long __functionAddress); + public static native void invokePPV(long param0, long param1, int param2, int param3, int param4, int param5, int param6, long __functionAddress); + public static native void invokeCCPV(short param0, short param1, long param2, long __functionAddress); + public static native void invokeCPCV(short param0, long param1, short param2, long __functionAddress); + public static native void invokeCPPV(short param0, long param1, long param2, long __functionAddress); + public static native void invokePNPV(long param0, long param1, long param2, long __functionAddress); + public static native void invokePPPV(long param0, long param1, long param2, long __functionAddress); + public static native void invokeCCCV(short param0, short param1, short param2, int param3, long __functionAddress); + public static native void invokeCCUV(short param0, short param1, int param2, byte param3, long __functionAddress); + public static native void invokePJPV(long param0, long param1, long param2, int param3, long __functionAddress); + public static native void invokePPPV(int param0, long param1, long param2, long param3, long __functionAddress); + public static native void invokePPPV(long param0, int param1, long param2, long param3, long __functionAddress); + public static native void invokePPPV(long param0, long param1, int param2, long param3, long __functionAddress); + public static native void invokePPPV(long param0, long param1, long param2, float param3, long __functionAddress); + public static native void invokePPPV(long param0, long param1, long param2, int param3, long __functionAddress); + public static native void invokePUCV(long param0, byte param1, short param2, int param3, long __functionAddress); + public static native void invokeUCCV(byte param0, short param1, short param2, int param3, long __functionAddress); + public static native void invokeCCUV(short param0, short param1, int param2, float param3, byte param4, long __functionAddress); + public static native void invokeJJJV(int param0, int param1, long param2, long param3, long param4, long __functionAddress); + public static native void invokePPPV(int param0, int param1, long param2, long param3, long param4, long __functionAddress); + public static native void invokePPPV(long param0, int param1, long param2, long param3, int param4, long __functionAddress); + public static native void invokePPPV(long param0, long param1, long param2, boolean param3, boolean param4, long __functionAddress); + public static native void invokePUCV(long param0, byte param1, short param2, int param3, int param4, long __functionAddress); + public static native void invokePUPV(long param0, byte param1, long param2, int param3, int param4, long __functionAddress); + public static native void invokeUCCV(byte param0, short param1, int param2, int param3, short param4, long __functionAddress); + public static native void invokeUCUV(byte param0, short param1, byte param2, int param3, int param4, long __functionAddress); + public static native void invokeUPCV(byte param0, long param1, int param2, int param3, short param4, long __functionAddress); + public static native void invokeCCUV(short param0, short param1, int param2, int param3, int param4, byte param5, long __functionAddress); + public static native void invokePPPV(long param0, long param1, long param2, int param3, boolean param4, boolean param5, long __functionAddress); + public static native void invokePPPV(long param0, boolean param1, int param2, long param3, long param4, int param5, long __functionAddress); + public static native void invokePPPV(long param0, long param1, int param2, int param3, int param4, long param5, int param6, boolean param7, long __functionAddress); + public static native void invokeCCUPV(short param0, short param1, byte param2, long param3, long __functionAddress); + public static native void invokePCPCV(long param0, short param1, long param2, short param3, long __functionAddress); + public static native void invokePNPPV(long param0, long param1, long param2, long param3, long __functionAddress); + public static native void invokePPPPV(long param0, long param1, long param2, long param3, long __functionAddress); + public static native void invokeCCCUV(short param0, short param1, short param2, int param3, byte param4, long __functionAddress); + public static native void invokePCCUV(long param0, short param1, short param2, int param3, byte param4, long __functionAddress); + public static native void invokePJJPV(long param0, int param1, long param2, long param3, long param4, long __functionAddress); + public static native void invokePPCPV(long param0, long param1, short param2, int param3, long param4, long __functionAddress); + public static native void invokePPPCV(long param0, long param1, int param2, long param3, short param4, long __functionAddress); + public static native void invokePPPPV(long param0, int param1, long param2, long param3, long param4, long __functionAddress); + public static native void invokePPPPV(long param0, long param1, long param2, long param3, int param4, long __functionAddress); + public static native void invokePUCCV(long param0, byte param1, short param2, short param3, int param4, long __functionAddress); + public static native void invokePUCCV(long param0, byte param1, short param2, int param3, int param4, short param5, long __functionAddress); + public static native void invokePUCUV(long param0, byte param1, short param2, byte param3, int param4, int param5, long __functionAddress); + public static native void invokePUPCV(long param0, byte param1, long param2, int param3, int param4, short param5, long __functionAddress); + public static native void invokePCCUV(long param0, short param1, short param2, int param3, int param4, int param5, byte param6, long __functionAddress); + public static native void invokeCCCCCV(short param0, short param1, short param2, short param3, short param4, long __functionAddress); + public static native void invokeCCUPPV(short param0, short param1, byte param2, long param3, long param4, long __functionAddress); + public static native void invokePPCPPV(long param0, long param1, short param2, long param3, long param4, long __functionAddress); + public static native void invokePPPPPV(long param0, long param1, long param2, long param3, long param4, long __functionAddress); + public static native void invokePCCCUV(long param0, short param1, short param2, short param3, int param4, byte param5, long __functionAddress); + public static native void invokePPPPPV(long param0, int param1, long param2, long param3, long param4, long param5, long __functionAddress); + public static native void invokePCCCCV(long param0, short param1, short param2, short param3, boolean param4, boolean param5, short param6, int param7, long __functionAddress); + public static native void invokePPPPPV(int param0, long param1, int param2, long param3, long param4, long param5, int param6, long param7, int param8, boolean param9, long __functionAddress); + public static native void invokeCCCCCUV(short param0, short param1, short param2, short param3, short param4, byte param5, long __functionAddress); + public static native void invokeCCCCPCV(short param0, short param1, short param2, short param3, long param4, short param5, long __functionAddress); + public static native void invokePPPPPPV(long param0, long param1, long param2, long param3, long param4, long param5, long __functionAddress); + public static native void invokeCCCCCUV(short param0, short param1, short param2, short param3, short param4, int param5, byte param6, long __functionAddress); + public static native void invokePCCCCUV(long param0, short param1, int param2, short param3, short param4, short param5, byte param6, long __functionAddress); + public static native void invokePCCCCCUV(long param0, short param1, short param2, short param3, short param4, short param5, byte param6, long __functionAddress); + public static native void invokePPPPPPPV(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long __functionAddress); + public static native void invokePCCCCCUV(long param0, short param1, short param2, short param3, short param4, short param5, int param6, byte param7, long __functionAddress); + public static native void invokePPPPPPPV(long param0, int param1, long param2, long param3, long param4, long param5, long param6, long param7, long __functionAddress); + public static native void invokeCCCCCCUV(short param0, short param1, short param2, short param3, short param4, int param5, short param6, int param7, byte param8, long __functionAddress); + public static native void invokePCCCCCCUV(long param0, short param1, short param2, short param3, short param4, short param5, int param6, short param7, int param8, byte param9, long __functionAddress); + public static native void invokeCCUCCCCPCV(short param0, short param1, byte param2, short param3, short param4, short param5, short param6, long param7, short param8, long __functionAddress); + public static native void invokeCUCCCCCCPV(short param0, byte param1, short param2, short param3, short param4, short param5, short param6, short param7, long param8, long __functionAddress); + public static native void invokeCCUUCCCCPCV(short param0, short param1, byte param2, byte param3, short param4, short param5, short param6, short param7, long param8, short param9, long __functionAddress); + public static native void invokeCCUUUUUUUUUV(short param0, short param1, float param2, byte param3, byte param4, byte param5, byte param6, byte param7, byte param8, byte param9, byte param10, byte param11, long __functionAddress); + public static native void invokeCCUCCCCUCCCCCCV(short param0, short param1, byte param2, short param3, short param4, short param5, short param6, byte param7, short param8, short param9, short param10, short param11, short param12, short param13, long __functionAddress); + public static native void invokePCCUCCCCUCCCCCCV(long param0, short param1, short param2, byte param3, short param4, short param5, short param6, short param7, byte param8, short param9, short param10, short param11, short param12, short param13, short param14, long __functionAddress); + public static native boolean invokeZ(long __functionAddress); + public static native boolean invokeZ(int param0, long __functionAddress); + public static native boolean invokePZ(long param0, long __functionAddress); + public static native boolean invokePZ(long param0, int param1, long __functionAddress); + public static native boolean invokePZ(long param0, int param1, int param2, long __functionAddress); + public static native boolean invokePZ(long param0, int param1, int param2, int param3, long __functionAddress); + public static native boolean invokePPZ(long param0, long param1, long __functionAddress); + public static native boolean invokeUPZ(byte param0, long param1, long __functionAddress); + public static native boolean invokePPZ(long param0, int param1, long param2, long __functionAddress); + public static native boolean invokePPZ(long param0, int param1, int param2, long param3, long __functionAddress); + public static native boolean invokePPPZ(long param0, long param1, long param2, long __functionAddress); + public static native boolean invokePJPZ(long param0, long param1, long param2, int param3, long __functionAddress); + public static native boolean invokePPPZ(long param0, long param1, long param2, int param3, long __functionAddress); + public static native boolean invokeCCJZ(short param0, boolean param1, short param2, int param3, long param4, long __functionAddress); + public static native boolean invokePPPZ(long param0, long param1, long param2, boolean param3, int param4, long __functionAddress); + public static native boolean invokePPPZ(long param0, long param1, int param2, long param3, int param4, boolean param5, long __functionAddress); + public static native boolean invokePPPPZ(long param0, long param1, long param2, long param3, long __functionAddress); + public static native boolean invokePPPUPZ(long param0, long param1, long param2, byte param3, long param4, long __functionAddress); + public static native boolean invokePPPPPZ(long param0, long param1, long param2, long param3, long param4, int param5, long __functionAddress); + public static native boolean invokePPPPPZ(long param0, long param1, long param2, long param3, long param4, boolean param5, int param6, long __functionAddress); + public static native short callC(int param0, long __functionAddress); + public static native float callF(long __functionAddress); + public static native float callF(int param0, int param1, int param2, long __functionAddress); + public static native float callPF(int param0, int param1, long param2, long __functionAddress); + public static native float callPPPF(long param0, long param1, long param2, long __functionAddress); + public static native int callI(long __functionAddress); + public static native int callI(int param0, long __functionAddress); + public static native int callI(int param0, float param1, long __functionAddress); + public static native int callI(int param0, int param1, long __functionAddress); + public static native int callI(int param0, int param1, int param2, long __functionAddress); + public static native int callJI(long param0, long __functionAddress); + public static native int callPI(long param0, long __functionAddress); + public static native int callJI(long param0, float param1, long __functionAddress); + public static native int callJI(long param0, int param1, long __functionAddress); + public static native int callPI(int param0, long param1, long __functionAddress); + public static native int callPI(long param0, float param1, long __functionAddress); + public static native int callPI(long param0, int param1, long __functionAddress); + public static native int callPI(long param0, boolean param1, long __functionAddress); + public static native int callJI(long param0, int param1, boolean param2, long __functionAddress); + public static native int callPI(int param0, int param1, long param2, long __functionAddress); + public static native int callPI(int param0, long param1, int param2, long __functionAddress); + public static native int callPI(long param0, float param1, float param2, long __functionAddress); + public static native int callPI(long param0, int param1, float param2, long __functionAddress); + public static native int callPI(long param0, int param1, int param2, long __functionAddress); + public static native int callJI(long param0, float param1, float param2, float param3, long __functionAddress); + public static native int callPI(int param0, int param1, int param2, long param3, long __functionAddress); + public static native int callPI(int param0, int param1, long param2, int param3, long __functionAddress); + public static native int callPI(int param0, long param1, int param2, int param3, long __functionAddress); + public static native int callPI(long param0, int param1, int param2, int param3, long __functionAddress); + public static native int callPI(int param0, int param1, int param2, int param3, long param4, long __functionAddress); + public static native int callPI(long param0, int param1, int param2, int param3, int param4, long __functionAddress); + public static native int callPI(int param0, int param1, int param2, float param3, float param4, long param5, long __functionAddress); + public static native int callPI(int param0, int param1, int param2, int param3, int param4, long param5, long __functionAddress); + public static native int callPI(int param0, long param1, int param2, int param3, float param4, int param5, long __functionAddress); + public static native int callPI(long param0, int param1, int param2, int param3, int param4, int param5, int param6, long __functionAddress); + public static native int callPI(int param0, int param1, long param2, int param3, int param4, int param5, int param6, float param7, long __functionAddress); + public static native int callJJI(long param0, long param1, long __functionAddress); + public static native int callJPI(long param0, long param1, long __functionAddress); + public static native int callPJI(long param0, long param1, long __functionAddress); + public static native int callPPI(long param0, long param1, long __functionAddress); + public static native int callJPI(long param0, int param1, long param2, long __functionAddress); + public static native int callJPI(long param0, long param1, int param2, long __functionAddress); + public static native int callPJI(long param0, int param1, long param2, long __functionAddress); + public static native int callPJI(long param0, long param1, int param2, long __functionAddress); + public static native int callPPI(int param0, long param1, long param2, long __functionAddress); + public static native int callPPI(long param0, int param1, long param2, long __functionAddress); + public static native int callPPI(long param0, long param1, float param2, long __functionAddress); + public static native int callPPI(long param0, long param1, int param2, long __functionAddress); + public static native int callJPI(long param0, int param1, long param2, int param3, long __functionAddress); + public static native int callJPI(long param0, long param1, int param2, int param3, long __functionAddress); + public static native int callPJI(long param0, int param1, int param2, long param3, long __functionAddress); + public static native int callPPI(int param0, int param1, long param2, long param3, long __functionAddress); + public static native int callPPI(int param0, long param1, long param2, int param3, long __functionAddress); + public static native int callPPI(long param0, int param1, int param2, long param3, long __functionAddress); + public static native int callPPI(long param0, int param1, long param2, int param3, long __functionAddress); + public static native int callPPI(long param0, long param1, int param2, int param3, long __functionAddress); + public static native int callJPI(long param0, int param1, int param2, long param3, int param4, long __functionAddress); + public static native int callJPI(long param0, long param1, int param2, int param3, int param4, long __functionAddress); + public static native int callPPI(int param0, int param1, int param2, long param3, long param4, long __functionAddress); + public static native int callPPI(int param0, int param1, long param2, int param3, long param4, long __functionAddress); + public static native int callPPI(long param0, int param1, int param2, int param3, long param4, long __functionAddress); + public static native int callPPI(long param0, int param1, int param2, long param3, int param4, long __functionAddress); + public static native int callPPI(long param0, long param1, int param2, int param3, int param4, long __functionAddress); + public static native int callJJI(long param0, float param1, float param2, float param3, float param4, long param5, long __functionAddress); + public static native int callPPI(int param0, int param1, int param2, long param3, int param4, long param5, long __functionAddress); + public static native int callPPI(int param0, long param1, int param2, int param3, float param4, long param5, long __functionAddress); + public static native int callPPI(long param0, long param1, int param2, int param3, int param4, int param5, long __functionAddress); + public static native int callPPI(long param0, int param1, int param2, int param3, int param4, int param5, long param6, long __functionAddress); + public static native int callPPI(long param0, int param1, int param2, int param3, int param4, int param5, int param6, long param7, long __functionAddress); + public static native int callPPI(int param0, int param1, long param2, long param3, int param4, int param5, int param6, int param7, float param8, long __functionAddress); + public static native int callPPI(long param0, int param1, int param2, int param3, int param4, int param5, int param6, long param7, int param8, int param9, int param10, int param11, int param12, int param13, int param14, int param15, int param16, long __functionAddress); + public static native int callJPPI(long param0, long param1, long param2, long __functionAddress); + public static native int callPCPI(long param0, short param1, long param2, long __functionAddress); + public static native int callPJJI(long param0, long param1, long param2, long __functionAddress); + public static native int callPJPI(long param0, long param1, long param2, long __functionAddress); + public static native int callPPJI(long param0, long param1, long param2, long __functionAddress); + public static native int callPPPI(long param0, long param1, long param2, long __functionAddress); + public static native int callPUPI(long param0, byte param1, long param2, long __functionAddress); + public static native int callJJPI(long param0, long param1, long param2, int param3, long __functionAddress); + public static native int callJPJI(long param0, long param1, int param2, long param3, long __functionAddress); + public static native int callJPPI(long param0, int param1, long param2, long param3, long __functionAddress); + public static native int callJPPI(long param0, long param1, int param2, long param3, long __functionAddress); + public static native int callJPPI(long param0, long param1, long param2, int param3, long __functionAddress); + public static native int callPJJI(long param0, long param1, int param2, long param3, long __functionAddress); + public static native int callPJJI(long param0, long param1, long param2, float param3, long __functionAddress); + public static native int callPJJI(long param0, long param1, long param2, int param3, long __functionAddress); + public static native int callPJJI(long param0, long param1, long param2, boolean param3, long __functionAddress); + public static native int callPJPI(long param0, int param1, long param2, long param3, long __functionAddress); + public static native int callPJPI(long param0, long param1, int param2, long param3, long __functionAddress); + public static native int callPPJI(long param0, int param1, long param2, long param3, long __functionAddress); + public static native int callPPJI(long param0, long param1, int param2, long param3, long __functionAddress); + public static native int callPPJI(long param0, long param1, long param2, int param3, long __functionAddress); + public static native int callPPNI(long param0, int param1, long param2, long param3, long __functionAddress); + public static native int callPPPI(int param0, long param1, long param2, long param3, long __functionAddress); + public static native int callPPPI(long param0, int param1, long param2, long param3, long __functionAddress); + public static native int callPPPI(long param0, long param1, int param2, long param3, long __functionAddress); + public static native int callPPPI(long param0, long param1, long param2, int param3, long __functionAddress); + public static native int callJPJI(long param0, int param1, long param2, int param3, long param4, long __functionAddress); + public static native int callJPPI(long param0, int param1, long param2, int param3, long param4, long __functionAddress); + public static native int callJPPI(long param0, int param1, long param2, long param3, int param4, long __functionAddress); + public static native int callJPPI(long param0, long param1, int param2, int param3, long param4, long __functionAddress); + public static native int callJPPI(long param0, long param1, long param2, int param3, int param4, long __functionAddress); + public static native int callPJJI(long param0, long param1, int param2, long param3, int param4, long __functionAddress); + public static native int callPPJI(long param0, int param1, long param2, int param3, long param4, long __functionAddress); + public static native int callPPPI(int param0, int param1, long param2, long param3, long param4, long __functionAddress); + public static native int callPPPI(long param0, int param1, int param2, long param3, long param4, long __functionAddress); + public static native int callPPPI(long param0, int param1, long param2, int param3, long param4, long __functionAddress); + public static native int callPPPI(long param0, long param1, int param2, long param3, int param4, long __functionAddress); + public static native int callPPPI(long param0, long param1, long param2, int param3, int param4, long __functionAddress); + public static native int callJPJI(long param0, int param1, float param2, long param3, int param4, long param5, long __functionAddress); + public static native int callJPPI(long param0, int param1, long param2, int param3, long param4, int param5, long __functionAddress); + public static native int callPPPI(long param0, int param1, int param2, int param3, long param4, long param5, long __functionAddress); + public static native int callPPPI(long param0, long param1, int param2, int param3, int param4, long param5, long __functionAddress); + public static native int callPPPI(long param0, long param1, int param2, int param3, int param4, int param5, long param6, long __functionAddress); + public static native int callPPJI(int param0, int param1, int param2, long param3, int param4, long param5, boolean param6, long param7, long __functionAddress); + public static native int callPPPI(long param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, long param8, long param9, long __functionAddress); + public static native int callJJPPI(long param0, long param1, long param2, long param3, long __functionAddress); + public static native int callJPPPI(long param0, long param1, long param2, long param3, long __functionAddress); + public static native int callPCPPI(long param0, short param1, long param2, long param3, long __functionAddress); + public static native int callPJJJI(long param0, long param1, long param2, long param3, long __functionAddress); + public static native int callPJJPI(long param0, long param1, long param2, long param3, long __functionAddress); + public static native int callPJPPI(long param0, long param1, long param2, long param3, long __functionAddress); + public static native int callPPJPI(long param0, long param1, long param2, long param3, long __functionAddress); + public static native int callPPNPI(long param0, long param1, long param2, long param3, long __functionAddress); + public static native int callPPPJI(long param0, long param1, long param2, long param3, long __functionAddress); + public static native int callPPPPI(long param0, long param1, long param2, long param3, long __functionAddress); + public static native int callPUPPI(long param0, byte param1, long param2, long param3, long __functionAddress); + public static native int callJPPPI(long param0, long param1, int param2, long param3, long param4, long __functionAddress); + public static native int callPJJJI(long param0, int param1, long param2, long param3, long param4, long __functionAddress); + public static native int callPJPPI(long param0, long param1, int param2, long param3, long param4, long __functionAddress); + public static native int callPPJPI(long param0, long param1, int param2, long param3, long param4, long __functionAddress); + public static native int callPPPJI(long param0, long param1, long param2, int param3, long param4, long __functionAddress); + public static native int callPPPPI(long param0, int param1, long param2, long param3, long param4, long __functionAddress); + public static native int callPPPPI(long param0, long param1, int param2, long param3, long param4, long __functionAddress); + public static native int callPPPPI(long param0, long param1, long param2, int param3, long param4, long __functionAddress); + public static native int callPPPPI(long param0, long param1, long param2, long param3, int param4, long __functionAddress); + public static native int callJPPPI(long param0, int param1, long param2, long param3, long param4, int param5, long __functionAddress); + public static native int callPJPPI(long param0, long param1, int param2, int param3, long param4, long param5, long __functionAddress); + public static native int callPPPPI(int param0, long param1, long param2, int param3, long param4, long param5, long __functionAddress); + public static native int callPPPPI(long param0, int param1, int param2, long param3, long param4, long param5, long __functionAddress); + public static native int callPPPPI(long param0, int param1, long param2, int param3, long param4, long param5, long __functionAddress); + public static native int callPPPPI(long param0, long param1, int param2, int param3, long param4, long param5, long __functionAddress); + public static native int callPPPPI(long param0, long param1, long param2, int param3, int param4, long param5, long __functionAddress); + public static native int callPJPPI(long param0, long param1, int param2, int param3, int param4, long param5, long param6, long __functionAddress); + public static native int callPPPPI(long param0, int param1, long param2, int param3, int param4, long param5, long param6, long __functionAddress); + public static native int callJPPJI(long param0, int param1, int param2, int param3, long param4, int param5, long param6, boolean param7, long param8, long __functionAddress); + public static native int callPPPPI(long param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, long param8, long param9, long param10, long __functionAddress); + public static native int callPPPPI(int param0, long param1, long param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, int param10, int param11, int param12, int param13, int param14, int param15, int param16, int param17, int param18, int param19, int param20, long param21, long param22, long __functionAddress); + public static native int callJPPPJI(long param0, long param1, long param2, long param3, long param4, long __functionAddress); + public static native int callPJJPPI(long param0, long param1, long param2, long param3, long param4, long __functionAddress); + public static native int callPJPPPI(long param0, long param1, long param2, long param3, long param4, long __functionAddress); + public static native int callPPCPPI(long param0, long param1, short param2, long param3, long param4, long __functionAddress); + public static native int callPPJPPI(long param0, long param1, long param2, long param3, long param4, long __functionAddress); + public static native int callPPPJJI(long param0, long param1, long param2, long param3, long param4, long __functionAddress); + public static native int callPPPPJI(long param0, long param1, long param2, long param3, long param4, long __functionAddress); + public static native int callPPPPPI(long param0, long param1, long param2, long param3, long param4, long __functionAddress); + public static native int callPPUPPI(long param0, long param1, byte param2, long param3, long param4, long __functionAddress); + public static native int callPJJJPI(long param0, long param1, long param2, long param3, int param4, long param5, long __functionAddress); + public static native int callPJPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long __functionAddress); + public static native int callPPPPPI(long param0, int param1, long param2, long param3, long param4, long param5, long __functionAddress); + public static native int callPPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long __functionAddress); + public static native int callPPPPPI(long param0, long param1, long param2, int param3, long param4, long param5, long __functionAddress); + public static native int callPPPPPI(long param0, long param1, long param2, long param3, int param4, long param5, long __functionAddress); + public static native int callPPPPPI(long param0, long param1, long param2, long param3, long param4, int param5, long __functionAddress); + public static native int callJJPPPI(long param0, long param1, int param2, long param3, int param4, long param5, long param6, long __functionAddress); + public static native int callPPJPPI(long param0, int param1, long param2, long param3, int param4, long param5, long param6, long __functionAddress); + public static native int callPPJPPI(long param0, long param1, int param2, long param3, int param4, long param5, long param6, long __functionAddress); + public static native int callPPPPPI(int param0, int param1, long param2, long param3, long param4, long param5, long param6, long __functionAddress); + public static native int callPPPPPI(long param0, int param1, long param2, int param3, long param4, long param5, long param6, long __functionAddress); + public static native int callPPPPPI(long param0, int param1, long param2, long param3, int param4, long param5, long param6, long __functionAddress); + public static native int callPPPPPI(long param0, long param1, long param2, long param3, long param4, int param5, int param6, long __functionAddress); + public static native int callJPPPPI(int param0, int param1, long param2, long param3, int param4, long param5, long param6, long param7, long __functionAddress); + public static native int callPJPPJI(long param0, long param1, int param2, int param3, long param4, long param5, long param6, int param7, long __functionAddress); + public static native int callPPPPPI(long param0, int param1, long param2, int param3, long param4, int param5, long param6, long param7, long __functionAddress); + public static native int callJPJPPJI(long param0, long param1, long param2, long param3, long param4, long param5, long __functionAddress); + public static native int callPJJJJPI(long param0, long param1, long param2, long param3, long param4, long param5, long __functionAddress); + public static native int callPPCPPPI(long param0, long param1, short param2, long param3, long param4, long param5, long __functionAddress); + public static native int callPPPPPPI(long param0, long param1, long param2, long param3, long param4, long param5, long __functionAddress); + public static native int callPPUPPPI(long param0, long param1, byte param2, long param3, long param4, long param5, long __functionAddress); + public static native int callPJJPPPI(long param0, long param1, long param2, int param3, long param4, long param5, long param6, long __functionAddress); + public static native int callPPPJPPI(long param0, long param1, long param2, long param3, int param4, long param5, long param6, long __functionAddress); + public static native int callPJPPPPI(long param0, int param1, long param2, long param3, long param4, int param5, long param6, long param7, long __functionAddress); + public static native int callPPPJPPI(long param0, int param1, long param2, long param3, long param4, int param5, long param6, long param7, long __functionAddress); + public static native int callPPPPPPI(int param0, int param1, long param2, long param3, long param4, long param5, long param6, long param7, long __functionAddress); + public static native int callPPPPPPI(long param0, int param1, long param2, long param3, long param4, int param5, long param6, long param7, long __functionAddress); + public static native int callPPPPPPI(long param0, long param1, long param2, long param3, int param4, long param5, long param6, int param7, long __functionAddress); + public static native int callPPPPPPI(long param0, int param1, int param2, long param3, long param4, long param5, long param6, long param7, int param8, int param9, int param10, int param11, long __functionAddress); + public static native int callPPPPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long param6, long param7, long __functionAddress); + public static native int callPPPPPPPI(long param0, long param1, long param2, long param3, int param4, long param5, long param6, long param7, long __functionAddress); + public static native int callPPPPPPPI(long param0, long param1, long param2, long param3, long param4, int param5, long param6, long param7, long __functionAddress); + public static native int callPPPPPPPI(long param0, int param1, long param2, long param3, int param4, long param5, long param6, long param7, long param8, long __functionAddress); + public static native int callPPPPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, int param6, long param7, long param8, long __functionAddress); + public static native int callPPPPPPPI(long param0, long param1, long param2, int param3, long param4, long param5, int param6, long param7, long param8, long __functionAddress); + public static native int callPPPPPPPI(long param0, int param1, int param2, long param3, long param4, long param5, long param6, long param7, int param8, int param9, long param10, int param11, int param12, int param13, int param14, long __functionAddress); + public static native int callPPJPPPPPI(long param0, long param1, long param2, long param3, long param4, int param5, long param6, long param7, long param8, long __functionAddress); + public static native int callPPPPPPPPI(long param0, long param1, long param2, long param3, long param4, long param5, int param6, long param7, long param8, long __functionAddress); + public static native int callPPPPPPPPI(long param0, long param1, long param2, long param3, int param4, long param5, long param6, int param7, long param8, long param9, long __functionAddress); + public static native int callJPPPPPPPPI(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, long param8, long __functionAddress); + public static native int callPPPPPPPPPI(long param0, long param1, long param2, long param3, long param4, long param5, int param6, long param7, long param8, long param9, long __functionAddress); + public static native int callPPPPPPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long param6, long param7, int param8, long param9, long param10, long __functionAddress); + public static native int callPPPPPPPPPPI(long param0, long param1, long param2, long param3, long param4, long param5, long param6, int param7, long param8, long param9, long param10, long __functionAddress); + public static native int callPPPPPPPPPPI(long param0, long param1, long param2, long param3, int param4, long param5, long param6, long param7, int param8, long param9, long param10, long param11, long __functionAddress); + public static native int callPPPPPPPPPPPPI(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, long param8, long param9, int param10, long param11, long param12, long __functionAddress); + public static native int callPPPPPPPPPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long param6, long param7, long param8, long param9, long param10, int param11, long param12, long param13, long __functionAddress); + public static native int callPPPPPPPPPPPPPPI(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, long param8, long param9, long param10, int param11, long param12, long param13, long param14, long __functionAddress); + public static native long callJ(long __functionAddress); + public static native long callJ(int param0, long __functionAddress); + public static native long callJ(int param0, int param1, long __functionAddress); + public static native long callJ(int param0, int param1, boolean param2, int param3, int param4, long __functionAddress); + public static native long callJJ(long param0, long __functionAddress); + public static native long callPJ(long param0, long __functionAddress); + public static native long callPJ(int param0, int param1, long param2, long __functionAddress); + public static native long callPPJ(long param0, long param1, long __functionAddress); + public static native long callPPJ(long param0, int param1, long param2, long __functionAddress); + public static native long callPJJ(long param0, long param1, int param2, int param3, long __functionAddress); + public static native long callPN(long param0, long __functionAddress); + public static native long callP(long __functionAddress); + public static native long callP(int param0, long __functionAddress); + public static native long callP(int param0, int param1, long __functionAddress); + public static native long callP(int param0, float param1, float param2, float param3, long __functionAddress); + public static native long callPP(long param0, long __functionAddress); + public static native long callPP(int param0, long param1, long __functionAddress); + public static native long callPP(long param0, int param1, long __functionAddress); + public static native long callPP(int param0, long param1, int param2, long __functionAddress); + public static native long callPP(long param0, int param1, int param2, long __functionAddress); + public static native long callPNP(long param0, long param1, long __functionAddress); + public static native long callPPP(long param0, long param1, long __functionAddress); + public static native long callPPP(int param0, long param1, long param2, long __functionAddress); + public static native long callPPP(long param0, int param1, long param2, long __functionAddress); + public static native long callPPP(long param0, long param1, int param2, long __functionAddress); + public static native long callPPP(int param0, long param1, long param2, int param3, long __functionAddress); + public static native long callPPP(int param0, int param1, int param2, long param3, long param4, long __functionAddress); + public static native long callPPP(long param0, int param1, int param2, int param3, long param4, long __functionAddress); + public static native long callPPP(long param0, long param1, int param2, int param3, int param4, long __functionAddress); + public static native long callPPNP(long param0, long param1, long param2, long __functionAddress); + public static native long callPPPP(long param0, long param1, long param2, long __functionAddress); + public static native long callPJPP(long param0, long param1, int param2, long param3, long __functionAddress); + public static native long callPJPP(long param0, long param1, long param2, int param3, long __functionAddress); + public static native long callPPPP(int param0, long param1, long param2, long param3, long __functionAddress); + public static native long callPPPP(long param0, int param1, long param2, long param3, long __functionAddress); + public static native long callPPPP(long param0, long param1, int param2, long param3, long __functionAddress); + public static native long callPPPP(long param0, long param1, long param2, int param3, long __functionAddress); + public static native long callPPPP(long param0, long param1, int param2, int param3, long param4, long __functionAddress); + public static native long callPPPP(long param0, long param1, int param2, long param3, int param4, long __functionAddress); + public static native long callPJPP(long param0, long param1, int param2, int param3, int param4, long param5, long __functionAddress); + public static native long callPPJPP(long param0, long param1, long param2, long param3, long __functionAddress); + public static native long callPPNPP(long param0, long param1, long param2, long param3, long __functionAddress); + public static native long callPPPPP(long param0, long param1, long param2, long param3, long __functionAddress); + public static native long callPJPPP(long param0, long param1, int param2, long param3, long param4, long __functionAddress); + public static native long callPJPPP(long param0, long param1, long param2, int param3, long param4, long __functionAddress); + public static native long callPPPPP(long param0, int param1, long param2, long param3, long param4, long __functionAddress); + public static native long callPPPPP(long param0, long param1, int param2, long param3, long param4, long __functionAddress); + public static native long callPPPPP(long param0, long param1, long param2, int param3, long param4, long __functionAddress); + public static native long callPPPPP(long param0, long param1, long param2, long param3, int param4, long __functionAddress); + public static native long callPJPPP(long param0, long param1, int param2, int param3, long param4, long param5, long __functionAddress); + public static native long callPJPPPP(long param0, long param1, long param2, long param3, long param4, long __functionAddress); + public static native long callPPPPPP(long param0, int param1, long param2, long param3, long param4, long param5, long __functionAddress); + public static native long callPPPPPP(long param0, long param1, long param2, long param3, int param4, long param5, long __functionAddress); + public static native long callPJJPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long __functionAddress); + public static native long callPJPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long __functionAddress); + public static native long callPPJPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long __functionAddress); + public static native long callPPPJPPP(long param0, long param1, long param2, long param3, long param4, long param5, long __functionAddress); + public static native long callPPPPPPP(long param0, int param1, long param2, long param3, long param4, long param5, long param6, long __functionAddress); + public static native long callPPJPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long __functionAddress); + public static native long callPPPPPPPP(long param0, int param1, long param2, long param3, int param4, long param5, long param6, long param7, long param8, long __functionAddress); + public static native long callPPPPPPPP(int param0, long param1, long param2, int param3, int param4, int param5, int param6, long param7, long param8, long param9, int param10, long param11, long param12, long __functionAddress); + public static native long callPJPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, long __functionAddress); + public static native long callPPJPPPPPP(long param0, long param1, int param2, long param3, long param4, long param5, int param6, long param7, long param8, long param9, long __functionAddress); + public static native long callPJPPPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, long param8, long param9, long __functionAddress); + public static native long callPPJPPPPPPPP(long param0, long param1, int param2, long param3, long param4, long param5, long param6, long param7, int param8, long param9, long param10, long param11, long __functionAddress); + public static native short callS(int param0, long __functionAddress); + public static native short callPS(long param0, long __functionAddress); + public static native short callPCS(long param0, short param1, long __functionAddress); + public static native short callPPS(long param0, long param1, long __functionAddress); + public static native short callPSS(long param0, short param1, long __functionAddress); + public static native short callSPS(short param0, long param1, long __functionAddress); + public static native short callPPS(long param0, long param1, int param2, long __functionAddress); + public static native short callPPS(long param0, int param1, long param2, int param3, long __functionAddress); + public static native short callPCPS(long param0, short param1, long param2, long __functionAddress); + public static native short callPPCS(long param0, long param1, short param2, long __functionAddress); + public static native short callPPPS(long param0, long param1, long param2, long __functionAddress); + public static native short callPPSS(long param0, long param1, short param2, long __functionAddress); + public static native short callPSPS(long param0, short param1, long param2, long __functionAddress); + public static native short callSPPS(short param0, long param1, long param2, long __functionAddress); + public static native short callSPSS(short param0, long param1, short param2, long __functionAddress); + public static native short callPPPS(long param0, int param1, long param2, int param3, long param4, long __functionAddress); + public static native short callPJCCS(long param0, long param1, short param2, short param3, long __functionAddress); + public static native short callPPSPS(long param0, long param1, short param2, long param3, long __functionAddress); + public static native short callPSSPS(long param0, short param1, short param2, long param3, int param4, long __functionAddress); + public static native short callPPPPS(long param0, long param1, int param2, long param3, int param4, long param5, long __functionAddress); + public static native short callPCPPPS(long param0, short param1, long param2, long param3, long param4, long __functionAddress); + public static native short callPCPSPS(long param0, short param1, long param2, short param3, long param4, long __functionAddress); + public static native short callPSSPPS(long param0, short param1, short param2, long param3, int param4, long param5, long __functionAddress); + public static native short callPCPPPPS(long param0, short param1, long param2, long param3, long param4, long param5, long __functionAddress); + public static native short callPCSPPPS(long param0, short param1, short param2, long param3, long param4, long param5, long __functionAddress); + public static native short callPPSPSPS(long param0, long param1, short param2, long param3, short param4, long param5, long __functionAddress); + public static native short callPCCPSPPS(long param0, short param1, short param2, long param3, short param4, long param5, long param6, long __functionAddress); + public static native short callPPSPSPSS(long param0, long param1, short param2, long param3, short param4, long param5, short param6, long __functionAddress); + public static native short callSPSSPSPS(short param0, long param1, short param2, short param3, long param4, short param5, long param6, long __functionAddress); + public static native short callPCPSPPSPS(long param0, short param1, long param2, short param3, long param4, long param5, short param6, long param7, long __functionAddress); + public static native short callPPPSPSPCS(long param0, long param1, long param2, short param3, long param4, short param5, long param6, short param7, long __functionAddress); + public static native short callSPSPPPSPS(short param0, long param1, short param2, long param3, long param4, long param5, short param6, long param7, long __functionAddress); + public static native short callPCPSPPPPPS(long param0, short param1, long param2, short param3, long param4, long param5, long param6, long param7, long param8, long __functionAddress); + public static native short callPPSPSPSCCS(long param0, long param1, short param2, long param3, short param4, long param5, short param6, short param7, short param8, long __functionAddress); + public static native short callPPSPSPSPSS(long param0, long param1, short param2, long param3, short param4, long param5, short param6, long param7, short param8, long __functionAddress); + public static native short callPCPSPSPSCCS(long param0, short param1, long param2, short param3, long param4, short param5, long param6, short param7, short param8, short param9, long __functionAddress); + public static native short callPCSSSPSPPPS(long param0, short param1, short param2, short param3, short param4, long param5, short param6, long param7, long param8, long param9, long __functionAddress); + public static native short callPSSSPSSPPPS(long param0, short param1, short param2, short param3, long param4, short param5, short param6, long param7, long param8, long param9, long __functionAddress); + public static native short callPSPSPPPPPPPS(long param0, short param1, long param2, short param3, long param4, long param5, long param6, long param7, long param8, long param9, long param10, long __functionAddress); + public static native short callPPSPSPSPSPSPSS(long param0, long param1, short param2, long param3, short param4, long param5, short param6, long param7, short param8, long param9, short param10, long param11, short param12, long __functionAddress); + public static native void callV(long __functionAddress); + public static native void callV(double param0, long __functionAddress); + public static native void callV(float param0, long __functionAddress); + public static native void callV(int param0, long __functionAddress); + public static native void callV(boolean param0, long __functionAddress); + public static native void callV(double param0, double param1, long __functionAddress); + public static native void callV(float param0, float param1, long __functionAddress); + public static native void callV(float param0, boolean param1, long __functionAddress); + public static native void callV(int param0, double param1, long __functionAddress); + public static native void callV(int param0, float param1, long __functionAddress); + public static native void callV(int param0, int param1, long __functionAddress); + public static native void callV(int param0, boolean param1, long __functionAddress); + public static native void callV(double param0, double param1, double param2, long __functionAddress); + public static native void callV(float param0, float param1, float param2, long __functionAddress); + public static native void callV(int param0, double param1, double param2, long __functionAddress); + public static native void callV(int param0, float param1, float param2, long __functionAddress); + public static native void callV(int param0, int param1, double param2, long __functionAddress); + public static native void callV(int param0, int param1, float param2, long __functionAddress); + public static native void callV(int param0, int param1, int param2, long __functionAddress); + public static native void callV(int param0, int param1, boolean param2, long __functionAddress); + public static native void callV(double param0, double param1, double param2, double param3, long __functionAddress); + public static native void callV(float param0, float param1, float param2, float param3, long __functionAddress); + public static native void callV(int param0, double param1, double param2, double param3, long __functionAddress); + public static native void callV(int param0, float param1, float param2, float param3, long __functionAddress); + public static native void callV(int param0, int param1, double param2, double param3, long __functionAddress); + public static native void callV(int param0, int param1, float param2, float param3, long __functionAddress); + public static native void callV(int param0, int param1, float param2, int param3, long __functionAddress); + public static native void callV(int param0, int param1, int param2, double param3, long __functionAddress); + public static native void callV(int param0, int param1, int param2, float param3, long __functionAddress); + public static native void callV(int param0, int param1, int param2, int param3, long __functionAddress); + public static native void callV(int param0, int param1, int param2, boolean param3, long __functionAddress); + public static native void callV(int param0, int param1, boolean param2, int param3, long __functionAddress); + public static native void callV(boolean param0, boolean param1, boolean param2, boolean param3, long __functionAddress); + public static native void callV(int param0, double param1, double param2, double param3, double param4, long __functionAddress); + public static native void callV(int param0, float param1, float param2, float param3, float param4, long __functionAddress); + public static native void callV(int param0, int param1, double param2, double param3, double param4, long __functionAddress); + public static native void callV(int param0, int param1, float param2, float param3, float param4, long __functionAddress); + public static native void callV(int param0, int param1, int param2, float param3, int param4, long __functionAddress); + public static native void callV(int param0, int param1, int param2, int param3, int param4, long __functionAddress); + public static native void callV(int param0, int param1, int param2, boolean param3, int param4, long __functionAddress); + public static native void callV(int param0, boolean param1, boolean param2, boolean param3, boolean param4, long __functionAddress); + public static native void callV(double param0, double param1, double param2, double param3, double param4, double param5, long __functionAddress); + public static native void callV(float param0, float param1, float param2, float param3, float param4, boolean param5, long __functionAddress); + public static native void callV(int param0, double param1, double param2, int param3, double param4, double param5, long __functionAddress); + public static native void callV(int param0, float param1, float param2, int param3, float param4, float param5, long __functionAddress); + public static native void callV(int param0, int param1, double param2, double param3, double param4, double param5, long __functionAddress); + public static native void callV(int param0, int param1, float param2, float param3, float param4, float param5, long __functionAddress); + public static native void callV(int param0, int param1, int param2, int param3, int param4, int param5, long __functionAddress); + public static native void callV(int param0, int param1, int param2, int param3, int param4, boolean param5, long __functionAddress); + public static native void callV(int param0, int param1, int param2, int param3, boolean param4, int param5, long __functionAddress); + public static native void callV(int param0, double param1, double param2, double param3, double param4, double param5, double param6, long __functionAddress); + public static native void callV(int param0, int param1, int param2, double param3, double param4, double param5, double param6, long __functionAddress); + public static native void callV(int param0, int param1, int param2, float param3, float param4, float param5, float param6, long __functionAddress); + public static native void callV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, long __functionAddress); + public static native void callV(int param0, int param1, int param2, int param3, int param4, int param5, boolean param6, long __functionAddress); + public static native void callV(int param0, int param1, int param2, boolean param3, int param4, int param5, int param6, long __functionAddress); + public static native void callV(float param0, float param1, float param2, float param3, float param4, float param5, float param6, float param7, long __functionAddress); + public static native void callV(int param0, int param1, int param2, float param3, float param4, float param5, float param6, float param7, long __functionAddress); + public static native void callV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, long __functionAddress); + public static native void callV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, boolean param7, long __functionAddress); + public static native void callV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, long __functionAddress); + public static native void callV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, boolean param8, long __functionAddress); + public static native void callV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, long __functionAddress); + public static native void callV(int param0, int param1, float param2, float param3, float param4, float param5, float param6, float param7, float param8, float param9, float param10, long __functionAddress); + public static native void callV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, int param10, int param11, long __functionAddress); + public static native void callV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, int param10, int param11, int param12, int param13, int param14, long __functionAddress); + public static native void callV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, int param10, int param11, int param12, int param13, int param14, int param15, int param16, long __functionAddress); + public static native void callJV(long param0, long __functionAddress); + public static native void callPV(long param0, long __functionAddress); + public static native void callSV(short param0, long __functionAddress); + public static native void callUV(byte param0, long __functionAddress); + public static native void callCV(int param0, short param1, long __functionAddress); + public static native void callJV(int param0, long param1, long __functionAddress); + public static native void callJV(long param0, int param1, long __functionAddress); + public static native void callPV(int param0, long param1, long __functionAddress); + public static native void callPV(long param0, float param1, long __functionAddress); + public static native void callPV(long param0, int param1, long __functionAddress); + public static native void callSV(int param0, short param1, long __functionAddress); + public static native void callCV(int param0, int param1, short param2, long __functionAddress); + public static native void callJV(int param0, int param1, long param2, long __functionAddress); + public static native void callPV(int param0, int param1, long param2, long __functionAddress); + public static native void callPV(int param0, long param1, int param2, long __functionAddress); + public static native void callPV(long param0, float param1, float param2, long __functionAddress); + public static native void callPV(long param0, int param1, int param2, long __functionAddress); + public static native void callJV(int param0, long param1, int param2, int param3, long __functionAddress); + public static native void callNV(long param0, int param1, int param2, int param3, long __functionAddress); + public static native void callPV(int param0, float param1, long param2, int param3, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, long param3, long __functionAddress); + public static native void callPV(int param0, int param1, long param2, int param3, long __functionAddress); + public static native void callPV(int param0, int param1, boolean param2, long param3, long __functionAddress); + public static native void callPV(int param0, long param1, int param2, int param3, long __functionAddress); + public static native void callPV(long param0, float param1, float param2, float param3, long __functionAddress); + public static native void callPV(long param0, int param1, int param2, int param3, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, long param4, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, long param3, int param4, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, long param3, boolean param4, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, boolean param3, long param4, long __functionAddress); + public static native void callPV(int param0, int param1, long param2, int param3, int param4, long __functionAddress); + public static native void callPV(int param0, long param1, int param2, int param3, int param4, long __functionAddress); + public static native void callPV(int param0, boolean param1, int param2, int param3, long param4, long __functionAddress); + public static native void callPV(long param0, int param1, int param2, int param3, int param4, long __functionAddress); + public static native void callJV(int param0, int param1, int param2, int param3, int param4, long param5, long __functionAddress); + public static native void callPV(int param0, double param1, double param2, int param3, int param4, long param5, long __functionAddress); + public static native void callPV(int param0, float param1, float param2, int param3, int param4, long param5, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, long param5, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, long param4, boolean param5, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, long param3, int param4, int param5, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, boolean param3, int param4, long param5, long __functionAddress); + public static native void callPV(int param0, int param1, long param2, int param3, int param4, int param5, long __functionAddress); + public static native void callPV(int param0, boolean param1, int param2, int param3, int param4, long param5, long __functionAddress); + public static native void callPV(long param0, int param1, int param2, int param3, int param4, int param5, long __functionAddress); + public static native void callJV(int param0, int param1, int param2, int param3, int param4, int param5, long param6, long __functionAddress); + public static native void callPV(int param0, int param1, float param2, float param3, float param4, float param5, long param6, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, long param6, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, long param5, int param6, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, long param3, int param4, int param5, int param6, long __functionAddress); + public static native void callPV(int param0, int param1, long param2, int param3, int param4, int param5, int param6, long __functionAddress); + public static native void callPV(long param0, int param1, int param2, int param3, int param4, int param5, int param6, long __functionAddress); + public static native void callJV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, long param7, long __functionAddress); + public static native void callJV(int param0, int param1, int param2, int param3, int param4, boolean param5, int param6, long param7, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, long param7, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, boolean param5, int param6, long param7, long __functionAddress); + public static native void callJV(int param0, int param1, int param2, int param3, int param4, int param5, boolean param6, int param7, long param8, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, long param8, long __functionAddress); + public static native void callPV(int param0, int param1, long param2, int param3, int param4, int param5, int param6, int param7, float param8, long __functionAddress); + public static native void callPV(int param0, double param1, double param2, int param3, int param4, double param5, double param6, int param7, int param8, long param9, long __functionAddress); + public static native void callPV(int param0, float param1, float param2, int param3, int param4, float param5, float param6, int param7, int param8, long param9, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, long param9, long __functionAddress); + public static native void callJV(long param0, int param1, float param2, float param3, float param4, float param5, float param6, float param7, float param8, float param9, float param10, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, long param10, long __functionAddress); + public static native void callPV(long param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, int param10, long __functionAddress); + public static native void callJV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, long param10, boolean param11, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, int param10, long param11, long __functionAddress); + public static native void callJPV(long param0, long param1, long __functionAddress); + public static native void callPJV(long param0, long param1, long __functionAddress); + public static native void callPPV(long param0, long param1, long __functionAddress); + public static native void callSSV(short param0, short param1, long __functionAddress); + public static native void callJJV(int param0, long param1, long param2, long __functionAddress); + public static native void callPCV(long param0, int param1, short param2, long __functionAddress); + public static native void callPJV(long param0, int param1, long param2, long __functionAddress); + public static native void callPJV(long param0, long param1, float param2, long __functionAddress); + public static native void callPJV(long param0, long param1, int param2, long __functionAddress); + public static native void callPPV(int param0, long param1, long param2, long __functionAddress); + public static native void callPPV(long param0, int param1, long param2, long __functionAddress); + public static native void callPPV(long param0, long param1, int param2, long __functionAddress); + public static native void callSSV(int param0, short param1, short param2, long __functionAddress); + public static native void callJJV(int param0, int param1, long param2, long param3, long __functionAddress); + public static native void callJPV(int param0, int param1, long param2, long param3, long __functionAddress); + public static native void callJPV(int param0, long param1, int param2, long param3, long __functionAddress); + public static native void callPJV(int param0, long param1, int param2, long param3, long __functionAddress); + public static native void callPJV(long param0, int param1, long param2, int param3, long __functionAddress); + public static native void callPJV(long param0, long param1, int param2, int param3, long __functionAddress); + public static native void callPPV(int param0, int param1, long param2, long param3, long __functionAddress); + public static native void callPPV(int param0, long param1, int param2, long param3, long __functionAddress); + public static native void callPPV(int param0, long param1, long param2, int param3, long __functionAddress); + public static native void callPPV(int param0, long param1, long param2, boolean param3, long __functionAddress); + public static native void callPPV(long param0, int param1, float param2, long param3, long __functionAddress); + public static native void callPPV(long param0, int param1, int param2, long param3, long __functionAddress); + public static native void callPPV(long param0, long param1, int param2, int param3, long __functionAddress); + public static native void callPJV(long param0, long param1, int param2, int param3, int param4, long __functionAddress); + public static native void callPPV(int param0, int param1, int param2, long param3, long param4, long __functionAddress); + public static native void callPPV(int param0, int param1, long param2, int param3, long param4, long __functionAddress); + public static native void callPPV(int param0, int param1, long param2, long param3, int param4, long __functionAddress); + public static native void callPPV(int param0, long param1, int param2, long param3, int param4, long __functionAddress); + public static native void callPPV(int param0, long param1, long param2, int param3, int param4, long __functionAddress); + public static native void callPPV(long param0, int param1, int param2, int param3, long param4, long __functionAddress); + public static native void callPPV(int param0, int param1, int param2, int param3, long param4, long param5, long __functionAddress); + public static native void callPPV(int param0, int param1, long param2, int param3, int param4, long param5, long __functionAddress); + public static native void callPPV(int param0, int param1, long param2, long param3, int param4, int param5, long __functionAddress); + public static native void callPPV(int param0, long param1, long param2, int param3, int param4, int param5, long __functionAddress); + public static native void callPPV(long param0, int param1, long param2, int param3, int param4, int param5, long __functionAddress); + public static native void callPPV(int param0, int param1, int param2, int param3, int param4, long param5, long param6, long __functionAddress); + public static native void callPPV(int param0, int param1, int param2, long param3, int param4, int param5, long param6, long __functionAddress); + public static native void callPPV(int param0, int param1, long param2, int param3, int param4, int param5, long param6, long __functionAddress); + public static native void callPPV(int param0, int param1, long param2, long param3, int param4, int param5, int param6, long __functionAddress); + public static native void callPPV(int param0, int param1, int param2, int param3, int param4, int param5, long param6, long param7, long __functionAddress); + public static native void callPPV(int param0, int param1, int param2, int param3, long param4, int param5, int param6, long param7, long __functionAddress); + public static native void callPPV(int param0, int param1, long param2, int param3, int param4, int param5, int param6, long param7, long __functionAddress); + public static native void callPPV(int param0, int param1, int param2, long param3, int param4, float param5, float param6, int param7, long param8, long __functionAddress); + public static native void callPPV(int param0, int param1, long param2, int param3, int param4, int param5, int param6, int param7, long param8, long __functionAddress); + public static native void callPPV(int param0, int param1, long param2, int param3, int param4, int param5, long param6, int param7, int param8, float param9, long __functionAddress); + public static native void callBBBV(byte param0, byte param1, byte param2, long __functionAddress); + public static native void callCCCV(short param0, short param1, short param2, long __functionAddress); + public static native void callPJJV(long param0, long param1, long param2, long __functionAddress); + public static native void callPJPV(long param0, long param1, long param2, long __functionAddress); + public static native void callPPNV(long param0, long param1, long param2, long __functionAddress); + public static native void callPPPV(long param0, long param1, long param2, long __functionAddress); + public static native void callSSSV(short param0, short param1, short param2, long __functionAddress); + public static native void callUUUV(byte param0, byte param1, byte param2, long __functionAddress); + public static native void callJJJV(int param0, long param1, long param2, long param3, long __functionAddress); + public static native void callPJJV(long param0, long param1, long param2, int param3, long __functionAddress); + public static native void callPJPV(long param0, long param1, int param2, long param3, long __functionAddress); + public static native void callPPPV(int param0, long param1, long param2, long param3, long __functionAddress); + public static native void callPPPV(long param0, int param1, long param2, long param3, long __functionAddress); + public static native void callPPPV(long param0, long param1, float param2, long param3, long __functionAddress); + public static native void callPPPV(long param0, long param1, int param2, long param3, long __functionAddress); + public static native void callPPPV(long param0, long param1, long param2, int param3, long __functionAddress); + public static native void callPPPV(long param0, long param1, boolean param2, long param3, long __functionAddress); + public static native void callSSSV(int param0, short param1, short param2, short param3, long __functionAddress); + public static native void callJJJV(int param0, int param1, long param2, long param3, long param4, long __functionAddress); + public static native void callPJJV(long param0, int param1, long param2, long param3, int param4, long __functionAddress); + public static native void callPJJV(long param0, long param1, long param2, int param3, int param4, long __functionAddress); + public static native void callPPPV(int param0, int param1, long param2, long param3, long param4, long __functionAddress); + public static native void callPPPV(int param0, long param1, int param2, long param3, long param4, long __functionAddress); + public static native void callPPPV(int param0, long param1, long param2, int param3, long param4, long __functionAddress); + public static native void callPPPV(int param0, long param1, long param2, long param3, int param4, long __functionAddress); + public static native void callPPPV(long param0, int param1, int param2, long param3, long param4, long __functionAddress); + public static native void callPPPV(long param0, int param1, long param2, int param3, long param4, long __functionAddress); + public static native void callPJPV(long param0, int param1, long param2, int param3, int param4, long param5, long __functionAddress); + public static native void callPJPV(long param0, long param1, int param2, int param3, int param4, long param5, long __functionAddress); + public static native void callPPJV(int param0, long param1, long param2, int param3, long param4, boolean param5, long __functionAddress); + public static native void callPPJV(long param0, int param1, long param2, int param3, long param4, int param5, long __functionAddress); + public static native void callPPPV(int param0, int param1, int param2, long param3, long param4, long param5, long __functionAddress); + public static native void callPPPV(int param0, int param1, long param2, int param3, long param4, long param5, long __functionAddress); + public static native void callPPPV(int param0, long param1, int param2, long param3, int param4, long param5, long __functionAddress); + public static native void callPJJV(long param0, int param1, int param2, long param3, long param4, int param5, int param6, long __functionAddress); + public static native void callPPPV(int param0, int param1, int param2, int param3, long param4, long param5, long param6, long __functionAddress); + public static native void callPPPV(int param0, int param1, long param2, long param3, int param4, int param5, long param6, long __functionAddress); + public static native void callPPPV(long param0, int param1, long param2, int param3, int param4, int param5, long param6, long __functionAddress); + public static native void callPPPV(int param0, int param1, int param2, int param3, long param4, int param5, long param6, long param7, long __functionAddress); + public static native void callPPPV(long param0, int param1, int param2, int param3, int param4, int param5, long param6, long param7, long __functionAddress); + public static native void callPPPV(long param0, long param1, int param2, int param3, int param4, int param5, int param6, int param7, long param8, int param9, int param10, int param11, int param12, int param13, int param14, int param15, int param16, int param17, long __functionAddress); + public static native void callBBBBV(byte param0, byte param1, byte param2, byte param3, long __functionAddress); + public static native void callCCCCV(short param0, short param1, short param2, short param3, long __functionAddress); + public static native void callPJJPV(long param0, long param1, long param2, long param3, long __functionAddress); + public static native void callPJPPV(long param0, long param1, long param2, long param3, long __functionAddress); + public static native void callPPPNV(long param0, long param1, long param2, long param3, long __functionAddress); + public static native void callPPPPV(long param0, long param1, long param2, long param3, long __functionAddress); + public static native void callSSSSV(short param0, short param1, short param2, short param3, long __functionAddress); + public static native void callUUUUV(byte param0, byte param1, byte param2, byte param3, long __functionAddress); + public static native void callJJJJV(int param0, long param1, long param2, long param3, long param4, long __functionAddress); + public static native void callPJJJV(long param0, long param1, long param2, long param3, int param4, long __functionAddress); + public static native void callPJJPV(long param0, int param1, long param2, long param3, long param4, long __functionAddress); + public static native void callPJJPV(long param0, long param1, long param2, int param3, long param4, long __functionAddress); + public static native void callPPPPV(int param0, long param1, long param2, long param3, long param4, long __functionAddress); + public static native void callPPPPV(long param0, int param1, long param2, long param3, long param4, long __functionAddress); + public static native void callPPPPV(long param0, long param1, long param2, int param3, long param4, long __functionAddress); + public static native void callPPPPV(long param0, long param1, long param2, long param3, int param4, long __functionAddress); + public static native void callSSSSV(int param0, short param1, short param2, short param3, short param4, long __functionAddress); + public static native void callUUUUV(int param0, byte param1, byte param2, byte param3, byte param4, long __functionAddress); + public static native void callJJJJV(int param0, int param1, long param2, long param3, long param4, long param5, long __functionAddress); + public static native void callPJJPV(long param0, long param1, int param2, long param3, int param4, long param5, long __functionAddress); + public static native void callPJJPV(long param0, long param1, long param2, int param3, int param4, long param5, long __functionAddress); + public static native void callPJPPV(long param0, long param1, int param2, long param3, int param4, long param5, long __functionAddress); + public static native void callPPPPV(int param0, long param1, int param2, long param3, long param4, long param5, long __functionAddress); + public static native void callPPPPV(int param0, long param1, long param2, long param3, long param4, int param5, long __functionAddress); + public static native void callPPPPV(long param0, int param1, int param2, long param3, long param4, long param5, long __functionAddress); + public static native void callPJJPV(long param0, long param1, int param2, int param3, long param4, int param5, long param6, long __functionAddress); + public static native void callPJJPV(long param0, long param1, int param2, long param3, int param4, int param5, long param6, long __functionAddress); + public static native void callPJPPV(long param0, int param1, long param2, int param3, int param4, long param5, long param6, long __functionAddress); + public static native void callPPPPV(int param0, int param1, int param2, long param3, long param4, long param5, long param6, long __functionAddress); + public static native void callPPPPV(int param0, int param1, long param2, long param3, long param4, long param5, int param6, long __functionAddress); + public static native void callPJJPV(long param0, long param1, int param2, long param3, int param4, int param5, long param6, int param7, long __functionAddress); + public static native void callPJPPV(long param0, int param1, long param2, int param3, int param4, long param5, int param6, long param7, long __functionAddress); + public static native void callPPPPV(long param0, int param1, int param2, int param3, int param4, long param5, int param6, long param7, int param8, long param9, long __functionAddress); + public static native void callPJJJPV(long param0, long param1, long param2, long param3, long param4, long __functionAddress); + public static native void callPPPPPV(long param0, int param1, long param2, long param3, long param4, long param5, long __functionAddress); + public static native void callPJJJJV(long param0, long param1, long param2, long param3, long param4, int param5, int param6, long __functionAddress); + public static native void callPPPPPV(int param0, int param1, long param2, long param3, long param4, long param5, long param6, long __functionAddress); + public static native void callPPPPPV(long param0, int param1, int param2, long param3, long param4, long param5, long param6, long __functionAddress); + public static native void callPJJJJV(long param0, long param1, int param2, int param3, long param4, long param5, long param6, int param7, long __functionAddress); + public static native void callPJPPPV(long param0, int param1, int param2, long param3, long param4, int param5, long param6, long param7, long __functionAddress); + public static native void callPPPPPV(long param0, long param1, long param2, long param3, long param4, int param5, int param6, int param7, long __functionAddress); + public static native void callPPPPPV(long param0, int param1, long param2, int param3, int param4, int param5, long param6, int param7, long param8, int param9, long param10, long __functionAddress); + public static native void callPPPPPJV(long param0, long param1, long param2, long param3, long param4, long param5, long __functionAddress); + public static native void callPPPPPPV(long param0, long param1, long param2, int param3, int param4, long param5, long param6, long param7, long __functionAddress); + public static native void callPPPPPPPV(int param0, int param1, int param2, long param3, int param4, long param5, long param6, long param7, long param8, long param9, long param10, long __functionAddress); + public static native void callPPJJJJJJV(long param0, long param1, long param2, long param3, int param4, long param5, long param6, long param7, long param8, long __functionAddress); + public static native void callPJJJJJJJJJJJV(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, long param8, long param9, long param10, long param11, int param12, int param13, int param14, long __functionAddress); + public static native boolean callZ(long __functionAddress); + public static native boolean callZ(int param0, long __functionAddress); + public static native boolean callZ(boolean param0, long __functionAddress); + public static native boolean callZ(int param0, int param1, long __functionAddress); + public static native boolean callZ(int param0, float param1, float param2, long __functionAddress); + public static native boolean callZ(int param0, int param1, float param2, float param3, long __functionAddress); + public static native boolean callJZ(long param0, long __functionAddress); + public static native boolean callPZ(long param0, long __functionAddress); + public static native boolean callJZ(int param0, long param1, long __functionAddress); + public static native boolean callPZ(int param0, long param1, long __functionAddress); + public static native boolean callPZ(long param0, int param1, long __functionAddress); + public static native boolean callJZ(int param0, long param1, int param2, long __functionAddress); + public static native boolean callPZ(int param0, int param1, long param2, long __functionAddress); + public static native boolean callPZ(int param0, long param1, int param2, long __functionAddress); + public static native boolean callPZ(int param0, float param1, float param2, long param3, long __functionAddress); + public static native boolean callPPZ(long param0, long param1, long __functionAddress); + public static native boolean callJPZ(long param0, long param1, int param2, long __functionAddress); + public static native boolean callPPZ(int param0, long param1, long param2, long __functionAddress); + public static native boolean callPPZ(long param0, int param1, long param2, long __functionAddress); + public static native boolean callPPZ(long param0, long param1, int param2, long __functionAddress); + public static native boolean callPPZ(int param0, long param1, int param2, long param3, long __functionAddress); + public static native boolean callPPZ(int param0, int param1, long param2, int param3, long param4, long __functionAddress); + public static native boolean callJPPZ(long param0, long param1, long param2, long __functionAddress); + public static native boolean callPPPZ(long param0, long param1, long param2, long __functionAddress); + public static native boolean callPPPPZ(int param0, int param1, int param2, float param3, long param4, long param5, long param6, long param7, long __functionAddress); + public static native boolean callPPJPPZ(long param0, long param1, long param2, long param3, long param4, long __functionAddress); + public static native boolean callPPPPPZ(long param0, long param1, long param2, long param3, long param4, long __functionAddress); // Array API + + public static native short invokeUPC(byte param0, @Nullable short[] param1, boolean param2, long __functionAddress); + public static native short invokeCPCC(short param0, @Nullable short[] param1, short param2, long __functionAddress); + public static native int invokeCPI(short param0, @Nullable int[] param1, long __functionAddress); + public static native int invokePCI(@Nullable float[] param0, short param1, long __functionAddress); + public static native int invokePPI(int param0, long param1, @Nullable int[] param2, long __functionAddress); + public static native int invokePPI(int param0, @Nullable int[] param1, int param2, @Nullable int[] param3, int param4, boolean param5, long __functionAddress); + public static native int invokePPI(int param0, @Nullable short[] param1, int param2, @Nullable short[] param3, int param4, boolean param5, long __functionAddress); + public static native int invokeCPUI(short param0, @Nullable float[] param1, byte param2, long __functionAddress); + public static native int invokeCPUI(short param0, @Nullable int[] param1, byte param2, long __functionAddress); + public static native int invokeCPUI(short param0, @Nullable short[] param1, byte param2, long __functionAddress); + public static native int invokePPCI(long param0, @Nullable float[] param1, short param2, long __functionAddress); + public static native int invokePPPI(@Nullable int[] param0, long param1, long param2, int param3, boolean param4, float param5, long __functionAddress); + public static native int invokePPPI(@Nullable short[] param0, long param1, long param2, int param3, boolean param4, float param5, long __functionAddress); + public static native int invokePPPPI(long param0, long param1, long param2, @Nullable long[] param3, long __functionAddress); + public static native int invokePPPPI(long param0, long param1, int param2, int param3, @Nullable float[] param4, @Nullable int[] param5, long __functionAddress); + public static native int invokePPPPI(long param0, long param1, int param2, int param3, @Nullable int[] param4, @Nullable int[] param5, long __functionAddress); + public static native int invokePPPPPI(long param0, @Nullable int[] param1, @Nullable int[] param2, @Nullable int[] param3, long param4, long __functionAddress); + public static native int invokePNNPPPI(long param0, long param1, long param2, int param3, int param4, @Nullable int[] param5, @Nullable int[] param6, long param7, long __functionAddress); + public static native int invokePPPPPPPPI(long param0, int param1, int param2, long param3, @Nullable int[] param4, @Nullable int[] param5, @Nullable float[] param6, @Nullable int[] param7, @Nullable int[] param8, @Nullable int[] param9, long __functionAddress); + public static native long invokePP(@Nullable double[] param0, int param1, long __functionAddress); + public static native long invokePP(@Nullable float[] param0, int param1, long __functionAddress); + public static native long invokePP(@Nullable int[] param0, int param1, long __functionAddress); + public static native long invokePP(@Nullable long[] param0, int param1, long __functionAddress); + public static native long invokePP(@Nullable short[] param0, int param1, long __functionAddress); + public static native long invokePPP(long param0, @Nullable int[] param1, long __functionAddress); + public static native byte invokeUPU(byte param0, @Nullable int[] param1, long __functionAddress); + public static native void invokePV(int param0, @Nullable double[] param1, long __functionAddress); + public static native void invokePV(int param0, @Nullable float[] param1, long __functionAddress); + public static native void invokePV(int param0, @Nullable int[] param1, long __functionAddress); + public static native void invokePV(int param0, int param1, @Nullable double[] param2, long __functionAddress); + public static native void invokePV(int param0, int param1, @Nullable float[] param2, long __functionAddress); + public static native void invokePV(int param0, int param1, @Nullable int[] param2, long __functionAddress); + public static native void invokePV(int param0, int param1, @Nullable long[] param2, long __functionAddress); + public static native void invokePV(int param0, @Nullable int[] param1, boolean param2, long __functionAddress); + public static native void invokePV(int param0, int param1, @Nullable float[] param2, int param3, int param4, long __functionAddress); + public static native void invokePV(int param0, int param1, @Nullable int[] param2, int param3, int param4, long __functionAddress); + public static native void invokePV(int param0, int param1, @Nullable short[] param2, int param3, int param4, long __functionAddress); + public static native void invokePV(int param0, int param1, int param2, int param3, int param4, @Nullable double[] param5, long __functionAddress); + public static native void invokePV(int param0, int param1, int param2, int param3, int param4, @Nullable float[] param5, long __functionAddress); + public static native void invokePV(int param0, int param1, int param2, int param3, int param4, @Nullable int[] param5, long __functionAddress); + public static native void invokePV(int param0, int param1, int param2, int param3, int param4, @Nullable short[] param5, long __functionAddress); + public static native void invokePV(int param0, int param1, int param2, int param3, int param4, int param5, @Nullable double[] param6, long __functionAddress); + public static native void invokePV(int param0, int param1, int param2, int param3, int param4, int param5, @Nullable float[] param6, long __functionAddress); + public static native void invokePV(int param0, int param1, int param2, int param3, int param4, int param5, @Nullable int[] param6, long __functionAddress); + public static native void invokePV(int param0, int param1, int param2, int param3, int param4, int param5, @Nullable short[] param6, long __functionAddress); + public static native void invokeUPV(byte param0, @Nullable float[] param1, long __functionAddress); + public static native void invokePJV(int param0, @Nullable int[] param1, long param2, long __functionAddress); + public static native void invokePPV(long param0, @Nullable float[] param1, int param2, long __functionAddress); + public static native void invokePPV(long param0, @Nullable int[] param1, int param2, long __functionAddress); + public static native void invokePPV(long param0, @Nullable short[] param1, int param2, long __functionAddress); + public static native void invokePPV(long param0, int param1, int param2, @Nullable int[] param3, long __functionAddress); + public static native void invokePPV(long param0, int param1, int param2, @Nullable long[] param3, long __functionAddress); + public static native void invokeCCPV(short param0, short param1, @Nullable short[] param2, long __functionAddress); + public static native void invokeCPCV(short param0, @Nullable double[] param1, short param2, long __functionAddress); + public static native void invokeCPCV(short param0, @Nullable float[] param1, short param2, long __functionAddress); + public static native void invokeCPCV(short param0, @Nullable int[] param1, short param2, long __functionAddress); + public static native void invokeCPCV(short param0, @Nullable long[] param1, short param2, long __functionAddress); + public static native void invokeCPCV(short param0, @Nullable short[] param1, short param2, long __functionAddress); + public static native void invokeCPPV(short param0, @Nullable float[] param1, @Nullable float[] param2, long __functionAddress); + public static native void invokePNPV(long param0, long param1, @Nullable short[] param2, long __functionAddress); + public static native void invokePPPV(long param0, @Nullable double[] param1, @Nullable double[] param2, long __functionAddress); + public static native void invokePPPV(long param0, @Nullable float[] param1, @Nullable float[] param2, long __functionAddress); + public static native void invokePPPV(long param0, @Nullable int[] param1, @Nullable int[] param2, long __functionAddress); + public static native void invokePPPV(@Nullable int[] param0, @Nullable int[] param1, @Nullable int[] param2, long __functionAddress); + public static native void invokePPPV(int param0, @Nullable float[] param1, @Nullable float[] param2, @Nullable float[] param3, long __functionAddress); + public static native void invokePPPV(int param0, int param1, @Nullable double[] param2, @Nullable double[] param3, @Nullable double[] param4, long __functionAddress); + public static native void invokePPPV(int param0, int param1, @Nullable float[] param2, @Nullable float[] param3, @Nullable float[] param4, long __functionAddress); + public static native void invokePPPV(int param0, int param1, @Nullable long[] param2, @Nullable long[] param3, @Nullable long[] param4, long __functionAddress); + public static native void invokePPPV(@Nullable float[] param0, int param1, long param2, long param3, int param4, long __functionAddress); + public static native void invokePPPV(@Nullable float[] param0, boolean param1, int param2, long param3, long param4, int param5, long __functionAddress); + public static native void invokePCPCV(long param0, short param1, @Nullable double[] param2, short param3, long __functionAddress); + public static native void invokePCPCV(long param0, short param1, @Nullable float[] param2, short param3, long __functionAddress); + public static native void invokePCPCV(long param0, short param1, @Nullable int[] param2, short param3, long __functionAddress); + public static native void invokePCPCV(long param0, short param1, @Nullable long[] param2, short param3, long __functionAddress); + public static native void invokePCPCV(long param0, short param1, @Nullable short[] param2, short param3, long __functionAddress); + public static native void invokePNPPV(long param0, long param1, long param2, @Nullable short[] param3, long __functionAddress); + public static native void invokePPPPPV(long param0, long param1, long param2, @Nullable float[] param3, long param4, long __functionAddress); + public static native void invokePPPPPV(long param0, @Nullable int[] param1, @Nullable int[] param2, @Nullable int[] param3, @Nullable int[] param4, long __functionAddress); + public static native void invokePPPPPV(long param0, int param1, long param2, @Nullable int[] param3, long param4, long param5, long __functionAddress); + public static native void invokePPPPPV(int param0, long param1, int param2, @Nullable float[] param3, @Nullable float[] param4, long param5, int param6, long param7, int param8, boolean param9, long __functionAddress); + public static native void invokePPPPPV(int param0, @Nullable int[] param1, int param2, @Nullable float[] param3, @Nullable float[] param4, long param5, int param6, @Nullable int[] param7, int param8, boolean param9, long __functionAddress); + public static native void invokePPPPPV(int param0, @Nullable short[] param1, int param2, @Nullable float[] param3, @Nullable float[] param4, long param5, int param6, @Nullable short[] param7, int param8, boolean param9, long __functionAddress); + public static native boolean invokePPZ(long param0, @Nullable int[] param1, long __functionAddress); + public static native boolean invokePPPZ(long param0, long param1, @Nullable int[] param2, long __functionAddress); + public static native int callPI(@Nullable int[] param0, long __functionAddress); + public static native int callPI(int param0, @Nullable int[] param1, long __functionAddress); + public static native int callPI(@Nullable int[] param0, int param1, long __functionAddress); + public static native int callPI(int param0, int param1, @Nullable int[] param2, long __functionAddress); + public static native int callPI(int param0, @Nullable int[] param1, int param2, long __functionAddress); + public static native int callPI(int param0, int param1, int param2, @Nullable int[] param3, long __functionAddress); + public static native int callPI(int param0, int param1, int param2, int param3, @Nullable float[] param4, long __functionAddress); + public static native int callPI(int param0, int param1, int param2, int param3, @Nullable int[] param4, long __functionAddress); + public static native int callPPI(long param0, @Nullable int[] param1, long __functionAddress); + public static native int callPPI(long param0, @Nullable long[] param1, long __functionAddress); + public static native int callPPI(@Nullable int[] param0, long param1, long __functionAddress); + public static native int callPPI(int param0, long param1, @Nullable int[] param2, long __functionAddress); + public static native int callPPI(long param0, int param1, @Nullable double[] param2, long __functionAddress); + public static native int callPPI(long param0, int param1, @Nullable float[] param2, long __functionAddress); + public static native int callPPI(long param0, int param1, @Nullable int[] param2, long __functionAddress); + public static native int callPPI(long param0, int param1, @Nullable long[] param2, long __functionAddress); + public static native int callPPI(long param0, int param1, @Nullable short[] param2, long __functionAddress); + public static native int callPPI(long param0, int param1, int param2, @Nullable int[] param3, long __functionAddress); + public static native int callPPI(long param0, int param1, int param2, @Nullable long[] param3, long __functionAddress); + public static native int callPPI(int param0, long param1, int param2, int param3, float param4, @Nullable int[] param5, long __functionAddress); + public static native int callPJPI(long param0, long param1, @Nullable int[] param2, long __functionAddress); + public static native int callPJPI(long param0, long param1, @Nullable long[] param2, long __functionAddress); + public static native int callPPPI(long param0, long param1, @Nullable int[] param2, long __functionAddress); + public static native int callPPPI(long param0, long param1, @Nullable long[] param2, long __functionAddress); + public static native int callPPPI(long param0, @Nullable int[] param1, long param2, long __functionAddress); + public static native int callPPPI(long param0, @Nullable int[] param1, @Nullable int[] param2, long __functionAddress); + public static native int callPPPI(long param0, @Nullable long[] param1, @Nullable long[] param2, long __functionAddress); + public static native int callPPPI(@Nullable int[] param0, long param1, @Nullable int[] param2, long __functionAddress); + public static native int callPJPI(long param0, int param1, long param2, @Nullable int[] param3, long __functionAddress); + public static native int callPJPI(long param0, long param1, int param2, @Nullable long[] param3, long __functionAddress); + public static native int callPPPI(long param0, int param1, long param2, @Nullable double[] param3, long __functionAddress); + public static native int callPPPI(long param0, int param1, long param2, @Nullable float[] param3, long __functionAddress); + public static native int callPPPI(long param0, int param1, long param2, @Nullable int[] param3, long __functionAddress); + public static native int callPPPI(long param0, int param1, long param2, @Nullable long[] param3, long __functionAddress); + public static native int callPPPI(long param0, int param1, long param2, @Nullable short[] param3, long __functionAddress); + public static native int callPPPI(long param0, int param1, @Nullable int[] param2, @Nullable int[] param3, long __functionAddress); + public static native int callPPPI(long param0, int param1, @Nullable int[] param2, @Nullable long[] param3, long __functionAddress); + public static native int callPPPI(long param0, long param1, int param2, @Nullable int[] param3, long __functionAddress); + public static native int callPPPI(long param0, long param1, int param2, @Nullable long[] param3, long __functionAddress); + public static native int callPPPI(long param0, long param1, @Nullable int[] param2, int param3, long __functionAddress); + public static native int callPPJI(long param0, int param1, @Nullable long[] param2, int param3, long param4, long __functionAddress); + public static native int callPPPI(long param0, int param1, int param2, long param3, @Nullable int[] param4, long __functionAddress); + public static native int callPPPI(long param0, int param1, int param2, int param3, @Nullable int[] param4, @Nullable float[] param5, long __functionAddress); + public static native int callPPPI(long param0, int param1, int param2, int param3, @Nullable int[] param4, @Nullable int[] param5, long __functionAddress); + public static native int callPJPPI(long param0, long param1, long param2, @Nullable int[] param3, long __functionAddress); + public static native int callPJPPI(long param0, long param1, long param2, @Nullable long[] param3, long __functionAddress); + public static native int callPJPPI(long param0, long param1, @Nullable int[] param2, long param3, long __functionAddress); + public static native int callPJPPI(long param0, long param1, @Nullable int[] param2, @Nullable int[] param3, long __functionAddress); + public static native int callPJPPI(long param0, long param1, @Nullable int[] param2, @Nullable long[] param3, long __functionAddress); + public static native int callPPNPI(long param0, long param1, long param2, @Nullable long[] param3, long __functionAddress); + public static native int callPPPPI(long param0, long param1, long param2, @Nullable long[] param3, long __functionAddress); + public static native int callPPPPI(long param0, long param1, @Nullable int[] param2, long param3, long __functionAddress); + public static native int callPPPPI(long param0, long param1, @Nullable int[] param2, @Nullable int[] param3, long __functionAddress); + public static native int callPJPPI(long param0, long param1, int param2, long param3, @Nullable int[] param4, long __functionAddress); + public static native int callPPPPI(long param0, int param1, long param2, long param3, @Nullable long[] param4, long __functionAddress); + public static native int callPPPPI(long param0, int param1, long param2, @Nullable int[] param3, long param4, long __functionAddress); + public static native int callPPPPI(long param0, int param1, long param2, @Nullable long[] param3, long param4, long __functionAddress); + public static native int callPPPPI(long param0, int param1, long param2, @Nullable long[] param3, @Nullable long[] param4, long __functionAddress); + public static native int callPPPPI(long param0, int param1, @Nullable int[] param2, long param3, long param4, long __functionAddress); + public static native int callPPPPI(long param0, long param1, int param2, long param3, @Nullable int[] param4, long __functionAddress); + public static native int callPPPPI(long param0, long param1, int param2, @Nullable long[] param3, long param4, long __functionAddress); + public static native int callPPPPI(long param0, long param1, long param2, int param3, @Nullable int[] param4, long __functionAddress); + public static native int callPPPPI(long param0, @Nullable int[] param1, long param2, int param3, @Nullable int[] param4, long __functionAddress); + public static native int callPPPPI(long param0, @Nullable long[] param1, int param2, long param3, @Nullable int[] param4, long __functionAddress); + public static native int callPJPPI(long param0, long param1, int param2, int param3, long param4, @Nullable int[] param5, long __functionAddress); + public static native int callPJPPI(long param0, long param1, int param2, int param3, @Nullable int[] param4, @Nullable int[] param5, long __functionAddress); + public static native int callPPPPI(long param0, int param1, int param2, long param3, @Nullable int[] param4, long param5, long __functionAddress); + public static native int callPPPPI(long param0, int param1, int param2, long param3, @Nullable long[] param4, long param5, long __functionAddress); + public static native int callPPPPI(long param0, int param1, int param2, @Nullable long[] param3, @Nullable int[] param4, @Nullable int[] param5, long __functionAddress); + public static native int callPJPPI(long param0, long param1, int param2, int param3, int param4, long param5, @Nullable int[] param6, long __functionAddress); + public static native int callPPPPI(long param0, int param1, long param2, int param3, int param4, long param5, @Nullable int[] param6, long __functionAddress); + public static native int callPPPPI(int param0, @Nullable int[] param1, @Nullable long[] param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, int param10, int param11, int param12, int param13, int param14, int param15, int param16, int param17, int param18, int param19, int param20, @Nullable int[] param21, @Nullable long[] param22, long __functionAddress); + public static native int callPJPPPI(long param0, long param1, long param2, long param3, @Nullable long[] param4, long __functionAddress); + public static native int callPPJPPI(long param0, long param1, long param2, @Nullable int[] param3, long param4, long __functionAddress); + public static native int callPPPPPI(long param0, long param1, @Nullable int[] param2, @Nullable int[] param3, @Nullable int[] param4, long __functionAddress); + public static native int callPPPPPI(long param0, long param1, @Nullable int[] param2, @Nullable int[] param3, @Nullable long[] param4, long __functionAddress); + public static native int callPPPPPI(long param0, @Nullable int[] param1, @Nullable int[] param2, @Nullable int[] param3, long param4, long __functionAddress); + public static native int callPJPPPI(long param0, long param1, int param2, long param3, long param4, @Nullable long[] param5, long __functionAddress); + public static native int callPPPPPI(long param0, long param1, int param2, long param3, @Nullable int[] param4, long param5, long __functionAddress); + public static native int callPPPPPI(long param0, long param1, int param2, long param3, @Nullable long[] param4, long param5, long __functionAddress); + public static native int callPPPPPI(long param0, long param1, int param2, @Nullable int[] param3, @Nullable int[] param4, long param5, long __functionAddress); + public static native int callPPPPPI(long param0, long param1, long param2, @Nullable int[] param3, int param4, @Nullable int[] param5, long __functionAddress); + public static native int callPPPPPI(long param0, @Nullable int[] param1, @Nullable float[] param2, int param3, @Nullable int[] param4, @Nullable int[] param5, long __functionAddress); + public static native int callPPPPPI(int param0, int param1, @Nullable int[] param2, @Nullable int[] param3, @Nullable int[] param4, @Nullable int[] param5, long param6, long __functionAddress); + public static native int callPPPPPI(long param0, int param1, long param2, @Nullable long[] param3, int param4, long param5, long param6, long __functionAddress); + public static native int callPPPPPI(long param0, int param1, @Nullable long[] param2, int param3, long param4, long param5, long param6, long __functionAddress); + public static native int callPJPPJI(long param0, long param1, int param2, int param3, long param4, @Nullable int[] param5, long param6, int param7, long __functionAddress); + public static native int callPJPPJI(long param0, long param1, int param2, int param3, long param4, @Nullable long[] param5, long param6, int param7, long __functionAddress); + public static native int callPJJJJPI(long param0, long param1, long param2, long param3, long param4, @Nullable int[] param5, long __functionAddress); + public static native int callPPPPPPI(long param0, @Nullable int[] param1, @Nullable int[] param2, @Nullable int[] param3, @Nullable int[] param4, @Nullable int[] param5, long __functionAddress); + public static native int callPJJPPPI(long param0, long param1, long param2, int param3, long param4, long param5, @Nullable long[] param6, long __functionAddress); + public static native int callPPPPPPI(int param0, int param1, @Nullable int[] param2, @Nullable int[] param3, @Nullable int[] param4, @Nullable int[] param5, @Nullable int[] param6, long param7, long __functionAddress); + public static native int callPPPPPPPI(long param0, long param1, long param2, long param3, int param4, long param5, @Nullable int[] param6, long param7, long __functionAddress); + public static native int callPPPPPPPI(long param0, long param1, @Nullable float[] param2, long param3, long param4, int param5, long param6, long param7, long __functionAddress); + public static native int callPPPPPPPI(long param0, long param1, @Nullable int[] param2, long param3, long param4, int param5, long param6, long param7, long __functionAddress); + public static native int callPPPPPPPI(long param0, long param1, int param2, long param3, long param4, @Nullable double[] param5, int param6, long param7, long param8, long __functionAddress); + public static native int callPPPPPPPI(long param0, long param1, int param2, long param3, long param4, @Nullable float[] param5, int param6, long param7, long param8, long __functionAddress); + public static native int callPPPPPPPI(long param0, long param1, int param2, long param3, long param4, @Nullable int[] param5, int param6, long param7, long param8, long __functionAddress); + public static native int callPPPPPPPI(long param0, long param1, int param2, long param3, long param4, @Nullable short[] param5, int param6, long param7, long param8, long __functionAddress); + public static native int callPPJPPPPPI(long param0, @Nullable long[] param1, long param2, long param3, long param4, int param5, long param6, long param7, long param8, long __functionAddress); + public static native int callPPJPPPPPI(long param0, @Nullable long[] param1, long param2, long param3, long param4, int param5, long param6, @Nullable int[] param7, long param8, long __functionAddress); + public static native int callPPPPPPPPPI(long param0, long param1, long param2, long param3, long param4, long param5, int param6, @Nullable int[] param7, @Nullable int[] param8, long param9, long __functionAddress); + public static native int callPPPPPPPPPI(long param0, long param1, long param2, @Nullable float[] param3, long param4, long param5, int param6, @Nullable int[] param7, @Nullable int[] param8, long param9, long __functionAddress); + public static native int callPPPPPPPPPI(long param0, long param1, long param2, @Nullable int[] param3, long param4, long param5, int param6, @Nullable int[] param7, @Nullable int[] param8, long param9, long __functionAddress); + public static native int callPPPPPPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long param6, @Nullable double[] param7, int param8, long param9, long param10, long __functionAddress); + public static native int callPPPPPPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long param6, @Nullable float[] param7, int param8, long param9, long param10, long __functionAddress); + public static native int callPPPPPPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long param6, @Nullable int[] param7, int param8, long param9, long param10, long __functionAddress); + public static native int callPPPPPPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long param6, @Nullable short[] param7, int param8, long param9, long param10, long __functionAddress); + public static native int callPPPPPPPPPPI(long param0, long param1, long param2, long param3, long param4, long param5, long param6, int param7, @Nullable int[] param8, @Nullable int[] param9, long param10, long __functionAddress); + public static native int callPPPPPPPPPPI(long param0, long param1, @Nullable long[] param2, long param3, int param4, long param5, long param6, long param7, int param8, @Nullable int[] param9, @Nullable int[] param10, long param11, long __functionAddress); + public static native int callPPPPPPPPPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long param6, long param7, long param8, long param9, @Nullable double[] param10, int param11, long param12, long param13, long __functionAddress); + public static native int callPPPPPPPPPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long param6, long param7, long param8, long param9, @Nullable float[] param10, int param11, long param12, long param13, long __functionAddress); + public static native int callPPPPPPPPPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long param6, long param7, long param8, long param9, @Nullable int[] param10, int param11, long param12, long param13, long __functionAddress); + public static native int callPPPPPPPPPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long param6, long param7, long param8, long param9, @Nullable short[] param10, int param11, long param12, long param13, long __functionAddress); + public static native int callPPPPPPPPPPPPPPI(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, long param8, long param9, long param10, int param11, @Nullable int[] param12, @Nullable int[] param13, long param14, long __functionAddress); + public static native long callPP(@Nullable int[] param0, long __functionAddress); + public static native long callPPP(long param0, @Nullable int[] param1, long __functionAddress); + public static native long callPPP(int param0, long param1, @Nullable int[] param2, long __functionAddress); + public static native long callPPP(long param0, int param1, @Nullable int[] param2, long __functionAddress); + public static native long callPPP(int param0, int param1, int param2, @Nullable int[] param3, @Nullable int[] param4, long __functionAddress); + public static native long callPPP(long param0, int param1, int param2, int param3, @Nullable int[] param4, long __functionAddress); + public static native long callPPPP(long param0, long param1, @Nullable int[] param2, long __functionAddress); + public static native long callPPPP(long param0, @Nullable long[] param1, @Nullable int[] param2, long __functionAddress); + public static native long callPJPP(long param0, long param1, int param2, @Nullable int[] param3, long __functionAddress); + public static native long callPPPP(int param0, long param1, @Nullable long[] param2, @Nullable int[] param3, long __functionAddress); + public static native long callPPPP(long param0, int param1, @Nullable int[] param2, long param3, long __functionAddress); + public static native long callPPPP(long param0, long param1, int param2, @Nullable int[] param3, long __functionAddress); + public static native long callPPPP(long param0, long param1, int param2, int param3, @Nullable int[] param4, long __functionAddress); + public static native long callPJPP(long param0, long param1, int param2, int param3, int param4, @Nullable int[] param5, long __functionAddress); + public static native long callPPJPP(long param0, long param1, long param2, @Nullable int[] param3, long __functionAddress); + public static native long callPPNPP(long param0, long param1, long param2, @Nullable int[] param3, long __functionAddress); + public static native long callPPPPP(long param0, long param1, long param2, @Nullable int[] param3, long __functionAddress); + public static native long callPPPPP(long param0, long param1, @Nullable long[] param2, @Nullable int[] param3, long __functionAddress); + public static native long callPJPPP(long param0, long param1, int param2, long param3, @Nullable int[] param4, long __functionAddress); + public static native long callPJPPP(long param0, long param1, @Nullable int[] param2, int param3, @Nullable int[] param4, long __functionAddress); + public static native long callPPPPP(long param0, int param1, long param2, long param3, @Nullable int[] param4, long __functionAddress); + public static native long callPPPPP(long param0, long param1, int param2, long param3, @Nullable int[] param4, long __functionAddress); + public static native long callPPPPP(long param0, long param1, long param2, int param3, @Nullable int[] param4, long __functionAddress); + public static native long callPPPPP(long param0, @Nullable long[] param1, long param2, int param3, @Nullable int[] param4, long __functionAddress); + public static native long callPJPPP(long param0, long param1, int param2, int param3, long param4, @Nullable int[] param5, long __functionAddress); + public static native long callPJPPPP(long param0, long param1, long param2, long param3, @Nullable int[] param4, long __functionAddress); + public static native long callPJPPPP(long param0, long param1, long param2, @Nullable double[] param3, @Nullable int[] param4, long __functionAddress); + public static native long callPJPPPP(long param0, long param1, long param2, @Nullable float[] param3, @Nullable int[] param4, long __functionAddress); + public static native long callPJPPPP(long param0, long param1, long param2, @Nullable int[] param3, @Nullable int[] param4, long __functionAddress); + public static native long callPJPPPP(long param0, long param1, long param2, @Nullable short[] param3, @Nullable int[] param4, long __functionAddress); + public static native long callPPPPPP(long param0, int param1, long param2, long param3, long param4, @Nullable int[] param5, long __functionAddress); + public static native long callPPPPPP(long param0, long param1, @Nullable long[] param2, long param3, int param4, @Nullable int[] param5, long __functionAddress); + public static native long callPJJPPPP(long param0, long param1, long param2, long param3, long param4, @Nullable int[] param5, long __functionAddress); + public static native long callPJJPPPP(long param0, long param1, long param2, long param3, @Nullable double[] param4, @Nullable int[] param5, long __functionAddress); + public static native long callPJJPPPP(long param0, long param1, long param2, long param3, @Nullable float[] param4, @Nullable int[] param5, long __functionAddress); + public static native long callPJJPPPP(long param0, long param1, long param2, long param3, @Nullable int[] param4, @Nullable int[] param5, long __functionAddress); + public static native long callPJJPPPP(long param0, long param1, long param2, long param3, @Nullable short[] param4, @Nullable int[] param5, long __functionAddress); + public static native long callPJPPPPP(long param0, long param1, long param2, long param3, long param4, @Nullable int[] param5, long __functionAddress); + public static native long callPJPPPPP(long param0, long param1, long param2, long param3, @Nullable float[] param4, @Nullable int[] param5, long __functionAddress); + public static native long callPJPPPPP(long param0, long param1, long param2, long param3, @Nullable int[] param4, @Nullable int[] param5, long __functionAddress); + public static native long callPJPPPPP(long param0, long param1, long param2, long param3, @Nullable short[] param4, @Nullable int[] param5, long __functionAddress); + public static native long callPPJPPPP(long param0, @Nullable long[] param1, long param2, long param3, long param4, @Nullable int[] param5, long __functionAddress); + public static native long callPPJPPPP(long param0, @Nullable long[] param1, long param2, long param3, @Nullable double[] param4, @Nullable int[] param5, long __functionAddress); + public static native long callPPJPPPP(long param0, @Nullable long[] param1, long param2, long param3, @Nullable float[] param4, @Nullable int[] param5, long __functionAddress); + public static native long callPPJPPPP(long param0, @Nullable long[] param1, long param2, long param3, @Nullable int[] param4, @Nullable int[] param5, long __functionAddress); + public static native long callPPJPPPP(long param0, @Nullable long[] param1, long param2, long param3, @Nullable short[] param4, @Nullable int[] param5, long __functionAddress); + public static native long callPPPJPPP(long param0, long param1, long param2, long param3, long param4, @Nullable int[] param5, long __functionAddress); + public static native long callPPPPPPP(long param0, int param1, long param2, long param3, long param4, @Nullable int[] param5, @Nullable int[] param6, long __functionAddress); + public static native long callPPJPPPPP(long param0, @Nullable long[] param1, long param2, long param3, long param4, long param5, @Nullable int[] param6, long __functionAddress); + public static native long callPPJPPPPP(long param0, @Nullable long[] param1, long param2, long param3, long param4, @Nullable float[] param5, @Nullable int[] param6, long __functionAddress); + public static native long callPPJPPPPP(long param0, @Nullable long[] param1, long param2, long param3, long param4, @Nullable int[] param5, @Nullable int[] param6, long __functionAddress); + public static native long callPPJPPPPP(long param0, @Nullable long[] param1, long param2, long param3, long param4, @Nullable short[] param5, @Nullable int[] param6, long __functionAddress); + public static native long callPPPPPPPP(long param0, int param1, long param2, long param3, int param4, long param5, long param6, long param7, @Nullable int[] param8, long __functionAddress); + public static native long callPPPPPPPP(int param0, @Nullable int[] param1, @Nullable long[] param2, int param3, int param4, int param5, int param6, long param7, long param8, long param9, int param10, @Nullable int[] param11, @Nullable long[] param12, long __functionAddress); + public static native long callPJPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, @Nullable int[] param7, long __functionAddress); + public static native long callPJPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, @Nullable float[] param6, @Nullable int[] param7, long __functionAddress); + public static native long callPJPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, @Nullable int[] param6, @Nullable int[] param7, long __functionAddress); + public static native long callPJPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, @Nullable short[] param6, @Nullable int[] param7, long __functionAddress); + public static native long callPPJPPPPPP(long param0, long param1, int param2, long param3, long param4, long param5, int param6, long param7, long param8, @Nullable int[] param9, long __functionAddress); + public static native long callPJPPPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, long param8, @Nullable int[] param9, long __functionAddress); + public static native long callPJPPPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, @Nullable float[] param8, @Nullable int[] param9, long __functionAddress); + public static native long callPJPPPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, @Nullable int[] param8, @Nullable int[] param9, long __functionAddress); + public static native long callPJPPPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, @Nullable short[] param8, @Nullable int[] param9, long __functionAddress); + public static native long callPPJPPPPPPPP(long param0, long param1, int param2, long param3, long param4, long param5, long param6, long param7, int param8, long param9, long param10, @Nullable int[] param11, long __functionAddress); + public static native void callPV(@Nullable double[] param0, long __functionAddress); + public static native void callPV(@Nullable float[] param0, long __functionAddress); + public static native void callPV(@Nullable int[] param0, long __functionAddress); + public static native void callPV(@Nullable short[] param0, long __functionAddress); + public static native void callPV(int param0, @Nullable double[] param1, long __functionAddress); + public static native void callPV(int param0, @Nullable float[] param1, long __functionAddress); + public static native void callPV(int param0, @Nullable int[] param1, long __functionAddress); + public static native void callPV(int param0, @Nullable long[] param1, long __functionAddress); + public static native void callPV(int param0, @Nullable short[] param1, long __functionAddress); + public static native void callPV(int param0, int param1, @Nullable double[] param2, long __functionAddress); + public static native void callPV(int param0, int param1, @Nullable float[] param2, long __functionAddress); + public static native void callPV(int param0, int param1, @Nullable int[] param2, long __functionAddress); + public static native void callPV(int param0, int param1, @Nullable long[] param2, long __functionAddress); + public static native void callPV(int param0, int param1, @Nullable short[] param2, long __functionAddress); + public static native void callPV(int param0, @Nullable int[] param1, int param2, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, @Nullable double[] param3, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, @Nullable float[] param3, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, @Nullable int[] param3, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, @Nullable long[] param3, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, @Nullable short[] param3, long __functionAddress); + public static native void callPV(int param0, int param1, boolean param2, @Nullable double[] param3, long __functionAddress); + public static native void callPV(int param0, int param1, boolean param2, @Nullable float[] param3, long __functionAddress); + public static native void callPV(int param0, int param1, boolean param2, @Nullable int[] param3, long __functionAddress); + public static native void callPV(int param0, int param1, @Nullable int[] param2, int param3, long __functionAddress); + public static native void callPV(int param0, @Nullable int[] param1, int param2, int param3, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, @Nullable double[] param4, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, @Nullable float[] param4, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, @Nullable int[] param4, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, @Nullable long[] param4, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, @Nullable short[] param4, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, boolean param3, @Nullable double[] param4, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, boolean param3, @Nullable float[] param4, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, @Nullable int[] param3, boolean param4, long __functionAddress); + public static native void callPV(int param0, int param1, @Nullable int[] param2, int param3, int param4, long __functionAddress); + public static native void callPV(int param0, boolean param1, int param2, int param3, @Nullable int[] param4, long __functionAddress); + public static native void callPV(int param0, double param1, double param2, int param3, int param4, @Nullable double[] param5, long __functionAddress); + public static native void callPV(int param0, float param1, float param2, int param3, int param4, @Nullable float[] param5, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, @Nullable double[] param5, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, @Nullable float[] param5, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, @Nullable int[] param5, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, @Nullable short[] param5, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, @Nullable int[] param4, boolean param5, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, boolean param3, int param4, @Nullable float[] param5, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, boolean param3, int param4, @Nullable int[] param5, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, boolean param3, int param4, @Nullable short[] param5, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, @Nullable double[] param6, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, @Nullable float[] param6, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, @Nullable int[] param6, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, @Nullable short[] param6, long __functionAddress); + public static native void callPV(int param0, int param1, @Nullable int[] param2, int param3, int param4, int param5, int param6, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, @Nullable double[] param7, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, @Nullable float[] param7, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, @Nullable int[] param7, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, @Nullable short[] param7, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, @Nullable double[] param8, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, @Nullable float[] param8, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, @Nullable int[] param8, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, @Nullable short[] param8, long __functionAddress); + public static native void callPV(int param0, double param1, double param2, int param3, int param4, double param5, double param6, int param7, int param8, @Nullable double[] param9, long __functionAddress); + public static native void callPV(int param0, float param1, float param2, int param3, int param4, float param5, float param6, int param7, int param8, @Nullable float[] param9, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, @Nullable double[] param9, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, @Nullable float[] param9, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, @Nullable int[] param9, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, @Nullable short[] param9, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, @Nullable double[] param10, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, @Nullable float[] param10, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, @Nullable int[] param10, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, @Nullable short[] param10, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, int param10, @Nullable double[] param11, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, int param10, @Nullable float[] param11, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, int param10, @Nullable int[] param11, long __functionAddress); + public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, int param10, @Nullable short[] param11, long __functionAddress); + public static native void callPPV(long param0, @Nullable float[] param1, long __functionAddress); + public static native void callPPV(long param0, @Nullable int[] param1, long __functionAddress); + public static native void callPPV(@Nullable double[] param0, @Nullable double[] param1, long __functionAddress); + public static native void callPPV(@Nullable float[] param0, @Nullable float[] param1, long __functionAddress); + public static native void callPPV(@Nullable int[] param0, @Nullable int[] param1, long __functionAddress); + public static native void callPPV(@Nullable short[] param0, @Nullable short[] param1, long __functionAddress); + public static native void callPPV(int param0, long param1, @Nullable int[] param2, long __functionAddress); + public static native void callPPV(int param0, @Nullable int[] param1, @Nullable float[] param2, long __functionAddress); + public static native void callPPV(int param0, @Nullable int[] param1, @Nullable int[] param2, long __functionAddress); + public static native void callPPV(int param0, @Nullable int[] param1, @Nullable long[] param2, long __functionAddress); + public static native void callPPV(long param0, int param1, @Nullable float[] param2, long __functionAddress); + public static native void callPPV(long param0, int param1, @Nullable int[] param2, long __functionAddress); + public static native void callPPV(@Nullable int[] param0, int param1, @Nullable int[] param2, long __functionAddress); + public static native void callPPV(int param0, int param1, long param2, @Nullable int[] param3, long __functionAddress); + public static native void callPPV(int param0, int param1, @Nullable int[] param2, long param3, long __functionAddress); + public static native void callPPV(int param0, int param1, @Nullable int[] param2, @Nullable float[] param3, long __functionAddress); + public static native void callPPV(int param0, int param1, @Nullable int[] param2, @Nullable int[] param3, long __functionAddress); + public static native void callPPV(int param0, int param1, @Nullable int[] param2, @Nullable long[] param3, long __functionAddress); + public static native void callPPV(int param0, long param1, int param2, @Nullable int[] param3, long __functionAddress); + public static native void callPPV(int param0, long param1, @Nullable double[] param2, int param3, long __functionAddress); + public static native void callPPV(int param0, long param1, @Nullable float[] param2, int param3, long __functionAddress); + public static native void callPPV(int param0, long param1, @Nullable int[] param2, int param3, long __functionAddress); + public static native void callPPV(int param0, long param1, @Nullable long[] param2, int param3, long __functionAddress); + public static native void callPPV(int param0, long param1, @Nullable short[] param2, int param3, long __functionAddress); + public static native void callPPV(int param0, @Nullable int[] param1, @Nullable int[] param2, int param3, long __functionAddress); + public static native void callPPV(int param0, @Nullable long[] param1, @Nullable int[] param2, int param3, long __functionAddress); + public static native void callPPV(long param0, int param1, int param2, @Nullable int[] param3, long __functionAddress); + public static native void callPPV(int param0, int param1, int param2, long param3, @Nullable int[] param4, long __functionAddress); + public static native void callPPV(int param0, int param1, int param2, @Nullable int[] param3, long param4, long __functionAddress); + public static native void callPPV(int param0, int param1, int param2, @Nullable int[] param3, @Nullable int[] param4, long __functionAddress); + public static native void callPPV(int param0, int param1, long param2, @Nullable int[] param3, int param4, long __functionAddress); + public static native void callPPV(int param0, int param1, @Nullable int[] param2, int param3, @Nullable int[] param4, long __functionAddress); + public static native void callPPV(int param0, @Nullable int[] param1, int param2, long param3, int param4, long __functionAddress); + public static native void callPPV(int param0, @Nullable int[] param1, int param2, @Nullable int[] param3, int param4, long __functionAddress); + public static native void callPPV(int param0, @Nullable int[] param1, long param2, int param3, int param4, long __functionAddress); + public static native void callPPV(long param0, int param1, int param2, int param3, @Nullable int[] param4, long __functionAddress); + public static native void callPPV(int param0, int param1, int param2, int param3, @Nullable int[] param4, long param5, long __functionAddress); + public static native void callPPV(int param0, int param1, long param2, int param3, int param4, @Nullable float[] param5, long __functionAddress); + public static native void callPPV(int param0, int param1, long param2, int param3, int param4, @Nullable short[] param5, long __functionAddress); + public static native void callPPV(int param0, int param1, @Nullable int[] param2, long param3, int param4, int param5, long __functionAddress); + public static native void callPPV(int param0, int param1, int param2, long param3, int param4, int param5, @Nullable float[] param6, long __functionAddress); + public static native void callPPV(int param0, int param1, long param2, int param3, int param4, int param5, @Nullable float[] param6, long __functionAddress); + public static native void callPPV(int param0, int param1, int param2, int param3, long param4, int param5, int param6, @Nullable float[] param7, long __functionAddress); + public static native void callPPV(int param0, int param1, int param2, int param3, long param4, int param5, int param6, @Nullable short[] param7, long __functionAddress); + public static native void callPPV(int param0, int param1, long param2, int param3, int param4, int param5, int param6, @Nullable float[] param7, long __functionAddress); + public static native void callPPV(int param0, int param1, int param2, long param3, int param4, float param5, float param6, int param7, @Nullable float[] param8, long __functionAddress); + public static native void callPPV(int param0, int param1, long param2, int param3, int param4, int param5, int param6, int param7, @Nullable float[] param8, long __functionAddress); + public static native void callPJPV(long param0, long param1, @Nullable long[] param2, long __functionAddress); + public static native void callPPPV(long param0, long param1, @Nullable int[] param2, long __functionAddress); + public static native void callPPPV(long param0, @Nullable int[] param1, long param2, long __functionAddress); + public static native void callPJPV(long param0, long param1, int param2, @Nullable long[] param3, long __functionAddress); + public static native void callPPPV(int param0, long param1, long param2, @Nullable double[] param3, long __functionAddress); + public static native void callPPPV(int param0, long param1, long param2, @Nullable float[] param3, long __functionAddress); + public static native void callPPPV(int param0, long param1, long param2, @Nullable int[] param3, long __functionAddress); + public static native void callPPPV(int param0, long param1, long param2, @Nullable long[] param3, long __functionAddress); + public static native void callPPPV(int param0, long param1, long param2, @Nullable short[] param3, long __functionAddress); + public static native void callPPPV(long param0, int param1, @Nullable int[] param2, long param3, long __functionAddress); + public static native void callPPPV(long param0, int param1, @Nullable int[] param2, @Nullable long[] param3, long __functionAddress); + public static native void callPPPV(long param0, int param1, @Nullable long[] param2, long param3, long __functionAddress); + public static native void callPPPV(long param0, long param1, int param2, @Nullable int[] param3, long __functionAddress); + public static native void callPPPV(int param0, int param1, long param2, long param3, @Nullable double[] param4, long __functionAddress); + public static native void callPPPV(int param0, int param1, long param2, long param3, @Nullable float[] param4, long __functionAddress); + public static native void callPPPV(int param0, int param1, long param2, long param3, @Nullable int[] param4, long __functionAddress); + public static native void callPPPV(int param0, int param1, long param2, long param3, @Nullable short[] param4, long __functionAddress); + public static native void callPPPV(int param0, int param1, @Nullable int[] param2, long param3, @Nullable int[] param4, long __functionAddress); + public static native void callPPPV(int param0, int param1, @Nullable int[] param2, @Nullable int[] param3, long param4, long __functionAddress); + public static native void callPPPV(int param0, long param1, int param2, @Nullable int[] param3, long param4, long __functionAddress); + public static native void callPPPV(int param0, long param1, int param2, @Nullable int[] param3, @Nullable int[] param4, long __functionAddress); + public static native void callPPPV(int param0, @Nullable int[] param1, @Nullable int[] param2, int param3, @Nullable int[] param4, long __functionAddress); + public static native void callPPPV(long param0, int param1, int param2, @Nullable int[] param3, @Nullable int[] param4, long __functionAddress); + public static native void callPPPV(long param0, int param1, int param2, @Nullable long[] param3, @Nullable long[] param4, long __functionAddress); + public static native void callPJPV(long param0, long param1, int param2, int param3, int param4, @Nullable double[] param5, long __functionAddress); + public static native void callPJPV(long param0, long param1, int param2, int param3, int param4, @Nullable float[] param5, long __functionAddress); + public static native void callPJPV(long param0, long param1, int param2, int param3, int param4, @Nullable int[] param5, long __functionAddress); + public static native void callPJPV(long param0, long param1, int param2, int param3, int param4, @Nullable long[] param5, long __functionAddress); + public static native void callPJPV(long param0, long param1, int param2, int param3, int param4, @Nullable short[] param5, long __functionAddress); + public static native void callPPJV(long param0, int param1, @Nullable long[] param2, int param3, long param4, int param5, long __functionAddress); + public static native void callPPPV(int param0, int param1, int param2, @Nullable int[] param3, long param4, long param5, long __functionAddress); + public static native void callPPPV(int param0, int param1, int param2, @Nullable int[] param3, long param4, @Nullable int[] param5, long __functionAddress); + public static native void callPPPV(int param0, int param1, @Nullable int[] param2, int param3, @Nullable int[] param4, @Nullable int[] param5, long __functionAddress); + public static native void callPPPV(int param0, @Nullable int[] param1, int param2, long param3, int param4, @Nullable int[] param5, long __functionAddress); + public static native void callPPPV(int param0, int param1, long param2, long param3, int param4, int param5, @Nullable float[] param6, long __functionAddress); + public static native void callPPPV(int param0, int param1, long param2, long param3, int param4, int param5, @Nullable int[] param6, long __functionAddress); + public static native void callPPPV(int param0, int param1, long param2, long param3, int param4, int param5, @Nullable short[] param6, long __functionAddress); + public static native void callPPPV(long param0, int param1, long param2, int param3, int param4, int param5, @Nullable int[] param6, long __functionAddress); + public static native void callPPPV(int param0, int param1, int param2, int param3, @Nullable int[] param4, int param5, @Nullable int[] param6, @Nullable float[] param7, long __functionAddress); + public static native void callPPPV(int param0, int param1, int param2, int param3, @Nullable int[] param4, int param5, @Nullable int[] param6, @Nullable int[] param7, long __functionAddress); + public static native void callPPPV(long param0, int param1, int param2, int param3, int param4, int param5, @Nullable int[] param6, long param7, long __functionAddress); + public static native void callPJPPV(long param0, long param1, @Nullable int[] param2, long param3, long __functionAddress); + public static native void callPPPPV(long param0, long param1, @Nullable int[] param2, long param3, long __functionAddress); + public static native void callPJJPV(long param0, int param1, long param2, long param3, @Nullable long[] param4, long __functionAddress); + public static native void callPPPPV(long param0, int param1, long param2, @Nullable int[] param3, long param4, long __functionAddress); + public static native void callPPPPV(@Nullable long[] param0, @Nullable int[] param1, @Nullable int[] param2, @Nullable int[] param3, int param4, long __functionAddress); + public static native void callPPPPV(int param0, long param1, @Nullable int[] param2, @Nullable int[] param3, @Nullable int[] param4, int param5, long __functionAddress); + public static native void callPPPPV(long param0, int param1, int param2, @Nullable long[] param3, @Nullable long[] param4, @Nullable long[] param5, long __functionAddress); + public static native void callPJPPV(long param0, int param1, long param2, int param3, int param4, @Nullable int[] param5, @Nullable long[] param6, long __functionAddress); + public static native void callPPPPV(int param0, int param1, int param2, @Nullable int[] param3, @Nullable int[] param4, @Nullable int[] param5, long param6, long __functionAddress); + public static native void callPPPPV(int param0, int param1, long param2, @Nullable int[] param3, @Nullable int[] param4, @Nullable int[] param5, int param6, long __functionAddress); + public static native void callPJPPV(long param0, int param1, long param2, int param3, int param4, @Nullable long[] param5, int param6, @Nullable int[] param7, long __functionAddress); + public static native void callPJJJPV(long param0, long param1, long param2, long param3, @Nullable double[] param4, long __functionAddress); + public static native void callPJJJPV(long param0, long param1, long param2, long param3, @Nullable float[] param4, long __functionAddress); + public static native void callPJJJPV(long param0, long param1, long param2, long param3, @Nullable int[] param4, long __functionAddress); + public static native void callPJJJPV(long param0, long param1, long param2, long param3, @Nullable long[] param4, long __functionAddress); + public static native void callPJJJPV(long param0, long param1, long param2, long param3, @Nullable short[] param4, long __functionAddress); + public static native void callPPPPPV(long param0, int param1, long param2, @Nullable long[] param3, @Nullable int[] param4, long param5, long __functionAddress); + public static native void callPPPPPV(int param0, int param1, long param2, @Nullable int[] param3, @Nullable int[] param4, @Nullable int[] param5, @Nullable int[] param6, long __functionAddress); + public static native void callPPPPPV(long param0, int param1, int param2, @Nullable long[] param3, @Nullable long[] param4, @Nullable long[] param5, @Nullable long[] param6, long __functionAddress); + public static native void callPPPPPV(long param0, int param1, @Nullable long[] param2, int param3, int param4, int param5, long param6, int param7, long param8, int param9, long param10, long __functionAddress); + public static native void callPPPPPPPV(int param0, int param1, int param2, long param3, int param4, long param5, @Nullable int[] param6, @Nullable int[] param7, @Nullable int[] param8, @Nullable int[] param9, @Nullable long[] param10, long __functionAddress); + public static native boolean callPPZ(int param0, @Nullable int[] param1, long param2, long __functionAddress); + public static native boolean callPPPPZ(int param0, int param1, int param2, float param3, @Nullable float[] param4, @Nullable float[] param5, @Nullable float[] param6, @Nullable float[] param7, long __functionAddress); - public static native short invokeUPC(byte param0, @Nullable short[] param1, boolean param2, long __functionAddress); - public static native short invokeCPCC(short param0, @Nullable short[] param1, short param2, long __functionAddress); - public static native int invokeCPI(short param0, @Nullable int[] param1, long __functionAddress); - public static native int invokePCI(@Nullable float[] param0, short param1, long __functionAddress); - public static native int invokePPI(int param0, long param1, @Nullable int[] param2, long __functionAddress); - public static native int invokePPI(int param0, @Nullable int[] param1, int param2, @Nullable int[] param3, int param4, boolean param5, long __functionAddress); - public static native int invokePPI(int param0, @Nullable short[] param1, int param2, @Nullable short[] param3, int param4, boolean param5, long __functionAddress); - public static native int invokeCPUI(short param0, @Nullable float[] param1, byte param2, long __functionAddress); - public static native int invokeCPUI(short param0, @Nullable int[] param1, byte param2, long __functionAddress); - public static native int invokeCPUI(short param0, @Nullable short[] param1, byte param2, long __functionAddress); - public static native int invokePPCI(long param0, @Nullable float[] param1, short param2, long __functionAddress); - public static native int invokePPPI(@Nullable int[] param0, long param1, long param2, int param3, boolean param4, float param5, long __functionAddress); - public static native int invokePPPI(@Nullable short[] param0, long param1, long param2, int param3, boolean param4, float param5, long __functionAddress); - public static native int invokePPPPI(long param0, long param1, long param2, @Nullable long[] param3, long __functionAddress); - public static native int invokePPPPI(long param0, long param1, int param2, int param3, @Nullable float[] param4, @Nullable int[] param5, long __functionAddress); - public static native int invokePPPPI(long param0, long param1, int param2, int param3, @Nullable int[] param4, @Nullable int[] param5, long __functionAddress); - public static native int invokePPPPPI(long param0, @Nullable int[] param1, @Nullable int[] param2, @Nullable int[] param3, long param4, long __functionAddress); - public static native int invokePNNPPPI(long param0, long param1, long param2, int param3, int param4, @Nullable int[] param5, @Nullable int[] param6, long param7, long __functionAddress); - public static native int invokePPPPPPPPI(long param0, int param1, int param2, long param3, @Nullable int[] param4, @Nullable int[] param5, @Nullable float[] param6, @Nullable int[] param7, @Nullable int[] param8, @Nullable int[] param9, long __functionAddress); - public static native long invokePP(@Nullable double[] param0, int param1, long __functionAddress); - public static native long invokePP(@Nullable float[] param0, int param1, long __functionAddress); - public static native long invokePP(@Nullable int[] param0, int param1, long __functionAddress); - public static native long invokePP(@Nullable long[] param0, int param1, long __functionAddress); - public static native long invokePP(@Nullable short[] param0, int param1, long __functionAddress); - public static native long invokePPP(long param0, @Nullable int[] param1, long __functionAddress); - public static native byte invokeUPU(byte param0, @Nullable int[] param1, long __functionAddress); - public static native void invokePV(int param0, @Nullable double[] param1, long __functionAddress); - public static native void invokePV(int param0, @Nullable float[] param1, long __functionAddress); - public static native void invokePV(int param0, @Nullable int[] param1, long __functionAddress); - public static native void invokePV(int param0, int param1, @Nullable double[] param2, long __functionAddress); - public static native void invokePV(int param0, int param1, @Nullable float[] param2, long __functionAddress); - public static native void invokePV(int param0, int param1, @Nullable int[] param2, long __functionAddress); - public static native void invokePV(int param0, int param1, @Nullable long[] param2, long __functionAddress); - public static native void invokePV(int param0, @Nullable int[] param1, boolean param2, long __functionAddress); - public static native void invokePV(int param0, int param1, @Nullable float[] param2, int param3, int param4, long __functionAddress); - public static native void invokePV(int param0, int param1, @Nullable int[] param2, int param3, int param4, long __functionAddress); - public static native void invokePV(int param0, int param1, @Nullable short[] param2, int param3, int param4, long __functionAddress); - public static native void invokePV(int param0, int param1, int param2, int param3, int param4, @Nullable double[] param5, long __functionAddress); - public static native void invokePV(int param0, int param1, int param2, int param3, int param4, @Nullable float[] param5, long __functionAddress); - public static native void invokePV(int param0, int param1, int param2, int param3, int param4, @Nullable int[] param5, long __functionAddress); - public static native void invokePV(int param0, int param1, int param2, int param3, int param4, @Nullable short[] param5, long __functionAddress); - public static native void invokePV(int param0, int param1, int param2, int param3, int param4, int param5, @Nullable double[] param6, long __functionAddress); - public static native void invokePV(int param0, int param1, int param2, int param3, int param4, int param5, @Nullable float[] param6, long __functionAddress); - public static native void invokePV(int param0, int param1, int param2, int param3, int param4, int param5, @Nullable int[] param6, long __functionAddress); - public static native void invokePV(int param0, int param1, int param2, int param3, int param4, int param5, @Nullable short[] param6, long __functionAddress); - public static native void invokeUPV(byte param0, @Nullable float[] param1, long __functionAddress); - public static native void invokePJV(int param0, @Nullable int[] param1, long param2, long __functionAddress); - public static native void invokePPV(long param0, @Nullable float[] param1, int param2, long __functionAddress); - public static native void invokePPV(long param0, @Nullable int[] param1, int param2, long __functionAddress); - public static native void invokePPV(long param0, @Nullable short[] param1, int param2, long __functionAddress); - public static native void invokePPV(long param0, int param1, int param2, @Nullable int[] param3, long __functionAddress); - public static native void invokePPV(long param0, int param1, int param2, @Nullable long[] param3, long __functionAddress); - public static native void invokeCCPV(short param0, short param1, @Nullable short[] param2, long __functionAddress); - public static native void invokeCPCV(short param0, @Nullable double[] param1, short param2, long __functionAddress); - public static native void invokeCPCV(short param0, @Nullable float[] param1, short param2, long __functionAddress); - public static native void invokeCPCV(short param0, @Nullable int[] param1, short param2, long __functionAddress); - public static native void invokeCPCV(short param0, @Nullable long[] param1, short param2, long __functionAddress); - public static native void invokeCPCV(short param0, @Nullable short[] param1, short param2, long __functionAddress); - public static native void invokeCPPV(short param0, @Nullable float[] param1, @Nullable float[] param2, long __functionAddress); - public static native void invokePNPV(long param0, long param1, @Nullable short[] param2, long __functionAddress); - public static native void invokePPPV(long param0, @Nullable double[] param1, @Nullable double[] param2, long __functionAddress); - public static native void invokePPPV(long param0, @Nullable float[] param1, @Nullable float[] param2, long __functionAddress); - public static native void invokePPPV(long param0, @Nullable int[] param1, @Nullable int[] param2, long __functionAddress); - public static native void invokePPPV(@Nullable int[] param0, @Nullable int[] param1, @Nullable int[] param2, long __functionAddress); - public static native void invokePPPV(int param0, @Nullable float[] param1, @Nullable float[] param2, @Nullable float[] param3, long __functionAddress); - public static native void invokePPPV(int param0, int param1, @Nullable double[] param2, @Nullable double[] param3, @Nullable double[] param4, long __functionAddress); - public static native void invokePPPV(int param0, int param1, @Nullable float[] param2, @Nullable float[] param3, @Nullable float[] param4, long __functionAddress); - public static native void invokePPPV(int param0, int param1, @Nullable long[] param2, @Nullable long[] param3, @Nullable long[] param4, long __functionAddress); - public static native void invokePPPV(@Nullable float[] param0, int param1, long param2, long param3, int param4, long __functionAddress); - public static native void invokePPPV(@Nullable float[] param0, boolean param1, int param2, long param3, long param4, int param5, long __functionAddress); - public static native void invokePCPCV(long param0, short param1, @Nullable double[] param2, short param3, long __functionAddress); - public static native void invokePCPCV(long param0, short param1, @Nullable float[] param2, short param3, long __functionAddress); - public static native void invokePCPCV(long param0, short param1, @Nullable int[] param2, short param3, long __functionAddress); - public static native void invokePCPCV(long param0, short param1, @Nullable long[] param2, short param3, long __functionAddress); - public static native void invokePCPCV(long param0, short param1, @Nullable short[] param2, short param3, long __functionAddress); - public static native void invokePNPPV(long param0, long param1, long param2, @Nullable short[] param3, long __functionAddress); - public static native void invokePPPPPV(long param0, long param1, long param2, @Nullable float[] param3, long param4, long __functionAddress); - public static native void invokePPPPPV(long param0, @Nullable int[] param1, @Nullable int[] param2, @Nullable int[] param3, @Nullable int[] param4, long __functionAddress); - public static native void invokePPPPPV(long param0, int param1, long param2, @Nullable int[] param3, long param4, long param5, long __functionAddress); - public static native void invokePPPPPV(int param0, long param1, int param2, @Nullable float[] param3, @Nullable float[] param4, long param5, int param6, long param7, int param8, boolean param9, long __functionAddress); - public static native void invokePPPPPV(int param0, @Nullable int[] param1, int param2, @Nullable float[] param3, @Nullable float[] param4, long param5, int param6, @Nullable int[] param7, int param8, boolean param9, long __functionAddress); - public static native void invokePPPPPV(int param0, @Nullable short[] param1, int param2, @Nullable float[] param3, @Nullable float[] param4, long param5, int param6, @Nullable short[] param7, int param8, boolean param9, long __functionAddress); - public static native boolean invokePPZ(long param0, @Nullable int[] param1, long __functionAddress); - public static native boolean invokePPPZ(long param0, long param1, @Nullable int[] param2, long __functionAddress); - public static native int callPI(@Nullable int[] param0, long __functionAddress); - public static native int callPI(int param0, @Nullable int[] param1, long __functionAddress); - public static native int callPI(@Nullable int[] param0, int param1, long __functionAddress); - public static native int callPI(int param0, int param1, @Nullable int[] param2, long __functionAddress); - public static native int callPI(int param0, @Nullable int[] param1, int param2, long __functionAddress); - public static native int callPI(int param0, int param1, int param2, @Nullable int[] param3, long __functionAddress); - public static native int callPI(int param0, int param1, int param2, int param3, @Nullable float[] param4, long __functionAddress); - public static native int callPI(int param0, int param1, int param2, int param3, @Nullable int[] param4, long __functionAddress); - public static native int callPPI(long param0, @Nullable int[] param1, long __functionAddress); - public static native int callPPI(long param0, @Nullable long[] param1, long __functionAddress); - public static native int callPPI(@Nullable int[] param0, long param1, long __functionAddress); - public static native int callPPI(int param0, long param1, @Nullable int[] param2, long __functionAddress); - public static native int callPPI(long param0, int param1, @Nullable double[] param2, long __functionAddress); - public static native int callPPI(long param0, int param1, @Nullable float[] param2, long __functionAddress); - public static native int callPPI(long param0, int param1, @Nullable int[] param2, long __functionAddress); - public static native int callPPI(long param0, int param1, @Nullable long[] param2, long __functionAddress); - public static native int callPPI(long param0, int param1, @Nullable short[] param2, long __functionAddress); - public static native int callPPI(long param0, int param1, int param2, @Nullable int[] param3, long __functionAddress); - public static native int callPPI(long param0, int param1, int param2, @Nullable long[] param3, long __functionAddress); - public static native int callPPI(int param0, long param1, int param2, int param3, float param4, @Nullable int[] param5, long __functionAddress); - public static native int callPJPI(long param0, long param1, @Nullable int[] param2, long __functionAddress); - public static native int callPJPI(long param0, long param1, @Nullable long[] param2, long __functionAddress); - public static native int callPPPI(long param0, long param1, @Nullable int[] param2, long __functionAddress); - public static native int callPPPI(long param0, long param1, @Nullable long[] param2, long __functionAddress); - public static native int callPPPI(long param0, @Nullable int[] param1, long param2, long __functionAddress); - public static native int callPPPI(long param0, @Nullable int[] param1, @Nullable int[] param2, long __functionAddress); - public static native int callPPPI(long param0, @Nullable long[] param1, @Nullable long[] param2, long __functionAddress); - public static native int callPPPI(@Nullable int[] param0, long param1, @Nullable int[] param2, long __functionAddress); - public static native int callPJPI(long param0, int param1, long param2, @Nullable int[] param3, long __functionAddress); - public static native int callPJPI(long param0, long param1, int param2, @Nullable long[] param3, long __functionAddress); - public static native int callPPPI(long param0, int param1, long param2, @Nullable double[] param3, long __functionAddress); - public static native int callPPPI(long param0, int param1, long param2, @Nullable float[] param3, long __functionAddress); - public static native int callPPPI(long param0, int param1, long param2, @Nullable int[] param3, long __functionAddress); - public static native int callPPPI(long param0, int param1, long param2, @Nullable long[] param3, long __functionAddress); - public static native int callPPPI(long param0, int param1, long param2, @Nullable short[] param3, long __functionAddress); - public static native int callPPPI(long param0, int param1, @Nullable int[] param2, @Nullable int[] param3, long __functionAddress); - public static native int callPPPI(long param0, int param1, @Nullable int[] param2, @Nullable long[] param3, long __functionAddress); - public static native int callPPPI(long param0, long param1, int param2, @Nullable int[] param3, long __functionAddress); - public static native int callPPPI(long param0, long param1, int param2, @Nullable long[] param3, long __functionAddress); - public static native int callPPPI(long param0, long param1, @Nullable int[] param2, int param3, long __functionAddress); - public static native int callPPJI(long param0, int param1, @Nullable long[] param2, int param3, long param4, long __functionAddress); - public static native int callPPPI(long param0, int param1, int param2, long param3, @Nullable int[] param4, long __functionAddress); - public static native int callPPPI(long param0, int param1, int param2, int param3, @Nullable int[] param4, @Nullable float[] param5, long __functionAddress); - public static native int callPPPI(long param0, int param1, int param2, int param3, @Nullable int[] param4, @Nullable int[] param5, long __functionAddress); - public static native int callPJPPI(long param0, long param1, long param2, @Nullable int[] param3, long __functionAddress); - public static native int callPJPPI(long param0, long param1, long param2, @Nullable long[] param3, long __functionAddress); - public static native int callPJPPI(long param0, long param1, @Nullable int[] param2, long param3, long __functionAddress); - public static native int callPJPPI(long param0, long param1, @Nullable int[] param2, @Nullable int[] param3, long __functionAddress); - public static native int callPJPPI(long param0, long param1, @Nullable int[] param2, @Nullable long[] param3, long __functionAddress); - public static native int callPPNPI(long param0, long param1, long param2, @Nullable long[] param3, long __functionAddress); - public static native int callPPPPI(long param0, long param1, long param2, @Nullable long[] param3, long __functionAddress); - public static native int callPPPPI(long param0, long param1, @Nullable int[] param2, long param3, long __functionAddress); - public static native int callPPPPI(long param0, long param1, @Nullable int[] param2, @Nullable int[] param3, long __functionAddress); - public static native int callPJPPI(long param0, long param1, int param2, long param3, @Nullable int[] param4, long __functionAddress); - public static native int callPPPPI(long param0, int param1, long param2, long param3, @Nullable long[] param4, long __functionAddress); - public static native int callPPPPI(long param0, int param1, long param2, @Nullable int[] param3, long param4, long __functionAddress); - public static native int callPPPPI(long param0, int param1, long param2, @Nullable long[] param3, long param4, long __functionAddress); - public static native int callPPPPI(long param0, int param1, long param2, @Nullable long[] param3, @Nullable long[] param4, long __functionAddress); - public static native int callPPPPI(long param0, int param1, @Nullable int[] param2, long param3, long param4, long __functionAddress); - public static native int callPPPPI(long param0, long param1, int param2, long param3, @Nullable int[] param4, long __functionAddress); - public static native int callPPPPI(long param0, long param1, int param2, @Nullable long[] param3, long param4, long __functionAddress); - public static native int callPPPPI(long param0, long param1, long param2, int param3, @Nullable int[] param4, long __functionAddress); - public static native int callPPPPI(long param0, @Nullable int[] param1, long param2, int param3, @Nullable int[] param4, long __functionAddress); - public static native int callPPPPI(long param0, @Nullable long[] param1, int param2, long param3, @Nullable int[] param4, long __functionAddress); - public static native int callPJPPI(long param0, long param1, int param2, int param3, long param4, @Nullable int[] param5, long __functionAddress); - public static native int callPJPPI(long param0, long param1, int param2, int param3, @Nullable int[] param4, @Nullable int[] param5, long __functionAddress); - public static native int callPPPPI(long param0, int param1, int param2, long param3, @Nullable int[] param4, long param5, long __functionAddress); - public static native int callPPPPI(long param0, int param1, int param2, long param3, @Nullable long[] param4, long param5, long __functionAddress); - public static native int callPPPPI(long param0, int param1, int param2, @Nullable long[] param3, @Nullable int[] param4, @Nullable int[] param5, long __functionAddress); - public static native int callPJPPI(long param0, long param1, int param2, int param3, int param4, long param5, @Nullable int[] param6, long __functionAddress); - public static native int callPPPPI(long param0, int param1, long param2, int param3, int param4, long param5, @Nullable int[] param6, long __functionAddress); - public static native int callPPPPI(int param0, @Nullable int[] param1, @Nullable long[] param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, int param10, int param11, int param12, int param13, int param14, int param15, int param16, int param17, int param18, int param19, int param20, @Nullable int[] param21, @Nullable long[] param22, long __functionAddress); - public static native int callPJPPPI(long param0, long param1, long param2, long param3, @Nullable long[] param4, long __functionAddress); - public static native int callPPJPPI(long param0, long param1, long param2, @Nullable int[] param3, long param4, long __functionAddress); - public static native int callPPPPPI(long param0, long param1, @Nullable int[] param2, @Nullable int[] param3, @Nullable int[] param4, long __functionAddress); - public static native int callPPPPPI(long param0, long param1, @Nullable int[] param2, @Nullable int[] param3, @Nullable long[] param4, long __functionAddress); - public static native int callPPPPPI(long param0, @Nullable int[] param1, @Nullable int[] param2, @Nullable int[] param3, long param4, long __functionAddress); - public static native int callPJPPPI(long param0, long param1, int param2, long param3, long param4, @Nullable long[] param5, long __functionAddress); - public static native int callPPPPPI(long param0, long param1, int param2, long param3, @Nullable int[] param4, long param5, long __functionAddress); - public static native int callPPPPPI(long param0, long param1, int param2, long param3, @Nullable long[] param4, long param5, long __functionAddress); - public static native int callPPPPPI(long param0, long param1, int param2, @Nullable int[] param3, @Nullable int[] param4, long param5, long __functionAddress); - public static native int callPPPPPI(long param0, long param1, long param2, @Nullable int[] param3, int param4, @Nullable int[] param5, long __functionAddress); - public static native int callPPPPPI(long param0, @Nullable int[] param1, @Nullable float[] param2, int param3, @Nullable int[] param4, @Nullable int[] param5, long __functionAddress); - public static native int callPPPPPI(int param0, int param1, @Nullable int[] param2, @Nullable int[] param3, @Nullable int[] param4, @Nullable int[] param5, long param6, long __functionAddress); - public static native int callPPPPPI(long param0, int param1, long param2, @Nullable long[] param3, int param4, long param5, long param6, long __functionAddress); - public static native int callPPPPPI(long param0, int param1, @Nullable long[] param2, int param3, long param4, long param5, long param6, long __functionAddress); - public static native int callPJPPJI(long param0, long param1, int param2, int param3, long param4, @Nullable int[] param5, long param6, int param7, long __functionAddress); - public static native int callPJPPJI(long param0, long param1, int param2, int param3, long param4, @Nullable long[] param5, long param6, int param7, long __functionAddress); - public static native int callPJJJJPI(long param0, long param1, long param2, long param3, long param4, @Nullable int[] param5, long __functionAddress); - public static native int callPPPPPPI(long param0, @Nullable int[] param1, @Nullable int[] param2, @Nullable int[] param3, @Nullable int[] param4, @Nullable int[] param5, long __functionAddress); - public static native int callPJJPPPI(long param0, long param1, long param2, int param3, long param4, long param5, @Nullable long[] param6, long __functionAddress); - public static native int callPPPPPPI(int param0, int param1, @Nullable int[] param2, @Nullable int[] param3, @Nullable int[] param4, @Nullable int[] param5, @Nullable int[] param6, long param7, long __functionAddress); - public static native int callPPPPPPPI(long param0, long param1, long param2, long param3, int param4, long param5, @Nullable int[] param6, long param7, long __functionAddress); - public static native int callPPPPPPPI(long param0, long param1, @Nullable float[] param2, long param3, long param4, int param5, long param6, long param7, long __functionAddress); - public static native int callPPPPPPPI(long param0, long param1, @Nullable int[] param2, long param3, long param4, int param5, long param6, long param7, long __functionAddress); - public static native int callPPPPPPPI(long param0, long param1, int param2, long param3, long param4, @Nullable double[] param5, int param6, long param7, long param8, long __functionAddress); - public static native int callPPPPPPPI(long param0, long param1, int param2, long param3, long param4, @Nullable float[] param5, int param6, long param7, long param8, long __functionAddress); - public static native int callPPPPPPPI(long param0, long param1, int param2, long param3, long param4, @Nullable int[] param5, int param6, long param7, long param8, long __functionAddress); - public static native int callPPPPPPPI(long param0, long param1, int param2, long param3, long param4, @Nullable short[] param5, int param6, long param7, long param8, long __functionAddress); - public static native int callPPJPPPPPI(long param0, @Nullable long[] param1, long param2, long param3, long param4, int param5, long param6, long param7, long param8, long __functionAddress); - public static native int callPPJPPPPPI(long param0, @Nullable long[] param1, long param2, long param3, long param4, int param5, long param6, @Nullable int[] param7, long param8, long __functionAddress); - public static native int callPPPPPPPPPI(long param0, long param1, long param2, long param3, long param4, long param5, int param6, @Nullable int[] param7, @Nullable int[] param8, long param9, long __functionAddress); - public static native int callPPPPPPPPPI(long param0, long param1, long param2, @Nullable float[] param3, long param4, long param5, int param6, @Nullable int[] param7, @Nullable int[] param8, long param9, long __functionAddress); - public static native int callPPPPPPPPPI(long param0, long param1, long param2, @Nullable int[] param3, long param4, long param5, int param6, @Nullable int[] param7, @Nullable int[] param8, long param9, long __functionAddress); - public static native int callPPPPPPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long param6, @Nullable double[] param7, int param8, long param9, long param10, long __functionAddress); - public static native int callPPPPPPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long param6, @Nullable float[] param7, int param8, long param9, long param10, long __functionAddress); - public static native int callPPPPPPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long param6, @Nullable int[] param7, int param8, long param9, long param10, long __functionAddress); - public static native int callPPPPPPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long param6, @Nullable short[] param7, int param8, long param9, long param10, long __functionAddress); - public static native int callPPPPPPPPPPI(long param0, long param1, long param2, long param3, long param4, long param5, long param6, int param7, @Nullable int[] param8, @Nullable int[] param9, long param10, long __functionAddress); - public static native int callPPPPPPPPPPI(long param0, long param1, @Nullable long[] param2, long param3, int param4, long param5, long param6, long param7, int param8, @Nullable int[] param9, @Nullable int[] param10, long param11, long __functionAddress); - public static native int callPPPPPPPPPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long param6, long param7, long param8, long param9, @Nullable double[] param10, int param11, long param12, long param13, long __functionAddress); - public static native int callPPPPPPPPPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long param6, long param7, long param8, long param9, @Nullable float[] param10, int param11, long param12, long param13, long __functionAddress); - public static native int callPPPPPPPPPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long param6, long param7, long param8, long param9, @Nullable int[] param10, int param11, long param12, long param13, long __functionAddress); - public static native int callPPPPPPPPPPPPI(long param0, long param1, int param2, long param3, long param4, long param5, long param6, long param7, long param8, long param9, @Nullable short[] param10, int param11, long param12, long param13, long __functionAddress); - public static native int callPPPPPPPPPPPPPPI(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, long param8, long param9, long param10, int param11, @Nullable int[] param12, @Nullable int[] param13, long param14, long __functionAddress); - public static native long callPP(@Nullable int[] param0, long __functionAddress); - public static native long callPPP(long param0, @Nullable int[] param1, long __functionAddress); - public static native long callPPP(int param0, long param1, @Nullable int[] param2, long __functionAddress); - public static native long callPPP(long param0, int param1, @Nullable int[] param2, long __functionAddress); - public static native long callPPP(int param0, int param1, int param2, @Nullable int[] param3, @Nullable int[] param4, long __functionAddress); - public static native long callPPP(long param0, int param1, int param2, int param3, @Nullable int[] param4, long __functionAddress); - public static native long callPPPP(long param0, long param1, @Nullable int[] param2, long __functionAddress); - public static native long callPPPP(long param0, @Nullable long[] param1, @Nullable int[] param2, long __functionAddress); - public static native long callPJPP(long param0, long param1, int param2, @Nullable int[] param3, long __functionAddress); - public static native long callPPPP(int param0, long param1, @Nullable long[] param2, @Nullable int[] param3, long __functionAddress); - public static native long callPPPP(long param0, int param1, @Nullable int[] param2, long param3, long __functionAddress); - public static native long callPPPP(long param0, long param1, int param2, @Nullable int[] param3, long __functionAddress); - public static native long callPPPP(long param0, long param1, int param2, int param3, @Nullable int[] param4, long __functionAddress); - public static native long callPJPP(long param0, long param1, int param2, int param3, int param4, @Nullable int[] param5, long __functionAddress); - public static native long callPPJPP(long param0, long param1, long param2, @Nullable int[] param3, long __functionAddress); - public static native long callPPNPP(long param0, long param1, long param2, @Nullable int[] param3, long __functionAddress); - public static native long callPPPPP(long param0, long param1, long param2, @Nullable int[] param3, long __functionAddress); - public static native long callPPPPP(long param0, long param1, @Nullable long[] param2, @Nullable int[] param3, long __functionAddress); - public static native long callPJPPP(long param0, long param1, int param2, long param3, @Nullable int[] param4, long __functionAddress); - public static native long callPJPPP(long param0, long param1, @Nullable int[] param2, int param3, @Nullable int[] param4, long __functionAddress); - public static native long callPPPPP(long param0, int param1, long param2, long param3, @Nullable int[] param4, long __functionAddress); - public static native long callPPPPP(long param0, long param1, int param2, long param3, @Nullable int[] param4, long __functionAddress); - public static native long callPPPPP(long param0, long param1, long param2, int param3, @Nullable int[] param4, long __functionAddress); - public static native long callPPPPP(long param0, @Nullable long[] param1, long param2, int param3, @Nullable int[] param4, long __functionAddress); - public static native long callPJPPP(long param0, long param1, int param2, int param3, long param4, @Nullable int[] param5, long __functionAddress); - public static native long callPJPPPP(long param0, long param1, long param2, long param3, @Nullable int[] param4, long __functionAddress); - public static native long callPJPPPP(long param0, long param1, long param2, @Nullable double[] param3, @Nullable int[] param4, long __functionAddress); - public static native long callPJPPPP(long param0, long param1, long param2, @Nullable float[] param3, @Nullable int[] param4, long __functionAddress); - public static native long callPJPPPP(long param0, long param1, long param2, @Nullable int[] param3, @Nullable int[] param4, long __functionAddress); - public static native long callPJPPPP(long param0, long param1, long param2, @Nullable short[] param3, @Nullable int[] param4, long __functionAddress); - public static native long callPPPPPP(long param0, int param1, long param2, long param3, long param4, @Nullable int[] param5, long __functionAddress); - public static native long callPPPPPP(long param0, long param1, @Nullable long[] param2, long param3, int param4, @Nullable int[] param5, long __functionAddress); - public static native long callPJJPPPP(long param0, long param1, long param2, long param3, long param4, @Nullable int[] param5, long __functionAddress); - public static native long callPJJPPPP(long param0, long param1, long param2, long param3, @Nullable double[] param4, @Nullable int[] param5, long __functionAddress); - public static native long callPJJPPPP(long param0, long param1, long param2, long param3, @Nullable float[] param4, @Nullable int[] param5, long __functionAddress); - public static native long callPJJPPPP(long param0, long param1, long param2, long param3, @Nullable int[] param4, @Nullable int[] param5, long __functionAddress); - public static native long callPJJPPPP(long param0, long param1, long param2, long param3, @Nullable short[] param4, @Nullable int[] param5, long __functionAddress); - public static native long callPJPPPPP(long param0, long param1, long param2, long param3, long param4, @Nullable int[] param5, long __functionAddress); - public static native long callPJPPPPP(long param0, long param1, long param2, long param3, @Nullable float[] param4, @Nullable int[] param5, long __functionAddress); - public static native long callPJPPPPP(long param0, long param1, long param2, long param3, @Nullable int[] param4, @Nullable int[] param5, long __functionAddress); - public static native long callPJPPPPP(long param0, long param1, long param2, long param3, @Nullable short[] param4, @Nullable int[] param5, long __functionAddress); - public static native long callPPJPPPP(long param0, @Nullable long[] param1, long param2, long param3, long param4, @Nullable int[] param5, long __functionAddress); - public static native long callPPJPPPP(long param0, @Nullable long[] param1, long param2, long param3, @Nullable double[] param4, @Nullable int[] param5, long __functionAddress); - public static native long callPPJPPPP(long param0, @Nullable long[] param1, long param2, long param3, @Nullable float[] param4, @Nullable int[] param5, long __functionAddress); - public static native long callPPJPPPP(long param0, @Nullable long[] param1, long param2, long param3, @Nullable int[] param4, @Nullable int[] param5, long __functionAddress); - public static native long callPPJPPPP(long param0, @Nullable long[] param1, long param2, long param3, @Nullable short[] param4, @Nullable int[] param5, long __functionAddress); - public static native long callPPPJPPP(long param0, long param1, long param2, long param3, long param4, @Nullable int[] param5, long __functionAddress); - public static native long callPPPPPPP(long param0, int param1, long param2, long param3, long param4, @Nullable int[] param5, @Nullable int[] param6, long __functionAddress); - public static native long callPPJPPPPP(long param0, @Nullable long[] param1, long param2, long param3, long param4, long param5, @Nullable int[] param6, long __functionAddress); - public static native long callPPJPPPPP(long param0, @Nullable long[] param1, long param2, long param3, long param4, @Nullable float[] param5, @Nullable int[] param6, long __functionAddress); - public static native long callPPJPPPPP(long param0, @Nullable long[] param1, long param2, long param3, long param4, @Nullable int[] param5, @Nullable int[] param6, long __functionAddress); - public static native long callPPJPPPPP(long param0, @Nullable long[] param1, long param2, long param3, long param4, @Nullable short[] param5, @Nullable int[] param6, long __functionAddress); - public static native long callPPPPPPPP(long param0, int param1, long param2, long param3, int param4, long param5, long param6, long param7, @Nullable int[] param8, long __functionAddress); - public static native long callPPPPPPPP(int param0, @Nullable int[] param1, @Nullable long[] param2, int param3, int param4, int param5, int param6, long param7, long param8, long param9, int param10, @Nullable int[] param11, @Nullable long[] param12, long __functionAddress); - public static native long callPJPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, @Nullable int[] param7, long __functionAddress); - public static native long callPJPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, @Nullable float[] param6, @Nullable int[] param7, long __functionAddress); - public static native long callPJPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, @Nullable int[] param6, @Nullable int[] param7, long __functionAddress); - public static native long callPJPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, @Nullable short[] param6, @Nullable int[] param7, long __functionAddress); - public static native long callPPJPPPPPP(long param0, long param1, int param2, long param3, long param4, long param5, int param6, long param7, long param8, @Nullable int[] param9, long __functionAddress); - public static native long callPJPPPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, long param8, @Nullable int[] param9, long __functionAddress); - public static native long callPJPPPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, @Nullable float[] param8, @Nullable int[] param9, long __functionAddress); - public static native long callPJPPPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, @Nullable int[] param8, @Nullable int[] param9, long __functionAddress); - public static native long callPJPPPPPPPPP(long param0, long param1, long param2, long param3, long param4, long param5, long param6, long param7, @Nullable short[] param8, @Nullable int[] param9, long __functionAddress); - public static native long callPPJPPPPPPPP(long param0, long param1, int param2, long param3, long param4, long param5, long param6, long param7, int param8, long param9, long param10, @Nullable int[] param11, long __functionAddress); - public static native void callPV(@Nullable double[] param0, long __functionAddress); - public static native void callPV(@Nullable float[] param0, long __functionAddress); - public static native void callPV(@Nullable int[] param0, long __functionAddress); - public static native void callPV(@Nullable short[] param0, long __functionAddress); - public static native void callPV(int param0, @Nullable double[] param1, long __functionAddress); - public static native void callPV(int param0, @Nullable float[] param1, long __functionAddress); - public static native void callPV(int param0, @Nullable int[] param1, long __functionAddress); - public static native void callPV(int param0, @Nullable long[] param1, long __functionAddress); - public static native void callPV(int param0, @Nullable short[] param1, long __functionAddress); - public static native void callPV(int param0, int param1, @Nullable double[] param2, long __functionAddress); - public static native void callPV(int param0, int param1, @Nullable float[] param2, long __functionAddress); - public static native void callPV(int param0, int param1, @Nullable int[] param2, long __functionAddress); - public static native void callPV(int param0, int param1, @Nullable long[] param2, long __functionAddress); - public static native void callPV(int param0, int param1, @Nullable short[] param2, long __functionAddress); - public static native void callPV(int param0, @Nullable int[] param1, int param2, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, @Nullable double[] param3, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, @Nullable float[] param3, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, @Nullable int[] param3, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, @Nullable long[] param3, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, @Nullable short[] param3, long __functionAddress); - public static native void callPV(int param0, int param1, boolean param2, @Nullable double[] param3, long __functionAddress); - public static native void callPV(int param0, int param1, boolean param2, @Nullable float[] param3, long __functionAddress); - public static native void callPV(int param0, int param1, boolean param2, @Nullable int[] param3, long __functionAddress); - public static native void callPV(int param0, int param1, @Nullable int[] param2, int param3, long __functionAddress); - public static native void callPV(int param0, @Nullable int[] param1, int param2, int param3, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, @Nullable double[] param4, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, @Nullable float[] param4, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, @Nullable int[] param4, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, @Nullable long[] param4, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, @Nullable short[] param4, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, boolean param3, @Nullable double[] param4, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, boolean param3, @Nullable float[] param4, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, @Nullable int[] param3, boolean param4, long __functionAddress); - public static native void callPV(int param0, int param1, @Nullable int[] param2, int param3, int param4, long __functionAddress); - public static native void callPV(int param0, boolean param1, int param2, int param3, @Nullable int[] param4, long __functionAddress); - public static native void callPV(int param0, double param1, double param2, int param3, int param4, @Nullable double[] param5, long __functionAddress); - public static native void callPV(int param0, float param1, float param2, int param3, int param4, @Nullable float[] param5, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, @Nullable double[] param5, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, @Nullable float[] param5, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, @Nullable int[] param5, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, @Nullable short[] param5, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, @Nullable int[] param4, boolean param5, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, boolean param3, int param4, @Nullable float[] param5, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, boolean param3, int param4, @Nullable int[] param5, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, boolean param3, int param4, @Nullable short[] param5, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, @Nullable double[] param6, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, @Nullable float[] param6, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, @Nullable int[] param6, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, @Nullable short[] param6, long __functionAddress); - public static native void callPV(int param0, int param1, @Nullable int[] param2, int param3, int param4, int param5, int param6, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, @Nullable double[] param7, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, @Nullable float[] param7, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, @Nullable int[] param7, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, @Nullable short[] param7, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, @Nullable double[] param8, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, @Nullable float[] param8, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, @Nullable int[] param8, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, @Nullable short[] param8, long __functionAddress); - public static native void callPV(int param0, double param1, double param2, int param3, int param4, double param5, double param6, int param7, int param8, @Nullable double[] param9, long __functionAddress); - public static native void callPV(int param0, float param1, float param2, int param3, int param4, float param5, float param6, int param7, int param8, @Nullable float[] param9, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, @Nullable double[] param9, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, @Nullable float[] param9, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, @Nullable int[] param9, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, @Nullable short[] param9, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, @Nullable double[] param10, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, @Nullable float[] param10, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, @Nullable int[] param10, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, @Nullable short[] param10, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, int param10, @Nullable double[] param11, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, int param10, @Nullable float[] param11, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, int param10, @Nullable int[] param11, long __functionAddress); - public static native void callPV(int param0, int param1, int param2, int param3, int param4, int param5, int param6, int param7, int param8, int param9, int param10, @Nullable short[] param11, long __functionAddress); - public static native void callPPV(long param0, @Nullable float[] param1, long __functionAddress); - public static native void callPPV(long param0, @Nullable int[] param1, long __functionAddress); - public static native void callPPV(@Nullable double[] param0, @Nullable double[] param1, long __functionAddress); - public static native void callPPV(@Nullable float[] param0, @Nullable float[] param1, long __functionAddress); - public static native void callPPV(@Nullable int[] param0, @Nullable int[] param1, long __functionAddress); - public static native void callPPV(@Nullable short[] param0, @Nullable short[] param1, long __functionAddress); - public static native void callPPV(int param0, long param1, @Nullable int[] param2, long __functionAddress); - public static native void callPPV(int param0, @Nullable int[] param1, @Nullable float[] param2, long __functionAddress); - public static native void callPPV(int param0, @Nullable int[] param1, @Nullable int[] param2, long __functionAddress); - public static native void callPPV(int param0, @Nullable int[] param1, @Nullable long[] param2, long __functionAddress); - public static native void callPPV(long param0, int param1, @Nullable float[] param2, long __functionAddress); - public static native void callPPV(long param0, int param1, @Nullable int[] param2, long __functionAddress); - public static native void callPPV(@Nullable int[] param0, int param1, @Nullable int[] param2, long __functionAddress); - public static native void callPPV(int param0, int param1, long param2, @Nullable int[] param3, long __functionAddress); - public static native void callPPV(int param0, int param1, @Nullable int[] param2, long param3, long __functionAddress); - public static native void callPPV(int param0, int param1, @Nullable int[] param2, @Nullable float[] param3, long __functionAddress); - public static native void callPPV(int param0, int param1, @Nullable int[] param2, @Nullable int[] param3, long __functionAddress); - public static native void callPPV(int param0, int param1, @Nullable int[] param2, @Nullable long[] param3, long __functionAddress); - public static native void callPPV(int param0, long param1, int param2, @Nullable int[] param3, long __functionAddress); - public static native void callPPV(int param0, long param1, @Nullable double[] param2, int param3, long __functionAddress); - public static native void callPPV(int param0, long param1, @Nullable float[] param2, int param3, long __functionAddress); - public static native void callPPV(int param0, long param1, @Nullable int[] param2, int param3, long __functionAddress); - public static native void callPPV(int param0, long param1, @Nullable long[] param2, int param3, long __functionAddress); - public static native void callPPV(int param0, long param1, @Nullable short[] param2, int param3, long __functionAddress); - public static native void callPPV(int param0, @Nullable int[] param1, @Nullable int[] param2, int param3, long __functionAddress); - public static native void callPPV(int param0, @Nullable long[] param1, @Nullable int[] param2, int param3, long __functionAddress); - public static native void callPPV(long param0, int param1, int param2, @Nullable int[] param3, long __functionAddress); - public static native void callPPV(int param0, int param1, int param2, long param3, @Nullable int[] param4, long __functionAddress); - public static native void callPPV(int param0, int param1, int param2, @Nullable int[] param3, long param4, long __functionAddress); - public static native void callPPV(int param0, int param1, int param2, @Nullable int[] param3, @Nullable int[] param4, long __functionAddress); - public static native void callPPV(int param0, int param1, long param2, @Nullable int[] param3, int param4, long __functionAddress); - public static native void callPPV(int param0, int param1, @Nullable int[] param2, int param3, @Nullable int[] param4, long __functionAddress); - public static native void callPPV(int param0, @Nullable int[] param1, int param2, long param3, int param4, long __functionAddress); - public static native void callPPV(int param0, @Nullable int[] param1, int param2, @Nullable int[] param3, int param4, long __functionAddress); - public static native void callPPV(int param0, @Nullable int[] param1, long param2, int param3, int param4, long __functionAddress); - public static native void callPPV(long param0, int param1, int param2, int param3, @Nullable int[] param4, long __functionAddress); - public static native void callPPV(int param0, int param1, int param2, int param3, @Nullable int[] param4, long param5, long __functionAddress); - public static native void callPPV(int param0, int param1, long param2, int param3, int param4, @Nullable float[] param5, long __functionAddress); - public static native void callPPV(int param0, int param1, long param2, int param3, int param4, @Nullable short[] param5, long __functionAddress); - public static native void callPPV(int param0, int param1, @Nullable int[] param2, long param3, int param4, int param5, long __functionAddress); - public static native void callPPV(int param0, int param1, int param2, long param3, int param4, int param5, @Nullable float[] param6, long __functionAddress); - public static native void callPPV(int param0, int param1, long param2, int param3, int param4, int param5, @Nullable float[] param6, long __functionAddress); - public static native void callPPV(int param0, int param1, int param2, int param3, long param4, int param5, int param6, @Nullable float[] param7, long __functionAddress); - public static native void callPPV(int param0, int param1, int param2, int param3, long param4, int param5, int param6, @Nullable short[] param7, long __functionAddress); - public static native void callPPV(int param0, int param1, long param2, int param3, int param4, int param5, int param6, @Nullable float[] param7, long __functionAddress); - public static native void callPPV(int param0, int param1, int param2, long param3, int param4, float param5, float param6, int param7, @Nullable float[] param8, long __functionAddress); - public static native void callPPV(int param0, int param1, long param2, int param3, int param4, int param5, int param6, int param7, @Nullable float[] param8, long __functionAddress); - public static native void callPJPV(long param0, long param1, @Nullable long[] param2, long __functionAddress); - public static native void callPPPV(long param0, long param1, @Nullable int[] param2, long __functionAddress); - public static native void callPPPV(long param0, @Nullable int[] param1, long param2, long __functionAddress); - public static native void callPJPV(long param0, long param1, int param2, @Nullable long[] param3, long __functionAddress); - public static native void callPPPV(int param0, long param1, long param2, @Nullable double[] param3, long __functionAddress); - public static native void callPPPV(int param0, long param1, long param2, @Nullable float[] param3, long __functionAddress); - public static native void callPPPV(int param0, long param1, long param2, @Nullable int[] param3, long __functionAddress); - public static native void callPPPV(int param0, long param1, long param2, @Nullable long[] param3, long __functionAddress); - public static native void callPPPV(int param0, long param1, long param2, @Nullable short[] param3, long __functionAddress); - public static native void callPPPV(long param0, int param1, @Nullable int[] param2, long param3, long __functionAddress); - public static native void callPPPV(long param0, int param1, @Nullable int[] param2, @Nullable long[] param3, long __functionAddress); - public static native void callPPPV(long param0, int param1, @Nullable long[] param2, long param3, long __functionAddress); - public static native void callPPPV(long param0, long param1, int param2, @Nullable int[] param3, long __functionAddress); - public static native void callPPPV(int param0, int param1, long param2, long param3, @Nullable double[] param4, long __functionAddress); - public static native void callPPPV(int param0, int param1, long param2, long param3, @Nullable float[] param4, long __functionAddress); - public static native void callPPPV(int param0, int param1, long param2, long param3, @Nullable int[] param4, long __functionAddress); - public static native void callPPPV(int param0, int param1, long param2, long param3, @Nullable short[] param4, long __functionAddress); - public static native void callPPPV(int param0, int param1, @Nullable int[] param2, long param3, @Nullable int[] param4, long __functionAddress); - public static native void callPPPV(int param0, int param1, @Nullable int[] param2, @Nullable int[] param3, long param4, long __functionAddress); - public static native void callPPPV(int param0, long param1, int param2, @Nullable int[] param3, long param4, long __functionAddress); - public static native void callPPPV(int param0, long param1, int param2, @Nullable int[] param3, @Nullable int[] param4, long __functionAddress); - public static native void callPPPV(int param0, @Nullable int[] param1, @Nullable int[] param2, int param3, @Nullable int[] param4, long __functionAddress); - public static native void callPPPV(long param0, int param1, int param2, @Nullable int[] param3, @Nullable int[] param4, long __functionAddress); - public static native void callPPPV(long param0, int param1, int param2, @Nullable long[] param3, @Nullable long[] param4, long __functionAddress); - public static native void callPJPV(long param0, long param1, int param2, int param3, int param4, @Nullable double[] param5, long __functionAddress); - public static native void callPJPV(long param0, long param1, int param2, int param3, int param4, @Nullable float[] param5, long __functionAddress); - public static native void callPJPV(long param0, long param1, int param2, int param3, int param4, @Nullable int[] param5, long __functionAddress); - public static native void callPJPV(long param0, long param1, int param2, int param3, int param4, @Nullable long[] param5, long __functionAddress); - public static native void callPJPV(long param0, long param1, int param2, int param3, int param4, @Nullable short[] param5, long __functionAddress); - public static native void callPPJV(long param0, int param1, @Nullable long[] param2, int param3, long param4, int param5, long __functionAddress); - public static native void callPPPV(int param0, int param1, int param2, @Nullable int[] param3, long param4, long param5, long __functionAddress); - public static native void callPPPV(int param0, int param1, int param2, @Nullable int[] param3, long param4, @Nullable int[] param5, long __functionAddress); - public static native void callPPPV(int param0, int param1, @Nullable int[] param2, int param3, @Nullable int[] param4, @Nullable int[] param5, long __functionAddress); - public static native void callPPPV(int param0, @Nullable int[] param1, int param2, long param3, int param4, @Nullable int[] param5, long __functionAddress); - public static native void callPPPV(int param0, int param1, long param2, long param3, int param4, int param5, @Nullable float[] param6, long __functionAddress); - public static native void callPPPV(int param0, int param1, long param2, long param3, int param4, int param5, @Nullable int[] param6, long __functionAddress); - public static native void callPPPV(int param0, int param1, long param2, long param3, int param4, int param5, @Nullable short[] param6, long __functionAddress); - public static native void callPPPV(long param0, int param1, long param2, int param3, int param4, int param5, @Nullable int[] param6, long __functionAddress); - public static native void callPPPV(int param0, int param1, int param2, int param3, @Nullable int[] param4, int param5, @Nullable int[] param6, @Nullable float[] param7, long __functionAddress); - public static native void callPPPV(int param0, int param1, int param2, int param3, @Nullable int[] param4, int param5, @Nullable int[] param6, @Nullable int[] param7, long __functionAddress); - public static native void callPPPV(long param0, int param1, int param2, int param3, int param4, int param5, @Nullable int[] param6, long param7, long __functionAddress); - public static native void callPJPPV(long param0, long param1, @Nullable int[] param2, long param3, long __functionAddress); - public static native void callPPPPV(long param0, long param1, @Nullable int[] param2, long param3, long __functionAddress); - public static native void callPJJPV(long param0, int param1, long param2, long param3, @Nullable long[] param4, long __functionAddress); - public static native void callPPPPV(long param0, int param1, long param2, @Nullable int[] param3, long param4, long __functionAddress); - public static native void callPPPPV(@Nullable long[] param0, @Nullable int[] param1, @Nullable int[] param2, @Nullable int[] param3, int param4, long __functionAddress); - public static native void callPPPPV(int param0, long param1, @Nullable int[] param2, @Nullable int[] param3, @Nullable int[] param4, int param5, long __functionAddress); - public static native void callPPPPV(long param0, int param1, int param2, @Nullable long[] param3, @Nullable long[] param4, @Nullable long[] param5, long __functionAddress); - public static native void callPJPPV(long param0, int param1, long param2, int param3, int param4, @Nullable int[] param5, @Nullable long[] param6, long __functionAddress); - public static native void callPPPPV(int param0, int param1, int param2, @Nullable int[] param3, @Nullable int[] param4, @Nullable int[] param5, long param6, long __functionAddress); - public static native void callPPPPV(int param0, int param1, long param2, @Nullable int[] param3, @Nullable int[] param4, @Nullable int[] param5, int param6, long __functionAddress); - public static native void callPJPPV(long param0, int param1, long param2, int param3, int param4, @Nullable long[] param5, int param6, @Nullable int[] param7, long __functionAddress); - public static native void callPJJJPV(long param0, long param1, long param2, long param3, @Nullable double[] param4, long __functionAddress); - public static native void callPJJJPV(long param0, long param1, long param2, long param3, @Nullable float[] param4, long __functionAddress); - public static native void callPJJJPV(long param0, long param1, long param2, long param3, @Nullable int[] param4, long __functionAddress); - public static native void callPJJJPV(long param0, long param1, long param2, long param3, @Nullable long[] param4, long __functionAddress); - public static native void callPJJJPV(long param0, long param1, long param2, long param3, @Nullable short[] param4, long __functionAddress); - public static native void callPPPPPV(long param0, int param1, long param2, @Nullable long[] param3, @Nullable int[] param4, long param5, long __functionAddress); - public static native void callPPPPPV(int param0, int param1, long param2, @Nullable int[] param3, @Nullable int[] param4, @Nullable int[] param5, @Nullable int[] param6, long __functionAddress); - public static native void callPPPPPV(long param0, int param1, int param2, @Nullable long[] param3, @Nullable long[] param4, @Nullable long[] param5, @Nullable long[] param6, long __functionAddress); - public static native void callPPPPPV(long param0, int param1, @Nullable long[] param2, int param3, int param4, int param5, long param6, int param7, long param8, int param9, long param10, long __functionAddress); - public static native void callPPPPPPPV(int param0, int param1, int param2, long param3, int param4, long param5, @Nullable int[] param6, @Nullable int[] param7, @Nullable int[] param8, @Nullable int[] param9, @Nullable long[] param10, long __functionAddress); - public static native boolean callPPZ(int param0, @Nullable int[] param1, long param2, long __functionAddress); - public static native boolean callPPPPZ(int param0, int param1, int param2, float param3, @Nullable float[] param4, @Nullable float[] param5, @Nullable float[] param6, @Nullable float[] param7, long __functionAddress); - -} +} diff --git a/modules/lwjgl/core/src/generated/java/org/lwjgl/system/jni/package-info.java b/modules/lwjgl/core/src/generated/java/org/lwjgl/system/jni/package-info.java index f5560b2d64..dbf5261ff7 100644 --- a/modules/lwjgl/core/src/generated/java/org/lwjgl/system/jni/package-info.java +++ b/modules/lwjgl/core/src/generated/java/org/lwjgl/system/jni/package-info.java @@ -3,8 +3,8 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - -/** Contains bindings to the Java Native Interface (JNI). */ + +/** Contains bindings to the Java Native Interface (JNI). */ @org.lwjgl.system.NonnullDefault package org.lwjgl.system.jni; - + diff --git a/modules/lwjgl/core/src/generated/java/org/lwjgl/system/libc/package-info.java b/modules/lwjgl/core/src/generated/java/org/lwjgl/system/libc/package-info.java index f5b4138f92..d19d3b0bc5 100644 --- a/modules/lwjgl/core/src/generated/java/org/lwjgl/system/libc/package-info.java +++ b/modules/lwjgl/core/src/generated/java/org/lwjgl/system/libc/package-info.java @@ -3,8 +3,8 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - -/** Contains bindings to standard C library APIs. */ + +/** Contains bindings to standard C library APIs. */ @org.lwjgl.system.NonnullDefault package org.lwjgl.system.libc; - + diff --git a/modules/lwjgl/core/src/generated/java/org/lwjgl/system/libffi/package-info.java b/modules/lwjgl/core/src/generated/java/org/lwjgl/system/libffi/package-info.java index ce88374f15..5e46cfeb94 100644 --- a/modules/lwjgl/core/src/generated/java/org/lwjgl/system/libffi/package-info.java +++ b/modules/lwjgl/core/src/generated/java/org/lwjgl/system/libffi/package-info.java @@ -3,11 +3,11 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to the libffi, a portable, high level programming interface to various calling * conventions. This allows a programmer to call any function specified by a call interface description at run-time. - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.system.libffi; - + diff --git a/modules/lwjgl/core/src/generated/java/org/lwjgl/system/linux/liburing/package-info.java b/modules/lwjgl/core/src/generated/java/org/lwjgl/system/linux/liburing/package-info.java index 3d5b8d8b8b..f3480d2703 100644 --- a/modules/lwjgl/core/src/generated/java/org/lwjgl/system/linux/liburing/package-info.java +++ b/modules/lwjgl/core/src/generated/java/org/lwjgl/system/linux/liburing/package-info.java @@ -3,8 +3,8 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - -/** Contains bindings to liburing. */ + +/** Contains bindings to liburing. */ @org.lwjgl.system.NonnullDefault package org.lwjgl.system.linux.liburing; - + diff --git a/modules/lwjgl/core/src/generated/java/org/lwjgl/system/linux/package-info.java b/modules/lwjgl/core/src/generated/java/org/lwjgl/system/linux/package-info.java index 0b733c2137..73cf63e4ba 100644 --- a/modules/lwjgl/core/src/generated/java/org/lwjgl/system/linux/package-info.java +++ b/modules/lwjgl/core/src/generated/java/org/lwjgl/system/linux/package-info.java @@ -3,8 +3,8 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - -/** Contains bindings to native APIs specific to the Linux operating system. */ + +/** Contains bindings to native APIs specific to the Linux operating system. */ @org.lwjgl.system.NonnullDefault package org.lwjgl.system.linux; - + diff --git a/modules/lwjgl/core/src/generated/java/org/lwjgl/system/macosx/package-info.java b/modules/lwjgl/core/src/generated/java/org/lwjgl/system/macosx/package-info.java index f2aca617e3..c15daf5a60 100644 --- a/modules/lwjgl/core/src/generated/java/org/lwjgl/system/macosx/package-info.java +++ b/modules/lwjgl/core/src/generated/java/org/lwjgl/system/macosx/package-info.java @@ -3,8 +3,8 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - -/** Contains bindings to native APIs specific to the macOS operating system. */ + +/** Contains bindings to native APIs specific to the macOS operating system. */ @org.lwjgl.system.NonnullDefault package org.lwjgl.system.macosx; - + diff --git a/modules/lwjgl/core/src/generated/java/org/lwjgl/system/windows/package-info.java b/modules/lwjgl/core/src/generated/java/org/lwjgl/system/windows/package-info.java index 8781609269..f6937c1342 100644 --- a/modules/lwjgl/core/src/generated/java/org/lwjgl/system/windows/package-info.java +++ b/modules/lwjgl/core/src/generated/java/org/lwjgl/system/windows/package-info.java @@ -3,8 +3,8 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - -/** Contains bindings to native APIs specific to the Windows operating system. */ + +/** Contains bindings to native APIs specific to the Windows operating system. */ @org.lwjgl.system.NonnullDefault package org.lwjgl.system.windows; - + diff --git a/modules/lwjgl/cuda/src/generated/java/org/lwjgl/cuda/package-info.java b/modules/lwjgl/cuda/src/generated/java/org/lwjgl/cuda/package-info.java index e06fa51200..54f7fad223 100644 --- a/modules/lwjgl/cuda/src/generated/java/org/lwjgl/cuda/package-info.java +++ b/modules/lwjgl/cuda/src/generated/java/org/lwjgl/cuda/package-info.java @@ -3,7 +3,7 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to CUDA. * @@ -11,7 +11,7 @@ * *

    Until these bindings are sufficiently tested, this API should be considered unstable. Also, bindings to more (and eventually, all) CUDA Toolkit * libraries will be added in the near future.

    - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.cuda; - + diff --git a/modules/lwjgl/egl/src/generated/java/org/lwjgl/egl/package-info.java b/modules/lwjgl/egl/src/generated/java/org/lwjgl/egl/package-info.java index 99a45bb2d0..1d00358eb8 100644 --- a/modules/lwjgl/egl/src/generated/java/org/lwjgl/egl/package-info.java +++ b/modules/lwjgl/egl/src/generated/java/org/lwjgl/egl/package-info.java @@ -3,7 +3,7 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to the EGL API, an interface between Khronos rendering APIs such as OpenGL ES or OpenVG and * the underlying native platform window system. It handles graphics context management, surface/buffer binding and rendering synchronization and enables @@ -11,7 +11,7 @@ * *

    The Khronos EGL registry is a useful online resource that contains the EGL specification, as well * as specifications of EGL extensions.

    - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.egl; - + diff --git a/modules/lwjgl/glfw/src/generated/java/org/lwjgl/glfw/package-info.java b/modules/lwjgl/glfw/src/generated/java/org/lwjgl/glfw/package-info.java index 8b1118f3b6..2330343963 100644 --- a/modules/lwjgl/glfw/src/generated/java/org/lwjgl/glfw/package-info.java +++ b/modules/lwjgl/glfw/src/generated/java/org/lwjgl/glfw/package-info.java @@ -3,7 +3,7 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to the GLFW library. * @@ -19,7 +19,7 @@ *

    Applications that cannot function with the above limitation may set {@link org.lwjgl.system.Configuration#GLFW_LIBRARY_NAME GLFW_LIBRARY_NAME} to the * value {@code "glfw_async"}. This will instruct LWJGL to load an alternative GLFW build that dispatches Cocoa calls to the main thread in blocking mode. * The other window toolkit must be initialized (e.g. with AWT's {@code Toolkit.getDefaultToolkit()}) before {@link org.lwjgl.glfw.GLFW#glfwInit Init} is called.

    - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.glfw; - + diff --git a/modules/lwjgl/jawt/src/generated/java/org/lwjgl/system/jawt/package-info.java b/modules/lwjgl/jawt/src/generated/java/org/lwjgl/system/jawt/package-info.java index e850cadffd..1b095c03d6 100644 --- a/modules/lwjgl/jawt/src/generated/java/org/lwjgl/system/jawt/package-info.java +++ b/modules/lwjgl/jawt/src/generated/java/org/lwjgl/system/jawt/package-info.java @@ -3,8 +3,8 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - -/** Contains bindings to the AWT native interface (jawt.h). */ + +/** Contains bindings to the AWT native interface (jawt.h). */ @org.lwjgl.system.NonnullDefault package org.lwjgl.system.jawt; - + diff --git a/modules/lwjgl/jemalloc/src/generated/java/org/lwjgl/system/jemalloc/package-info.java b/modules/lwjgl/jemalloc/src/generated/java/org/lwjgl/system/jemalloc/package-info.java index 33e5c2a11a..2b44d17ac9 100644 --- a/modules/lwjgl/jemalloc/src/generated/java/org/lwjgl/system/jemalloc/package-info.java +++ b/modules/lwjgl/jemalloc/src/generated/java/org/lwjgl/system/jemalloc/package-info.java @@ -3,7 +3,7 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to the jemalloc library. jemalloc is a general purpose malloc implementation that emphasizes * fragmentation avoidance and scalable concurrency support. @@ -27,7 +27,7 @@ * *

    Dynamic configuration (for enabled features) is also possible, using either the {@code MALLOC_CONF} environment variable or the * MALLCTL NAMESPACE and the {@code mallctl*} functions.

    - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.system.jemalloc; - + diff --git a/modules/lwjgl/libdivide/src/generated/java/org/lwjgl/util/libdivide/package-info.java b/modules/lwjgl/libdivide/src/generated/java/org/lwjgl/util/libdivide/package-info.java index f9b04ca2fa..24313a6099 100644 --- a/modules/lwjgl/libdivide/src/generated/java/org/lwjgl/util/libdivide/package-info.java +++ b/modules/lwjgl/libdivide/src/generated/java/org/lwjgl/util/libdivide/package-info.java @@ -3,8 +3,8 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - -/** Contains bindings to libdivide. */ + +/** Contains bindings to libdivide. */ @org.lwjgl.system.NonnullDefault package org.lwjgl.util.libdivide; - + diff --git a/modules/lwjgl/llvm/src/generated/java/org/lwjgl/llvm/LibLLVM.java b/modules/lwjgl/llvm/src/generated/java/org/lwjgl/llvm/LibLLVM.java index 6cc5e6e417..cd1b6b8871 100644 --- a/modules/lwjgl/llvm/src/generated/java/org/lwjgl/llvm/LibLLVM.java +++ b/modules/lwjgl/llvm/src/generated/java/org/lwjgl/llvm/LibLLVM.java @@ -4,10 +4,10 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.llvm; - -import org.lwjgl.system.*; - -/** Initializes the llvm shared library. */ + +import org.lwjgl.system.*; + +/** Initializes the llvm shared library. */ final class LibLLVM { static { @@ -22,4 +22,4 @@ static void initialize() { // intentionally empty to trigger static initializer } -} +} diff --git a/modules/lwjgl/llvm/src/generated/java/org/lwjgl/llvm/package-info.java b/modules/lwjgl/llvm/src/generated/java/org/lwjgl/llvm/package-info.java index 98e5efd96f..7563ba9811 100644 --- a/modules/lwjgl/llvm/src/generated/java/org/lwjgl/llvm/package-info.java +++ b/modules/lwjgl/llvm/src/generated/java/org/lwjgl/llvm/package-info.java @@ -3,7 +3,7 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to LLVM, a collection of modular and reusable compiler and toolchain technologies. * @@ -15,7 +15,7 @@ * *

    LWJGL does not currently include pre-built LLVM/Clang binaries. The user must download or build LLVM separately and use * {@link org.lwjgl.system.Configuration Configuration} to point LWJGL to the appropriate binaries.

    - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.llvm; - + diff --git a/modules/lwjgl/lmdb/src/generated/c/org_lwjgl_util_lmdb_LibLMDB.c b/modules/lwjgl/lmdb/src/generated/c/org_lwjgl_util_lmdb_LibLMDB.c index 99d85babcb..fac45476f1 100644 --- a/modules/lwjgl/lmdb/src/generated/c/org_lwjgl_util_lmdb_LibLMDB.c +++ b/modules/lwjgl/lmdb/src/generated/c/org_lwjgl_util_lmdb_LibLMDB.c @@ -3,6 +3,6 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ -#include "common_tools.h" +#include "common_tools.h" #define LWJGL_MALLOC_LIB org_lwjgl_util_lmdb_LibLMDB -#include "lwjgl_malloc.h" +#include "lwjgl_malloc.h" diff --git a/modules/lwjgl/lmdb/src/generated/java/org/lwjgl/util/lmdb/LibLMDB.java b/modules/lwjgl/lmdb/src/generated/java/org/lwjgl/util/lmdb/LibLMDB.java index 5aa399e5f1..c8ab7c7885 100644 --- a/modules/lwjgl/lmdb/src/generated/java/org/lwjgl/util/lmdb/LibLMDB.java +++ b/modules/lwjgl/lmdb/src/generated/java/org/lwjgl/util/lmdb/LibLMDB.java @@ -4,12 +4,12 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.util.lmdb; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; - -/** Initializes the lmdb shared library. */ + +import org.lwjgl.system.*; + +import static org.lwjgl.system.MemoryUtil.*; + +/** Initializes the lmdb shared library. */ final class LibLMDB { static { @@ -43,4 +43,4 @@ private static native void setupMalloc( long aligned_free ); -} +} diff --git a/modules/lwjgl/lmdb/src/generated/java/org/lwjgl/util/lmdb/package-info.java b/modules/lwjgl/lmdb/src/generated/java/org/lwjgl/util/lmdb/package-info.java index d2547fc8ca..ec17c937ac 100644 --- a/modules/lwjgl/lmdb/src/generated/java/org/lwjgl/util/lmdb/package-info.java +++ b/modules/lwjgl/lmdb/src/generated/java/org/lwjgl/util/lmdb/package-info.java @@ -3,7 +3,7 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Bindings to LMDB, the Symas Lightning Memory-Mapped Database. * @@ -88,7 +88,7 @@ * at all about the newest reader. So the only consequence of reading stale information here is that old pages might hang around a while longer before * being reclaimed. That's actually good anyway, because the longer we delay reclaiming old pages, the more likely it is that a string of contiguous pages * can be found after coalescing old pages from many old transactions together.

    - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.util.lmdb; - + diff --git a/modules/lwjgl/lz4/src/generated/c/org_lwjgl_util_lz4_LibLZ4.c b/modules/lwjgl/lz4/src/generated/c/org_lwjgl_util_lz4_LibLZ4.c index 18b8146131..0aa8f14672 100644 --- a/modules/lwjgl/lz4/src/generated/c/org_lwjgl_util_lz4_LibLZ4.c +++ b/modules/lwjgl/lz4/src/generated/c/org_lwjgl_util_lz4_LibLZ4.c @@ -3,6 +3,6 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ -#include "common_tools.h" +#include "common_tools.h" #define LWJGL_MALLOC_LIB org_lwjgl_util_lz4_LibLZ4 -#include "lwjgl_malloc.h" +#include "lwjgl_malloc.h" diff --git a/modules/lwjgl/lz4/src/generated/java/org/lwjgl/util/lz4/LibLZ4.java b/modules/lwjgl/lz4/src/generated/java/org/lwjgl/util/lz4/LibLZ4.java index cfd84b04b7..2b0a7f1d54 100644 --- a/modules/lwjgl/lz4/src/generated/java/org/lwjgl/util/lz4/LibLZ4.java +++ b/modules/lwjgl/lz4/src/generated/java/org/lwjgl/util/lz4/LibLZ4.java @@ -4,12 +4,12 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.util.lz4; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; - -/** Initializes the lz4 shared library. */ + +import org.lwjgl.system.*; + +import static org.lwjgl.system.MemoryUtil.*; + +/** Initializes the lz4 shared library. */ final class LibLZ4 { static { @@ -43,4 +43,4 @@ private static native void setupMalloc( long aligned_free ); -} +} diff --git a/modules/lwjgl/lz4/src/generated/java/org/lwjgl/util/lz4/package-info.java b/modules/lwjgl/lz4/src/generated/java/org/lwjgl/util/lz4/package-info.java index ffff7e85ae..340e36bed7 100644 --- a/modules/lwjgl/lz4/src/generated/java/org/lwjgl/util/lz4/package-info.java +++ b/modules/lwjgl/lz4/src/generated/java/org/lwjgl/util/lz4/package-info.java @@ -3,12 +3,12 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to LZ4, a lossless compression algorithm, providing compression speed > 500 MB/s per core, * scalable with multi-cores CPU. It features an extremely fast decoder, with speed in multiple GB/s per core, typically reaching RAM speed limits on * multi-core systems. - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.util.lz4; - + diff --git a/modules/lwjgl/meow/src/generated/java/org/lwjgl/util/meow/LibMeow.java b/modules/lwjgl/meow/src/generated/java/org/lwjgl/util/meow/LibMeow.java index dbb18cc788..707daf6381 100644 --- a/modules/lwjgl/meow/src/generated/java/org/lwjgl/util/meow/LibMeow.java +++ b/modules/lwjgl/meow/src/generated/java/org/lwjgl/util/meow/LibMeow.java @@ -4,10 +4,10 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.util.meow; - -import org.lwjgl.system.*; - -/** Initializes the meow shared library. */ + +import org.lwjgl.system.*; + +/** Initializes the meow shared library. */ final class LibMeow { static { @@ -22,4 +22,4 @@ static void initialize() { // intentionally empty to trigger static initializer } -} +} diff --git a/modules/lwjgl/meow/src/generated/java/org/lwjgl/util/meow/package-info.java b/modules/lwjgl/meow/src/generated/java/org/lwjgl/util/meow/package-info.java index 3813e59c15..5c11fcce39 100644 --- a/modules/lwjgl/meow/src/generated/java/org/lwjgl/util/meow/package-info.java +++ b/modules/lwjgl/meow/src/generated/java/org/lwjgl/util/meow/package-info.java @@ -3,8 +3,8 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - -/** Contains bindings to Meow hash, an extremely fast non-cryptographic hash. */ + +/** Contains bindings to Meow hash, an extremely fast non-cryptographic hash. */ @org.lwjgl.system.NonnullDefault package org.lwjgl.util.meow; - + diff --git a/modules/lwjgl/meshoptimizer/src/generated/java/org/lwjgl/util/meshoptimizer/LibMeshOptimizer.java b/modules/lwjgl/meshoptimizer/src/generated/java/org/lwjgl/util/meshoptimizer/LibMeshOptimizer.java index 3d1a67d58f..23ed8e214f 100644 --- a/modules/lwjgl/meshoptimizer/src/generated/java/org/lwjgl/util/meshoptimizer/LibMeshOptimizer.java +++ b/modules/lwjgl/meshoptimizer/src/generated/java/org/lwjgl/util/meshoptimizer/LibMeshOptimizer.java @@ -4,10 +4,10 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.util.meshoptimizer; - -import org.lwjgl.system.*; - -/** Initializes the meshoptimizer shared library. */ + +import org.lwjgl.system.*; + +/** Initializes the meshoptimizer shared library. */ final class LibMeshOptimizer { static { @@ -22,4 +22,4 @@ static void initialize() { // intentionally empty to trigger static initializer } -} +} diff --git a/modules/lwjgl/meshoptimizer/src/generated/java/org/lwjgl/util/meshoptimizer/package-info.java b/modules/lwjgl/meshoptimizer/src/generated/java/org/lwjgl/util/meshoptimizer/package-info.java index 30e2b92305..dbc4857587 100644 --- a/modules/lwjgl/meshoptimizer/src/generated/java/org/lwjgl/util/meshoptimizer/package-info.java +++ b/modules/lwjgl/meshoptimizer/src/generated/java/org/lwjgl/util/meshoptimizer/package-info.java @@ -3,8 +3,8 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - -/** Contains bindings to meshoptimizer, a library that provides algorithms to help optimize meshes. */ + +/** Contains bindings to meshoptimizer, a library that provides algorithms to help optimize meshes. */ @org.lwjgl.system.NonnullDefault package org.lwjgl.util.meshoptimizer; - + diff --git a/modules/lwjgl/nanovg/src/generated/c/org_lwjgl_nanovg_LibNanoVG.c b/modules/lwjgl/nanovg/src/generated/c/org_lwjgl_nanovg_LibNanoVG.c index 73d0d0cba9..022025b84d 100644 --- a/modules/lwjgl/nanovg/src/generated/c/org_lwjgl_nanovg_LibNanoVG.c +++ b/modules/lwjgl/nanovg/src/generated/c/org_lwjgl_nanovg_LibNanoVG.c @@ -3,6 +3,6 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ -#include "common_tools.h" +#include "common_tools.h" #define LWJGL_MALLOC_LIB org_lwjgl_nanovg_LibNanoVG -#include "lwjgl_malloc.h" +#include "lwjgl_malloc.h" diff --git a/modules/lwjgl/nanovg/src/generated/java/org/lwjgl/nanovg/LibNanoVG.java b/modules/lwjgl/nanovg/src/generated/java/org/lwjgl/nanovg/LibNanoVG.java index bb4e76f5de..5f7c0ee514 100644 --- a/modules/lwjgl/nanovg/src/generated/java/org/lwjgl/nanovg/LibNanoVG.java +++ b/modules/lwjgl/nanovg/src/generated/java/org/lwjgl/nanovg/LibNanoVG.java @@ -4,12 +4,12 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.nanovg; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; - -/** Initializes the nanovg shared library. */ + +import org.lwjgl.system.*; + +import static org.lwjgl.system.MemoryUtil.*; + +/** Initializes the nanovg shared library. */ final class LibNanoVG { static { @@ -43,4 +43,4 @@ private static native void setupMalloc( long aligned_free ); -} +} diff --git a/modules/lwjgl/nanovg/src/generated/java/org/lwjgl/nanovg/package-info.java b/modules/lwjgl/nanovg/src/generated/java/org/lwjgl/nanovg/package-info.java index 952fb9e5b1..28319dd034 100644 --- a/modules/lwjgl/nanovg/src/generated/java/org/lwjgl/nanovg/package-info.java +++ b/modules/lwjgl/nanovg/src/generated/java/org/lwjgl/nanovg/package-info.java @@ -3,11 +3,11 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to NanoVG, a small antialiased vector graphics rendering library for OpenGL. It has * lean API modeled after HTML5 canvas API. It is aimed to be a practical and fun toolset for building scalable user interfaces and visualizations. - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.nanovg; - + diff --git a/modules/lwjgl/nfd/src/generated/c/org_lwjgl_util_nfd_LibNFD.c b/modules/lwjgl/nfd/src/generated/c/org_lwjgl_util_nfd_LibNFD.c index d50806c9f0..47b15c613f 100644 --- a/modules/lwjgl/nfd/src/generated/c/org_lwjgl_util_nfd_LibNFD.c +++ b/modules/lwjgl/nfd/src/generated/c/org_lwjgl_util_nfd_LibNFD.c @@ -3,6 +3,6 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ -#include "common_tools.h" +#include "common_tools.h" #define LWJGL_MALLOC_LIB org_lwjgl_util_nfd_LibNFD -#include "lwjgl_malloc.h" +#include "lwjgl_malloc.h" diff --git a/modules/lwjgl/nfd/src/generated/java/org/lwjgl/util/nfd/LibNFD.java b/modules/lwjgl/nfd/src/generated/java/org/lwjgl/util/nfd/LibNFD.java index e2904a2155..08f727dda9 100644 --- a/modules/lwjgl/nfd/src/generated/java/org/lwjgl/util/nfd/LibNFD.java +++ b/modules/lwjgl/nfd/src/generated/java/org/lwjgl/util/nfd/LibNFD.java @@ -4,12 +4,12 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.util.nfd; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; - -/** Initializes the nfd shared library. */ + +import org.lwjgl.system.*; + +import static org.lwjgl.system.MemoryUtil.*; + +/** Initializes the nfd shared library. */ final class LibNFD { static { @@ -43,4 +43,4 @@ private static native void setupMalloc( long aligned_free ); -} +} diff --git a/modules/lwjgl/nfd/src/generated/java/org/lwjgl/util/nfd/package-info.java b/modules/lwjgl/nfd/src/generated/java/org/lwjgl/util/nfd/package-info.java index ec5de02097..9d35ce022c 100644 --- a/modules/lwjgl/nfd/src/generated/java/org/lwjgl/util/nfd/package-info.java +++ b/modules/lwjgl/nfd/src/generated/java/org/lwjgl/util/nfd/package-info.java @@ -3,11 +3,11 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to Native File Dialog Extended, a small C library that portably * invokes native file open, folder select and file save dialogs. Write dialog code once and have it pop up native dialogs on all supported platforms. - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.util.nfd; - + diff --git a/modules/lwjgl/nuklear/src/generated/java/org/lwjgl/nuklear/package-info.java b/modules/lwjgl/nuklear/src/generated/java/org/lwjgl/nuklear/package-info.java index 6c0d7f5eca..2022d62413 100644 --- a/modules/lwjgl/nuklear/src/generated/java/org/lwjgl/nuklear/package-info.java +++ b/modules/lwjgl/nuklear/src/generated/java/org/lwjgl/nuklear/package-info.java @@ -3,7 +3,7 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Bindings to the Nuklear library. * @@ -13,7 +13,7 @@ * instead of providing a layered library that tries to abstract over a number of platform and render backends it only focuses on the actual UI.

    * *

    Developed by Micha Mettke.

    - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.nuklear; - + diff --git a/modules/lwjgl/odbc/src/generated/java/org/lwjgl/odbc/package-info.java b/modules/lwjgl/odbc/src/generated/java/org/lwjgl/odbc/package-info.java index bb7ac4f0d6..5f52f1b356 100644 --- a/modules/lwjgl/odbc/src/generated/java/org/lwjgl/odbc/package-info.java +++ b/modules/lwjgl/odbc/src/generated/java/org/lwjgl/odbc/package-info.java @@ -3,7 +3,7 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to ODBC. * @@ -14,7 +14,7 @@ *

    The ODBC interface allows maximum interoperability — an application can access data in diverse DBMSs through a single interface. Moreover, that * application will be independent of any DBMS from which it accesses data. Users of the application can add software components called drivers, which * interface between an application and a specific DBMS.

    - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.odbc; - + diff --git a/modules/lwjgl/openal/src/generated/java/org/lwjgl/openal/package-info.java b/modules/lwjgl/openal/src/generated/java/org/lwjgl/openal/package-info.java index fcb1c3368e..1df6deb6f8 100644 --- a/modules/lwjgl/openal/src/generated/java/org/lwjgl/openal/package-info.java +++ b/modules/lwjgl/openal/src/generated/java/org/lwjgl/openal/package-info.java @@ -3,7 +3,7 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to the OpenAL cross-platform 3D audio API. * @@ -15,7 +15,7 @@ *

    In addition to standard OpenAL features, OpenAL Soft supports HRTF, * Ambisonics and 3D7.1. * Documentation for these features is available in the OpenAL Soft repository.

    - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.openal; - + diff --git a/modules/lwjgl/opencl/src/generated/java/org/lwjgl/opencl/package-info.java b/modules/lwjgl/opencl/src/generated/java/org/lwjgl/opencl/package-info.java index 73ecddf79c..85960d25f8 100644 --- a/modules/lwjgl/opencl/src/generated/java/org/lwjgl/opencl/package-info.java +++ b/modules/lwjgl/opencl/src/generated/java/org/lwjgl/opencl/package-info.java @@ -3,13 +3,13 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to the OpenCL cross-platform parallel programming API. * *

    The Khronos OpenCL registry is a useful online resource that contains the OpenCL specification, as * well as the specifications of OpenCL extensions.

    - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.opencl; - + diff --git a/modules/lwjgl/opengl/src/generated/java/org/lwjgl/opengl/package-info.java b/modules/lwjgl/opengl/src/generated/java/org/lwjgl/opengl/package-info.java index 164a2eafcd..02b93f20d6 100644 --- a/modules/lwjgl/opengl/src/generated/java/org/lwjgl/opengl/package-info.java +++ b/modules/lwjgl/opengl/src/generated/java/org/lwjgl/opengl/package-info.java @@ -3,7 +3,7 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to the OpenGL cross-platform 2D and 3D rendering API. * @@ -35,7 +35,7 @@ *
  • Should create a 3.3 Compatibility Profile context. A Core Profile context would have extra validation overhead.
  • *
  • Should use the Core Profile hierarchy to avoid deprecated symbols. Auto-complete lists in an IDE will also be cleaner.
  • * - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.opengl; - + diff --git a/modules/lwjgl/opengles/src/generated/java/org/lwjgl/opengles/package-info.java b/modules/lwjgl/opengles/src/generated/java/org/lwjgl/opengles/package-info.java index cce481ab2b..e5a64fc3cc 100644 --- a/modules/lwjgl/opengles/src/generated/java/org/lwjgl/opengles/package-info.java +++ b/modules/lwjgl/opengles/src/generated/java/org/lwjgl/opengles/package-info.java @@ -3,7 +3,7 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to the OpenGL ES, a royalty-free, cross-platform API for full-function 2D and 3D * graphics on embedded systems - including consoles, phones, appliances and vehicles. It consists of well-defined subsets of desktop OpenGL, creating a @@ -11,7 +11,7 @@ * *

    The Khronos OpenGL ES registry is a useful online resource that contains the OpenGL ES and OpenGL * ES Shading Language specifications, as well as specifications of OpenGL ES extensions. The OpenGL ES Reference Pages is another convenient source of documentation.

    - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.opengles; - + diff --git a/modules/lwjgl/openvr/src/generated/java/org/lwjgl/openvr/package-info.java b/modules/lwjgl/openvr/src/generated/java/org/lwjgl/openvr/package-info.java index 1276230b67..3d57218878 100644 --- a/modules/lwjgl/openvr/src/generated/java/org/lwjgl/openvr/package-info.java +++ b/modules/lwjgl/openvr/src/generated/java/org/lwjgl/openvr/package-info.java @@ -3,13 +3,13 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to OpenVR. * *

    OpenVR is an API and runtime that allows access to VR hardware from multiple vendors without requiring that applications have specific knowledge of the * hardware they are targeting.

    - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.openvr; - + diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/ALMALENCEDigitalLensControl.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/ALMALENCEDigitalLensControl.java index d5f3d6ab54..575d046fee 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/ALMALENCEDigitalLensControl.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/ALMALENCEDigitalLensControl.java @@ -4,12 +4,12 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; + /** * The XR_ALMALENCE_digital_lens_control extension. * @@ -35,18 +35,18 @@ * * *

    This extension enables the handling of the Digital Lens for VR API Layer by calling {@link #xrSetDigitalLensControlALMALENCE SetDigitalLensControlALMALENCE}.

    - */ -public class ALMALENCEDigitalLensControl { - - /** The extension specification version. */ - public static final int XR_ALMALENCE_digital_lens_control_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_ALMALENCE_DIGITAL_LENS_CONTROL_EXTENSION_NAME = "XR_ALMALENCE_digital_lens_control"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_DIGITAL_LENS_CONTROL_ALMALENCE = 1000196000; - + */ +public class ALMALENCEDigitalLensControl { + + /** The extension specification version. */ + public static final int XR_ALMALENCE_digital_lens_control_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_ALMALENCE_DIGITAL_LENS_CONTROL_EXTENSION_NAME = "XR_ALMALENCE_digital_lens_control"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_DIGITAL_LENS_CONTROL_ALMALENCE = 1000196000; + /** * XrDigitalLensControlFlagBitsALMALENCE - XrDigitalLensControlFlagBitsALMALENCE * @@ -55,24 +55,24 @@ public class ALMALENCEDigitalLensControl { *
      *
    • {@link #XR_DIGITAL_LENS_CONTROL_PROCESSING_DISABLE_BIT_ALMALENCE DIGITAL_LENS_CONTROL_PROCESSING_DISABLE_BIT_ALMALENCE} — disables Digital Lens processing of render textures
    • *
    - */ - public static final int XR_DIGITAL_LENS_CONTROL_PROCESSING_DISABLE_BIT_ALMALENCE = 0x1; + */ + public static final int XR_DIGITAL_LENS_CONTROL_PROCESSING_DISABLE_BIT_ALMALENCE = 0x1; protected ALMALENCEDigitalLensControl() { throw new UnsupportedOperationException(); - } - - // --- [ xrSetDigitalLensControlALMALENCE ] --- - - /** Unsafe version of: {@link #xrSetDigitalLensControlALMALENCE SetDigitalLensControlALMALENCE} */ - public static int nxrSetDigitalLensControlALMALENCE(XrSession session, long digitalLensControl) { - long __functionAddress = session.getCapabilities().xrSetDigitalLensControlALMALENCE; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(session.address(), digitalLensControl, __functionAddress); - } + } + // --- [ xrSetDigitalLensControlALMALENCE ] --- + + /** Unsafe version of: {@link #xrSetDigitalLensControlALMALENCE SetDigitalLensControlALMALENCE} */ + public static int nxrSetDigitalLensControlALMALENCE(XrSession session, long digitalLensControl) { + long __functionAddress = session.getCapabilities().xrSetDigitalLensControlALMALENCE; + if (CHECKS) { + check(__functionAddress); + } + return callPPI(session.address(), digitalLensControl, __functionAddress); + } + /** * Sets DLVR status. * @@ -120,10 +120,10 @@ public static int nxrSetDigitalLensControlALMALENCE(XrSession session, long digi * * @param session a handle to a running {@code XrSession}. * @param digitalLensControl the {@link XrDigitalLensControlALMALENCE} that contains desired characteristics for the Digital Lens - */ - @NativeType("XrResult") - public static int xrSetDigitalLensControlALMALENCE(XrSession session, @NativeType("XrDigitalLensControlALMALENCE const *") XrDigitalLensControlALMALENCE digitalLensControl) { - return nxrSetDigitalLensControlALMALENCE(session, digitalLensControl.address()); - } + */ + @NativeType("XrResult") + public static int xrSetDigitalLensControlALMALENCE(XrSession session, @NativeType("XrDigitalLensControlALMALENCE const *") XrDigitalLensControlALMALENCE digitalLensControl) { + return nxrSetDigitalLensControlALMALENCE(session, digitalLensControl.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/BDControllerInteraction.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/BDControllerInteraction.java index 6516c6622b..440343939d 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/BDControllerInteraction.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/BDControllerInteraction.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_BD_controller_interaction extension. * *

    This extension defines the interaction profile for PICO Neo3 and PICO 4 Controllers.

    - */ -public final class BDControllerInteraction { - - /** The extension specification version. */ - public static final int XR_BD_controller_interaction_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_BD_CONTROLLER_INTERACTION_EXTENSION_NAME = "XR_BD_controller_interaction"; + */ +public final class BDControllerInteraction { + + /** The extension specification version. */ + public static final int XR_BD_controller_interaction_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_BD_CONTROLLER_INTERACTION_EXTENSION_NAME = "XR_BD_controller_interaction"; - private BDControllerInteraction() {} + private BDControllerInteraction() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EPICViewConfigurationFov.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EPICViewConfigurationFov.java index 7869090bec..a7d5c7fff4 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EPICViewConfigurationFov.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EPICViewConfigurationFov.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_EPIC_view_configuration_fov extension. * @@ -13,18 +13,18 @@ *

    The field-of-view given here should not be used for rendering, see {@link XR10#xrLocateViews LocateViews} to retrieve the field-of-view for rendering.

    * *

    For views with {@code fovMutable} set to {@code XR_TRUE} the maximum field-of-view should specify the upper limit that runtime can support. If the view has {@code fovMutable} set to {@code XR_FALSE} the runtime must set {@code maxMutableFov} to be the same as {@code recommendedFov}.

    - */ -public final class EPICViewConfigurationFov { - - /** The extension specification version. */ - public static final int XR_EPIC_view_configuration_fov_SPEC_VERSION = 2; - - /** The extension name. */ - public static final String XR_EPIC_VIEW_CONFIGURATION_FOV_EXTENSION_NAME = "XR_EPIC_view_configuration_fov"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC = 1000059000; + */ +public final class EPICViewConfigurationFov { + + /** The extension specification version. */ + public static final int XR_EPIC_view_configuration_fov_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_EPIC_VIEW_CONFIGURATION_FOV_EXTENSION_NAME = "XR_EPIC_view_configuration_fov"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC = 1000059000; - private EPICViewConfigurationFov() {} + private EPICViewConfigurationFov() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTActiveActionSetPriority.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTActiveActionSetPriority.java index 38dd7fbb5b..1a7505a8af 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTActiveActionSetPriority.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTActiveActionSetPriority.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_EXT_active_action_set_priority extension. * @@ -13,18 +13,18 @@ *

    Given that most runtimes do not actually require this number to be immutable this extension adds the ability to provide a different priority number for every {@link XrActiveActionSet} provided to {@link XR10#xrSyncActions SyncActions}.

    * *

    When updating the action state with {@link XR10#xrSyncActions SyncActions}, the application can provide a pointer to an {@link XrActiveActionSetPrioritiesEXT} structure in the {@code next} chain of {@link XrActionsSyncInfo}. This structure contains an array of {@link XrActiveActionSetPriorityEXT} structures mapping active action sets to their priority numbers.

    - */ -public final class EXTActiveActionSetPriority { - - /** The extension specification version. */ - public static final int XR_EXT_active_action_set_priority_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_EXT_ACTIVE_ACTION_SET_PRIORITY_EXTENSION_NAME = "XR_EXT_active_action_set_priority"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT = 1000373000; + */ +public final class EXTActiveActionSetPriority { + + /** The extension specification version. */ + public static final int XR_EXT_active_action_set_priority_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_EXT_ACTIVE_ACTION_SET_PRIORITY_EXTENSION_NAME = "XR_EXT_active_action_set_priority"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT = 1000373000; - private EXTActiveActionSetPriority() {} + private EXTActiveActionSetPriority() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTConformanceAutomation.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTConformanceAutomation.java index c919ceab85..53ee50de57 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTConformanceAutomation.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTConformanceAutomation.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -import org.lwjgl.system.*; -import org.lwjgl.system.libffi.*; - -import static org.lwjgl.system.APIUtil.*; -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.libffi.LibFFI.*; -import static org.lwjgl.system.MemoryStack.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; +import org.lwjgl.system.libffi.*; + +import static org.lwjgl.system.APIUtil.*; +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.libffi.LibFFI.*; +import static org.lwjgl.system.MemoryStack.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_EXT_conformance_automation extension. * @@ -35,21 +35,21 @@ *

    This extension is not intended for use by non-conformance-test applications. A runtime may require a runtime-specified configuration such as a "developer mode" to be enabled before reporting support for this extension or providing a non-stub implementation of it.

    * *

    Do not use this functionality in a non-conformance-test application!

    - */ -public class EXTConformanceAutomation { - - /** The extension specification version. */ - public static final int XR_EXT_conformance_automation_SPEC_VERSION = 3; - - /** The extension name. */ - public static final String XR_EXT_CONFORMANCE_AUTOMATION_EXTENSION_NAME = "XR_EXT_conformance_automation"; + */ +public class EXTConformanceAutomation { + + /** The extension specification version. */ + public static final int XR_EXT_conformance_automation_SPEC_VERSION = 3; + + /** The extension name. */ + public static final String XR_EXT_CONFORMANCE_AUTOMATION_EXTENSION_NAME = "XR_EXT_conformance_automation"; protected EXTConformanceAutomation() { throw new UnsupportedOperationException(); - } - - // --- [ xrSetInputDeviceActiveEXT ] --- + } + // --- [ xrSetInputDeviceActiveEXT ] --- + /** * Sets the active state of the input device. * @@ -100,18 +100,18 @@ protected EXTConformanceAutomation() { * @param interactionProfile the path representing the interaction profile of the input device (e.g. pathname:/interaction_profiles/khr/simple_controller). * @param topLevelPath the path representing the input device (e.g. pathname:/user/hand/left). * @param isActive the requested activation state of the input device. - */ - @NativeType("XrResult") - public static int xrSetInputDeviceActiveEXT(XrSession session, @NativeType("XrPath") long interactionProfile, @NativeType("XrPath") long topLevelPath, @NativeType("XrBool32") boolean isActive) { - long __functionAddress = session.getCapabilities().xrSetInputDeviceActiveEXT; - if (CHECKS) { - check(__functionAddress); - } - return callPJJI(session.address(), interactionProfile, topLevelPath, isActive ? 1 : 0, __functionAddress); - } - - // --- [ xrSetInputDeviceStateBoolEXT ] --- + */ + @NativeType("XrResult") + public static int xrSetInputDeviceActiveEXT(XrSession session, @NativeType("XrPath") long interactionProfile, @NativeType("XrPath") long topLevelPath, @NativeType("XrBool32") boolean isActive) { + long __functionAddress = session.getCapabilities().xrSetInputDeviceActiveEXT; + if (CHECKS) { + check(__functionAddress); + } + return callPJJI(session.address(), interactionProfile, topLevelPath, isActive ? 1 : 0, __functionAddress); + } + // --- [ xrSetInputDeviceStateBoolEXT ] --- + /** * Sets the state of a boolean input source on the input device. * @@ -163,18 +163,18 @@ public static int xrSetInputDeviceActiveEXT(XrSession session, @NativeType("XrPa * @param topLevelPath the path representing the input device (e.g. pathname:/user/hand/left). * @param inputSourcePath the full path of the input component for which we wish to set the state for (e.g. pathname:/user/hand/left/input/select/click). * @param state the requested boolean state of the input device. - */ - @NativeType("XrResult") - public static int xrSetInputDeviceStateBoolEXT(XrSession session, @NativeType("XrPath") long topLevelPath, @NativeType("XrPath") long inputSourcePath, @NativeType("XrBool32") boolean state) { - long __functionAddress = session.getCapabilities().xrSetInputDeviceStateBoolEXT; - if (CHECKS) { - check(__functionAddress); - } - return callPJJI(session.address(), topLevelPath, inputSourcePath, state ? 1 : 0, __functionAddress); - } - - // --- [ xrSetInputDeviceStateFloatEXT ] --- + */ + @NativeType("XrResult") + public static int xrSetInputDeviceStateBoolEXT(XrSession session, @NativeType("XrPath") long topLevelPath, @NativeType("XrPath") long inputSourcePath, @NativeType("XrBool32") boolean state) { + long __functionAddress = session.getCapabilities().xrSetInputDeviceStateBoolEXT; + if (CHECKS) { + check(__functionAddress); + } + return callPJJI(session.address(), topLevelPath, inputSourcePath, state ? 1 : 0, __functionAddress); + } + // --- [ xrSetInputDeviceStateFloatEXT ] --- + /** * Sets the state of a float input source on the input device. * @@ -226,29 +226,29 @@ public static int xrSetInputDeviceStateBoolEXT(XrSession session, @NativeType("X * @param topLevelPath the path representing the input device (e.g. pathname:/user/hand/left). * @param inputSourcePath the full path of the input component for which we wish to set the state for (e.g. pathname:/user/hand/left/input/trigger/value). * @param state the requested float state of the input device. - */ - @NativeType("XrResult") - public static int xrSetInputDeviceStateFloatEXT(XrSession session, @NativeType("XrPath") long topLevelPath, @NativeType("XrPath") long inputSourcePath, float state) { - long __functionAddress = session.getCapabilities().xrSetInputDeviceStateFloatEXT; - if (CHECKS) { - check(__functionAddress); - } - return callPJJI(session.address(), topLevelPath, inputSourcePath, state, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrSetInputDeviceStateFloatEXT(XrSession session, @NativeType("XrPath") long topLevelPath, @NativeType("XrPath") long inputSourcePath, float state) { + long __functionAddress = session.getCapabilities().xrSetInputDeviceStateFloatEXT; + if (CHECKS) { + check(__functionAddress); + } + return callPJJI(session.address(), topLevelPath, inputSourcePath, state, __functionAddress); + } - // --- [ xrSetInputDeviceStateVector2fEXT ] --- + // --- [ xrSetInputDeviceStateVector2fEXT ] --- private static final FFICIF xrSetInputDeviceStateVector2fEXTCIF = apiCreateCIF( apiStdcall(), ffi_type_uint32, ffi_type_pointer, ffi_type_uint64, ffi_type_uint64, apiCreateStruct(ffi_type_float, ffi_type_float) - ); - - /** Unsafe version of: {@link #xrSetInputDeviceStateVector2fEXT SetInputDeviceStateVector2fEXT} */ - public static int nxrSetInputDeviceStateVector2fEXT(XrSession session, long topLevelPath, long inputSourcePath, long state) { - long __functionAddress = session.getCapabilities().xrSetInputDeviceStateVector2fEXT; - if (CHECKS) { - check(__functionAddress); - } + ); + + /** Unsafe version of: {@link #xrSetInputDeviceStateVector2fEXT SetInputDeviceStateVector2fEXT} */ + public static int nxrSetInputDeviceStateVector2fEXT(XrSession session, long topLevelPath, long inputSourcePath, long state) { + long __functionAddress = session.getCapabilities().xrSetInputDeviceStateVector2fEXT; + if (CHECKS) { + check(__functionAddress); + } MemoryStack stack = stackGet(); int stackPointer = stack.getPointer(); try { long __result = stack.nint(0); @@ -263,9 +263,9 @@ public static int nxrSetInputDeviceStateVector2fEXT(XrSession session, long topL return memGetInt(__result); } finally { stack.setPointer(stackPointer); - } - } - + } + } + /** * Sets the state of a 2D vector input source on the input device. * @@ -321,25 +321,25 @@ public static int nxrSetInputDeviceStateVector2fEXT(XrSession session, long topL * @param topLevelPath the path representing the input device (e.g. pathname:/user/hand/left). * @param inputSourcePath the full path of the input component for which we wish to set the state for (e.g. pathname:/user/hand/left/input/thumbstick). * @param state the requested two-dimensional state of the input device. - */ - @NativeType("XrResult") - public static int xrSetInputDeviceStateVector2fEXT(XrSession session, @NativeType("XrPath") long topLevelPath, @NativeType("XrPath") long inputSourcePath, XrVector2f state) { - return nxrSetInputDeviceStateVector2fEXT(session, topLevelPath, inputSourcePath, state.address()); - } + */ + @NativeType("XrResult") + public static int xrSetInputDeviceStateVector2fEXT(XrSession session, @NativeType("XrPath") long topLevelPath, @NativeType("XrPath") long inputSourcePath, XrVector2f state) { + return nxrSetInputDeviceStateVector2fEXT(session, topLevelPath, inputSourcePath, state.address()); + } - // --- [ xrSetInputDeviceLocationEXT ] --- + // --- [ xrSetInputDeviceLocationEXT ] --- private static final FFICIF xrSetInputDeviceLocationEXTCIF = apiCreateCIF( apiStdcall(), ffi_type_uint32, ffi_type_pointer, ffi_type_uint64, ffi_type_uint64, ffi_type_pointer, apiCreateStruct(apiCreateStruct(ffi_type_float, ffi_type_float, ffi_type_float, ffi_type_float), apiCreateStruct(ffi_type_float, ffi_type_float, ffi_type_float)) - ); - - /** Unsafe version of: {@link #xrSetInputDeviceLocationEXT SetInputDeviceLocationEXT} */ - public static int nxrSetInputDeviceLocationEXT(XrSession session, long topLevelPath, long inputSourcePath, XrSpace space, long pose) { - long __functionAddress = session.getCapabilities().xrSetInputDeviceLocationEXT; - if (CHECKS) { - check(__functionAddress); - } + ); + + /** Unsafe version of: {@link #xrSetInputDeviceLocationEXT SetInputDeviceLocationEXT} */ + public static int nxrSetInputDeviceLocationEXT(XrSession session, long topLevelPath, long inputSourcePath, XrSpace space, long pose) { + long __functionAddress = session.getCapabilities().xrSetInputDeviceLocationEXT; + if (CHECKS) { + check(__functionAddress); + } MemoryStack stack = stackGet(); int stackPointer = stack.getPointer(); try { long __result = stack.nint(0); @@ -355,9 +355,9 @@ public static int nxrSetInputDeviceLocationEXT(XrSession session, long topLevelP return memGetInt(__result); } finally { stack.setPointer(stackPointer); - } - } - + } + } + /** * Sets the effective location of a pose input source on the input device. * @@ -417,10 +417,10 @@ public static int nxrSetInputDeviceLocationEXT(XrSession session, long topLevelP * @param topLevelPath the path representing the input device (e.g. pathname:/user/hand/left). * @param inputSourcePath the full path of the input component for which we wish to set the pose for (e.g. pathname:/user/hand/left/input/grip/pose). * @param pose the requested pose state of the input device. - */ - @NativeType("XrResult") - public static int xrSetInputDeviceLocationEXT(XrSession session, @NativeType("XrPath") long topLevelPath, @NativeType("XrPath") long inputSourcePath, XrSpace space, XrPosef pose) { - return nxrSetInputDeviceLocationEXT(session, topLevelPath, inputSourcePath, space, pose.address()); - } + */ + @NativeType("XrResult") + public static int xrSetInputDeviceLocationEXT(XrSession session, @NativeType("XrPath") long topLevelPath, @NativeType("XrPath") long inputSourcePath, XrSpace space, XrPosef pose) { + return nxrSetInputDeviceLocationEXT(session, topLevelPath, inputSourcePath, space, pose.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTDebugUtils.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTDebugUtils.java index eff131529a..cf31aca15b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTDebugUtils.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTDebugUtils.java @@ -4,15 +4,15 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import org.lwjgl.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_EXT_debug_utils extension. * @@ -24,15 +24,15 @@ *
  • The ability to create a debug messenger which will pass along debug messages to an application supplied callback.
  • *
  • The ability to identify specific OpenXR handles using a name to improve tracking.
  • * - */ -public class EXTDebugUtils { - - /** The extension specification version. */ - public static final int XR_EXT_debug_utils_SPEC_VERSION = 4; - - /** The extension name. */ - public static final String XR_EXT_DEBUG_UTILS_EXTENSION_NAME = "XR_EXT_debug_utils"; - + */ +public class EXTDebugUtils { + + /** The extension specification version. */ + public static final int XR_EXT_debug_utils_SPEC_VERSION = 4; + + /** The extension name. */ + public static final String XR_EXT_DEBUG_UTILS_EXTENSION_NAME = "XR_EXT_debug_utils"; + /** * Extends {@code XrStructureType}. * @@ -44,16 +44,16 @@ public class EXTDebugUtils { *
  • {@link #XR_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT}
  • *
  • {@link #XR_TYPE_DEBUG_UTILS_LABEL_EXT TYPE_DEBUG_UTILS_LABEL_EXT}
  • * - */ + */ public static final int - XR_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT = 1000019000, - XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT = 1000019001, - XR_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT = 1000019002, - XR_TYPE_DEBUG_UTILS_LABEL_EXT = 1000019003; - - /** Extends {@code XrObjectType}. */ - public static final int XR_OBJECT_TYPE_DEBUG_UTILS_MESSENGER_EXT = 1000019000; - + XR_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT = 1000019000, + XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT = 1000019001, + XR_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT = 1000019002, + XR_TYPE_DEBUG_UTILS_LABEL_EXT = 1000019003; + + /** Extends {@code XrObjectType}. */ + public static final int XR_OBJECT_TYPE_DEBUG_UTILS_MESSENGER_EXT = 1000019000; + /** * XrDebugUtilsMessageSeverityFlagBitsEXT - XrDebugUtilsMessageSeverityFlagBitsEXT * @@ -65,13 +65,13 @@ public class EXTDebugUtils { *
  • {@link #XR_DEBUG_UTILS_MESSAGE_SEVERITY_WARNING_BIT_EXT DEBUG_UTILS_MESSAGE_SEVERITY_WARNING_BIT_EXT}
  • *
  • {@link #XR_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT}
  • * - */ + */ public static final int - XR_DEBUG_UTILS_MESSAGE_SEVERITY_VERBOSE_BIT_EXT = 0x1, - XR_DEBUG_UTILS_MESSAGE_SEVERITY_INFO_BIT_EXT = 0x10, - XR_DEBUG_UTILS_MESSAGE_SEVERITY_WARNING_BIT_EXT = 0x100, - XR_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT = 0x1000; - + XR_DEBUG_UTILS_MESSAGE_SEVERITY_VERBOSE_BIT_EXT = 0x1, + XR_DEBUG_UTILS_MESSAGE_SEVERITY_INFO_BIT_EXT = 0x10, + XR_DEBUG_UTILS_MESSAGE_SEVERITY_WARNING_BIT_EXT = 0x100, + XR_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT = 0x1000; + /** * XrDebugUtilsMessageTypeFlagBitsEXT - XrDebugUtilsMessageTypeFlagBitsEXT * @@ -83,28 +83,28 @@ public class EXTDebugUtils { *
  • {@link #XR_DEBUG_UTILS_MESSAGE_TYPE_PERFORMANCE_BIT_EXT DEBUG_UTILS_MESSAGE_TYPE_PERFORMANCE_BIT_EXT}
  • *
  • {@link #XR_DEBUG_UTILS_MESSAGE_TYPE_CONFORMANCE_BIT_EXT DEBUG_UTILS_MESSAGE_TYPE_CONFORMANCE_BIT_EXT}
  • * - */ + */ public static final int - XR_DEBUG_UTILS_MESSAGE_TYPE_GENERAL_BIT_EXT = 0x1, - XR_DEBUG_UTILS_MESSAGE_TYPE_VALIDATION_BIT_EXT = 0x2, - XR_DEBUG_UTILS_MESSAGE_TYPE_PERFORMANCE_BIT_EXT = 0x4, - XR_DEBUG_UTILS_MESSAGE_TYPE_CONFORMANCE_BIT_EXT = 0x8; + XR_DEBUG_UTILS_MESSAGE_TYPE_GENERAL_BIT_EXT = 0x1, + XR_DEBUG_UTILS_MESSAGE_TYPE_VALIDATION_BIT_EXT = 0x2, + XR_DEBUG_UTILS_MESSAGE_TYPE_PERFORMANCE_BIT_EXT = 0x4, + XR_DEBUG_UTILS_MESSAGE_TYPE_CONFORMANCE_BIT_EXT = 0x8; protected EXTDebugUtils() { throw new UnsupportedOperationException(); - } - - // --- [ xrSetDebugUtilsObjectNameEXT ] --- - - /** Unsafe version of: {@link #xrSetDebugUtilsObjectNameEXT SetDebugUtilsObjectNameEXT} */ - public static int nxrSetDebugUtilsObjectNameEXT(XrInstance instance, long nameInfo) { - long __functionAddress = instance.getCapabilities().xrSetDebugUtilsObjectNameEXT; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(instance.address(), nameInfo, __functionAddress); - } + } + // --- [ xrSetDebugUtilsObjectNameEXT ] --- + + /** Unsafe version of: {@link #xrSetDebugUtilsObjectNameEXT SetDebugUtilsObjectNameEXT} */ + public static int nxrSetDebugUtilsObjectNameEXT(XrInstance instance, long nameInfo) { + long __functionAddress = instance.getCapabilities().xrSetDebugUtilsObjectNameEXT; + if (CHECKS) { + check(__functionAddress); + } + return callPPI(instance.address(), nameInfo, __functionAddress); + } + /** * Sets debug utils object name. * @@ -162,24 +162,24 @@ public static int nxrSetDebugUtilsObjectNameEXT(XrInstance instance, long nameIn * * @param instance the {@code XrInstance} that the object was created under. * @param nameInfo a pointer to an instance of the {@link XrDebugUtilsObjectNameInfoEXT} structure specifying the parameters of the name to set on the object. - */ - @NativeType("XrResult") - public static int xrSetDebugUtilsObjectNameEXT(XrInstance instance, @NativeType("XrDebugUtilsObjectNameInfoEXT const *") XrDebugUtilsObjectNameInfoEXT nameInfo) { - return nxrSetDebugUtilsObjectNameEXT(instance, nameInfo.address()); - } - - // --- [ xrCreateDebugUtilsMessengerEXT ] --- - - /** Unsafe version of: {@link #xrCreateDebugUtilsMessengerEXT CreateDebugUtilsMessengerEXT} */ - public static int nxrCreateDebugUtilsMessengerEXT(XrInstance instance, long createInfo, long messenger) { - long __functionAddress = instance.getCapabilities().xrCreateDebugUtilsMessengerEXT; - if (CHECKS) { - check(__functionAddress); - XrDebugUtilsMessengerCreateInfoEXT.validate(createInfo); - } - return callPPPI(instance.address(), createInfo, messenger, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrSetDebugUtilsObjectNameEXT(XrInstance instance, @NativeType("XrDebugUtilsObjectNameInfoEXT const *") XrDebugUtilsObjectNameInfoEXT nameInfo) { + return nxrSetDebugUtilsObjectNameEXT(instance, nameInfo.address()); + } + // --- [ xrCreateDebugUtilsMessengerEXT ] --- + + /** Unsafe version of: {@link #xrCreateDebugUtilsMessengerEXT CreateDebugUtilsMessengerEXT} */ + public static int nxrCreateDebugUtilsMessengerEXT(XrInstance instance, long createInfo, long messenger) { + long __functionAddress = instance.getCapabilities().xrCreateDebugUtilsMessengerEXT; + if (CHECKS) { + check(__functionAddress); + XrDebugUtilsMessengerCreateInfoEXT.validate(createInfo); + } + return callPPPI(instance.address(), createInfo, messenger, __functionAddress); + } + /** * Creates a debug messenger. * @@ -236,17 +236,17 @@ public static int nxrCreateDebugUtilsMessengerEXT(XrInstance instance, long crea * @param instance the instance the messenger will be used with. * @param createInfo points to an {@link XrDebugUtilsMessengerCreateInfoEXT} structure, which contains the callback pointer as well as defines the conditions under which this messenger will trigger the callback. * @param messenger a pointer to which the created {@code XrDebugUtilsMessengerEXT} object is returned. - */ - @NativeType("XrResult") - public static int xrCreateDebugUtilsMessengerEXT(XrInstance instance, @NativeType("XrDebugUtilsMessengerCreateInfoEXT const *") XrDebugUtilsMessengerCreateInfoEXT createInfo, @NativeType("XrDebugUtilsMessengerEXT *") PointerBuffer messenger) { - if (CHECKS) { - check(messenger, 1); - } - return nxrCreateDebugUtilsMessengerEXT(instance, createInfo.address(), memAddress(messenger)); - } - - // --- [ xrDestroyDebugUtilsMessengerEXT ] --- + */ + @NativeType("XrResult") + public static int xrCreateDebugUtilsMessengerEXT(XrInstance instance, @NativeType("XrDebugUtilsMessengerCreateInfoEXT const *") XrDebugUtilsMessengerCreateInfoEXT createInfo, @NativeType("XrDebugUtilsMessengerEXT *") PointerBuffer messenger) { + if (CHECKS) { + check(messenger, 1); + } + return nxrCreateDebugUtilsMessengerEXT(instance, createInfo.address(), memAddress(messenger)); + } + // --- [ xrDestroyDebugUtilsMessengerEXT ] --- + /** * Destroys a debug messenger. * @@ -291,28 +291,28 @@ public static int xrCreateDebugUtilsMessengerEXT(XrInstance instance, @NativeTyp *

    {@link #xrCreateDebugUtilsMessengerEXT CreateDebugUtilsMessengerEXT}

    * * @param messenger the {@code XrDebugUtilsMessengerEXT} object to destroy. {@code messenger} is an externally synchronized object and must not be used on more than one thread at a time. This means that {@link #xrDestroyDebugUtilsMessengerEXT DestroyDebugUtilsMessengerEXT} must not be called when a callback is active. - */ - @NativeType("XrResult") - public static int xrDestroyDebugUtilsMessengerEXT(XrDebugUtilsMessengerEXT messenger) { - long __functionAddress = messenger.getCapabilities().xrDestroyDebugUtilsMessengerEXT; - if (CHECKS) { - check(__functionAddress); - } - return callPI(messenger.address(), __functionAddress); - } - - // --- [ xrSubmitDebugUtilsMessageEXT ] --- - - /** Unsafe version of: {@link #xrSubmitDebugUtilsMessageEXT SubmitDebugUtilsMessageEXT} */ - public static int nxrSubmitDebugUtilsMessageEXT(XrInstance instance, long messageSeverity, long messageTypes, long callbackData) { - long __functionAddress = instance.getCapabilities().xrSubmitDebugUtilsMessageEXT; - if (CHECKS) { - check(__functionAddress); - XrDebugUtilsMessengerCallbackDataEXT.validate(callbackData); - } - return callPJJPI(instance.address(), messageSeverity, messageTypes, callbackData, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrDestroyDebugUtilsMessengerEXT(XrDebugUtilsMessengerEXT messenger) { + long __functionAddress = messenger.getCapabilities().xrDestroyDebugUtilsMessengerEXT; + if (CHECKS) { + check(__functionAddress); + } + return callPI(messenger.address(), __functionAddress); + } + // --- [ xrSubmitDebugUtilsMessageEXT ] --- + + /** Unsafe version of: {@link #xrSubmitDebugUtilsMessageEXT SubmitDebugUtilsMessageEXT} */ + public static int nxrSubmitDebugUtilsMessageEXT(XrInstance instance, long messageSeverity, long messageTypes, long callbackData) { + long __functionAddress = instance.getCapabilities().xrSubmitDebugUtilsMessageEXT; + if (CHECKS) { + check(__functionAddress); + XrDebugUtilsMessengerCallbackDataEXT.validate(callbackData); + } + return callPJJPI(instance.address(), messageSeverity, messageTypes, callbackData, __functionAddress); + } + /** * Submits debug utils message. * @@ -372,24 +372,24 @@ public static int nxrSubmitDebugUtilsMessageEXT(XrInstance instance, long messag * @param messageSeverity a single bit value of {@code XrDebugUtilsMessageSeverityFlagsEXT} severity of this event/message. * @param messageTypes an {@code XrDebugUtilsMessageTypeFlagsEXT} bitmask of {@code XrDebugUtilsMessageTypeFlagBitsEXT} specifying which types of event to identify this message with. * @param callbackData contains all the callback related data in the {@link XrDebugUtilsMessengerCallbackDataEXT} structure. - */ - @NativeType("XrResult") - public static int xrSubmitDebugUtilsMessageEXT(XrInstance instance, @NativeType("XrDebugUtilsMessageSeverityFlagsEXT") long messageSeverity, @NativeType("XrDebugUtilsMessageTypeFlagsEXT") long messageTypes, @NativeType("XrDebugUtilsMessengerCallbackDataEXT const *") XrDebugUtilsMessengerCallbackDataEXT callbackData) { - return nxrSubmitDebugUtilsMessageEXT(instance, messageSeverity, messageTypes, callbackData.address()); - } - - // --- [ xrSessionBeginDebugUtilsLabelRegionEXT ] --- - - /** Unsafe version of: {@link #xrSessionBeginDebugUtilsLabelRegionEXT SessionBeginDebugUtilsLabelRegionEXT} */ - public static int nxrSessionBeginDebugUtilsLabelRegionEXT(XrSession session, long labelInfo) { - long __functionAddress = session.getCapabilities().xrSessionBeginDebugUtilsLabelRegionEXT; - if (CHECKS) { - check(__functionAddress); - XrDebugUtilsLabelEXT.validate(labelInfo); - } - return callPPI(session.address(), labelInfo, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrSubmitDebugUtilsMessageEXT(XrInstance instance, @NativeType("XrDebugUtilsMessageSeverityFlagsEXT") long messageSeverity, @NativeType("XrDebugUtilsMessageTypeFlagsEXT") long messageTypes, @NativeType("XrDebugUtilsMessengerCallbackDataEXT const *") XrDebugUtilsMessengerCallbackDataEXT callbackData) { + return nxrSubmitDebugUtilsMessageEXT(instance, messageSeverity, messageTypes, callbackData.address()); + } + // --- [ xrSessionBeginDebugUtilsLabelRegionEXT ] --- + + /** Unsafe version of: {@link #xrSessionBeginDebugUtilsLabelRegionEXT SessionBeginDebugUtilsLabelRegionEXT} */ + public static int nxrSessionBeginDebugUtilsLabelRegionEXT(XrSession session, long labelInfo) { + long __functionAddress = session.getCapabilities().xrSessionBeginDebugUtilsLabelRegionEXT; + if (CHECKS) { + check(__functionAddress); + XrDebugUtilsLabelEXT.validate(labelInfo); + } + return callPPI(session.address(), labelInfo, __functionAddress); + } + /** * Session begin debug utils label region. * @@ -435,14 +435,14 @@ public static int nxrSessionBeginDebugUtilsLabelRegionEXT(XrSession session, lon * * @param session the {@code XrSession} that a label region should be associated with. * @param labelInfo the {@link XrDebugUtilsLabelEXT} containing the label information for the region that should be begun. - */ - @NativeType("XrResult") - public static int xrSessionBeginDebugUtilsLabelRegionEXT(XrSession session, @NativeType("XrDebugUtilsLabelEXT const *") XrDebugUtilsLabelEXT labelInfo) { - return nxrSessionBeginDebugUtilsLabelRegionEXT(session, labelInfo.address()); - } - - // --- [ xrSessionEndDebugUtilsLabelRegionEXT ] --- + */ + @NativeType("XrResult") + public static int xrSessionBeginDebugUtilsLabelRegionEXT(XrSession session, @NativeType("XrDebugUtilsLabelEXT const *") XrDebugUtilsLabelEXT labelInfo) { + return nxrSessionBeginDebugUtilsLabelRegionEXT(session, labelInfo.address()); + } + // --- [ xrSessionEndDebugUtilsLabelRegionEXT ] --- + /** * Session end debug utils label region. * @@ -487,28 +487,28 @@ public static int xrSessionBeginDebugUtilsLabelRegionEXT(XrSession session, @Nat *

    This function ends the last label region begun with the {@link #xrSessionBeginDebugUtilsLabelRegionEXT SessionBeginDebugUtilsLabelRegionEXT} function within the same {@code session}.

    * * @param session the {@code XrSession} that a label region should be associated with. - */ - @NativeType("XrResult") - public static int xrSessionEndDebugUtilsLabelRegionEXT(XrSession session) { - long __functionAddress = session.getCapabilities().xrSessionEndDebugUtilsLabelRegionEXT; - if (CHECKS) { - check(__functionAddress); - } - return callPI(session.address(), __functionAddress); - } - - // --- [ xrSessionInsertDebugUtilsLabelEXT ] --- - - /** Unsafe version of: {@link #xrSessionInsertDebugUtilsLabelEXT SessionInsertDebugUtilsLabelEXT} */ - public static int nxrSessionInsertDebugUtilsLabelEXT(XrSession session, long labelInfo) { - long __functionAddress = session.getCapabilities().xrSessionInsertDebugUtilsLabelEXT; - if (CHECKS) { - check(__functionAddress); - XrDebugUtilsLabelEXT.validate(labelInfo); - } - return callPPI(session.address(), labelInfo, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrSessionEndDebugUtilsLabelRegionEXT(XrSession session) { + long __functionAddress = session.getCapabilities().xrSessionEndDebugUtilsLabelRegionEXT; + if (CHECKS) { + check(__functionAddress); + } + return callPI(session.address(), __functionAddress); + } + // --- [ xrSessionInsertDebugUtilsLabelEXT ] --- + + /** Unsafe version of: {@link #xrSessionInsertDebugUtilsLabelEXT SessionInsertDebugUtilsLabelEXT} */ + public static int nxrSessionInsertDebugUtilsLabelEXT(XrSession session, long labelInfo) { + long __functionAddress = session.getCapabilities().xrSessionInsertDebugUtilsLabelEXT; + if (CHECKS) { + check(__functionAddress); + XrDebugUtilsLabelEXT.validate(labelInfo); + } + return callPPI(session.address(), labelInfo, __functionAddress); + } + /** * Session insert debug utils label. * @@ -560,10 +560,10 @@ public static int nxrSessionInsertDebugUtilsLabelEXT(XrSession session, long lab * * @param session the {@code XrSession} that a label region should be associated with. * @param labelInfo the {@link XrDebugUtilsLabelEXT} containing the label information for the region that should be begun. - */ - @NativeType("XrResult") - public static int xrSessionInsertDebugUtilsLabelEXT(XrSession session, @NativeType("XrDebugUtilsLabelEXT const *") XrDebugUtilsLabelEXT labelInfo) { - return nxrSessionInsertDebugUtilsLabelEXT(session, labelInfo.address()); - } + */ + @NativeType("XrResult") + public static int xrSessionInsertDebugUtilsLabelEXT(XrSession session, @NativeType("XrDebugUtilsLabelEXT const *") XrDebugUtilsLabelEXT labelInfo) { + return nxrSessionInsertDebugUtilsLabelEXT(session, labelInfo.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTDpadBinding.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTDpadBinding.java index 3f2b8135dc..05055e624e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTDpadBinding.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTDpadBinding.java @@ -4,25 +4,25 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_EXT_dpad_binding extension. * *

    This extension allows the application to bind one or more digital actions to a trackpad or thumbstick as though it were a dpad by defining additional component paths to suggest bindings for. The behavior of this dpad-like mapping may be customized using {@link XrInteractionProfileDpadBindingEXT}.

    * *

    Applications must also enable the {@link KHRBindingModification XR_KHR_binding_modification} extension that this builds on top of.

    - */ -public final class EXTDpadBinding { - - /** The extension specification version. */ - public static final int XR_EXT_dpad_binding_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_EXT_DPAD_BINDING_EXTENSION_NAME = "XR_EXT_dpad_binding"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT = 1000078000; + */ +public final class EXTDpadBinding { + + /** The extension specification version. */ + public static final int XR_EXT_dpad_binding_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_EXT_DPAD_BINDING_EXTENSION_NAME = "XR_EXT_dpad_binding"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT = 1000078000; - private EXTDpadBinding() {} + private EXTDpadBinding() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTEyeGazeInteraction.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTEyeGazeInteraction.java index 992c99979b..7254eea27a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTEyeGazeInteraction.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTEyeGazeInteraction.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_EXT_eye_gaze_interaction extension. * @@ -19,15 +19,15 @@ * * *

    With these building blocks, an application can discover if the XR runtime has access to an eye tracker, bind the eye gaze pose to the action system, determine if the eye tracker is actively tracking the users eye gaze, and use the eye gaze pose as an input signal to build eye gaze interactions.

    - */ -public final class EXTEyeGazeInteraction { - - /** The extension specification version. */ - public static final int XR_EXT_eye_gaze_interaction_SPEC_VERSION = 2; - - /** The extension name. */ - public static final String XR_EXT_EYE_GAZE_INTERACTION_EXTENSION_NAME = "XR_EXT_eye_gaze_interaction"; - + */ +public final class EXTEyeGazeInteraction { + + /** The extension specification version. */ + public static final int XR_EXT_eye_gaze_interaction_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_EXT_EYE_GAZE_INTERACTION_EXTENSION_NAME = "XR_EXT_eye_gaze_interaction"; + /** * Extends {@code XrStructureType}. * @@ -37,11 +37,11 @@ public final class EXTEyeGazeInteraction { *
  • {@link #XR_TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT}
  • *
  • {@link #XR_TYPE_EYE_GAZE_SAMPLE_TIME_EXT TYPE_EYE_GAZE_SAMPLE_TIME_EXT}
  • * - */ + */ public static final int - XR_TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT = 1000030000, - XR_TYPE_EYE_GAZE_SAMPLE_TIME_EXT = 1000030001; + XR_TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT = 1000030000, + XR_TYPE_EYE_GAZE_SAMPLE_TIME_EXT = 1000030001; - private EXTEyeGazeInteraction() {} + private EXTEyeGazeInteraction() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHPMixedRealityController.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHPMixedRealityController.java index 61bd448cf8..b25cbd82e7 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHPMixedRealityController.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHPMixedRealityController.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_EXT_hp_mixed_reality_controller extension. * @@ -53,34 +53,15 @@ * * * - * - *
    Note
    - * - *

    When the {@link EXTPalmPose XR_EXT_palm_pose} extension is available and enabled, this interaction profile must also support

    - * - *
      - *
    • subpathname:/input/palm_ext/pose
    • - *
    - *
    - * - *
    Note
    - * - *

    When the {@link EXTHandInteraction XR_EXT_hand_interaction} extension is available and enabled, this interaction profile must also support

    - * - *
      - *
    • subpathname:/input/pinch_ext/pose
    • - *
    • subpathname:/input/poke_ext/pose
    • - *
    - *
    - */ -public final class EXTHPMixedRealityController { - - /** The extension specification version. */ - public static final int XR_EXT_hp_mixed_reality_controller_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_EXT_HP_MIXED_REALITY_CONTROLLER_EXTENSION_NAME = "XR_EXT_hp_mixed_reality_controller"; + */ +public final class EXTHPMixedRealityController { + + /** The extension specification version. */ + public static final int XR_EXT_hp_mixed_reality_controller_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_EXT_HP_MIXED_REALITY_CONTROLLER_EXTENSION_NAME = "XR_EXT_hp_mixed_reality_controller"; - private EXTHPMixedRealityController() {} + private EXTHPMixedRealityController() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHandInteraction.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHandInteraction.java index a58a109923..ab661996e4 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHandInteraction.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHandInteraction.java @@ -4,22 +4,22 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_EXT_hand_interaction extension. * *

    This extension defines four commonly used action poses for all user hand interaction profiles including both hand tracking devices and motion controller devices.

    * *

    This extension also introduces a new interaction profile specifically designed for hand tracking devices to input through the OpenXR action system. Though, for runtimes with controller inputs, the runtime should also provide this interaction profile through action mappings from the controller inputs, so that an application whose suggested action bindings solely depending on this hand interaction profile is usable on such runtimes as well.

    - */ -public final class EXTHandInteraction { - - /** The extension specification version. */ - public static final int XR_EXT_hand_interaction_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_EXT_HAND_INTERACTION_EXTENSION_NAME = "XR_EXT_hand_interaction"; + */ +public final class EXTHandInteraction { + + /** The extension specification version. */ + public static final int XR_EXT_hand_interaction_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_EXT_HAND_INTERACTION_EXTENSION_NAME = "XR_EXT_hand_interaction"; - private EXTHandInteraction() {} + private EXTHandInteraction() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHandJointsMotionRange.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHandJointsMotionRange.java index 2fffe3a5dc..529df8ffda 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHandJointsMotionRange.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHandJointsMotionRange.java @@ -4,25 +4,25 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_EXT_hand_joints_motion_range extension. * *

    This extension augments the {@link EXTHandTracking XR_EXT_hand_tracking} extension to enable applications to request that the {@link XrHandJointLocationsEXT} returned by {@link EXTHandTracking#xrLocateHandJointsEXT LocateHandJointsEXT} should return hand joint locations conforming to a range of motion specified by the application.

    * *

    The application must enable the {@link EXTHandTracking XR_EXT_hand_tracking} extension in order to use this extension.

    - */ -public final class EXTHandJointsMotionRange { - - /** The extension specification version. */ - public static final int XR_EXT_hand_joints_motion_range_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_EXT_HAND_JOINTS_MOTION_RANGE_EXTENSION_NAME = "XR_EXT_hand_joints_motion_range"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_HAND_JOINTS_MOTION_RANGE_INFO_EXT = 1000080000; - + */ +public final class EXTHandJointsMotionRange { + + /** The extension specification version. */ + public static final int XR_EXT_hand_joints_motion_range_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_EXT_HAND_JOINTS_MOTION_RANGE_EXTENSION_NAME = "XR_EXT_hand_joints_motion_range"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_HAND_JOINTS_MOTION_RANGE_INFO_EXT = 1000080000; + /** * XrHandJointsMotionRangeEXT - Describes the hand animation range of motion. * @@ -42,11 +42,11 @@ public final class EXTHandJointsMotionRange { *
    See Also
    * *

    {@link XrHandJointsMotionRangeInfoEXT}, {@link EXTHandTracking#xrLocateHandJointsEXT LocateHandJointsEXT}

    - */ + */ public static final int - XR_HAND_JOINTS_MOTION_RANGE_UNOBSTRUCTED_EXT = 1, - XR_HAND_JOINTS_MOTION_RANGE_CONFORMING_TO_CONTROLLER_EXT = 2; + XR_HAND_JOINTS_MOTION_RANGE_UNOBSTRUCTED_EXT = 1, + XR_HAND_JOINTS_MOTION_RANGE_CONFORMING_TO_CONTROLLER_EXT = 2; - private EXTHandJointsMotionRange() {} + private EXTHandJointsMotionRange() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHandTracking.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHandTracking.java index 2915e0867e..fb73e12ae3 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHandTracking.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHandTracking.java @@ -4,31 +4,31 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import org.lwjgl.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_EXT_hand_tracking extension. * *

    This extension enables applications to locate the individual joints of hand tracking inputs. It enables applications to render hands in XR experiences and interact with virtual objects using hand joints.

    - */ -public class EXTHandTracking { - - /** The extension specification version. */ - public static final int XR_EXT_hand_tracking_SPEC_VERSION = 4; - - /** The extension name. */ - public static final String XR_EXT_HAND_TRACKING_EXTENSION_NAME = "XR_EXT_hand_tracking"; - - /** Extends {@code XrObjectType}. */ - public static final int XR_OBJECT_TYPE_HAND_TRACKER_EXT = 1000051000; - + */ +public class EXTHandTracking { + + /** The extension specification version. */ + public static final int XR_EXT_hand_tracking_SPEC_VERSION = 4; + + /** The extension name. */ + public static final String XR_EXT_HAND_TRACKING_EXTENSION_NAME = "XR_EXT_hand_tracking"; + + /** Extends {@code XrObjectType}. */ + public static final int XR_OBJECT_TYPE_HAND_TRACKER_EXT = 1000051000; + /** * Extends {@code XrStructureType}. * @@ -41,14 +41,14 @@ public class EXTHandTracking { *
  • {@link #XR_TYPE_HAND_JOINT_LOCATIONS_EXT TYPE_HAND_JOINT_LOCATIONS_EXT}
  • *
  • {@link #XR_TYPE_HAND_JOINT_VELOCITIES_EXT TYPE_HAND_JOINT_VELOCITIES_EXT}
  • * - */ + */ public static final int - XR_TYPE_SYSTEM_HAND_TRACKING_PROPERTIES_EXT = 1000051000, - XR_TYPE_HAND_TRACKER_CREATE_INFO_EXT = 1000051001, - XR_TYPE_HAND_JOINTS_LOCATE_INFO_EXT = 1000051002, - XR_TYPE_HAND_JOINT_LOCATIONS_EXT = 1000051003, - XR_TYPE_HAND_JOINT_VELOCITIES_EXT = 1000051004; - + XR_TYPE_SYSTEM_HAND_TRACKING_PROPERTIES_EXT = 1000051000, + XR_TYPE_HAND_TRACKER_CREATE_INFO_EXT = 1000051001, + XR_TYPE_HAND_JOINTS_LOCATE_INFO_EXT = 1000051002, + XR_TYPE_HAND_JOINT_LOCATIONS_EXT = 1000051003, + XR_TYPE_HAND_JOINT_VELOCITIES_EXT = 1000051004; + /** * XrHandEXT - Describes which hand the tracker is tracking. * @@ -62,11 +62,11 @@ public class EXTHandTracking { *
    See Also
    * *

    {@link XrHandTrackerCreateInfoEXT}

    - */ + */ public static final int - XR_HAND_LEFT_EXT = 1, - XR_HAND_RIGHT_EXT = 2; - + XR_HAND_LEFT_EXT = 1, + XR_HAND_RIGHT_EXT = 2; + /** * XrHandJointEXT - The name of hand joints that can be tracked * @@ -104,35 +104,35 @@ public class EXTHandTracking { *
  • {@link #XR_HAND_JOINT_LITTLE_DISTAL_EXT HAND_JOINT_LITTLE_DISTAL_EXT}
  • *
  • {@link #XR_HAND_JOINT_LITTLE_TIP_EXT HAND_JOINT_LITTLE_TIP_EXT}
  • * - */ + */ public static final int - XR_HAND_JOINT_PALM_EXT = 0, - XR_HAND_JOINT_WRIST_EXT = 1, - XR_HAND_JOINT_THUMB_METACARPAL_EXT = 2, - XR_HAND_JOINT_THUMB_PROXIMAL_EXT = 3, - XR_HAND_JOINT_THUMB_DISTAL_EXT = 4, - XR_HAND_JOINT_THUMB_TIP_EXT = 5, - XR_HAND_JOINT_INDEX_METACARPAL_EXT = 6, - XR_HAND_JOINT_INDEX_PROXIMAL_EXT = 7, - XR_HAND_JOINT_INDEX_INTERMEDIATE_EXT = 8, - XR_HAND_JOINT_INDEX_DISTAL_EXT = 9, - XR_HAND_JOINT_INDEX_TIP_EXT = 10, - XR_HAND_JOINT_MIDDLE_METACARPAL_EXT = 11, - XR_HAND_JOINT_MIDDLE_PROXIMAL_EXT = 12, - XR_HAND_JOINT_MIDDLE_INTERMEDIATE_EXT = 13, - XR_HAND_JOINT_MIDDLE_DISTAL_EXT = 14, - XR_HAND_JOINT_MIDDLE_TIP_EXT = 15, - XR_HAND_JOINT_RING_METACARPAL_EXT = 16, - XR_HAND_JOINT_RING_PROXIMAL_EXT = 17, - XR_HAND_JOINT_RING_INTERMEDIATE_EXT = 18, - XR_HAND_JOINT_RING_DISTAL_EXT = 19, - XR_HAND_JOINT_RING_TIP_EXT = 20, - XR_HAND_JOINT_LITTLE_METACARPAL_EXT = 21, - XR_HAND_JOINT_LITTLE_PROXIMAL_EXT = 22, - XR_HAND_JOINT_LITTLE_INTERMEDIATE_EXT = 23, - XR_HAND_JOINT_LITTLE_DISTAL_EXT = 24, - XR_HAND_JOINT_LITTLE_TIP_EXT = 25; - + XR_HAND_JOINT_PALM_EXT = 0, + XR_HAND_JOINT_WRIST_EXT = 1, + XR_HAND_JOINT_THUMB_METACARPAL_EXT = 2, + XR_HAND_JOINT_THUMB_PROXIMAL_EXT = 3, + XR_HAND_JOINT_THUMB_DISTAL_EXT = 4, + XR_HAND_JOINT_THUMB_TIP_EXT = 5, + XR_HAND_JOINT_INDEX_METACARPAL_EXT = 6, + XR_HAND_JOINT_INDEX_PROXIMAL_EXT = 7, + XR_HAND_JOINT_INDEX_INTERMEDIATE_EXT = 8, + XR_HAND_JOINT_INDEX_DISTAL_EXT = 9, + XR_HAND_JOINT_INDEX_TIP_EXT = 10, + XR_HAND_JOINT_MIDDLE_METACARPAL_EXT = 11, + XR_HAND_JOINT_MIDDLE_PROXIMAL_EXT = 12, + XR_HAND_JOINT_MIDDLE_INTERMEDIATE_EXT = 13, + XR_HAND_JOINT_MIDDLE_DISTAL_EXT = 14, + XR_HAND_JOINT_MIDDLE_TIP_EXT = 15, + XR_HAND_JOINT_RING_METACARPAL_EXT = 16, + XR_HAND_JOINT_RING_PROXIMAL_EXT = 17, + XR_HAND_JOINT_RING_INTERMEDIATE_EXT = 18, + XR_HAND_JOINT_RING_DISTAL_EXT = 19, + XR_HAND_JOINT_RING_TIP_EXT = 20, + XR_HAND_JOINT_LITTLE_METACARPAL_EXT = 21, + XR_HAND_JOINT_LITTLE_PROXIMAL_EXT = 22, + XR_HAND_JOINT_LITTLE_INTERMEDIATE_EXT = 23, + XR_HAND_JOINT_LITTLE_DISTAL_EXT = 24, + XR_HAND_JOINT_LITTLE_TIP_EXT = 25; + /** * XrHandJointSetEXT - The set of hand joints to track. * @@ -145,27 +145,27 @@ public class EXTHandTracking { *
    See Also
    * *

    {@link XrHandTrackerCreateInfoEXT}

    - */ - public static final int XR_HAND_JOINT_SET_DEFAULT_EXT = 0; - - /** API Constants */ - public static final int XR_HAND_JOINT_COUNT_EXT = 26; + */ + public static final int XR_HAND_JOINT_SET_DEFAULT_EXT = 0; + + /** API Constants */ + public static final int XR_HAND_JOINT_COUNT_EXT = 26; protected EXTHandTracking() { throw new UnsupportedOperationException(); - } - - // --- [ xrCreateHandTrackerEXT ] --- - - /** Unsafe version of: {@link #xrCreateHandTrackerEXT CreateHandTrackerEXT} */ - public static int nxrCreateHandTrackerEXT(XrSession session, long createInfo, long handTracker) { - long __functionAddress = session.getCapabilities().xrCreateHandTrackerEXT; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), createInfo, handTracker, __functionAddress); - } + } + // --- [ xrCreateHandTrackerEXT ] --- + + /** Unsafe version of: {@link #xrCreateHandTrackerEXT CreateHandTrackerEXT} */ + public static int nxrCreateHandTrackerEXT(XrSession session, long createInfo, long handTracker) { + long __functionAddress = session.getCapabilities().xrCreateHandTrackerEXT; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(session.address(), createInfo, handTracker, __functionAddress); + } + /** * Create a hand joints handle. * @@ -219,17 +219,17 @@ public static int nxrCreateHandTrackerEXT(XrSession session, long createInfo, lo * @param session an {@code XrSession} in which the hand tracker will be active. * @param createInfo the {@link XrHandTrackerCreateInfoEXT} used to specify the hand tracker. * @param handTracker the returned {@code XrHandTrackerEXT} handle. - */ - @NativeType("XrResult") - public static int xrCreateHandTrackerEXT(XrSession session, @NativeType("XrHandTrackerCreateInfoEXT const *") XrHandTrackerCreateInfoEXT createInfo, @NativeType("XrHandTrackerEXT *") PointerBuffer handTracker) { - if (CHECKS) { - check(handTracker, 1); - } - return nxrCreateHandTrackerEXT(session, createInfo.address(), memAddress(handTracker)); - } - - // --- [ xrDestroyHandTrackerEXT ] --- + */ + @NativeType("XrResult") + public static int xrCreateHandTrackerEXT(XrSession session, @NativeType("XrHandTrackerCreateInfoEXT const *") XrHandTrackerCreateInfoEXT createInfo, @NativeType("XrHandTrackerEXT *") PointerBuffer handTracker) { + if (CHECKS) { + check(handTracker, 1); + } + return nxrCreateHandTrackerEXT(session, createInfo.address(), memAddress(handTracker)); + } + // --- [ xrDestroyHandTrackerEXT ] --- + /** * Destroy a hand joints handle. * @@ -269,28 +269,28 @@ public static int xrCreateHandTrackerEXT(XrSession session, @NativeType("XrHandT * * * @param handTracker an {@code XrHandTrackerEXT} previously created by {@link #xrCreateHandTrackerEXT CreateHandTrackerEXT}. - */ - @NativeType("XrResult") - public static int xrDestroyHandTrackerEXT(XrHandTrackerEXT handTracker) { - long __functionAddress = handTracker.getCapabilities().xrDestroyHandTrackerEXT; - if (CHECKS) { - check(__functionAddress); - } - return callPI(handTracker.address(), __functionAddress); - } - - // --- [ xrLocateHandJointsEXT ] --- - - /** Unsafe version of: {@link #xrLocateHandJointsEXT LocateHandJointsEXT} */ - public static int nxrLocateHandJointsEXT(XrHandTrackerEXT handTracker, long locateInfo, long locations) { - long __functionAddress = handTracker.getCapabilities().xrLocateHandJointsEXT; - if (CHECKS) { - check(__functionAddress); - XrHandJointsLocateInfoEXT.validate(locateInfo); - } - return callPPPI(handTracker.address(), locateInfo, locations, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrDestroyHandTrackerEXT(XrHandTrackerEXT handTracker) { + long __functionAddress = handTracker.getCapabilities().xrDestroyHandTrackerEXT; + if (CHECKS) { + check(__functionAddress); + } + return callPI(handTracker.address(), __functionAddress); + } + // --- [ xrLocateHandJointsEXT ] --- + + /** Unsafe version of: {@link #xrLocateHandJointsEXT LocateHandJointsEXT} */ + public static int nxrLocateHandJointsEXT(XrHandTrackerEXT handTracker, long locateInfo, long locations) { + long __functionAddress = handTracker.getCapabilities().xrLocateHandJointsEXT; + if (CHECKS) { + check(__functionAddress); + XrHandJointsLocateInfoEXT.validate(locateInfo); + } + return callPPPI(handTracker.address(), locateInfo, locations, __functionAddress); + } + /** * Locate hand joint locations. * @@ -340,10 +340,10 @@ public static int nxrLocateHandJointsEXT(XrHandTrackerEXT handTracker, long loca * @param handTracker an {@code XrHandTrackerEXT} previously created by {@link #xrCreateHandTrackerEXT CreateHandTrackerEXT}. * @param locateInfo a pointer to {@link XrHandJointsLocateInfoEXT} describing information to locate hand joints. * @param locations a pointer to {@link XrHandJointLocationsEXT} receiving the returned hand joint locations. - */ - @NativeType("XrResult") - public static int xrLocateHandJointsEXT(XrHandTrackerEXT handTracker, @NativeType("XrHandJointsLocateInfoEXT const *") XrHandJointsLocateInfoEXT locateInfo, @NativeType("XrHandJointLocationsEXT *") XrHandJointLocationsEXT locations) { - return nxrLocateHandJointsEXT(handTracker, locateInfo.address(), locations.address()); - } + */ + @NativeType("XrResult") + public static int xrLocateHandJointsEXT(XrHandTrackerEXT handTracker, @NativeType("XrHandJointsLocateInfoEXT const *") XrHandJointsLocateInfoEXT locateInfo, @NativeType("XrHandJointLocationsEXT *") XrHandJointLocationsEXT locations) { + return nxrLocateHandJointsEXT(handTracker, locateInfo.address(), locations.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHandTrackingDataSource.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHandTrackingDataSource.java index 5332d79db4..c5f7a473c4 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHandTrackingDataSource.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTHandTrackingDataSource.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_EXT_hand_tracking_data_source extension. * @@ -15,15 +15,15 @@ *

    This extension allows the application to specify the data sources that it wants data from when creating a hand tracking handle, and allows the runtime to specify the currently active data source.

    * *

    The application must enable the {@link EXTHandTracking XR_EXT_hand_tracking} extension in order to use this extension.

    - */ -public final class EXTHandTrackingDataSource { - - /** The extension specification version. */ - public static final int XR_EXT_hand_tracking_data_source_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_EXT_HAND_TRACKING_DATA_SOURCE_EXTENSION_NAME = "XR_EXT_hand_tracking_data_source"; - + */ +public final class EXTHandTrackingDataSource { + + /** The extension specification version. */ + public static final int XR_EXT_hand_tracking_data_source_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_EXT_HAND_TRACKING_DATA_SOURCE_EXTENSION_NAME = "XR_EXT_hand_tracking_data_source"; + /** * Extends {@code XrStructureType}. * @@ -33,11 +33,11 @@ public final class EXTHandTrackingDataSource { *
  • {@link #XR_TYPE_HAND_TRACKING_DATA_SOURCE_INFO_EXT TYPE_HAND_TRACKING_DATA_SOURCE_INFO_EXT}
  • *
  • {@link #XR_TYPE_HAND_TRACKING_DATA_SOURCE_STATE_EXT TYPE_HAND_TRACKING_DATA_SOURCE_STATE_EXT}
  • * - */ + */ public static final int - XR_TYPE_HAND_TRACKING_DATA_SOURCE_INFO_EXT = 1000428000, - XR_TYPE_HAND_TRACKING_DATA_SOURCE_STATE_EXT = 1000428001; - + XR_TYPE_HAND_TRACKING_DATA_SOURCE_INFO_EXT = 1000428000, + XR_TYPE_HAND_TRACKING_DATA_SOURCE_STATE_EXT = 1000428001; + /** * XrHandTrackingDataSourceEXT - Describes the hand tracking data source. * @@ -59,11 +59,11 @@ public final class EXTHandTrackingDataSource { *
    See Also
    * *

    {@link XrHandTrackingDataSourceInfoEXT}, {@link XrHandTrackingDataSourceStateEXT}, {@link EXTHandTracking#xrCreateHandTrackerEXT CreateHandTrackerEXT}, {@link EXTHandTracking#xrLocateHandJointsEXT LocateHandJointsEXT}

    - */ + */ public static final int - XR_HAND_TRACKING_DATA_SOURCE_UNOBSTRUCTED_EXT = 1, - XR_HAND_TRACKING_DATA_SOURCE_CONTROLLER_EXT = 2; + XR_HAND_TRACKING_DATA_SOURCE_UNOBSTRUCTED_EXT = 1, + XR_HAND_TRACKING_DATA_SOURCE_CONTROLLER_EXT = 2; - private EXTHandTrackingDataSource() {} + private EXTHandTrackingDataSource() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTLocalFloor.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTLocalFloor.java index 32b02e7c41..0fdad1f281 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTLocalFloor.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTLocalFloor.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_EXT_local_floor extension. * @@ -13,18 +13,18 @@ *

    As defined in the core OpenXR spec, {@code LOCAL} space is useful when an application needs to render seated-scale content that is not positioned relative to the physical floor and {@code STAGE} space is useful when an application needs to render standing-scale content that is relative to the physical floor.

    * *

    The core OpenXR specification describes that standing-scale experiences are meant to use the {@code STAGE} reference space. However, using the {@code STAGE} forces the user to move to the stage space in order to operate their experience, rather than just standing locally where they are.

    - */ -public final class EXTLocalFloor { - - /** The extension specification version. */ - public static final int XR_EXT_local_floor_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_EXT_LOCAL_FLOOR_EXTENSION_NAME = "XR_EXT_local_floor"; - - /** Extends {@code XrReferenceSpaceType}. */ - public static final int XR_REFERENCE_SPACE_TYPE_LOCAL_FLOOR_EXT = 1000426000; + */ +public final class EXTLocalFloor { + + /** The extension specification version. */ + public static final int XR_EXT_local_floor_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_EXT_LOCAL_FLOOR_EXTENSION_NAME = "XR_EXT_local_floor"; + + /** Extends {@code XrReferenceSpaceType}. */ + public static final int XR_REFERENCE_SPACE_TYPE_LOCAL_FLOOR_EXT = 1000426000; - private EXTLocalFloor() {} + private EXTLocalFloor() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTPalmPose.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTPalmPose.java index 484e748cb5..11a4bac535 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTPalmPose.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTPalmPose.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_EXT_palm_pose extension. * @@ -13,15 +13,15 @@ *

    The application can use the subpathname:/input/palm_ext/pose component path to place visual content representing the user’s physical hand location. Application visuals may depict, for example, realistic human hands that are very simply animated or creative depictions such as an animal, an alien, or robot limb extremity.

    * *

    Note that this is not intended to be an alternative to extensions that perform hand tracking for more complex use cases: the use of "palm" in the name is to reflect that it is a user-focused pose rather than a held-object-focused pose.

    - */ -public final class EXTPalmPose { - - /** The extension specification version. */ - public static final int XR_EXT_palm_pose_SPEC_VERSION = 2; - - /** The extension name. */ - public static final String XR_EXT_PALM_POSE_EXTENSION_NAME = "XR_EXT_palm_pose"; + */ +public final class EXTPalmPose { + + /** The extension specification version. */ + public static final int XR_EXT_palm_pose_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_EXT_PALM_POSE_EXTENSION_NAME = "XR_EXT_palm_pose"; - private EXTPalmPose() {} + private EXTPalmPose() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTPerformanceSettings.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTPerformanceSettings.java index 67bdedc0de..7afe52f2b6 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTPerformanceSettings.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTPerformanceSettings.java @@ -4,12 +4,12 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; + /** * The XR_EXT_performance_settings extension. * @@ -23,18 +23,18 @@ *
  • setting performance level hints
  • *
  • receiving performance related notifications
  • * - */ -public class EXTPerformanceSettings { - - /** The extension specification version. */ - public static final int XR_EXT_performance_settings_SPEC_VERSION = 4; - - /** The extension name. */ - public static final String XR_EXT_PERFORMANCE_SETTINGS_EXTENSION_NAME = "XR_EXT_performance_settings"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_EVENT_DATA_PERF_SETTINGS_EXT = 1000015000; - + */ +public class EXTPerformanceSettings { + + /** The extension specification version. */ + public static final int XR_EXT_performance_settings_SPEC_VERSION = 4; + + /** The extension name. */ + public static final String XR_EXT_PERFORMANCE_SETTINGS_EXTENSION_NAME = "XR_EXT_performance_settings"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_EVENT_DATA_PERF_SETTINGS_EXT = 1000015000; + /** * XrPerfSettingsDomainEXT - XrPerfSettingsDomainEXT * @@ -48,11 +48,11 @@ public class EXTPerformanceSettings { *
  • {@link #XR_PERF_SETTINGS_DOMAIN_CPU_EXT PERF_SETTINGS_DOMAIN_CPU_EXT}
  • *
  • {@link #XR_PERF_SETTINGS_DOMAIN_GPU_EXT PERF_SETTINGS_DOMAIN_GPU_EXT}
  • * - */ + */ public static final int - XR_PERF_SETTINGS_DOMAIN_CPU_EXT = 1, - XR_PERF_SETTINGS_DOMAIN_GPU_EXT = 2; - + XR_PERF_SETTINGS_DOMAIN_CPU_EXT = 1, + XR_PERF_SETTINGS_DOMAIN_GPU_EXT = 2; + /** * XrPerfSettingsSubDomainEXT - XrPerfSettingsSubDomainEXT * @@ -67,12 +67,12 @@ public class EXTPerformanceSettings { *
  • {@link #XR_PERF_SETTINGS_SUB_DOMAIN_RENDERING_EXT PERF_SETTINGS_SUB_DOMAIN_RENDERING_EXT}
  • *
  • {@link #XR_PERF_SETTINGS_SUB_DOMAIN_THERMAL_EXT PERF_SETTINGS_SUB_DOMAIN_THERMAL_EXT}
  • * - */ + */ public static final int - XR_PERF_SETTINGS_SUB_DOMAIN_COMPOSITING_EXT = 1, - XR_PERF_SETTINGS_SUB_DOMAIN_RENDERING_EXT = 2, - XR_PERF_SETTINGS_SUB_DOMAIN_THERMAL_EXT = 3; - + XR_PERF_SETTINGS_SUB_DOMAIN_COMPOSITING_EXT = 1, + XR_PERF_SETTINGS_SUB_DOMAIN_RENDERING_EXT = 2, + XR_PERF_SETTINGS_SUB_DOMAIN_THERMAL_EXT = 3; + /** * XrPerfSettingsLevelEXT - XrPerfSettingsLevelEXT * @@ -88,13 +88,13 @@ public class EXTPerformanceSettings { *
  • {@link #XR_PERF_SETTINGS_LEVEL_SUSTAINED_HIGH_EXT PERF_SETTINGS_LEVEL_SUSTAINED_HIGH_EXT}
  • *
  • {@link #XR_PERF_SETTINGS_LEVEL_BOOST_EXT PERF_SETTINGS_LEVEL_BOOST_EXT}
  • * - */ + */ public static final int - XR_PERF_SETTINGS_LEVEL_POWER_SAVINGS_EXT = 0, - XR_PERF_SETTINGS_LEVEL_SUSTAINED_LOW_EXT = 25, - XR_PERF_SETTINGS_LEVEL_SUSTAINED_HIGH_EXT = 50, - XR_PERF_SETTINGS_LEVEL_BOOST_EXT = 75; - + XR_PERF_SETTINGS_LEVEL_POWER_SAVINGS_EXT = 0, + XR_PERF_SETTINGS_LEVEL_SUSTAINED_LOW_EXT = 25, + XR_PERF_SETTINGS_LEVEL_SUSTAINED_HIGH_EXT = 50, + XR_PERF_SETTINGS_LEVEL_BOOST_EXT = 75; + /** * XrPerfSettingsNotificationLevelEXT - XrPerfSettingsNotificationLevelEXT * @@ -109,18 +109,18 @@ public class EXTPerformanceSettings { *
  • {@link #XR_PERF_SETTINGS_NOTIF_LEVEL_WARNING_EXT PERF_SETTINGS_NOTIF_LEVEL_WARNING_EXT}
  • *
  • {@link #XR_PERF_SETTINGS_NOTIF_LEVEL_IMPAIRED_EXT PERF_SETTINGS_NOTIF_LEVEL_IMPAIRED_EXT}
  • * - */ + */ public static final int - XR_PERF_SETTINGS_NOTIF_LEVEL_NORMAL_EXT = 0, - XR_PERF_SETTINGS_NOTIF_LEVEL_WARNING_EXT = 25, - XR_PERF_SETTINGS_NOTIF_LEVEL_IMPAIRED_EXT = 75; + XR_PERF_SETTINGS_NOTIF_LEVEL_NORMAL_EXT = 0, + XR_PERF_SETTINGS_NOTIF_LEVEL_WARNING_EXT = 25, + XR_PERF_SETTINGS_NOTIF_LEVEL_IMPAIRED_EXT = 75; protected EXTPerformanceSettings() { throw new UnsupportedOperationException(); - } - - // --- [ xrPerfSettingsSetPerformanceLevelEXT ] --- + } + // --- [ xrPerfSettingsSetPerformanceLevelEXT ] --- + /** * xrPerfSettingsSetPerformanceLevelEXT. * @@ -163,14 +163,14 @@ protected EXTPerformanceSettings() { * @param session a valid {@code XrSession} handle. * @param domain the processing domain for which the level hint is applied * @param level the level hint to be applied - */ - @NativeType("XrResult") - public static int xrPerfSettingsSetPerformanceLevelEXT(XrSession session, @NativeType("XrPerfSettingsDomainEXT") int domain, @NativeType("XrPerfSettingsLevelEXT") int level) { - long __functionAddress = session.getCapabilities().xrPerfSettingsSetPerformanceLevelEXT; - if (CHECKS) { - check(__functionAddress); - } - return callPI(session.address(), domain, level, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrPerfSettingsSetPerformanceLevelEXT(XrSession session, @NativeType("XrPerfSettingsDomainEXT") int domain, @NativeType("XrPerfSettingsLevelEXT") int level) { + long __functionAddress = session.getCapabilities().xrPerfSettingsSetPerformanceLevelEXT; + if (CHECKS) { + check(__functionAddress); + } + return callPI(session.address(), domain, level, __functionAddress); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTSamsungOdysseyController.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTSamsungOdysseyController.java index bdced6406a..7678e5cabf 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTSamsungOdysseyController.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTSamsungOdysseyController.java @@ -4,26 +4,26 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_EXT_samsung_odyssey_controller extension. * - *

    This extension enables the application to differentiate the newer form factor of motion controller released with the Samsung Odyssey headset. It enables the application to customize the appearance and experience of the controller differently from the original mixed reality motion controller.

    + *

    This extension enables the application to differentiate the newer form factor of motion controller released with the Samsung Odyssey headset. It enables the application to customize the appearance and experience of the controller differently from the original mixed reality motion controller.

    * - *

    This extension added a new interaction profile pathname:/interaction_profiles/samsung/odyssey_controller to describe the Odyssey controller. The action bindings of this interaction profile work exactly the same as the pathname:/interaction_profiles/microsoft/motion_controller in terms of valid user paths and supported input and output component paths.

    + *

    This extension added a new interaction profile pathname:/interaction_profiles/samsung/odyssey_controller to describe the Odyssey controller. The action bindings of this interaction profile work exactly the same as the pathname:/interaction_profiles/microsoft/motion_controller in terms of valid user paths and supported input and output component paths.

    * *

    If the application doesn’t do its own custom rendering for specific motion controllers, it should avoid using this extension and instead just use subpathname:/microsoft/motion_controller, as runtimes should treat both controllers equally when applications declare action bindings only for that profile.

    * *

    If the application wants to customize rendering for specific motion controllers, it should setup the suggested bindings for subpathname:/samsung/odyssey_controller the same as subpathname:/microsoft/motion_controller when calling {@link XR10#xrSuggestInteractionProfileBindings SuggestInteractionProfileBindings}, and expect the same action bindings. Then the application can listen to the {@link XrEventDataInteractionProfileChanged} event and inspect the returned interaction profile from {@link XR10#xrGetCurrentInteractionProfile GetCurrentInteractionProfile} to differentiate which controller is being used by the user, and hence customize the appearance or experience of the motion controller specifically for the form factor of subpathname:/samsung/odyssey_controller.

    - */ -public final class EXTSamsungOdysseyController { - - /** The extension specification version. */ - public static final int XR_EXT_samsung_odyssey_controller_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_EXT_SAMSUNG_ODYSSEY_CONTROLLER_EXTENSION_NAME = "XR_EXT_samsung_odyssey_controller"; + */ +public final class EXTSamsungOdysseyController { + + /** The extension specification version. */ + public static final int XR_EXT_samsung_odyssey_controller_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_EXT_SAMSUNG_ODYSSEY_CONTROLLER_EXTENSION_NAME = "XR_EXT_samsung_odyssey_controller"; - private EXTSamsungOdysseyController() {} + private EXTSamsungOdysseyController() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTThermalQuery.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTThermalQuery.java index 38e58b68a8..5fe9dfe04a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTThermalQuery.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTThermalQuery.java @@ -4,43 +4,43 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import java.nio.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_EXT_thermal_query extension. * *

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

    - */ -public class EXTThermalQuery { - - /** The extension specification version. */ - public static final int XR_EXT_thermal_query_SPEC_VERSION = 2; - - /** The extension name. */ - public static final String XR_EXT_THERMAL_QUERY_EXTENSION_NAME = "XR_EXT_thermal_query"; + */ +public class EXTThermalQuery { + + /** The extension specification version. */ + public static final int XR_EXT_thermal_query_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_EXT_THERMAL_QUERY_EXTENSION_NAME = "XR_EXT_thermal_query"; protected EXTThermalQuery() { throw new UnsupportedOperationException(); - } - - // --- [ xrThermalGetTemperatureTrendEXT ] --- - - /** Unsafe version of: {@link #xrThermalGetTemperatureTrendEXT ThermalGetTemperatureTrendEXT} */ - public static int nxrThermalGetTemperatureTrendEXT(XrSession session, int domain, long notificationLevel, long tempHeadroom, long tempSlope) { - long __functionAddress = session.getCapabilities().xrThermalGetTemperatureTrendEXT; - if (CHECKS) { - check(__functionAddress); - } - return callPPPPI(session.address(), domain, notificationLevel, tempHeadroom, tempSlope, __functionAddress); - } + } + // --- [ xrThermalGetTemperatureTrendEXT ] --- + + /** Unsafe version of: {@link #xrThermalGetTemperatureTrendEXT ThermalGetTemperatureTrendEXT} */ + public static int nxrThermalGetTemperatureTrendEXT(XrSession session, int domain, long notificationLevel, long tempHeadroom, long tempSlope) { + long __functionAddress = session.getCapabilities().xrThermalGetTemperatureTrendEXT; + if (CHECKS) { + check(__functionAddress); + } + return callPPPPI(session.address(), domain, notificationLevel, tempHeadroom, tempSlope, __functionAddress); + } + /** * xrThermalGetTemperatureTrendEXT. * @@ -89,15 +89,15 @@ public static int nxrThermalGetTemperatureTrendEXT(XrSession session, int domain * @param notificationLevel : the current warning level * @param tempHeadroom : temperature headroom in degrees Celsius, expressing how far the most-critical temperature of the domain is from its thermal throttling threshold temperature. * @param tempSlope : the current trend in degrees Celsius per second of the most critical temperature of the domain. - */ - @NativeType("XrResult") - public static int xrThermalGetTemperatureTrendEXT(XrSession session, @NativeType("XrPerfSettingsDomainEXT") int domain, @NativeType("XrPerfSettingsNotificationLevelEXT *") IntBuffer notificationLevel, @NativeType("float *") FloatBuffer tempHeadroom, @NativeType("float *") FloatBuffer tempSlope) { - if (CHECKS) { - check(notificationLevel, 1); - check(tempHeadroom, 1); - check(tempSlope, 1); - } - return nxrThermalGetTemperatureTrendEXT(session, domain, memAddress(notificationLevel), memAddress(tempHeadroom), memAddress(tempSlope)); - } + */ + @NativeType("XrResult") + public static int xrThermalGetTemperatureTrendEXT(XrSession session, @NativeType("XrPerfSettingsDomainEXT") int domain, @NativeType("XrPerfSettingsNotificationLevelEXT *") IntBuffer notificationLevel, @NativeType("float *") FloatBuffer tempHeadroom, @NativeType("float *") FloatBuffer tempSlope) { + if (CHECKS) { + check(notificationLevel, 1); + check(tempHeadroom, 1); + check(tempSlope, 1); + } + return nxrThermalGetTemperatureTrendEXT(session, domain, memAddress(notificationLevel), memAddress(tempHeadroom), memAddress(tempSlope)); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTUUIUD.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTUUIUD.java index ef29169592..c5b2247ede 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTUUIUD.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTUUIUD.java @@ -4,23 +4,23 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_EXT_uuid extension. * - *

    This extension defines a Universally Unique Identifier that follows RFC 4122.

    - */ -public final class EXTUUIUD { - - /** The extension specification version. */ - public static final int XR_EXT_uuid_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_EXT_UUID_EXTENSION_NAME = "XR_EXT_uuid"; - - /** XR_UUID_SIZE_EXT */ - public static final int XR_UUID_SIZE_EXT = 16; + *

    This extension defines a Universally Unique Identifier that follows RFC 4122.

    + */ +public final class EXTUUIUD { + + /** The extension specification version. */ + public static final int XR_EXT_uuid_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_EXT_UUID_EXTENSION_NAME = "XR_EXT_uuid"; + + /** XR_UUID_SIZE_EXT */ + public static final int XR_UUID_SIZE_EXT = 16; - private EXTUUIUD() {} + private EXTUUIUD() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTViewConfigurationDepthRange.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTViewConfigurationDepthRange.java index 40fae60771..8078753cfc 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTViewConfigurationDepthRange.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTViewConfigurationDepthRange.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_EXT_view_configuration_depth_range extension. * @@ -13,18 +13,18 @@ *

    Displaying rendered content outside the recommended min/max depth range would violate the system requirements for a properly integrated application, and can result in a poor user experience due to observed visual artifacts, visual discomfort, or fatigue. The near/far depth values will fall in the range of (0..+infinity] where max({@code recommendedNearZ}, {@code minNearZ}) < min({@code recommendedFarZ}, {@code maxFarZ}). Infinity is defined matching the standard library definition such that std::isinf will return true for a returned infinite value.

    * *

    In order to provide the application with the appropriate depth range at which to render content for each {@link XrViewConfigurationView}, this extension provides additional view configuration information, as defined by {@link XrViewConfigurationDepthRangeEXT}, to inform the application of the min/max recommended and absolute distances at which content should be rendered for that view.

    - */ -public final class EXTViewConfigurationDepthRange { - - /** The extension specification version. */ - public static final int XR_EXT_view_configuration_depth_range_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_EXT_VIEW_CONFIGURATION_DEPTH_RANGE_EXTENSION_NAME = "XR_EXT_view_configuration_depth_range"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_VIEW_CONFIGURATION_DEPTH_RANGE_EXT = 1000046000; + */ +public final class EXTViewConfigurationDepthRange { + + /** The extension specification version. */ + public static final int XR_EXT_view_configuration_depth_range_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_EXT_VIEW_CONFIGURATION_DEPTH_RANGE_EXTENSION_NAME = "XR_EXT_view_configuration_depth_range"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_VIEW_CONFIGURATION_DEPTH_RANGE_EXT = 1000046000; - private EXTViewConfigurationDepthRange() {} + private EXTViewConfigurationDepthRange() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTWin32AppcontainerCompatible.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTWin32AppcontainerCompatible.java index 6f970d0da2..f3d239c173 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTWin32AppcontainerCompatible.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTWin32AppcontainerCompatible.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_EXT_win32_appcontainer_compatible extension. * @@ -15,15 +15,15 @@ *

    If the runtime supports this extension, it can further inspect the capability based on the connected device. If the XR system cannot support an AppContainer execution environment, the runtime must return {@link XR10#XR_ERROR_FORM_FACTOR_UNAVAILABLE ERROR_FORM_FACTOR_UNAVAILABLE} when the application calls {@link XR10#xrGetSystem GetSystem}.

    * *

    If the call to {@link XR10#xrGetSystem GetSystem} successfully returned with a valid {@code XrSystemId}, the application can rely on the runtime working properly in the AppContainer execution environment.

    - */ -public final class EXTWin32AppcontainerCompatible { - - /** The extension specification version. */ - public static final int XR_EXT_win32_appcontainer_compatible_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_EXT_WIN32_APPCONTAINER_COMPATIBLE_EXTENSION_NAME = "XR_EXT_win32_appcontainer_compatible"; + */ +public final class EXTWin32AppcontainerCompatible { + + /** The extension specification version. */ + public static final int XR_EXT_win32_appcontainer_compatible_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_EXT_WIN32_APPCONTAINER_COMPATIBLE_EXTENSION_NAME = "XR_EXT_win32_appcontainer_compatible"; - private EXTWin32AppcontainerCompatible() {} + private EXTWin32AppcontainerCompatible() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTXOverlay.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTXOverlay.java index 1bb632358c..602f7424f5 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTXOverlay.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/EXTXOverlay.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_EXTX_overlay extension. * @@ -25,20 +25,20 @@ *
  • The ability for an overlay session to get information about what is going on with the main application
  • * * - *

    To enable the functionality of this extension, an application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    + *

    To enable the functionality of this extension, an application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    * *

    To create an overlay session, an application must pass an {@link XrSessionCreateInfoOverlayEXTX} structure to {@link XR10#xrCreateSession CreateSession} via the {@link XrSessionCreateInfo} structure’s {@code next} parameter.

    * *

    An overlay application should not assume that the values returned to it by {@link XR10#xrWaitFrame WaitFrame} in {@code predictedDisplayTime} in {@link XrFrameState} will be the same as the values returned to the main application or even correlated.

    - */ -public final class EXTXOverlay { - - /** The extension specification version. */ - public static final int XR_EXTX_overlay_SPEC_VERSION = 5; - - /** The extension name. */ - public static final String XR_EXTX_OVERLAY_EXTENSION_NAME = "XR_EXTX_overlay"; - + */ +public final class EXTXOverlay { + + /** The extension specification version. */ + public static final int XR_EXTX_overlay_SPEC_VERSION = 5; + + /** The extension name. */ + public static final String XR_EXTX_OVERLAY_EXTENSION_NAME = "XR_EXTX_overlay"; + /** * Extends {@code XrStructureType}. * @@ -48,14 +48,14 @@ public final class EXTXOverlay { *
  • {@link #XR_TYPE_SESSION_CREATE_INFO_OVERLAY_EXTX TYPE_SESSION_CREATE_INFO_OVERLAY_EXTX}
  • *
  • {@link #XR_TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX}
  • * - */ + */ public static final int - XR_TYPE_SESSION_CREATE_INFO_OVERLAY_EXTX = 1000033000, - XR_TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX = 1000033003; - - /** XrOverlayMainSessionFlagBitsEXTX - XrOverlayMainSessionFlagBitsEXTX */ - public static final int XR_OVERLAY_MAIN_SESSION_ENABLED_COMPOSITION_LAYER_INFO_DEPTH_BIT_EXTX = 0x1; + XR_TYPE_SESSION_CREATE_INFO_OVERLAY_EXTX = 1000033000, + XR_TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX = 1000033003; + + /** XrOverlayMainSessionFlagBitsEXTX - XrOverlayMainSessionFlagBitsEXTX */ + public static final int XR_OVERLAY_MAIN_SESSION_ENABLED_COMPOSITION_LAYER_INFO_DEPTH_BIT_EXTX = 0x1; - private EXTXOverlay() {} + private EXTXOverlay() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBBodyTracking.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBBodyTracking.java index 8580bbd2b8..090649be32 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBBodyTracking.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBBodyTracking.java @@ -4,31 +4,31 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import org.lwjgl.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_FB_body_tracking extension. * *

    This extension enables applications to locate the individual body joints that represent the estimated position of the user of the device. It enables applications to render the upper body in XR experiences.

    - */ -public class FBBodyTracking { - - /** The extension specification version. */ - public static final int XR_FB_body_tracking_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_FB_BODY_TRACKING_EXTENSION_NAME = "XR_FB_body_tracking"; - - /** Extends {@code XrObjectType}. */ - public static final int XR_OBJECT_TYPE_BODY_TRACKER_FB = 1000076000; - + */ +public class FBBodyTracking { + + /** The extension specification version. */ + public static final int XR_FB_body_tracking_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_FB_BODY_TRACKING_EXTENSION_NAME = "XR_FB_body_tracking"; + + /** Extends {@code XrObjectType}. */ + public static final int XR_OBJECT_TYPE_BODY_TRACKER_FB = 1000076000; + /** * Extends {@code XrStructureType}. * @@ -41,14 +41,14 @@ public class FBBodyTracking { *
  • {@link #XR_TYPE_BODY_JOINT_LOCATIONS_FB TYPE_BODY_JOINT_LOCATIONS_FB}
  • *
  • {@link #XR_TYPE_BODY_SKELETON_FB TYPE_BODY_SKELETON_FB}
  • * - */ + */ public static final int - XR_TYPE_BODY_TRACKER_CREATE_INFO_FB = 1000076001, - XR_TYPE_BODY_JOINTS_LOCATE_INFO_FB = 1000076002, - XR_TYPE_SYSTEM_BODY_TRACKING_PROPERTIES_FB = 1000076004, - XR_TYPE_BODY_JOINT_LOCATIONS_FB = 1000076005, - XR_TYPE_BODY_SKELETON_FB = 1000076006; - + XR_TYPE_BODY_TRACKER_CREATE_INFO_FB = 1000076001, + XR_TYPE_BODY_JOINTS_LOCATE_INFO_FB = 1000076002, + XR_TYPE_SYSTEM_BODY_TRACKING_PROPERTIES_FB = 1000076004, + XR_TYPE_BODY_JOINT_LOCATIONS_FB = 1000076005, + XR_TYPE_BODY_SKELETON_FB = 1000076006; + /** * XrBodyJointFB - The name of body joints that can be tracked * @@ -142,81 +142,81 @@ public class FBBodyTracking { *
  • {@link #XR_BODY_JOINT_COUNT_FB BODY_JOINT_COUNT_FB}
  • *
  • {@link #XR_BODY_JOINT_NONE_FB BODY_JOINT_NONE_FB}
  • * - */ + */ public static final int - XR_BODY_JOINT_ROOT_FB = 0, - XR_BODY_JOINT_HIPS_FB = 1, - XR_BODY_JOINT_SPINE_LOWER_FB = 2, - XR_BODY_JOINT_SPINE_MIDDLE_FB = 3, - XR_BODY_JOINT_SPINE_UPPER_FB = 4, - XR_BODY_JOINT_CHEST_FB = 5, - XR_BODY_JOINT_NECK_FB = 6, - XR_BODY_JOINT_HEAD_FB = 7, - XR_BODY_JOINT_LEFT_SHOULDER_FB = 8, - XR_BODY_JOINT_LEFT_SCAPULA_FB = 9, - XR_BODY_JOINT_LEFT_ARM_UPPER_FB = 10, - XR_BODY_JOINT_LEFT_ARM_LOWER_FB = 11, - XR_BODY_JOINT_LEFT_HAND_WRIST_TWIST_FB = 12, - XR_BODY_JOINT_RIGHT_SHOULDER_FB = 13, - XR_BODY_JOINT_RIGHT_SCAPULA_FB = 14, - XR_BODY_JOINT_RIGHT_ARM_UPPER_FB = 15, - XR_BODY_JOINT_RIGHT_ARM_LOWER_FB = 16, - XR_BODY_JOINT_RIGHT_HAND_WRIST_TWIST_FB = 17, - XR_BODY_JOINT_LEFT_HAND_PALM_FB = 18, - XR_BODY_JOINT_LEFT_HAND_WRIST_FB = 19, - XR_BODY_JOINT_LEFT_HAND_THUMB_METACARPAL_FB = 20, - XR_BODY_JOINT_LEFT_HAND_THUMB_PROXIMAL_FB = 21, - XR_BODY_JOINT_LEFT_HAND_THUMB_DISTAL_FB = 22, - XR_BODY_JOINT_LEFT_HAND_THUMB_TIP_FB = 23, - XR_BODY_JOINT_LEFT_HAND_INDEX_METACARPAL_FB = 24, - XR_BODY_JOINT_LEFT_HAND_INDEX_PROXIMAL_FB = 25, - XR_BODY_JOINT_LEFT_HAND_INDEX_INTERMEDIATE_FB = 26, - XR_BODY_JOINT_LEFT_HAND_INDEX_DISTAL_FB = 27, - XR_BODY_JOINT_LEFT_HAND_INDEX_TIP_FB = 28, - XR_BODY_JOINT_LEFT_HAND_MIDDLE_METACARPAL_FB = 29, - XR_BODY_JOINT_LEFT_HAND_MIDDLE_PROXIMAL_FB = 30, - XR_BODY_JOINT_LEFT_HAND_MIDDLE_INTERMEDIATE_FB = 31, - XR_BODY_JOINT_LEFT_HAND_MIDDLE_DISTAL_FB = 32, - XR_BODY_JOINT_LEFT_HAND_MIDDLE_TIP_FB = 33, - XR_BODY_JOINT_LEFT_HAND_RING_METACARPAL_FB = 34, - XR_BODY_JOINT_LEFT_HAND_RING_PROXIMAL_FB = 35, - XR_BODY_JOINT_LEFT_HAND_RING_INTERMEDIATE_FB = 36, - XR_BODY_JOINT_LEFT_HAND_RING_DISTAL_FB = 37, - XR_BODY_JOINT_LEFT_HAND_RING_TIP_FB = 38, - XR_BODY_JOINT_LEFT_HAND_LITTLE_METACARPAL_FB = 39, - XR_BODY_JOINT_LEFT_HAND_LITTLE_PROXIMAL_FB = 40, - XR_BODY_JOINT_LEFT_HAND_LITTLE_INTERMEDIATE_FB = 41, - XR_BODY_JOINT_LEFT_HAND_LITTLE_DISTAL_FB = 42, - XR_BODY_JOINT_LEFT_HAND_LITTLE_TIP_FB = 43, - XR_BODY_JOINT_RIGHT_HAND_PALM_FB = 44, - XR_BODY_JOINT_RIGHT_HAND_WRIST_FB = 45, - XR_BODY_JOINT_RIGHT_HAND_THUMB_METACARPAL_FB = 46, - XR_BODY_JOINT_RIGHT_HAND_THUMB_PROXIMAL_FB = 47, - XR_BODY_JOINT_RIGHT_HAND_THUMB_DISTAL_FB = 48, - XR_BODY_JOINT_RIGHT_HAND_THUMB_TIP_FB = 49, - XR_BODY_JOINT_RIGHT_HAND_INDEX_METACARPAL_FB = 50, - XR_BODY_JOINT_RIGHT_HAND_INDEX_PROXIMAL_FB = 51, - XR_BODY_JOINT_RIGHT_HAND_INDEX_INTERMEDIATE_FB = 52, - XR_BODY_JOINT_RIGHT_HAND_INDEX_DISTAL_FB = 53, - XR_BODY_JOINT_RIGHT_HAND_INDEX_TIP_FB = 54, - XR_BODY_JOINT_RIGHT_HAND_MIDDLE_METACARPAL_FB = 55, - XR_BODY_JOINT_RIGHT_HAND_MIDDLE_PROXIMAL_FB = 56, - XR_BODY_JOINT_RIGHT_HAND_MIDDLE_INTERMEDIATE_FB = 57, - XR_BODY_JOINT_RIGHT_HAND_MIDDLE_DISTAL_FB = 58, - XR_BODY_JOINT_RIGHT_HAND_MIDDLE_TIP_FB = 59, - XR_BODY_JOINT_RIGHT_HAND_RING_METACARPAL_FB = 60, - XR_BODY_JOINT_RIGHT_HAND_RING_PROXIMAL_FB = 61, - XR_BODY_JOINT_RIGHT_HAND_RING_INTERMEDIATE_FB = 62, - XR_BODY_JOINT_RIGHT_HAND_RING_DISTAL_FB = 63, - XR_BODY_JOINT_RIGHT_HAND_RING_TIP_FB = 64, - XR_BODY_JOINT_RIGHT_HAND_LITTLE_METACARPAL_FB = 65, - XR_BODY_JOINT_RIGHT_HAND_LITTLE_PROXIMAL_FB = 66, - XR_BODY_JOINT_RIGHT_HAND_LITTLE_INTERMEDIATE_FB = 67, - XR_BODY_JOINT_RIGHT_HAND_LITTLE_DISTAL_FB = 68, - XR_BODY_JOINT_RIGHT_HAND_LITTLE_TIP_FB = 69, - XR_BODY_JOINT_COUNT_FB = 70, - XR_BODY_JOINT_NONE_FB = -1; - + XR_BODY_JOINT_ROOT_FB = 0, + XR_BODY_JOINT_HIPS_FB = 1, + XR_BODY_JOINT_SPINE_LOWER_FB = 2, + XR_BODY_JOINT_SPINE_MIDDLE_FB = 3, + XR_BODY_JOINT_SPINE_UPPER_FB = 4, + XR_BODY_JOINT_CHEST_FB = 5, + XR_BODY_JOINT_NECK_FB = 6, + XR_BODY_JOINT_HEAD_FB = 7, + XR_BODY_JOINT_LEFT_SHOULDER_FB = 8, + XR_BODY_JOINT_LEFT_SCAPULA_FB = 9, + XR_BODY_JOINT_LEFT_ARM_UPPER_FB = 10, + XR_BODY_JOINT_LEFT_ARM_LOWER_FB = 11, + XR_BODY_JOINT_LEFT_HAND_WRIST_TWIST_FB = 12, + XR_BODY_JOINT_RIGHT_SHOULDER_FB = 13, + XR_BODY_JOINT_RIGHT_SCAPULA_FB = 14, + XR_BODY_JOINT_RIGHT_ARM_UPPER_FB = 15, + XR_BODY_JOINT_RIGHT_ARM_LOWER_FB = 16, + XR_BODY_JOINT_RIGHT_HAND_WRIST_TWIST_FB = 17, + XR_BODY_JOINT_LEFT_HAND_PALM_FB = 18, + XR_BODY_JOINT_LEFT_HAND_WRIST_FB = 19, + XR_BODY_JOINT_LEFT_HAND_THUMB_METACARPAL_FB = 20, + XR_BODY_JOINT_LEFT_HAND_THUMB_PROXIMAL_FB = 21, + XR_BODY_JOINT_LEFT_HAND_THUMB_DISTAL_FB = 22, + XR_BODY_JOINT_LEFT_HAND_THUMB_TIP_FB = 23, + XR_BODY_JOINT_LEFT_HAND_INDEX_METACARPAL_FB = 24, + XR_BODY_JOINT_LEFT_HAND_INDEX_PROXIMAL_FB = 25, + XR_BODY_JOINT_LEFT_HAND_INDEX_INTERMEDIATE_FB = 26, + XR_BODY_JOINT_LEFT_HAND_INDEX_DISTAL_FB = 27, + XR_BODY_JOINT_LEFT_HAND_INDEX_TIP_FB = 28, + XR_BODY_JOINT_LEFT_HAND_MIDDLE_METACARPAL_FB = 29, + XR_BODY_JOINT_LEFT_HAND_MIDDLE_PROXIMAL_FB = 30, + XR_BODY_JOINT_LEFT_HAND_MIDDLE_INTERMEDIATE_FB = 31, + XR_BODY_JOINT_LEFT_HAND_MIDDLE_DISTAL_FB = 32, + XR_BODY_JOINT_LEFT_HAND_MIDDLE_TIP_FB = 33, + XR_BODY_JOINT_LEFT_HAND_RING_METACARPAL_FB = 34, + XR_BODY_JOINT_LEFT_HAND_RING_PROXIMAL_FB = 35, + XR_BODY_JOINT_LEFT_HAND_RING_INTERMEDIATE_FB = 36, + XR_BODY_JOINT_LEFT_HAND_RING_DISTAL_FB = 37, + XR_BODY_JOINT_LEFT_HAND_RING_TIP_FB = 38, + XR_BODY_JOINT_LEFT_HAND_LITTLE_METACARPAL_FB = 39, + XR_BODY_JOINT_LEFT_HAND_LITTLE_PROXIMAL_FB = 40, + XR_BODY_JOINT_LEFT_HAND_LITTLE_INTERMEDIATE_FB = 41, + XR_BODY_JOINT_LEFT_HAND_LITTLE_DISTAL_FB = 42, + XR_BODY_JOINT_LEFT_HAND_LITTLE_TIP_FB = 43, + XR_BODY_JOINT_RIGHT_HAND_PALM_FB = 44, + XR_BODY_JOINT_RIGHT_HAND_WRIST_FB = 45, + XR_BODY_JOINT_RIGHT_HAND_THUMB_METACARPAL_FB = 46, + XR_BODY_JOINT_RIGHT_HAND_THUMB_PROXIMAL_FB = 47, + XR_BODY_JOINT_RIGHT_HAND_THUMB_DISTAL_FB = 48, + XR_BODY_JOINT_RIGHT_HAND_THUMB_TIP_FB = 49, + XR_BODY_JOINT_RIGHT_HAND_INDEX_METACARPAL_FB = 50, + XR_BODY_JOINT_RIGHT_HAND_INDEX_PROXIMAL_FB = 51, + XR_BODY_JOINT_RIGHT_HAND_INDEX_INTERMEDIATE_FB = 52, + XR_BODY_JOINT_RIGHT_HAND_INDEX_DISTAL_FB = 53, + XR_BODY_JOINT_RIGHT_HAND_INDEX_TIP_FB = 54, + XR_BODY_JOINT_RIGHT_HAND_MIDDLE_METACARPAL_FB = 55, + XR_BODY_JOINT_RIGHT_HAND_MIDDLE_PROXIMAL_FB = 56, + XR_BODY_JOINT_RIGHT_HAND_MIDDLE_INTERMEDIATE_FB = 57, + XR_BODY_JOINT_RIGHT_HAND_MIDDLE_DISTAL_FB = 58, + XR_BODY_JOINT_RIGHT_HAND_MIDDLE_TIP_FB = 59, + XR_BODY_JOINT_RIGHT_HAND_RING_METACARPAL_FB = 60, + XR_BODY_JOINT_RIGHT_HAND_RING_PROXIMAL_FB = 61, + XR_BODY_JOINT_RIGHT_HAND_RING_INTERMEDIATE_FB = 62, + XR_BODY_JOINT_RIGHT_HAND_RING_DISTAL_FB = 63, + XR_BODY_JOINT_RIGHT_HAND_RING_TIP_FB = 64, + XR_BODY_JOINT_RIGHT_HAND_LITTLE_METACARPAL_FB = 65, + XR_BODY_JOINT_RIGHT_HAND_LITTLE_PROXIMAL_FB = 66, + XR_BODY_JOINT_RIGHT_HAND_LITTLE_INTERMEDIATE_FB = 67, + XR_BODY_JOINT_RIGHT_HAND_LITTLE_DISTAL_FB = 68, + XR_BODY_JOINT_RIGHT_HAND_LITTLE_TIP_FB = 69, + XR_BODY_JOINT_COUNT_FB = 70, + XR_BODY_JOINT_NONE_FB = -1; + /** * XrBodyJointSetFB - The set of body joints to track. * @@ -229,24 +229,24 @@ public class FBBodyTracking { *
    See Also
    * *

    {@link XrBodyTrackerCreateInfoFB}

    - */ - public static final int XR_BODY_JOINT_SET_DEFAULT_FB = 0; + */ + public static final int XR_BODY_JOINT_SET_DEFAULT_FB = 0; protected FBBodyTracking() { throw new UnsupportedOperationException(); - } - - // --- [ xrCreateBodyTrackerFB ] --- - - /** Unsafe version of: {@link #xrCreateBodyTrackerFB CreateBodyTrackerFB} */ - public static int nxrCreateBodyTrackerFB(XrSession session, long createInfo, long bodyTracker) { - long __functionAddress = session.getCapabilities().xrCreateBodyTrackerFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), createInfo, bodyTracker, __functionAddress); - } + } + // --- [ xrCreateBodyTrackerFB ] --- + + /** Unsafe version of: {@link #xrCreateBodyTrackerFB CreateBodyTrackerFB} */ + public static int nxrCreateBodyTrackerFB(XrSession session, long createInfo, long bodyTracker) { + long __functionAddress = session.getCapabilities().xrCreateBodyTrackerFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(session.address(), createInfo, bodyTracker, __functionAddress); + } + /** * Create a body joints handle. * @@ -302,17 +302,17 @@ public static int nxrCreateBodyTrackerFB(XrSession session, long createInfo, lon * @param session an {@code XrSession} in which the body tracker will be active. * @param createInfo the {@link XrBodyTrackerCreateInfoFB} used to specify the body tracker. * @param bodyTracker the returned {@code XrBodyTrackerFB} handle. - */ - @NativeType("XrResult") - public static int xrCreateBodyTrackerFB(XrSession session, @NativeType("XrBodyTrackerCreateInfoFB const *") XrBodyTrackerCreateInfoFB createInfo, @NativeType("XrBodyTrackerFB *") PointerBuffer bodyTracker) { - if (CHECKS) { - check(bodyTracker, 1); - } - return nxrCreateBodyTrackerFB(session, createInfo.address(), memAddress(bodyTracker)); - } - - // --- [ xrDestroyBodyTrackerFB ] --- + */ + @NativeType("XrResult") + public static int xrCreateBodyTrackerFB(XrSession session, @NativeType("XrBodyTrackerCreateInfoFB const *") XrBodyTrackerCreateInfoFB createInfo, @NativeType("XrBodyTrackerFB *") PointerBuffer bodyTracker) { + if (CHECKS) { + check(bodyTracker, 1); + } + return nxrCreateBodyTrackerFB(session, createInfo.address(), memAddress(bodyTracker)); + } + // --- [ xrDestroyBodyTrackerFB ] --- + /** * Destroy a body joints handle. * @@ -352,28 +352,28 @@ public static int xrCreateBodyTrackerFB(XrSession session, @NativeType("XrBodyTr * * * @param bodyTracker an {@code XrBodyTrackerFB} previously created by {@link #xrCreateBodyTrackerFB CreateBodyTrackerFB}. - */ - @NativeType("XrResult") - public static int xrDestroyBodyTrackerFB(XrBodyTrackerFB bodyTracker) { - long __functionAddress = bodyTracker.getCapabilities().xrDestroyBodyTrackerFB; - if (CHECKS) { - check(__functionAddress); - } - return callPI(bodyTracker.address(), __functionAddress); - } - - // --- [ xrLocateBodyJointsFB ] --- - - /** Unsafe version of: {@link #xrLocateBodyJointsFB LocateBodyJointsFB} */ - public static int nxrLocateBodyJointsFB(XrBodyTrackerFB bodyTracker, long locateInfo, long locations) { - long __functionAddress = bodyTracker.getCapabilities().xrLocateBodyJointsFB; - if (CHECKS) { - check(__functionAddress); - XrBodyJointsLocateInfoFB.validate(locateInfo); - } - return callPPPI(bodyTracker.address(), locateInfo, locations, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrDestroyBodyTrackerFB(XrBodyTrackerFB bodyTracker) { + long __functionAddress = bodyTracker.getCapabilities().xrDestroyBodyTrackerFB; + if (CHECKS) { + check(__functionAddress); + } + return callPI(bodyTracker.address(), __functionAddress); + } + // --- [ xrLocateBodyJointsFB ] --- + + /** Unsafe version of: {@link #xrLocateBodyJointsFB LocateBodyJointsFB} */ + public static int nxrLocateBodyJointsFB(XrBodyTrackerFB bodyTracker, long locateInfo, long locations) { + long __functionAddress = bodyTracker.getCapabilities().xrLocateBodyJointsFB; + if (CHECKS) { + check(__functionAddress); + XrBodyJointsLocateInfoFB.validate(locateInfo); + } + return callPPPI(bodyTracker.address(), locateInfo, locations, __functionAddress); + } + /** * Locate body joint locations. * @@ -423,23 +423,23 @@ public static int nxrLocateBodyJointsFB(XrBodyTrackerFB bodyTracker, long locate * @param bodyTracker an {@code XrBodyTrackerFB} previously created by {@link #xrCreateBodyTrackerFB CreateBodyTrackerFB}. * @param locateInfo a pointer to {@link XrBodyJointsLocateInfoFB} describing information to locate body joints. * @param locations a pointer to {@link XrBodyJointLocationsFB} receiving the returned body joint locations. - */ - @NativeType("XrResult") - public static int xrLocateBodyJointsFB(XrBodyTrackerFB bodyTracker, @NativeType("XrBodyJointsLocateInfoFB const *") XrBodyJointsLocateInfoFB locateInfo, @NativeType("XrBodyJointLocationsFB *") XrBodyJointLocationsFB locations) { - return nxrLocateBodyJointsFB(bodyTracker, locateInfo.address(), locations.address()); - } - - // --- [ xrGetBodySkeletonFB ] --- - - /** Unsafe version of: {@link #xrGetBodySkeletonFB GetBodySkeletonFB} */ - public static int nxrGetBodySkeletonFB(XrBodyTrackerFB bodyTracker, long skeleton) { - long __functionAddress = bodyTracker.getCapabilities().xrGetBodySkeletonFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(bodyTracker.address(), skeleton, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrLocateBodyJointsFB(XrBodyTrackerFB bodyTracker, @NativeType("XrBodyJointsLocateInfoFB const *") XrBodyJointsLocateInfoFB locateInfo, @NativeType("XrBodyJointLocationsFB *") XrBodyJointLocationsFB locations) { + return nxrLocateBodyJointsFB(bodyTracker, locateInfo.address(), locations.address()); + } + // --- [ xrGetBodySkeletonFB ] --- + + /** Unsafe version of: {@link #xrGetBodySkeletonFB GetBodySkeletonFB} */ + public static int nxrGetBodySkeletonFB(XrBodyTrackerFB bodyTracker, long skeleton) { + long __functionAddress = bodyTracker.getCapabilities().xrGetBodySkeletonFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPI(bodyTracker.address(), skeleton, __functionAddress); + } + /** * Retrieve body skeleton. * @@ -489,10 +489,10 @@ public static int nxrGetBodySkeletonFB(XrBodyTrackerFB bodyTracker, long skeleto * * @param bodyTracker an {@code XrBodyTrackerFB} previously created by {@link #xrCreateBodyTrackerFB CreateBodyTrackerFB}. * @param skeleton a pointer to {@link XrBodySkeletonFB} receiving the returned body skeleton hierarchy. - */ - @NativeType("XrResult") - public static int xrGetBodySkeletonFB(XrBodyTrackerFB bodyTracker, @NativeType("XrBodySkeletonFB *") XrBodySkeletonFB skeleton) { - return nxrGetBodySkeletonFB(bodyTracker, skeleton.address()); - } + */ + @NativeType("XrResult") + public static int xrGetBodySkeletonFB(XrBodyTrackerFB bodyTracker, @NativeType("XrBodySkeletonFB *") XrBodySkeletonFB skeleton) { + return nxrGetBodySkeletonFB(bodyTracker, skeleton.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBColorSpace.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBColorSpace.java index 7abcfef309..32fbb10efd 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBColorSpace.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBColorSpace.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_FB_color_space extension. * @@ -28,22 +28,22 @@ *
  • An application to set the color space for the session.
  • * * - *

    In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    - */ -public class FBColorSpace { - - /** The extension specification version. */ - public static final int XR_FB_color_space_SPEC_VERSION = 3; - - /** The extension name. */ - public static final String XR_FB_COLOR_SPACE_EXTENSION_NAME = "XR_FB_color_space"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_SYSTEM_COLOR_SPACE_PROPERTIES_FB = 1000108000; - - /** Extends {@code XrResult}. */ - public static final int XR_ERROR_COLOR_SPACE_UNSUPPORTED_FB = -1000108000; - + *

    In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    + */ +public class FBColorSpace { + + /** The extension specification version. */ + public static final int XR_FB_color_space_SPEC_VERSION = 3; + + /** The extension name. */ + public static final String XR_FB_COLOR_SPACE_EXTENSION_NAME = "XR_FB_color_space"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_SYSTEM_COLOR_SPACE_PROPERTIES_FB = 1000108000; + + /** Extends {@code XrResult}. */ + public static final int XR_ERROR_COLOR_SPACE_UNSUPPORTED_FB = -1000108000; + /** * XrColorSpaceFB - Color Space Type * @@ -99,36 +99,36 @@ public class FBColorSpace { *
    See Also
    * *

    {@link XrSystemColorSpacePropertiesFB}, {@link #xrEnumerateColorSpacesFB EnumerateColorSpacesFB}, {@link #xrSetColorSpaceFB SetColorSpaceFB}

    - */ + */ public static final int - XR_COLOR_SPACE_UNMANAGED_FB = 0, - XR_COLOR_SPACE_REC2020_FB = 1, - XR_COLOR_SPACE_REC709_FB = 2, - XR_COLOR_SPACE_RIFT_CV1_FB = 3, - XR_COLOR_SPACE_RIFT_S_FB = 4, - XR_COLOR_SPACE_QUEST_FB = 5, - XR_COLOR_SPACE_P3_FB = 6, - XR_COLOR_SPACE_ADOBE_RGB_FB = 7; + XR_COLOR_SPACE_UNMANAGED_FB = 0, + XR_COLOR_SPACE_REC2020_FB = 1, + XR_COLOR_SPACE_REC709_FB = 2, + XR_COLOR_SPACE_RIFT_CV1_FB = 3, + XR_COLOR_SPACE_RIFT_S_FB = 4, + XR_COLOR_SPACE_QUEST_FB = 5, + XR_COLOR_SPACE_P3_FB = 6, + XR_COLOR_SPACE_ADOBE_RGB_FB = 7; protected FBColorSpace() { throw new UnsupportedOperationException(); - } - - // --- [ xrEnumerateColorSpacesFB ] --- + } + // --- [ xrEnumerateColorSpacesFB ] --- + /** * Unsafe version of: {@link #xrEnumerateColorSpacesFB EnumerateColorSpacesFB} * * @param colorSpaceCapacityInput the capacity of the {@code colorSpaces} array, or 0 to retrieve the required capacity. - */ - public static int nxrEnumerateColorSpacesFB(XrSession session, int colorSpaceCapacityInput, long colorSpaceCountOutput, long colorSpaces) { - long __functionAddress = session.getCapabilities().xrEnumerateColorSpacesFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), colorSpaceCapacityInput, colorSpaceCountOutput, colorSpaces, __functionAddress); - } - + */ + public static int nxrEnumerateColorSpacesFB(XrSession session, int colorSpaceCapacityInput, long colorSpaceCountOutput, long colorSpaces) { + long __functionAddress = session.getCapabilities().xrEnumerateColorSpacesFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(session.address(), colorSpaceCapacityInput, colorSpaceCountOutput, colorSpaces, __functionAddress); + } + /** * Enumerates color spaces. * @@ -183,17 +183,17 @@ public static int nxrEnumerateColorSpacesFB(XrSession session, int colorSpaceCap * @param session the session that enumerates the supported color spaces. * @param colorSpaceCountOutput a pointer to the count of {@code XrColorSpaceFB} {@code colorSpaces} written, or a pointer to the required capacity in the case that {@code colorSpaceCapacityInput} is insufficient. * @param colorSpaces a pointer to an array of {@code XrColorSpaceFB} color spaces, but can be {@code NULL} if {@code colorSpaceCapacityInput} is 0. - */ - @NativeType("XrResult") - public static int xrEnumerateColorSpacesFB(XrSession session, @NativeType("uint32_t *") IntBuffer colorSpaceCountOutput, @Nullable @NativeType("XrColorSpaceFB *") IntBuffer colorSpaces) { - if (CHECKS) { - check(colorSpaceCountOutput, 1); - } - return nxrEnumerateColorSpacesFB(session, remainingSafe(colorSpaces), memAddress(colorSpaceCountOutput), memAddressSafe(colorSpaces)); - } - - // --- [ xrSetColorSpaceFB ] --- + */ + @NativeType("XrResult") + public static int xrEnumerateColorSpacesFB(XrSession session, @NativeType("uint32_t *") IntBuffer colorSpaceCountOutput, @Nullable @NativeType("XrColorSpaceFB *") IntBuffer colorSpaces) { + if (CHECKS) { + check(colorSpaceCountOutput, 1); + } + return nxrEnumerateColorSpacesFB(session, remainingSafe(colorSpaces), memAddress(colorSpaceCountOutput), memAddressSafe(colorSpaces)); + } + // --- [ xrSetColorSpaceFB ] --- + /** * Set a color space. * @@ -212,7 +212,7 @@ public static int xrEnumerateColorSpacesFB(XrSession session, @NativeType("uint3 * *

    Formal definitions of color spaces contain a number of aspects such as gamma correction, max luminance and more. However, {@link #xrSetColorSpaceFB SetColorSpaceFB} will only affect the color gamut of the output by transforming the color gamut from the source (defined by the {@code colorSpace} parameter) to the HMD display’s color gamut (defined by the hardware internally). This call will not affect gamma correction, leaving that to follow the GPU texture format standards. Luminance, tonemapping, and other aspects of the color space will also remain unaffected.

    * - *

    For more info on color management in Oculus HMDs, please refer to this guide: Color Management in Oculus Headsets

    + *

    For more info on color management in Oculus HMDs, please refer to this guide: Color Management in Oculus Headsets

    * *
    Valid Usage (Implicit)
    * @@ -249,14 +249,14 @@ public static int xrEnumerateColorSpacesFB(XrSession session, @NativeType("uint3 * * @param session a valid {@code XrSession} handle. * @param colorSpace a supported color space. Supported color spaces are indicated by {@link #xrEnumerateColorSpacesFB EnumerateColorSpacesFB}. - */ - @NativeType("XrResult") - public static int xrSetColorSpaceFB(XrSession session, @NativeType("XrColorSpaceFB") int colorSpace) { - long __functionAddress = session.getCapabilities().xrSetColorSpaceFB; - if (CHECKS) { - check(__functionAddress); - } - return callPI(session.address(), colorSpace, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrSetColorSpaceFB(XrSession session, @NativeType("XrColorSpaceFB") int colorSpace) { + long __functionAddress = session.getCapabilities().xrSetColorSpaceFB; + if (CHECKS) { + check(__functionAddress); + } + return callPI(session.address(), colorSpace, __functionAddress); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerAlphaBlend.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerAlphaBlend.java index bc3192ab1d..da90fee61f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerAlphaBlend.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerAlphaBlend.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_FB_composition_layer_alpha_blend extension. * @@ -14,21 +14,21 @@ * *

    Like color, destination alpha is initialized to 0 before composition begins.

    * - *

    In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    + *

    In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    * *

    These blend factors are specified by attaching a {@link XrCompositionLayerAlphaBlendFB} structure to the {@code next} chain of a {@link XrCompositionLayerBaseHeader}-derived layer structure.

    - */ -public final class FBCompositionLayerAlphaBlend { - - /** The extension specification version. */ - public static final int XR_FB_composition_layer_alpha_blend_SPEC_VERSION = 2; - - /** The extension name. */ - public static final String XR_FB_COMPOSITION_LAYER_ALPHA_BLEND_EXTENSION_NAME = "XR_FB_composition_layer_alpha_blend"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_COMPOSITION_LAYER_ALPHA_BLEND_FB = 1000041001; - + */ +public final class FBCompositionLayerAlphaBlend { + + /** The extension specification version. */ + public static final int XR_FB_composition_layer_alpha_blend_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_FB_COMPOSITION_LAYER_ALPHA_BLEND_EXTENSION_NAME = "XR_FB_composition_layer_alpha_blend"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_COMPOSITION_LAYER_ALPHA_BLEND_FB = 1000041001; + /** * XrBlendFactorFB - Blend Factor Types * @@ -46,15 +46,15 @@ public final class FBCompositionLayerAlphaBlend { *
  • {@link #XR_BLEND_FACTOR_DST_ALPHA_FB BLEND_FACTOR_DST_ALPHA_FB}
  • *
  • {@link #XR_BLEND_FACTOR_ONE_MINUS_DST_ALPHA_FB BLEND_FACTOR_ONE_MINUS_DST_ALPHA_FB}
  • * - */ + */ public static final int - XR_BLEND_FACTOR_ZERO_FB = 0, - XR_BLEND_FACTOR_ONE_FB = 1, - XR_BLEND_FACTOR_SRC_ALPHA_FB = 2, - XR_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA_FB = 3, - XR_BLEND_FACTOR_DST_ALPHA_FB = 4, - XR_BLEND_FACTOR_ONE_MINUS_DST_ALPHA_FB = 5; + XR_BLEND_FACTOR_ZERO_FB = 0, + XR_BLEND_FACTOR_ONE_FB = 1, + XR_BLEND_FACTOR_SRC_ALPHA_FB = 2, + XR_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA_FB = 3, + XR_BLEND_FACTOR_DST_ALPHA_FB = 4, + XR_BLEND_FACTOR_ONE_MINUS_DST_ALPHA_FB = 5; - private FBCompositionLayerAlphaBlend() {} + private FBCompositionLayerAlphaBlend() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerDepthTest.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerDepthTest.java index ebdb3cbeef..bfa5dbc0d8 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerDepthTest.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerDepthTest.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_FB_composition_layer_depth_test extension. * @@ -13,18 +13,18 @@ *

    When composing each layer, if depth testing is requested, the incoming layer depths are transformed into the compositor window space depth and compared to the depth stored in the frame buffer. After the transformation, incoming depths that are outside of the range of the compositor window space depth must be clamped. If the depth test fails, the fragment is discarded. If the depth test passes the depth buffer is updated if depth writes are enabled, and color processing continues.

    * *

    Depth testing requires depth values for the layer. For projection layers, this can be supplied via the {@link KHRCompositionLayerDepth XR_KHR_composition_layer_depth} extension. For geometric primitive layers, the runtime computes the depth of the sample directly from the layer parameters. An {@link XrCompositionLayerDepthTestFB} chained to layers without depth must be ignored.

    - */ -public final class FBCompositionLayerDepthTest { - - /** The extension specification version. */ - public static final int XR_FB_composition_layer_depth_test_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_FB_COMPOSITION_LAYER_DEPTH_TEST_EXTENSION_NAME = "XR_FB_composition_layer_depth_test"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_FB = 1000212000; - + */ +public final class FBCompositionLayerDepthTest { + + /** The extension specification version. */ + public static final int XR_FB_composition_layer_depth_test_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_FB_COMPOSITION_LAYER_DEPTH_TEST_EXTENSION_NAME = "XR_FB_composition_layer_depth_test"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_FB = 1000212000; + /** * XrCompareOpFB - Compare Operation * @@ -44,17 +44,17 @@ public final class FBCompositionLayerDepthTest { *
    See Also
    * *

    {@link XrCompositionLayerDepthTestFB}

    - */ + */ public static final int - XR_COMPARE_OP_NEVER_FB = 0, - XR_COMPARE_OP_LESS_FB = 1, - XR_COMPARE_OP_EQUAL_FB = 2, - XR_COMPARE_OP_LESS_OR_EQUAL_FB = 3, - XR_COMPARE_OP_GREATER_FB = 4, - XR_COMPARE_OP_NOT_EQUAL_FB = 5, - XR_COMPARE_OP_GREATER_OR_EQUAL_FB = 6, - XR_COMPARE_OP_ALWAYS_FB = 7; + XR_COMPARE_OP_NEVER_FB = 0, + XR_COMPARE_OP_LESS_FB = 1, + XR_COMPARE_OP_EQUAL_FB = 2, + XR_COMPARE_OP_LESS_OR_EQUAL_FB = 3, + XR_COMPARE_OP_GREATER_FB = 4, + XR_COMPARE_OP_NOT_EQUAL_FB = 5, + XR_COMPARE_OP_GREATER_OR_EQUAL_FB = 6, + XR_COMPARE_OP_ALWAYS_FB = 7; - private FBCompositionLayerDepthTest() {} + private FBCompositionLayerDepthTest() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerImageLayout.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerImageLayout.java index 4817df1d80..a6b1b0c63f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerImageLayout.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerImageLayout.java @@ -4,28 +4,28 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_FB_composition_layer_image_layout extension. * *

    This extension does not define a new composition layer type, but rather it defines parameters that change the interpretation of the image layout, where the default image layout is dictated by the Graphics API.

    * - *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    - */ -public final class FBCompositionLayerImageLayout { - - /** The extension specification version. */ - public static final int XR_FB_composition_layer_image_layout_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_FB_COMPOSITION_LAYER_IMAGE_LAYOUT_EXTENSION_NAME = "XR_FB_composition_layer_image_layout"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_COMPOSITION_LAYER_IMAGE_LAYOUT_FB = 1000040000; - - /** XrCompositionLayerImageLayoutFlagBitsFB - XrCompositionLayerImageLayoutFlagBitsFB */ - public static final int XR_COMPOSITION_LAYER_IMAGE_LAYOUT_VERTICAL_FLIP_BIT_FB = 0x1; + *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    + */ +public final class FBCompositionLayerImageLayout { + + /** The extension specification version. */ + public static final int XR_FB_composition_layer_image_layout_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_FB_COMPOSITION_LAYER_IMAGE_LAYOUT_EXTENSION_NAME = "XR_FB_composition_layer_image_layout"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_COMPOSITION_LAYER_IMAGE_LAYOUT_FB = 1000040000; + + /** XrCompositionLayerImageLayoutFlagBitsFB - XrCompositionLayerImageLayoutFlagBitsFB */ + public static final int XR_COMPOSITION_LAYER_IMAGE_LAYOUT_VERTICAL_FLIP_BIT_FB = 0x1; - private FBCompositionLayerImageLayout() {} + private FBCompositionLayerImageLayout() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerSecureContent.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerSecureContent.java index d51b06a27f..4695fe1e6c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerSecureContent.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerSecureContent.java @@ -4,25 +4,25 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_FB_composition_layer_secure_content extension. * *

    This extension does not define a new composition layer type, but rather it provides support for the application to specify an existing composition layer type has secure content and whether it must be completely excluded from external outputs, like video or screen capture, or if proxy content must be rendered in its place.

    * - *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    - */ -public final class FBCompositionLayerSecureContent { - - /** The extension specification version. */ - public static final int XR_FB_composition_layer_secure_content_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_FB_COMPOSITION_LAYER_SECURE_CONTENT_EXTENSION_NAME = "XR_FB_composition_layer_secure_content"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_COMPOSITION_LAYER_SECURE_CONTENT_FB = 1000072000; - + *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    + */ +public final class FBCompositionLayerSecureContent { + + /** The extension specification version. */ + public static final int XR_FB_composition_layer_secure_content_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_FB_COMPOSITION_LAYER_SECURE_CONTENT_EXTENSION_NAME = "XR_FB_composition_layer_secure_content"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_COMPOSITION_LAYER_SECURE_CONTENT_FB = 1000072000; + /** * XrCompositionLayerSecureContentFlagBitsFB - XrCompositionLayerSecureContentFlagBitsFB * @@ -32,11 +32,11 @@ public final class FBCompositionLayerSecureContent { *
  • {@link #XR_COMPOSITION_LAYER_SECURE_CONTENT_EXCLUDE_LAYER_BIT_FB COMPOSITION_LAYER_SECURE_CONTENT_EXCLUDE_LAYER_BIT_FB} — Indicates the layer will only be visible inside the HMD, and not visible to external sources
  • *
  • {@link #XR_COMPOSITION_LAYER_SECURE_CONTENT_REPLACE_LAYER_BIT_FB COMPOSITION_LAYER_SECURE_CONTENT_REPLACE_LAYER_BIT_FB} — Indicates the layer will be displayed inside the HMD, but replaced by proxy content when written to external sources
  • * - */ + */ public static final int - XR_COMPOSITION_LAYER_SECURE_CONTENT_EXCLUDE_LAYER_BIT_FB = 0x1, - XR_COMPOSITION_LAYER_SECURE_CONTENT_REPLACE_LAYER_BIT_FB = 0x2; + XR_COMPOSITION_LAYER_SECURE_CONTENT_EXCLUDE_LAYER_BIT_FB = 0x1, + XR_COMPOSITION_LAYER_SECURE_CONTENT_REPLACE_LAYER_BIT_FB = 0x2; - private FBCompositionLayerSecureContent() {} + private FBCompositionLayerSecureContent() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerSettings.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerSettings.java index 29a544aaf6..75edc216e4 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerSettings.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBCompositionLayerSettings.java @@ -4,25 +4,25 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_FB_composition_layer_settings extension. * *

    This extension allows applications to request the use of processing options such as sharpening or super-sampling on a composition layer.

    * - *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    - */ -public final class FBCompositionLayerSettings { - - /** The extension specification version. */ - public static final int XR_FB_composition_layer_settings_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_FB_COMPOSITION_LAYER_SETTINGS_EXTENSION_NAME = "XR_FB_composition_layer_settings"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_COMPOSITION_LAYER_SETTINGS_FB = 1000204000; - + *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    + */ +public final class FBCompositionLayerSettings { + + /** The extension specification version. */ + public static final int XR_FB_composition_layer_settings_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_FB_COMPOSITION_LAYER_SETTINGS_EXTENSION_NAME = "XR_FB_composition_layer_settings"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_COMPOSITION_LAYER_SETTINGS_FB = 1000204000; + /** * XrCompositionLayerSettingsFlagBitsFB - XrCompositionLayerSettingsFlagBitsFB * @@ -34,13 +34,13 @@ public final class FBCompositionLayerSettings { *
  • {@link #XR_COMPOSITION_LAYER_SETTINGS_NORMAL_SHARPENING_BIT_FB COMPOSITION_LAYER_SETTINGS_NORMAL_SHARPENING_BIT_FB} — Indicates compositor may use layer texture sharpening.
  • *
  • {@link #XR_COMPOSITION_LAYER_SETTINGS_QUALITY_SHARPENING_BIT_FB COMPOSITION_LAYER_SETTINGS_QUALITY_SHARPENING_BIT_FB} — Indicates compositor may use high quality layer texture sharpening.
  • * - */ + */ public static final int - XR_COMPOSITION_LAYER_SETTINGS_NORMAL_SUPER_SAMPLING_BIT_FB = 0x1, - XR_COMPOSITION_LAYER_SETTINGS_QUALITY_SUPER_SAMPLING_BIT_FB = 0x2, - XR_COMPOSITION_LAYER_SETTINGS_NORMAL_SHARPENING_BIT_FB = 0x4, - XR_COMPOSITION_LAYER_SETTINGS_QUALITY_SHARPENING_BIT_FB = 0x8; + XR_COMPOSITION_LAYER_SETTINGS_NORMAL_SUPER_SAMPLING_BIT_FB = 0x1, + XR_COMPOSITION_LAYER_SETTINGS_QUALITY_SUPER_SAMPLING_BIT_FB = 0x2, + XR_COMPOSITION_LAYER_SETTINGS_NORMAL_SHARPENING_BIT_FB = 0x4, + XR_COMPOSITION_LAYER_SETTINGS_QUALITY_SHARPENING_BIT_FB = 0x8; - private FBCompositionLayerSettings() {} + private FBCompositionLayerSettings() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBDisplayRefreshRate.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBDisplayRefreshRate.java index 61d90f6f32..13eaa15144 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBDisplayRefreshRate.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBDisplayRefreshRate.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_FB_display_refresh_rate extension. * @@ -33,41 +33,41 @@ *
  • An application to receive notification of changes to the display refresh rate which are delivered via events.
  • * * - *

    In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    - */ -public class FBDisplayRefreshRate { - - /** The extension specification version. */ - public static final int XR_FB_display_refresh_rate_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME = "XR_FB_display_refresh_rate"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB = 1000101000; - - /** Extends {@code XrResult}. */ - public static final int XR_ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB = -1000101000; + *

    In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    + */ +public class FBDisplayRefreshRate { + + /** The extension specification version. */ + public static final int XR_FB_display_refresh_rate_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME = "XR_FB_display_refresh_rate"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB = 1000101000; + + /** Extends {@code XrResult}. */ + public static final int XR_ERROR_DISPLAY_REFRESH_RATE_UNSUPPORTED_FB = -1000101000; protected FBDisplayRefreshRate() { throw new UnsupportedOperationException(); - } - - // --- [ xrEnumerateDisplayRefreshRatesFB ] --- + } + // --- [ xrEnumerateDisplayRefreshRatesFB ] --- + /** * Unsafe version of: {@link #xrEnumerateDisplayRefreshRatesFB EnumerateDisplayRefreshRatesFB} * * @param displayRefreshRateCapacityInput the capacity of the {@code displayRefreshRates}, or 0 to retrieve the required capacity. - */ - public static int nxrEnumerateDisplayRefreshRatesFB(XrSession session, int displayRefreshRateCapacityInput, long displayRefreshRateCountOutput, long displayRefreshRates) { - long __functionAddress = session.getCapabilities().xrEnumerateDisplayRefreshRatesFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), displayRefreshRateCapacityInput, displayRefreshRateCountOutput, displayRefreshRates, __functionAddress); - } - + */ + public static int nxrEnumerateDisplayRefreshRatesFB(XrSession session, int displayRefreshRateCapacityInput, long displayRefreshRateCountOutput, long displayRefreshRates) { + long __functionAddress = session.getCapabilities().xrEnumerateDisplayRefreshRatesFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(session.address(), displayRefreshRateCapacityInput, displayRefreshRateCountOutput, displayRefreshRates, __functionAddress); + } + /** * Enumerates display refresh rates. * @@ -122,26 +122,26 @@ public static int nxrEnumerateDisplayRefreshRatesFB(XrSession session, int displ * @param session the session that enumerates the supported display refresh rates. * @param displayRefreshRateCountOutput a pointer to the count of {@code float} {@code displayRefreshRates} written, or a pointer to the required capacity in the case that {@code displayRefreshRateCapacityInput} is insufficient. * @param displayRefreshRates a pointer to an array of {@code float} display refresh rates, but can be {@code NULL} if {@code displayRefreshRateCapacityInput} is 0. - */ - @NativeType("XrResult") - public static int xrEnumerateDisplayRefreshRatesFB(XrSession session, @NativeType("uint32_t *") IntBuffer displayRefreshRateCountOutput, @Nullable @NativeType("float *") FloatBuffer displayRefreshRates) { - if (CHECKS) { - check(displayRefreshRateCountOutput, 1); - } - return nxrEnumerateDisplayRefreshRatesFB(session, remainingSafe(displayRefreshRates), memAddress(displayRefreshRateCountOutput), memAddressSafe(displayRefreshRates)); - } - - // --- [ xrGetDisplayRefreshRateFB ] --- - - /** Unsafe version of: {@link #xrGetDisplayRefreshRateFB GetDisplayRefreshRateFB} */ - public static int nxrGetDisplayRefreshRateFB(XrSession session, long displayRefreshRate) { - long __functionAddress = session.getCapabilities().xrGetDisplayRefreshRateFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(session.address(), displayRefreshRate, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrEnumerateDisplayRefreshRatesFB(XrSession session, @NativeType("uint32_t *") IntBuffer displayRefreshRateCountOutput, @Nullable @NativeType("float *") FloatBuffer displayRefreshRates) { + if (CHECKS) { + check(displayRefreshRateCountOutput, 1); + } + return nxrEnumerateDisplayRefreshRatesFB(session, remainingSafe(displayRefreshRates), memAddress(displayRefreshRateCountOutput), memAddressSafe(displayRefreshRates)); + } + // --- [ xrGetDisplayRefreshRateFB ] --- + + /** Unsafe version of: {@link #xrGetDisplayRefreshRateFB GetDisplayRefreshRateFB} */ + public static int nxrGetDisplayRefreshRateFB(XrSession session, long displayRefreshRate) { + long __functionAddress = session.getCapabilities().xrGetDisplayRefreshRateFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPI(session.address(), displayRefreshRate, __functionAddress); + } + /** * Get the current display refresh rate. * @@ -191,17 +191,17 @@ public static int nxrGetDisplayRefreshRateFB(XrSession session, long displayRefr * * @param session the {@code XrSession} to query. * @param displayRefreshRate a pointer to a float into which the current display refresh rate will be placed. - */ - @NativeType("XrResult") - public static int xrGetDisplayRefreshRateFB(XrSession session, @NativeType("float *") FloatBuffer displayRefreshRate) { - if (CHECKS) { - check(displayRefreshRate, 1); - } - return nxrGetDisplayRefreshRateFB(session, memAddress(displayRefreshRate)); - } - - // --- [ xrRequestDisplayRefreshRateFB ] --- + */ + @NativeType("XrResult") + public static int xrGetDisplayRefreshRateFB(XrSession session, @NativeType("float *") FloatBuffer displayRefreshRate) { + if (CHECKS) { + check(displayRefreshRate, 1); + } + return nxrGetDisplayRefreshRateFB(session, memAddress(displayRefreshRate)); + } + // --- [ xrRequestDisplayRefreshRateFB ] --- + /** * Request a display refresh rate. * @@ -254,14 +254,14 @@ public static int xrGetDisplayRefreshRateFB(XrSession session, @NativeType("floa * * @param session a valid {@code XrSession} handle. * @param displayRefreshRate {@code 0.0f} or a supported display refresh rate. Supported display refresh rates are indicated by {@link #xrEnumerateDisplayRefreshRatesFB EnumerateDisplayRefreshRatesFB}. - */ - @NativeType("XrResult") - public static int xrRequestDisplayRefreshRateFB(XrSession session, float displayRefreshRate) { - long __functionAddress = session.getCapabilities().xrRequestDisplayRefreshRateFB; - if (CHECKS) { - check(__functionAddress); - } - return callPI(session.address(), displayRefreshRate, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrRequestDisplayRefreshRateFB(XrSession session, float displayRefreshRate) { + long __functionAddress = session.getCapabilities().xrRequestDisplayRefreshRateFB; + if (CHECKS) { + check(__functionAddress); + } + return callPI(session.address(), displayRefreshRate, __functionAddress); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBEyeTrackingSocial.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBEyeTrackingSocial.java index a684d392a9..7691360448 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBEyeTrackingSocial.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBEyeTrackingSocial.java @@ -4,15 +4,15 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import org.lwjgl.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_FB_eye_tracking_social extension. * @@ -23,18 +23,18 @@ *

    Eye tracking data is sensitive personal information and is closely linked to personal privacy and integrity. It is strongly recommended that applications that store or transfer eye tracking data always ask the user for active and specific acceptance to do so.

    * *

    If a runtime supports a permission system to control application access to the eye tracker, then the runtime must set the {@code isValid} field to {@link XR10#XR_FALSE FALSE} on the supplied {@link XrEyeGazeFB} structure until the application has been allowed access to the eye tracker. When the application access has been allowed, the runtime may set {@code isValid} on the supplied {@link XrEyeGazeFB} structure to {@link XR10#XR_TRUE TRUE}.

    - */ -public class FBEyeTrackingSocial { - - /** The extension specification version. */ - public static final int XR_FB_eye_tracking_social_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_FB_EYE_TRACKING_SOCIAL_EXTENSION_NAME = "XR_FB_eye_tracking_social"; - - /** Extends {@code XrObjectType}. */ - public static final int XR_OBJECT_TYPE_EYE_TRACKER_FB = 1000202000; - + */ +public class FBEyeTrackingSocial { + + /** The extension specification version. */ + public static final int XR_FB_eye_tracking_social_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_FB_EYE_TRACKING_SOCIAL_EXTENSION_NAME = "XR_FB_eye_tracking_social"; + + /** Extends {@code XrObjectType}. */ + public static final int XR_OBJECT_TYPE_EYE_TRACKER_FB = 1000202000; + /** * Extends {@code XrStructureType}. * @@ -46,13 +46,13 @@ public class FBEyeTrackingSocial { *
  • {@link #XR_TYPE_EYE_GAZES_FB TYPE_EYE_GAZES_FB}
  • *
  • {@link #XR_TYPE_SYSTEM_EYE_TRACKING_PROPERTIES_FB TYPE_SYSTEM_EYE_TRACKING_PROPERTIES_FB}
  • * - */ + */ public static final int - XR_TYPE_EYE_TRACKER_CREATE_INFO_FB = 1000202001, - XR_TYPE_EYE_GAZES_INFO_FB = 1000202002, - XR_TYPE_EYE_GAZES_FB = 1000202003, - XR_TYPE_SYSTEM_EYE_TRACKING_PROPERTIES_FB = 1000202004; - + XR_TYPE_EYE_TRACKER_CREATE_INFO_FB = 1000202001, + XR_TYPE_EYE_GAZES_INFO_FB = 1000202002, + XR_TYPE_EYE_GAZES_FB = 1000202003, + XR_TYPE_SYSTEM_EYE_TRACKING_PROPERTIES_FB = 1000202004; + /** * XrEyePositionFB - Enumerates eyes. * @@ -72,27 +72,27 @@ public class FBEyeTrackingSocial { *
      *
    • {@link #XR_EYE_POSITION_COUNT_FB EYE_POSITION_COUNT_FB}
    • *
    - */ + */ public static final int - XR_EYE_POSITION_LEFT_FB = 0, - XR_EYE_POSITION_RIGHT_FB = 1, - XR_EYE_POSITION_COUNT_FB = 2; + XR_EYE_POSITION_LEFT_FB = 0, + XR_EYE_POSITION_RIGHT_FB = 1, + XR_EYE_POSITION_COUNT_FB = 2; protected FBEyeTrackingSocial() { throw new UnsupportedOperationException(); - } - - // --- [ xrCreateEyeTrackerFB ] --- - - /** Unsafe version of: {@link #xrCreateEyeTrackerFB CreateEyeTrackerFB} */ - public static int nxrCreateEyeTrackerFB(XrSession session, long createInfo, long eyeTracker) { - long __functionAddress = session.getCapabilities().xrCreateEyeTrackerFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), createInfo, eyeTracker, __functionAddress); - } + } + // --- [ xrCreateEyeTrackerFB ] --- + + /** Unsafe version of: {@link #xrCreateEyeTrackerFB CreateEyeTrackerFB} */ + public static int nxrCreateEyeTrackerFB(XrSession session, long createInfo, long eyeTracker) { + long __functionAddress = session.getCapabilities().xrCreateEyeTrackerFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(session.address(), createInfo, eyeTracker, __functionAddress); + } + /** * Create an eye gaze handle. * @@ -148,17 +148,17 @@ public static int nxrCreateEyeTrackerFB(XrSession session, long createInfo, long * @param session an {@code XrSession} in which the eye tracker will be active. * @param createInfo the {@link XrEyeTrackerCreateInfoFB} used to specify the eye tracker. * @param eyeTracker the returned {@code XrEyeTrackerFB} handle. - */ - @NativeType("XrResult") - public static int xrCreateEyeTrackerFB(XrSession session, @NativeType("XrEyeTrackerCreateInfoFB const *") XrEyeTrackerCreateInfoFB createInfo, @NativeType("XrEyeTrackerFB *") PointerBuffer eyeTracker) { - if (CHECKS) { - check(eyeTracker, 1); - } - return nxrCreateEyeTrackerFB(session, createInfo.address(), memAddress(eyeTracker)); - } - - // --- [ xrDestroyEyeTrackerFB ] --- + */ + @NativeType("XrResult") + public static int xrCreateEyeTrackerFB(XrSession session, @NativeType("XrEyeTrackerCreateInfoFB const *") XrEyeTrackerCreateInfoFB createInfo, @NativeType("XrEyeTrackerFB *") PointerBuffer eyeTracker) { + if (CHECKS) { + check(eyeTracker, 1); + } + return nxrCreateEyeTrackerFB(session, createInfo.address(), memAddress(eyeTracker)); + } + // --- [ xrDestroyEyeTrackerFB ] --- + /** * Destroy an eye gaze handle. * @@ -198,28 +198,28 @@ public static int xrCreateEyeTrackerFB(XrSession session, @NativeType("XrEyeTrac * * * @param eyeTracker an {@code XrEyeTrackerFB} previously created by {@link #xrCreateEyeTrackerFB CreateEyeTrackerFB}. - */ - @NativeType("XrResult") - public static int xrDestroyEyeTrackerFB(XrEyeTrackerFB eyeTracker) { - long __functionAddress = eyeTracker.getCapabilities().xrDestroyEyeTrackerFB; - if (CHECKS) { - check(__functionAddress); - } - return callPI(eyeTracker.address(), __functionAddress); - } - - // --- [ xrGetEyeGazesFB ] --- - - /** Unsafe version of: {@link #xrGetEyeGazesFB GetEyeGazesFB} */ - public static int nxrGetEyeGazesFB(XrEyeTrackerFB eyeTracker, long gazeInfo, long eyeGazes) { - long __functionAddress = eyeTracker.getCapabilities().xrGetEyeGazesFB; - if (CHECKS) { - check(__functionAddress); - XrEyeGazesInfoFB.validate(gazeInfo); - } - return callPPPI(eyeTracker.address(), gazeInfo, eyeGazes, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrDestroyEyeTrackerFB(XrEyeTrackerFB eyeTracker) { + long __functionAddress = eyeTracker.getCapabilities().xrDestroyEyeTrackerFB; + if (CHECKS) { + check(__functionAddress); + } + return callPI(eyeTracker.address(), __functionAddress); + } + // --- [ xrGetEyeGazesFB ] --- + + /** Unsafe version of: {@link #xrGetEyeGazesFB GetEyeGazesFB} */ + public static int nxrGetEyeGazesFB(XrEyeTrackerFB eyeTracker, long gazeInfo, long eyeGazes) { + long __functionAddress = eyeTracker.getCapabilities().xrGetEyeGazesFB; + if (CHECKS) { + check(__functionAddress); + XrEyeGazesInfoFB.validate(gazeInfo); + } + return callPPPI(eyeTracker.address(), gazeInfo, eyeGazes, __functionAddress); + } + /** * Locate eye gaze directions. * @@ -274,10 +274,10 @@ public static int nxrGetEyeGazesFB(XrEyeTrackerFB eyeTracker, long gazeInfo, lon * *

    a pointer to {@link XrEyeGazesFB} receiving the returned eye poses and confidence.

    * @param gazeInfo the information to get eye gaze. - */ - @NativeType("XrResult") - public static int xrGetEyeGazesFB(XrEyeTrackerFB eyeTracker, @NativeType("XrEyeGazesInfoFB const *") XrEyeGazesInfoFB gazeInfo, @NativeType("XrEyeGazesFB *") XrEyeGazesFB eyeGazes) { - return nxrGetEyeGazesFB(eyeTracker, gazeInfo.address(), eyeGazes.address()); - } + */ + @NativeType("XrResult") + public static int xrGetEyeGazesFB(XrEyeTrackerFB eyeTracker, @NativeType("XrEyeGazesInfoFB const *") XrEyeGazesInfoFB gazeInfo, @NativeType("XrEyeGazesFB *") XrEyeGazesFB eyeGazes) { + return nxrGetEyeGazesFB(eyeTracker, gazeInfo.address(), eyeGazes.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFaceTracking.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFaceTracking.java index 2d73143efa..7a7d9d86e5 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFaceTracking.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFaceTracking.java @@ -4,15 +4,15 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import org.lwjgl.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_FB_face_tracking extension. * @@ -23,18 +23,18 @@ *

    If a runtime supports a permission system to control application access to the face tracker, then the runtime must set the {@code isValid} field to {@link XR10#XR_FALSE FALSE} on the supplied {@link XrFaceExpressionStatusFB} structure until the user allows the application to access the face tracker. When the application access has been allowed, the runtime may set {@code isValid} on the supplied {@link XrFaceExpressionStatusFB} structure to {@link XR10#XR_TRUE TRUE}.

    * *

    Some permission systems may control access to the eye tracking separately from access to the face tracking, even though the eyes are part of the face. In case the user denied tracking of the eyes, yet, allowed tracking of the face, then the runtime must set the {@code isEyeFollowingBlendshapesValid} field to {@link XR10#XR_FALSE FALSE} on the supplied {@link XrFaceExpressionStatusFB} for indicating that eye tracking data is not available, but at the same time may set the {@code isValid} field to {@link XR10#XR_TRUE TRUE} on the supplied {@link XrFaceExpressionStatusFB} for indicating that another part of the face is tracked properly.

    - */ -public class FBFaceTracking { - - /** The extension specification version. */ - public static final int XR_FB_face_tracking_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_FB_FACE_TRACKING_EXTENSION_NAME = "XR_FB_face_tracking"; - - /** Extends {@code XrObjectType}. */ - public static final int XR_OBJECT_TYPE_FACE_TRACKER_FB = 1000201000; - + */ +public class FBFaceTracking { + + /** The extension specification version. */ + public static final int XR_FB_face_tracking_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_FB_FACE_TRACKING_EXTENSION_NAME = "XR_FB_face_tracking"; + + /** Extends {@code XrObjectType}. */ + public static final int XR_OBJECT_TYPE_FACE_TRACKER_FB = 1000201000; + /** * Extends {@code XrStructureType}. * @@ -46,13 +46,13 @@ public class FBFaceTracking { *
  • {@link #XR_TYPE_FACE_EXPRESSION_INFO_FB TYPE_FACE_EXPRESSION_INFO_FB}
  • *
  • {@link #XR_TYPE_FACE_EXPRESSION_WEIGHTS_FB TYPE_FACE_EXPRESSION_WEIGHTS_FB}
  • * - */ + */ public static final int - XR_TYPE_SYSTEM_FACE_TRACKING_PROPERTIES_FB = 1000201004, - XR_TYPE_FACE_TRACKER_CREATE_INFO_FB = 1000201005, - XR_TYPE_FACE_EXPRESSION_INFO_FB = 1000201002, - XR_TYPE_FACE_EXPRESSION_WEIGHTS_FB = 1000201006; - + XR_TYPE_SYSTEM_FACE_TRACKING_PROPERTIES_FB = 1000201004, + XR_TYPE_FACE_TRACKER_CREATE_INFO_FB = 1000201005, + XR_TYPE_FACE_EXPRESSION_INFO_FB = 1000201002, + XR_TYPE_FACE_EXPRESSION_WEIGHTS_FB = 1000201006; + /** * XrFaceExpressionFB - The name of blend shapes that can be tracked * @@ -124,73 +124,73 @@ public class FBFaceTracking { *
  • {@link #XR_FACE_EXPRESSION_UPPER_LIP_RAISER_R_FB FACE_EXPRESSION_UPPER_LIP_RAISER_R_FB}
  • *
  • {@link #XR_FACE_EXPRESSION_COUNT_FB FACE_EXPRESSION_COUNT_FB}
  • * - */ + */ public static final int - XR_FACE_EXPRESSION_BROW_LOWERER_L_FB = 0, - XR_FACE_EXPRESSION_BROW_LOWERER_R_FB = 1, - XR_FACE_EXPRESSION_CHEEK_PUFF_L_FB = 2, - XR_FACE_EXPRESSION_CHEEK_PUFF_R_FB = 3, - XR_FACE_EXPRESSION_CHEEK_RAISER_L_FB = 4, - XR_FACE_EXPRESSION_CHEEK_RAISER_R_FB = 5, - XR_FACE_EXPRESSION_CHEEK_SUCK_L_FB = 6, - XR_FACE_EXPRESSION_CHEEK_SUCK_R_FB = 7, - XR_FACE_EXPRESSION_CHIN_RAISER_B_FB = 8, - XR_FACE_EXPRESSION_CHIN_RAISER_T_FB = 9, - XR_FACE_EXPRESSION_DIMPLER_L_FB = 10, - XR_FACE_EXPRESSION_DIMPLER_R_FB = 11, - XR_FACE_EXPRESSION_EYES_CLOSED_L_FB = 12, - XR_FACE_EXPRESSION_EYES_CLOSED_R_FB = 13, - XR_FACE_EXPRESSION_EYES_LOOK_DOWN_L_FB = 14, - XR_FACE_EXPRESSION_EYES_LOOK_DOWN_R_FB = 15, - XR_FACE_EXPRESSION_EYES_LOOK_LEFT_L_FB = 16, - XR_FACE_EXPRESSION_EYES_LOOK_LEFT_R_FB = 17, - XR_FACE_EXPRESSION_EYES_LOOK_RIGHT_L_FB = 18, - XR_FACE_EXPRESSION_EYES_LOOK_RIGHT_R_FB = 19, - XR_FACE_EXPRESSION_EYES_LOOK_UP_L_FB = 20, - XR_FACE_EXPRESSION_EYES_LOOK_UP_R_FB = 21, - XR_FACE_EXPRESSION_INNER_BROW_RAISER_L_FB = 22, - XR_FACE_EXPRESSION_INNER_BROW_RAISER_R_FB = 23, - XR_FACE_EXPRESSION_JAW_DROP_FB = 24, - XR_FACE_EXPRESSION_JAW_SIDEWAYS_LEFT_FB = 25, - XR_FACE_EXPRESSION_JAW_SIDEWAYS_RIGHT_FB = 26, - XR_FACE_EXPRESSION_JAW_THRUST_FB = 27, - XR_FACE_EXPRESSION_LID_TIGHTENER_L_FB = 28, - XR_FACE_EXPRESSION_LID_TIGHTENER_R_FB = 29, - XR_FACE_EXPRESSION_LIP_CORNER_DEPRESSOR_L_FB = 30, - XR_FACE_EXPRESSION_LIP_CORNER_DEPRESSOR_R_FB = 31, - XR_FACE_EXPRESSION_LIP_CORNER_PULLER_L_FB = 32, - XR_FACE_EXPRESSION_LIP_CORNER_PULLER_R_FB = 33, - XR_FACE_EXPRESSION_LIP_FUNNELER_LB_FB = 34, - XR_FACE_EXPRESSION_LIP_FUNNELER_LT_FB = 35, - XR_FACE_EXPRESSION_LIP_FUNNELER_RB_FB = 36, - XR_FACE_EXPRESSION_LIP_FUNNELER_RT_FB = 37, - XR_FACE_EXPRESSION_LIP_PRESSOR_L_FB = 38, - XR_FACE_EXPRESSION_LIP_PRESSOR_R_FB = 39, - XR_FACE_EXPRESSION_LIP_PUCKER_L_FB = 40, - XR_FACE_EXPRESSION_LIP_PUCKER_R_FB = 41, - XR_FACE_EXPRESSION_LIP_STRETCHER_L_FB = 42, - XR_FACE_EXPRESSION_LIP_STRETCHER_R_FB = 43, - XR_FACE_EXPRESSION_LIP_SUCK_LB_FB = 44, - XR_FACE_EXPRESSION_LIP_SUCK_LT_FB = 45, - XR_FACE_EXPRESSION_LIP_SUCK_RB_FB = 46, - XR_FACE_EXPRESSION_LIP_SUCK_RT_FB = 47, - XR_FACE_EXPRESSION_LIP_TIGHTENER_L_FB = 48, - XR_FACE_EXPRESSION_LIP_TIGHTENER_R_FB = 49, - XR_FACE_EXPRESSION_LIPS_TOWARD_FB = 50, - XR_FACE_EXPRESSION_LOWER_LIP_DEPRESSOR_L_FB = 51, - XR_FACE_EXPRESSION_LOWER_LIP_DEPRESSOR_R_FB = 52, - XR_FACE_EXPRESSION_MOUTH_LEFT_FB = 53, - XR_FACE_EXPRESSION_MOUTH_RIGHT_FB = 54, - XR_FACE_EXPRESSION_NOSE_WRINKLER_L_FB = 55, - XR_FACE_EXPRESSION_NOSE_WRINKLER_R_FB = 56, - XR_FACE_EXPRESSION_OUTER_BROW_RAISER_L_FB = 57, - XR_FACE_EXPRESSION_OUTER_BROW_RAISER_R_FB = 58, - XR_FACE_EXPRESSION_UPPER_LID_RAISER_L_FB = 59, - XR_FACE_EXPRESSION_UPPER_LID_RAISER_R_FB = 60, - XR_FACE_EXPRESSION_UPPER_LIP_RAISER_L_FB = 61, - XR_FACE_EXPRESSION_UPPER_LIP_RAISER_R_FB = 62, - XR_FACE_EXPRESSION_COUNT_FB = 63; - + XR_FACE_EXPRESSION_BROW_LOWERER_L_FB = 0, + XR_FACE_EXPRESSION_BROW_LOWERER_R_FB = 1, + XR_FACE_EXPRESSION_CHEEK_PUFF_L_FB = 2, + XR_FACE_EXPRESSION_CHEEK_PUFF_R_FB = 3, + XR_FACE_EXPRESSION_CHEEK_RAISER_L_FB = 4, + XR_FACE_EXPRESSION_CHEEK_RAISER_R_FB = 5, + XR_FACE_EXPRESSION_CHEEK_SUCK_L_FB = 6, + XR_FACE_EXPRESSION_CHEEK_SUCK_R_FB = 7, + XR_FACE_EXPRESSION_CHIN_RAISER_B_FB = 8, + XR_FACE_EXPRESSION_CHIN_RAISER_T_FB = 9, + XR_FACE_EXPRESSION_DIMPLER_L_FB = 10, + XR_FACE_EXPRESSION_DIMPLER_R_FB = 11, + XR_FACE_EXPRESSION_EYES_CLOSED_L_FB = 12, + XR_FACE_EXPRESSION_EYES_CLOSED_R_FB = 13, + XR_FACE_EXPRESSION_EYES_LOOK_DOWN_L_FB = 14, + XR_FACE_EXPRESSION_EYES_LOOK_DOWN_R_FB = 15, + XR_FACE_EXPRESSION_EYES_LOOK_LEFT_L_FB = 16, + XR_FACE_EXPRESSION_EYES_LOOK_LEFT_R_FB = 17, + XR_FACE_EXPRESSION_EYES_LOOK_RIGHT_L_FB = 18, + XR_FACE_EXPRESSION_EYES_LOOK_RIGHT_R_FB = 19, + XR_FACE_EXPRESSION_EYES_LOOK_UP_L_FB = 20, + XR_FACE_EXPRESSION_EYES_LOOK_UP_R_FB = 21, + XR_FACE_EXPRESSION_INNER_BROW_RAISER_L_FB = 22, + XR_FACE_EXPRESSION_INNER_BROW_RAISER_R_FB = 23, + XR_FACE_EXPRESSION_JAW_DROP_FB = 24, + XR_FACE_EXPRESSION_JAW_SIDEWAYS_LEFT_FB = 25, + XR_FACE_EXPRESSION_JAW_SIDEWAYS_RIGHT_FB = 26, + XR_FACE_EXPRESSION_JAW_THRUST_FB = 27, + XR_FACE_EXPRESSION_LID_TIGHTENER_L_FB = 28, + XR_FACE_EXPRESSION_LID_TIGHTENER_R_FB = 29, + XR_FACE_EXPRESSION_LIP_CORNER_DEPRESSOR_L_FB = 30, + XR_FACE_EXPRESSION_LIP_CORNER_DEPRESSOR_R_FB = 31, + XR_FACE_EXPRESSION_LIP_CORNER_PULLER_L_FB = 32, + XR_FACE_EXPRESSION_LIP_CORNER_PULLER_R_FB = 33, + XR_FACE_EXPRESSION_LIP_FUNNELER_LB_FB = 34, + XR_FACE_EXPRESSION_LIP_FUNNELER_LT_FB = 35, + XR_FACE_EXPRESSION_LIP_FUNNELER_RB_FB = 36, + XR_FACE_EXPRESSION_LIP_FUNNELER_RT_FB = 37, + XR_FACE_EXPRESSION_LIP_PRESSOR_L_FB = 38, + XR_FACE_EXPRESSION_LIP_PRESSOR_R_FB = 39, + XR_FACE_EXPRESSION_LIP_PUCKER_L_FB = 40, + XR_FACE_EXPRESSION_LIP_PUCKER_R_FB = 41, + XR_FACE_EXPRESSION_LIP_STRETCHER_L_FB = 42, + XR_FACE_EXPRESSION_LIP_STRETCHER_R_FB = 43, + XR_FACE_EXPRESSION_LIP_SUCK_LB_FB = 44, + XR_FACE_EXPRESSION_LIP_SUCK_LT_FB = 45, + XR_FACE_EXPRESSION_LIP_SUCK_RB_FB = 46, + XR_FACE_EXPRESSION_LIP_SUCK_RT_FB = 47, + XR_FACE_EXPRESSION_LIP_TIGHTENER_L_FB = 48, + XR_FACE_EXPRESSION_LIP_TIGHTENER_R_FB = 49, + XR_FACE_EXPRESSION_LIPS_TOWARD_FB = 50, + XR_FACE_EXPRESSION_LOWER_LIP_DEPRESSOR_L_FB = 51, + XR_FACE_EXPRESSION_LOWER_LIP_DEPRESSOR_R_FB = 52, + XR_FACE_EXPRESSION_MOUTH_LEFT_FB = 53, + XR_FACE_EXPRESSION_MOUTH_RIGHT_FB = 54, + XR_FACE_EXPRESSION_NOSE_WRINKLER_L_FB = 55, + XR_FACE_EXPRESSION_NOSE_WRINKLER_R_FB = 56, + XR_FACE_EXPRESSION_OUTER_BROW_RAISER_L_FB = 57, + XR_FACE_EXPRESSION_OUTER_BROW_RAISER_R_FB = 58, + XR_FACE_EXPRESSION_UPPER_LID_RAISER_L_FB = 59, + XR_FACE_EXPRESSION_UPPER_LID_RAISER_R_FB = 60, + XR_FACE_EXPRESSION_UPPER_LIP_RAISER_L_FB = 61, + XR_FACE_EXPRESSION_UPPER_LIP_RAISER_R_FB = 62, + XR_FACE_EXPRESSION_COUNT_FB = 63; + /** * XrFaceExpressionSetFB - The set of blend shapes of a facial expression to track. * @@ -203,9 +203,9 @@ public class FBFaceTracking { *
    See Also
    * *

    {@link XrFaceTrackerCreateInfoFB}

    - */ - public static final int XR_FACE_EXPRESSION_SET_DEFAULT_FB = 0; - + */ + public static final int XR_FACE_EXPRESSION_SET_DEFAULT_FB = 0; + /** * XrFaceConfidenceFB - The name of face areas where confidence is known * @@ -220,27 +220,27 @@ public class FBFaceTracking { *
  • {@link #XR_FACE_CONFIDENCE_UPPER_FACE_FB FACE_CONFIDENCE_UPPER_FACE_FB}
  • *
  • {@link #XR_FACE_CONFIDENCE_COUNT_FB FACE_CONFIDENCE_COUNT_FB}
  • * - */ + */ public static final int - XR_FACE_CONFIDENCE_LOWER_FACE_FB = 0, - XR_FACE_CONFIDENCE_UPPER_FACE_FB = 1, - XR_FACE_CONFIDENCE_COUNT_FB = 2; + XR_FACE_CONFIDENCE_LOWER_FACE_FB = 0, + XR_FACE_CONFIDENCE_UPPER_FACE_FB = 1, + XR_FACE_CONFIDENCE_COUNT_FB = 2; protected FBFaceTracking() { throw new UnsupportedOperationException(); - } - - // --- [ xrCreateFaceTrackerFB ] --- - - /** Unsafe version of: {@link #xrCreateFaceTrackerFB CreateFaceTrackerFB} */ - public static int nxrCreateFaceTrackerFB(XrSession session, long createInfo, long faceTracker) { - long __functionAddress = session.getCapabilities().xrCreateFaceTrackerFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), createInfo, faceTracker, __functionAddress); - } + } + // --- [ xrCreateFaceTrackerFB ] --- + + /** Unsafe version of: {@link #xrCreateFaceTrackerFB CreateFaceTrackerFB} */ + public static int nxrCreateFaceTrackerFB(XrSession session, long createInfo, long faceTracker) { + long __functionAddress = session.getCapabilities().xrCreateFaceTrackerFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(session.address(), createInfo, faceTracker, __functionAddress); + } + /** * Create a face tracking handle. * @@ -298,17 +298,17 @@ public static int nxrCreateFaceTrackerFB(XrSession session, long createInfo, lon * @param session an {@code XrSession} in which the face tracker will be active. * @param createInfo the {@link XrFaceTrackerCreateInfoFB} used to specify the face tracker. * @param faceTracker the returned {@code XrFaceTrackerFB} handle. - */ - @NativeType("XrResult") - public static int xrCreateFaceTrackerFB(XrSession session, @NativeType("XrFaceTrackerCreateInfoFB const *") XrFaceTrackerCreateInfoFB createInfo, @NativeType("XrFaceTrackerFB *") PointerBuffer faceTracker) { - if (CHECKS) { - check(faceTracker, 1); - } - return nxrCreateFaceTrackerFB(session, createInfo.address(), memAddress(faceTracker)); - } - - // --- [ xrDestroyFaceTrackerFB ] --- + */ + @NativeType("XrResult") + public static int xrCreateFaceTrackerFB(XrSession session, @NativeType("XrFaceTrackerCreateInfoFB const *") XrFaceTrackerCreateInfoFB createInfo, @NativeType("XrFaceTrackerFB *") PointerBuffer faceTracker) { + if (CHECKS) { + check(faceTracker, 1); + } + return nxrCreateFaceTrackerFB(session, createInfo.address(), memAddress(faceTracker)); + } + // --- [ xrDestroyFaceTrackerFB ] --- + /** * Destroy a facial expressions handle. * @@ -348,27 +348,27 @@ public static int xrCreateFaceTrackerFB(XrSession session, @NativeType("XrFaceTr * * * @param faceTracker an {@code XrFaceTrackerFB} previously created by {@link #xrCreateFaceTrackerFB CreateFaceTrackerFB}. - */ - @NativeType("XrResult") - public static int xrDestroyFaceTrackerFB(XrFaceTrackerFB faceTracker) { - long __functionAddress = faceTracker.getCapabilities().xrDestroyFaceTrackerFB; - if (CHECKS) { - check(__functionAddress); - } - return callPI(faceTracker.address(), __functionAddress); - } - - // --- [ xrGetFaceExpressionWeightsFB ] --- - - /** Unsafe version of: {@link #xrGetFaceExpressionWeightsFB GetFaceExpressionWeightsFB} */ - public static int nxrGetFaceExpressionWeightsFB(XrFaceTrackerFB faceTracker, long expressionInfo, long expressionWeights) { - long __functionAddress = faceTracker.getCapabilities().xrGetFaceExpressionWeightsFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(faceTracker.address(), expressionInfo, expressionWeights, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrDestroyFaceTrackerFB(XrFaceTrackerFB faceTracker) { + long __functionAddress = faceTracker.getCapabilities().xrDestroyFaceTrackerFB; + if (CHECKS) { + check(__functionAddress); + } + return callPI(faceTracker.address(), __functionAddress); + } + // --- [ xrGetFaceExpressionWeightsFB ] --- + + /** Unsafe version of: {@link #xrGetFaceExpressionWeightsFB GetFaceExpressionWeightsFB} */ + public static int nxrGetFaceExpressionWeightsFB(XrFaceTrackerFB faceTracker, long expressionInfo, long expressionWeights) { + long __functionAddress = faceTracker.getCapabilities().xrGetFaceExpressionWeightsFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(faceTracker.address(), expressionInfo, expressionWeights, __functionAddress); + } + /** * Obtain blend shapes of facial expression. * @@ -418,10 +418,10 @@ public static int nxrGetFaceExpressionWeightsFB(XrFaceTrackerFB faceTracker, lon * @param faceTracker an {@code XrFaceTrackerFB} previously created by {@link #xrCreateFaceTrackerFB CreateFaceTrackerFB}. * @param expressionInfo a pointer to {@link XrFaceExpressionInfoFB} describing information to obtain face expression. * @param expressionWeights a pointer to {@link XrFaceExpressionWeightsFB} receiving the returned facial expression weights. - */ - @NativeType("XrResult") - public static int xrGetFaceExpressionWeightsFB(XrFaceTrackerFB faceTracker, @NativeType("XrFaceExpressionInfoFB const *") XrFaceExpressionInfoFB expressionInfo, @NativeType("XrFaceExpressionWeightsFB *") XrFaceExpressionWeightsFB expressionWeights) { - return nxrGetFaceExpressionWeightsFB(faceTracker, expressionInfo.address(), expressionWeights.address()); - } + */ + @NativeType("XrResult") + public static int xrGetFaceExpressionWeightsFB(XrFaceTrackerFB faceTracker, @NativeType("XrFaceExpressionInfoFB const *") XrFaceExpressionInfoFB expressionInfo, @NativeType("XrFaceExpressionWeightsFB *") XrFaceExpressionWeightsFB expressionWeights) { + return nxrGetFaceExpressionWeightsFB(faceTracker, expressionInfo.address(), expressionWeights.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFoveation.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFoveation.java index 9f86f1e11d..d39f8b51d4 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFoveation.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFoveation.java @@ -4,15 +4,15 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import org.lwjgl.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_FB_foveation extension. * @@ -25,19 +25,19 @@ *
  • An application to request foveation profiles supported by the runtime and apply them to foveation-supported swapchains.
  • * * - *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo} {@code enabledExtensionNames} parameter as indicated in the extensions section.

    - */ -public class FBFoveation { - - /** The extension specification version. */ - public static final int XR_FB_foveation_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_FB_FOVEATION_EXTENSION_NAME = "XR_FB_foveation"; - - /** Extends {@code XrObjectType}. */ - public static final int XR_OBJECT_TYPE_FOVEATION_PROFILE_FB = 1000114000; - + *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo} {@code enabledExtensionNames} parameter as indicated in the extensions section.

    + */ +public class FBFoveation { + + /** The extension specification version. */ + public static final int XR_FB_foveation_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_FB_FOVEATION_EXTENSION_NAME = "XR_FB_foveation"; + + /** Extends {@code XrObjectType}. */ + public static final int XR_OBJECT_TYPE_FOVEATION_PROFILE_FB = 1000114000; + /** * Extends {@code XrStructureType}. * @@ -48,12 +48,12 @@ public class FBFoveation { *
  • {@link #XR_TYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FB TYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FB}
  • *
  • {@link #XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB TYPE_SWAPCHAIN_STATE_FOVEATION_FB}
  • * - */ + */ public static final int - XR_TYPE_FOVEATION_PROFILE_CREATE_INFO_FB = 1000114000, - XR_TYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FB = 1000114001, - XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB = 1000114002; - + XR_TYPE_FOVEATION_PROFILE_CREATE_INFO_FB = 1000114000, + XR_TYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FB = 1000114001, + XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB = 1000114002; + /** * XrSwapchainCreateFoveationFlagBitsFB - XrSwapchainCreateFoveationFlagBitsFB * @@ -63,26 +63,26 @@ public class FBFoveation { *
  • {@link #XR_SWAPCHAIN_CREATE_FOVEATION_SCALED_BIN_BIT_FB SWAPCHAIN_CREATE_FOVEATION_SCALED_BIN_BIT_FB} — Explicitly create the swapchain with scaled bin foveation support. The application must ensure that the swapchain is using the OpenGL graphics API and that the QCOM_texture_foveated extension is supported and enabled.
  • *
  • {@link #XR_SWAPCHAIN_CREATE_FOVEATION_FRAGMENT_DENSITY_MAP_BIT_FB SWAPCHAIN_CREATE_FOVEATION_FRAGMENT_DENSITY_MAP_BIT_FB} — Explicitly create the swapchain with fragment density map foveation support. The application must ensure that the swapchain is using the Vulkan graphics API and that the VK_EXT_fragment_density_map extension is supported and enabled.
  • * - */ + */ public static final int - XR_SWAPCHAIN_CREATE_FOVEATION_SCALED_BIN_BIT_FB = 0x1, - XR_SWAPCHAIN_CREATE_FOVEATION_FRAGMENT_DENSITY_MAP_BIT_FB = 0x2; + XR_SWAPCHAIN_CREATE_FOVEATION_SCALED_BIN_BIT_FB = 0x1, + XR_SWAPCHAIN_CREATE_FOVEATION_FRAGMENT_DENSITY_MAP_BIT_FB = 0x2; protected FBFoveation() { throw new UnsupportedOperationException(); - } - - // --- [ xrCreateFoveationProfileFB ] --- - - /** Unsafe version of: {@link #xrCreateFoveationProfileFB CreateFoveationProfileFB} */ - public static int nxrCreateFoveationProfileFB(XrSession session, long createInfo, long profile) { - long __functionAddress = session.getCapabilities().xrCreateFoveationProfileFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), createInfo, profile, __functionAddress); - } - + } + + // --- [ xrCreateFoveationProfileFB ] --- + + /** Unsafe version of: {@link #xrCreateFoveationProfileFB CreateFoveationProfileFB} */ + public static int nxrCreateFoveationProfileFB(XrSession session, long createInfo, long profile) { + long __functionAddress = session.getCapabilities().xrCreateFoveationProfileFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(session.address(), createInfo, profile, __functionAddress); + } + /** * Create a foveation profile. * @@ -137,17 +137,17 @@ public static int nxrCreateFoveationProfileFB(XrSession session, long createInfo * @param session the {@code XrSession} that created the swapchains to which this foveation profile will be applied. * @param createInfo a pointer to an {@link XrFoveationProfileCreateInfoFB} structure containing parameters to be used to create the foveation profile. * @param profile a pointer to a handle in which the created {@code XrFoveationProfileFB} is returned. - */ - @NativeType("XrResult") - public static int xrCreateFoveationProfileFB(XrSession session, @NativeType("XrFoveationProfileCreateInfoFB const *") XrFoveationProfileCreateInfoFB createInfo, @NativeType("XrFoveationProfileFB *") PointerBuffer profile) { - if (CHECKS) { - check(profile, 1); - } - return nxrCreateFoveationProfileFB(session, createInfo.address(), memAddress(profile)); - } - - // --- [ xrDestroyFoveationProfileFB ] --- - + */ + @NativeType("XrResult") + public static int xrCreateFoveationProfileFB(XrSession session, @NativeType("XrFoveationProfileCreateInfoFB const *") XrFoveationProfileCreateInfoFB createInfo, @NativeType("XrFoveationProfileFB *") PointerBuffer profile) { + if (CHECKS) { + check(profile, 1); + } + return nxrCreateFoveationProfileFB(session, createInfo.address(), memAddress(profile)); + } + + // --- [ xrDestroyFoveationProfileFB ] --- + /** * Destroy a foveation profile. * @@ -192,14 +192,14 @@ public static int xrCreateFoveationProfileFB(XrSession session, @NativeType("XrF * * * @param profile the {@code XrFoveationProfileFB} to destroy. - */ - @NativeType("XrResult") - public static int xrDestroyFoveationProfileFB(XrFoveationProfileFB profile) { - long __functionAddress = profile.getCapabilities().xrDestroyFoveationProfileFB; - if (CHECKS) { - check(__functionAddress); - } - return callPI(profile.address(), __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrDestroyFoveationProfileFB(XrFoveationProfileFB profile) { + long __functionAddress = profile.getCapabilities().xrDestroyFoveationProfileFB; + if (CHECKS) { + check(__functionAddress); + } + return callPI(profile.address(), __functionAddress); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFoveationConfiguration.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFoveationConfiguration.java index 5ef4923004..681d303a6f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFoveationConfiguration.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFoveationConfiguration.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_FB_foveation_configuration extension. * @@ -16,19 +16,19 @@ *
  • An application to request foveation profiles generated by the runtime for the current HMD.
  • * * - *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo} {@code enabledExtensionNames} parameter as indicated in the extensions section.

    - */ -public final class FBFoveationConfiguration { - - /** The extension specification version. */ - public static final int XR_FB_foveation_configuration_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_FB_FOVEATION_CONFIGURATION_EXTENSION_NAME = "XR_FB_foveation_configuration"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_FOVEATION_LEVEL_PROFILE_CREATE_INFO_FB = 1000115000; - + *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo} {@code enabledExtensionNames} parameter as indicated in the extensions section.

    + */ +public final class FBFoveationConfiguration { + + /** The extension specification version. */ + public static final int XR_FB_foveation_configuration_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_FB_FOVEATION_CONFIGURATION_EXTENSION_NAME = "XR_FB_foveation_configuration"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_FOVEATION_LEVEL_PROFILE_CREATE_INFO_FB = 1000115000; + /** * XrFoveationLevelFB - Foveation levels * @@ -44,13 +44,13 @@ public final class FBFoveationConfiguration { *
    See Also
    * *

    {@link XrFoveationLevelProfileCreateInfoFB}

    - */ + */ public static final int - XR_FOVEATION_LEVEL_NONE_FB = 0, - XR_FOVEATION_LEVEL_LOW_FB = 1, - XR_FOVEATION_LEVEL_MEDIUM_FB = 2, - XR_FOVEATION_LEVEL_HIGH_FB = 3; - + XR_FOVEATION_LEVEL_NONE_FB = 0, + XR_FOVEATION_LEVEL_LOW_FB = 1, + XR_FOVEATION_LEVEL_MEDIUM_FB = 2, + XR_FOVEATION_LEVEL_HIGH_FB = 3; + /** * XrFoveationDynamicFB - Dynamic foveation settings * @@ -64,11 +64,11 @@ public final class FBFoveationConfiguration { *
    See Also
    * *

    {@link XrFoveationLevelProfileCreateInfoFB}

    - */ + */ public static final int - XR_FOVEATION_DYNAMIC_DISABLED_FB = 0, - XR_FOVEATION_DYNAMIC_LEVEL_ENABLED_FB = 1; + XR_FOVEATION_DYNAMIC_DISABLED_FB = 0, + XR_FOVEATION_DYNAMIC_LEVEL_ENABLED_FB = 1; - private FBFoveationConfiguration() {} + private FBFoveationConfiguration() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFoveationVulkan.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFoveationVulkan.java index 37d99e1a8f..a1773c2b29 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFoveationVulkan.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBFoveationVulkan.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_FB_foveation_vulkan extension. * @@ -16,19 +16,19 @@ *
  • An application to obtain foveation textures or constructs needed for foveated rendering in Vulkan.
  • * * - *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo} {@code enabledExtensionNames} parameter as indicated in the extensions section.

    - */ -public final class FBFoveationVulkan { - - /** The extension specification version. */ - public static final int XR_FB_foveation_vulkan_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_FB_FOVEATION_VULKAN_EXTENSION_NAME = "XR_FB_foveation_vulkan"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_SWAPCHAIN_IMAGE_FOVEATION_VULKAN_FB = 1000160000; + *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo} {@code enabledExtensionNames} parameter as indicated in the extensions section.

    + */ +public final class FBFoveationVulkan { + + /** The extension specification version. */ + public static final int XR_FB_foveation_vulkan_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_FB_FOVEATION_VULKAN_EXTENSION_NAME = "XR_FB_foveation_vulkan"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_SWAPCHAIN_IMAGE_FOVEATION_VULKAN_FB = 1000160000; - private FBFoveationVulkan() {} + private FBFoveationVulkan() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHandTrackingAim.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHandTrackingAim.java index 2641377d9f..072fc8ec1b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHandTrackingAim.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHandTrackingAim.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_FB_hand_tracking_aim extension. * @@ -15,18 +15,18 @@ *
      *
    • An application to get a set of basic gesture states for the hand when using the {@link EXTHandTracking XR_EXT_hand_tracking} extension.
    • *
    - */ -public final class FBHandTrackingAim { - - /** The extension specification version. */ - public static final int XR_FB_hand_tracking_aim_SPEC_VERSION = 2; - - /** The extension name. */ - public static final String XR_FB_HAND_TRACKING_AIM_EXTENSION_NAME = "XR_FB_hand_tracking_aim"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_HAND_TRACKING_AIM_STATE_FB = 1000111001; - + */ +public final class FBHandTrackingAim { + + /** The extension specification version. */ + public static final int XR_FB_hand_tracking_aim_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_FB_HAND_TRACKING_AIM_EXTENSION_NAME = "XR_FB_hand_tracking_aim"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_HAND_TRACKING_AIM_STATE_FB = 1000111001; + /** * XrHandTrackingAimFlagBitsFB - XrHandTrackingAimFlagBitsFB * @@ -43,18 +43,18 @@ public final class FBHandTrackingAim { *
  • {@link #XR_HAND_TRACKING_AIM_DOMINANT_HAND_BIT_FB HAND_TRACKING_AIM_DOMINANT_HAND_BIT_FB} — Hand is currently marked as dominant for the system
  • *
  • {@link #XR_HAND_TRACKING_AIM_MENU_PRESSED_BIT_FB HAND_TRACKING_AIM_MENU_PRESSED_BIT_FB} — System menu gesture is active
  • * - */ + */ public static final int - XR_HAND_TRACKING_AIM_COMPUTED_BIT_FB = 0x1, - XR_HAND_TRACKING_AIM_VALID_BIT_FB = 0x2, - XR_HAND_TRACKING_AIM_INDEX_PINCHING_BIT_FB = 0x4, - XR_HAND_TRACKING_AIM_MIDDLE_PINCHING_BIT_FB = 0x8, - XR_HAND_TRACKING_AIM_RING_PINCHING_BIT_FB = 0x10, - XR_HAND_TRACKING_AIM_LITTLE_PINCHING_BIT_FB = 0x20, - XR_HAND_TRACKING_AIM_SYSTEM_GESTURE_BIT_FB = 0x40, - XR_HAND_TRACKING_AIM_DOMINANT_HAND_BIT_FB = 0x80, - XR_HAND_TRACKING_AIM_MENU_PRESSED_BIT_FB = 0x100; + XR_HAND_TRACKING_AIM_COMPUTED_BIT_FB = 0x1, + XR_HAND_TRACKING_AIM_VALID_BIT_FB = 0x2, + XR_HAND_TRACKING_AIM_INDEX_PINCHING_BIT_FB = 0x4, + XR_HAND_TRACKING_AIM_MIDDLE_PINCHING_BIT_FB = 0x8, + XR_HAND_TRACKING_AIM_RING_PINCHING_BIT_FB = 0x10, + XR_HAND_TRACKING_AIM_LITTLE_PINCHING_BIT_FB = 0x20, + XR_HAND_TRACKING_AIM_SYSTEM_GESTURE_BIT_FB = 0x40, + XR_HAND_TRACKING_AIM_DOMINANT_HAND_BIT_FB = 0x80, + XR_HAND_TRACKING_AIM_MENU_PRESSED_BIT_FB = 0x100; - private FBHandTrackingAim() {} + private FBHandTrackingAim() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHandTrackingCapsules.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHandTrackingCapsules.java index c78dc2b596..d85db68d2b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHandTrackingCapsules.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHandTrackingCapsules.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_FB_hand_tracking_capsules extension. * @@ -15,30 +15,30 @@ *
      *
    • An application to get a list of capsules that represent the volume of the hand when using the {@link EXTHandTracking XR_EXT_hand_tracking} extension.
    • *
    - */ -public final class FBHandTrackingCapsules { - - /** The extension specification version. */ - public static final int XR_FB_hand_tracking_capsules_SPEC_VERSION = 3; - - /** The extension name. */ - public static final String XR_FB_HAND_TRACKING_CAPSULES_EXTENSION_NAME = "XR_FB_hand_tracking_capsules"; - - /** XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB */ - public static final int XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB = 2; - - /** XR_HAND_TRACKING_CAPSULE_COUNT_FB */ - public static final int XR_HAND_TRACKING_CAPSULE_COUNT_FB = 19; - - /** XR_FB_HAND_TRACKING_CAPSULE_POINT_COUNT */ - public static final int XR_FB_HAND_TRACKING_CAPSULE_POINT_COUNT = 2; - - /** XR_FB_HAND_TRACKING_CAPSULE_COUNT */ - public static final int XR_FB_HAND_TRACKING_CAPSULE_COUNT = 19; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_HAND_TRACKING_CAPSULES_STATE_FB = 1000112000; - - private FBHandTrackingCapsules() {} + */ +public final class FBHandTrackingCapsules { + + /** The extension specification version. */ + public static final int XR_FB_hand_tracking_capsules_SPEC_VERSION = 3; + + /** The extension name. */ + public static final String XR_FB_HAND_TRACKING_CAPSULES_EXTENSION_NAME = "XR_FB_hand_tracking_capsules"; + + /** XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB */ + public static final int XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB = 2; + + /** XR_HAND_TRACKING_CAPSULE_COUNT_FB */ + public static final int XR_HAND_TRACKING_CAPSULE_COUNT_FB = 19; + + /** XR_FB_HAND_TRACKING_CAPSULE_POINT_COUNT */ + public static final int XR_FB_HAND_TRACKING_CAPSULE_POINT_COUNT = 2; + + /** XR_FB_HAND_TRACKING_CAPSULE_COUNT */ + public static final int XR_FB_HAND_TRACKING_CAPSULE_COUNT = 19; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_HAND_TRACKING_CAPSULES_STATE_FB = 1000112000; + + private FBHandTrackingCapsules() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHandTrackingMesh.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHandTrackingMesh.java index bc853fe878..728c3cce8a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHandTrackingMesh.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHandTrackingMesh.java @@ -4,12 +4,12 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; + /** * The XR_FB_hand_tracking_mesh extension. * @@ -21,15 +21,15 @@ *
  • An application to get a skinned hand mesh and a bind pose skeleton that can be used to render a hand object driven by the joints from the {@link EXTHandTracking XR_EXT_hand_tracking} extension.
  • *
  • Control the scale of the hand joints returned by {@link EXTHandTracking XR_EXT_hand_tracking}.
  • * - */ -public class FBHandTrackingMesh { - - /** The extension specification version. */ - public static final int XR_FB_hand_tracking_mesh_SPEC_VERSION = 3; - - /** The extension name. */ - public static final String XR_FB_HAND_TRACKING_MESH_EXTENSION_NAME = "XR_FB_hand_tracking_mesh"; - + */ +public class FBHandTrackingMesh { + + /** The extension specification version. */ + public static final int XR_FB_hand_tracking_mesh_SPEC_VERSION = 3; + + /** The extension name. */ + public static final String XR_FB_HAND_TRACKING_MESH_EXTENSION_NAME = "XR_FB_hand_tracking_mesh"; + /** * Extends {@code XrStructureType}. * @@ -39,26 +39,26 @@ public class FBHandTrackingMesh { *
  • {@link #XR_TYPE_HAND_TRACKING_MESH_FB TYPE_HAND_TRACKING_MESH_FB}
  • *
  • {@link #XR_TYPE_HAND_TRACKING_SCALE_FB TYPE_HAND_TRACKING_SCALE_FB}
  • * - */ + */ public static final int - XR_TYPE_HAND_TRACKING_MESH_FB = 1000110001, - XR_TYPE_HAND_TRACKING_SCALE_FB = 1000110003; + XR_TYPE_HAND_TRACKING_MESH_FB = 1000110001, + XR_TYPE_HAND_TRACKING_SCALE_FB = 1000110003; protected FBHandTrackingMesh() { throw new UnsupportedOperationException(); - } - - // --- [ xrGetHandMeshFB ] --- - - /** Unsafe version of: {@link #xrGetHandMeshFB GetHandMeshFB} */ - public static int nxrGetHandMeshFB(XrHandTrackerEXT handTracker, long mesh) { - long __functionAddress = handTracker.getCapabilities().xrGetHandMeshFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(handTracker.address(), mesh, __functionAddress); - } + } + // --- [ xrGetHandMeshFB ] --- + + /** Unsafe version of: {@link #xrGetHandMeshFB GetHandMeshFB} */ + public static int nxrGetHandMeshFB(XrHandTrackerEXT handTracker, long mesh) { + long __functionAddress = handTracker.getCapabilities().xrGetHandMeshFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPI(handTracker.address(), mesh, __functionAddress); + } + /** * Create a foveation profile. * @@ -110,10 +110,10 @@ public static int nxrGetHandMeshFB(XrHandTrackerEXT handTracker, long mesh) { * * @param handTracker the {@code XrHandTrackerEXT} that is associated with a particular hand. * @param mesh the {@link XrHandTrackingMeshFB} output structure. - */ - @NativeType("XrResult") - public static int xrGetHandMeshFB(XrHandTrackerEXT handTracker, @NativeType("XrHandTrackingMeshFB *") XrHandTrackingMeshFB mesh) { - return nxrGetHandMeshFB(handTracker, mesh.address()); - } + */ + @NativeType("XrResult") + public static int xrGetHandMeshFB(XrHandTrackerEXT handTracker, @NativeType("XrHandTrackingMeshFB *") XrHandTrackingMeshFB mesh) { + return nxrGetHandMeshFB(handTracker, mesh.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHapticAmplitudeEnvelope.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHapticAmplitudeEnvelope.java index 500b566cf9..6498d4a18a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHapticAmplitudeEnvelope.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHapticAmplitudeEnvelope.java @@ -4,26 +4,26 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_FB_haptic_amplitude_envelope extension. * *

    This extension enables applications to trigger haptic effect using an Amplitude Envelope buffer.

    - */ -public final class FBHapticAmplitudeEnvelope { - - /** The extension specification version. */ - public static final int XR_FB_haptic_amplitude_envelope_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_FB_HAPTIC_AMPLITUDE_ENVELOPE_EXTENSION_NAME = "XR_FB_haptic_amplitude_envelope"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_HAPTIC_AMPLITUDE_ENVELOPE_VIBRATION_FB = 1000173001; - - /** API Constants */ - public static final int XR_MAX_HAPTIC_AMPLITUDE_ENVELOPE_SAMPLES_FB = 0xFA0; + */ +public final class FBHapticAmplitudeEnvelope { + + /** The extension specification version. */ + public static final int XR_FB_haptic_amplitude_envelope_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_FB_HAPTIC_AMPLITUDE_ENVELOPE_EXTENSION_NAME = "XR_FB_haptic_amplitude_envelope"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_HAPTIC_AMPLITUDE_ENVELOPE_VIBRATION_FB = 1000173001; + + /** API Constants */ + public static final int XR_MAX_HAPTIC_AMPLITUDE_ENVELOPE_SAMPLES_FB = 0xFA0; - private FBHapticAmplitudeEnvelope() {} + private FBHapticAmplitudeEnvelope() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHapticPcm.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHapticPcm.java index 7a72c1c174..b7ff4a0dc9 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHapticPcm.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBHapticPcm.java @@ -4,25 +4,25 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; + /** * The XR_FB_haptic_pcm extension. * *

    This extension enables applications to trigger haptic effects using Pulse Code Modulation (PCM) buffers.

    - */ -public class FBHapticPcm { - - /** The extension specification version. */ - public static final int XR_FB_haptic_pcm_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_FB_HAPTIC_PCM_EXTENSION_NAME = "XR_FB_haptic_pcm"; - + */ +public class FBHapticPcm { + + /** The extension specification version. */ + public static final int XR_FB_haptic_pcm_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_FB_HAPTIC_PCM_EXTENSION_NAME = "XR_FB_haptic_pcm"; + /** * Extends {@code XrStructureType}. * @@ -33,31 +33,31 @@ public class FBHapticPcm { *
  • {@link #XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB}
  • *
  • {@link #XR_TYPE_DEVICE_PCM_SAMPLE_RATE_GET_INFO_FB TYPE_DEVICE_PCM_SAMPLE_RATE_GET_INFO_FB}
  • * - */ + */ public static final int - XR_TYPE_HAPTIC_PCM_VIBRATION_FB = 1000209001, - XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB = 1000209002, - XR_TYPE_DEVICE_PCM_SAMPLE_RATE_GET_INFO_FB = 1000209002; - - /** API Constants */ - public static final int XR_MAX_HAPTIC_PCM_BUFFER_SIZE_FB = 0xFA0; + XR_TYPE_HAPTIC_PCM_VIBRATION_FB = 1000209001, + XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB = 1000209002, + XR_TYPE_DEVICE_PCM_SAMPLE_RATE_GET_INFO_FB = 1000209002; + + /** API Constants */ + public static final int XR_MAX_HAPTIC_PCM_BUFFER_SIZE_FB = 0xFA0; protected FBHapticPcm() { throw new UnsupportedOperationException(); - } - - // --- [ xrGetDeviceSampleRateFB ] --- - - /** Unsafe version of: {@link #xrGetDeviceSampleRateFB GetDeviceSampleRateFB} */ - public static int nxrGetDeviceSampleRateFB(XrSession session, long hapticActionInfo, long deviceSampleRate) { - long __functionAddress = session.getCapabilities().xrGetDeviceSampleRateFB; - if (CHECKS) { - check(__functionAddress); - XrHapticActionInfo.validate(hapticActionInfo); - } - return callPPPI(session.address(), hapticActionInfo, deviceSampleRate, __functionAddress); - } + } + // --- [ xrGetDeviceSampleRateFB ] --- + + /** Unsafe version of: {@link #xrGetDeviceSampleRateFB GetDeviceSampleRateFB} */ + public static int nxrGetDeviceSampleRateFB(XrSession session, long hapticActionInfo, long deviceSampleRate) { + long __functionAddress = session.getCapabilities().xrGetDeviceSampleRateFB; + if (CHECKS) { + check(__functionAddress); + XrHapticActionInfo.validate(hapticActionInfo); + } + return callPPPI(session.address(), hapticActionInfo, deviceSampleRate, __functionAddress); + } + /** * Get device sample rate. * @@ -111,10 +111,10 @@ public static int nxrGetDeviceSampleRateFB(XrSession session, long hapticActionI * @param session the specified {@code XrSession}. * @param hapticActionInfo the {@link XrHapticActionInfo} used to provide action and subaction paths * @param deviceSampleRate a pointer to {@link XrDevicePcmSampleRateStateFB} which is populated by the runtime. - */ - @NativeType("XrResult") - public static int xrGetDeviceSampleRateFB(XrSession session, @NativeType("XrHapticActionInfo const *") XrHapticActionInfo hapticActionInfo, @NativeType("XrDevicePcmSampleRateGetInfoFB *") XrDevicePcmSampleRateGetInfoFB deviceSampleRate) { - return nxrGetDeviceSampleRateFB(session, hapticActionInfo.address(), deviceSampleRate.address()); - } + */ + @NativeType("XrResult") + public static int xrGetDeviceSampleRateFB(XrSession session, @NativeType("XrHapticActionInfo const *") XrHapticActionInfo hapticActionInfo, @NativeType("XrDevicePcmSampleRateGetInfoFB *") XrDevicePcmSampleRateGetInfoFB deviceSampleRate) { + return nxrGetDeviceSampleRateFB(session, hapticActionInfo.address(), deviceSampleRate.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBKeyboardTracking.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBKeyboardTracking.java index 3cecde80ec..2bff29d9c2 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBKeyboardTracking.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBKeyboardTracking.java @@ -4,31 +4,31 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import org.lwjgl.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_FB_keyboard_tracking extension. * *

    This extension allows the application to query the system for a supported trackable keyboard type and obtain an {@code XrSpace} handle to track it. It also provides relevant metadata about the keyboard itself, including bounds and a human readable identifier.

    - */ -public class FBKeyboardTracking { - - /** The extension specification version. */ - public static final int XR_FB_keyboard_tracking_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_FB_KEYBOARD_TRACKING_EXTENSION_NAME = "XR_FB_keyboard_tracking"; - - /** XR_MAX_KEYBOARD_TRACKING_NAME_SIZE_FB */ - public static final int XR_MAX_KEYBOARD_TRACKING_NAME_SIZE_FB = 128; - + */ +public class FBKeyboardTracking { + + /** The extension specification version. */ + public static final int XR_FB_keyboard_tracking_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_FB_KEYBOARD_TRACKING_EXTENSION_NAME = "XR_FB_keyboard_tracking"; + + /** XR_MAX_KEYBOARD_TRACKING_NAME_SIZE_FB */ + public static final int XR_MAX_KEYBOARD_TRACKING_NAME_SIZE_FB = 128; + /** * Extends {@code XrStructureType}. * @@ -39,12 +39,12 @@ public class FBKeyboardTracking { *
  • {@link #XR_TYPE_KEYBOARD_TRACKING_QUERY_FB TYPE_KEYBOARD_TRACKING_QUERY_FB}
  • *
  • {@link #XR_TYPE_SYSTEM_KEYBOARD_TRACKING_PROPERTIES_FB TYPE_SYSTEM_KEYBOARD_TRACKING_PROPERTIES_FB}
  • * - */ + */ public static final int - XR_TYPE_KEYBOARD_SPACE_CREATE_INFO_FB = 1000116009, - XR_TYPE_KEYBOARD_TRACKING_QUERY_FB = 1000116004, - XR_TYPE_SYSTEM_KEYBOARD_TRACKING_PROPERTIES_FB = 1000116002; - + XR_TYPE_KEYBOARD_SPACE_CREATE_INFO_FB = 1000116009, + XR_TYPE_KEYBOARD_TRACKING_QUERY_FB = 1000116004, + XR_TYPE_SYSTEM_KEYBOARD_TRACKING_PROPERTIES_FB = 1000116002; + /** * XrKeyboardTrackingFlagBitsFB - XrKeyboardTrackingFlagBitsFB * @@ -56,13 +56,13 @@ public class FBKeyboardTracking { *
  • {@link #XR_KEYBOARD_TRACKING_REMOTE_BIT_FB KEYBOARD_TRACKING_REMOTE_BIT_FB} — indicates that the physically tracked keyboard is intended to be used while paired to a separate remote computing device. Mutally exclusive with XR_KEYBOARD_TRACKING_LOCAL_BIT_FB.
  • *
  • {@link #XR_KEYBOARD_TRACKING_CONNECTED_BIT_FB KEYBOARD_TRACKING_CONNECTED_BIT_FB} — indicates that the physically tracked keyboard is actively connected to the headset and capable of sending key data
  • * - */ + */ public static final int - XR_KEYBOARD_TRACKING_EXISTS_BIT_FB = 0x1, - XR_KEYBOARD_TRACKING_LOCAL_BIT_FB = 0x2, - XR_KEYBOARD_TRACKING_REMOTE_BIT_FB = 0x4, - XR_KEYBOARD_TRACKING_CONNECTED_BIT_FB = 0x8; - + XR_KEYBOARD_TRACKING_EXISTS_BIT_FB = 0x1, + XR_KEYBOARD_TRACKING_LOCAL_BIT_FB = 0x2, + XR_KEYBOARD_TRACKING_REMOTE_BIT_FB = 0x4, + XR_KEYBOARD_TRACKING_CONNECTED_BIT_FB = 0x8; + /** * XrKeyboardTrackingQueryFlagBitsFB - XrKeyboardTrackingQueryFlagBitsFB * @@ -72,26 +72,26 @@ public class FBKeyboardTracking { *
  • {@link #XR_KEYBOARD_TRACKING_QUERY_LOCAL_BIT_FB KEYBOARD_TRACKING_QUERY_LOCAL_BIT_FB} — indicates the query is for the physically tracked keyboard that is intended to be used in a local pairing with the System. Mutally exclusive with XR_KEYBOARD_TRACKING_QUERY_REMOTE_BIT_FB.
  • *
  • {@link #XR_KEYBOARD_TRACKING_QUERY_REMOTE_BIT_FB KEYBOARD_TRACKING_QUERY_REMOTE_BIT_FB} — indicates the query is for the physically tracked keyboard that may be connected to a separate remote computing device. Mutally exclusive with XR_KEYBOARD_TRACKING_QUERY_LOCAL_BIT_FB.
  • * - */ + */ public static final int - XR_KEYBOARD_TRACKING_QUERY_LOCAL_BIT_FB = 0x2, - XR_KEYBOARD_TRACKING_QUERY_REMOTE_BIT_FB = 0x4; + XR_KEYBOARD_TRACKING_QUERY_LOCAL_BIT_FB = 0x2, + XR_KEYBOARD_TRACKING_QUERY_REMOTE_BIT_FB = 0x4; protected FBKeyboardTracking() { throw new UnsupportedOperationException(); - } - - // --- [ xrQuerySystemTrackedKeyboardFB ] --- - - /** Unsafe version of: {@link #xrQuerySystemTrackedKeyboardFB QuerySystemTrackedKeyboardFB} */ - public static int nxrQuerySystemTrackedKeyboardFB(XrSession session, long queryInfo, long keyboard) { - long __functionAddress = session.getCapabilities().xrQuerySystemTrackedKeyboardFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), queryInfo, keyboard, __functionAddress); - } - + } + + // --- [ xrQuerySystemTrackedKeyboardFB ] --- + + /** Unsafe version of: {@link #xrQuerySystemTrackedKeyboardFB QuerySystemTrackedKeyboardFB} */ + public static int nxrQuerySystemTrackedKeyboardFB(XrSession session, long queryInfo, long keyboard) { + long __functionAddress = session.getCapabilities().xrQuerySystemTrackedKeyboardFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(session.address(), queryInfo, keyboard, __functionAddress); + } + /** * Queries the system keyboard. * @@ -145,23 +145,23 @@ public static int nxrQuerySystemTrackedKeyboardFB(XrSession session, long queryI * @param session the session that will be associated with a keyboard space. * @param queryInfo the {@link XrKeyboardTrackingQueryFB} that describes the type of keyboard to return. queryInfo must have either {@link #XR_KEYBOARD_TRACKING_QUERY_LOCAL_BIT_FB KEYBOARD_TRACKING_QUERY_LOCAL_BIT_FB} or {@link #XR_KEYBOARD_TRACKING_QUERY_REMOTE_BIT_FB KEYBOARD_TRACKING_QUERY_REMOTE_BIT_FB} set. * @param keyboard the {@link XrKeyboardTrackingDescriptionFB} output structure. - */ - @NativeType("XrResult") - public static int xrQuerySystemTrackedKeyboardFB(XrSession session, @NativeType("XrKeyboardTrackingQueryFB const *") XrKeyboardTrackingQueryFB queryInfo, @NativeType("XrKeyboardTrackingDescriptionFB *") XrKeyboardTrackingDescriptionFB keyboard) { - return nxrQuerySystemTrackedKeyboardFB(session, queryInfo.address(), keyboard.address()); - } - - // --- [ xrCreateKeyboardSpaceFB ] --- - - /** Unsafe version of: {@link #xrCreateKeyboardSpaceFB CreateKeyboardSpaceFB} */ - public static int nxrCreateKeyboardSpaceFB(XrSession session, long createInfo, long keyboardSpace) { - long __functionAddress = session.getCapabilities().xrCreateKeyboardSpaceFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), createInfo, keyboardSpace, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrQuerySystemTrackedKeyboardFB(XrSession session, @NativeType("XrKeyboardTrackingQueryFB const *") XrKeyboardTrackingQueryFB queryInfo, @NativeType("XrKeyboardTrackingDescriptionFB *") XrKeyboardTrackingDescriptionFB keyboard) { + return nxrQuerySystemTrackedKeyboardFB(session, queryInfo.address(), keyboard.address()); + } + + // --- [ xrCreateKeyboardSpaceFB ] --- + + /** Unsafe version of: {@link #xrCreateKeyboardSpaceFB CreateKeyboardSpaceFB} */ + public static int nxrCreateKeyboardSpaceFB(XrSession session, long createInfo, long keyboardSpace) { + long __functionAddress = session.getCapabilities().xrCreateKeyboardSpaceFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(session.address(), createInfo, keyboardSpace, __functionAddress); + } + /** * Create a foveation profile. * @@ -217,13 +217,13 @@ public static int nxrCreateKeyboardSpaceFB(XrSession session, long createInfo, l * @param session the session that will be associated with the returned keyboard space. * @param createInfo the {@link XrKeyboardSpaceCreateInfoFB} that describes the type of keyboard to track. * @param keyboardSpace the {@code XrSpace} output structure. - */ - @NativeType("XrResult") - public static int xrCreateKeyboardSpaceFB(XrSession session, @NativeType("XrKeyboardSpaceCreateInfoFB const *") XrKeyboardSpaceCreateInfoFB createInfo, @NativeType("XrSpace *") PointerBuffer keyboardSpace) { - if (CHECKS) { - check(keyboardSpace, 1); - } - return nxrCreateKeyboardSpaceFB(session, createInfo.address(), memAddress(keyboardSpace)); - } + */ + @NativeType("XrResult") + public static int xrCreateKeyboardSpaceFB(XrSession session, @NativeType("XrKeyboardSpaceCreateInfoFB const *") XrKeyboardSpaceCreateInfoFB createInfo, @NativeType("XrSpace *") PointerBuffer keyboardSpace) { + if (CHECKS) { + check(keyboardSpace, 1); + } + return nxrCreateKeyboardSpaceFB(session, createInfo.address(), memAddress(keyboardSpace)); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBPassthrough.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBPassthrough.java index ed7380f0e5..ec74177531 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBPassthrough.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBPassthrough.java @@ -4,15 +4,15 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import org.lwjgl.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_FB_passthrough extension. * @@ -32,15 +32,15 @@ *
  • An application to apply styles, such as color mapping and edge rendering, to passthrough.
  • *
  • An application to provide a geometry to be used in place of the user’s physical environment. Camera images will be projected onto the surface provided by the application. In some cases where a part of the environment, such as a desk, can be approximated well, this provides better visual experience.
  • * - */ -public class FBPassthrough { - - /** The extension specification version. */ - public static final int XR_FB_passthrough_SPEC_VERSION = 3; - - /** The extension name. */ - public static final String XR_FB_PASSTHROUGH_EXTENSION_NAME = "XR_FB_passthrough"; - + */ +public class FBPassthrough { + + /** The extension specification version. */ + public static final int XR_FB_passthrough_SPEC_VERSION = 3; + + /** The extension name. */ + public static final String XR_FB_PASSTHROUGH_EXTENSION_NAME = "XR_FB_passthrough"; + /** * Extends {@code XrStructureType}. * @@ -60,21 +60,21 @@ public class FBPassthrough { *
  • {@link #XR_TYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FB TYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FB}
  • *
  • {@link #XR_TYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB TYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB}
  • * - */ + */ public static final int - XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FB = 1000118000, - XR_TYPE_PASSTHROUGH_CREATE_INFO_FB = 1000118001, - XR_TYPE_PASSTHROUGH_LAYER_CREATE_INFO_FB = 1000118002, - XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_FB = 1000118003, - XR_TYPE_GEOMETRY_INSTANCE_CREATE_INFO_FB = 1000118004, - XR_TYPE_GEOMETRY_INSTANCE_TRANSFORM_FB = 1000118005, - XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FB = 1000118006, - XR_TYPE_PASSTHROUGH_STYLE_FB = 1000118020, - XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB = 1000118021, - XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FB = 1000118022, - XR_TYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FB = 1000118023, - XR_TYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB = 1000118030; - + XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FB = 1000118000, + XR_TYPE_PASSTHROUGH_CREATE_INFO_FB = 1000118001, + XR_TYPE_PASSTHROUGH_LAYER_CREATE_INFO_FB = 1000118002, + XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_FB = 1000118003, + XR_TYPE_GEOMETRY_INSTANCE_CREATE_INFO_FB = 1000118004, + XR_TYPE_GEOMETRY_INSTANCE_TRANSFORM_FB = 1000118005, + XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FB = 1000118006, + XR_TYPE_PASSTHROUGH_STYLE_FB = 1000118020, + XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB = 1000118021, + XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FB = 1000118022, + XR_TYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FB = 1000118023, + XR_TYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB = 1000118030; + /** * Extends {@code XrResult}. * @@ -88,18 +88,18 @@ public class FBPassthrough { *
  • {@link #XR_ERROR_INSUFFICIENT_RESOURCES_PASSTHROUGH_FB ERROR_INSUFFICIENT_RESOURCES_PASSTHROUGH_FB}
  • *
  • {@link #XR_ERROR_UNKNOWN_PASSTHROUGH_FB ERROR_UNKNOWN_PASSTHROUGH_FB}
  • * - */ + */ public static final int - XR_ERROR_UNEXPECTED_STATE_PASSTHROUGH_FB = -1000118000, - XR_ERROR_FEATURE_ALREADY_CREATED_PASSTHROUGH_FB = -1000118001, - XR_ERROR_FEATURE_REQUIRED_PASSTHROUGH_FB = -1000118002, - XR_ERROR_NOT_PERMITTED_PASSTHROUGH_FB = -1000118003, - XR_ERROR_INSUFFICIENT_RESOURCES_PASSTHROUGH_FB = -1000118004, - XR_ERROR_UNKNOWN_PASSTHROUGH_FB = -1000118050; - - /** XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB */ - public static final int XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB = 256; - + XR_ERROR_UNEXPECTED_STATE_PASSTHROUGH_FB = -1000118000, + XR_ERROR_FEATURE_ALREADY_CREATED_PASSTHROUGH_FB = -1000118001, + XR_ERROR_FEATURE_REQUIRED_PASSTHROUGH_FB = -1000118002, + XR_ERROR_NOT_PERMITTED_PASSTHROUGH_FB = -1000118003, + XR_ERROR_INSUFFICIENT_RESOURCES_PASSTHROUGH_FB = -1000118004, + XR_ERROR_UNKNOWN_PASSTHROUGH_FB = -1000118050; + + /** XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB */ + public static final int XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB = 256; + /** * Extends {@code XrObjectType}. * @@ -110,12 +110,12 @@ public class FBPassthrough { *
  • {@link #XR_OBJECT_TYPE_PASSTHROUGH_LAYER_FB OBJECT_TYPE_PASSTHROUGH_LAYER_FB}
  • *
  • {@link #XR_OBJECT_TYPE_GEOMETRY_INSTANCE_FB OBJECT_TYPE_GEOMETRY_INSTANCE_FB}
  • * - */ + */ public static final int - XR_OBJECT_TYPE_PASSTHROUGH_FB = 1000118000, - XR_OBJECT_TYPE_PASSTHROUGH_LAYER_FB = 1000118002, - XR_OBJECT_TYPE_GEOMETRY_INSTANCE_FB = 1000118004; - + XR_OBJECT_TYPE_PASSTHROUGH_FB = 1000118000, + XR_OBJECT_TYPE_PASSTHROUGH_LAYER_FB = 1000118002, + XR_OBJECT_TYPE_GEOMETRY_INSTANCE_FB = 1000118004; + /** * XrPassthroughCapabilityFlagBitsFB - XrPassthroughCapabilityFlagBitsFB * @@ -126,12 +126,12 @@ public class FBPassthrough { *
  • {@link #XR_PASSTHROUGH_CAPABILITY_COLOR_BIT_FB PASSTHROUGH_CAPABILITY_COLOR_BIT_FB} — The system can show passthrough with realistic colors. {@link #XR_PASSTHROUGH_CAPABILITY_BIT_FB PASSTHROUGH_CAPABILITY_BIT_FB} must be set if {@link #XR_PASSTHROUGH_CAPABILITY_COLOR_BIT_FB PASSTHROUGH_CAPABILITY_COLOR_BIT_FB} is set.
  • *
  • {@link #XR_PASSTHROUGH_CAPABILITY_LAYER_DEPTH_BIT_FB PASSTHROUGH_CAPABILITY_LAYER_DEPTH_BIT_FB} — The system supports passthrough layers composited using depth testing. {@link #XR_PASSTHROUGH_CAPABILITY_BIT_FB PASSTHROUGH_CAPABILITY_BIT_FB} must be set if {@link #XR_PASSTHROUGH_CAPABILITY_LAYER_DEPTH_BIT_FB PASSTHROUGH_CAPABILITY_LAYER_DEPTH_BIT_FB} is set.
  • * - */ + */ public static final int - XR_PASSTHROUGH_CAPABILITY_BIT_FB = 0x1, - XR_PASSTHROUGH_CAPABILITY_COLOR_BIT_FB = 0x2, - XR_PASSTHROUGH_CAPABILITY_LAYER_DEPTH_BIT_FB = 0x4; - + XR_PASSTHROUGH_CAPABILITY_BIT_FB = 0x1, + XR_PASSTHROUGH_CAPABILITY_COLOR_BIT_FB = 0x2, + XR_PASSTHROUGH_CAPABILITY_LAYER_DEPTH_BIT_FB = 0x4; + /** * XrPassthroughFlagBitsFB - XrPassthroughFlagBitsFB * @@ -141,11 +141,11 @@ public class FBPassthrough { *
  • {@link #XR_PASSTHROUGH_IS_RUNNING_AT_CREATION_BIT_FB PASSTHROUGH_IS_RUNNING_AT_CREATION_BIT_FB} — The object (passthrough, layer) is running at creation.
  • *
  • {@link #XR_PASSTHROUGH_LAYER_DEPTH_BIT_FB PASSTHROUGH_LAYER_DEPTH_BIT_FB} — The passthrough system sends depth information to the compositor. Only applicable to layer objects.
  • * - */ + */ public static final int - XR_PASSTHROUGH_IS_RUNNING_AT_CREATION_BIT_FB = 0x1, - XR_PASSTHROUGH_LAYER_DEPTH_BIT_FB = 0x2; - + XR_PASSTHROUGH_IS_RUNNING_AT_CREATION_BIT_FB = 0x1, + XR_PASSTHROUGH_LAYER_DEPTH_BIT_FB = 0x2; + /** * XrPassthroughLayerPurposeFB - Layer purpose * @@ -161,11 +161,11 @@ public class FBPassthrough { *
    See Also
    * *

    {@link XrPassthroughLayerCreateInfoFB}

    - */ + */ public static final int - XR_PASSTHROUGH_LAYER_PURPOSE_RECONSTRUCTION_FB = 0, - XR_PASSTHROUGH_LAYER_PURPOSE_PROJECTED_FB = 1; - + XR_PASSTHROUGH_LAYER_PURPOSE_RECONSTRUCTION_FB = 0, + XR_PASSTHROUGH_LAYER_PURPOSE_PROJECTED_FB = 1; + /** * XrPassthroughStateChangedFlagBitsFB - XrPassthroughStateChangedFlagBitsFB * @@ -177,28 +177,28 @@ public class FBPassthrough { *
  • {@link #XR_PASSTHROUGH_STATE_CHANGED_RECOVERABLE_ERROR_BIT_FB PASSTHROUGH_STATE_CHANGED_RECOVERABLE_ERROR_BIT_FB} — A recoverable error has occurred. The runtime will attempt to recover, but some functionality may be temporarily unavailable.
  • *
  • {@link #XR_PASSTHROUGH_STATE_CHANGED_RESTORED_ERROR_BIT_FB PASSTHROUGH_STATE_CHANGED_RESTORED_ERROR_BIT_FB} — The runtime has recovered from a previous error and is functioning normally.
  • * - */ + */ public static final int - XR_PASSTHROUGH_STATE_CHANGED_REINIT_REQUIRED_BIT_FB = 0x1, - XR_PASSTHROUGH_STATE_CHANGED_NON_RECOVERABLE_ERROR_BIT_FB = 0x2, - XR_PASSTHROUGH_STATE_CHANGED_RECOVERABLE_ERROR_BIT_FB = 0x4, - XR_PASSTHROUGH_STATE_CHANGED_RESTORED_ERROR_BIT_FB = 0x8; + XR_PASSTHROUGH_STATE_CHANGED_REINIT_REQUIRED_BIT_FB = 0x1, + XR_PASSTHROUGH_STATE_CHANGED_NON_RECOVERABLE_ERROR_BIT_FB = 0x2, + XR_PASSTHROUGH_STATE_CHANGED_RECOVERABLE_ERROR_BIT_FB = 0x4, + XR_PASSTHROUGH_STATE_CHANGED_RESTORED_ERROR_BIT_FB = 0x8; protected FBPassthrough() { throw new UnsupportedOperationException(); - } - - // --- [ xrCreatePassthroughFB ] --- - - /** Unsafe version of: {@link #xrCreatePassthroughFB CreatePassthroughFB} */ - public static int nxrCreatePassthroughFB(XrSession session, long createInfo, long outPassthrough) { - long __functionAddress = session.getCapabilities().xrCreatePassthroughFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), createInfo, outPassthrough, __functionAddress); - } - + } + + // --- [ xrCreatePassthroughFB ] --- + + /** Unsafe version of: {@link #xrCreatePassthroughFB CreatePassthroughFB} */ + public static int nxrCreatePassthroughFB(XrSession session, long createInfo, long outPassthrough) { + long __functionAddress = session.getCapabilities().xrCreatePassthroughFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(session.address(), createInfo, outPassthrough, __functionAddress); + } + /** * Create a passthrough feature. * @@ -257,17 +257,17 @@ public static int nxrCreatePassthroughFB(XrSession session, long createInfo, lon * @param session the {@code XrSession}. * @param createInfo the {@link XrPassthroughCreateInfoFB}. * @param outPassthrough the {@code XrPassthroughFB}. - */ - @NativeType("XrResult") - public static int xrCreatePassthroughFB(XrSession session, @NativeType("XrPassthroughCreateInfoFB const *") XrPassthroughCreateInfoFB createInfo, @NativeType("XrPassthroughFB *") PointerBuffer outPassthrough) { - if (CHECKS) { - check(outPassthrough, 1); - } - return nxrCreatePassthroughFB(session, createInfo.address(), memAddress(outPassthrough)); - } - - // --- [ xrDestroyPassthroughFB ] --- - + */ + @NativeType("XrResult") + public static int xrCreatePassthroughFB(XrSession session, @NativeType("XrPassthroughCreateInfoFB const *") XrPassthroughCreateInfoFB createInfo, @NativeType("XrPassthroughFB *") PointerBuffer outPassthrough) { + if (CHECKS) { + check(outPassthrough, 1); + } + return nxrCreatePassthroughFB(session, createInfo.address(), memAddress(outPassthrough)); + } + + // --- [ xrDestroyPassthroughFB ] --- + /** * Destroy a passthrough feature. * @@ -313,18 +313,18 @@ public static int xrCreatePassthroughFB(XrSession session, @NativeType("XrPassth * * * @param passthrough the {@code XrPassthroughFB} to be destroyed. - */ - @NativeType("XrResult") - public static int xrDestroyPassthroughFB(XrPassthroughFB passthrough) { - long __functionAddress = passthrough.getCapabilities().xrDestroyPassthroughFB; - if (CHECKS) { - check(__functionAddress); - } - return callPI(passthrough.address(), __functionAddress); - } - - // --- [ xrPassthroughStartFB ] --- - + */ + @NativeType("XrResult") + public static int xrDestroyPassthroughFB(XrPassthroughFB passthrough) { + long __functionAddress = passthrough.getCapabilities().xrDestroyPassthroughFB; + if (CHECKS) { + check(__functionAddress); + } + return callPI(passthrough.address(), __functionAddress); + } + + // --- [ xrPassthroughStartFB ] --- + /** * Start a passthrough feature. * @@ -369,18 +369,18 @@ public static int xrDestroyPassthroughFB(XrPassthroughFB passthrough) { * * * @param passthrough the {@code XrPassthroughFB} to be started. - */ - @NativeType("XrResult") - public static int xrPassthroughStartFB(XrPassthroughFB passthrough) { - long __functionAddress = passthrough.getCapabilities().xrPassthroughStartFB; - if (CHECKS) { - check(__functionAddress); - } - return callPI(passthrough.address(), __functionAddress); - } - - // --- [ xrPassthroughPauseFB ] --- - + */ + @NativeType("XrResult") + public static int xrPassthroughStartFB(XrPassthroughFB passthrough) { + long __functionAddress = passthrough.getCapabilities().xrPassthroughStartFB; + if (CHECKS) { + check(__functionAddress); + } + return callPI(passthrough.address(), __functionAddress); + } + + // --- [ xrPassthroughPauseFB ] --- + /** * Pause a passthrough feature. * @@ -425,28 +425,28 @@ public static int xrPassthroughStartFB(XrPassthroughFB passthrough) { * * * @param passthrough the {@code XrPassthroughFB} to be paused. - */ - @NativeType("XrResult") - public static int xrPassthroughPauseFB(XrPassthroughFB passthrough) { - long __functionAddress = passthrough.getCapabilities().xrPassthroughPauseFB; - if (CHECKS) { - check(__functionAddress); - } - return callPI(passthrough.address(), __functionAddress); - } - - // --- [ xrCreatePassthroughLayerFB ] --- - - /** Unsafe version of: {@link #xrCreatePassthroughLayerFB CreatePassthroughLayerFB} */ - public static int nxrCreatePassthroughLayerFB(XrSession session, long createInfo, long outLayer) { - long __functionAddress = session.getCapabilities().xrCreatePassthroughLayerFB; - if (CHECKS) { - check(__functionAddress); - XrPassthroughLayerCreateInfoFB.validate(createInfo); - } - return callPPPI(session.address(), createInfo, outLayer, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrPassthroughPauseFB(XrPassthroughFB passthrough) { + long __functionAddress = passthrough.getCapabilities().xrPassthroughPauseFB; + if (CHECKS) { + check(__functionAddress); + } + return callPI(passthrough.address(), __functionAddress); + } + + // --- [ xrCreatePassthroughLayerFB ] --- + + /** Unsafe version of: {@link #xrCreatePassthroughLayerFB CreatePassthroughLayerFB} */ + public static int nxrCreatePassthroughLayerFB(XrSession session, long createInfo, long outLayer) { + long __functionAddress = session.getCapabilities().xrCreatePassthroughLayerFB; + if (CHECKS) { + check(__functionAddress); + XrPassthroughLayerCreateInfoFB.validate(createInfo); + } + return callPPPI(session.address(), createInfo, outLayer, __functionAddress); + } + /** * Create a passthrough layer. * @@ -505,17 +505,17 @@ public static int nxrCreatePassthroughLayerFB(XrSession session, long createInfo * @param session the {@code XrSession}. * @param createInfo the {@link XrPassthroughLayerCreateInfoFB}. * @param outLayer the {@code XrPassthroughLayerFB}. - */ - @NativeType("XrResult") - public static int xrCreatePassthroughLayerFB(XrSession session, @NativeType("XrPassthroughLayerCreateInfoFB const *") XrPassthroughLayerCreateInfoFB createInfo, @NativeType("XrPassthroughLayerFB *") PointerBuffer outLayer) { - if (CHECKS) { - check(outLayer, 1); - } - return nxrCreatePassthroughLayerFB(session, createInfo.address(), memAddress(outLayer)); - } - - // --- [ xrDestroyPassthroughLayerFB ] --- - + */ + @NativeType("XrResult") + public static int xrCreatePassthroughLayerFB(XrSession session, @NativeType("XrPassthroughLayerCreateInfoFB const *") XrPassthroughLayerCreateInfoFB createInfo, @NativeType("XrPassthroughLayerFB *") PointerBuffer outLayer) { + if (CHECKS) { + check(outLayer, 1); + } + return nxrCreatePassthroughLayerFB(session, createInfo.address(), memAddress(outLayer)); + } + + // --- [ xrDestroyPassthroughLayerFB ] --- + /** * Destroy a passthrough layer. * @@ -561,18 +561,18 @@ public static int xrCreatePassthroughLayerFB(XrSession session, @NativeType("XrP * * * @param layer the {@code XrPassthroughLayerFB} to be destroyed. - */ - @NativeType("XrResult") - public static int xrDestroyPassthroughLayerFB(XrPassthroughLayerFB layer) { - long __functionAddress = layer.getCapabilities().xrDestroyPassthroughLayerFB; - if (CHECKS) { - check(__functionAddress); - } - return callPI(layer.address(), __functionAddress); - } - - // --- [ xrPassthroughLayerPauseFB ] --- - + */ + @NativeType("XrResult") + public static int xrDestroyPassthroughLayerFB(XrPassthroughLayerFB layer) { + long __functionAddress = layer.getCapabilities().xrDestroyPassthroughLayerFB; + if (CHECKS) { + check(__functionAddress); + } + return callPI(layer.address(), __functionAddress); + } + + // --- [ xrPassthroughLayerPauseFB ] --- + /** * Pause a passthrough layer. * @@ -617,18 +617,18 @@ public static int xrDestroyPassthroughLayerFB(XrPassthroughLayerFB layer) { * * * @param layer the {@code XrPassthroughLayerFB} to be paused. - */ - @NativeType("XrResult") - public static int xrPassthroughLayerPauseFB(XrPassthroughLayerFB layer) { - long __functionAddress = layer.getCapabilities().xrPassthroughLayerPauseFB; - if (CHECKS) { - check(__functionAddress); - } - return callPI(layer.address(), __functionAddress); - } - - // --- [ xrPassthroughLayerResumeFB ] --- - + */ + @NativeType("XrResult") + public static int xrPassthroughLayerPauseFB(XrPassthroughLayerFB layer) { + long __functionAddress = layer.getCapabilities().xrPassthroughLayerPauseFB; + if (CHECKS) { + check(__functionAddress); + } + return callPI(layer.address(), __functionAddress); + } + + // --- [ xrPassthroughLayerResumeFB ] --- + /** * Resume a passthrough layer. * @@ -673,27 +673,27 @@ public static int xrPassthroughLayerPauseFB(XrPassthroughLayerFB layer) { * * * @param layer the {@code XrPassthroughLayerFB} to be resumed. - */ - @NativeType("XrResult") - public static int xrPassthroughLayerResumeFB(XrPassthroughLayerFB layer) { - long __functionAddress = layer.getCapabilities().xrPassthroughLayerResumeFB; - if (CHECKS) { - check(__functionAddress); - } - return callPI(layer.address(), __functionAddress); - } - - // --- [ xrPassthroughLayerSetStyleFB ] --- - - /** Unsafe version of: {@link #xrPassthroughLayerSetStyleFB PassthroughLayerSetStyleFB} */ - public static int nxrPassthroughLayerSetStyleFB(XrPassthroughLayerFB layer, long style) { - long __functionAddress = layer.getCapabilities().xrPassthroughLayerSetStyleFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(layer.address(), style, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrPassthroughLayerResumeFB(XrPassthroughLayerFB layer) { + long __functionAddress = layer.getCapabilities().xrPassthroughLayerResumeFB; + if (CHECKS) { + check(__functionAddress); + } + return callPI(layer.address(), __functionAddress); + } + + // --- [ xrPassthroughLayerSetStyleFB ] --- + + /** Unsafe version of: {@link #xrPassthroughLayerSetStyleFB PassthroughLayerSetStyleFB} */ + public static int nxrPassthroughLayerSetStyleFB(XrPassthroughLayerFB layer, long style) { + long __functionAddress = layer.getCapabilities().xrPassthroughLayerSetStyleFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPI(layer.address(), style, __functionAddress); + } + /** * Set style on a passthrough layer. * @@ -744,24 +744,24 @@ public static int nxrPassthroughLayerSetStyleFB(XrPassthroughLayerFB layer, long * * @param layer the {@code XrPassthroughLayerFB} to get the style. * @param style the {@link XrPassthroughStyleFB} to be set. - */ - @NativeType("XrResult") - public static int xrPassthroughLayerSetStyleFB(XrPassthroughLayerFB layer, @NativeType("XrPassthroughStyleFB const *") XrPassthroughStyleFB style) { - return nxrPassthroughLayerSetStyleFB(layer, style.address()); - } - - // --- [ xrCreateGeometryInstanceFB ] --- - - /** Unsafe version of: {@link #xrCreateGeometryInstanceFB CreateGeometryInstanceFB} */ - public static int nxrCreateGeometryInstanceFB(XrSession session, long createInfo, long outGeometryInstance) { - long __functionAddress = session.getCapabilities().xrCreateGeometryInstanceFB; - if (CHECKS) { - check(__functionAddress); - XrGeometryInstanceCreateInfoFB.validate(createInfo); - } - return callPPPI(session.address(), createInfo, outGeometryInstance, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrPassthroughLayerSetStyleFB(XrPassthroughLayerFB layer, @NativeType("XrPassthroughStyleFB const *") XrPassthroughStyleFB style) { + return nxrPassthroughLayerSetStyleFB(layer, style.address()); + } + + // --- [ xrCreateGeometryInstanceFB ] --- + + /** Unsafe version of: {@link #xrCreateGeometryInstanceFB CreateGeometryInstanceFB} */ + public static int nxrCreateGeometryInstanceFB(XrSession session, long createInfo, long outGeometryInstance) { + long __functionAddress = session.getCapabilities().xrCreateGeometryInstanceFB; + if (CHECKS) { + check(__functionAddress); + XrGeometryInstanceCreateInfoFB.validate(createInfo); + } + return callPPPI(session.address(), createInfo, outGeometryInstance, __functionAddress); + } + /** * Create a triangle mesh. * @@ -777,7 +777,7 @@ public static int nxrCreateGeometryInstanceFB(XrSession session, long createInfo * *
    Description
    * - *

    Creates an {@code XrGeometryInstanceFB} handle. Geometry instance functionality requires {@link FBTriangleMesh XR_FB_triangle_mesh} extension to be enabled. An {@code XrGeometryInstanceFB} connects a layer, a mesh, and a transformation, with the semantics that a specific mesh will be instantiated in a specific layer with a specific transformation. A mesh can be instantiated multiple times, in the same or in different layers.

    + *

    Creates an {@code XrGeometryInstanceFB} handle. Geometry instance functionality requires XR_FB_triangle_mesh extension to be enabled. An {@code XrGeometryInstanceFB} connects a layer, a mesh, and a transformation, with the semantics that a specific mesh will be instantiated in a specific layer with a specific transformation. A mesh can be instantiated multiple times, in the same or in different layers.

    * *
    Valid Usage (Implicit)
    * @@ -819,17 +819,17 @@ public static int nxrCreateGeometryInstanceFB(XrSession session, long createInfo * @param session the {@code XrSession}. * @param createInfo the {@link XrGeometryInstanceCreateInfoFB}. * @param outGeometryInstance the {@code XrGeometryInstanceFB}. - */ - @NativeType("XrResult") - public static int xrCreateGeometryInstanceFB(XrSession session, @NativeType("XrGeometryInstanceCreateInfoFB const *") XrGeometryInstanceCreateInfoFB createInfo, @NativeType("XrGeometryInstanceFB *") PointerBuffer outGeometryInstance) { - if (CHECKS) { - check(outGeometryInstance, 1); - } - return nxrCreateGeometryInstanceFB(session, createInfo.address(), memAddress(outGeometryInstance)); - } - - // --- [ xrDestroyGeometryInstanceFB ] --- - + */ + @NativeType("XrResult") + public static int xrCreateGeometryInstanceFB(XrSession session, @NativeType("XrGeometryInstanceCreateInfoFB const *") XrGeometryInstanceCreateInfoFB createInfo, @NativeType("XrGeometryInstanceFB *") PointerBuffer outGeometryInstance) { + if (CHECKS) { + check(outGeometryInstance, 1); + } + return nxrCreateGeometryInstanceFB(session, createInfo.address(), memAddress(outGeometryInstance)); + } + + // --- [ xrDestroyGeometryInstanceFB ] --- + /** * Destroy a geometry instance. * @@ -873,28 +873,28 @@ public static int xrCreateGeometryInstanceFB(XrSession session, @NativeType("XrG *
  • {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED}
  • * * - */ - @NativeType("XrResult") - public static int xrDestroyGeometryInstanceFB(XrGeometryInstanceFB instance) { - long __functionAddress = instance.getCapabilities().xrDestroyGeometryInstanceFB; - if (CHECKS) { - check(__functionAddress); - } - return callPI(instance.address(), __functionAddress); - } - - // --- [ xrGeometryInstanceSetTransformFB ] --- - - /** Unsafe version of: {@link #xrGeometryInstanceSetTransformFB GeometryInstanceSetTransformFB} */ - public static int nxrGeometryInstanceSetTransformFB(XrGeometryInstanceFB instance, long transformation) { - long __functionAddress = instance.getCapabilities().xrGeometryInstanceSetTransformFB; - if (CHECKS) { - check(__functionAddress); - XrGeometryInstanceTransformFB.validate(transformation); - } - return callPPI(instance.address(), transformation, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrDestroyGeometryInstanceFB(XrGeometryInstanceFB instance) { + long __functionAddress = instance.getCapabilities().xrDestroyGeometryInstanceFB; + if (CHECKS) { + check(__functionAddress); + } + return callPI(instance.address(), __functionAddress); + } + + // --- [ xrGeometryInstanceSetTransformFB ] --- + + /** Unsafe version of: {@link #xrGeometryInstanceSetTransformFB GeometryInstanceSetTransformFB} */ + public static int nxrGeometryInstanceSetTransformFB(XrGeometryInstanceFB instance, long transformation) { + long __functionAddress = instance.getCapabilities().xrGeometryInstanceSetTransformFB; + if (CHECKS) { + check(__functionAddress); + XrGeometryInstanceTransformFB.validate(transformation); + } + return callPPI(instance.address(), transformation, __functionAddress); + } + /** * Create a triangle mesh. * @@ -944,10 +944,10 @@ public static int nxrGeometryInstanceSetTransformFB(XrGeometryInstanceFB instanc *
    See Also
    * *

    {@link XrGeometryInstanceTransformFB}

    - */ - @NativeType("XrResult") - public static int xrGeometryInstanceSetTransformFB(XrGeometryInstanceFB instance, @NativeType("XrGeometryInstanceTransformFB const *") XrGeometryInstanceTransformFB transformation) { - return nxrGeometryInstanceSetTransformFB(instance, transformation.address()); - } + */ + @NativeType("XrResult") + public static int xrGeometryInstanceSetTransformFB(XrGeometryInstanceFB instance, @NativeType("XrGeometryInstanceTransformFB const *") XrGeometryInstanceTransformFB transformation) { + return nxrGeometryInstanceSetTransformFB(instance, transformation.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBPassthroughKeyboardHands.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBPassthroughKeyboardHands.java index 2a4dd798cc..a7c2ef6f9f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBPassthroughKeyboardHands.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBPassthroughKeyboardHands.java @@ -4,12 +4,12 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; + /** * The XR_FB_passthrough_keyboard_hands extension. * @@ -23,15 +23,15 @@ *
  • Creation of keyboard hands passthrough layer using {@link FBPassthrough#xrCreatePassthroughLayerFB CreatePassthroughLayerFB}
  • *
  • Setting the level of intensity for the hand mask in a passthrough layer with purpose {@code XrPassthroughLayerPurposeFB} as {@link #XR_PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_HANDS_FB PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_HANDS_FB} or {@link #XR_PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_MASKED_HANDS_FB PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_MASKED_HANDS_FB}
  • * - */ -public class FBPassthroughKeyboardHands { - - /** The extension specification version. */ - public static final int XR_FB_passthrough_keyboard_hands_SPEC_VERSION = 2; - - /** The extension name. */ - public static final String XR_FB_PASSTHROUGH_KEYBOARD_HANDS_EXTENSION_NAME = "XR_FB_passthrough_keyboard_hands"; - + */ +public class FBPassthroughKeyboardHands { + + /** The extension specification version. */ + public static final int XR_FB_passthrough_keyboard_hands_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_FB_PASSTHROUGH_KEYBOARD_HANDS_EXTENSION_NAME = "XR_FB_passthrough_keyboard_hands"; + /** * Extends {@code XrPassthroughLayerPurposeFB}. * @@ -41,29 +41,29 @@ public class FBPassthroughKeyboardHands { *
  • {@link #XR_PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_HANDS_FB PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_HANDS_FB}
  • *
  • {@link #XR_PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_MASKED_HANDS_FB PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_MASKED_HANDS_FB}
  • * - */ + */ public static final int - XR_PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_HANDS_FB = 1000203001, - XR_PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_MASKED_HANDS_FB = 1000203002; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_PASSTHROUGH_KEYBOARD_HANDS_INTENSITY_FB = 1000203002; + XR_PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_HANDS_FB = 1000203001, + XR_PASSTHROUGH_LAYER_PURPOSE_TRACKED_KEYBOARD_MASKED_HANDS_FB = 1000203002; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_PASSTHROUGH_KEYBOARD_HANDS_INTENSITY_FB = 1000203002; protected FBPassthroughKeyboardHands() { throw new UnsupportedOperationException(); - } - - // --- [ xrPassthroughLayerSetKeyboardHandsIntensityFB ] --- - - /** Unsafe version of: {@link #xrPassthroughLayerSetKeyboardHandsIntensityFB PassthroughLayerSetKeyboardHandsIntensityFB} */ - public static int nxrPassthroughLayerSetKeyboardHandsIntensityFB(XrPassthroughLayerFB layer, long intensity) { - long __functionAddress = layer.getCapabilities().xrPassthroughLayerSetKeyboardHandsIntensityFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(layer.address(), intensity, __functionAddress); - } + } + // --- [ xrPassthroughLayerSetKeyboardHandsIntensityFB ] --- + + /** Unsafe version of: {@link #xrPassthroughLayerSetKeyboardHandsIntensityFB PassthroughLayerSetKeyboardHandsIntensityFB} */ + public static int nxrPassthroughLayerSetKeyboardHandsIntensityFB(XrPassthroughLayerFB layer, long intensity) { + long __functionAddress = layer.getCapabilities().xrPassthroughLayerSetKeyboardHandsIntensityFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPI(layer.address(), intensity, __functionAddress); + } + /** * Renders hands over the keyboard (keyboard hands) with a specific intensity of hands passthrough layer. * @@ -114,10 +114,10 @@ public static int nxrPassthroughLayerSetKeyboardHandsIntensityFB(XrPassthroughLa * * @param layer the {@code XrPassthroughLayerFB} to apply the intensity. * @param intensity the {@link XrPassthroughKeyboardHandsIntensityFB} to be set. - */ - @NativeType("XrResult") - public static int xrPassthroughLayerSetKeyboardHandsIntensityFB(XrPassthroughLayerFB layer, @NativeType("XrPassthroughKeyboardHandsIntensityFB const *") XrPassthroughKeyboardHandsIntensityFB intensity) { - return nxrPassthroughLayerSetKeyboardHandsIntensityFB(layer, intensity.address()); - } + */ + @NativeType("XrResult") + public static int xrPassthroughLayerSetKeyboardHandsIntensityFB(XrPassthroughLayerFB layer, @NativeType("XrPassthroughKeyboardHandsIntensityFB const *") XrPassthroughKeyboardHandsIntensityFB intensity) { + return nxrPassthroughLayerSetKeyboardHandsIntensityFB(layer, intensity.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBRenderModel.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBRenderModel.java index 4d9caaadc0..fd2e76654d 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBRenderModel.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBRenderModel.java @@ -4,33 +4,33 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_FB_render_model extension. * *

    This extension allows applications to request GLTF models for certain connected devices supported by the runtime. Paths that correspond to these devices will be provided through the extension and can be used to get information about the models as well as loading them.

    - */ -public class FBRenderModel { - - /** The extension specification version. */ - public static final int XR_FB_render_model_SPEC_VERSION = 4; - - /** The extension name. */ - public static final String XR_FB_RENDER_MODEL_EXTENSION_NAME = "XR_FB_render_model"; - - /** XR_MAX_RENDER_MODEL_NAME_SIZE_FB */ - public static final int XR_MAX_RENDER_MODEL_NAME_SIZE_FB = 64; - + */ +public class FBRenderModel { + + /** The extension specification version. */ + public static final int XR_FB_render_model_SPEC_VERSION = 3; + + /** The extension name. */ + public static final String XR_FB_RENDER_MODEL_EXTENSION_NAME = "XR_FB_render_model"; + + /** XR_MAX_RENDER_MODEL_NAME_SIZE_FB */ + public static final int XR_MAX_RENDER_MODEL_NAME_SIZE_FB = 64; + /** * Extends {@code XrStructureType}. * @@ -44,15 +44,15 @@ public class FBRenderModel { *
  • {@link #XR_TYPE_SYSTEM_RENDER_MODEL_PROPERTIES_FB TYPE_SYSTEM_RENDER_MODEL_PROPERTIES_FB}
  • *
  • {@link #XR_TYPE_RENDER_MODEL_CAPABILITIES_REQUEST_FB TYPE_RENDER_MODEL_CAPABILITIES_REQUEST_FB}
  • * - */ + */ public static final int - XR_TYPE_RENDER_MODEL_PATH_INFO_FB = 1000119000, - XR_TYPE_RENDER_MODEL_PROPERTIES_FB = 1000119001, - XR_TYPE_RENDER_MODEL_BUFFER_FB = 1000119002, - XR_TYPE_RENDER_MODEL_LOAD_INFO_FB = 1000119003, - XR_TYPE_SYSTEM_RENDER_MODEL_PROPERTIES_FB = 1000119004, - XR_TYPE_RENDER_MODEL_CAPABILITIES_REQUEST_FB = 1000119005; - + XR_TYPE_RENDER_MODEL_PATH_INFO_FB = 1000119000, + XR_TYPE_RENDER_MODEL_PROPERTIES_FB = 1000119001, + XR_TYPE_RENDER_MODEL_BUFFER_FB = 1000119002, + XR_TYPE_RENDER_MODEL_LOAD_INFO_FB = 1000119003, + XR_TYPE_SYSTEM_RENDER_MODEL_PROPERTIES_FB = 1000119004, + XR_TYPE_RENDER_MODEL_CAPABILITIES_REQUEST_FB = 1000119005; + /** * Extends {@code XrResult}. * @@ -62,11 +62,11 @@ public class FBRenderModel { *
  • {@link #XR_ERROR_RENDER_MODEL_KEY_INVALID_FB ERROR_RENDER_MODEL_KEY_INVALID_FB}
  • *
  • {@link #XR_RENDER_MODEL_UNAVAILABLE_FB RENDER_MODEL_UNAVAILABLE_FB}
  • * - */ + */ public static final int - XR_ERROR_RENDER_MODEL_KEY_INVALID_FB = -1000119000, - XR_RENDER_MODEL_UNAVAILABLE_FB = 1000119020; - + XR_ERROR_RENDER_MODEL_KEY_INVALID_FB = -1000119000, + XR_RENDER_MODEL_UNAVAILABLE_FB = 1000119020; + /** * XrRenderModelFlagBitsFB - XrRenderModelFlagBitsFB * @@ -78,33 +78,33 @@ public class FBRenderModel { * * *

    Render Model Support Levels: An application should request a model of a certain complexity via the {@link XrRenderModelCapabilitiesRequestFB} on the structure chain of {@link XrRenderModelPropertiesFB} passed into {@link #xrGetRenderModelPropertiesFB GetRenderModelPropertiesFB}. The flags on the {@link XrRenderModelCapabilitiesRequestFB} are an acknowledgement of the application’s ability to render such a model. Multiple values of {@code XrRenderModelFlagBitsFB} can be set on this variable to indicate acceptance of different support levels. The flags parameter on the {@link XrRenderModelPropertiesFB} will indicate what capabilities the model in the runtime actually requires. It will be set to a single value of {@code XrRenderModelFlagBitsFB}.

    - */ + */ public static final int - XR_RENDER_MODEL_SUPPORTS_GLTF_2_0_SUBSET_1_BIT_FB = 0x1, - XR_RENDER_MODEL_SUPPORTS_GLTF_2_0_SUBSET_2_BIT_FB = 0x2; - - /** API Constants */ - public static final long XR_NULL_RENDER_MODEL_KEY_FB = 0x0L; + XR_RENDER_MODEL_SUPPORTS_GLTF_2_0_SUBSET_1_BIT_FB = 0x1, + XR_RENDER_MODEL_SUPPORTS_GLTF_2_0_SUBSET_2_BIT_FB = 0x2; + + /** API Constants */ + public static final long XR_NULL_RENDER_MODEL_KEY_FB = 0x0L; protected FBRenderModel() { throw new UnsupportedOperationException(); - } - - // --- [ xrEnumerateRenderModelPathsFB ] --- + } + // --- [ xrEnumerateRenderModelPathsFB ] --- + /** * Unsafe version of: {@link #xrEnumerateRenderModelPathsFB EnumerateRenderModelPathsFB} * * @param pathCapacityInput the capacity of the {@code paths}, or 0 to retrieve the required capacity. - */ - public static int nxrEnumerateRenderModelPathsFB(XrSession session, int pathCapacityInput, long pathCountOutput, long paths) { - long __functionAddress = session.getCapabilities().xrEnumerateRenderModelPathsFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), pathCapacityInput, pathCountOutput, paths, __functionAddress); - } - + */ + public static int nxrEnumerateRenderModelPathsFB(XrSession session, int pathCapacityInput, long pathCountOutput, long paths) { + long __functionAddress = session.getCapabilities().xrEnumerateRenderModelPathsFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(session.address(), pathCapacityInput, pathCountOutput, paths, __functionAddress); + } + /** * Enumerate supported render model paths. * @@ -158,26 +158,26 @@ public static int nxrEnumerateRenderModelPathsFB(XrSession session, int pathCapa * @param session the specified {@code XrSession}. * @param pathCountOutput a pointer to the count of {@code float} {@code paths} written, or a pointer to the required capacity in the case that {@code pathCapacityInput} is insufficient. * @param paths a pointer to an application-allocated array that will be filled with {@link XrRenderModelPathInfoFB} values that are supported by the runtime, but can be {@code NULL} if {@code pathCapacityInput} is 0 - */ - @NativeType("XrResult") - public static int xrEnumerateRenderModelPathsFB(XrSession session, @NativeType("uint32_t *") IntBuffer pathCountOutput, @Nullable @NativeType("XrRenderModelPathInfoFB *") XrRenderModelPathInfoFB.Buffer paths) { - if (CHECKS) { - check(pathCountOutput, 1); - } - return nxrEnumerateRenderModelPathsFB(session, remainingSafe(paths), memAddress(pathCountOutput), memAddressSafe(paths)); - } - - // --- [ xrGetRenderModelPropertiesFB ] --- - - /** Unsafe version of: {@link #xrGetRenderModelPropertiesFB GetRenderModelPropertiesFB} */ - public static int nxrGetRenderModelPropertiesFB(XrSession session, long path, long properties) { - long __functionAddress = session.getCapabilities().xrGetRenderModelPropertiesFB; - if (CHECKS) { - check(__functionAddress); - } - return callPJPI(session.address(), path, properties, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrEnumerateRenderModelPathsFB(XrSession session, @NativeType("uint32_t *") IntBuffer pathCountOutput, @Nullable @NativeType("XrRenderModelPathInfoFB *") XrRenderModelPathInfoFB.Buffer paths) { + if (CHECKS) { + check(pathCountOutput, 1); + } + return nxrEnumerateRenderModelPathsFB(session, remainingSafe(paths), memAddress(pathCountOutput), memAddressSafe(paths)); + } + // --- [ xrGetRenderModelPropertiesFB ] --- + + /** Unsafe version of: {@link #xrGetRenderModelPropertiesFB GetRenderModelPropertiesFB} */ + public static int nxrGetRenderModelPropertiesFB(XrSession session, long path, long properties) { + long __functionAddress = session.getCapabilities().xrGetRenderModelPropertiesFB; + if (CHECKS) { + check(__functionAddress); + } + return callPJPI(session.address(), path, properties, __functionAddress); + } + /** * Get information for a render model. * @@ -237,23 +237,23 @@ public static int nxrGetRenderModelPropertiesFB(XrSession session, long path, lo * @param session the specified {@code XrSession}. * @param path the path of the render model to get the properties for. * @param properties a pointer to the {@link XrRenderModelPropertiesFB} to write the render model information to. - */ - @NativeType("XrResult") - public static int xrGetRenderModelPropertiesFB(XrSession session, @NativeType("XrPath") long path, @NativeType("XrRenderModelPropertiesFB *") XrRenderModelPropertiesFB properties) { - return nxrGetRenderModelPropertiesFB(session, path, properties.address()); - } - - // --- [ xrLoadRenderModelFB ] --- - - /** Unsafe version of: {@link #xrLoadRenderModelFB LoadRenderModelFB} */ - public static int nxrLoadRenderModelFB(XrSession session, long info, long buffer) { - long __functionAddress = session.getCapabilities().xrLoadRenderModelFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), info, buffer, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrGetRenderModelPropertiesFB(XrSession session, @NativeType("XrPath") long path, @NativeType("XrRenderModelPropertiesFB *") XrRenderModelPropertiesFB properties) { + return nxrGetRenderModelPropertiesFB(session, path, properties.address()); + } + // --- [ xrLoadRenderModelFB ] --- + + /** Unsafe version of: {@link #xrLoadRenderModelFB LoadRenderModelFB} */ + public static int nxrLoadRenderModelFB(XrSession session, long info, long buffer) { + long __functionAddress = session.getCapabilities().xrLoadRenderModelFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(session.address(), info, buffer, __functionAddress); + } + /** * Load binary data for a render model. * @@ -312,10 +312,10 @@ public static int nxrLoadRenderModelFB(XrSession session, long info, long buffer * @param session the specified {@code XrSession}. * @param info a pointer to the {@link XrRenderModelLoadInfoFB} structure. * @param buffer a pointer to the {@link XrRenderModelBufferFB} structure to write the binary data into. - */ - @NativeType("XrResult") - public static int xrLoadRenderModelFB(XrSession session, @NativeType("XrRenderModelLoadInfoFB const *") XrRenderModelLoadInfoFB info, @NativeType("XrRenderModelBufferFB *") XrRenderModelBufferFB buffer) { - return nxrLoadRenderModelFB(session, info.address(), buffer.address()); - } + */ + @NativeType("XrResult") + public static int xrLoadRenderModelFB(XrSession session, @NativeType("XrRenderModelLoadInfoFB const *") XrRenderModelLoadInfoFB info, @NativeType("XrRenderModelBufferFB *") XrRenderModelBufferFB buffer) { + return nxrLoadRenderModelFB(session, info.address(), buffer.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBScene.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBScene.java index 452251956f..8853a51299 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBScene.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBScene.java @@ -4,27 +4,27 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; + /** * The XR_FB_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 = 3; - - /** The extension name. */ - public static final String XR_FB_SCENE_EXTENSION_NAME = "XR_FB_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}. * @@ -34,44 +34,28 @@ public class FBScene { *
  • {@link #XR_TYPE_SEMANTIC_LABELS_FB TYPE_SEMANTIC_LABELS_FB}
  • *
  • {@link #XR_TYPE_ROOM_LAYOUT_FB TYPE_ROOM_LAYOUT_FB}
  • *
  • {@link #XR_TYPE_BOUNDARY_2D_FB TYPE_BOUNDARY_2D_FB}
  • - *
  • {@link #XR_TYPE_SEMANTIC_LABELS_SUPPORT_INFO_FB TYPE_SEMANTIC_LABELS_SUPPORT_INFO_FB}
  • - * - */ - public static final int - XR_TYPE_SEMANTIC_LABELS_FB = 1000175000, - XR_TYPE_ROOM_LAYOUT_FB = 1000175001, - XR_TYPE_BOUNDARY_2D_FB = 1000175002, - XR_TYPE_SEMANTIC_LABELS_SUPPORT_INFO_FB = 1000175010; - - /** - * XrSemanticLabelsSupportFlagBitsFB - XrSemanticLabelsSupportFlagBitsFB - * - *
    Flag Descriptions
    - * - *
      - *
    • {@link #XR_SEMANTIC_LABELS_SUPPORT_MULTIPLE_SEMANTIC_LABELS_BIT_FB SEMANTIC_LABELS_SUPPORT_MULTIPLE_SEMANTIC_LABELS_BIT_FB} — If set, and the runtime reports the {@code extensionVersion} as 2 or greater, the runtime may return multiple semantic labels separated by a comma without spaces. Otherwise, the runtime must return a single semantic label.
    • - *
    • {@link #XR_SEMANTIC_LABELS_SUPPORT_ACCEPT_DESK_TO_TABLE_MIGRATION_BIT_FB SEMANTIC_LABELS_SUPPORT_ACCEPT_DESK_TO_TABLE_MIGRATION_BIT_FB} — If set, and the runtime reports the {@code extensionVersion} as 3 or greater, the runtime must return "TABLE" instead of "DESK" as a semantic label to the application. Otherwise, the runtime must return "DESK" instead of "TABLE" as a semantic label to the application, when applicable.
    • *
    - */ + */ public static final int - XR_SEMANTIC_LABELS_SUPPORT_MULTIPLE_SEMANTIC_LABELS_BIT_FB = 0x1, - XR_SEMANTIC_LABELS_SUPPORT_ACCEPT_DESK_TO_TABLE_MIGRATION_BIT_FB = 0x2; + 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); - } + } + // --- [ 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. * @@ -89,8 +73,6 @@ public static int nxrGetSpaceBoundingBox2DFB(XrSession session, XrSpace space, l * *

    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.

    * - *

    The bounding box is defined by an {@code offset} and {@code extent}. The {@code offset} refers to the coordinate of the minimum corner of the box in the x-y plane of the given {@code XrSpace}’s coordinate system; that is, the corner whose coordinate has the minimum value on each axis. The {@code extent} refers to the dimensions of the box along each axis. The maximum corner can therefore be computed as offset extent.

    - * *
    Valid Usage (Implicit)
    * *
      @@ -129,23 +111,23 @@ public static int nxrGetSpaceBoundingBox2DFB(XrSession session, XrSpace space, l * @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); - } + */ + @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. * @@ -201,23 +183,23 @@ public static int nxrGetSpaceBoundingBox3DFB(XrSession session, XrSpace space, l * @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); - } + */ + @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. * @@ -261,7 +243,6 @@ public static int nxrGetSpaceSemanticLabelsFB(XrSession session, XrSpace space, *
    • {@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 FBSpatialEntity#XR_ERROR_SPACE_COMPONENT_NOT_ENABLED_FB ERROR_SPACE_COMPONENT_NOT_ENABLED_FB}
    • *
    • {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED}
    • *
    @@ -274,23 +255,23 @@ public static int nxrGetSpaceSemanticLabelsFB(XrSession session, XrSpace space, * @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); - } + */ + @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. * @@ -334,7 +315,6 @@ public static int nxrGetSpaceBoundary2DFB(XrSession session, XrSpace space, long *
  • {@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 FBSpatialEntity#XR_ERROR_SPACE_COMPONENT_NOT_ENABLED_FB ERROR_SPACE_COMPONENT_NOT_ENABLED_FB}
  • *
  • {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED}
  • * @@ -347,23 +327,23 @@ public static int nxrGetSpaceBoundary2DFB(XrSession session, XrSpace space, long * @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); - } + */ + @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. * @@ -381,8 +361,6 @@ public static int nxrGetSpaceRoomLayoutFB(XrSession session, XrSpace space, long * *

    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.

    * - *

    If the {@link XrRoomLayoutFB}{@code ::wallUuidCapacityInput} field is zero (indicating a request to retrieve the required capacity for the {@link XrRoomLayoutFB}{@code ::wallUuids} array), or if {@link #xrGetSpaceRoomLayoutFB GetSpaceRoomLayoutFB} returns failure, then the values of {@code floorUuid} and {@code ceilingUuid} are unspecified and should not be used.

    - * *
    Valid Usage (Implicit)
    * *
      @@ -409,7 +387,6 @@ public static int nxrGetSpaceRoomLayoutFB(XrSession session, XrSpace space, long *
    • {@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 FBSpatialEntity#XR_ERROR_SPACE_COMPONENT_NOT_ENABLED_FB ERROR_SPACE_COMPONENT_NOT_ENABLED_FB}
    • *
    • {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED}
    • *
    @@ -422,10 +399,10 @@ public static int nxrGetSpaceRoomLayoutFB(XrSession session, XrSpace space, long * @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()); - } + */ + @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/FBSceneCapture.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSceneCapture.java index a5fcbd5f1c..8edb7c0299 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSceneCapture.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSceneCapture.java @@ -4,30 +4,30 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import java.nio.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_FB_scene_capture extension. * *

    This extension allows an application to request that the system begin capturing information about what is in the environment around the user.

    * - *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    - */ -public class FBSceneCapture { - - /** The extension specification version. */ - public static final int XR_FB_scene_capture_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_FB_SCENE_CAPTURE_EXTENSION_NAME = "XR_FB_scene_capture"; - + *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    + */ +public class FBSceneCapture { + + /** The extension specification version. */ + public static final int XR_FB_scene_capture_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_FB_SCENE_CAPTURE_EXTENSION_NAME = "XR_FB_scene_capture"; + /** * Extends {@code XrStructureType}. * @@ -37,26 +37,26 @@ public class FBSceneCapture { *
  • {@link #XR_TYPE_EVENT_DATA_SCENE_CAPTURE_COMPLETE_FB TYPE_EVENT_DATA_SCENE_CAPTURE_COMPLETE_FB}
  • *
  • {@link #XR_TYPE_SCENE_CAPTURE_REQUEST_INFO_FB TYPE_SCENE_CAPTURE_REQUEST_INFO_FB}
  • * - */ + */ public static final int - XR_TYPE_EVENT_DATA_SCENE_CAPTURE_COMPLETE_FB = 1000198001, - XR_TYPE_SCENE_CAPTURE_REQUEST_INFO_FB = 1000198050; + XR_TYPE_EVENT_DATA_SCENE_CAPTURE_COMPLETE_FB = 1000198001, + XR_TYPE_SCENE_CAPTURE_REQUEST_INFO_FB = 1000198050; protected FBSceneCapture() { throw new UnsupportedOperationException(); - } - - // --- [ xrRequestSceneCaptureFB ] --- - - /** Unsafe version of: {@link #xrRequestSceneCaptureFB RequestSceneCaptureFB} */ - public static int nxrRequestSceneCaptureFB(XrSession session, long info, long requestId) { - long __functionAddress = session.getCapabilities().xrRequestSceneCaptureFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), info, requestId, __functionAddress); - } + } + // --- [ xrRequestSceneCaptureFB ] --- + + /** Unsafe version of: {@link #xrRequestSceneCaptureFB RequestSceneCaptureFB} */ + public static int nxrRequestSceneCaptureFB(XrSession session, long info, long requestId) { + long __functionAddress = session.getCapabilities().xrRequestSceneCaptureFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(session.address(), info, requestId, __functionAddress); + } + /** * Begins a scene capture using the specified parameters. * @@ -110,13 +110,13 @@ public static int nxrRequestSceneCaptureFB(XrSession session, long info, long re * @param session a handle to an {@code XrSession}. * @param info an {@link XrSceneCaptureRequestInfoFB} which specifies how the scene capture should occur. * @param requestId the output parameter that points to the ID of this asynchronous request. - */ - @NativeType("XrResult") - public static int xrRequestSceneCaptureFB(XrSession session, @NativeType("XrSceneCaptureRequestInfoFB const *") XrSceneCaptureRequestInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) { - if (CHECKS) { - check(requestId, 1); - } - return nxrRequestSceneCaptureFB(session, info.address(), memAddress(requestId)); - } + */ + @NativeType("XrResult") + public static int xrRequestSceneCaptureFB(XrSession session, @NativeType("XrSceneCaptureRequestInfoFB const *") XrSceneCaptureRequestInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) { + if (CHECKS) { + check(requestId, 1); + } + return nxrRequestSceneCaptureFB(session, info.address(), memAddress(requestId)); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpaceWarp.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpaceWarp.java index 405a3b1cd8..aac3fc6b40 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpaceWarp.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpaceWarp.java @@ -4,27 +4,27 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_FB_space_warp extension. * *

    This extension provides support to enable space warp technology on application. By feeding application generated motion vector and depth buffer images, the runtime can do high quality frame extrapolation and reprojection, allow applications to run at half fps but still providing smooth experience to users.

    * - *

    In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    + *

    In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    * *
    Note
    * *

    This extension is independent of {@link KHRCompositionLayerDepth XR_KHR_composition_layer_depth}, and both may be enabled and used at the same time, for different purposes. The {@link XrCompositionLayerSpaceWarpInfoFB}{@code ::depthSubImage} depth data is dedicated for space warp, and its resolution is usually lower than {@link XrCompositionLayerDepthInfoKHR}{@code ::subImage}. See {@link XrSystemSpaceWarpPropertiesFB} for suggested resolution of {@code depthSubImage}.

    *
    - */ -public final class FBSpaceWarp { - - /** The extension specification version. */ - public static final int XR_FB_space_warp_SPEC_VERSION = 2; - - /** The extension name. */ - public static final String XR_FB_SPACE_WARP_EXTENSION_NAME = "XR_FB_space_warp"; - + */ +public final class FBSpaceWarp { + + /** The extension specification version. */ + public static final int XR_FB_space_warp_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_FB_SPACE_WARP_EXTENSION_NAME = "XR_FB_space_warp"; + /** * Extends {@code XrStructureType}. * @@ -34,11 +34,11 @@ public final class FBSpaceWarp { *
  • {@link #XR_TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB}
  • *
  • {@link #XR_TYPE_SYSTEM_SPACE_WARP_PROPERTIES_FB TYPE_SYSTEM_SPACE_WARP_PROPERTIES_FB}
  • * - */ + */ public static final int - XR_TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB = 1000171000, - XR_TYPE_SYSTEM_SPACE_WARP_PROPERTIES_FB = 1000171001; - + XR_TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB = 1000171000, + XR_TYPE_SYSTEM_SPACE_WARP_PROPERTIES_FB = 1000171001; + /** * XrCompositionLayerSpaceWarpInfoFlagBitsFB - XrCompositionLayerSpaceWarpInfoFlagBitsFB * @@ -47,9 +47,9 @@ public final class FBSpaceWarp { *
      *
    • {@link #XR_COMPOSITION_LAYER_SPACE_WARP_INFO_FRAME_SKIP_BIT_FB COMPOSITION_LAYER_SPACE_WARP_INFO_FRAME_SKIP_BIT_FB} requests that the runtime skips space warp frame extrapolation for a particular frame. This can be used when the application has better knowledge the particular frame will be not a good fit for space warp frame extrapolation.
    • *
    - */ - public static final int XR_COMPOSITION_LAYER_SPACE_WARP_INFO_FRAME_SKIP_BIT_FB = 0x1; + */ + public static final int XR_COMPOSITION_LAYER_SPACE_WARP_INFO_FRAME_SKIP_BIT_FB = 0x1; - private FBSpaceWarp() {} + private FBSpaceWarp() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntity.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntity.java index 1ca6aa80b3..aa02ec70aa 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntity.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntity.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_FB_spatial_entity extension. * @@ -22,7 +22,7 @@ * *

    We use OpenXR {@code XrSpace} handles to give applications access to spatial entities such as Spatial Anchors. In other words, any operation which involves spatial entities uses {@code XrSpace} handles to identify the affected spatial entities.

    * - *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    + *

    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.

    * *

    This extension allows:

    * @@ -32,15 +32,15 @@ *
  • An application to enable or disable a component for a given spatial entity.
  • *
  • An application to get the status of a component for a given spatial entity.
  • * - */ -public class FBSpatialEntity { - - /** The extension specification version. */ - public static final int XR_FB_spatial_entity_SPEC_VERSION = 2; - - /** The extension name. */ - public static final String XR_FB_SPATIAL_ENTITY_EXTENSION_NAME = "XR_FB_spatial_entity"; - + */ +public class FBSpatialEntity { + + /** The extension specification version. */ + public static final int XR_FB_spatial_entity_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_FB_SPATIAL_ENTITY_EXTENSION_NAME = "XR_FB_spatial_entity"; + /** * Extends {@code XrStructureType}. * @@ -54,15 +54,15 @@ public class FBSpatialEntity { *
  • {@link #XR_TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB}
  • *
  • {@link #XR_TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB}
  • * - */ + */ public static final int - XR_TYPE_SYSTEM_SPATIAL_ENTITY_PROPERTIES_FB = 1000113004, - XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB = 1000113003, - XR_TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB = 1000113007, - XR_TYPE_SPACE_COMPONENT_STATUS_FB = 1000113001, - XR_TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB = 1000113005, - XR_TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB = 1000113006; - + XR_TYPE_SYSTEM_SPATIAL_ENTITY_PROPERTIES_FB = 1000113004, + XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB = 1000113003, + XR_TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB = 1000113007, + XR_TYPE_SPACE_COMPONENT_STATUS_FB = 1000113001, + XR_TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB = 1000113005, + XR_TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB = 1000113006; + /** * Extends {@code XrResult}. * @@ -74,13 +74,13 @@ public class FBSpatialEntity { *
  • {@link #XR_ERROR_SPACE_COMPONENT_STATUS_PENDING_FB ERROR_SPACE_COMPONENT_STATUS_PENDING_FB}
  • *
  • {@link #XR_ERROR_SPACE_COMPONENT_STATUS_ALREADY_SET_FB ERROR_SPACE_COMPONENT_STATUS_ALREADY_SET_FB}
  • * - */ + */ public static final int - XR_ERROR_SPACE_COMPONENT_NOT_SUPPORTED_FB = -1000113000, - XR_ERROR_SPACE_COMPONENT_NOT_ENABLED_FB = -1000113001, - XR_ERROR_SPACE_COMPONENT_STATUS_PENDING_FB = -1000113002, - XR_ERROR_SPACE_COMPONENT_STATUS_ALREADY_SET_FB = -1000113003; - + XR_ERROR_SPACE_COMPONENT_NOT_SUPPORTED_FB = -1000113000, + XR_ERROR_SPACE_COMPONENT_NOT_ENABLED_FB = -1000113001, + XR_ERROR_SPACE_COMPONENT_STATUS_PENDING_FB = -1000113002, + XR_ERROR_SPACE_COMPONENT_STATUS_ALREADY_SET_FB = -1000113003; + /** * XrSpaceComponentTypeFB - Component type * @@ -104,33 +104,33 @@ public class FBSpatialEntity { *
    See Also
    * *

    {@link XrEventDataSpaceSetStatusCompleteFB}, {@link XrSpaceComponentFilterInfoFB}, {@link XrSpaceComponentStatusSetInfoFB}, {@link #xrEnumerateSpaceSupportedComponentsFB EnumerateSpaceSupportedComponentsFB}, {@link #xrGetSpaceComponentStatusFB GetSpaceComponentStatusFB}

    - */ + */ public static final int - XR_SPACE_COMPONENT_TYPE_LOCATABLE_FB = 0, - XR_SPACE_COMPONENT_TYPE_STORABLE_FB = 1, - XR_SPACE_COMPONENT_TYPE_SHARABLE_FB = 2, - XR_SPACE_COMPONENT_TYPE_BOUNDED_2D_FB = 3, - XR_SPACE_COMPONENT_TYPE_BOUNDED_3D_FB = 4, - XR_SPACE_COMPONENT_TYPE_SEMANTIC_LABELS_FB = 5, - XR_SPACE_COMPONENT_TYPE_ROOM_LAYOUT_FB = 6, - XR_SPACE_COMPONENT_TYPE_SPACE_CONTAINER_FB = 7; + XR_SPACE_COMPONENT_TYPE_LOCATABLE_FB = 0, + XR_SPACE_COMPONENT_TYPE_STORABLE_FB = 1, + XR_SPACE_COMPONENT_TYPE_SHARABLE_FB = 2, + XR_SPACE_COMPONENT_TYPE_BOUNDED_2D_FB = 3, + XR_SPACE_COMPONENT_TYPE_BOUNDED_3D_FB = 4, + XR_SPACE_COMPONENT_TYPE_SEMANTIC_LABELS_FB = 5, + XR_SPACE_COMPONENT_TYPE_ROOM_LAYOUT_FB = 6, + XR_SPACE_COMPONENT_TYPE_SPACE_CONTAINER_FB = 7; protected FBSpatialEntity() { throw new UnsupportedOperationException(); - } - - // --- [ xrCreateSpatialAnchorFB ] --- - - /** Unsafe version of: {@link #xrCreateSpatialAnchorFB CreateSpatialAnchorFB} */ - public static int nxrCreateSpatialAnchorFB(XrSession session, long info, long requestId) { - long __functionAddress = session.getCapabilities().xrCreateSpatialAnchorFB; - if (CHECKS) { - check(__functionAddress); - XrSpatialAnchorCreateInfoFB.validate(info); - } - return callPPPI(session.address(), info, requestId, __functionAddress); - } + } + // --- [ xrCreateSpatialAnchorFB ] --- + + /** Unsafe version of: {@link #xrCreateSpatialAnchorFB CreateSpatialAnchorFB} */ + public static int nxrCreateSpatialAnchorFB(XrSession session, long info, long requestId) { + long __functionAddress = session.getCapabilities().xrCreateSpatialAnchorFB; + if (CHECKS) { + check(__functionAddress); + XrSpatialAnchorCreateInfoFB.validate(info); + } + return callPPPI(session.address(), info, requestId, __functionAddress); + } + /** * Creates a new spatial anchor. * @@ -146,7 +146,7 @@ public static int nxrCreateSpatialAnchorFB(XrSession session, long info, long re * *
    Description
    * - *

    Creates a Spatial Anchor using the specified tracking origin and pose relative to the specified tracking origin. The anchor will be locatable at the time of creation, and the 6 DOF pose relative to the tracking origin can be queried using the {@link XR10#xrLocateSpace LocateSpace} method. This operation is asynchronous and the runtime must post an {@link XrEventDataSpatialAnchorCreateCompleteFB} event when the operation completes successfully or encounters an error. If this function returns a failure code, no event is posted. The {@code requestId} can be used to later refer to the request, such as identifying which request has completed when an {@link XrEventDataSpatialAnchorCreateCompleteFB} is posted to the event queue.

    + *

    Creates a Spatial Anchor using the specified tracking origin and pose relative to the specified tracking origin. The anchor will be locatable at the time of creation, and the 6 DOF pose relative to the tracking origin can be queried using the {@link XR10#xrLocateSpace LocateSpace} method. This operation is asynchronous and the runtime must post an {@link XrEventDataSpatialAnchorCreateCompleteFB} event when the operation completes successfully or encounters an error. The {@code requestId} can be used to later refer to the request, such as identifying which request has completed when an {@link XrEventDataSpatialAnchorCreateCompleteFB} is posted to the event queue.

    * *
    Valid Usage (Implicit)
    * @@ -188,26 +188,26 @@ public static int nxrCreateSpatialAnchorFB(XrSession session, long info, long re * @param session a handle to an {@code XrSession}. * @param info a pointer to an {@link XrSpatialAnchorCreateInfoFB} structure containing information about how to create the anchor. * @param requestId the output parameter that points to the ID of this asynchronous request. - */ - @NativeType("XrResult") - public static int xrCreateSpatialAnchorFB(XrSession session, @NativeType("XrSpatialAnchorCreateInfoFB const *") XrSpatialAnchorCreateInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) { - if (CHECKS) { - check(requestId, 1); - } - return nxrCreateSpatialAnchorFB(session, info.address(), memAddress(requestId)); - } - - // --- [ xrGetSpaceUuidFB ] --- - - /** Unsafe version of: {@link #xrGetSpaceUuidFB GetSpaceUuidFB} */ - public static int nxrGetSpaceUuidFB(XrSpace space, long uuid) { - long __functionAddress = space.getCapabilities().xrGetSpaceUuidFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(space.address(), uuid, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrCreateSpatialAnchorFB(XrSession session, @NativeType("XrSpatialAnchorCreateInfoFB const *") XrSpatialAnchorCreateInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) { + if (CHECKS) { + check(requestId, 1); + } + return nxrCreateSpatialAnchorFB(session, info.address(), memAddress(requestId)); + } + // --- [ xrGetSpaceUuidFB ] --- + + /** Unsafe version of: {@link #xrGetSpaceUuidFB GetSpaceUuidFB} */ + public static int nxrGetSpaceUuidFB(XrSpace space, long uuid) { + long __functionAddress = space.getCapabilities().xrGetSpaceUuidFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPI(space.address(), uuid, __functionAddress); + } + /** * Gets an entity. * @@ -258,27 +258,27 @@ public static int nxrGetSpaceUuidFB(XrSpace space, long uuid) { * * @param space the {@code XrSpace} handle of a spatial entity. * @param uuid an output parameter pointing to the entity’s UUID. - */ - @NativeType("XrResult") - public static int xrGetSpaceUuidFB(XrSpace space, @NativeType("XrUuidEXT *") XrUuidEXT uuid) { - return nxrGetSpaceUuidFB(space, uuid.address()); - } - - // --- [ xrEnumerateSpaceSupportedComponentsFB ] --- + */ + @NativeType("XrResult") + public static int xrGetSpaceUuidFB(XrSpace space, @NativeType("XrUuidEXT *") XrUuidEXT uuid) { + return nxrGetSpaceUuidFB(space, uuid.address()); + } + // --- [ xrEnumerateSpaceSupportedComponentsFB ] --- + /** * Unsafe version of: {@link #xrEnumerateSpaceSupportedComponentsFB EnumerateSpaceSupportedComponentsFB} * * @param componentTypeCapacityInput the capacity of the {@code componentTypes} array, or 0 to indicate a request to retrieve the required capacity. - */ - public static int nxrEnumerateSpaceSupportedComponentsFB(XrSpace space, int componentTypeCapacityInput, long componentTypeCountOutput, long componentTypes) { - long __functionAddress = space.getCapabilities().xrEnumerateSpaceSupportedComponentsFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(space.address(), componentTypeCapacityInput, componentTypeCountOutput, componentTypes, __functionAddress); - } - + */ + public static int nxrEnumerateSpaceSupportedComponentsFB(XrSpace space, int componentTypeCapacityInput, long componentTypeCountOutput, long componentTypes) { + long __functionAddress = space.getCapabilities().xrEnumerateSpaceSupportedComponentsFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(space.address(), componentTypeCapacityInput, componentTypeCountOutput, componentTypes, __functionAddress); + } + /** * Enumerates supported components for a given spatial entity. * @@ -322,7 +322,6 @@ public static int nxrEnumerateSpaceSupportedComponentsFB(XrSpace space, int comp *
  • {@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}
  • * * @@ -330,26 +329,26 @@ public static int nxrEnumerateSpaceSupportedComponentsFB(XrSpace space, int comp * @param space the {@code XrSpace} handle to the spatial entity. * @param componentTypeCountOutput a pointer to the count of {@code componentTypes} written, or a pointer to the required capacity in the case that {@code componentTypeCapacityInput} is insufficient. * @param componentTypes a pointer to an array of {@code XrSpaceComponentTypeFB} values, but can be {@code NULL} if {@code componentTypeCapacityInput} is 0. - */ - @NativeType("XrResult") - public static int xrEnumerateSpaceSupportedComponentsFB(XrSpace space, @NativeType("uint32_t *") IntBuffer componentTypeCountOutput, @Nullable @NativeType("XrSpaceComponentTypeFB *") IntBuffer componentTypes) { - if (CHECKS) { - check(componentTypeCountOutput, 1); - } - return nxrEnumerateSpaceSupportedComponentsFB(space, remainingSafe(componentTypes), memAddress(componentTypeCountOutput), memAddressSafe(componentTypes)); - } - - // --- [ xrSetSpaceComponentStatusFB ] --- - - /** Unsafe version of: {@link #xrSetSpaceComponentStatusFB SetSpaceComponentStatusFB} */ - public static int nxrSetSpaceComponentStatusFB(XrSpace space, long info, long requestId) { - long __functionAddress = space.getCapabilities().xrSetSpaceComponentStatusFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(space.address(), info, requestId, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrEnumerateSpaceSupportedComponentsFB(XrSpace space, @NativeType("uint32_t *") IntBuffer componentTypeCountOutput, @Nullable @NativeType("XrSpaceComponentTypeFB *") IntBuffer componentTypes) { + if (CHECKS) { + check(componentTypeCountOutput, 1); + } + return nxrEnumerateSpaceSupportedComponentsFB(space, remainingSafe(componentTypes), memAddress(componentTypeCountOutput), memAddressSafe(componentTypes)); + } + // --- [ xrSetSpaceComponentStatusFB ] --- + + /** Unsafe version of: {@link #xrSetSpaceComponentStatusFB SetSpaceComponentStatusFB} */ + public static int nxrSetSpaceComponentStatusFB(XrSpace space, long info, long requestId) { + long __functionAddress = space.getCapabilities().xrSetSpaceComponentStatusFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(space.address(), info, requestId, __functionAddress); + } + /** * Enables or disables supported component interfaces for an entity. * @@ -365,7 +364,7 @@ public static int nxrSetSpaceComponentStatusFB(XrSpace space, long info, long re * *
    Description
    * - *

    Enables or disables the specified component for the specified entity. This operation is asynchronous and always returns immediately, regardless of the value of {@code timeout}. The {@code requestId} can be used to later refer to the request, such as identifying which request has completed when an {@link XrEventDataSpaceSetStatusCompleteFB} is posted to the event queue. If this function returns a failure code, no event is posted. This function must return {@link #XR_ERROR_SPACE_COMPONENT_NOT_SUPPORTED_FB ERROR_SPACE_COMPONENT_NOT_SUPPORTED_FB} if the {@code XrSpace} does not support the specified component type.

    + *

    Enables or disables the specified component for the specified entity. This operation is asynchronous and always returns immediately, regardless of the value of {@code timeout}. The {@code requestId} can be used to later refer to the request, such as identifying which request has completed when an {@link XrEventDataSpaceSetStatusCompleteFB} is posted to the event queue. This function must return {@link #XR_ERROR_SPACE_COMPONENT_NOT_SUPPORTED_FB ERROR_SPACE_COMPONENT_NOT_SUPPORTED_FB} if the {@code XrSpace} does not support the specified component type.

    * *
    Valid Usage (Implicit)
    * @@ -406,26 +405,26 @@ public static int nxrSetSpaceComponentStatusFB(XrSpace space, long info, long re * @param space the {@code XrSpace} handle to the spatial entity. * @param info a pointer to an {@link XrSpaceComponentStatusSetInfoFB} structure containing information about the component to be enabled or disabled. * @param requestId the output parameter that points to the ID of this asynchronous request. - */ - @NativeType("XrResult") - public static int xrSetSpaceComponentStatusFB(XrSpace space, @NativeType("XrSpaceComponentStatusSetInfoFB const *") XrSpaceComponentStatusSetInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) { - if (CHECKS) { - check(requestId, 1); - } - return nxrSetSpaceComponentStatusFB(space, info.address(), memAddress(requestId)); - } - - // --- [ xrGetSpaceComponentStatusFB ] --- - - /** Unsafe version of: {@link #xrGetSpaceComponentStatusFB GetSpaceComponentStatusFB} */ - public static int nxrGetSpaceComponentStatusFB(XrSpace space, int componentType, long status) { - long __functionAddress = space.getCapabilities().xrGetSpaceComponentStatusFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(space.address(), componentType, status, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrSetSpaceComponentStatusFB(XrSpace space, @NativeType("XrSpaceComponentStatusSetInfoFB const *") XrSpaceComponentStatusSetInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) { + if (CHECKS) { + check(requestId, 1); + } + return nxrSetSpaceComponentStatusFB(space, info.address(), memAddress(requestId)); + } + // --- [ xrGetSpaceComponentStatusFB ] --- + + /** Unsafe version of: {@link #xrGetSpaceComponentStatusFB GetSpaceComponentStatusFB} */ + public static int nxrGetSpaceComponentStatusFB(XrSpace space, int componentType, long status) { + long __functionAddress = space.getCapabilities().xrGetSpaceComponentStatusFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPI(space.address(), componentType, status, __functionAddress); + } + /** * Provides the current state of a component. * @@ -480,10 +479,10 @@ public static int nxrGetSpaceComponentStatusFB(XrSpace space, int componentType, * @param space the {@code XrSpace} handle of a spatial entity. * @param componentType the component type to query. * @param status an output parameter pointing to the structure containing the status of the component that was queried. - */ - @NativeType("XrResult") - public static int xrGetSpaceComponentStatusFB(XrSpace space, @NativeType("XrSpaceComponentTypeFB") int componentType, @NativeType("XrSpaceComponentStatusFB *") XrSpaceComponentStatusFB status) { - return nxrGetSpaceComponentStatusFB(space, componentType, status.address()); - } + */ + @NativeType("XrResult") + public static int xrGetSpaceComponentStatusFB(XrSpace space, @NativeType("XrSpaceComponentTypeFB") int componentType, @NativeType("XrSpaceComponentStatusFB *") XrSpaceComponentStatusFB status) { + return nxrGetSpaceComponentStatusFB(space, componentType, status.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityContainer.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityContainer.java index 318aa98ca1..b795d6f831 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityContainer.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityContainer.java @@ -4,45 +4,45 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; + /** * The XR_FB_spatial_entity_container extension. * *

    This extension expands on the concept of spatial entities to include a way for one spatial entity to contain multiple child spatial entities, forming a hierarchy.

    * - *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    - */ -public class FBSpatialEntityContainer { - - /** The extension specification version. */ - public static final int XR_FB_spatial_entity_container_SPEC_VERSION = 2; - - /** The extension name. */ - public static final String XR_FB_SPATIAL_ENTITY_CONTAINER_EXTENSION_NAME = "XR_FB_spatial_entity_container"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_SPACE_CONTAINER_FB = 1000199000; + *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    + */ +public class FBSpatialEntityContainer { + + /** The extension specification version. */ + public static final int XR_FB_spatial_entity_container_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_FB_SPATIAL_ENTITY_CONTAINER_EXTENSION_NAME = "XR_FB_spatial_entity_container"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_SPACE_CONTAINER_FB = 1000199000; protected FBSpatialEntityContainer() { throw new UnsupportedOperationException(); - } - - // --- [ xrGetSpaceContainerFB ] --- - - /** Unsafe version of: {@link #xrGetSpaceContainerFB GetSpaceContainerFB} */ - public static int nxrGetSpaceContainerFB(XrSession session, XrSpace space, long spaceContainerOutput) { - long __functionAddress = session.getCapabilities().xrGetSpaceContainerFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), space.address(), spaceContainerOutput, __functionAddress); - } + } + // --- [ xrGetSpaceContainerFB ] --- + + /** Unsafe version of: {@link #xrGetSpaceContainerFB GetSpaceContainerFB} */ + public static int nxrGetSpaceContainerFB(XrSession session, XrSpace space, long spaceContainerOutput) { + long __functionAddress = session.getCapabilities().xrGetSpaceContainerFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(session.address(), space.address(), spaceContainerOutput, __functionAddress); + } + /** * Gets a XrSpaceContainerFB which lists contained spaces. * @@ -88,7 +88,6 @@ public static int nxrGetSpaceContainerFB(XrSession session, XrSpace space, long *
  • {@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 FBSpatialEntity#XR_ERROR_SPACE_COMPONENT_NOT_ENABLED_FB ERROR_SPACE_COMPONENT_NOT_ENABLED_FB}
  • *
  • {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED}
  • * @@ -101,10 +100,10 @@ public static int nxrGetSpaceContainerFB(XrSession session, XrSpace space, long * @param session a handle to an {@code XrSession}. * @param space a handle to an {@code XrSpace}. * @param spaceContainerOutput the output parameter that points to an {@link XrSpaceContainerFB} containing information about which spaces are contained by {@code space}. - */ - @NativeType("XrResult") - public static int xrGetSpaceContainerFB(XrSession session, XrSpace space, @NativeType("XrSpaceContainerFB *") XrSpaceContainerFB spaceContainerOutput) { - return nxrGetSpaceContainerFB(session, space, spaceContainerOutput.address()); - } + */ + @NativeType("XrResult") + public static int xrGetSpaceContainerFB(XrSession session, XrSpace space, @NativeType("XrSpaceContainerFB *") XrSpaceContainerFB spaceContainerOutput) { + return nxrGetSpaceContainerFB(session, space, spaceContainerOutput.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityQuery.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityQuery.java index 7cec314a3c..b8cb838fcb 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityQuery.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityQuery.java @@ -4,30 +4,30 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import java.nio.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_FB_spatial_entity_query extension. * *

    This extension enables an application to discover persistent spatial entities in the area and restore them. Using the query system, the application can load persistent spatial entities from storage. The query system consists of a set of filters to define the spatial entity search query and an operation that needs to be performed on the search results.

    * - *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    - */ -public class FBSpatialEntityQuery { - - /** The extension specification version. */ - public static final int XR_FB_spatial_entity_query_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_FB_SPATIAL_ENTITY_QUERY_EXTENSION_NAME = "XR_FB_spatial_entity_query"; - + *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    + */ +public class FBSpatialEntityQuery { + + /** The extension specification version. */ + public static final int XR_FB_spatial_entity_query_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_FB_SPATIAL_ENTITY_QUERY_EXTENSION_NAME = "XR_FB_spatial_entity_query"; + /** * Extends {@code XrStructureType}. * @@ -42,16 +42,16 @@ public class FBSpatialEntityQuery { *
  • {@link #XR_TYPE_EVENT_DATA_SPACE_QUERY_RESULTS_AVAILABLE_FB TYPE_EVENT_DATA_SPACE_QUERY_RESULTS_AVAILABLE_FB}
  • *
  • {@link #XR_TYPE_EVENT_DATA_SPACE_QUERY_COMPLETE_FB TYPE_EVENT_DATA_SPACE_QUERY_COMPLETE_FB}
  • * - */ + */ public static final int - XR_TYPE_SPACE_QUERY_INFO_FB = 1000156001, - XR_TYPE_SPACE_QUERY_RESULTS_FB = 1000156002, - XR_TYPE_SPACE_STORAGE_LOCATION_FILTER_INFO_FB = 1000156003, - XR_TYPE_SPACE_UUID_FILTER_INFO_FB = 1000156054, - XR_TYPE_SPACE_COMPONENT_FILTER_INFO_FB = 1000156052, - XR_TYPE_EVENT_DATA_SPACE_QUERY_RESULTS_AVAILABLE_FB = 1000156103, - XR_TYPE_EVENT_DATA_SPACE_QUERY_COMPLETE_FB = 1000156104; - + XR_TYPE_SPACE_QUERY_INFO_FB = 1000156001, + XR_TYPE_SPACE_QUERY_RESULTS_FB = 1000156002, + XR_TYPE_SPACE_STORAGE_LOCATION_FILTER_INFO_FB = 1000156003, + XR_TYPE_SPACE_UUID_FILTER_INFO_FB = 1000156054, + XR_TYPE_SPACE_COMPONENT_FILTER_INFO_FB = 1000156052, + XR_TYPE_EVENT_DATA_SPACE_QUERY_RESULTS_AVAILABLE_FB = 1000156103, + XR_TYPE_EVENT_DATA_SPACE_QUERY_COMPLETE_FB = 1000156104; + /** * XrSpaceQueryActionFB - Type of query being performed * @@ -68,9 +68,9 @@ public class FBSpatialEntityQuery { *
    See Also
    * *

    {@link XrSpaceQueryInfoFB}

    - */ - public static final int XR_SPACE_QUERY_ACTION_LOAD_FB = 0; - + */ + public static final int XR_SPACE_QUERY_ACTION_LOAD_FB = 0; + /** * XrSpaceStorageLocationFB - Storage location to persist spatial entities * @@ -89,27 +89,27 @@ public class FBSpatialEntityQuery { *
    See Also
    * *

    {@link XrEventDataSpaceEraseCompleteFB}, {@link XrEventDataSpaceSaveCompleteFB}, {@link XrSpaceEraseInfoFB}, {@link XrSpaceListSaveInfoFB}, {@link XrSpaceSaveInfoFB}, {@link XrSpaceStorageLocationFilterInfoFB}

    - */ + */ public static final int - XR_SPACE_STORAGE_LOCATION_INVALID_FB = 0, - XR_SPACE_STORAGE_LOCATION_LOCAL_FB = 1, - XR_SPACE_STORAGE_LOCATION_CLOUD_FB = 2; + XR_SPACE_STORAGE_LOCATION_INVALID_FB = 0, + XR_SPACE_STORAGE_LOCATION_LOCAL_FB = 1, + XR_SPACE_STORAGE_LOCATION_CLOUD_FB = 2; protected FBSpatialEntityQuery() { throw new UnsupportedOperationException(); - } - - // --- [ xrQuerySpacesFB ] --- - - /** Unsafe version of: {@link #xrQuerySpacesFB QuerySpacesFB} */ - public static int nxrQuerySpacesFB(XrSession session, long info, long requestId) { - long __functionAddress = session.getCapabilities().xrQuerySpacesFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), info, requestId, __functionAddress); - } - + } + + // --- [ xrQuerySpacesFB ] --- + + /** Unsafe version of: {@link #xrQuerySpacesFB QuerySpacesFB} */ + public static int nxrQuerySpacesFB(XrSession session, long info, long requestId) { + long __functionAddress = session.getCapabilities().xrQuerySpacesFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(session.address(), info, requestId, __functionAddress); + } + /** * Queries for spatial entities. * @@ -125,7 +125,7 @@ public static int nxrQuerySpacesFB(XrSession session, long info, long requestId) * *
    Description
    * - *

    The {@link #xrQuerySpacesFB QuerySpacesFB} function enables an application to find and retrieve spatial entities from storage. Cast an {@link XrSpaceQueryInfoFB} pointer to a {@link XrSpaceQueryInfoBaseHeaderFB} pointer to pass as {@code info}. The application should keep the returned {@code requestId} for the duration of the request as it is used to refer to the request when calling {@link #xrRetrieveSpaceQueryResultsFB RetrieveSpaceQueryResultsFB} and is used to map completion events to the request. This operation is asynchronous and the runtime must post an {@link XrEventDataSpaceQueryCompleteFB} event when the operation completes successfully or encounters an error. If this function returns a failure code, no event is posted. The runtime must post an {@link XrEventDataSpaceQueryResultsAvailableFB} before {@link XrEventDataSpaceQueryCompleteFB} if any results are found. Once an {@link XrEventDataSpaceQueryResultsAvailableFB} event has been posted, the application may call {@link #xrRetrieveSpaceQueryResultsFB RetrieveSpaceQueryResultsFB} to retrieve the available results.

    + *

    The {@link #xrQuerySpacesFB QuerySpacesFB} function enables an application to find and retrieve spatial entities from storage. Cast an {@link XrSpaceQueryInfoFB} pointer to a {@link XrSpaceQueryInfoBaseHeaderFB} pointer to pass as {@code info}. The application should keep the returned {@code requestId} for the duration of the request as it is used to refer to the request when calling {@link #xrRetrieveSpaceQueryResultsFB RetrieveSpaceQueryResultsFB} and is used to map completion events to the request. This operation is asynchronous and the runtime must post an {@link XrEventDataSpaceQueryCompleteFB} event when the operation completes successfully or encounters an error. The runtime must post an {@link XrEventDataSpaceQueryResultsAvailableFB} if before {@link XrEventDataSpaceQueryCompleteFB} if any results are found. Once an {@link XrEventDataSpaceQueryResultsAvailableFB} event has been posted, the application may call {@link #xrRetrieveSpaceQueryResultsFB RetrieveSpaceQueryResultsFB} to retrieve the available results.

    * *
    Valid Usage (Implicit)
    * @@ -163,26 +163,26 @@ public static int nxrQuerySpacesFB(XrSession session, long info, long requestId) * @param session a handle to an {@code XrSession}. * @param info a pointer to the {@link XrSpaceQueryInfoBaseHeaderFB} structure. * @param requestId an output parameter, and the variable it points to will be populated with the ID of this asynchronous request. - */ - @NativeType("XrResult") - public static int xrQuerySpacesFB(XrSession session, @NativeType("XrSpaceQueryInfoBaseHeaderFB const *") XrSpaceQueryInfoBaseHeaderFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) { - if (CHECKS) { - check(requestId, 1); - } - return nxrQuerySpacesFB(session, info.address(), memAddress(requestId)); - } - - // --- [ xrRetrieveSpaceQueryResultsFB ] --- - - /** Unsafe version of: {@link #xrRetrieveSpaceQueryResultsFB RetrieveSpaceQueryResultsFB} */ - public static int nxrRetrieveSpaceQueryResultsFB(XrSession session, long requestId, long results) { - long __functionAddress = session.getCapabilities().xrRetrieveSpaceQueryResultsFB; - if (CHECKS) { - check(__functionAddress); - } - return callPJPI(session.address(), requestId, results, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrQuerySpacesFB(XrSession session, @NativeType("XrSpaceQueryInfoBaseHeaderFB const *") XrSpaceQueryInfoBaseHeaderFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) { + if (CHECKS) { + check(requestId, 1); + } + return nxrQuerySpacesFB(session, info.address(), memAddress(requestId)); + } + + // --- [ xrRetrieveSpaceQueryResultsFB ] --- + + /** Unsafe version of: {@link #xrRetrieveSpaceQueryResultsFB RetrieveSpaceQueryResultsFB} */ + public static int nxrRetrieveSpaceQueryResultsFB(XrSession session, long requestId, long results) { + long __functionAddress = session.getCapabilities().xrRetrieveSpaceQueryResultsFB; + if (CHECKS) { + check(__functionAddress); + } + return callPJPI(session.address(), requestId, results, __functionAddress); + } + /** * Copies query results into an output buffer. * @@ -224,7 +224,6 @@ public static int nxrRetrieveSpaceQueryResultsFB(XrSession session, long request *
  • {@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}
  • * * @@ -236,10 +235,10 @@ public static int nxrRetrieveSpaceQueryResultsFB(XrSession session, long request * @param session the {@code XrSession} for which the in-progress query is valid. * @param requestId the {@code XrAsyncRequestIdFB} to enumerate results for. * @param results a pointer to an {@link XrSpaceQueryResultsFB} to populate with results. - */ - @NativeType("XrResult") - public static int xrRetrieveSpaceQueryResultsFB(XrSession session, @NativeType("XrAsyncRequestIdFB") long requestId, @NativeType("XrSpaceQueryResultsFB *") XrSpaceQueryResultsFB results) { - return nxrRetrieveSpaceQueryResultsFB(session, requestId, results.address()); - } + */ + @NativeType("XrResult") + public static int xrRetrieveSpaceQueryResultsFB(XrSession session, @NativeType("XrAsyncRequestIdFB") long requestId, @NativeType("XrSpaceQueryResultsFB *") XrSpaceQueryResultsFB results) { + return nxrRetrieveSpaceQueryResultsFB(session, requestId, results.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntitySharing.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntitySharing.java index c0a20f8a53..2fdf02cf5e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntitySharing.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntitySharing.java @@ -4,30 +4,30 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import java.nio.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_FB_spatial_entity_sharing extension. * *

    This extension enables spatial entities to be shared between users. If the {@link FBSpatialEntity#XR_SPACE_COMPONENT_TYPE_SHARABLE_FB SPACE_COMPONENT_TYPE_SHARABLE_FB} component has been enabled on the spatial entity, application developers may share {@code XrSpace} entities between users.

    * - *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    - */ -public class FBSpatialEntitySharing { - - /** The extension specification version. */ - public static final int XR_FB_spatial_entity_sharing_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_FB_SPATIAL_ENTITY_SHARING_EXTENSION_NAME = "XR_FB_spatial_entity_sharing"; - + *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    + */ +public class FBSpatialEntitySharing { + + /** The extension specification version. */ + public static final int XR_FB_spatial_entity_sharing_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_FB_SPATIAL_ENTITY_SHARING_EXTENSION_NAME = "XR_FB_spatial_entity_sharing"; + /** * Extends {@code XrStructureType}. * @@ -37,11 +37,11 @@ public class FBSpatialEntitySharing { *
  • {@link #XR_TYPE_SPACE_SHARE_INFO_FB TYPE_SPACE_SHARE_INFO_FB}
  • *
  • {@link #XR_TYPE_EVENT_DATA_SPACE_SHARE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_SHARE_COMPLETE_FB}
  • * - */ + */ public static final int - XR_TYPE_SPACE_SHARE_INFO_FB = 1000169001, - XR_TYPE_EVENT_DATA_SPACE_SHARE_COMPLETE_FB = 1000169002; - + XR_TYPE_SPACE_SHARE_INFO_FB = 1000169001, + XR_TYPE_EVENT_DATA_SPACE_SHARE_COMPLETE_FB = 1000169002; + /** * Extends {@code XrResult}. * @@ -54,30 +54,30 @@ public class FBSpatialEntitySharing { *
  • {@link #XR_ERROR_SPACE_NETWORK_REQUEST_FAILED_FB ERROR_SPACE_NETWORK_REQUEST_FAILED_FB}
  • *
  • {@link #XR_ERROR_SPACE_CLOUD_STORAGE_DISABLED_FB ERROR_SPACE_CLOUD_STORAGE_DISABLED_FB}
  • * - */ + */ public static final int - XR_ERROR_SPACE_MAPPING_INSUFFICIENT_FB = -1000169000, - XR_ERROR_SPACE_LOCALIZATION_FAILED_FB = -1000169001, - XR_ERROR_SPACE_NETWORK_TIMEOUT_FB = -1000169002, - XR_ERROR_SPACE_NETWORK_REQUEST_FAILED_FB = -1000169003, - XR_ERROR_SPACE_CLOUD_STORAGE_DISABLED_FB = -1000169004; + XR_ERROR_SPACE_MAPPING_INSUFFICIENT_FB = -1000169000, + XR_ERROR_SPACE_LOCALIZATION_FAILED_FB = -1000169001, + XR_ERROR_SPACE_NETWORK_TIMEOUT_FB = -1000169002, + XR_ERROR_SPACE_NETWORK_REQUEST_FAILED_FB = -1000169003, + XR_ERROR_SPACE_CLOUD_STORAGE_DISABLED_FB = -1000169004; protected FBSpatialEntitySharing() { throw new UnsupportedOperationException(); - } - - // --- [ xrShareSpacesFB ] --- - - /** Unsafe version of: {@link #xrShareSpacesFB ShareSpacesFB} */ - public static int nxrShareSpacesFB(XrSession session, long info, long requestId) { - long __functionAddress = session.getCapabilities().xrShareSpacesFB; - if (CHECKS) { - check(__functionAddress); - XrSpaceShareInfoFB.validate(info); - } - return callPPPI(session.address(), info, requestId, __functionAddress); - } + } + // --- [ xrShareSpacesFB ] --- + + /** Unsafe version of: {@link #xrShareSpacesFB ShareSpacesFB} */ + public static int nxrShareSpacesFB(XrSession session, long info, long requestId) { + long __functionAddress = session.getCapabilities().xrShareSpacesFB; + if (CHECKS) { + check(__functionAddress); + XrSpaceShareInfoFB.validate(info); + } + return callPPPI(session.address(), info, requestId, __functionAddress); + } + /** * Shares spatial entities with specified users. * @@ -93,7 +93,7 @@ public static int nxrShareSpacesFB(XrSession session, long info, long requestId) * *
    Description
    * - *

    This operation is asynchronous and the runtime must post an {@link XrEventDataSpaceShareCompleteFB} event when the operation completes successfully or encounters an error. If this function returns a failure code, no event is posted. The {@code requestId} can be used to later refer to the request, such as identifying which request has completed when an {@link XrEventDataSpaceShareCompleteFB} is posted to the event queue.

    + *

    This operation is asynchronous and the runtime must post an {@link XrEventDataSpaceShareCompleteFB} event when the operation completes successfully or encounters an error. The {@code requestId} can be used to later refer to the request, such as identifying which request has completed when an {@link XrEventDataSpaceShareCompleteFB} is posted to the event queue.

    * *
    Valid Usage (Implicit)
    * @@ -137,13 +137,13 @@ public static int nxrShareSpacesFB(XrSession session, long info, long requestId) * @param session a handle to an {@code XrSession}. * @param info a pointer to an {@link XrSpaceShareInfoFB} structure containing information about which spatial entities to share with which users. * @param requestId the output parameter that points to the ID of this asynchronous request. - */ - @NativeType("XrResult") - public static int xrShareSpacesFB(XrSession session, @NativeType("XrSpaceShareInfoFB const *") XrSpaceShareInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) { - if (CHECKS) { - check(requestId, 1); - } - return nxrShareSpacesFB(session, info.address(), memAddress(requestId)); - } + */ + @NativeType("XrResult") + public static int xrShareSpacesFB(XrSession session, @NativeType("XrSpaceShareInfoFB const *") XrSpaceShareInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) { + if (CHECKS) { + check(requestId, 1); + } + return nxrShareSpacesFB(session, info.address(), memAddress(requestId)); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityStorage.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityStorage.java index 84b8f777f0..4385cb8dcc 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityStorage.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityStorage.java @@ -4,30 +4,30 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import java.nio.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_FB_spatial_entity_storage extension. * *

    This extension enables spatial entities to be stored and persisted across sessions. If the {@link FBSpatialEntity#XR_SPACE_COMPONENT_TYPE_STORABLE_FB SPACE_COMPONENT_TYPE_STORABLE_FB} component has been enabled on the spatial entity, application developers may save, load, and erase persisted {@code XrSpace} entities.

    * - *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    - */ -public class FBSpatialEntityStorage { - - /** The extension specification version. */ - public static final int XR_FB_spatial_entity_storage_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_FB_SPATIAL_ENTITY_STORAGE_EXTENSION_NAME = "XR_FB_spatial_entity_storage"; - + *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    + */ +public class FBSpatialEntityStorage { + + /** The extension specification version. */ + public static final int XR_FB_spatial_entity_storage_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_FB_SPATIAL_ENTITY_STORAGE_EXTENSION_NAME = "XR_FB_spatial_entity_storage"; + /** * Extends {@code XrStructureType}. * @@ -39,13 +39,13 @@ public class FBSpatialEntityStorage { *
  • {@link #XR_TYPE_EVENT_DATA_SPACE_SAVE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_SAVE_COMPLETE_FB}
  • *
  • {@link #XR_TYPE_EVENT_DATA_SPACE_ERASE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_ERASE_COMPLETE_FB}
  • * - */ + */ public static final int - XR_TYPE_SPACE_SAVE_INFO_FB = 1000158000, - XR_TYPE_SPACE_ERASE_INFO_FB = 1000158001, - XR_TYPE_EVENT_DATA_SPACE_SAVE_COMPLETE_FB = 1000158106, - XR_TYPE_EVENT_DATA_SPACE_ERASE_COMPLETE_FB = 1000158107; - + XR_TYPE_SPACE_SAVE_INFO_FB = 1000158000, + XR_TYPE_SPACE_ERASE_INFO_FB = 1000158001, + XR_TYPE_EVENT_DATA_SPACE_SAVE_COMPLETE_FB = 1000158106, + XR_TYPE_EVENT_DATA_SPACE_ERASE_COMPLETE_FB = 1000158107; + /** * XrSpacePersistenceModeFB - Persistence mode * @@ -63,27 +63,27 @@ public class FBSpatialEntityStorage { *
    See Also
    * *

    {@link XrSpaceSaveInfoFB}

    - */ + */ public static final int - XR_SPACE_PERSISTENCE_MODE_INVALID_FB = 0, - XR_SPACE_PERSISTENCE_MODE_INDEFINITE_FB = 1; + XR_SPACE_PERSISTENCE_MODE_INVALID_FB = 0, + XR_SPACE_PERSISTENCE_MODE_INDEFINITE_FB = 1; protected FBSpatialEntityStorage() { throw new UnsupportedOperationException(); - } - - // --- [ xrSaveSpaceFB ] --- - - /** Unsafe version of: {@link #xrSaveSpaceFB SaveSpaceFB} */ - public static int nxrSaveSpaceFB(XrSession session, long info, long requestId) { - long __functionAddress = session.getCapabilities().xrSaveSpaceFB; - if (CHECKS) { - check(__functionAddress); - XrSpaceSaveInfoFB.validate(info); - } - return callPPPI(session.address(), info, requestId, __functionAddress); - } - + } + + // --- [ xrSaveSpaceFB ] --- + + /** Unsafe version of: {@link #xrSaveSpaceFB SaveSpaceFB} */ + public static int nxrSaveSpaceFB(XrSession session, long info, long requestId) { + long __functionAddress = session.getCapabilities().xrSaveSpaceFB; + if (CHECKS) { + check(__functionAddress); + XrSpaceSaveInfoFB.validate(info); + } + return callPPPI(session.address(), info, requestId, __functionAddress); + } + /** * Saves a spatial entity to persistent storage. * @@ -99,7 +99,7 @@ public static int nxrSaveSpaceFB(XrSession session, long info, long requestId) { * *
    Description
    * - *

    The {@link #xrSaveSpaceFB SaveSpaceFB} function persists the spatial entity at the specified location with the specified mode. The runtime must return {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE} if {@link XrSpaceSaveInfoFB}{@code ::space} is {@link XR10#XR_NULL_HANDLE NULL_HANDLE} or otherwise invalid. The runtime must return {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE} if {@link XrSpaceSaveInfoFB}{@code ::location} or {@link XrSpaceSaveInfoFB}{@code ::persistenceMode} is invalid. This operation is asynchronous and the runtime must post an {@link XrEventDataSpaceSaveCompleteFB} event when the operation completes successfully or encounters an error. If this function returns a failure code, no event is posted.

    + *

    The {@link #xrSaveSpaceFB SaveSpaceFB} function persists the spatial entity at the specified location with the specified mode. The runtime must return {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE} if {@link XrSpaceSaveInfoFB}{@code ::space} is {@link XR10#XR_NULL_HANDLE NULL_HANDLE} or otherwise invalid. The runtime must return {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE} if {@link XrSpaceSaveInfoFB}{@code ::location} or {@link XrSpaceSaveInfoFB}{@code ::persistenceMode} is invalid. This operation is asynchronous and the runtime must post an {@link XrEventDataSpaceSaveCompleteFB} event when the operation completes successfully or encounters an error.

    * *
    Valid Usage (Implicit)
    * @@ -138,27 +138,27 @@ public static int nxrSaveSpaceFB(XrSession session, long info, long requestId) { * @param session a handle to an {@code XrSession}. * @param info contains the parameters for the save operation. * @param requestId an output parameter, and the variable it points to will be populated with the ID of this asynchronous request. - */ - @NativeType("XrResult") - public static int xrSaveSpaceFB(XrSession session, @NativeType("XrSpaceSaveInfoFB const *") XrSpaceSaveInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) { - if (CHECKS) { - check(requestId, 1); - } - return nxrSaveSpaceFB(session, info.address(), memAddress(requestId)); - } - - // --- [ xrEraseSpaceFB ] --- - - /** Unsafe version of: {@link #xrEraseSpaceFB EraseSpaceFB} */ - public static int nxrEraseSpaceFB(XrSession session, long info, long requestId) { - long __functionAddress = session.getCapabilities().xrEraseSpaceFB; - if (CHECKS) { - check(__functionAddress); - XrSpaceEraseInfoFB.validate(info); - } - return callPPPI(session.address(), info, requestId, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrSaveSpaceFB(XrSession session, @NativeType("XrSpaceSaveInfoFB const *") XrSpaceSaveInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) { + if (CHECKS) { + check(requestId, 1); + } + return nxrSaveSpaceFB(session, info.address(), memAddress(requestId)); + } + + // --- [ xrEraseSpaceFB ] --- + + /** Unsafe version of: {@link #xrEraseSpaceFB EraseSpaceFB} */ + public static int nxrEraseSpaceFB(XrSession session, long info, long requestId) { + long __functionAddress = session.getCapabilities().xrEraseSpaceFB; + if (CHECKS) { + check(__functionAddress); + XrSpaceEraseInfoFB.validate(info); + } + return callPPPI(session.address(), info, requestId, __functionAddress); + } + /** * Erases a spatial entity from persistent storage. * @@ -174,7 +174,7 @@ public static int nxrEraseSpaceFB(XrSession session, long info, long requestId) * *
    Description
    * - *

    The {@link #xrEraseSpaceFB EraseSpaceFB} function erases a spatial entity from storage at the specified location. The {@code XrSpace} remains valid in the current session until the application destroys it or the session ends. The runtime must return {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE} if {@link XrSpaceEraseInfoFB}{@code ::space} is {@link XR10#XR_NULL_HANDLE NULL_HANDLE} or otherwise invalid. The runtime must return {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE} if {@link XrSpaceEraseInfoFB}{@code ::location} is invalid. This operation is asynchronous and the runtime must post an {@link XrEventDataSpaceEraseCompleteFB} event when the operation completes successfully or encounters an error. If this function returns a failure code, no event is posted.

    + *

    The {@link #xrEraseSpaceFB EraseSpaceFB} function erases a spatial entity from storage at the specified location. The {@code XrSpace} remains valid in the current session until the application destroys it or the session ends. The runtime must return {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE} if {@link XrSpaceEraseInfoFB}{@code ::space} is {@link XR10#XR_NULL_HANDLE NULL_HANDLE} or otherwise invalid. The runtime must return {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE} if {@link XrSpaceEraseInfoFB}{@code ::location} is invalid. This operation is asynchronous and the runtime must post an {@link XrEventDataSpaceEraseCompleteFB} event when the operation completes successfully or encounters an error.

    * *
    Valid Usage (Implicit)
    * @@ -213,13 +213,13 @@ public static int nxrEraseSpaceFB(XrSession session, long info, long requestId) * @param session a handle to an {@code XrSession}. * @param info contains the parameters for the erase operation. * @param requestId an output parameter, and the variable it points to will be populated with the ID of this asynchronous request. - */ - @NativeType("XrResult") - public static int xrEraseSpaceFB(XrSession session, @NativeType("XrSpaceEraseInfoFB const *") XrSpaceEraseInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) { - if (CHECKS) { - check(requestId, 1); - } - return nxrEraseSpaceFB(session, info.address(), memAddress(requestId)); - } + */ + @NativeType("XrResult") + public static int xrEraseSpaceFB(XrSession session, @NativeType("XrSpaceEraseInfoFB const *") XrSpaceEraseInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) { + if (CHECKS) { + check(requestId, 1); + } + return nxrEraseSpaceFB(session, info.address(), memAddress(requestId)); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityStorageBatch.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityStorageBatch.java index 1ae96e2f90..a0096c0f2e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityStorageBatch.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityStorageBatch.java @@ -4,30 +4,30 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import java.nio.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_FB_spatial_entity_storage_batch extension. * *

    This extension enables multiple spatial entities at a time to be persisted across sessions. If the {@link FBSpatialEntity#XR_SPACE_COMPONENT_TYPE_STORABLE_FB SPACE_COMPONENT_TYPE_STORABLE_FB} component has been enabled on the spatial entity, application developers may save and erase {@code XrSpace} entities.

    * - *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    - */ -public class FBSpatialEntityStorageBatch { - - /** The extension specification version. */ - public static final int XR_FB_spatial_entity_storage_batch_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_FB_SPATIAL_ENTITY_STORAGE_BATCH_EXTENSION_NAME = "XR_FB_spatial_entity_storage_batch"; - + *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    + */ +public class FBSpatialEntityStorageBatch { + + /** The extension specification version. */ + public static final int XR_FB_spatial_entity_storage_batch_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_FB_SPATIAL_ENTITY_STORAGE_BATCH_EXTENSION_NAME = "XR_FB_spatial_entity_storage_batch"; + /** * Extends {@code XrStructureType}. * @@ -37,27 +37,27 @@ public class FBSpatialEntityStorageBatch { *
  • {@link #XR_TYPE_SPACE_LIST_SAVE_INFO_FB TYPE_SPACE_LIST_SAVE_INFO_FB}
  • *
  • {@link #XR_TYPE_EVENT_DATA_SPACE_LIST_SAVE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_LIST_SAVE_COMPLETE_FB}
  • * - */ + */ public static final int - XR_TYPE_SPACE_LIST_SAVE_INFO_FB = 1000238000, - XR_TYPE_EVENT_DATA_SPACE_LIST_SAVE_COMPLETE_FB = 1000238001; + XR_TYPE_SPACE_LIST_SAVE_INFO_FB = 1000238000, + XR_TYPE_EVENT_DATA_SPACE_LIST_SAVE_COMPLETE_FB = 1000238001; protected FBSpatialEntityStorageBatch() { throw new UnsupportedOperationException(); - } - - // --- [ xrSaveSpaceListFB ] --- - - /** Unsafe version of: {@link #xrSaveSpaceListFB SaveSpaceListFB} */ - public static int nxrSaveSpaceListFB(XrSession session, long info, long requestId) { - long __functionAddress = session.getCapabilities().xrSaveSpaceListFB; - if (CHECKS) { - check(__functionAddress); - XrSpaceListSaveInfoFB.validate(info); - } - return callPPPI(session.address(), info, requestId, __functionAddress); - } + } + // --- [ xrSaveSpaceListFB ] --- + + /** Unsafe version of: {@link #xrSaveSpaceListFB SaveSpaceListFB} */ + public static int nxrSaveSpaceListFB(XrSession session, long info, long requestId) { + long __functionAddress = session.getCapabilities().xrSaveSpaceListFB; + if (CHECKS) { + check(__functionAddress); + XrSpaceListSaveInfoFB.validate(info); + } + return callPPPI(session.address(), info, requestId, __functionAddress); + } + /** * Saves a list of spatial entities to persistent storage. * @@ -73,7 +73,7 @@ public static int nxrSaveSpaceListFB(XrSession session, long info, long requestI * *
    Description
    * - *

    The {@link #xrSaveSpaceListFB SaveSpaceListFB} function persists the specified spatial entities at the specified storage location. The runtime must return {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE} if {@link XrSpaceSaveInfoFB}{@code ::location} is invalid. This operation is asynchronous and the runtime must post an {@link XrEventDataSpaceListSaveCompleteFB} event when the operation completes successfully or encounters an error. If this function returns a failure code, no event is posted.

    + *

    The {@link #xrSaveSpaceListFB SaveSpaceListFB} function persists the specified spatial entities at the specified storage location. The runtime must return {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE} if {@link XrSpaceSaveInfoFB}{@code ::location} is invalid. This operation is asynchronous and the runtime must post an {@link XrEventDataSpaceListSaveCompleteFB} event when the operation completes successfully or encounters an error.

    * *
    Valid Usage (Implicit)
    * @@ -117,13 +117,13 @@ public static int nxrSaveSpaceListFB(XrSession session, long info, long requestI * @param session a handle to an {@code XrSession}. * @param info contains the parameters for the save operation. * @param requestId an output parameter, and the variable it points to will be populated with the ID of this asynchronous request. - */ - @NativeType("XrResult") - public static int xrSaveSpaceListFB(XrSession session, @NativeType("XrSpaceListSaveInfoFB const *") XrSpaceListSaveInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) { - if (CHECKS) { - check(requestId, 1); - } - return nxrSaveSpaceListFB(session, info.address(), memAddress(requestId)); - } + */ + @NativeType("XrResult") + public static int xrSaveSpaceListFB(XrSession session, @NativeType("XrSpaceListSaveInfoFB const *") XrSpaceListSaveInfoFB info, @NativeType("XrAsyncRequestIdFB *") LongBuffer requestId) { + if (CHECKS) { + check(requestId, 1); + } + return nxrSaveSpaceListFB(session, info.address(), memAddress(requestId)); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityUser.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityUser.java index 79faf8f736..fd7143e949 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityUser.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSpatialEntityUser.java @@ -4,53 +4,53 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import java.nio.*; - + import org.lwjgl.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_FB_spatial_entity_user extension. * *

    This extension enables creation and management of user objects which can be used by the application to reference a user other than the current user.

    * - *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    - */ -public class FBSpatialEntityUser { - - /** The extension specification version. */ - public static final int XR_FB_spatial_entity_user_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_FB_SPATIAL_ENTITY_USER_EXTENSION_NAME = "XR_FB_spatial_entity_user"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_SPACE_USER_CREATE_INFO_FB = 1000241001; - - /** Extends {@code XrObjectType}. */ - public static final int XR_OBJECT_TYPE_SPACE_USER_FB = 1000241000; + *

    In order to enable the functionality of this extension, you must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    + */ +public class FBSpatialEntityUser { + + /** The extension specification version. */ + public static final int XR_FB_spatial_entity_user_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_FB_SPATIAL_ENTITY_USER_EXTENSION_NAME = "XR_FB_spatial_entity_user"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_SPACE_USER_CREATE_INFO_FB = 1000241001; + + /** Extends {@code XrObjectType}. */ + public static final int XR_OBJECT_TYPE_SPACE_USER_FB = 1000241000; protected FBSpatialEntityUser() { throw new UnsupportedOperationException(); - } - - // --- [ xrCreateSpaceUserFB ] --- - - /** Unsafe version of: {@link #xrCreateSpaceUserFB CreateSpaceUserFB} */ - public static int nxrCreateSpaceUserFB(XrSession session, long info, long user) { - long __functionAddress = session.getCapabilities().xrCreateSpaceUserFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), info, user, __functionAddress); - } - + } + + // --- [ xrCreateSpaceUserFB ] --- + + /** Unsafe version of: {@link #xrCreateSpaceUserFB CreateSpaceUserFB} */ + public static int nxrCreateSpaceUserFB(XrSession session, long info, long user) { + long __functionAddress = session.getCapabilities().xrCreateSpaceUserFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(session.address(), info, user, __functionAddress); + } + /** * Creates a user other than the current user. * @@ -105,26 +105,26 @@ public static int nxrCreateSpaceUserFB(XrSession session, long info, long user) * @param session a handle to an {@code XrSession}. * @param info a pointer to an {@link XrSpaceUserCreateInfoFB} structure containing information to create the user handle. * @param user the output parameter that points to the handle of the user being created. - */ - @NativeType("XrResult") - public static int xrCreateSpaceUserFB(XrSession session, @NativeType("XrSpaceUserCreateInfoFB const *") XrSpaceUserCreateInfoFB info, @NativeType("XrSpaceUserFB *") PointerBuffer user) { - if (CHECKS) { - check(user, 1); - } - return nxrCreateSpaceUserFB(session, info.address(), memAddress(user)); - } - - // --- [ xrGetSpaceUserIdFB ] --- - - /** Unsafe version of: {@link #xrGetSpaceUserIdFB GetSpaceUserIdFB} */ - public static int nxrGetSpaceUserIdFB(XrSpaceUserFB user, long userId) { - long __functionAddress = user.getCapabilities().xrGetSpaceUserIdFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(user.address(), userId, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrCreateSpaceUserFB(XrSession session, @NativeType("XrSpaceUserCreateInfoFB const *") XrSpaceUserCreateInfoFB info, @NativeType("XrSpaceUserFB *") PointerBuffer user) { + if (CHECKS) { + check(user, 1); + } + return nxrCreateSpaceUserFB(session, info.address(), memAddress(user)); + } + + // --- [ xrGetSpaceUserIdFB ] --- + + /** Unsafe version of: {@link #xrGetSpaceUserIdFB GetSpaceUserIdFB} */ + public static int nxrGetSpaceUserIdFB(XrSpaceUserFB user, long userId) { + long __functionAddress = user.getCapabilities().xrGetSpaceUserIdFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPI(user.address(), userId, __functionAddress); + } + /** * Gets the user ID for a given user handle. * @@ -170,17 +170,17 @@ public static int nxrGetSpaceUserIdFB(XrSpaceUserFB user, long userId) { * * @param user a handle to an {@code XrSpaceUserFB}. * @param userId the output parameter that points to the user ID of the user. - */ - @NativeType("XrResult") - public static int xrGetSpaceUserIdFB(XrSpaceUserFB user, @NativeType("XrSpaceUserIdFB *") LongBuffer userId) { - if (CHECKS) { - check(userId, 1); - } - return nxrGetSpaceUserIdFB(user, memAddress(userId)); - } - - // --- [ xrDestroySpaceUserFB ] --- - + */ + @NativeType("XrResult") + public static int xrGetSpaceUserIdFB(XrSpaceUserFB user, @NativeType("XrSpaceUserIdFB *") LongBuffer userId) { + if (CHECKS) { + check(userId, 1); + } + return nxrGetSpaceUserIdFB(user, memAddress(userId)); + } + + // --- [ xrDestroySpaceUserFB ] --- + /** * Destroys a user handle. * @@ -225,14 +225,14 @@ public static int xrGetSpaceUserIdFB(XrSpaceUserFB user, @NativeType("XrSpaceUse * * * @param user a handle to the user object to be destroyed. - */ - @NativeType("XrResult") - public static int xrDestroySpaceUserFB(XrSpaceUserFB user) { - long __functionAddress = user.getCapabilities().xrDestroySpaceUserFB; - if (CHECKS) { - check(__functionAddress); - } - return callPI(user.address(), __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrDestroySpaceUserFB(XrSpaceUserFB user) { + long __functionAddress = user.getCapabilities().xrDestroySpaceUserFB; + if (CHECKS) { + check(__functionAddress); + } + return callPI(user.address(), __functionAddress); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSwapchainUpdateState.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSwapchainUpdateState.java index 6e2252e3df..1ebea7f554 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSwapchainUpdateState.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSwapchainUpdateState.java @@ -4,42 +4,42 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; + /** * The XR_FB_swapchain_update_state extension. * *

    This extension enables the application to modify and query specific mutable state associated with a swapchain.

    * - *

    In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    - */ -public class FBSwapchainUpdateState { - - /** The extension specification version. */ - public static final int XR_FB_swapchain_update_state_SPEC_VERSION = 3; - - /** The extension name. */ - public static final String XR_FB_SWAPCHAIN_UPDATE_STATE_EXTENSION_NAME = "XR_FB_swapchain_update_state"; + *

    In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    + */ +public class FBSwapchainUpdateState { + + /** The extension specification version. */ + public static final int XR_FB_swapchain_update_state_SPEC_VERSION = 3; + + /** The extension name. */ + public static final String XR_FB_SWAPCHAIN_UPDATE_STATE_EXTENSION_NAME = "XR_FB_swapchain_update_state"; protected FBSwapchainUpdateState() { throw new UnsupportedOperationException(); - } - - // --- [ xrUpdateSwapchainFB ] --- - - /** Unsafe version of: {@link #xrUpdateSwapchainFB UpdateSwapchainFB} */ - public static int nxrUpdateSwapchainFB(XrSwapchain swapchain, long state) { - long __functionAddress = swapchain.getCapabilities().xrUpdateSwapchainFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(swapchain.address(), state, __functionAddress); - } + } + // --- [ xrUpdateSwapchainFB ] --- + + /** Unsafe version of: {@link #xrUpdateSwapchainFB UpdateSwapchainFB} */ + public static int nxrUpdateSwapchainFB(XrSwapchain swapchain, long state) { + long __functionAddress = swapchain.getCapabilities().xrUpdateSwapchainFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPI(swapchain.address(), state, __functionAddress); + } + /** * Updates state for the corresponding swapchain. * @@ -89,23 +89,23 @@ public static int nxrUpdateSwapchainFB(XrSwapchain swapchain, long state) { * * @param swapchain the {@code XrSwapchain} to update state for. * @param state a pointer to a {@code XrSwapchainState} structure based off of {@link XrSwapchainStateBaseHeaderFB}. - */ - @NativeType("XrResult") - public static int xrUpdateSwapchainFB(XrSwapchain swapchain, @NativeType("XrSwapchainStateBaseHeaderFB const *") XrSwapchainStateBaseHeaderFB state) { - return nxrUpdateSwapchainFB(swapchain, state.address()); - } - - // --- [ xrGetSwapchainStateFB ] --- - - /** Unsafe version of: {@link #xrGetSwapchainStateFB GetSwapchainStateFB} */ - public static int nxrGetSwapchainStateFB(XrSwapchain swapchain, long state) { - long __functionAddress = swapchain.getCapabilities().xrGetSwapchainStateFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(swapchain.address(), state, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrUpdateSwapchainFB(XrSwapchain swapchain, @NativeType("XrSwapchainStateBaseHeaderFB const *") XrSwapchainStateBaseHeaderFB state) { + return nxrUpdateSwapchainFB(swapchain, state.address()); + } + // --- [ xrGetSwapchainStateFB ] --- + + /** Unsafe version of: {@link #xrGetSwapchainStateFB GetSwapchainStateFB} */ + public static int nxrGetSwapchainStateFB(XrSwapchain swapchain, long state) { + long __functionAddress = swapchain.getCapabilities().xrGetSwapchainStateFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPI(swapchain.address(), state, __functionAddress); + } + /** * Query state for the corresponding swapchain. * @@ -155,10 +155,10 @@ public static int nxrGetSwapchainStateFB(XrSwapchain swapchain, long state) { * * @param swapchain the {@code XrSwapchain} to update state for. * @param state a pointer to a {@code XrSwapchainState} structure based off of {@link XrSwapchainStateBaseHeaderFB}. - */ - @NativeType("XrResult") - public static int xrGetSwapchainStateFB(XrSwapchain swapchain, @NativeType("XrSwapchainStateBaseHeaderFB *") XrSwapchainStateBaseHeaderFB state) { - return nxrGetSwapchainStateFB(swapchain, state.address()); - } + */ + @NativeType("XrResult") + public static int xrGetSwapchainStateFB(XrSwapchain swapchain, @NativeType("XrSwapchainStateBaseHeaderFB *") XrSwapchainStateBaseHeaderFB state) { + return nxrGetSwapchainStateFB(swapchain, state.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSwapchainUpdateStateOpenGLES.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSwapchainUpdateStateOpenGLES.java index 3de49c0f6b..4beb9212b3 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSwapchainUpdateStateOpenGLES.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSwapchainUpdateStateOpenGLES.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_FB_swapchain_update_state_opengl_es extension. * @@ -14,19 +14,19 @@ *
  • On platforms where composition runs in a separate process from the application, swapchains must be created in a cross-process friendly way. In such cases, the texture image memory may be shared between processes, but the texture state may not; and, an explicit mechanism to synchronize this texture state between the application and the compositor is required.
  • * * - *

    In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo} {@code enabledExtensionNames} parameter as indicated in the extensions section.

    - */ -public final class FBSwapchainUpdateStateOpenGLES { - - /** The extension specification version. */ - public static final int XR_FB_swapchain_update_state_opengl_es_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_FB_SWAPCHAIN_UPDATE_STATE_OPENGL_ES_EXTENSION_NAME = "XR_FB_swapchain_update_state_opengl_es"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB = 1000162000; + *

    In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo} {@code enabledExtensionNames} parameter as indicated in the extensions section.

    + */ +public final class FBSwapchainUpdateStateOpenGLES { + + /** The extension specification version. */ + public static final int XR_FB_swapchain_update_state_opengl_es_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_FB_SWAPCHAIN_UPDATE_STATE_OPENGL_ES_EXTENSION_NAME = "XR_FB_swapchain_update_state_opengl_es"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB = 1000162000; - private FBSwapchainUpdateStateOpenGLES() {} + private FBSwapchainUpdateStateOpenGLES() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSwapchainUpdateStateVulkan.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSwapchainUpdateStateVulkan.java index 6d0b073e92..c31b82126d 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSwapchainUpdateStateVulkan.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBSwapchainUpdateStateVulkan.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_FB_swapchain_update_state_vulkan extension. * @@ -14,19 +14,19 @@ *
  • On platforms where composition runs in a separate process from the application, swapchains must be created in a cross-process friendly way. In such cases, the texture image memory may be shared between processes, but the texture state may not; and, an explicit mechanism to synchronize this texture state between the application and the compositor is required.
  • * * - *

    In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo} {@code enabledExtensionNames} parameter as indicated in the extensions section.

    - */ -public final class FBSwapchainUpdateStateVulkan { - - /** The extension specification version. */ - public static final int XR_FB_swapchain_update_state_vulkan_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_FB_SWAPCHAIN_UPDATE_STATE_VULKAN_EXTENSION_NAME = "XR_FB_swapchain_update_state_vulkan"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB = 1000163000; + *

    In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo} {@code enabledExtensionNames} parameter as indicated in the extensions section.

    + */ +public final class FBSwapchainUpdateStateVulkan { + + /** The extension specification version. */ + public static final int XR_FB_swapchain_update_state_vulkan_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_FB_SWAPCHAIN_UPDATE_STATE_VULKAN_EXTENSION_NAME = "XR_FB_swapchain_update_state_vulkan"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB = 1000163000; - private FBSwapchainUpdateStateVulkan() {} + private FBSwapchainUpdateStateVulkan() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBTouchControllerPro.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBTouchControllerPro.java index 7e70ea98e7..df2d76dd97 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBTouchControllerPro.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBTouchControllerPro.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_FB_touch_controller_pro extension. * @@ -78,15 +78,15 @@ * * * - */ -public final class FBTouchControllerPro { - - /** The extension specification version. */ - public static final int XR_FB_touch_controller_pro_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_FB_TOUCH_CONTROLLER_PRO_EXTENSION_NAME = "XR_FB_touch_controller_pro"; + */ +public final class FBTouchControllerPro { + + /** The extension specification version. */ + public static final int XR_FB_touch_controller_pro_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_FB_TOUCH_CONTROLLER_PRO_EXTENSION_NAME = "XR_FB_touch_controller_pro"; - private FBTouchControllerPro() {} + private FBTouchControllerPro() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBTouchControllerProximity.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBTouchControllerProximity.java index 5e2bbfd65b..c64edc5d75 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBTouchControllerProximity.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBTouchControllerProximity.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_FB_touch_controller_proximity extension. * - *

    This extension introduces a new component path, proximity_fb, and adds support for it for the pathname:/interaction_profiles/oculus/touch_controller interaction profile.

    - */ -public final class FBTouchControllerProximity { - - /** The extension specification version. */ - public static final int XR_FB_touch_controller_proximity_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_FB_TOUCH_CONTROLLER_PROXIMITY_EXTENSION_NAME = "XR_FB_touch_controller_proximity"; + *

    This extension introduces a new component path, proximity_fb, and adds support for it for the pathname:oculus/touch_controller interaction profile.

    + */ +public final class FBTouchControllerProximity { + + /** The extension specification version. */ + public static final int XR_FB_touch_controller_proximity_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_FB_TOUCH_CONTROLLER_PROXIMITY_EXTENSION_NAME = "XR_FB_touch_controller_proximity"; - private FBTouchControllerProximity() {} + private FBTouchControllerProximity() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBTriangleMesh.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBTriangleMesh.java index ef0c3251ce..3e49716a32 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBTriangleMesh.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/FBTriangleMesh.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import java.nio.*; - + import org.lwjgl.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_FB_triangle_mesh extension. * @@ -27,22 +27,22 @@ *
  • An application to update mesh contents if a mesh is mutable.
  • * * - *

    In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    - */ -public class FBTriangleMesh { - - /** The extension specification version. */ - public static final int XR_FB_triangle_mesh_SPEC_VERSION = 2; - - /** The extension name. */ - public static final String XR_FB_TRIANGLE_MESH_EXTENSION_NAME = "XR_FB_triangle_mesh"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_TRIANGLE_MESH_CREATE_INFO_FB = 1000117001; - - /** Extends {@code XrObjectType}. */ - public static final int XR_OBJECT_TYPE_TRIANGLE_MESH_FB = 1000117000; - + *

    In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    + */ +public class FBTriangleMesh { + + /** The extension specification version. */ + public static final int XR_FB_triangle_mesh_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_FB_TRIANGLE_MESH_EXTENSION_NAME = "XR_FB_triangle_mesh"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_TRIANGLE_MESH_CREATE_INFO_FB = 1000117001; + + /** Extends {@code XrObjectType}. */ + public static final int XR_OBJECT_TYPE_TRIANGLE_MESH_FB = 1000117000; + /** * XrTriangleMeshFlagBitsFB - XrTriangleMeshFlagBitsFB * @@ -51,9 +51,9 @@ public class FBTriangleMesh { *
      *
    • {@link #XR_TRIANGLE_MESH_MUTABLE_BIT_FB TRIANGLE_MESH_MUTABLE_BIT_FB} — The triangle mesh is mutable (can be modified after it is created).
    • *
    - */ - public static final int XR_TRIANGLE_MESH_MUTABLE_BIT_FB = 0x1; - + */ + public static final int XR_TRIANGLE_MESH_MUTABLE_BIT_FB = 0x1; + /** * XrWindingOrderFB - Triangle winding order * @@ -68,27 +68,27 @@ public class FBTriangleMesh { *
    See Also
    * *

    {@link XrTriangleMeshCreateInfoFB}

    - */ + */ public static final int - XR_WINDING_ORDER_UNKNOWN_FB = 0, - XR_WINDING_ORDER_CW_FB = 1, - XR_WINDING_ORDER_CCW_FB = 2; + XR_WINDING_ORDER_UNKNOWN_FB = 0, + XR_WINDING_ORDER_CW_FB = 1, + XR_WINDING_ORDER_CCW_FB = 2; protected FBTriangleMesh() { throw new UnsupportedOperationException(); - } - - // --- [ xrCreateTriangleMeshFB ] --- - - /** Unsafe version of: {@link #xrCreateTriangleMeshFB CreateTriangleMeshFB} */ - public static int nxrCreateTriangleMeshFB(XrSession session, long createInfo, long outTriangleMesh) { - long __functionAddress = session.getCapabilities().xrCreateTriangleMeshFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), createInfo, outTriangleMesh, __functionAddress); - } - + } + + // --- [ xrCreateTriangleMeshFB ] --- + + /** Unsafe version of: {@link #xrCreateTriangleMeshFB CreateTriangleMeshFB} */ + public static int nxrCreateTriangleMeshFB(XrSession session, long createInfo, long outTriangleMesh) { + long __functionAddress = session.getCapabilities().xrCreateTriangleMeshFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(session.address(), createInfo, outTriangleMesh, __functionAddress); + } + /** * Create a triangle mesh. * @@ -106,9 +106,9 @@ public static int nxrCreateTriangleMeshFB(XrSession session, long createInfo, lo * *

    This creates an {@code XrTriangleMeshFB} handle. The returned triangle mesh handle may be subsequently used in API calls.

    * - *

    When the mesh is mutable (the {@link #XR_TRIANGLE_MESH_MUTABLE_BIT_FB TRIANGLE_MESH_MUTABLE_BIT_FB} bit is set in {@code createInfo→pname}:flags), the created triangle mesh starts in the fb_triangle_mesh_state_undefined_topology state.

    + *

    When the mesh is mutable (the {@link #XR_TRIANGLE_MESH_MUTABLE_BIT_FB TRIANGLE_MESH_MUTABLE_BIT_FB} bit is set in {@code createInfo→pname}:flags), the created triangle mesh starts in the fb_triangle_mesh_state_undefined_topology state.

    * - *

    Immutable meshes have no state machine; they may be considered to be in state fb_triangle_mesh_state_ready with no valid edges leaving that state.

    + *

    Immutable meshes have no state machine; they may be considered to be in state fb_triangle_mesh_state_ready with no valid edges leaving that state.

    * *
    Valid Usage (Implicit)
    * @@ -149,17 +149,17 @@ public static int nxrCreateTriangleMeshFB(XrSession session, long createInfo, lo * @param session the {@code XrSession} to which the mesh will belong. * @param createInfo a pointer to an {@link XrTriangleMeshCreateInfoFB} structure containing parameters to be used to create the mesh. * @param outTriangleMesh a pointer to a handle in which the created {@code XrTriangleMeshFB} is returned. - */ - @NativeType("XrResult") - public static int xrCreateTriangleMeshFB(XrSession session, @NativeType("XrTriangleMeshCreateInfoFB const *") XrTriangleMeshCreateInfoFB createInfo, @NativeType("XrTriangleMeshFB *") PointerBuffer outTriangleMesh) { - if (CHECKS) { - check(outTriangleMesh, 1); - } - return nxrCreateTriangleMeshFB(session, createInfo.address(), memAddress(outTriangleMesh)); - } - - // --- [ xrDestroyTriangleMeshFB ] --- - + */ + @NativeType("XrResult") + public static int xrCreateTriangleMeshFB(XrSession session, @NativeType("XrTriangleMeshCreateInfoFB const *") XrTriangleMeshCreateInfoFB createInfo, @NativeType("XrTriangleMeshFB *") PointerBuffer outTriangleMesh) { + if (CHECKS) { + check(outTriangleMesh, 1); + } + return nxrCreateTriangleMeshFB(session, createInfo.address(), memAddress(outTriangleMesh)); + } + + // --- [ xrDestroyTriangleMeshFB ] --- + /** * Destroy a triangle mesh. * @@ -206,27 +206,27 @@ public static int xrCreateTriangleMeshFB(XrSession session, @NativeType("XrTrian * * * @param mesh the {@code XrTriangleMeshFB} to destroy. - */ - @NativeType("XrResult") - public static int xrDestroyTriangleMeshFB(XrTriangleMeshFB mesh) { - long __functionAddress = mesh.getCapabilities().xrDestroyTriangleMeshFB; - if (CHECKS) { - check(__functionAddress); - } - return callPI(mesh.address(), __functionAddress); - } - - // --- [ xrTriangleMeshGetVertexBufferFB ] --- - - /** Unsafe version of: {@link #xrTriangleMeshGetVertexBufferFB TriangleMeshGetVertexBufferFB} */ - public static int nxrTriangleMeshGetVertexBufferFB(XrTriangleMeshFB mesh, long outVertexBuffer) { - long __functionAddress = mesh.getCapabilities().xrTriangleMeshGetVertexBufferFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(mesh.address(), outVertexBuffer, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrDestroyTriangleMeshFB(XrTriangleMeshFB mesh) { + long __functionAddress = mesh.getCapabilities().xrDestroyTriangleMeshFB; + if (CHECKS) { + check(__functionAddress); + } + return callPI(mesh.address(), __functionAddress); + } + + // --- [ xrTriangleMeshGetVertexBufferFB ] --- + + /** Unsafe version of: {@link #xrTriangleMeshGetVertexBufferFB TriangleMeshGetVertexBufferFB} */ + public static int nxrTriangleMeshGetVertexBufferFB(XrTriangleMeshFB mesh, long outVertexBuffer) { + long __functionAddress = mesh.getCapabilities().xrTriangleMeshGetVertexBufferFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPI(mesh.address(), outVertexBuffer, __functionAddress); + } + /** * Obtain the vertex buffer of a triangle mesh. * @@ -246,8 +246,8 @@ public static int nxrTriangleMeshGetVertexBufferFB(XrTriangleMeshFB mesh, long o *

    A mesh must be mutable and in a specific state for the application to modify it through the retrieved vertex buffer.

    * * * *
    Valid Usage (Implicit)
    @@ -284,26 +284,26 @@ public static int nxrTriangleMeshGetVertexBufferFB(XrTriangleMeshFB mesh, long o * * @param mesh the {@code XrTriangleMeshFB} to get the vertex buffer for. * @param outVertexBuffer a pointer to return the vertex buffer into. - */ - @NativeType("XrResult") - public static int xrTriangleMeshGetVertexBufferFB(XrTriangleMeshFB mesh, @NativeType("XrVector3f **") PointerBuffer outVertexBuffer) { - if (CHECKS) { - check(outVertexBuffer, 1); - } - return nxrTriangleMeshGetVertexBufferFB(mesh, memAddress(outVertexBuffer)); - } - - // --- [ xrTriangleMeshGetIndexBufferFB ] --- - - /** Unsafe version of: {@link #xrTriangleMeshGetIndexBufferFB TriangleMeshGetIndexBufferFB} */ - public static int nxrTriangleMeshGetIndexBufferFB(XrTriangleMeshFB mesh, long outIndexBuffer) { - long __functionAddress = mesh.getCapabilities().xrTriangleMeshGetIndexBufferFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(mesh.address(), outIndexBuffer, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrTriangleMeshGetVertexBufferFB(XrTriangleMeshFB mesh, @NativeType("XrVector3f **") PointerBuffer outVertexBuffer) { + if (CHECKS) { + check(outVertexBuffer, 1); + } + return nxrTriangleMeshGetVertexBufferFB(mesh, memAddress(outVertexBuffer)); + } + + // --- [ xrTriangleMeshGetIndexBufferFB ] --- + + /** Unsafe version of: {@link #xrTriangleMeshGetIndexBufferFB TriangleMeshGetIndexBufferFB} */ + public static int nxrTriangleMeshGetIndexBufferFB(XrTriangleMeshFB mesh, long outIndexBuffer) { + long __functionAddress = mesh.getCapabilities().xrTriangleMeshGetIndexBufferFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPI(mesh.address(), outIndexBuffer, __functionAddress); + } + /** * Obtain the index buffer of a triangle mesh. * @@ -320,7 +320,7 @@ public static int nxrTriangleMeshGetIndexBufferFB(XrTriangleMeshFB mesh, long ou * *

    Retrieves a pointer to the index buffer that defines the topology of the triangle mesh. Each triplet of consecutive elements points to three vertices in the vertex buffer and thus form a triangle. The size of the buffer is {@link XrTriangleMeshCreateInfoFB}{@code ::indexCount} elements. The buffer location is guaranteed to remain constant over the lifecycle of the mesh object.

    * - *

    A triangle mesh must be mutable and in state fb_triangle_mesh_state_defining_topology or fb_triangle_mesh_state_updating_mesh for the application to modify the contents and/or triangle count in the index buffer retrieved by this function.

    + *

    A triangle mesh must be mutable and in state fb_triangle_mesh_state_defining_topology or fb_triangle_mesh_state_updating_mesh for the application to modify the contents and/or triangle count in the index buffer retrieved by this function.

    * *
    Valid Usage (Implicit)
    * @@ -356,17 +356,17 @@ public static int nxrTriangleMeshGetIndexBufferFB(XrTriangleMeshFB mesh, long ou * * @param mesh the {@code XrTriangleMeshFB} to get the index buffer for. * @param outIndexBuffer a pointer to return the index buffer into. - */ - @NativeType("XrResult") - public static int xrTriangleMeshGetIndexBufferFB(XrTriangleMeshFB mesh, @NativeType("uint32_t **") PointerBuffer outIndexBuffer) { - if (CHECKS) { - check(outIndexBuffer, 1); - } - return nxrTriangleMeshGetIndexBufferFB(mesh, memAddress(outIndexBuffer)); - } - - // --- [ xrTriangleMeshBeginUpdateFB ] --- - + */ + @NativeType("XrResult") + public static int xrTriangleMeshGetIndexBufferFB(XrTriangleMeshFB mesh, @NativeType("uint32_t **") PointerBuffer outIndexBuffer) { + if (CHECKS) { + check(outIndexBuffer, 1); + } + return nxrTriangleMeshGetIndexBufferFB(mesh, memAddress(outIndexBuffer)); + } + + // --- [ xrTriangleMeshBeginUpdateFB ] --- + /** * Begin an update of the mesh data. * @@ -380,15 +380,15 @@ public static int xrTriangleMeshGetIndexBufferFB(XrTriangleMeshFB mesh, @NativeT * *
    Description
    * - *

    Begins updating the mesh buffer data. The application must call this function before it makes any modifications to the buffers retrieved by {@link #xrTriangleMeshGetVertexBufferFB TriangleMeshGetVertexBufferFB} and {@link #xrTriangleMeshGetIndexBufferFB TriangleMeshGetIndexBufferFB}. If only the vertex buffer contents need to be updated, and the mesh is in state fb_triangle_mesh_state_ready, {@link #xrTriangleMeshBeginVertexBufferUpdateFB TriangleMeshBeginVertexBufferUpdateFB} may be used instead. To commit the modifications, the application must call {@link #xrTriangleMeshEndUpdateFB TriangleMeshEndUpdateFB}.

    + *

    Begins updating the mesh buffer data. The application must call this function before it makes any modifications to the buffers retrieved by {@link #xrTriangleMeshGetVertexBufferFB TriangleMeshGetVertexBufferFB} and {@link #xrTriangleMeshGetIndexBufferFB TriangleMeshGetIndexBufferFB}. If only the vertex buffer contents need to be updated, and the mesh is in state fb_triangle_mesh_state_ready, {@link #xrTriangleMeshBeginVertexBufferUpdateFB TriangleMeshBeginVertexBufferUpdateFB} may be used instead. To commit the modifications, the application must call {@link #xrTriangleMeshEndUpdateFB TriangleMeshEndUpdateFB}.

    * *

    The triangle mesh {@code mesh} must be mutable. The runtime must return {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE} if the mesh is immutable.

    * - *

    The triangle mesh {@code mesh} must be in state fb_triangle_mesh_state_undefined_topology or fb_triangle_mesh_state_ready.

    + *

    The triangle mesh {@code mesh} must be in state fb_triangle_mesh_state_undefined_topology or fb_triangle_mesh_state_ready.

    * * * *
    Valid Usage (Implicit)
    @@ -424,18 +424,18 @@ public static int xrTriangleMeshGetIndexBufferFB(XrTriangleMeshFB mesh, @NativeT *

    {@link #xrTriangleMeshEndUpdateFB TriangleMeshEndUpdateFB}

    * * @param mesh the {@code XrTriangleMeshFB} to update. - */ - @NativeType("XrResult") - public static int xrTriangleMeshBeginUpdateFB(XrTriangleMeshFB mesh) { - long __functionAddress = mesh.getCapabilities().xrTriangleMeshBeginUpdateFB; - if (CHECKS) { - check(__functionAddress); - } - return callPI(mesh.address(), __functionAddress); - } - - // --- [ xrTriangleMeshEndUpdateFB ] --- - + */ + @NativeType("XrResult") + public static int xrTriangleMeshBeginUpdateFB(XrTriangleMeshFB mesh) { + long __functionAddress = mesh.getCapabilities().xrTriangleMeshBeginUpdateFB; + if (CHECKS) { + check(__functionAddress); + } + return callPI(mesh.address(), __functionAddress); + } + + // --- [ xrTriangleMeshEndUpdateFB ] --- + /** * End an update of the mesh data. * @@ -455,9 +455,9 @@ public static int xrTriangleMeshBeginUpdateFB(XrTriangleMeshFB mesh) { * *

    The triangle mesh {@code mesh} must be mutable. The runtime must return {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE} if the mesh is immutable.

    * - *

    The triangle mesh {@code mesh} must be in state fb_triangle_mesh_state_defining_topology or fb_triangle_mesh_state_updating_mesh.

    + *

    The triangle mesh {@code mesh} must be in state fb_triangle_mesh_state_defining_topology or fb_triangle_mesh_state_updating_mesh.

    * - *

    A successful call moves {@code mesh} to state fb_triangle_mesh_state_ready.

    + *

    A successful call moves {@code mesh} to state fb_triangle_mesh_state_ready.

    * *
    Valid Usage (Implicit)
    * @@ -494,27 +494,27 @@ public static int xrTriangleMeshBeginUpdateFB(XrTriangleMeshFB mesh) { * @param mesh the {@code XrTriangleMeshFB} to update. * @param vertexCount the vertex count after the update. * @param triangleCount the triangle count after the update. - */ - @NativeType("XrResult") - public static int xrTriangleMeshEndUpdateFB(XrTriangleMeshFB mesh, @NativeType("uint32_t") int vertexCount, @NativeType("uint32_t") int triangleCount) { - long __functionAddress = mesh.getCapabilities().xrTriangleMeshEndUpdateFB; - if (CHECKS) { - check(__functionAddress); - } - return callPI(mesh.address(), vertexCount, triangleCount, __functionAddress); - } - - // --- [ xrTriangleMeshBeginVertexBufferUpdateFB ] --- - - /** Unsafe version of: {@link #xrTriangleMeshBeginVertexBufferUpdateFB TriangleMeshBeginVertexBufferUpdateFB} */ - public static int nxrTriangleMeshBeginVertexBufferUpdateFB(XrTriangleMeshFB mesh, long outVertexCount) { - long __functionAddress = mesh.getCapabilities().xrTriangleMeshBeginVertexBufferUpdateFB; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(mesh.address(), outVertexCount, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrTriangleMeshEndUpdateFB(XrTriangleMeshFB mesh, @NativeType("uint32_t") int vertexCount, @NativeType("uint32_t") int triangleCount) { + long __functionAddress = mesh.getCapabilities().xrTriangleMeshEndUpdateFB; + if (CHECKS) { + check(__functionAddress); + } + return callPI(mesh.address(), vertexCount, triangleCount, __functionAddress); + } + + // --- [ xrTriangleMeshBeginVertexBufferUpdateFB ] --- + + /** Unsafe version of: {@link #xrTriangleMeshBeginVertexBufferUpdateFB TriangleMeshBeginVertexBufferUpdateFB} */ + public static int nxrTriangleMeshBeginVertexBufferUpdateFB(XrTriangleMeshFB mesh, long outVertexCount) { + long __functionAddress = mesh.getCapabilities().xrTriangleMeshBeginVertexBufferUpdateFB; + if (CHECKS) { + check(__functionAddress); + } + return callPPI(mesh.address(), outVertexCount, __functionAddress); + } + /** * Begin an update of the vertex data. * @@ -529,13 +529,13 @@ public static int nxrTriangleMeshBeginVertexBufferUpdateFB(XrTriangleMeshFB mesh * *
    Description
    * - *

    Begins an update of the vertex positions of a mutable triangle mesh. The vertex count returned through {@code outVertexCount} is defined by the last call to {@link #xrTriangleMeshEndUpdateFB TriangleMeshEndUpdateFB}. Once the modification is done, call {@link #xrTriangleMeshEndVertexBufferUpdateFB TriangleMeshEndVertexBufferUpdateFB} to commit the changes and move to state fb_triangle_mesh_state_ready.

    + *

    Begins an update of the vertex positions of a mutable triangle mesh. The vertex count returned through {@code outVertexCount} is defined by the last call to {@link #xrTriangleMeshEndUpdateFB TriangleMeshEndUpdateFB}. Once the modification is done, call {@link #xrTriangleMeshEndVertexBufferUpdateFB TriangleMeshEndVertexBufferUpdateFB} to commit the changes and move to state fb_triangle_mesh_state_ready.

    * *

    The triangle mesh {@code mesh} must be mutable. The runtime must return {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE} if the mesh is immutable.

    * - *

    The triangle mesh {@code mesh} must be in state fb_triangle_mesh_state_ready.

    + *

    The triangle mesh {@code mesh} must be in state fb_triangle_mesh_state_ready.

    * - *

    A successful call moves {@code mesh} to state fb_triangle_mesh_state_updating_vertices.

    + *

    A successful call moves {@code mesh} to state fb_triangle_mesh_state_updating_vertices.

    * *
    Valid Usage (Implicit)
    * @@ -572,17 +572,17 @@ public static int nxrTriangleMeshBeginVertexBufferUpdateFB(XrTriangleMeshFB mesh * * @param mesh the {@code XrTriangleMeshFB} to update. * @param outVertexCount a pointer to a value to populate with the current vertex count. The updated data must have the exact same number of vertices. - */ - @NativeType("XrResult") - public static int xrTriangleMeshBeginVertexBufferUpdateFB(XrTriangleMeshFB mesh, @NativeType("uint32_t *") IntBuffer outVertexCount) { - if (CHECKS) { - check(outVertexCount, 1); - } - return nxrTriangleMeshBeginVertexBufferUpdateFB(mesh, memAddress(outVertexCount)); - } - - // --- [ xrTriangleMeshEndVertexBufferUpdateFB ] --- - + */ + @NativeType("XrResult") + public static int xrTriangleMeshBeginVertexBufferUpdateFB(XrTriangleMeshFB mesh, @NativeType("uint32_t *") IntBuffer outVertexCount) { + if (CHECKS) { + check(outVertexCount, 1); + } + return nxrTriangleMeshBeginVertexBufferUpdateFB(mesh, memAddress(outVertexCount)); + } + + // --- [ xrTriangleMeshEndVertexBufferUpdateFB ] --- + /** * End an update of the vertex data. * @@ -600,9 +600,9 @@ public static int xrTriangleMeshBeginVertexBufferUpdateFB(XrTriangleMeshFB mesh, * *

    The triangle mesh {@code mesh} must be mutable. The runtime must return {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE} if the mesh is immutable.

    * - *

    The triangle mesh {@code mesh} must be in state fb_triangle_mesh_state_updating_vertices.

    + *

    The triangle mesh {@code mesh} must be in state fb_triangle_mesh_state_updating_vertices.

    * - *

    A successful call moves {@code mesh} to state fb_triangle_mesh_state_ready.

    + *

    A successful call moves {@code mesh} to state fb_triangle_mesh_state_ready.

    * *
    Valid Usage (Implicit)
    * @@ -637,14 +637,14 @@ public static int xrTriangleMeshBeginVertexBufferUpdateFB(XrTriangleMeshFB mesh, *

    {@link #xrTriangleMeshBeginVertexBufferUpdateFB TriangleMeshBeginVertexBufferUpdateFB}

    * * @param mesh the {@code XrTriangleMeshFB} to update. - */ - @NativeType("XrResult") - public static int xrTriangleMeshEndVertexBufferUpdateFB(XrTriangleMeshFB mesh) { - long __functionAddress = mesh.getCapabilities().xrTriangleMeshEndVertexBufferUpdateFB; - if (CHECKS) { - check(__functionAddress); - } - return callPI(mesh.address(), __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrTriangleMeshEndVertexBufferUpdateFB(XrTriangleMeshFB mesh) { + long __functionAddress = mesh.getCapabilities().xrTriangleMeshEndVertexBufferUpdateFB; + if (CHECKS) { + check(__functionAddress); + } + return callPI(mesh.address(), __functionAddress); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCFacialTracking.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCFacialTracking.java index b3457a2b77..31bf6d27e4 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCFacialTracking.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCFacialTracking.java @@ -4,31 +4,31 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import org.lwjgl.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_HTC_facial_tracking extension. * *

    This extension allows an application to track and integrate users' eye and lip movements, empowering developers to read intention and model facial expressions.

    - */ -public class HTCFacialTracking { - - /** The extension specification version. */ - public static final int XR_HTC_facial_tracking_SPEC_VERSION = 2; - - /** The extension name. */ - public static final String XR_HTC_FACIAL_TRACKING_EXTENSION_NAME = "XR_HTC_facial_tracking"; - - /** Extends {@code XrObjectType}. */ - public static final int XR_OBJECT_TYPE_FACIAL_TRACKER_HTC = 1000104000; - + */ +public class HTCFacialTracking { + + /** The extension specification version. */ + public static final int XR_HTC_facial_tracking_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_HTC_FACIAL_TRACKING_EXTENSION_NAME = "XR_HTC_facial_tracking"; + + /** Extends {@code XrObjectType}. */ + public static final int XR_OBJECT_TYPE_FACIAL_TRACKER_HTC = 1000104000; + /** * Extends {@code XrStructureType}. * @@ -39,12 +39,12 @@ public class HTCFacialTracking { *
  • {@link #XR_TYPE_FACIAL_TRACKER_CREATE_INFO_HTC TYPE_FACIAL_TRACKER_CREATE_INFO_HTC}
  • *
  • {@link #XR_TYPE_FACIAL_EXPRESSIONS_HTC TYPE_FACIAL_EXPRESSIONS_HTC}
  • * - */ + */ public static final int - XR_TYPE_SYSTEM_FACIAL_TRACKING_PROPERTIES_HTC = 1000104000, - XR_TYPE_FACIAL_TRACKER_CREATE_INFO_HTC = 1000104001, - XR_TYPE_FACIAL_EXPRESSIONS_HTC = 1000104002; - + XR_TYPE_SYSTEM_FACIAL_TRACKING_PROPERTIES_HTC = 1000104000, + XR_TYPE_FACIAL_TRACKER_CREATE_INFO_HTC = 1000104001, + XR_TYPE_FACIAL_EXPRESSIONS_HTC = 1000104002; + /** * XrEyeExpressionHTC - The blend shapes of eye expression * @@ -66,23 +66,23 @@ public class HTCFacialTracking { *
  • {@link #XR_EYE_EXPRESSION_LEFT_UP_HTC EYE_EXPRESSION_LEFT_UP_HTC}
  • *
  • {@link #XR_EYE_EXPRESSION_RIGHT_UP_HTC EYE_EXPRESSION_RIGHT_UP_HTC}
  • * - */ + */ public static final int - XR_EYE_EXPRESSION_LEFT_BLINK_HTC = 0, - XR_EYE_EXPRESSION_LEFT_WIDE_HTC = 1, - XR_EYE_EXPRESSION_RIGHT_BLINK_HTC = 2, - XR_EYE_EXPRESSION_RIGHT_WIDE_HTC = 3, - XR_EYE_EXPRESSION_LEFT_SQUEEZE_HTC = 4, - XR_EYE_EXPRESSION_RIGHT_SQUEEZE_HTC = 5, - XR_EYE_EXPRESSION_LEFT_DOWN_HTC = 6, - XR_EYE_EXPRESSION_RIGHT_DOWN_HTC = 7, - XR_EYE_EXPRESSION_LEFT_OUT_HTC = 8, - XR_EYE_EXPRESSION_RIGHT_IN_HTC = 9, - XR_EYE_EXPRESSION_LEFT_IN_HTC = 10, - XR_EYE_EXPRESSION_RIGHT_OUT_HTC = 11, - XR_EYE_EXPRESSION_LEFT_UP_HTC = 12, - XR_EYE_EXPRESSION_RIGHT_UP_HTC = 13; - + XR_EYE_EXPRESSION_LEFT_BLINK_HTC = 0, + XR_EYE_EXPRESSION_LEFT_WIDE_HTC = 1, + XR_EYE_EXPRESSION_RIGHT_BLINK_HTC = 2, + XR_EYE_EXPRESSION_RIGHT_WIDE_HTC = 3, + XR_EYE_EXPRESSION_LEFT_SQUEEZE_HTC = 4, + XR_EYE_EXPRESSION_RIGHT_SQUEEZE_HTC = 5, + XR_EYE_EXPRESSION_LEFT_DOWN_HTC = 6, + XR_EYE_EXPRESSION_RIGHT_DOWN_HTC = 7, + XR_EYE_EXPRESSION_LEFT_OUT_HTC = 8, + XR_EYE_EXPRESSION_RIGHT_IN_HTC = 9, + XR_EYE_EXPRESSION_LEFT_IN_HTC = 10, + XR_EYE_EXPRESSION_RIGHT_OUT_HTC = 11, + XR_EYE_EXPRESSION_LEFT_UP_HTC = 12, + XR_EYE_EXPRESSION_RIGHT_UP_HTC = 13; + /** * XrLipExpressionHTC - The blend shapes of lip expression * @@ -127,46 +127,46 @@ public class HTCFacialTracking { *
  • {@link #XR_LIP_EXPRESSION_TONGUE_DOWNRIGHT_MORPH_HTC LIP_EXPRESSION_TONGUE_DOWNRIGHT_MORPH_HTC}
  • *
  • {@link #XR_LIP_EXPRESSION_TONGUE_DOWNLEFT_MORPH_HTC LIP_EXPRESSION_TONGUE_DOWNLEFT_MORPH_HTC}
  • * - */ + */ public static final int - XR_LIP_EXPRESSION_JAW_RIGHT_HTC = 0, - XR_LIP_EXPRESSION_JAW_LEFT_HTC = 1, - XR_LIP_EXPRESSION_JAW_FORWARD_HTC = 2, - XR_LIP_EXPRESSION_JAW_OPEN_HTC = 3, - XR_LIP_EXPRESSION_MOUTH_APE_SHAPE_HTC = 4, - XR_LIP_EXPRESSION_MOUTH_UPPER_RIGHT_HTC = 5, - XR_LIP_EXPRESSION_MOUTH_UPPER_LEFT_HTC = 6, - XR_LIP_EXPRESSION_MOUTH_LOWER_RIGHT_HTC = 7, - XR_LIP_EXPRESSION_MOUTH_LOWER_LEFT_HTC = 8, - XR_LIP_EXPRESSION_MOUTH_UPPER_OVERTURN_HTC = 9, - XR_LIP_EXPRESSION_MOUTH_LOWER_OVERTURN_HTC = 10, - XR_LIP_EXPRESSION_MOUTH_POUT_HTC = 11, - XR_LIP_EXPRESSION_MOUTH_SMILE_RIGHT_HTC = 12, - XR_LIP_EXPRESSION_MOUTH_SMILE_LEFT_HTC = 13, - XR_LIP_EXPRESSION_MOUTH_SAD_RIGHT_HTC = 14, - XR_LIP_EXPRESSION_MOUTH_SAD_LEFT_HTC = 15, - XR_LIP_EXPRESSION_CHEEK_PUFF_RIGHT_HTC = 16, - XR_LIP_EXPRESSION_CHEEK_PUFF_LEFT_HTC = 17, - XR_LIP_EXPRESSION_CHEEK_SUCK_HTC = 18, - XR_LIP_EXPRESSION_MOUTH_UPPER_UPRIGHT_HTC = 19, - XR_LIP_EXPRESSION_MOUTH_UPPER_UPLEFT_HTC = 20, - XR_LIP_EXPRESSION_MOUTH_LOWER_DOWNRIGHT_HTC = 21, - XR_LIP_EXPRESSION_MOUTH_LOWER_DOWNLEFT_HTC = 22, - XR_LIP_EXPRESSION_MOUTH_UPPER_INSIDE_HTC = 23, - XR_LIP_EXPRESSION_MOUTH_LOWER_INSIDE_HTC = 24, - XR_LIP_EXPRESSION_MOUTH_LOWER_OVERLAY_HTC = 25, - XR_LIP_EXPRESSION_TONGUE_LONGSTEP1_HTC = 26, - XR_LIP_EXPRESSION_TONGUE_LEFT_HTC = 27, - XR_LIP_EXPRESSION_TONGUE_RIGHT_HTC = 28, - XR_LIP_EXPRESSION_TONGUE_UP_HTC = 29, - XR_LIP_EXPRESSION_TONGUE_DOWN_HTC = 30, - XR_LIP_EXPRESSION_TONGUE_ROLL_HTC = 31, - XR_LIP_EXPRESSION_TONGUE_LONGSTEP2_HTC = 32, - XR_LIP_EXPRESSION_TONGUE_UPRIGHT_MORPH_HTC = 33, - XR_LIP_EXPRESSION_TONGUE_UPLEFT_MORPH_HTC = 34, - XR_LIP_EXPRESSION_TONGUE_DOWNRIGHT_MORPH_HTC = 35, - XR_LIP_EXPRESSION_TONGUE_DOWNLEFT_MORPH_HTC = 36; - + XR_LIP_EXPRESSION_JAW_RIGHT_HTC = 0, + XR_LIP_EXPRESSION_JAW_LEFT_HTC = 1, + XR_LIP_EXPRESSION_JAW_FORWARD_HTC = 2, + XR_LIP_EXPRESSION_JAW_OPEN_HTC = 3, + XR_LIP_EXPRESSION_MOUTH_APE_SHAPE_HTC = 4, + XR_LIP_EXPRESSION_MOUTH_UPPER_RIGHT_HTC = 5, + XR_LIP_EXPRESSION_MOUTH_UPPER_LEFT_HTC = 6, + XR_LIP_EXPRESSION_MOUTH_LOWER_RIGHT_HTC = 7, + XR_LIP_EXPRESSION_MOUTH_LOWER_LEFT_HTC = 8, + XR_LIP_EXPRESSION_MOUTH_UPPER_OVERTURN_HTC = 9, + XR_LIP_EXPRESSION_MOUTH_LOWER_OVERTURN_HTC = 10, + XR_LIP_EXPRESSION_MOUTH_POUT_HTC = 11, + XR_LIP_EXPRESSION_MOUTH_SMILE_RIGHT_HTC = 12, + XR_LIP_EXPRESSION_MOUTH_SMILE_LEFT_HTC = 13, + XR_LIP_EXPRESSION_MOUTH_SAD_RIGHT_HTC = 14, + XR_LIP_EXPRESSION_MOUTH_SAD_LEFT_HTC = 15, + XR_LIP_EXPRESSION_CHEEK_PUFF_RIGHT_HTC = 16, + XR_LIP_EXPRESSION_CHEEK_PUFF_LEFT_HTC = 17, + XR_LIP_EXPRESSION_CHEEK_SUCK_HTC = 18, + XR_LIP_EXPRESSION_MOUTH_UPPER_UPRIGHT_HTC = 19, + XR_LIP_EXPRESSION_MOUTH_UPPER_UPLEFT_HTC = 20, + XR_LIP_EXPRESSION_MOUTH_LOWER_DOWNRIGHT_HTC = 21, + XR_LIP_EXPRESSION_MOUTH_LOWER_DOWNLEFT_HTC = 22, + XR_LIP_EXPRESSION_MOUTH_UPPER_INSIDE_HTC = 23, + XR_LIP_EXPRESSION_MOUTH_LOWER_INSIDE_HTC = 24, + XR_LIP_EXPRESSION_MOUTH_LOWER_OVERLAY_HTC = 25, + XR_LIP_EXPRESSION_TONGUE_LONGSTEP1_HTC = 26, + XR_LIP_EXPRESSION_TONGUE_LEFT_HTC = 27, + XR_LIP_EXPRESSION_TONGUE_RIGHT_HTC = 28, + XR_LIP_EXPRESSION_TONGUE_UP_HTC = 29, + XR_LIP_EXPRESSION_TONGUE_DOWN_HTC = 30, + XR_LIP_EXPRESSION_TONGUE_ROLL_HTC = 31, + XR_LIP_EXPRESSION_TONGUE_LONGSTEP2_HTC = 32, + XR_LIP_EXPRESSION_TONGUE_UPRIGHT_MORPH_HTC = 33, + XR_LIP_EXPRESSION_TONGUE_UPLEFT_MORPH_HTC = 34, + XR_LIP_EXPRESSION_TONGUE_DOWNRIGHT_MORPH_HTC = 35, + XR_LIP_EXPRESSION_TONGUE_DOWNLEFT_MORPH_HTC = 36; + /** * XrFacialTrackingTypeHTC - Describes the type of facial tracking. * @@ -180,31 +180,31 @@ public class HTCFacialTracking { *
    See Also
    * *

    {@link XrFacialTrackerCreateInfoHTC}

    - */ + */ public static final int - XR_FACIAL_TRACKING_TYPE_EYE_DEFAULT_HTC = 1, - XR_FACIAL_TRACKING_TYPE_LIP_DEFAULT_HTC = 2; - - /** API Constants */ + XR_FACIAL_TRACKING_TYPE_EYE_DEFAULT_HTC = 1, + XR_FACIAL_TRACKING_TYPE_LIP_DEFAULT_HTC = 2; + + /** API Constants */ public static final int - XR_FACIAL_EXPRESSION_EYE_COUNT_HTC = 0xE, - XR_FACIAL_EXPRESSION_LIP_COUNT_HTC = 0x25; + XR_FACIAL_EXPRESSION_EYE_COUNT_HTC = 0xE, + XR_FACIAL_EXPRESSION_LIP_COUNT_HTC = 0x25; protected HTCFacialTracking() { throw new UnsupportedOperationException(); - } - - // --- [ xrCreateFacialTrackerHTC ] --- - - /** Unsafe version of: {@link #xrCreateFacialTrackerHTC CreateFacialTrackerHTC} */ - public static int nxrCreateFacialTrackerHTC(XrSession session, long createInfo, long facialTracker) { - long __functionAddress = session.getCapabilities().xrCreateFacialTrackerHTC; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), createInfo, facialTracker, __functionAddress); - } + } + // --- [ xrCreateFacialTrackerHTC ] --- + + /** Unsafe version of: {@link #xrCreateFacialTrackerHTC CreateFacialTrackerHTC} */ + public static int nxrCreateFacialTrackerHTC(XrSession session, long createInfo, long facialTracker) { + long __functionAddress = session.getCapabilities().xrCreateFacialTrackerHTC; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(session.address(), createInfo, facialTracker, __functionAddress); + } + /** * Create an facial tracker handle. * @@ -262,17 +262,17 @@ public static int nxrCreateFacialTrackerHTC(XrSession session, long createInfo, * @param session an {@code XrSession} in which the facial expression will be active. * @param createInfo the {@link XrFacialTrackerCreateInfoHTC} used to specify the facial tracking type. * @param facialTracker the returned {@code XrFacialTrackerHTC} handle. - */ - @NativeType("XrResult") - public static int xrCreateFacialTrackerHTC(XrSession session, @NativeType("XrFacialTrackerCreateInfoHTC const *") XrFacialTrackerCreateInfoHTC createInfo, @NativeType("XrFacialTrackerHTC *") PointerBuffer facialTracker) { - if (CHECKS) { - check(facialTracker, 1); - } - return nxrCreateFacialTrackerHTC(session, createInfo.address(), memAddress(facialTracker)); - } - - // --- [ xrDestroyFacialTrackerHTC ] --- + */ + @NativeType("XrResult") + public static int xrCreateFacialTrackerHTC(XrSession session, @NativeType("XrFacialTrackerCreateInfoHTC const *") XrFacialTrackerCreateInfoHTC createInfo, @NativeType("XrFacialTrackerHTC *") PointerBuffer facialTracker) { + if (CHECKS) { + check(facialTracker, 1); + } + return nxrCreateFacialTrackerHTC(session, createInfo.address(), memAddress(facialTracker)); + } + // --- [ xrDestroyFacialTrackerHTC ] --- + /** * Destroy a facial tracker handle. * @@ -316,27 +316,27 @@ public static int xrCreateFacialTrackerHTC(XrSession session, @NativeType("XrFac * * * @param facialTracker an {@code XrFacialTrackerHTC} previously created by {@link #xrCreateFacialTrackerHTC CreateFacialTrackerHTC}. - */ - @NativeType("XrResult") - public static int xrDestroyFacialTrackerHTC(XrFacialTrackerHTC facialTracker) { - long __functionAddress = facialTracker.getCapabilities().xrDestroyFacialTrackerHTC; - if (CHECKS) { - check(__functionAddress); - } - return callPI(facialTracker.address(), __functionAddress); - } - - // --- [ xrGetFacialExpressionsHTC ] --- - - /** Unsafe version of: {@link #xrGetFacialExpressionsHTC GetFacialExpressionsHTC} */ - public static int nxrGetFacialExpressionsHTC(XrFacialTrackerHTC facialTracker, long facialExpressions) { - long __functionAddress = facialTracker.getCapabilities().xrGetFacialExpressionsHTC; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(facialTracker.address(), facialExpressions, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrDestroyFacialTrackerHTC(XrFacialTrackerHTC facialTracker) { + long __functionAddress = facialTracker.getCapabilities().xrDestroyFacialTrackerHTC; + if (CHECKS) { + check(__functionAddress); + } + return callPI(facialTracker.address(), __functionAddress); + } + // --- [ xrGetFacialExpressionsHTC ] --- + + /** Unsafe version of: {@link #xrGetFacialExpressionsHTC GetFacialExpressionsHTC} */ + public static int nxrGetFacialExpressionsHTC(XrFacialTrackerHTC facialTracker, long facialExpressions) { + long __functionAddress = facialTracker.getCapabilities().xrGetFacialExpressionsHTC; + if (CHECKS) { + check(__functionAddress); + } + return callPPI(facialTracker.address(), facialExpressions, __functionAddress); + } + /** * Retrieve facial expressions. * @@ -385,10 +385,10 @@ public static int nxrGetFacialExpressionsHTC(XrFacialTrackerHTC facialTracker, l * * @param facialTracker an {@code XrFacialTrackerHTC} previously created by {@link #xrCreateFacialTrackerHTC CreateFacialTrackerHTC}. * @param facialExpressions a pointer to {@link XrFacialExpressionsHTC} receiving the returned facial expressions. - */ - @NativeType("XrResult") - public static int xrGetFacialExpressionsHTC(XrFacialTrackerHTC facialTracker, @NativeType("XrFacialExpressionsHTC *") XrFacialExpressionsHTC facialExpressions) { - return nxrGetFacialExpressionsHTC(facialTracker, facialExpressions.address()); - } + */ + @NativeType("XrResult") + public static int xrGetFacialExpressionsHTC(XrFacialTrackerHTC facialTracker, @NativeType("XrFacialExpressionsHTC *") XrFacialExpressionsHTC facialExpressions) { + return nxrGetFacialExpressionsHTC(facialTracker, facialExpressions.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCFoveation.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCFoveation.java index ad2a76083c..bae1093c5f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCFoveation.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCFoveation.java @@ -4,12 +4,12 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; + /** * The XR_HTC_foveation extension. * @@ -26,15 +26,15 @@ * *

    This extension is recommended for {@code XrSession} whose {@code XrViewConfigurationType} is {@link XR10#XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO}.

    * - */ -public class HTCFoveation { - - /** The extension specification version. */ - public static final int XR_HTC_foveation_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_HTC_FOVEATION_EXTENSION_NAME = "XR_HTC_foveation"; - + */ +public class HTCFoveation { + + /** The extension specification version. */ + public static final int XR_HTC_foveation_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_HTC_FOVEATION_EXTENSION_NAME = "XR_HTC_foveation"; + /** * Extends {@code XrStructureType}. * @@ -45,12 +45,12 @@ public class HTCFoveation { *
  • {@link #XR_TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC}
  • *
  • {@link #XR_TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC}
  • * - */ + */ public static final int - XR_TYPE_FOVEATION_APPLY_INFO_HTC = 1000318000, - XR_TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC = 1000318001, - XR_TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC = 1000318002; - + XR_TYPE_FOVEATION_APPLY_INFO_HTC = 1000318000, + XR_TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC = 1000318001, + XR_TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC = 1000318002; + /** * XrFoveationModeHTC - Foveation mode * @@ -66,13 +66,13 @@ public class HTCFoveation { *
    See Also
    * *

    {@link XrFoveationApplyInfoHTC}

    - */ + */ public static final int - XR_FOVEATION_MODE_DISABLE_HTC = 0, - XR_FOVEATION_MODE_FIXED_HTC = 1, - XR_FOVEATION_MODE_DYNAMIC_HTC = 2, - XR_FOVEATION_MODE_CUSTOM_HTC = 3; - + XR_FOVEATION_MODE_DISABLE_HTC = 0, + XR_FOVEATION_MODE_FIXED_HTC = 1, + XR_FOVEATION_MODE_DYNAMIC_HTC = 2, + XR_FOVEATION_MODE_CUSTOM_HTC = 3; + /** * XrFoveationLevelHTC - The pixel density drop level of periphery area * @@ -88,13 +88,13 @@ public class HTCFoveation { *
    See Also
    * *

    {@link XrFoveationConfigurationHTC}

    - */ + */ public static final int - XR_FOVEATION_LEVEL_NONE_HTC = 0, - XR_FOVEATION_LEVEL_LOW_HTC = 1, - XR_FOVEATION_LEVEL_MEDIUM_HTC = 2, - XR_FOVEATION_LEVEL_HIGH_HTC = 3; - + XR_FOVEATION_LEVEL_NONE_HTC = 0, + XR_FOVEATION_LEVEL_LOW_HTC = 1, + XR_FOVEATION_LEVEL_MEDIUM_HTC = 2, + XR_FOVEATION_LEVEL_HIGH_HTC = 3; + /** * XrFoveationDynamicFlagBitsHTC - Features allow to change in dynamic mode * @@ -105,28 +105,28 @@ public class HTCFoveation { *
  • {@link #XR_FOVEATION_DYNAMIC_CLEAR_FOV_ENABLED_BIT_HTC FOVEATION_DYNAMIC_CLEAR_FOV_ENABLED_BIT_HTC} — Allow system to set clear FOV degree dynamically.
  • *
  • {@link #XR_FOVEATION_DYNAMIC_FOCAL_CENTER_OFFSET_ENABLED_BIT_HTC FOVEATION_DYNAMIC_FOCAL_CENTER_OFFSET_ENABLED_BIT_HTC} — Allow system to set focal center offset dynamically.
  • * - */ + */ public static final int - XR_FOVEATION_DYNAMIC_LEVEL_ENABLED_BIT_HTC = 0x1, - XR_FOVEATION_DYNAMIC_CLEAR_FOV_ENABLED_BIT_HTC = 0x2, - XR_FOVEATION_DYNAMIC_FOCAL_CENTER_OFFSET_ENABLED_BIT_HTC = 0x4; + XR_FOVEATION_DYNAMIC_LEVEL_ENABLED_BIT_HTC = 0x1, + XR_FOVEATION_DYNAMIC_CLEAR_FOV_ENABLED_BIT_HTC = 0x2, + XR_FOVEATION_DYNAMIC_FOCAL_CENTER_OFFSET_ENABLED_BIT_HTC = 0x4; protected HTCFoveation() { throw new UnsupportedOperationException(); - } - - // --- [ xrApplyFoveationHTC ] --- - - /** Unsafe version of: {@link #xrApplyFoveationHTC ApplyFoveationHTC} */ - public static int nxrApplyFoveationHTC(XrSession session, long applyInfo) { - long __functionAddress = session.getCapabilities().xrApplyFoveationHTC; - if (CHECKS) { - check(__functionAddress); - XrFoveationApplyInfoHTC.validate(applyInfo); - } - return callPPI(session.address(), applyInfo, __functionAddress); - } + } + // --- [ xrApplyFoveationHTC ] --- + + /** Unsafe version of: {@link #xrApplyFoveationHTC ApplyFoveationHTC} */ + public static int nxrApplyFoveationHTC(XrSession session, long applyInfo) { + long __functionAddress = session.getCapabilities().xrApplyFoveationHTC; + if (CHECKS) { + check(__functionAddress); + XrFoveationApplyInfoHTC.validate(applyInfo); + } + return callPPI(session.address(), applyInfo, __functionAddress); + } + /** * Apply foveation config to system. * @@ -177,10 +177,10 @@ public static int nxrApplyFoveationHTC(XrSession session, long applyInfo) { * * @param session a handle to an {@code XrSession} in which the foveation will apply to. * @param applyInfo a pointer to an {@link XrFoveationApplyInfoHTC} structure containing information about the foveation configuration and applied {@link XrSwapchainSubImage}. - */ - @NativeType("XrResult") - public static int xrApplyFoveationHTC(XrSession session, @NativeType("XrFoveationApplyInfoHTC const *") XrFoveationApplyInfoHTC applyInfo) { - return nxrApplyFoveationHTC(session, applyInfo.address()); - } + */ + @NativeType("XrResult") + public static int xrApplyFoveationHTC(XrSession session, @NativeType("XrFoveationApplyInfoHTC const *") XrFoveationApplyInfoHTC applyInfo) { + return nxrApplyFoveationHTC(session, applyInfo.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCHandInteraction.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCHandInteraction.java index 56eae94193..16266109ea 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCHandInteraction.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCHandInteraction.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_HTC_hand_interaction extension. * *

    This extension defines a new interaction profile for tracked hands.

    - */ -public final class HTCHandInteraction { - - /** The extension specification version. */ - public static final int XR_HTC_hand_interaction_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_HTC_HAND_INTERACTION_EXTENSION_NAME = "XR_HTC_hand_interaction"; + */ +public final class HTCHandInteraction { + + /** The extension specification version. */ + public static final int XR_HTC_hand_interaction_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_HTC_HAND_INTERACTION_EXTENSION_NAME = "XR_HTC_hand_interaction"; - private HTCHandInteraction() {} + private HTCHandInteraction() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCPassthrough.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCPassthrough.java index 560edd51ea..3e31235cdf 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCPassthrough.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCPassthrough.java @@ -4,15 +4,15 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import org.lwjgl.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_HTC_passthrough extension. * @@ -25,18 +25,18 @@ *
  • Specify the passthrough form with full of the entire screen or projection onto the mesh specified by the application.
  • *
  • Set the alpha blending level for the composition of the passthrough layer.
  • * - */ -public class HTCPassthrough { - - /** The extension specification version. */ - public static final int XR_HTC_passthrough_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_HTC_PASSTHROUGH_EXTENSION_NAME = "XR_HTC_passthrough"; - - /** Extends {@code XrObjectType}. */ - public static final int XR_OBJECT_TYPE_PASSTHROUGH_HTC = 1000317000; - + */ +public class HTCPassthrough { + + /** The extension specification version. */ + public static final int XR_HTC_passthrough_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_HTC_PASSTHROUGH_EXTENSION_NAME = "XR_HTC_passthrough"; + + /** Extends {@code XrObjectType}. */ + public static final int XR_OBJECT_TYPE_PASSTHROUGH_HTC = 1000317000; + /** * Extends {@code XrStructureType}. * @@ -48,13 +48,13 @@ public class HTCPassthrough { *
  • {@link #XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC}
  • *
  • {@link #XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC}
  • * - */ + */ public static final int - XR_TYPE_PASSTHROUGH_CREATE_INFO_HTC = 1000317001, - XR_TYPE_PASSTHROUGH_COLOR_HTC = 1000317002, - XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC = 1000317003, - XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC = 1000317004; - + XR_TYPE_PASSTHROUGH_CREATE_INFO_HTC = 1000317001, + XR_TYPE_PASSTHROUGH_COLOR_HTC = 1000317002, + XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC = 1000317003, + XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC = 1000317004; + /** * XrPassthroughFormHTC - Describes the form of passthrough. * @@ -68,26 +68,26 @@ public class HTCPassthrough { *
    See Also
    * *

    {@link XrPassthroughCreateInfoHTC}

    - */ + */ public static final int - XR_PASSTHROUGH_FORM_PLANAR_HTC = 0, - XR_PASSTHROUGH_FORM_PROJECTED_HTC = 1; + XR_PASSTHROUGH_FORM_PLANAR_HTC = 0, + XR_PASSTHROUGH_FORM_PROJECTED_HTC = 1; protected HTCPassthrough() { throw new UnsupportedOperationException(); - } - - // --- [ xrCreatePassthroughHTC ] --- - - /** Unsafe version of: {@link #xrCreatePassthroughHTC CreatePassthroughHTC} */ - public static int nxrCreatePassthroughHTC(XrSession session, long createInfo, long passthrough) { - long __functionAddress = session.getCapabilities().xrCreatePassthroughHTC; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), createInfo, passthrough, __functionAddress); - } - + } + + // --- [ xrCreatePassthroughHTC ] --- + + /** Unsafe version of: {@link #xrCreatePassthroughHTC CreatePassthroughHTC} */ + public static int nxrCreatePassthroughHTC(XrSession session, long createInfo, long passthrough) { + long __functionAddress = session.getCapabilities().xrCreatePassthroughHTC; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(session.address(), createInfo, passthrough, __functionAddress); + } + /** * Create a passthrough handle. * @@ -145,17 +145,17 @@ public static int nxrCreatePassthroughHTC(XrSession session, long createInfo, lo * @param session an {@code XrSession} in which the passthrough will be active. * @param createInfo a pointer to an {@link XrPassthroughCreateInfoHTC} structure containing information about how to create the passthrough. * @param passthrough a pointer to a handle in which the created {@code XrPassthroughHTC} is returned. - */ - @NativeType("XrResult") - public static int xrCreatePassthroughHTC(XrSession session, @NativeType("XrPassthroughCreateInfoHTC const *") XrPassthroughCreateInfoHTC createInfo, @NativeType("XrPassthroughHTC *") PointerBuffer passthrough) { - if (CHECKS) { - check(passthrough, 1); - } - return nxrCreatePassthroughHTC(session, createInfo.address(), memAddress(passthrough)); - } - - // --- [ xrDestroyPassthroughHTC ] --- - + */ + @NativeType("XrResult") + public static int xrCreatePassthroughHTC(XrSession session, @NativeType("XrPassthroughCreateInfoHTC const *") XrPassthroughCreateInfoHTC createInfo, @NativeType("XrPassthroughHTC *") PointerBuffer passthrough) { + if (CHECKS) { + check(passthrough, 1); + } + return nxrCreatePassthroughHTC(session, createInfo.address(), memAddress(passthrough)); + } + + // --- [ xrDestroyPassthroughHTC ] --- + /** * Destroy a passthrough handle. * @@ -200,14 +200,14 @@ public static int xrCreatePassthroughHTC(XrSession session, @NativeType("XrPasst * * * @param passthrough the {@code XrPassthroughHTC} to be destroyed. - */ - @NativeType("XrResult") - public static int xrDestroyPassthroughHTC(XrPassthroughHTC passthrough) { - long __functionAddress = passthrough.getCapabilities().xrDestroyPassthroughHTC; - if (CHECKS) { - check(__functionAddress); - } - return callPI(passthrough.address(), __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrDestroyPassthroughHTC(XrPassthroughHTC passthrough) { + long __functionAddress = passthrough.getCapabilities().xrDestroyPassthroughHTC; + if (CHECKS) { + check(__functionAddress); + } + return callPI(passthrough.address(), __functionAddress); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCViveCosmosControllerInteraction.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCViveCosmosControllerInteraction.java index f0f71345bc..3d40f29c7f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCViveCosmosControllerInteraction.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCViveCosmosControllerInteraction.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_HTC_vive_cosmos_controller_interaction extension. * *

    This extension defines a new interaction profile for the VIVE Cosmos Controller.

    - */ -public final class HTCViveCosmosControllerInteraction { - - /** The extension specification version. */ - public static final int XR_HTC_vive_cosmos_controller_interaction_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_HTC_VIVE_COSMOS_CONTROLLER_INTERACTION_EXTENSION_NAME = "XR_HTC_vive_cosmos_controller_interaction"; + */ +public final class HTCViveCosmosControllerInteraction { + + /** The extension specification version. */ + public static final int XR_HTC_vive_cosmos_controller_interaction_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_HTC_VIVE_COSMOS_CONTROLLER_INTERACTION_EXTENSION_NAME = "XR_HTC_vive_cosmos_controller_interaction"; - private HTCViveCosmosControllerInteraction() {} + private HTCViveCosmosControllerInteraction() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCViveFocus3ControllerInteraction.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCViveFocus3ControllerInteraction.java index 29010f4b12..206f6c45fe 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCViveFocus3ControllerInteraction.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCViveFocus3ControllerInteraction.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_HTC_vive_focus3_controller_interaction extension. * *

    This extension defines a new interaction profile for the VIVE Focus 3 Controller.

    - */ -public final class HTCViveFocus3ControllerInteraction { - - /** The extension specification version. */ - public static final int XR_HTC_vive_focus3_controller_interaction_SPEC_VERSION = 2; - - /** The extension name. */ - public static final String XR_HTC_VIVE_FOCUS3_CONTROLLER_INTERACTION_EXTENSION_NAME = "XR_HTC_vive_focus3_controller_interaction"; + */ +public final class HTCViveFocus3ControllerInteraction { + + /** The extension specification version. */ + public static final int XR_HTC_vive_focus3_controller_interaction_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_HTC_VIVE_FOCUS3_CONTROLLER_INTERACTION_EXTENSION_NAME = "XR_HTC_vive_focus3_controller_interaction"; - private HTCViveFocus3ControllerInteraction() {} + private HTCViveFocus3ControllerInteraction() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCViveWristTrackerInteraction.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCViveWristTrackerInteraction.java index e1423de6a8..2f9479b20f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCViveWristTrackerInteraction.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCViveWristTrackerInteraction.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_HTC_vive_wrist_tracker_interaction extension. * *

    This extension provides an {@code XrPath} for getting device input from a VIVE wrist tracker to enable its interactions. VIVE wrist tracker is a tracked device mainly worn on user’s wrist for pose tracking. Besides this use case, user also can tie it to a physical object to track its object pose, e.g. tie on a gun.

    - */ -public final class HTCViveWristTrackerInteraction { - - /** The extension specification version. */ - public static final int XR_HTC_vive_wrist_tracker_interaction_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_HTC_VIVE_WRIST_TRACKER_INTERACTION_EXTENSION_NAME = "XR_HTC_vive_wrist_tracker_interaction"; + */ +public final class HTCViveWristTrackerInteraction { + + /** The extension specification version. */ + public static final int XR_HTC_vive_wrist_tracker_interaction_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_HTC_VIVE_WRIST_TRACKER_INTERACTION_EXTENSION_NAME = "XR_HTC_vive_wrist_tracker_interaction"; - private HTCViveWristTrackerInteraction() {} + private HTCViveWristTrackerInteraction() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCXViveTrackerInteraction.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCXViveTrackerInteraction.java index 23d73786fe..9b66582811 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCXViveTrackerInteraction.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HTCXViveTrackerInteraction.java @@ -4,23 +4,23 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_HTCX_vive_tracker_interaction extension. * *

    This extension defines a new interaction profile for HTC VIVE Tracker. HTC VIVE Tracker is a generic tracked device which can be attached to anything to make them trackable. For example, it can be attached to user’s hands or feet to track the motion of human body. It can also be attached to any other devices the user wants to track and interact with.

    * - *

    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.

    + *

    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.

    * *

    This extension allows:

    * @@ -48,10 +48,6 @@ *
  • {@code right_elbow}
  • *
  • {@code left_knee}
  • *
  • {@code right_knee}
  • - *
  • {@code left_wrist} (rev: 3)
  • - *
  • {@code right_wrist} (rev: 3)
  • - *
  • {@code left_ankle} (rev: 3)
  • - *
  • {@code right_ankle} (rev: 3)
  • *
  • {@code waist}
  • *
  • {@code chest}
  • *
  • {@code camera}
  • @@ -62,18 +58,18 @@ *
  • Either the persistent path or the role path can be be passed as a subaction path to indicate a specific tracker. For example, {@link XrActionCreateInfo}{@code ::subactionPath} into function {@link XR10#xrCreateAction CreateAction} or {@link XrActionSpaceCreateInfo}{@code ::subactionPath} into function {@link XR10#xrCreateActionSpace CreateActionSpace}. Please see Example 1 below.
  • * * - *

    As with other controllers, if a VIVE tracker is connected and bound to a top-level user path, or disconnected while bound to top-level user path, the runtime must send event {@link XR10#XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED}, and the application may call {@link XR10#xrGetCurrentInteractionProfile GetCurrentInteractionProfile} to check if the tracker is active or not.

    + *

    As with other controllers, if a VIVE tracker is connected and bound to a top-level user path, or disconnected while bound to top-level user path, the runtime must send event {@link XR10#XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED}, and the application may call {@link XR10#xrGetCurrentInteractionProfile GetCurrentInteractionProfile} to check if the tracker is active or not.

    * *

    The device that a tracker is attached to probably has a different motion model than what the tracker assumes. The motion tracking might not be as expected in this case.

    - */ -public class HTCXViveTrackerInteraction { - - /** The extension specification version. */ - public static final int XR_HTCX_vive_tracker_interaction_SPEC_VERSION = 3; - - /** The extension name. */ - public static final String XR_HTCX_VIVE_TRACKER_INTERACTION_EXTENSION_NAME = "XR_HTCX_vive_tracker_interaction"; - + */ +public class HTCXViveTrackerInteraction { + + /** The extension specification version. */ + public static final int XR_HTCX_vive_tracker_interaction_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_HTCX_VIVE_TRACKER_INTERACTION_EXTENSION_NAME = "XR_HTCX_vive_tracker_interaction"; + /** * Extends {@code XrStructureType}. * @@ -83,30 +79,30 @@ public class HTCXViveTrackerInteraction { *
  • {@link #XR_TYPE_VIVE_TRACKER_PATHS_HTCX TYPE_VIVE_TRACKER_PATHS_HTCX}
  • *
  • {@link #XR_TYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCX TYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCX}
  • * - */ + */ public static final int - XR_TYPE_VIVE_TRACKER_PATHS_HTCX = 1000103000, - XR_TYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCX = 1000103001; + XR_TYPE_VIVE_TRACKER_PATHS_HTCX = 1000103000, + XR_TYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCX = 1000103001; protected HTCXViveTrackerInteraction() { throw new UnsupportedOperationException(); - } - - // --- [ xrEnumerateViveTrackerPathsHTCX ] --- + } + // --- [ xrEnumerateViveTrackerPathsHTCX ] --- + /** * Unsafe version of: {@link #xrEnumerateViveTrackerPathsHTCX EnumerateViveTrackerPathsHTCX} * * @param pathsCapacityInput the capacity of the {@code viveTrackerPaths}, or 0 to retrieve the required capacity. - */ - public static int nxrEnumerateViveTrackerPathsHTCX(XrInstance instance, int pathsCapacityInput, long pathsCountOutput, long viveTrackerPaths) { - long __functionAddress = instance.getCapabilities().xrEnumerateViveTrackerPathsHTCX; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(instance.address(), pathsCapacityInput, pathsCountOutput, viveTrackerPaths, __functionAddress); - } - + */ + public static int nxrEnumerateViveTrackerPathsHTCX(XrInstance instance, int pathsCapacityInput, long pathsCountOutput, long viveTrackerPaths) { + long __functionAddress = instance.getCapabilities().xrEnumerateViveTrackerPathsHTCX; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(instance.address(), pathsCapacityInput, pathsCountOutput, viveTrackerPaths, __functionAddress); + } + /** * Enumerates all connected VIVE trackers. * @@ -159,13 +155,13 @@ public static int nxrEnumerateViveTrackerPathsHTCX(XrInstance instance, int path * @param instance an instance previously created. * @param pathsCountOutput a pointer to the count of {@link XrViveTrackerPathsHTCX} {@code viveTrackerPaths} written, or a pointer to the required capacity in the case that {@code pathsCapacityInput} is insufficient. * @param viveTrackerPaths a pointer to an array of {@link XrViveTrackerPathsHTCX} VIVE tracker paths, but can be {@code NULL} if {@code pathsCapacityInput} is 0. - */ - @NativeType("XrResult") - public static int xrEnumerateViveTrackerPathsHTCX(XrInstance instance, @NativeType("uint32_t *") IntBuffer pathsCountOutput, @Nullable @NativeType("XrViveTrackerPathsHTCX *") XrViveTrackerPathsHTCX.Buffer viveTrackerPaths) { - if (CHECKS) { - check(pathsCountOutput, 1); - } - return nxrEnumerateViveTrackerPathsHTCX(instance, remainingSafe(viveTrackerPaths), memAddress(pathsCountOutput), memAddressSafe(viveTrackerPaths)); - } + */ + @NativeType("XrResult") + public static int xrEnumerateViveTrackerPathsHTCX(XrInstance instance, @NativeType("uint32_t *") IntBuffer pathsCountOutput, @Nullable @NativeType("XrViveTrackerPathsHTCX *") XrViveTrackerPathsHTCX.Buffer viveTrackerPaths) { + if (CHECKS) { + check(pathsCountOutput, 1); + } + return nxrEnumerateViveTrackerPathsHTCX(instance, remainingSafe(viveTrackerPaths), memAddress(pathsCountOutput), memAddressSafe(viveTrackerPaths)); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HUAWEIControllerInteraction.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HUAWEIControllerInteraction.java index 04c02b7f18..6659db84d7 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HUAWEIControllerInteraction.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/HUAWEIControllerInteraction.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_HUAWEI_controller_interaction extension. * *

    This extension defines a new interaction profile for the Huawei Controller, including but not limited to Huawei VR Glasses Controller.

    - */ -public final class HUAWEIControllerInteraction { - - /** The extension specification version. */ - public static final int XR_HUAWEI_controller_interaction_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_HUAWEI_CONTROLLER_INTERACTION_EXTENSION_NAME = "XR_HUAWEI_controller_interaction"; + */ +public final class HUAWEIControllerInteraction { + + /** The extension specification version. */ + public static final int XR_HUAWEI_controller_interaction_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_HUAWEI_CONTROLLER_INTERACTION_EXTENSION_NAME = "XR_HUAWEI_controller_interaction"; - private HUAWEIControllerInteraction() {} + private HUAWEIControllerInteraction() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRAndroidCreateInstance.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRAndroidCreateInstance.java new file mode 100644 index 0000000000..ee11c4c1ed --- /dev/null +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRAndroidCreateInstance.java @@ -0,0 +1,28 @@ +/* + * Copyright LWJGL. All rights reserved. + * License terms: https://www.lwjgl.org/license + * MACHINE GENERATED FILE, DO NOT EDIT + */ +package org.lwjgl.openxr; + +/** + * The XR_KHR_android_create_instance extension. + * + *

    When the application creates an {@code XrInstance} object on Android systems, additional information from the application has to be provided to the XR runtime.

    + * + *

    The Android XR runtime must return error {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE} if the additional information is not provided by the application or if the additional parameters are invalid.

    + */ +public final class KHRAndroidCreateInstance { + + /** The extension specification version. */ + public static final int XR_KHR_android_create_instance_SPEC_VERSION = 3; + + /** The extension name. */ + public static final String XR_KHR_ANDROID_CREATE_INSTANCE_EXTENSION_NAME = "XR_KHR_android_create_instance"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_INSTANCE_CREATE_INFO_ANDROID_KHR = 1000008000; + + private KHRAndroidCreateInstance() {} + +} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRBindingModification.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRBindingModification.java index 279b3f23e5..b965437756 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRBindingModification.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRBindingModification.java @@ -4,25 +4,25 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_KHR_binding_modification extension. * *

    This extension adds an optional structure that can be included on the {@link XrInteractionProfileSuggestedBinding}{@code ::next} chain passed to {@link XR10#xrSuggestInteractionProfileBindings SuggestInteractionProfileBindings} to specify additional information to modify default binding behavior.

    * *

    This extension does not define any actual modification structs, but includes the list of modifications and the {@link XrBindingModificationBaseHeaderKHR} structure to allow other extensions to provide specific modifications.

    - */ -public final class KHRBindingModification { - - /** The extension specification version. */ - public static final int XR_KHR_binding_modification_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_KHR_BINDING_MODIFICATION_EXTENSION_NAME = "XR_KHR_binding_modification"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_BINDING_MODIFICATIONS_KHR = 1000120000; + */ +public final class KHRBindingModification { + + /** The extension specification version. */ + public static final int XR_KHR_binding_modification_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_KHR_BINDING_MODIFICATION_EXTENSION_NAME = "XR_KHR_binding_modification"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_BINDING_MODIFICATIONS_KHR = 1000120000; - private KHRBindingModification() {} + private KHRBindingModification() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerColorScaleBias.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerColorScaleBias.java index 31ed8ea2af..a100e4939b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerColorScaleBias.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerColorScaleBias.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_KHR_composition_layer_color_scale_bias extension. * @@ -22,18 +22,18 @@ *

    This extension specifies the {@link XrCompositionLayerColorScaleBiasKHR} structure, which, if present in the {@link XrCompositionLayerBaseHeader}{@code ::next} chain, must be applied to the composition layer.

    * *

    This extension does not define a new composition layer type, but rather it defines a transform that may be applied to the color derived from existing composition layer types.

    - */ -public final class KHRCompositionLayerColorScaleBias { - - /** The extension specification version. */ - public static final int XR_KHR_composition_layer_color_scale_bias_SPEC_VERSION = 5; - - /** The extension name. */ - public static final String XR_KHR_COMPOSITION_LAYER_COLOR_SCALE_BIAS_EXTENSION_NAME = "XR_KHR_composition_layer_color_scale_bias"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR = 1000034000; + */ +public final class KHRCompositionLayerColorScaleBias { + + /** The extension specification version. */ + public static final int XR_KHR_composition_layer_color_scale_bias_SPEC_VERSION = 5; + + /** The extension name. */ + public static final String XR_KHR_COMPOSITION_LAYER_COLOR_SCALE_BIAS_EXTENSION_NAME = "XR_KHR_composition_layer_color_scale_bias"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR = 1000034000; - private KHRCompositionLayerColorScaleBias() {} + private KHRCompositionLayerColorScaleBias() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerCube.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerCube.java index 15e774f9db..04a66c4686 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerCube.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerCube.java @@ -4,25 +4,25 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_KHR_composition_layer_cube extension. * *

    This extension adds an additional layer type that enables direct sampling from cubemaps.

    * *

    The cube layer is the natural layer type for hardware accelerated environment maps. Without updating the image source, the user can look all around, and the compositor can display what they are looking at without intervention from the application.

    - */ -public final class KHRCompositionLayerCube { - - /** The extension specification version. */ - public static final int XR_KHR_composition_layer_cube_SPEC_VERSION = 8; - - /** The extension name. */ - public static final String XR_KHR_COMPOSITION_LAYER_CUBE_EXTENSION_NAME = "XR_KHR_composition_layer_cube"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_COMPOSITION_LAYER_CUBE_KHR = 1000006000; + */ +public final class KHRCompositionLayerCube { + + /** The extension specification version. */ + public static final int XR_KHR_composition_layer_cube_SPEC_VERSION = 8; + + /** The extension name. */ + public static final String XR_KHR_COMPOSITION_LAYER_CUBE_EXTENSION_NAME = "XR_KHR_composition_layer_cube"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_COMPOSITION_LAYER_CUBE_KHR = 1000006000; - private KHRCompositionLayerCube() {} + private KHRCompositionLayerCube() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerCylinder.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerCylinder.java index 9634b8ed36..983ced4933 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerCylinder.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerCylinder.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_KHR_composition_layer_cylinder extension. * @@ -26,18 +26,18 @@ *
  • p — Origin of pose transform
  • *
  • U/V — UV coordinates
  • * - */ -public final class KHRCompositionLayerCylinder { - - /** The extension specification version. */ - public static final int XR_KHR_composition_layer_cylinder_SPEC_VERSION = 4; - - /** The extension name. */ - public static final String XR_KHR_COMPOSITION_LAYER_CYLINDER_EXTENSION_NAME = "XR_KHR_composition_layer_cylinder"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_COMPOSITION_LAYER_CYLINDER_KHR = 1000017000; + */ +public final class KHRCompositionLayerCylinder { + + /** The extension specification version. */ + public static final int XR_KHR_composition_layer_cylinder_SPEC_VERSION = 4; + + /** The extension name. */ + public static final String XR_KHR_COMPOSITION_LAYER_CYLINDER_EXTENSION_NAME = "XR_KHR_composition_layer_cylinder"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_COMPOSITION_LAYER_CYLINDER_KHR = 1000017000; - private KHRCompositionLayerCylinder() {} + private KHRCompositionLayerCylinder() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerDepth.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerDepth.java index 35861ceaff..9793739ccb 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerDepth.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerDepth.java @@ -4,25 +4,25 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_KHR_composition_layer_depth extension. * *

    This extension defines an extra layer type which allows applications to submit depth images along with color images in projection layers, i.e. {@link XrCompositionLayerProjection}.

    * - *

    The XR runtime may use this information to perform more accurate reprojections taking depth into account. Use of this extension does not affect the order of layer composition as described in Compositing.

    - */ -public final class KHRCompositionLayerDepth { - - /** The extension specification version. */ - public static final int XR_KHR_composition_layer_depth_SPEC_VERSION = 6; - - /** The extension name. */ - public static final String XR_KHR_COMPOSITION_LAYER_DEPTH_EXTENSION_NAME = "XR_KHR_composition_layer_depth"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR = 1000010000; + *

    The XR runtime may use this information to perform more accurate reprojections taking depth into account. Use of this extension does not affect the order of layer composition as described in Compositing.

    + */ +public final class KHRCompositionLayerDepth { + + /** The extension specification version. */ + public static final int XR_KHR_composition_layer_depth_SPEC_VERSION = 6; + + /** The extension name. */ + public static final String XR_KHR_COMPOSITION_LAYER_DEPTH_EXTENSION_NAME = "XR_KHR_composition_layer_depth"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR = 1000010000; - private KHRCompositionLayerDepth() {} + private KHRCompositionLayerDepth() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerEquirect.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerEquirect.java index c76c4e3de2..80528d3aa8 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerEquirect.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerEquirect.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_KHR_composition_layer_equirect extension. * @@ -13,18 +13,18 @@ *

    The equirect layer type provides most of the same benefits as a cubemap, but from an equirect 2D image source. This image source is appealing mostly because equirect environment maps are very common, and the highest quality you can get from them is by sampling them directly in the compositor.

    * *

    This is not a projection type of layer but rather an object-in-world type of layer, similar to {@link XrCompositionLayerQuad}. Only the interior of the sphere surface must be visible; the exterior of the sphere is not visible and must not be drawn by the runtime.

    - */ -public final class KHRCompositionLayerEquirect { - - /** The extension specification version. */ - public static final int XR_KHR_composition_layer_equirect_SPEC_VERSION = 3; - - /** The extension name. */ - public static final String XR_KHR_COMPOSITION_LAYER_EQUIRECT_EXTENSION_NAME = "XR_KHR_composition_layer_equirect"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_COMPOSITION_LAYER_EQUIRECT_KHR = 1000018000; + */ +public final class KHRCompositionLayerEquirect { + + /** The extension specification version. */ + public static final int XR_KHR_composition_layer_equirect_SPEC_VERSION = 3; + + /** The extension name. */ + public static final String XR_KHR_COMPOSITION_LAYER_EQUIRECT_EXTENSION_NAME = "XR_KHR_composition_layer_equirect"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_COMPOSITION_LAYER_EQUIRECT_KHR = 1000018000; - private KHRCompositionLayerEquirect() {} + private KHRCompositionLayerEquirect() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerEquirect2.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerEquirect2.java index 90fd7c1138..a0bf904302 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerEquirect2.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRCompositionLayerEquirect2.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_KHR_composition_layer_equirect2 extension. * @@ -15,18 +15,18 @@ *

    This is not a projection type of layer but rather an object-in-world type of layer, similar to {@link XrCompositionLayerQuad}. Only the interior of the sphere surface must be visible; the exterior of the sphere is not visible and must not be drawn by the runtime.

    * *

    This extension uses a different parameterization more in keeping with the formulation of KHR_composition_layer_cylinder but is functionally equivalent to KHR_composition_layer_equirect.

    - */ -public final class KHRCompositionLayerEquirect2 { - - /** The extension specification version. */ - public static final int XR_KHR_composition_layer_equirect2_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_KHR_COMPOSITION_LAYER_EQUIRECT2_EXTENSION_NAME = "XR_KHR_composition_layer_equirect2"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR = 1000091000; + */ +public final class KHRCompositionLayerEquirect2 { + + /** The extension specification version. */ + public static final int XR_KHR_composition_layer_equirect2_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_KHR_COMPOSITION_LAYER_EQUIRECT2_EXTENSION_NAME = "XR_KHR_composition_layer_equirect2"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR = 1000091000; - private KHRCompositionLayerEquirect2() {} + private KHRCompositionLayerEquirect2() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRConvertTimespecTime.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRConvertTimespecTime.java index 3037701817..f1e1ff164b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRConvertTimespecTime.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRConvertTimespecTime.java @@ -4,44 +4,44 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import java.nio.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_KHR_convert_timespec_time extension. * *

    This extension provides two functions for converting between timespec monotonic time and {@code XrTime}. The {@link #xrConvertTimespecTimeToTimeKHR ConvertTimespecTimeToTimeKHR} function converts from timespec time to {@code XrTime}, while the {@link #xrConvertTimeToTimespecTimeKHR ConvertTimeToTimespecTimeKHR} function converts {@code XrTime} to timespec monotonic time. The primary use case for this functionality is to be able to synchronize events between the local system and the OpenXR system.

    - */ -public class KHRConvertTimespecTime { - - /** The extension specification version. */ - public static final int XR_KHR_convert_timespec_time_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_KHR_CONVERT_TIMESPEC_TIME_EXTENSION_NAME = "XR_KHR_convert_timespec_time"; + */ +public class KHRConvertTimespecTime { + + /** The extension specification version. */ + public static final int XR_KHR_convert_timespec_time_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_KHR_CONVERT_TIMESPEC_TIME_EXTENSION_NAME = "XR_KHR_convert_timespec_time"; protected KHRConvertTimespecTime() { throw new UnsupportedOperationException(); - } - - // --- [ xrConvertTimespecTimeToTimeKHR ] --- - - /** Unsafe version of: {@link #xrConvertTimespecTimeToTimeKHR ConvertTimespecTimeToTimeKHR} */ - public static int nxrConvertTimespecTimeToTimeKHR(XrInstance instance, long unixTime, long time) { - long __functionAddress = instance.getCapabilities().xrConvertTimespecTimeToTimeKHR; - if (CHECKS) { - check(__functionAddress); - check(unixTime); - } - return callPPPI(instance.address(), unixTime, time, __functionAddress); - } + } + // --- [ xrConvertTimespecTimeToTimeKHR ] --- + + /** Unsafe version of: {@link #xrConvertTimespecTimeToTimeKHR ConvertTimespecTimeToTimeKHR} */ + public static int nxrConvertTimespecTimeToTimeKHR(XrInstance instance, long unixTime, long time) { + long __functionAddress = instance.getCapabilities().xrConvertTimespecTimeToTimeKHR; + if (CHECKS) { + check(__functionAddress); + check(unixTime); + } + return callPPPI(instance.address(), unixTime, time, __functionAddress); + } + /** * Convert timespec monotonic time to XrTime. * @@ -90,17 +90,17 @@ public static int nxrConvertTimespecTimeToTimeKHR(XrInstance instance, long unix * * @param instance an {@code XrInstance} handle previously created with {@link XR10#xrCreateInstance CreateInstance}. * @param time the resulting {@code XrTime} that is equivalent to the {@code timespecTime}. - */ - @NativeType("XrResult") - public static int xrConvertTimespecTimeToTimeKHR(XrInstance instance, @NativeType("struct timespec const *") long unixTime, @NativeType("XrTime *") LongBuffer time) { - if (CHECKS) { - check(time, 1); - } - return nxrConvertTimespecTimeToTimeKHR(instance, unixTime, memAddress(time)); - } - - // --- [ xrConvertTimeToTimespecTimeKHR ] --- + */ + @NativeType("XrResult") + public static int xrConvertTimespecTimeToTimeKHR(XrInstance instance, @NativeType("struct timespec const *") long unixTime, @NativeType("XrTime *") LongBuffer time) { + if (CHECKS) { + check(time, 1); + } + return nxrConvertTimespecTimeToTimeKHR(instance, unixTime, memAddress(time)); + } + // --- [ xrConvertTimeToTimespecTimeKHR ] --- + /** * Convert XrTime to timespec monotonic time. * @@ -149,15 +149,15 @@ public static int xrConvertTimespecTimeToTimeKHR(XrInstance instance, @NativeTyp * @param instance an {@code XrInstance} handle previously created with {@link XR10#xrCreateInstance CreateInstance}. * @param time an {@code XrTime}. * @param timespecTime the resulting timespec time that is equivalent to a {@code timespec} obtained from {@code clock_gettime} with {@code CLOCK_MONOTONIC}. - */ - @NativeType("XrResult") - public static int xrConvertTimeToTimespecTimeKHR(XrInstance instance, @NativeType("XrTime") long time, @NativeType("struct timespec *") long timespecTime) { - long __functionAddress = instance.getCapabilities().xrConvertTimeToTimespecTimeKHR; - if (CHECKS) { - check(__functionAddress); - check(timespecTime); - } - return callPJPI(instance.address(), time, timespecTime, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrConvertTimeToTimespecTimeKHR(XrInstance instance, @NativeType("XrTime") long time, @NativeType("struct timespec *") long timespecTime) { + long __functionAddress = instance.getCapabilities().xrConvertTimeToTimespecTimeKHR; + if (CHECKS) { + check(__functionAddress); + check(timespecTime); + } + return callPJPI(instance.address(), time, timespecTime, __functionAddress); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRLoaderInit.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRLoaderInit.java index dcee5cf09b..670095c6c6 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRLoaderInit.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRLoaderInit.java @@ -4,40 +4,40 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; + /** * The XR_KHR_loader_init extension. * *

    On some platforms, before loading can occur the loader must be initialized with platform-specific parameters. Unlike other extensions, the presence of this extension is signaled by a successful call to {@link XR10#xrGetInstanceProcAddr GetInstanceProcAddr} to retrieve the function pointer for {@link #xrInitializeLoaderKHR InitializeLoaderKHR} using a null instance handle. If this extension is supported, its use may be required on some platforms and the use of the {@link #xrInitializeLoaderKHR InitializeLoaderKHR} function must precede other OpenXR calls except {@link XR10#xrGetInstanceProcAddr GetInstanceProcAddr}. This function exists as part of the loader library that the application is using.

    - */ -public class KHRLoaderInit { - - /** The extension specification version. */ - public static final int XR_KHR_loader_init_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_KHR_LOADER_INIT_EXTENSION_NAME = "XR_KHR_loader_init"; + */ +public class KHRLoaderInit { + + /** The extension specification version. */ + public static final int XR_KHR_loader_init_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_KHR_LOADER_INIT_EXTENSION_NAME = "XR_KHR_loader_init"; protected KHRLoaderInit() { throw new UnsupportedOperationException(); - } - - // --- [ xrInitializeLoaderKHR ] --- - - /** Unsafe version of: {@link #xrInitializeLoaderKHR InitializeLoaderKHR} */ - public static int nxrInitializeLoaderKHR(long loaderInitInfo) { - long __functionAddress = XR.getGlobalCommands().xrInitializeLoaderKHR; - if (CHECKS) { - check(__functionAddress); - } - return callPI(loaderInitInfo, __functionAddress); - } + } + // --- [ xrInitializeLoaderKHR ] --- + + /** Unsafe version of: {@link #xrInitializeLoaderKHR InitializeLoaderKHR} */ + public static int nxrInitializeLoaderKHR(long loaderInitInfo) { + long __functionAddress = XR.getGlobalCommands().xrInitializeLoaderKHR; + if (CHECKS) { + check(__functionAddress); + } + return callPI(loaderInitInfo, __functionAddress); + } + /** * Initializes loader. * @@ -53,7 +53,7 @@ public static int nxrInitializeLoaderKHR(long loaderInitInfo) { * *
      *
    • The {@link KHRLoaderInit XR_KHR_loader_init} extension must be enabled prior to calling {@link #xrInitializeLoaderKHR InitializeLoaderKHR}
    • - *
    • {@code loaderInitInfo} must be a pointer to a valid {@link XrLoaderInitInfoBaseHeaderKHR}-based structure
    • + *
    • {@code loaderInitInfo} must be a pointer to a valid {@link XrLoaderInitInfoBaseHeaderKHR}-based structure. See also: {@link XrLoaderInitInfoAndroidKHR}
    • *
    * *
    Return Codes
    @@ -75,10 +75,10 @@ public static int nxrInitializeLoaderKHR(long loaderInitInfo) { *

    {@link XrLoaderInitInfoBaseHeaderKHR}

    * * @param loaderInitInfo a pointer to an {@link XrLoaderInitInfoBaseHeaderKHR} structure, which is a polymorphic type defined by other platform- or implementation-specific extensions. - */ - @NativeType("XrResult") - public static int xrInitializeLoaderKHR(@NativeType("XrLoaderInitInfoBaseHeaderKHR const *") XrLoaderInitInfoBaseHeaderKHR loaderInitInfo) { - return nxrInitializeLoaderKHR(loaderInitInfo.address()); - } + */ + @NativeType("XrResult") + public static int xrInitializeLoaderKHR(@NativeType("XrLoaderInitInfoBaseHeaderKHR const *") XrLoaderInitInfoBaseHeaderKHR loaderInitInfo) { + return nxrInitializeLoaderKHR(loaderInitInfo.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRLoaderInitAndroid.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRLoaderInitAndroid.java new file mode 100644 index 0000000000..b67e37f879 --- /dev/null +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRLoaderInitAndroid.java @@ -0,0 +1,32 @@ +/* + * Copyright LWJGL. All rights reserved. + * License terms: https://www.lwjgl.org/license + * MACHINE GENERATED FILE, DO NOT EDIT + */ +package org.lwjgl.openxr; + +/** + * The XR_KHR_loader_init_android extension. + * + *

    On Android, some loader implementations need the application to provide additional information on initialization. This extension defines the parameters needed by such implementations. If this is available on a given implementation, an application must make use of it.

    + * + *

    On implementations where use of this is required, the following condition must apply:

    + * + *
      + *
    • Whenever an OpenXR function accepts an {@link XrLoaderInitInfoBaseHeaderKHR} pointer, the runtime (and loader) must also accept a pointer to an {@link XrLoaderInitInfoAndroidKHR}.
    • + *
    + */ +public final class KHRLoaderInitAndroid { + + /** The extension specification version. */ + public static final int XR_KHR_loader_init_android_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_KHR_LOADER_INIT_ANDROID_EXTENSION_NAME = "XR_KHR_loader_init_android"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_LOADER_INIT_INFO_ANDROID_KHR = 1000089000; + + private KHRLoaderInitAndroid() {} + +} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHROpenGLESEnable.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHROpenGLESEnable.java new file mode 100644 index 0000000000..6af8048d0f --- /dev/null +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHROpenGLESEnable.java @@ -0,0 +1,125 @@ +/* + * 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_KHR_opengl_es_enable extension. + * + *

    This extension must be provided by runtimes supporting applications using OpenGL ES APIs for rendering. OpenGL ES applications need this extension to obtain compatible swapchain images which the runtime is required to supply. The runtime needs the following OpenGL ES objects from the application in order to interact properly with the OpenGL ES driver: EGLDisplay, EGLConfig and EGLContext.

    + * + *

    These are passed from the application to the runtime in a {@link XrGraphicsBindingOpenGLESAndroidKHR} structure when creating the {@code XrSession}. Although not restricted to Android, the OpenGL ES extension is currently tailored for Android.

    + * + *

    Note that the application is responsible for creating the required OpenGL ES objects, including an OpenGL ES context to be used for rendering.

    + * + *

    This extension also provides mechanisms for the application to interact with images acquired by calling {@link XR10#xrEnumerateSwapchainImages EnumerateSwapchainImages}.

    + * + *

    In order to expose the structures, types, and functions of this extension, the application source code must define {@link XR10#XR_USE_GRAPHICS_API_OPENGL_ES USE_GRAPHICS_API_OPENGL_ES}, as well as an appropriate window system define, before including the OpenXR platform header {@code openxr_platform.h}, in all portions of your library or application that include it. The only window system define currently supported by this extension is:

    + * + *
      + *
    • USE_PLATFORM_ANDROID
    • + *
    + */ +public class KHROpenGLESEnable { + + /** The extension specification version. */ + public static final int XR_KHR_opengl_es_enable_SPEC_VERSION = 8; + + /** The extension name. */ + public static final String XR_KHR_OPENGL_ES_ENABLE_EXTENSION_NAME = "XR_KHR_opengl_es_enable"; + + /** + * Extends {@code XrStructureType}. + * + *
    Enum values:
    + * + *
      + *
    • {@link #XR_TYPE_GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR TYPE_GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR}
    • + *
    • {@link #XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR}
    • + *
    • {@link #XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR TYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR}
    • + *
    + */ + public static final int + XR_TYPE_GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR = 1000024001, + XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR = 1000024002, + XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR = 1000024003; + + protected KHROpenGLESEnable() { + throw new UnsupportedOperationException(); + } + + // --- [ xrGetOpenGLESGraphicsRequirementsKHR ] --- + + /** Unsafe version of: {@link #xrGetOpenGLESGraphicsRequirementsKHR GetOpenGLESGraphicsRequirementsKHR} */ + public static int nxrGetOpenGLESGraphicsRequirementsKHR(XrInstance instance, long systemId, long graphicsRequirements) { + long __functionAddress = instance.getCapabilities().xrGetOpenGLESGraphicsRequirementsKHR; + if (CHECKS) { + check(__functionAddress); + } + return callPJPI(instance.address(), systemId, graphicsRequirements, __functionAddress); + } + + /** + * Retrieve the OpenGL ES version requirements for an instance and system. + * + *
    C Specification
    + * + *

    To query OpenGL ES API version requirements for an instance and system, call:

    + * + *
    
    +     * XrResult xrGetOpenGLESGraphicsRequirementsKHR(
    +     *     XrInstance                                  instance,
    +     *     XrSystemId                                  systemId,
    +     *     XrGraphicsRequirementsOpenGLESKHR*          graphicsRequirements);
    + * + *
    Description
    + * + *

    The {@link #xrGetOpenGLESGraphicsRequirementsKHR GetOpenGLESGraphicsRequirementsKHR} function identifies to the application the minimum OpenGL ES version requirement and the highest known tested OpenGL ES version. The runtime must return {@link XR10#XR_ERROR_GRAPHICS_REQUIREMENTS_CALL_MISSING ERROR_GRAPHICS_REQUIREMENTS_CALL_MISSING} ({@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE} may be returned due to legacy behavior) on calls to {@link XR10#xrCreateSession CreateSession} if {@link #xrGetOpenGLESGraphicsRequirementsKHR GetOpenGLESGraphicsRequirementsKHR} has not been called for the same {@code instance} and {@code systemId}.

    + * + *
    Valid Usage (Implicit)
    + * + *
      + *
    • The {@link KHROpenGLESEnable XR_KHR_opengl_es_enable} extension must be enabled prior to calling {@link #xrGetOpenGLESGraphicsRequirementsKHR GetOpenGLESGraphicsRequirementsKHR}
    • + *
    • {@code instance} must be a valid {@code XrInstance} handle
    • + *
    • {@code graphicsRequirements} must be a pointer to an {@link XrGraphicsRequirementsOpenGLESKHR} structure
    • + *
    + * + *
    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_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_SYSTEM_INVALID ERROR_SYSTEM_INVALID}
    • + *
    + *
    + * + *
    See Also
    + * + *

    {@link XrGraphicsRequirementsOpenGLESKHR}

    + * + * @param instance an {@code XrInstance} handle previously created with {@link XR10#xrCreateInstance CreateInstance}. + * @param systemId an {@code XrSystemId} handle for the system which will be used to create a session. + * @param graphicsRequirements the {@link XrGraphicsRequirementsOpenGLESKHR} output structure. + */ + @NativeType("XrResult") + public static int xrGetOpenGLESGraphicsRequirementsKHR(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrGraphicsRequirementsOpenGLESKHR *") XrGraphicsRequirementsOpenGLESKHR graphicsRequirements) { + return nxrGetOpenGLESGraphicsRequirementsKHR(instance, systemId, graphicsRequirements.address()); + } + +} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHROpenGLEnable.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHROpenGLEnable.java index 7f64d6b350..125dd2d246 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHROpenGLEnable.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHROpenGLEnable.java @@ -4,12 +4,12 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; + /** * The XR_KHR_opengl_enable extension. * @@ -19,7 +19,7 @@ * *

    This extension provides mechanisms for the application to interact with images acquired by calling {@link XR10#xrEnumerateSwapchainImages EnumerateSwapchainImages}.

    * - *

    In order to expose the structures, types, and functions of this extension, the application must define {@link XR10#XR_USE_GRAPHICS_API_OPENGL USE_GRAPHICS_API_OPENGL}, as well as an appropriate window system define supported by this extension, before including the OpenXR platform header {@code openxr_platform.h}, in all portions of the library or application that include it. The window system defines currently supported by this extension are:

    + *

    In order to expose the structures, types, and functions of this extension, the application must define {@link XR10#XR_USE_GRAPHICS_API_OPENGL USE_GRAPHICS_API_OPENGL}, as well as an appropriate window system define supported by this extension, before including the OpenXR platform header {@code openxr_platform.h}, in all portions of the library or application that include it. The window system defines currently supported by this extension are:

    * *
      *
    • {@link XR10#XR_USE_PLATFORM_WIN32 USE_PLATFORM_WIN32}
    • @@ -31,15 +31,15 @@ *

      Note that a runtime implementation of this extension is only required to support the structs introduced by this extension which belong to the platform it is running on.

      * *

      Note that the OpenGL context given to the call {@link XR10#xrCreateSession CreateSession} must not be bound in another thread when calling the functions: {@link XR10#xrCreateSession CreateSession}, {@link XR10#xrDestroySession DestroySession}, {@link XR10#xrBeginFrame BeginFrame}, {@link XR10#xrEndFrame EndFrame}, {@link XR10#xrCreateSwapchain CreateSwapchain}, {@link XR10#xrDestroySwapchain DestroySwapchain}, {@link XR10#xrEnumerateSwapchainImages EnumerateSwapchainImages}, {@link XR10#xrAcquireSwapchainImage AcquireSwapchainImage}, {@link XR10#xrWaitSwapchainImage WaitSwapchainImage} and {@link XR10#xrReleaseSwapchainImage ReleaseSwapchainImage}. It may be bound in the thread calling those functions. The runtime must not access the context from any other function. In particular the application must be able to call {@link XR10#xrWaitFrame WaitFrame} from a different thread than the rendering thread.

      - */ -public class KHROpenGLEnable { - - /** The extension specification version. */ - public static final int XR_KHR_opengl_enable_SPEC_VERSION = 10; - - /** The extension name. */ - public static final String XR_KHR_OPENGL_ENABLE_EXTENSION_NAME = "XR_KHR_opengl_enable"; - + */ +public class KHROpenGLEnable { + + /** The extension specification version. */ + public static final int XR_KHR_opengl_enable_SPEC_VERSION = 10; + + /** The extension name. */ + public static final String XR_KHR_OPENGL_ENABLE_EXTENSION_NAME = "XR_KHR_opengl_enable"; + /** * Extends {@code XrStructureType}. * @@ -53,30 +53,30 @@ public class KHROpenGLEnable { *
    • {@link #XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR}
    • *
    • {@link #XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_KHR TYPE_GRAPHICS_REQUIREMENTS_OPENGL_KHR}
    • *
    - */ + */ public static final int - XR_TYPE_GRAPHICS_BINDING_OPENGL_WIN32_KHR = 1000023000, - XR_TYPE_GRAPHICS_BINDING_OPENGL_XLIB_KHR = 1000023001, - XR_TYPE_GRAPHICS_BINDING_OPENGL_XCB_KHR = 1000023002, - XR_TYPE_GRAPHICS_BINDING_OPENGL_WAYLAND_KHR = 1000023003, - XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR = 1000023004, - XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_KHR = 1000023005; + XR_TYPE_GRAPHICS_BINDING_OPENGL_WIN32_KHR = 1000023000, + XR_TYPE_GRAPHICS_BINDING_OPENGL_XLIB_KHR = 1000023001, + XR_TYPE_GRAPHICS_BINDING_OPENGL_XCB_KHR = 1000023002, + XR_TYPE_GRAPHICS_BINDING_OPENGL_WAYLAND_KHR = 1000023003, + XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR = 1000023004, + XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_KHR = 1000023005; protected KHROpenGLEnable() { throw new UnsupportedOperationException(); - } - - // --- [ xrGetOpenGLGraphicsRequirementsKHR ] --- - - /** Unsafe version of: {@link #xrGetOpenGLGraphicsRequirementsKHR GetOpenGLGraphicsRequirementsKHR} */ - public static int nxrGetOpenGLGraphicsRequirementsKHR(XrInstance instance, long systemId, long graphicsRequirements) { - long __functionAddress = instance.getCapabilities().xrGetOpenGLGraphicsRequirementsKHR; - if (CHECKS) { - check(__functionAddress); - } - return callPJPI(instance.address(), systemId, graphicsRequirements, __functionAddress); - } + } + // --- [ xrGetOpenGLGraphicsRequirementsKHR ] --- + + /** Unsafe version of: {@link #xrGetOpenGLGraphicsRequirementsKHR GetOpenGLGraphicsRequirementsKHR} */ + public static int nxrGetOpenGLGraphicsRequirementsKHR(XrInstance instance, long systemId, long graphicsRequirements) { + long __functionAddress = instance.getCapabilities().xrGetOpenGLGraphicsRequirementsKHR; + if (CHECKS) { + check(__functionAddress); + } + return callPJPI(instance.address(), systemId, graphicsRequirements, __functionAddress); + } + /** * Retrieve the OpenGL version requirements for an instance and system. * @@ -127,10 +127,10 @@ public static int nxrGetOpenGLGraphicsRequirementsKHR(XrInstance instance, long * @param instance an {@code XrInstance} handle previously created with {@link XR10#xrCreateInstance CreateInstance}. * @param systemId an {@code XrSystemId} handle for the system which will be used to create a session. * @param graphicsRequirements the {@link XrGraphicsRequirementsOpenGLKHR} output structure. - */ - @NativeType("XrResult") - public static int xrGetOpenGLGraphicsRequirementsKHR(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrGraphicsRequirementsOpenGLKHR *") XrGraphicsRequirementsOpenGLKHR graphicsRequirements) { - return nxrGetOpenGLGraphicsRequirementsKHR(instance, systemId, graphicsRequirements.address()); - } + */ + @NativeType("XrResult") + public static int xrGetOpenGLGraphicsRequirementsKHR(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrGraphicsRequirementsOpenGLKHR *") XrGraphicsRequirementsOpenGLKHR graphicsRequirements) { + return nxrGetOpenGLGraphicsRequirementsKHR(instance, systemId, graphicsRequirements.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRSwapchainUsageInputAttachmentBit.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRSwapchainUsageInputAttachmentBit.java index 3bc58b2618..f1ccaa1226 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRSwapchainUsageInputAttachmentBit.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRSwapchainUsageInputAttachmentBit.java @@ -4,23 +4,23 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_KHR_swapchain_usage_input_attachment_bit extension. * *

    This extension enables an application to specify that swapchain images should be created in a way so that they can be used as input attachments. At the time of writing this bit only affects Vulkan swapchains.

    - */ -public final class KHRSwapchainUsageInputAttachmentBit { - - /** The extension specification version. */ - public static final int XR_KHR_swapchain_usage_input_attachment_bit_SPEC_VERSION = 3; - - /** The extension name. */ - public static final String XR_KHR_SWAPCHAIN_USAGE_INPUT_ATTACHMENT_BIT_EXTENSION_NAME = "XR_KHR_swapchain_usage_input_attachment_bit"; - - /** Extends {@code XrSwapchainUsageFlagBits}. */ - public static final int XR_SWAPCHAIN_USAGE_INPUT_ATTACHMENT_BIT_KHR = 0x80; + */ +public final class KHRSwapchainUsageInputAttachmentBit { + + /** The extension specification version. */ + public static final int XR_KHR_swapchain_usage_input_attachment_bit_SPEC_VERSION = 3; + + /** The extension name. */ + public static final String XR_KHR_SWAPCHAIN_USAGE_INPUT_ATTACHMENT_BIT_EXTENSION_NAME = "XR_KHR_swapchain_usage_input_attachment_bit"; + + /** Extends {@code XrSwapchainUsageFlagBits}. */ + public static final int XR_SWAPCHAIN_USAGE_INPUT_ATTACHMENT_BIT_KHR = 0x80; - private KHRSwapchainUsageInputAttachmentBit() {} + private KHRSwapchainUsageInputAttachmentBit() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVisibilityMask.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVisibilityMask.java index 648e6e2b25..a0af1f990f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVisibilityMask.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVisibilityMask.java @@ -4,25 +4,25 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; + /** * The XR_KHR_visibility_mask extension. * *

    This extension support the providing of a per-view drawing mask for applications. The primary purpose of this is to enable performance improvements that result from avoiding drawing on areas that aren’t visible to the user. A common occurrence in head-mounted VR hardware is that the optical system’s frustum doesn’t intersect precisely with the rectangular display it is viewing. As a result, it may be that there are parts of the display that aren’t visible to the user, such as the corners of the display. In such cases it would be unnecessary for the application to draw into those parts.

    - */ -public class KHRVisibilityMask { - - /** The extension specification version. */ - public static final int XR_KHR_visibility_mask_SPEC_VERSION = 2; - - /** The extension name. */ - public static final String XR_KHR_VISIBILITY_MASK_EXTENSION_NAME = "XR_KHR_visibility_mask"; - + */ +public class KHRVisibilityMask { + + /** The extension specification version. */ + public static final int XR_KHR_visibility_mask_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_KHR_VISIBILITY_MASK_EXTENSION_NAME = "XR_KHR_visibility_mask"; + /** * Extends {@code XrStructureType}. * @@ -32,11 +32,11 @@ public class KHRVisibilityMask { *
  • {@link #XR_TYPE_VISIBILITY_MASK_KHR TYPE_VISIBILITY_MASK_KHR}
  • *
  • {@link #XR_TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR}
  • * - */ + */ public static final int - XR_TYPE_VISIBILITY_MASK_KHR = 1000031000, - XR_TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR = 1000031001; - + XR_TYPE_VISIBILITY_MASK_KHR = 1000031000, + XR_TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR = 1000031001; + /** * XrVisibilityMaskTypeKHR - Visibility Mask Type * @@ -51,27 +51,27 @@ public class KHRVisibilityMask { *
    See Also
    * *

    {@link #xrGetVisibilityMaskKHR GetVisibilityMaskKHR}

    - */ + */ public static final int - XR_VISIBILITY_MASK_TYPE_HIDDEN_TRIANGLE_MESH_KHR = 1, - XR_VISIBILITY_MASK_TYPE_VISIBLE_TRIANGLE_MESH_KHR = 2, - XR_VISIBILITY_MASK_TYPE_LINE_LOOP_KHR = 3; + XR_VISIBILITY_MASK_TYPE_HIDDEN_TRIANGLE_MESH_KHR = 1, + XR_VISIBILITY_MASK_TYPE_VISIBLE_TRIANGLE_MESH_KHR = 2, + XR_VISIBILITY_MASK_TYPE_LINE_LOOP_KHR = 3; protected KHRVisibilityMask() { throw new UnsupportedOperationException(); - } - - // --- [ xrGetVisibilityMaskKHR ] --- - - /** Unsafe version of: {@link #xrGetVisibilityMaskKHR GetVisibilityMaskKHR} */ - public static int nxrGetVisibilityMaskKHR(XrSession session, int viewConfigurationType, int viewIndex, int visibilityMaskType, long visibilityMask) { - long __functionAddress = session.getCapabilities().xrGetVisibilityMaskKHR; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(session.address(), viewConfigurationType, viewIndex, visibilityMaskType, visibilityMask, __functionAddress); - } + } + // --- [ xrGetVisibilityMaskKHR ] --- + + /** Unsafe version of: {@link #xrGetVisibilityMaskKHR GetVisibilityMaskKHR} */ + public static int nxrGetVisibilityMaskKHR(XrSession session, int viewConfigurationType, int viewIndex, int visibilityMaskType, long visibilityMask) { + long __functionAddress = session.getCapabilities().xrGetVisibilityMaskKHR; + if (CHECKS) { + check(__functionAddress); + } + return callPPI(session.address(), viewConfigurationType, viewIndex, visibilityMaskType, visibilityMask, __functionAddress); + } + /** * Gets visibility mask. * @@ -89,7 +89,7 @@ public static int nxrGetVisibilityMaskKHR(XrSession session, int viewConfigurati * *
    Description
    * - *

    {@link #xrGetVisibilityMaskKHR GetVisibilityMaskKHR} retrieves the view mask for a given view. This function follows the two-call idiom for filling multiple buffers in a struct. Specifically, if either {@code vertexCapacityInput} or {@code indexCapacityInput} is 0, the runtime must respond as if both fields were set to 0, returning the vertex count and index count through {@code vertexCountOutput} or {@code indexCountOutput} respectively. If a view mask for the specified view isn’t available, the returned vertex and index counts must be 0.

    + *

    {@link #xrGetVisibilityMaskKHR GetVisibilityMaskKHR} retrieves the view mask for a given view. This function follows the two-call idiom for filling multiple buffers in a struct. Specifically, if either {@code vertexCapacityInput} or {@code indexCapacityInput} is 0, the runtime must respond as if both fields were set to 0, returning the vertex count and index count through {@code vertexCountOutput} or {@code indexCountOutput} respectively. If a view mask for the specified view isn’t available, the returned vertex and index counts must be 0.

    * *
    Valid Usage (Implicit)
    * @@ -131,10 +131,10 @@ public static int nxrGetVisibilityMaskKHR(XrSession session, int viewConfigurati * @param viewIndex the individual view within the view configuration from which to retrieve mask information. * @param visibilityMaskType the type of visibility mask requested. * @param visibilityMask an input/output struct which specifies the view mask. - */ - @NativeType("XrResult") - public static int xrGetVisibilityMaskKHR(XrSession session, @NativeType("XrViewConfigurationType") int viewConfigurationType, @NativeType("uint32_t") int viewIndex, @NativeType("XrVisibilityMaskTypeKHR") int visibilityMaskType, @NativeType("XrVisibilityMaskKHR *") XrVisibilityMaskKHR visibilityMask) { - return nxrGetVisibilityMaskKHR(session, viewConfigurationType, viewIndex, visibilityMaskType, visibilityMask.address()); - } + */ + @NativeType("XrResult") + public static int xrGetVisibilityMaskKHR(XrSession session, @NativeType("XrViewConfigurationType") int viewConfigurationType, @NativeType("uint32_t") int viewIndex, @NativeType("XrVisibilityMaskTypeKHR") int visibilityMaskType, @NativeType("XrVisibilityMaskKHR *") XrVisibilityMaskKHR visibilityMask) { + return nxrGetVisibilityMaskKHR(session, viewConfigurationType, viewIndex, visibilityMaskType, visibilityMask.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVulkanEnable.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVulkanEnable.java index 8f6a419586..6fa30d1930 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVulkanEnable.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVulkanEnable.java @@ -4,21 +4,21 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - + import org.lwjgl.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - -import org.lwjgl.vulkan.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + +import org.lwjgl.vulkan.*; + /** * The XR_KHR_vulkan_enable extension. * @@ -29,15 +29,15 @@ *

    This extension also provides mechanisms for the application to interact with images acquired by calling {@link XR10#xrEnumerateSwapchainImages EnumerateSwapchainImages}.

    * *

    In order to expose the structures, types, and functions of this extension, you must define {@link XR10#XR_USE_GRAPHICS_API_VULKAN USE_GRAPHICS_API_VULKAN} before including the OpenXR platform header {@code openxr_platform.h}, in all portions of your library or application that include it.

    - */ -public class KHRVulkanEnable { - - /** The extension specification version. */ - public static final int XR_KHR_vulkan_enable_SPEC_VERSION = 8; - - /** The extension name. */ - public static final String XR_KHR_VULKAN_ENABLE_EXTENSION_NAME = "XR_KHR_vulkan_enable"; - + */ +public class KHRVulkanEnable { + + /** The extension specification version. */ + public static final int XR_KHR_vulkan_enable_SPEC_VERSION = 8; + + /** The extension name. */ + public static final String XR_KHR_VULKAN_ENABLE_EXTENSION_NAME = "XR_KHR_vulkan_enable"; + /** * Extends {@code XrStructureType}. * @@ -48,31 +48,31 @@ public class KHRVulkanEnable { *
  • {@link #XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR}
  • *
  • {@link #XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR}
  • * - */ + */ public static final int - XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR = 1000025000, - XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR = 1000025001, - XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR = 1000025002; + XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR = 1000025000, + XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR = 1000025001, + XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR = 1000025002; protected KHRVulkanEnable() { throw new UnsupportedOperationException(); - } - - // --- [ xrGetVulkanInstanceExtensionsKHR ] --- + } + // --- [ xrGetVulkanInstanceExtensionsKHR ] --- + /** * Unsafe version of: {@link #xrGetVulkanInstanceExtensionsKHR GetVulkanInstanceExtensionsKHR} * * @param bufferCapacityInput the capacity of the {@code buffer}, or 0 to indicate a request to retrieve the required capacity. - */ - public static int nxrGetVulkanInstanceExtensionsKHR(XrInstance instance, long systemId, int bufferCapacityInput, long bufferCountOutput, long buffer) { - long __functionAddress = instance.getCapabilities().xrGetVulkanInstanceExtensionsKHR; - if (CHECKS) { - check(__functionAddress); - } - return callPJPPI(instance.address(), systemId, bufferCapacityInput, bufferCountOutput, buffer, __functionAddress); - } - + */ + public static int nxrGetVulkanInstanceExtensionsKHR(XrInstance instance, long systemId, int bufferCapacityInput, long bufferCountOutput, long buffer) { + long __functionAddress = instance.getCapabilities().xrGetVulkanInstanceExtensionsKHR; + if (CHECKS) { + check(__functionAddress); + } + return callPJPPI(instance.address(), systemId, bufferCapacityInput, bufferCountOutput, buffer, __functionAddress); + } + /** * Get list of required Vulkan instance extensions for an OpenXR instance and system. * @@ -122,30 +122,30 @@ public static int nxrGetVulkanInstanceExtensionsKHR(XrInstance instance, long sy * @param systemId an {@code XrSystemId} handle for the system which will be used to create a session. * @param bufferCountOutput a pointer to the count of characters written (including terminating {@code \0}), or a pointer to the required capacity in the case that {@code bufferCapacityInput} is insufficient. * @param buffer a pointer to an array of characters, but can be {@code NULL} if {@code bufferCapacityInput} is 0. The format of the output is a single space (ASCII {@code 0x20}) delimited string of extension names. - */ - @NativeType("XrResult") - public static int xrGetVulkanInstanceExtensionsKHR(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("uint32_t *") IntBuffer bufferCountOutput, @Nullable @NativeType("char *") ByteBuffer buffer) { - if (CHECKS) { - check(bufferCountOutput, 1); - } - return nxrGetVulkanInstanceExtensionsKHR(instance, systemId, remainingSafe(buffer), memAddress(bufferCountOutput), memAddressSafe(buffer)); - } - - // --- [ xrGetVulkanDeviceExtensionsKHR ] --- + */ + @NativeType("XrResult") + public static int xrGetVulkanInstanceExtensionsKHR(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("uint32_t *") IntBuffer bufferCountOutput, @Nullable @NativeType("char *") ByteBuffer buffer) { + if (CHECKS) { + check(bufferCountOutput, 1); + } + return nxrGetVulkanInstanceExtensionsKHR(instance, systemId, remainingSafe(buffer), memAddress(bufferCountOutput), memAddressSafe(buffer)); + } + // --- [ xrGetVulkanDeviceExtensionsKHR ] --- + /** * Unsafe version of: {@link #xrGetVulkanDeviceExtensionsKHR GetVulkanDeviceExtensionsKHR} * * @param bufferCapacityInput the capacity of the {@code buffer}, or 0 to indicate a request to retrieve the required capacity. - */ - public static int nxrGetVulkanDeviceExtensionsKHR(XrInstance instance, long systemId, int bufferCapacityInput, long bufferCountOutput, long buffer) { - long __functionAddress = instance.getCapabilities().xrGetVulkanDeviceExtensionsKHR; - if (CHECKS) { - check(__functionAddress); - } - return callPJPPI(instance.address(), systemId, bufferCapacityInput, bufferCountOutput, buffer, __functionAddress); - } - + */ + public static int nxrGetVulkanDeviceExtensionsKHR(XrInstance instance, long systemId, int bufferCapacityInput, long bufferCountOutput, long buffer) { + long __functionAddress = instance.getCapabilities().xrGetVulkanDeviceExtensionsKHR; + if (CHECKS) { + check(__functionAddress); + } + return callPJPPI(instance.address(), systemId, bufferCapacityInput, bufferCountOutput, buffer, __functionAddress); + } + /** * Get list of required Vulkan device extensions for an OpenXR instance and system. * @@ -195,26 +195,26 @@ public static int nxrGetVulkanDeviceExtensionsKHR(XrInstance instance, long syst * @param systemId an {@code XrSystemId} handle for the system which will be used to create a session. * @param bufferCountOutput a pointer to the count of characters written (including terminating {@code \0}), or a pointer to the required capacity in the case that {@code bufferCapacityInput} is insufficient. * @param buffer a pointer to an array of characters, but can be {@code NULL} if {@code bufferCapacityInput} is 0. The format of the output is a single space (ASCII {@code 0x20}) delimited string of extension names. - */ - @NativeType("XrResult") - public static int xrGetVulkanDeviceExtensionsKHR(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("uint32_t *") IntBuffer bufferCountOutput, @Nullable @NativeType("char *") ByteBuffer buffer) { - if (CHECKS) { - check(bufferCountOutput, 1); - } - return nxrGetVulkanDeviceExtensionsKHR(instance, systemId, remainingSafe(buffer), memAddress(bufferCountOutput), memAddressSafe(buffer)); - } - - // --- [ xrGetVulkanGraphicsDeviceKHR ] --- - - /** Unsafe version of: {@link #xrGetVulkanGraphicsDeviceKHR GetVulkanGraphicsDeviceKHR} */ - public static int nxrGetVulkanGraphicsDeviceKHR(XrInstance instance, long systemId, VkInstance vkInstance, long vkPhysicalDevice) { - long __functionAddress = instance.getCapabilities().xrGetVulkanGraphicsDeviceKHR; - if (CHECKS) { - check(__functionAddress); - } - return callPJPPI(instance.address(), systemId, vkInstance.address(), vkPhysicalDevice, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrGetVulkanDeviceExtensionsKHR(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("uint32_t *") IntBuffer bufferCountOutput, @Nullable @NativeType("char *") ByteBuffer buffer) { + if (CHECKS) { + check(bufferCountOutput, 1); + } + return nxrGetVulkanDeviceExtensionsKHR(instance, systemId, remainingSafe(buffer), memAddress(bufferCountOutput), memAddressSafe(buffer)); + } + // --- [ xrGetVulkanGraphicsDeviceKHR ] --- + + /** Unsafe version of: {@link #xrGetVulkanGraphicsDeviceKHR GetVulkanGraphicsDeviceKHR} */ + public static int nxrGetVulkanGraphicsDeviceKHR(XrInstance instance, long systemId, VkInstance vkInstance, long vkPhysicalDevice) { + long __functionAddress = instance.getCapabilities().xrGetVulkanGraphicsDeviceKHR; + if (CHECKS) { + check(__functionAddress); + } + return callPJPPI(instance.address(), systemId, vkInstance.address(), vkPhysicalDevice, __functionAddress); + } + /** * Retrieve the Vulkan physical device associated with an OpenXR instance and system. * @@ -264,26 +264,26 @@ public static int nxrGetVulkanGraphicsDeviceKHR(XrInstance instance, long system * @param systemId an {@code XrSystemId} handle for the system which will be used to create a session. * @param vkInstance a valid Vulkan {@code VkInstance}. * @param vkPhysicalDevice a pointer to a {@code VkPhysicalDevice} value to populate. - */ - @NativeType("XrResult") - public static int xrGetVulkanGraphicsDeviceKHR(XrInstance instance, @NativeType("XrSystemId") long systemId, VkInstance vkInstance, @NativeType("VkPhysicalDevice *") PointerBuffer vkPhysicalDevice) { - if (CHECKS) { - check(vkPhysicalDevice, 1); - } - return nxrGetVulkanGraphicsDeviceKHR(instance, systemId, vkInstance, memAddress(vkPhysicalDevice)); - } - - // --- [ xrGetVulkanGraphicsRequirementsKHR ] --- - - /** Unsafe version of: {@link #xrGetVulkanGraphicsRequirementsKHR GetVulkanGraphicsRequirementsKHR} */ - public static int nxrGetVulkanGraphicsRequirementsKHR(XrInstance instance, long systemId, long graphicsRequirements) { - long __functionAddress = instance.getCapabilities().xrGetVulkanGraphicsRequirementsKHR; - if (CHECKS) { - check(__functionAddress); - } - return callPJPI(instance.address(), systemId, graphicsRequirements, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrGetVulkanGraphicsDeviceKHR(XrInstance instance, @NativeType("XrSystemId") long systemId, VkInstance vkInstance, @NativeType("VkPhysicalDevice *") PointerBuffer vkPhysicalDevice) { + if (CHECKS) { + check(vkPhysicalDevice, 1); + } + return nxrGetVulkanGraphicsDeviceKHR(instance, systemId, vkInstance, memAddress(vkPhysicalDevice)); + } + // --- [ xrGetVulkanGraphicsRequirementsKHR ] --- + + /** Unsafe version of: {@link #xrGetVulkanGraphicsRequirementsKHR GetVulkanGraphicsRequirementsKHR} */ + public static int nxrGetVulkanGraphicsRequirementsKHR(XrInstance instance, long systemId, long graphicsRequirements) { + long __functionAddress = instance.getCapabilities().xrGetVulkanGraphicsRequirementsKHR; + if (CHECKS) { + check(__functionAddress); + } + return callPJPI(instance.address(), systemId, graphicsRequirements, __functionAddress); + } + /** * Retrieve the Vulkan version requirements for an instance and system. * @@ -334,10 +334,10 @@ public static int nxrGetVulkanGraphicsRequirementsKHR(XrInstance instance, long * @param instance an {@code XrInstance} handle previously created with {@link XR10#xrCreateInstance CreateInstance}. * @param systemId an {@code XrSystemId} handle for the system which will be used to create a session. * @param graphicsRequirements the {@link XrGraphicsRequirementsVulkanKHR} output structure. - */ - @NativeType("XrResult") - public static int xrGetVulkanGraphicsRequirementsKHR(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrGraphicsRequirementsVulkanKHR *") XrGraphicsRequirementsVulkanKHR graphicsRequirements) { - return nxrGetVulkanGraphicsRequirementsKHR(instance, systemId, graphicsRequirements.address()); - } + */ + @NativeType("XrResult") + public static int xrGetVulkanGraphicsRequirementsKHR(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrGraphicsRequirementsVulkanKHR *") XrGraphicsRequirementsVulkanKHR graphicsRequirements) { + return nxrGetVulkanGraphicsRequirementsKHR(instance, systemId, graphicsRequirements.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVulkanEnable2.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVulkanEnable2.java index c327dc33ff..686d8d8c53 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVulkanEnable2.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVulkanEnable2.java @@ -4,19 +4,19 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import java.nio.*; - + import org.lwjgl.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - -import org.lwjgl.vulkan.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + +import org.lwjgl.vulkan.*; + /** * The XR_KHR_vulkan_enable2 extension. * @@ -32,15 +32,15 @@ * *

    This extension is intended as an alternative to {@link KHRVulkanEnable XR_KHR_vulkan_enable}, and does not depend on it.

    * - */ -public class KHRVulkanEnable2 { - - /** The extension specification version. */ - public static final int XR_KHR_vulkan_enable2_SPEC_VERSION = 2; - - /** The extension name. */ - public static final String XR_KHR_VULKAN_ENABLE2_EXTENSION_NAME = "XR_KHR_vulkan_enable2"; - + */ +public class KHRVulkanEnable2 { + + /** The extension specification version. */ + public static final int XR_KHR_vulkan_enable2_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_KHR_VULKAN_ENABLE2_EXTENSION_NAME = "XR_KHR_vulkan_enable2"; + /** * Extends {@code XrStructureType}. * @@ -54,31 +54,31 @@ public class KHRVulkanEnable2 { *
  • {@link #XR_TYPE_SWAPCHAIN_IMAGE_VULKAN2_KHR TYPE_SWAPCHAIN_IMAGE_VULKAN2_KHR}
  • *
  • {@link #XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN2_KHR TYPE_GRAPHICS_REQUIREMENTS_VULKAN2_KHR}
  • * - */ + */ public static final int - XR_TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR = 1000090000, - XR_TYPE_VULKAN_DEVICE_CREATE_INFO_KHR = 1000090001, - XR_TYPE_VULKAN_GRAPHICS_DEVICE_GET_INFO_KHR = 1000090003, - XR_TYPE_GRAPHICS_BINDING_VULKAN2_KHR = 1000090000, - XR_TYPE_SWAPCHAIN_IMAGE_VULKAN2_KHR = 1000090001, - XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN2_KHR = 1000090002; + XR_TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR = 1000090000, + XR_TYPE_VULKAN_DEVICE_CREATE_INFO_KHR = 1000090001, + XR_TYPE_VULKAN_GRAPHICS_DEVICE_GET_INFO_KHR = 1000090003, + XR_TYPE_GRAPHICS_BINDING_VULKAN2_KHR = 1000090000, + XR_TYPE_SWAPCHAIN_IMAGE_VULKAN2_KHR = 1000090001, + XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN2_KHR = 1000090002; protected KHRVulkanEnable2() { throw new UnsupportedOperationException(); - } - - // --- [ xrCreateVulkanInstanceKHR ] --- - - /** Unsafe version of: {@link #xrCreateVulkanInstanceKHR CreateVulkanInstanceKHR} */ - public static int nxrCreateVulkanInstanceKHR(XrInstance instance, long createInfo, long vulkanInstance, long vulkanResult) { - long __functionAddress = instance.getCapabilities().xrCreateVulkanInstanceKHR; - if (CHECKS) { - check(__functionAddress); - XrVulkanInstanceCreateInfoKHR.validate(createInfo); - } - return callPPPPI(instance.address(), createInfo, vulkanInstance, vulkanResult, __functionAddress); - } + } + // --- [ xrCreateVulkanInstanceKHR ] --- + + /** Unsafe version of: {@link #xrCreateVulkanInstanceKHR CreateVulkanInstanceKHR} */ + public static int nxrCreateVulkanInstanceKHR(XrInstance instance, long createInfo, long vulkanInstance, long vulkanResult) { + long __functionAddress = instance.getCapabilities().xrCreateVulkanInstanceKHR; + if (CHECKS) { + check(__functionAddress); + XrVulkanInstanceCreateInfoKHR.validate(createInfo); + } + return callPPPPI(instance.address(), createInfo, vulkanInstance, vulkanResult, __functionAddress); + } + /** * Create an OpenXR compatible VkInstance. * @@ -129,28 +129,28 @@ public static int nxrCreateVulkanInstanceKHR(XrInstance instance, long createInf * @param createInfo extensible input struct of type {@link XrVulkanInstanceCreateInfoKHR} * @param vulkanInstance points to a {@code VkInstance} handle to populate with the new Vulkan instance. * @param vulkanResult points to a {@code VkResult} to populate with the result of the {@code vkCreateInstance} operation as returned by {@code pfnGetInstanceProcAddr}. - */ - @NativeType("XrResult") - public static int xrCreateVulkanInstanceKHR(XrInstance instance, @NativeType("XrVulkanInstanceCreateInfoKHR const *") XrVulkanInstanceCreateInfoKHR createInfo, @NativeType("VkInstance *") PointerBuffer vulkanInstance, @NativeType("VkResult *") IntBuffer vulkanResult) { - if (CHECKS) { - check(vulkanInstance, 1); - check(vulkanResult, 1); - } - return nxrCreateVulkanInstanceKHR(instance, createInfo.address(), memAddress(vulkanInstance), memAddress(vulkanResult)); - } - - // --- [ xrCreateVulkanDeviceKHR ] --- - - /** Unsafe version of: {@link #xrCreateVulkanDeviceKHR CreateVulkanDeviceKHR} */ - public static int nxrCreateVulkanDeviceKHR(XrInstance instance, long createInfo, long vulkanDevice, long vulkanResult) { - long __functionAddress = instance.getCapabilities().xrCreateVulkanDeviceKHR; - if (CHECKS) { - check(__functionAddress); - XrVulkanDeviceCreateInfoKHR.validate(createInfo); - } - return callPPPPI(instance.address(), createInfo, vulkanDevice, vulkanResult, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrCreateVulkanInstanceKHR(XrInstance instance, @NativeType("XrVulkanInstanceCreateInfoKHR const *") XrVulkanInstanceCreateInfoKHR createInfo, @NativeType("VkInstance *") PointerBuffer vulkanInstance, @NativeType("VkResult *") IntBuffer vulkanResult) { + if (CHECKS) { + check(vulkanInstance, 1); + check(vulkanResult, 1); + } + return nxrCreateVulkanInstanceKHR(instance, createInfo.address(), memAddress(vulkanInstance), memAddress(vulkanResult)); + } + // --- [ xrCreateVulkanDeviceKHR ] --- + + /** Unsafe version of: {@link #xrCreateVulkanDeviceKHR CreateVulkanDeviceKHR} */ + public static int nxrCreateVulkanDeviceKHR(XrInstance instance, long createInfo, long vulkanDevice, long vulkanResult) { + long __functionAddress = instance.getCapabilities().xrCreateVulkanDeviceKHR; + if (CHECKS) { + check(__functionAddress); + XrVulkanDeviceCreateInfoKHR.validate(createInfo); + } + return callPPPPI(instance.address(), createInfo, vulkanDevice, vulkanResult, __functionAddress); + } + /** * Create an OpenXR compatible VkDevice. * @@ -201,28 +201,28 @@ public static int nxrCreateVulkanDeviceKHR(XrInstance instance, long createInfo, * @param createInfo extensible input struct of type {@code XrCreateVulkanDeviceCreateInfoKHR} * @param vulkanDevice points to a {@code VkDevice} handle to populate with the new Vulkan device. * @param vulkanResult points to a {@code VkResult} to populate with the result of the {@code vkCreateDevice} operation as returned by {@code pfnGetInstanceProcAddr}. - */ - @NativeType("XrResult") - public static int xrCreateVulkanDeviceKHR(XrInstance instance, @NativeType("XrVulkanDeviceCreateInfoKHR const *") XrVulkanDeviceCreateInfoKHR createInfo, @NativeType("VkDevice *") PointerBuffer vulkanDevice, @NativeType("VkResult *") IntBuffer vulkanResult) { - if (CHECKS) { - check(vulkanDevice, 1); - check(vulkanResult, 1); - } - return nxrCreateVulkanDeviceKHR(instance, createInfo.address(), memAddress(vulkanDevice), memAddress(vulkanResult)); - } - - // --- [ xrGetVulkanGraphicsDevice2KHR ] --- - - /** Unsafe version of: {@link #xrGetVulkanGraphicsDevice2KHR GetVulkanGraphicsDevice2KHR} */ - public static int nxrGetVulkanGraphicsDevice2KHR(XrInstance instance, long getInfo, long vulkanPhysicalDevice) { - long __functionAddress = instance.getCapabilities().xrGetVulkanGraphicsDevice2KHR; - if (CHECKS) { - check(__functionAddress); - XrVulkanGraphicsDeviceGetInfoKHR.validate(getInfo); - } - return callPPPI(instance.address(), getInfo, vulkanPhysicalDevice, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrCreateVulkanDeviceKHR(XrInstance instance, @NativeType("XrVulkanDeviceCreateInfoKHR const *") XrVulkanDeviceCreateInfoKHR createInfo, @NativeType("VkDevice *") PointerBuffer vulkanDevice, @NativeType("VkResult *") IntBuffer vulkanResult) { + if (CHECKS) { + check(vulkanDevice, 1); + check(vulkanResult, 1); + } + return nxrCreateVulkanDeviceKHR(instance, createInfo.address(), memAddress(vulkanDevice), memAddress(vulkanResult)); + } + // --- [ xrGetVulkanGraphicsDevice2KHR ] --- + + /** Unsafe version of: {@link #xrGetVulkanGraphicsDevice2KHR GetVulkanGraphicsDevice2KHR} */ + public static int nxrGetVulkanGraphicsDevice2KHR(XrInstance instance, long getInfo, long vulkanPhysicalDevice) { + long __functionAddress = instance.getCapabilities().xrGetVulkanGraphicsDevice2KHR; + if (CHECKS) { + check(__functionAddress); + XrVulkanGraphicsDeviceGetInfoKHR.validate(getInfo); + } + return callPPPI(instance.address(), getInfo, vulkanPhysicalDevice, __functionAddress); + } + /** * Retrieve the Vulkan physical device associated with an OpenXR instance and system. * @@ -268,36 +268,36 @@ public static int nxrGetVulkanGraphicsDevice2KHR(XrInstance instance, long getIn * @param instance an {@code XrInstance} handle previously created with {@link XR10#xrCreateInstance CreateInstance}. * @param getInfo extensible input struct of type {@link XrVulkanGraphicsDeviceGetInfoKHR} * @param vulkanPhysicalDevice a pointer to a {@code VkPhysicalDevice} handle to populate. - */ - @NativeType("XrResult") - public static int xrGetVulkanGraphicsDevice2KHR(XrInstance instance, @NativeType("XrVulkanGraphicsDeviceGetInfoKHR const *") XrVulkanGraphicsDeviceGetInfoKHR getInfo, @NativeType("VkPhysicalDevice *") PointerBuffer vulkanPhysicalDevice) { - if (CHECKS) { - check(vulkanPhysicalDevice, 1); - } - return nxrGetVulkanGraphicsDevice2KHR(instance, getInfo.address(), memAddress(vulkanPhysicalDevice)); - } - - // --- [ xrGetVulkanGraphicsRequirements2KHR ] --- - - /** Unsafe version of: {@link #xrGetVulkanGraphicsRequirements2KHR GetVulkanGraphicsRequirements2KHR} */ - public static int nxrGetVulkanGraphicsRequirements2KHR(XrInstance instance, long systemId, long graphicsRequirements) { - long __functionAddress = instance.getCapabilities().xrGetVulkanGraphicsRequirements2KHR; - if (CHECKS) { - check(__functionAddress); - } - return callPJPI(instance.address(), systemId, graphicsRequirements, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrGetVulkanGraphicsDevice2KHR(XrInstance instance, @NativeType("XrVulkanGraphicsDeviceGetInfoKHR const *") XrVulkanGraphicsDeviceGetInfoKHR getInfo, @NativeType("VkPhysicalDevice *") PointerBuffer vulkanPhysicalDevice) { + if (CHECKS) { + check(vulkanPhysicalDevice, 1); + } + return nxrGetVulkanGraphicsDevice2KHR(instance, getInfo.address(), memAddress(vulkanPhysicalDevice)); + } + // --- [ xrGetVulkanGraphicsRequirements2KHR ] --- + + /** Unsafe version of: {@link #xrGetVulkanGraphicsRequirements2KHR GetVulkanGraphicsRequirements2KHR} */ + public static int nxrGetVulkanGraphicsRequirements2KHR(XrInstance instance, long systemId, long graphicsRequirements) { + long __functionAddress = instance.getCapabilities().xrGetVulkanGraphicsRequirements2KHR; + if (CHECKS) { + check(__functionAddress); + } + return callPJPI(instance.address(), systemId, graphicsRequirements, __functionAddress); + } + /** * See {@link KHRVulkanEnable#xrGetVulkanGraphicsRequirementsKHR GetVulkanGraphicsRequirementsKHR}. * * @param instance an {@code XrInstance} handle previously created with {@link XR10#xrCreateInstance CreateInstance}. * @param systemId an {@code XrSystemId} handle for the system which will be used to create a session. * @param graphicsRequirements the {@link XrGraphicsRequirementsVulkanKHR} output structure. - */ - @NativeType("XrResult") - public static int xrGetVulkanGraphicsRequirements2KHR(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrGraphicsRequirementsVulkanKHR *") XrGraphicsRequirementsVulkanKHR graphicsRequirements) { - return nxrGetVulkanGraphicsRequirements2KHR(instance, systemId, graphicsRequirements.address()); - } + */ + @NativeType("XrResult") + public static int xrGetVulkanGraphicsRequirements2KHR(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrGraphicsRequirementsVulkanKHR *") XrGraphicsRequirementsVulkanKHR graphicsRequirements) { + return nxrGetVulkanGraphicsRequirements2KHR(instance, systemId, graphicsRequirements.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVulkanSwapchainFormatList.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVulkanSwapchainFormatList.java index ed952e9f78..d7d2241dff 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVulkanSwapchainFormatList.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRVulkanSwapchainFormatList.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_KHR_vulkan_swapchain_format_list extension. * @@ -13,18 +13,18 @@ *

    Applications using this extension to specify more than one swapchain format must create OpenXR swapchains with the {@link XR10#XR_SWAPCHAIN_USAGE_MUTABLE_FORMAT_BIT SWAPCHAIN_USAGE_MUTABLE_FORMAT_BIT} bit set.

    * *

    Runtimes implementing this extension must support the {@link KHRVulkanEnable XR_KHR_vulkan_enable} or the {@link KHRVulkanEnable2 XR_KHR_vulkan_enable2} extension. When {@link KHRVulkanEnable XR_KHR_vulkan_enable} is used, the runtime must add {@code VK_KHR_image_format_list} to the list of extensions enabled in {@link KHRVulkanEnable2#xrCreateVulkanDeviceKHR CreateVulkanDeviceKHR}.

    - */ -public final class KHRVulkanSwapchainFormatList { - - /** The extension specification version. */ - public static final int XR_KHR_vulkan_swapchain_format_list_SPEC_VERSION = 4; - - /** The extension name. */ - public static final String XR_KHR_VULKAN_SWAPCHAIN_FORMAT_LIST_EXTENSION_NAME = "XR_KHR_vulkan_swapchain_format_list"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR = 1000014000; + */ +public final class KHRVulkanSwapchainFormatList { + + /** The extension specification version. */ + public static final int XR_KHR_vulkan_swapchain_format_list_SPEC_VERSION = 4; + + /** The extension name. */ + public static final String XR_KHR_VULKAN_SWAPCHAIN_FORMAT_LIST_EXTENSION_NAME = "XR_KHR_vulkan_swapchain_format_list"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR = 1000014000; - private KHRVulkanSwapchainFormatList() {} + private KHRVulkanSwapchainFormatList() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRWin32ConvertPerformanceCounterTime.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRWin32ConvertPerformanceCounterTime.java index 1fc307caf8..3c16e09d79 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRWin32ConvertPerformanceCounterTime.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/KHRWin32ConvertPerformanceCounterTime.java @@ -4,45 +4,45 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import java.nio.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - -import org.lwjgl.system.windows.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + +import org.lwjgl.system.windows.*; + /** * The XR_KHR_win32_convert_performance_counter_time extension. * *

    This extension provides two functions for converting between the Windows performance counter (QPC) time stamps and {@code XrTime}. The {@link #xrConvertWin32PerformanceCounterToTimeKHR ConvertWin32PerformanceCounterToTimeKHR} function converts from Windows performance counter time stamps to {@code XrTime}, while the {@link #xrConvertTimeToWin32PerformanceCounterKHR ConvertTimeToWin32PerformanceCounterKHR} function converts {@code XrTime} to Windows performance counter time stamps. The primary use case for this functionality is to be able to synchronize events between the local system and the OpenXR system.

    - */ -public class KHRWin32ConvertPerformanceCounterTime { - - /** The extension specification version. */ - public static final int XR_KHR_win32_convert_performance_counter_time_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_KHR_WIN32_CONVERT_PERFORMANCE_COUNTER_TIME_EXTENSION_NAME = "XR_KHR_win32_convert_performance_counter_time"; + */ +public class KHRWin32ConvertPerformanceCounterTime { + + /** The extension specification version. */ + public static final int XR_KHR_win32_convert_performance_counter_time_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_KHR_WIN32_CONVERT_PERFORMANCE_COUNTER_TIME_EXTENSION_NAME = "XR_KHR_win32_convert_performance_counter_time"; protected KHRWin32ConvertPerformanceCounterTime() { throw new UnsupportedOperationException(); - } - - // --- [ xrConvertWin32PerformanceCounterToTimeKHR ] --- - - /** Unsafe version of: {@link #xrConvertWin32PerformanceCounterToTimeKHR ConvertWin32PerformanceCounterToTimeKHR} */ - public static int nxrConvertWin32PerformanceCounterToTimeKHR(XrInstance instance, long performanceCounter, long time) { - long __functionAddress = instance.getCapabilities().xrConvertWin32PerformanceCounterToTimeKHR; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(instance.address(), performanceCounter, time, __functionAddress); - } + } + // --- [ xrConvertWin32PerformanceCounterToTimeKHR ] --- + + /** Unsafe version of: {@link #xrConvertWin32PerformanceCounterToTimeKHR ConvertWin32PerformanceCounterToTimeKHR} */ + public static int nxrConvertWin32PerformanceCounterToTimeKHR(XrInstance instance, long performanceCounter, long time) { + long __functionAddress = instance.getCapabilities().xrConvertWin32PerformanceCounterToTimeKHR; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(instance.address(), performanceCounter, time, __functionAddress); + } + /** * Convert Win32 {@code QueryPerformanceCounter} time to XrTime. * @@ -92,26 +92,26 @@ public static int nxrConvertWin32PerformanceCounterToTimeKHR(XrInstance instance * @param instance an {@code XrInstance} handle previously created with {@link XR10#xrCreateInstance CreateInstance}. * @param performanceCounter a time returned by {@code QueryPerformanceCounter}. * @param time the resulting {@code XrTime} that is equivalent to the {@code performanceCounter}. - */ - @NativeType("XrResult") - public static int xrConvertWin32PerformanceCounterToTimeKHR(XrInstance instance, @NativeType("LARGE_INTEGER const *") LARGE_INTEGER performanceCounter, @NativeType("XrTime *") LongBuffer time) { - if (CHECKS) { - check(time, 1); - } - return nxrConvertWin32PerformanceCounterToTimeKHR(instance, performanceCounter.address(), memAddress(time)); - } - - // --- [ xrConvertTimeToWin32PerformanceCounterKHR ] --- - - /** Unsafe version of: {@link #xrConvertTimeToWin32PerformanceCounterKHR ConvertTimeToWin32PerformanceCounterKHR} */ - public static int nxrConvertTimeToWin32PerformanceCounterKHR(XrInstance instance, long time, long performanceCounter) { - long __functionAddress = instance.getCapabilities().xrConvertTimeToWin32PerformanceCounterKHR; - if (CHECKS) { - check(__functionAddress); - } - return callPJPI(instance.address(), time, performanceCounter, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrConvertWin32PerformanceCounterToTimeKHR(XrInstance instance, @NativeType("LARGE_INTEGER const *") LARGE_INTEGER performanceCounter, @NativeType("XrTime *") LongBuffer time) { + if (CHECKS) { + check(time, 1); + } + return nxrConvertWin32PerformanceCounterToTimeKHR(instance, performanceCounter.address(), memAddress(time)); + } + // --- [ xrConvertTimeToWin32PerformanceCounterKHR ] --- + + /** Unsafe version of: {@link #xrConvertTimeToWin32PerformanceCounterKHR ConvertTimeToWin32PerformanceCounterKHR} */ + public static int nxrConvertTimeToWin32PerformanceCounterKHR(XrInstance instance, long time, long performanceCounter) { + long __functionAddress = instance.getCapabilities().xrConvertTimeToWin32PerformanceCounterKHR; + if (CHECKS) { + check(__functionAddress); + } + return callPJPI(instance.address(), time, performanceCounter, __functionAddress); + } + /** * Convert XrTime to Win32 {@code QueryPerformanceCounter} time. * @@ -160,10 +160,10 @@ public static int nxrConvertTimeToWin32PerformanceCounterKHR(XrInstance instance * @param instance an {@code XrInstance} handle previously created with {@link XR10#xrCreateInstance CreateInstance}. * @param time an {@code XrTime}. * @param performanceCounter the resulting Windows performance counter time stamp that is equivalent to the {@code time}. - */ - @NativeType("XrResult") - public static int xrConvertTimeToWin32PerformanceCounterKHR(XrInstance instance, @NativeType("XrTime") long time, @NativeType("LARGE_INTEGER *") LARGE_INTEGER performanceCounter) { - return nxrConvertTimeToWin32PerformanceCounterKHR(instance, time, performanceCounter.address()); - } + */ + @NativeType("XrResult") + public static int xrConvertTimeToWin32PerformanceCounterKHR(XrInstance instance, @NativeType("XrTime") long time, @NativeType("LARGE_INTEGER *") LARGE_INTEGER performanceCounter) { + return nxrConvertTimeToWin32PerformanceCounterKHR(instance, time, performanceCounter.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAFoveationEyeTracked.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAFoveationEyeTracked.java index 4ebc199033..5143e68766 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAFoveationEyeTracked.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAFoveationEyeTracked.java @@ -4,12 +4,12 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; + /** * The XR_META_foveation_eye_tracked extension. * @@ -24,19 +24,19 @@ *
  • An application to request a foveation pattern update from the runtime. As a consequence, runtime knows how to adjust the eye tracking camera exposure start time in order to optimize the total pipeline latency.
  • * * - *

    In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    - */ -public class METAFoveationEyeTracked { - - /** The extension specification version. */ - public static final int XR_META_foveation_eye_tracked_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_META_FOVEATION_EYE_TRACKED_EXTENSION_NAME = "XR_META_foveation_eye_tracked"; - - /** XR_FOVEATION_CENTER_SIZE_META */ - public static final int XR_FOVEATION_CENTER_SIZE_META = 2; - + *

    In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    + */ +public class METAFoveationEyeTracked { + + /** The extension specification version. */ + public static final int XR_META_foveation_eye_tracked_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_META_FOVEATION_EYE_TRACKED_EXTENSION_NAME = "XR_META_foveation_eye_tracked"; + + /** XR_FOVEATION_CENTER_SIZE_META */ + public static final int XR_FOVEATION_CENTER_SIZE_META = 2; + /** * Extends {@code XrStructureType}. * @@ -47,12 +47,12 @@ public class METAFoveationEyeTracked { *
  • {@link #XR_TYPE_FOVEATION_EYE_TRACKED_STATE_META TYPE_FOVEATION_EYE_TRACKED_STATE_META}
  • *
  • {@link #XR_TYPE_SYSTEM_FOVEATION_EYE_TRACKED_PROPERTIES_META TYPE_SYSTEM_FOVEATION_EYE_TRACKED_PROPERTIES_META}
  • * - */ + */ public static final int - XR_TYPE_FOVEATION_EYE_TRACKED_PROFILE_CREATE_INFO_META = 1000200000, - XR_TYPE_FOVEATION_EYE_TRACKED_STATE_META = 1000200001, - XR_TYPE_SYSTEM_FOVEATION_EYE_TRACKED_PROPERTIES_META = 1000200002; - + XR_TYPE_FOVEATION_EYE_TRACKED_PROFILE_CREATE_INFO_META = 1000200000, + XR_TYPE_FOVEATION_EYE_TRACKED_STATE_META = 1000200001, + XR_TYPE_SYSTEM_FOVEATION_EYE_TRACKED_PROPERTIES_META = 1000200002; + /** * XrFoveationEyeTrackedStateFlagBitsMETA - XrFoveationEyeTrackedStateFlagBitsMETA * @@ -61,24 +61,24 @@ public class METAFoveationEyeTracked { *
      *
    • {@link #XR_FOVEATION_EYE_TRACKED_STATE_VALID_BIT_META FOVEATION_EYE_TRACKED_STATE_VALID_BIT_META} — Indicates whether or not foveation data is valid. This can happen if the eye tracker is obscured, the camera has dirt, or eye lid is closed, etc.
    • *
    - */ - public static final int XR_FOVEATION_EYE_TRACKED_STATE_VALID_BIT_META = 0x1; + */ + public static final int XR_FOVEATION_EYE_TRACKED_STATE_VALID_BIT_META = 0x1; protected METAFoveationEyeTracked() { throw new UnsupportedOperationException(); - } - - // --- [ xrGetFoveationEyeTrackedStateMETA ] --- - - /** Unsafe version of: {@link #xrGetFoveationEyeTrackedStateMETA GetFoveationEyeTrackedStateMETA} */ - public static int nxrGetFoveationEyeTrackedStateMETA(XrSession session, long foveationState) { - long __functionAddress = session.getCapabilities().xrGetFoveationEyeTrackedStateMETA; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(session.address(), foveationState, __functionAddress); - } + } + // --- [ xrGetFoveationEyeTrackedStateMETA ] --- + + /** Unsafe version of: {@link #xrGetFoveationEyeTrackedStateMETA GetFoveationEyeTrackedStateMETA} */ + public static int nxrGetFoveationEyeTrackedStateMETA(XrSession session, long foveationState) { + long __functionAddress = session.getCapabilities().xrGetFoveationEyeTrackedStateMETA; + if (CHECKS) { + check(__functionAddress); + } + return callPPI(session.address(), foveationState, __functionAddress); + } + /** * Get the current eye tracked foveation state. * @@ -131,10 +131,10 @@ public static int nxrGetFoveationEyeTrackedStateMETA(XrSession session, long fov * * @param session the {@code XrSession} in which the eye tracked foveation profile is applied. * @param foveationState a pointer to an {@link XrFoveationEyeTrackedStateMETA} structure returning the current eye tracked foveation state. - */ - @NativeType("XrResult") - public static int xrGetFoveationEyeTrackedStateMETA(XrSession session, @NativeType("XrFoveationEyeTrackedStateMETA *") XrFoveationEyeTrackedStateMETA foveationState) { - return nxrGetFoveationEyeTrackedStateMETA(session, foveationState.address()); - } + */ + @NativeType("XrResult") + public static int xrGetFoveationEyeTrackedStateMETA(XrSession session, @NativeType("XrFoveationEyeTrackedStateMETA *") XrFoveationEyeTrackedStateMETA foveationState) { + return nxrGetFoveationEyeTrackedStateMETA(session, foveationState.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAHeadsetId.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAHeadsetId.java index f088fddcf1..f72ef98527 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAHeadsetId.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAHeadsetId.java @@ -4,19 +4,19 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; + +/** The META_headset_id extension. */ +public final class METAHeadsetId { + + /** The extension specification version. */ + public static final int XR_META_headset_id_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_META_HEADSET_ID_EXTENSION_NAME = "XR_META_headset_id"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_SYSTEM_HEADSET_ID_PROPERTIES_META = 1000245000; -/** The META_headset_id extension. */ -public final class METAHeadsetId { - - /** The extension specification version. */ - public static final int XR_META_headset_id_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_META_HEADSET_ID_EXTENSION_NAME = "XR_META_headset_id"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_SYSTEM_HEADSET_ID_PROPERTIES_META = 1000245000; - - private METAHeadsetId() {} + private METAHeadsetId() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METALocalDimming.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METALocalDimming.java index eb18d1d721..5e15eef181 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METALocalDimming.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METALocalDimming.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_META_local_dimming extension. * @@ -16,18 +16,18 @@ *
  • Using XrFrameEndInfoLocalDimmingFB is considered as a hint and will not trigger {@link XR10#xrEndFrame EndFrame} errors whether or not the requested dimming mode is fulfilled by the runtime.
  • *
  • The runtime will have full control of the local dimming mode and may disregard app requests. For example, the runtime may allow only one primary client to control the local dimming mode.
  • * - */ -public final class METALocalDimming { - - /** The extension specification version. */ - public static final int XR_META_local_dimming_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_META_LOCAL_DIMMING_EXTENSION_NAME = "XR_META_local_dimming"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_LOCAL_DIMMING_FRAME_END_INFO_META = 1000216000; - + */ +public final class METALocalDimming { + + /** The extension specification version. */ + public static final int XR_META_local_dimming_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_META_LOCAL_DIMMING_EXTENSION_NAME = "XR_META_local_dimming"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_LOCAL_DIMMING_FRAME_END_INFO_META = 1000216000; + /** * XrLocalDimmingModeMETA - Local dimming modes * @@ -41,11 +41,11 @@ public final class METALocalDimming { *
    See Also
    * *

    {@link XrLocalDimmingFrameEndInfoMETA}

    - */ + */ public static final int - XR_LOCAL_DIMMING_MODE_OFF_META = 0, - XR_LOCAL_DIMMING_MODE_ON_META = 1; + XR_LOCAL_DIMMING_MODE_OFF_META = 0, + XR_LOCAL_DIMMING_MODE_ON_META = 1; - private METALocalDimming() {} + private METALocalDimming() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAPerformanceMetrics.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAPerformanceMetrics.java index 491b352d53..5378f6993e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAPerformanceMetrics.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAPerformanceMetrics.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_META_performance_metrics extension. * @@ -40,16 +40,16 @@ * *

    Note: the measurement intervals of individual performance metrics counters are defined by the OpenXR runtime. The application must not make assumptions or change its behavior at runtime by measuring them.

    * - *

    In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    - */ -public class METAPerformanceMetrics { - - /** The extension specification version. */ - public static final int XR_META_performance_metrics_SPEC_VERSION = 2; - - /** The extension name. */ - public static final String XR_META_PERFORMANCE_METRICS_EXTENSION_NAME = "XR_META_performance_metrics"; - + *

    In order to enable the functionality of this extension, the application must pass the name of the extension into {@link XR10#xrCreateInstance CreateInstance} via the {@link XrInstanceCreateInfo}{@code ::enabledExtensionNames} parameter as indicated in the extensions section.

    + */ +public class METAPerformanceMetrics { + + /** The extension specification version. */ + public static final int XR_META_performance_metrics_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_META_PERFORMANCE_METRICS_EXTENSION_NAME = "XR_META_performance_metrics"; + /** * Extends {@code XrStructureType}. * @@ -59,11 +59,11 @@ public class METAPerformanceMetrics { *
  • {@link #XR_TYPE_PERFORMANCE_METRICS_STATE_META TYPE_PERFORMANCE_METRICS_STATE_META}
  • *
  • {@link #XR_TYPE_PERFORMANCE_METRICS_COUNTER_META TYPE_PERFORMANCE_METRICS_COUNTER_META}
  • * - */ + */ public static final int - XR_TYPE_PERFORMANCE_METRICS_STATE_META = 1000232001, - XR_TYPE_PERFORMANCE_METRICS_COUNTER_META = 1000232002; - + XR_TYPE_PERFORMANCE_METRICS_STATE_META = 1000232001, + XR_TYPE_PERFORMANCE_METRICS_COUNTER_META = 1000232002; + /** * XrPerformanceMetricsCounterFlagBitsMETA - XrPerformanceMetricsCounterFlagBitsMETA * @@ -74,12 +74,12 @@ public class METAPerformanceMetrics { *
  • {@link #XR_PERFORMANCE_METRICS_COUNTER_UINT_VALUE_VALID_BIT_META PERFORMANCE_METRICS_COUNTER_UINT_VALUE_VALID_BIT_META} — Indicates the uintValue in XrPerformanceMetricsCounterMETA is valid.
  • *
  • {@link #XR_PERFORMANCE_METRICS_COUNTER_FLOAT_VALUE_VALID_BIT_META PERFORMANCE_METRICS_COUNTER_FLOAT_VALUE_VALID_BIT_META} — Indicates the floatValue in XrPerformanceMetricsCounterMETA is valid.
  • * - */ + */ public static final int - XR_PERFORMANCE_METRICS_COUNTER_ANY_VALUE_VALID_BIT_META = 0x1, - XR_PERFORMANCE_METRICS_COUNTER_UINT_VALUE_VALID_BIT_META = 0x2, - XR_PERFORMANCE_METRICS_COUNTER_FLOAT_VALUE_VALID_BIT_META = 0x4; - + XR_PERFORMANCE_METRICS_COUNTER_ANY_VALUE_VALID_BIT_META = 0x1, + XR_PERFORMANCE_METRICS_COUNTER_UINT_VALUE_VALID_BIT_META = 0x2, + XR_PERFORMANCE_METRICS_COUNTER_FLOAT_VALUE_VALID_BIT_META = 0x4; + /** * XrPerformanceMetricsCounterUnitMETA - XrPerformanceMetricsCounterUnitMETA * @@ -99,33 +99,33 @@ public class METAPerformanceMetrics { *
    See Also
    * *

    {@link XrPerformanceMetricsCounterMETA}

    - */ + */ public static final int - XR_PERFORMANCE_METRICS_COUNTER_UNIT_GENERIC_META = 0, - XR_PERFORMANCE_METRICS_COUNTER_UNIT_PERCENTAGE_META = 1, - XR_PERFORMANCE_METRICS_COUNTER_UNIT_MILLISECONDS_META = 2, - XR_PERFORMANCE_METRICS_COUNTER_UNIT_BYTES_META = 3, - XR_PERFORMANCE_METRICS_COUNTER_UNIT_HERTZ_META = 4; + XR_PERFORMANCE_METRICS_COUNTER_UNIT_GENERIC_META = 0, + XR_PERFORMANCE_METRICS_COUNTER_UNIT_PERCENTAGE_META = 1, + XR_PERFORMANCE_METRICS_COUNTER_UNIT_MILLISECONDS_META = 2, + XR_PERFORMANCE_METRICS_COUNTER_UNIT_BYTES_META = 3, + XR_PERFORMANCE_METRICS_COUNTER_UNIT_HERTZ_META = 4; protected METAPerformanceMetrics() { throw new UnsupportedOperationException(); - } - - // --- [ xrEnumeratePerformanceMetricsCounterPathsMETA ] --- + } + // --- [ xrEnumeratePerformanceMetricsCounterPathsMETA ] --- + /** * Unsafe version of: {@link #xrEnumeratePerformanceMetricsCounterPathsMETA EnumeratePerformanceMetricsCounterPathsMETA} * * @param counterPathCapacityInput the capacity of the {@code counterPaths} array, or 0 to indicate a request to retrieve the required capacity. - */ - public static int nxrEnumeratePerformanceMetricsCounterPathsMETA(XrInstance instance, int counterPathCapacityInput, long counterPathCountOutput, long counterPaths) { - long __functionAddress = instance.getCapabilities().xrEnumeratePerformanceMetricsCounterPathsMETA; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(instance.address(), counterPathCapacityInput, counterPathCountOutput, counterPaths, __functionAddress); - } - + */ + public static int nxrEnumeratePerformanceMetricsCounterPathsMETA(XrInstance instance, int counterPathCapacityInput, long counterPathCountOutput, long counterPaths) { + long __functionAddress = instance.getCapabilities().xrEnumeratePerformanceMetricsCounterPathsMETA; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(instance.address(), counterPathCapacityInput, counterPathCountOutput, counterPaths, __functionAddress); + } + /** * Enumerate all performance metrics counter paths that supported by the runtime. * @@ -170,26 +170,26 @@ public static int nxrEnumeratePerformanceMetricsCounterPathsMETA(XrInstance inst * @param instance an {@code XrInstance} handle previously created with {@link XR10#xrCreateInstance CreateInstance}. * @param counterPathCountOutput filled in by the runtime with the count of {@code counterPaths} written or the required capacity in the case that {@code counterPathCapacityInput} is insufficient. * @param counterPaths an array of {@code XrPath} filled in by the runtime which contains all the available performance metrics counters, but can be {@code NULL} if {@code counterPathCapacityInput} is 0. - */ - @NativeType("XrResult") - public static int xrEnumeratePerformanceMetricsCounterPathsMETA(XrInstance instance, @NativeType("uint32_t *") IntBuffer counterPathCountOutput, @Nullable @NativeType("XrPath *") LongBuffer counterPaths) { - if (CHECKS) { - check(counterPathCountOutput, 1); - } - return nxrEnumeratePerformanceMetricsCounterPathsMETA(instance, remainingSafe(counterPaths), memAddress(counterPathCountOutput), memAddressSafe(counterPaths)); - } - - // --- [ xrSetPerformanceMetricsStateMETA ] --- - - /** Unsafe version of: {@link #xrSetPerformanceMetricsStateMETA SetPerformanceMetricsStateMETA} */ - public static int nxrSetPerformanceMetricsStateMETA(XrSession session, long state) { - long __functionAddress = session.getCapabilities().xrSetPerformanceMetricsStateMETA; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(session.address(), state, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrEnumeratePerformanceMetricsCounterPathsMETA(XrInstance instance, @NativeType("uint32_t *") IntBuffer counterPathCountOutput, @Nullable @NativeType("XrPath *") LongBuffer counterPaths) { + if (CHECKS) { + check(counterPathCountOutput, 1); + } + return nxrEnumeratePerformanceMetricsCounterPathsMETA(instance, remainingSafe(counterPaths), memAddress(counterPathCountOutput), memAddressSafe(counterPaths)); + } + // --- [ xrSetPerformanceMetricsStateMETA ] --- + + /** Unsafe version of: {@link #xrSetPerformanceMetricsStateMETA SetPerformanceMetricsStateMETA} */ + public static int nxrSetPerformanceMetricsStateMETA(XrSession session, long state) { + long __functionAddress = session.getCapabilities().xrSetPerformanceMetricsStateMETA; + if (CHECKS) { + check(__functionAddress); + } + return callPPI(session.address(), state, __functionAddress); + } + /** * Enable/disable performance metrics. * @@ -239,23 +239,23 @@ public static int nxrSetPerformanceMetricsStateMETA(XrSession session, long stat * * @param session an {@code XrSession} handle previously created with {@link XR10#xrCreateSession CreateSession}. * @param state a pointer to an {@link XrPerformanceMetricsStateMETA} structure. - */ - @NativeType("XrResult") - public static int xrSetPerformanceMetricsStateMETA(XrSession session, @NativeType("XrPerformanceMetricsStateMETA const *") XrPerformanceMetricsStateMETA state) { - return nxrSetPerformanceMetricsStateMETA(session, state.address()); - } - - // --- [ xrGetPerformanceMetricsStateMETA ] --- - - /** Unsafe version of: {@link #xrGetPerformanceMetricsStateMETA GetPerformanceMetricsStateMETA} */ - public static int nxrGetPerformanceMetricsStateMETA(XrSession session, long state) { - long __functionAddress = session.getCapabilities().xrGetPerformanceMetricsStateMETA; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(session.address(), state, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrSetPerformanceMetricsStateMETA(XrSession session, @NativeType("XrPerformanceMetricsStateMETA const *") XrPerformanceMetricsStateMETA state) { + return nxrSetPerformanceMetricsStateMETA(session, state.address()); + } + // --- [ xrGetPerformanceMetricsStateMETA ] --- + + /** Unsafe version of: {@link #xrGetPerformanceMetricsStateMETA GetPerformanceMetricsStateMETA} */ + public static int nxrGetPerformanceMetricsStateMETA(XrSession session, long state) { + long __functionAddress = session.getCapabilities().xrGetPerformanceMetricsStateMETA; + if (CHECKS) { + check(__functionAddress); + } + return callPPI(session.address(), state, __functionAddress); + } + /** * Get current state of performance metrics. * @@ -304,23 +304,23 @@ public static int nxrGetPerformanceMetricsStateMETA(XrSession session, long stat * * @param session an {@code XrSession} handle previously created with {@link XR10#xrCreateSession CreateSession}. * @param state a pointer to an {@link XrPerformanceMetricsStateMETA} structure. - */ - @NativeType("XrResult") - public static int xrGetPerformanceMetricsStateMETA(XrSession session, @NativeType("XrPerformanceMetricsStateMETA *") XrPerformanceMetricsStateMETA state) { - return nxrGetPerformanceMetricsStateMETA(session, state.address()); - } - - // --- [ xrQueryPerformanceMetricsCounterMETA ] --- - - /** Unsafe version of: {@link #xrQueryPerformanceMetricsCounterMETA QueryPerformanceMetricsCounterMETA} */ - public static int nxrQueryPerformanceMetricsCounterMETA(XrSession session, long counterPath, long counter) { - long __functionAddress = session.getCapabilities().xrQueryPerformanceMetricsCounterMETA; - if (CHECKS) { - check(__functionAddress); - } - return callPJPI(session.address(), counterPath, counter, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrGetPerformanceMetricsStateMETA(XrSession session, @NativeType("XrPerformanceMetricsStateMETA *") XrPerformanceMetricsStateMETA state) { + return nxrGetPerformanceMetricsStateMETA(session, state.address()); + } + // --- [ xrQueryPerformanceMetricsCounterMETA ] --- + + /** Unsafe version of: {@link #xrQueryPerformanceMetricsCounterMETA QueryPerformanceMetricsCounterMETA} */ + public static int nxrQueryPerformanceMetricsCounterMETA(XrSession session, long counterPath, long counter) { + long __functionAddress = session.getCapabilities().xrQueryPerformanceMetricsCounterMETA; + if (CHECKS) { + check(__functionAddress); + } + return callPJPI(session.address(), counterPath, counter, __functionAddress); + } + /** * Query performance metrics counter. * @@ -378,10 +378,10 @@ public static int nxrQueryPerformanceMetricsCounterMETA(XrSession session, long * @param session an {@code XrSession} handle previously created with {@link XR10#xrCreateSession CreateSession}. * @param counterPath a valid performance metrics counter path. * @param counter a pointer to an {@link XrPerformanceMetricsCounterMETA} structure. - */ - @NativeType("XrResult") - public static int xrQueryPerformanceMetricsCounterMETA(XrSession session, @NativeType("XrPath") long counterPath, @NativeType("XrPerformanceMetricsCounterMETA *") XrPerformanceMetricsCounterMETA counter) { - return nxrQueryPerformanceMetricsCounterMETA(session, counterPath, counter.address()); - } + */ + @NativeType("XrResult") + public static int xrQueryPerformanceMetricsCounterMETA(XrSession session, @NativeType("XrPath") long counterPath, @NativeType("XrPerformanceMetricsCounterMETA *") XrPerformanceMetricsCounterMETA counter) { + return nxrQueryPerformanceMetricsCounterMETA(session, counterPath, counter.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAVulkanSwapchainCreateInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAVulkanSwapchainCreateInfo.java index c902749a30..ed357df602 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAVulkanSwapchainCreateInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/METAVulkanSwapchainCreateInfo.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_META_vulkan_swapchain_create_info extension. * @@ -15,18 +15,18 @@ *

    The application must enable the corresponding Vulkan extensions before requesting additional Vulkan flags. For example, {@code VK_EXT_fragment_density_map} device extension must be enabled if an application requests {@code VK_IMAGE_CREATE_SUBSAMPLED_BIT_EXT} bit. Otherwise, it may cause undefined behavior, including an application crash.

    * *

    Runtimes that implement this extension must support the {@link KHRVulkanEnable XR_KHR_vulkan_enable} or the {@link KHRVulkanEnable2 XR_KHR_vulkan_enable2} extension.

    - */ -public final class METAVulkanSwapchainCreateInfo { - - /** The extension specification version. */ - public static final int XR_META_vulkan_swapchain_create_info_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_META_VULKAN_SWAPCHAIN_CREATE_INFO_EXTENSION_NAME = "XR_META_vulkan_swapchain_create_info"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_VULKAN_SWAPCHAIN_CREATE_INFO_META = 1000227000; + */ +public final class METAVulkanSwapchainCreateInfo { + + /** The extension specification version. */ + public static final int XR_META_vulkan_swapchain_create_info_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_META_VULKAN_SWAPCHAIN_CREATE_INFO_EXTENSION_NAME = "XR_META_vulkan_swapchain_create_info"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_VULKAN_SWAPCHAIN_CREATE_INFO_META = 1000227000; - private METAVulkanSwapchainCreateInfo() {} + private METAVulkanSwapchainCreateInfo() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLCompat.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLCompat.java index 36711bba47..665eee11c8 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLCompat.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLCompat.java @@ -4,46 +4,46 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import org.lwjgl.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_ML_compat extension. * *

    This extension provides functionality to facilitate transitioning from Magic Leap SDK to OpenXR SDK, most notably interoperability between Coordinate Frame UUIDs and {@code XrSpace}.

    - */ -public class MLCompat { - - /** The extension specification version. */ - public static final int XR_ML_compat_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_ML_COMPAT_EXTENSION_NAME = "XR_ML_compat"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_COORDINATE_SPACE_CREATE_INFO_ML = 1000137000; + */ +public class MLCompat { + + /** The extension specification version. */ + public static final int XR_ML_compat_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_ML_COMPAT_EXTENSION_NAME = "XR_ML_compat"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_COORDINATE_SPACE_CREATE_INFO_ML = 1000137000; protected MLCompat() { throw new UnsupportedOperationException(); - } - - // --- [ xrCreateSpaceFromCoordinateFrameUIDML ] --- - - /** Unsafe version of: {@link #xrCreateSpaceFromCoordinateFrameUIDML CreateSpaceFromCoordinateFrameUIDML} */ - public static int nxrCreateSpaceFromCoordinateFrameUIDML(XrSession session, long createInfo, long space) { - long __functionAddress = session.getCapabilities().xrCreateSpaceFromCoordinateFrameUIDML; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), createInfo, space, __functionAddress); - } + } + // --- [ xrCreateSpaceFromCoordinateFrameUIDML ] --- + + /** Unsafe version of: {@link #xrCreateSpaceFromCoordinateFrameUIDML CreateSpaceFromCoordinateFrameUIDML} */ + public static int nxrCreateSpaceFromCoordinateFrameUIDML(XrSession session, long createInfo, long space) { + long __functionAddress = session.getCapabilities().xrCreateSpaceFromCoordinateFrameUIDML; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(session.address(), createInfo, space, __functionAddress); + } + /** * Creates a space based on a cfuid. * @@ -101,13 +101,13 @@ public static int nxrCreateSpaceFromCoordinateFrameUIDML(XrSession session, long * @param session a handle to an {@code XrSession} previously created with {@link XR10#xrCreateSession CreateSession}. * @param createInfo the {@link XrCoordinateSpaceCreateInfoML} used to specify the space. * @param space the returned space handle. - */ - @NativeType("XrResult") - public static int xrCreateSpaceFromCoordinateFrameUIDML(XrSession session, @NativeType("XrCoordinateSpaceCreateInfoML const *") XrCoordinateSpaceCreateInfoML createInfo, @NativeType("XrSpace *") PointerBuffer space) { - if (CHECKS) { - check(space, 1); - } - return nxrCreateSpaceFromCoordinateFrameUIDML(session, createInfo.address(), memAddress(space)); - } + */ + @NativeType("XrResult") + public static int xrCreateSpaceFromCoordinateFrameUIDML(XrSession session, @NativeType("XrCoordinateSpaceCreateInfoML const *") XrCoordinateSpaceCreateInfoML createInfo, @NativeType("XrSpace *") PointerBuffer space) { + if (CHECKS) { + check(space, 1); + } + return nxrCreateSpaceFromCoordinateFrameUIDML(session, createInfo.address(), memAddress(space)); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLCoordinateFrameUID.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLCoordinateFrameUID.java index c29fd3064f..0317c7e37c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLCoordinateFrameUID.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLCoordinateFrameUID.java @@ -4,16 +4,16 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - + import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; + /** *

    Layout

    * @@ -21,8 +21,8 @@ * struct MLCoordinateFrameUID { * uint64_t data[2]; * } - */ -public class MLCoordinateFrameUID extends Struct { + */ +public class MLCoordinateFrameUID extends Struct { /** The struct size in bytes. */ public static final int SIZEOF; @@ -32,18 +32,18 @@ public class MLCoordinateFrameUID extends Struct { /** The struct member offsets. */ public static final int - DATA; + DATA; static { - Layout layout = __struct( + Layout layout = __struct( __array(8, 2) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - DATA = layout.offsetof(0); - } + DATA = layout.offsetof(0); + } protected MLCoordinateFrameUID(long address, @Nullable ByteBuffer container) { super(address, container); @@ -66,13 +66,13 @@ public MLCoordinateFrameUID(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** @return a {@link LongBuffer} view of the {@code data} field. */ - @NativeType("uint64_t[2]") - public LongBuffer data() { return ndata(address()); } - /** @return the value at the specified index of the {@code data} field. */ - @NativeType("uint64_t") - public long data(int index) { return ndata(address(), index); } + + /** @return a {@link LongBuffer} view of the {@code data} field. */ + @NativeType("uint64_t[2]") + public LongBuffer data() { return ndata(address()); } + /** @return the value at the specified index of the {@code data} field. */ + @NativeType("uint64_t") + public long data(int index) { return ndata(address(), index); } // ----------------------------------- @@ -104,15 +104,15 @@ public static MLCoordinateFrameUID.Buffer createSafe(long address, int capacity) } // ----------------------------------- - - /** Unsafe version of {@link #data}. */ - public static LongBuffer ndata(long struct) { return memLongBuffer(struct + MLCoordinateFrameUID.DATA, 2); } - /** Unsafe version of {@link #data(int) data}. */ - public static long ndata(long struct, int index) { + + /** Unsafe version of {@link #data}. */ + public static LongBuffer ndata(long struct) { return memLongBuffer(struct + MLCoordinateFrameUID.DATA, 2); } + /** Unsafe version of {@link #data(int) data}. */ + public static long ndata(long struct, int index) { return UNSAFE.getLong(null, struct + MLCoordinateFrameUID.DATA + check(index, 2) * 8); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link MLCoordinateFrameUID} structs. */ public static class Buffer extends StructBuffer { @@ -149,13 +149,13 @@ protected Buffer self() { protected MLCoordinateFrameUID getElementFactory() { return ELEMENT_FACTORY; } - - /** @return a {@link LongBuffer} view of the {@code data} field. */ - @NativeType("uint64_t[2]") - public LongBuffer data() { return MLCoordinateFrameUID.ndata(address()); } - /** @return the value at the specified index of the {@code data} field. */ - @NativeType("uint64_t") - public long data(int index) { return MLCoordinateFrameUID.ndata(address(), index); } + + /** @return a {@link LongBuffer} view of the {@code data} field. */ + @NativeType("uint64_t[2]") + public LongBuffer data() { return MLCoordinateFrameUID.ndata(address()); } + /** @return the value at the specified index of the {@code data} field. */ + @NativeType("uint64_t") + public long data(int index) { return MLCoordinateFrameUID.ndata(address(), index); } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLFrameEndInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLFrameEndInfo.java index 44502bbfa1..da00132f7a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLFrameEndInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLFrameEndInfo.java @@ -4,23 +4,23 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_ML_frame_end_info extension. * *

    This extension provides access to Magic Leap specific extensions to frame settings like focus distance, vignette, and protection.

    - */ -public final class MLFrameEndInfo { - - /** The extension specification version. */ - public static final int XR_ML_frame_end_info_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_ML_FRAME_END_INFO_EXTENSION_NAME = "XR_ML_frame_end_info"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_FRAME_END_INFO_ML = 1000135000; - + */ +public final class MLFrameEndInfo { + + /** The extension specification version. */ + public static final int XR_ML_frame_end_info_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_ML_FRAME_END_INFO_EXTENSION_NAME = "XR_ML_frame_end_info"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_FRAME_END_INFO_ML = 1000135000; + /** * XrFrameEndInfoFlagBitsML - XrFrameEndInfoFlagBitsML * @@ -38,11 +38,11 @@ public final class MLFrameEndInfo { *
    See Also
    * *

    {@link XrFrameEndInfoML}, {@link XR10#xrEndFrame EndFrame}

    - */ + */ public static final int - XR_FRAME_END_INFO_PROTECTED_BIT_ML = 0x1, - XR_FRAME_END_INFO_VIGNETTE_BIT_ML = 0x2; + XR_FRAME_END_INFO_PROTECTED_BIT_ML = 0x1, + XR_FRAME_END_INFO_VIGNETTE_BIT_ML = 0x2; - private MLFrameEndInfo() {} + private MLFrameEndInfo() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLGlobalDimmer.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLGlobalDimmer.java index 9112bfd2a1..43f43e0223 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLGlobalDimmer.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLGlobalDimmer.java @@ -4,25 +4,25 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_ML_global_dimmer extension. * *

    This extension provides control over the global dimmer panel of the Magic Leap 2. The Global Dimming™ feature dims the entire display without dimming digital content to make text and images more solid and precise.

    * *

    Note that when using the {@link XR10#XR_ENVIRONMENT_BLEND_MODE_ALPHA_BLEND ENVIRONMENT_BLEND_MODE_ALPHA_BLEND} mode the alpha channel of the color swapchain image is combined with the global dimmer value. The global dimmer however is able to address the whole panel whereas the alpha channel covers the video addressable portion.

    - */ -public final class MLGlobalDimmer { - - /** The extension specification version. */ - public static final int XR_ML_global_dimmer_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_ML_GLOBAL_DIMMER_EXTENSION_NAME = "XR_ML_global_dimmer"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML = 1000136000; - + */ +public final class MLGlobalDimmer { + + /** The extension specification version. */ + public static final int XR_ML_global_dimmer_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_ML_GLOBAL_DIMMER_EXTENSION_NAME = "XR_ML_global_dimmer"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML = 1000136000; + /** * XrGlobalDimmerFrameEndInfoFlagBitsML - XrGlobalDimmerFrameEndInfoFlagBitsML * @@ -39,9 +39,9 @@ public final class MLGlobalDimmer { *
    See Also
    * *

    {@link XrGlobalDimmerFrameEndInfoML}, {@link XR10#xrEndFrame EndFrame}

    - */ - public static final int XR_GLOBAL_DIMMER_FRAME_END_INFO_ENABLED_BIT_ML = 0x1; + */ + public static final int XR_GLOBAL_DIMMER_FRAME_END_INFO_ENABLED_BIT_ML = 0x1; - private MLGlobalDimmer() {} + private MLGlobalDimmer() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLMl2ControllerInteraction.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLMl2ControllerInteraction.java index 292e4832f9..6b0c0d609d 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLMl2ControllerInteraction.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MLMl2ControllerInteraction.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_ML_ml2_controller_interaction extension. * *

    This extension defines the interaction profile for the Magic Leap 2 Controller.

    - */ -public final class MLMl2ControllerInteraction { - - /** The extension specification version. */ - public static final int XR_ML_ml2_controller_interaction_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_ML_ML2_CONTROLLER_INTERACTION_EXTENSION_NAME = "XR_ML_ml2_controller_interaction"; + */ +public final class MLMl2ControllerInteraction { + + /** The extension specification version. */ + public static final int XR_ML_ml2_controller_interaction_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_ML_ML2_CONTROLLER_INTERACTION_EXTENSION_NAME = "XR_ML_ml2_controller_interaction"; - private MLMl2ControllerInteraction() {} + private MLMl2ControllerInteraction() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDHeadless.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDHeadless.java index 6f3e352b46..f9f6fcdb8c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDHeadless.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDHeadless.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_MND_headless extension. * @@ -20,15 +20,15 @@ * * *

    Because {@link XR10#xrWaitFrame WaitFrame} is not required, an application using a headless session should sleep periodically to avoid consuming all available system resources in a busy-wait loop.

    - */ -public final class MNDHeadless { - - /** The extension specification version. */ - public static final int XR_MND_headless_SPEC_VERSION = 2; - - /** The extension name. */ - public static final String XR_MND_HEADLESS_EXTENSION_NAME = "XR_MND_headless"; + */ +public final class MNDHeadless { + + /** The extension specification version. */ + public static final int XR_MND_headless_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_MND_HEADLESS_EXTENSION_NAME = "XR_MND_headless"; - private MNDHeadless() {} + private MNDHeadless() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDSwapchainUsageInputAttachmentBit.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDSwapchainUsageInputAttachmentBit.java index ccb999145c..ccd14104f5 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDSwapchainUsageInputAttachmentBit.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDSwapchainUsageInputAttachmentBit.java @@ -4,23 +4,23 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_MND_swapchain_usage_input_attachment_bit extension. * *

    This extension enables an application to specify that swapchain images should be created in a way so that they can be used as input attachments. At the time of writing this bit only affects Vulkan swapchains.

    - */ -public final class MNDSwapchainUsageInputAttachmentBit { - - /** The extension specification version. */ - public static final int XR_MND_swapchain_usage_input_attachment_bit_SPEC_VERSION = 2; - - /** The extension name. */ - public static final String XR_MND_SWAPCHAIN_USAGE_INPUT_ATTACHMENT_BIT_EXTENSION_NAME = "XR_MND_swapchain_usage_input_attachment_bit"; - - /** Extends {@code XrSwapchainUsageFlagBits}. */ - public static final int XR_SWAPCHAIN_USAGE_INPUT_ATTACHMENT_BIT_MND = 0x80; + */ +public final class MNDSwapchainUsageInputAttachmentBit { + + /** The extension specification version. */ + public static final int XR_MND_swapchain_usage_input_attachment_bit_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_MND_SWAPCHAIN_USAGE_INPUT_ATTACHMENT_BIT_EXTENSION_NAME = "XR_MND_swapchain_usage_input_attachment_bit"; + + /** Extends {@code XrSwapchainUsageFlagBits}. */ + public static final int XR_SWAPCHAIN_USAGE_INPUT_ATTACHMENT_BIT_MND = 0x80; - private MNDSwapchainUsageInputAttachmentBit() {} + private MNDSwapchainUsageInputAttachmentBit() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDXEGLEnable.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDXEGLEnable.java index 89f2a92f57..ea77f0291a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDXEGLEnable.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDXEGLEnable.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_MNDX_egl_enable extension. * @@ -13,18 +13,18 @@ *
      *
    • {@link XR10#XR_USE_PLATFORM_EGL USE_PLATFORM_EGL}
    • *
    - */ -public final class MNDXEGLEnable { - - /** The extension specification version. */ - public static final int XR_MNDX_egl_enable_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_MNDX_EGL_ENABLE_EXTENSION_NAME = "XR_MNDX_egl_enable"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_GRAPHICS_BINDING_EGL_MNDX = 1000048004; + */ +public final class MNDXEGLEnable { + + /** The extension specification version. */ + public static final int XR_MNDX_egl_enable_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_MNDX_EGL_ENABLE_EXTENSION_NAME = "XR_MNDX_egl_enable"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_GRAPHICS_BINDING_EGL_MNDX = 1000048004; - private MNDXEGLEnable() {} + private MNDXEGLEnable() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDXForceFeedbackCurl.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDXForceFeedbackCurl.java index cd8a31bda4..5defa16efb 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDXForceFeedbackCurl.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MNDXForceFeedbackCurl.java @@ -4,12 +4,12 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; + /** * The XR_MNDX_force_feedback_curl extension. * @@ -18,15 +18,15 @@ *

    The intended use for this extension is to provide simple force feedback capabilities to restrict finger movement for VR Gloves.

    * *

    The application must also enable the {@link EXTHandTracking XR_EXT_hand_tracking} extension in order to use this extension.

    - */ -public class MNDXForceFeedbackCurl { - - /** The extension specification version. */ - public static final int XR_MNDX_force_feedback_curl_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_MNDX_FORCE_FEEDBACK_CURL_EXTENSION_NAME = "XR_MNDX_force_feedback_curl"; - + */ +public class MNDXForceFeedbackCurl { + + /** The extension specification version. */ + public static final int XR_MNDX_force_feedback_curl_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_MNDX_FORCE_FEEDBACK_CURL_EXTENSION_NAME = "XR_MNDX_force_feedback_curl"; + /** * Extends {@code XrStructureType}. * @@ -36,11 +36,11 @@ public class MNDXForceFeedbackCurl { *
  • {@link #XR_TYPE_SYSTEM_FORCE_FEEDBACK_CURL_PROPERTIES_MNDX TYPE_SYSTEM_FORCE_FEEDBACK_CURL_PROPERTIES_MNDX}
  • *
  • {@link #XR_TYPE_FORCE_FEEDBACK_CURL_APPLY_LOCATIONS_MNDX TYPE_FORCE_FEEDBACK_CURL_APPLY_LOCATIONS_MNDX}
  • * - */ + */ public static final int - XR_TYPE_SYSTEM_FORCE_FEEDBACK_CURL_PROPERTIES_MNDX = 1000375000, - XR_TYPE_FORCE_FEEDBACK_CURL_APPLY_LOCATIONS_MNDX = 1000375001; - + XR_TYPE_SYSTEM_FORCE_FEEDBACK_CURL_PROPERTIES_MNDX = 1000375000, + XR_TYPE_FORCE_FEEDBACK_CURL_APPLY_LOCATIONS_MNDX = 1000375001; + /** * XrForceFeedbackCurlLocationMNDX - Describes which location to apply force feedback * @@ -57,30 +57,30 @@ public class MNDXForceFeedbackCurl { *
    See Also
    * *

    {@link XrForceFeedbackCurlApplyLocationMNDX}

    - */ + */ public static final int - XR_FORCE_FEEDBACK_CURL_LOCATION_THUMB_CURL_MNDX = 0, - XR_FORCE_FEEDBACK_CURL_LOCATION_INDEX_CURL_MNDX = 1, - XR_FORCE_FEEDBACK_CURL_LOCATION_MIDDLE_CURL_MNDX = 2, - XR_FORCE_FEEDBACK_CURL_LOCATION_RING_CURL_MNDX = 3, - XR_FORCE_FEEDBACK_CURL_LOCATION_LITTLE_CURL_MNDX = 4; + XR_FORCE_FEEDBACK_CURL_LOCATION_THUMB_CURL_MNDX = 0, + XR_FORCE_FEEDBACK_CURL_LOCATION_INDEX_CURL_MNDX = 1, + XR_FORCE_FEEDBACK_CURL_LOCATION_MIDDLE_CURL_MNDX = 2, + XR_FORCE_FEEDBACK_CURL_LOCATION_RING_CURL_MNDX = 3, + XR_FORCE_FEEDBACK_CURL_LOCATION_LITTLE_CURL_MNDX = 4; protected MNDXForceFeedbackCurl() { throw new UnsupportedOperationException(); - } - - // --- [ xrApplyForceFeedbackCurlMNDX ] --- - - /** Unsafe version of: {@link #xrApplyForceFeedbackCurlMNDX ApplyForceFeedbackCurlMNDX} */ - public static int nxrApplyForceFeedbackCurlMNDX(XrHandTrackerEXT handTracker, long locations) { - long __functionAddress = handTracker.getCapabilities().xrApplyForceFeedbackCurlMNDX; - if (CHECKS) { - check(__functionAddress); - XrForceFeedbackCurlApplyLocationsMNDX.validate(locations); - } - return callPPI(handTracker.address(), locations, __functionAddress); - } + } + // --- [ xrApplyForceFeedbackCurlMNDX ] --- + + /** Unsafe version of: {@link #xrApplyForceFeedbackCurlMNDX ApplyForceFeedbackCurlMNDX} */ + public static int nxrApplyForceFeedbackCurlMNDX(XrHandTrackerEXT handTracker, long locations) { + long __functionAddress = handTracker.getCapabilities().xrApplyForceFeedbackCurlMNDX; + if (CHECKS) { + check(__functionAddress); + XrForceFeedbackCurlApplyLocationsMNDX.validate(locations); + } + return callPPI(handTracker.address(), locations, __functionAddress); + } + /** * Applies force feedback to a set of locations. * @@ -141,10 +141,10 @@ public static int nxrApplyForceFeedbackCurlMNDX(XrHandTrackerEXT handTracker, lo * * @param handTracker an {@code XrHandTrackerEXT} handle previously created with {@link EXTHandTracking#xrCreateHandTrackerEXT CreateHandTrackerEXT}. * @param locations an {@link XrForceFeedbackCurlApplyLocationsMNDX} containing a set of locations to apply force feedback to. - */ - @NativeType("XrResult") - public static int xrApplyForceFeedbackCurlMNDX(XrHandTrackerEXT handTracker, @NativeType("XrForceFeedbackCurlApplyLocationsMNDX const *") XrForceFeedbackCurlApplyLocationsMNDX locations) { - return nxrApplyForceFeedbackCurlMNDX(handTracker, locations.address()); - } + */ + @NativeType("XrResult") + public static int xrApplyForceFeedbackCurlMNDX(XrHandTrackerEXT handTracker, @NativeType("XrForceFeedbackCurlApplyLocationsMNDX const *") XrForceFeedbackCurlApplyLocationsMNDX locations) { + return nxrApplyForceFeedbackCurlMNDX(handTracker, locations.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTCompositionLayerReprojection.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTCompositionLayerReprojection.java index 65221711fe..f6687e48e9 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTCompositionLayerReprojection.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTCompositionLayerReprojection.java @@ -4,30 +4,30 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_MSFT_composition_layer_reprojection extension. * *

    This extension enables an application to provide additional reprojection information for a projection composition layer to help the runtime produce better hologram stability and visual quality.

    - */ -public class MSFTCompositionLayerReprojection { - - /** The extension specification version. */ - public static final int XR_MSFT_composition_layer_reprojection_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_MSFT_COMPOSITION_LAYER_REPROJECTION_EXTENSION_NAME = "XR_MSFT_composition_layer_reprojection"; - + */ +public class MSFTCompositionLayerReprojection { + + /** The extension specification version. */ + public static final int XR_MSFT_composition_layer_reprojection_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_MSFT_COMPOSITION_LAYER_REPROJECTION_EXTENSION_NAME = "XR_MSFT_composition_layer_reprojection"; + /** * Extends {@code XrStructureType}. * @@ -37,14 +37,14 @@ public class MSFTCompositionLayerReprojection { *
  • {@link #XR_TYPE_COMPOSITION_LAYER_REPROJECTION_INFO_MSFT TYPE_COMPOSITION_LAYER_REPROJECTION_INFO_MSFT}
  • *
  • {@link #XR_TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT}
  • * - */ + */ public static final int - XR_TYPE_COMPOSITION_LAYER_REPROJECTION_INFO_MSFT = 1000066000, - XR_TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT = 1000066001; - - /** Extends {@code XrResult}. */ - public static final int XR_ERROR_REPROJECTION_MODE_UNSUPPORTED_MSFT = -1000066000; - + XR_TYPE_COMPOSITION_LAYER_REPROJECTION_INFO_MSFT = 1000066000, + XR_TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT = 1000066001; + + /** Extends {@code XrResult}. */ + public static final int XR_ERROR_REPROJECTION_MODE_UNSUPPORTED_MSFT = -1000066000; + /** * XrReprojectionModeMSFT - Describes the reprojection mode of a composition layer * @@ -57,39 +57,39 @@ public class MSFTCompositionLayerReprojection { *
  • {@link #XR_REPROJECTION_MODE_ORIENTATION_ONLY_MSFT REPROJECTION_MODE_ORIENTATION_ONLY_MSFT} indicates the layer should be stabilized only for changes to orientation, ignoring positional changes. This mode works better for body-locked content that should follow the user as they walk around, such as 360-degree video.
  • * * - *

    When the application passes {@link #XR_REPROJECTION_MODE_DEPTH_MSFT REPROJECTION_MODE_DEPTH_MSFT} or {@link #XR_REPROJECTION_MODE_PLANAR_FROM_DEPTH_MSFT REPROJECTION_MODE_PLANAR_FROM_DEPTH_MSFT} mode, it should also provide the depth buffer for the corresponding layer using {@link XrCompositionLayerDepthInfoKHR} in {@link KHRCompositionLayerDepth XR_KHR_composition_layer_depth} extension. However, if the application does not submit this depth buffer, the runtime must apply a runtime defined fallback reprojection mode, and must not fail the {@link XR10#xrEndFrame EndFrame} function because of this missing depth.

    + *

    When the application passes {@link #XR_REPROJECTION_MODE_DEPTH_MSFT REPROJECTION_MODE_DEPTH_MSFT} or {@link #XR_REPROJECTION_MODE_PLANAR_FROM_DEPTH_MSFT REPROJECTION_MODE_PLANAR_FROM_DEPTH_MSFT} mode, it should also provide the depth buffer for the corresponding layer using {@link XrCompositionLayerDepthInfoKHR} in XR_KHR_composition_layer_depth extension. However, if the application does not submit this depth buffer, the runtime must apply a runtime defined fallback reprojection mode, and must not fail the {@link XR10#xrEndFrame EndFrame} function because of this missing depth.

    * - *

    When the application passes {@link #XR_REPROJECTION_MODE_PLANAR_MANUAL_MSFT REPROJECTION_MODE_PLANAR_MANUAL_MSFT} or {@link #XR_REPROJECTION_MODE_ORIENTATION_ONLY_MSFT REPROJECTION_MODE_ORIENTATION_ONLY_MSFT} mode, it should avoid providing a depth buffer for the corresponding layer using {@link XrCompositionLayerDepthInfoKHR} in {@link KHRCompositionLayerDepth XR_KHR_composition_layer_depth} extension. However, if the application does submit this depth buffer, the runtime must not fail the {@link XR10#xrEndFrame EndFrame} function because of this unused depth data.

    + *

    When the application passes {@link #XR_REPROJECTION_MODE_PLANAR_MANUAL_MSFT REPROJECTION_MODE_PLANAR_MANUAL_MSFT} or {@link #XR_REPROJECTION_MODE_ORIENTATION_ONLY_MSFT REPROJECTION_MODE_ORIENTATION_ONLY_MSFT} mode, it should avoid providing a depth buffer for the corresponding layer using {@link XrCompositionLayerDepthInfoKHR} in XR_KHR_composition_layer_depth extension. However, if the application does submit this depth buffer, the runtime must not fail the {@link XR10#xrEndFrame EndFrame} function because of this unused depth data.

    * *
    See Also
    * *

    {@link XrCompositionLayerReprojectionInfoMSFT}, {@link #xrEnumerateReprojectionModesMSFT EnumerateReprojectionModesMSFT}

    - */ + */ public static final int - XR_REPROJECTION_MODE_DEPTH_MSFT = 1, - XR_REPROJECTION_MODE_PLANAR_FROM_DEPTH_MSFT = 2, - XR_REPROJECTION_MODE_PLANAR_MANUAL_MSFT = 3, - XR_REPROJECTION_MODE_ORIENTATION_ONLY_MSFT = 4; + XR_REPROJECTION_MODE_DEPTH_MSFT = 1, + XR_REPROJECTION_MODE_PLANAR_FROM_DEPTH_MSFT = 2, + XR_REPROJECTION_MODE_PLANAR_MANUAL_MSFT = 3, + XR_REPROJECTION_MODE_ORIENTATION_ONLY_MSFT = 4; protected MSFTCompositionLayerReprojection() { throw new UnsupportedOperationException(); - } - - // --- [ xrEnumerateReprojectionModesMSFT ] --- + } + // --- [ xrEnumerateReprojectionModesMSFT ] --- + /** * Unsafe version of: {@link #xrEnumerateReprojectionModesMSFT EnumerateReprojectionModesMSFT} * * @param modeCapacityInput the capacity of the array, or 0 to indicate a request to retrieve the required capacity. - */ - public static int nxrEnumerateReprojectionModesMSFT(XrInstance instance, long systemId, int viewConfigurationType, int modeCapacityInput, long modeCountOutput, long modes) { - long __functionAddress = instance.getCapabilities().xrEnumerateReprojectionModesMSFT; - if (CHECKS) { - check(__functionAddress); - } - return callPJPPI(instance.address(), systemId, viewConfigurationType, modeCapacityInput, modeCountOutput, modes, __functionAddress); - } - + */ + public static int nxrEnumerateReprojectionModesMSFT(XrInstance instance, long systemId, int viewConfigurationType, int modeCapacityInput, long modeCountOutput, long modes) { + long __functionAddress = instance.getCapabilities().xrEnumerateReprojectionModesMSFT; + if (CHECKS) { + check(__functionAddress); + } + return callPJPPI(instance.address(), systemId, viewConfigurationType, modeCapacityInput, modeCountOutput, modes, __functionAddress); + } + /** * Queries the supported reprojection modes. * @@ -145,13 +145,13 @@ public static int nxrEnumerateReprojectionModesMSFT(XrInstance instance, long sy * @param viewConfigurationType the {@code XrViewConfigurationType} to enumerate. * @param modeCountOutput a pointer to the count of the array, or a pointer to the required capacity in the case that {@code modeCapacityInput} is insufficient. * @param modes a pointer to an application-allocated array that will be filled with the {@code XrReprojectionModeMSFT} values that are supported by the runtime. It can be {@code NULL} if {@code modeCapacityInput} is 0. - */ - @NativeType("XrResult") - public static int xrEnumerateReprojectionModesMSFT(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrViewConfigurationType") int viewConfigurationType, @NativeType("uint32_t *") IntBuffer modeCountOutput, @Nullable @NativeType("XrReprojectionModeMSFT *") IntBuffer modes) { - if (CHECKS) { - check(modeCountOutput, 1); - } - return nxrEnumerateReprojectionModesMSFT(instance, systemId, viewConfigurationType, remainingSafe(modes), memAddress(modeCountOutput), memAddressSafe(modes)); - } + */ + @NativeType("XrResult") + public static int xrEnumerateReprojectionModesMSFT(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrViewConfigurationType") int viewConfigurationType, @NativeType("uint32_t *") IntBuffer modeCountOutput, @Nullable @NativeType("XrReprojectionModeMSFT *") IntBuffer modes) { + if (CHECKS) { + check(modeCountOutput, 1); + } + return nxrEnumerateReprojectionModesMSFT(instance, systemId, viewConfigurationType, remainingSafe(modes), memAddress(modeCountOutput), memAddressSafe(modes)); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTControllerModel.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTControllerModel.java index 371037ce7b..18c46b095c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTControllerModel.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTControllerModel.java @@ -4,35 +4,35 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_MSFT_controller_model extension. * *

    This extension provides a mechanism to load a GLTF model for controllers. An application can render the controller model using the real time pose input from controller’s grip action pose and animate controller parts representing the user’s interactions, such as pressing a button, or pulling a trigger.

    * *

    This extension supports any controller interaction profile that supports subpathname:/grip/pose. The returned controller model represents the physical controller held in the user’s hands, and it may be different from the current interaction profile.

    - */ -public class MSFTControllerModel { - - /** The extension specification version. */ - public static final int XR_MSFT_controller_model_SPEC_VERSION = 2; - - /** The extension name. */ - public static final String XR_MSFT_CONTROLLER_MODEL_EXTENSION_NAME = "XR_MSFT_controller_model"; - - /** XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT */ - public static final int XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT = 64; - + */ +public class MSFTControllerModel { + + /** The extension specification version. */ + public static final int XR_MSFT_controller_model_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_MSFT_CONTROLLER_MODEL_EXTENSION_NAME = "XR_MSFT_controller_model"; + + /** XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT */ + public static final int XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT = 64; + /** * Extends {@code XrStructureType}. * @@ -45,35 +45,35 @@ public class MSFTControllerModel { *
  • {@link #XR_TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT}
  • *
  • {@link #XR_TYPE_CONTROLLER_MODEL_STATE_MSFT TYPE_CONTROLLER_MODEL_STATE_MSFT}
  • * - */ + */ public static final int - XR_TYPE_CONTROLLER_MODEL_KEY_STATE_MSFT = 1000055000, - XR_TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT = 1000055001, - XR_TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT = 1000055002, - XR_TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT = 1000055003, - XR_TYPE_CONTROLLER_MODEL_STATE_MSFT = 1000055004; - - /** Extends {@code XrResult}. */ - public static final int XR_ERROR_CONTROLLER_MODEL_KEY_INVALID_MSFT = -1000055000; - - /** API Constants */ - public static final long XR_NULL_CONTROLLER_MODEL_KEY_MSFT = 0x0L; + XR_TYPE_CONTROLLER_MODEL_KEY_STATE_MSFT = 1000055000, + XR_TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT = 1000055001, + XR_TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT = 1000055002, + XR_TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT = 1000055003, + XR_TYPE_CONTROLLER_MODEL_STATE_MSFT = 1000055004; + + /** Extends {@code XrResult}. */ + public static final int XR_ERROR_CONTROLLER_MODEL_KEY_INVALID_MSFT = -1000055000; + + /** API Constants */ + public static final long XR_NULL_CONTROLLER_MODEL_KEY_MSFT = 0x0L; protected MSFTControllerModel() { throw new UnsupportedOperationException(); - } - - // --- [ xrGetControllerModelKeyMSFT ] --- - - /** Unsafe version of: {@link #xrGetControllerModelKeyMSFT GetControllerModelKeyMSFT} */ - public static int nxrGetControllerModelKeyMSFT(XrSession session, long topLevelUserPath, long controllerModelKeyState) { - long __functionAddress = session.getCapabilities().xrGetControllerModelKeyMSFT; - if (CHECKS) { - check(__functionAddress); - } - return callPJPI(session.address(), topLevelUserPath, controllerModelKeyState, __functionAddress); - } + } + // --- [ xrGetControllerModelKeyMSFT ] --- + + /** Unsafe version of: {@link #xrGetControllerModelKeyMSFT GetControllerModelKeyMSFT} */ + public static int nxrGetControllerModelKeyMSFT(XrSession session, long topLevelUserPath, long controllerModelKeyState) { + long __functionAddress = session.getCapabilities().xrGetControllerModelKeyMSFT; + if (CHECKS) { + check(__functionAddress); + } + return callPJPI(session.address(), topLevelUserPath, controllerModelKeyState, __functionAddress); + } + /** * Retrieve the model key for the controller. * @@ -126,27 +126,27 @@ public static int nxrGetControllerModelKeyMSFT(XrSession session, long topLevelU * @param session the specified {@code XrSession}. * @param topLevelUserPath the top level user path corresponding to the controller render model being queried (e.g. pathname:/user/hand/left or pathname:/user/hand/right). * @param controllerModelKeyState a pointer to the {@link XrControllerModelKeyStateMSFT} to write the model key state to. - */ - @NativeType("XrResult") - public static int xrGetControllerModelKeyMSFT(XrSession session, @NativeType("XrPath") long topLevelUserPath, @NativeType("XrControllerModelKeyStateMSFT *") XrControllerModelKeyStateMSFT controllerModelKeyState) { - return nxrGetControllerModelKeyMSFT(session, topLevelUserPath, controllerModelKeyState.address()); - } - - // --- [ xrLoadControllerModelMSFT ] --- + */ + @NativeType("XrResult") + public static int xrGetControllerModelKeyMSFT(XrSession session, @NativeType("XrPath") long topLevelUserPath, @NativeType("XrControllerModelKeyStateMSFT *") XrControllerModelKeyStateMSFT controllerModelKeyState) { + return nxrGetControllerModelKeyMSFT(session, topLevelUserPath, controllerModelKeyState.address()); + } + // --- [ xrLoadControllerModelMSFT ] --- + /** * Unsafe version of: {@link #xrLoadControllerModelMSFT LoadControllerModelMSFT} * * @param bufferCapacityInput the capacity of the {@code buffer} array, or 0 to indicate a request to retrieve the required capacity. - */ - public static int nxrLoadControllerModelMSFT(XrSession session, long modelKey, int bufferCapacityInput, long bufferCountOutput, long buffer) { - long __functionAddress = session.getCapabilities().xrLoadControllerModelMSFT; - if (CHECKS) { - check(__functionAddress); - } - return callPJPPI(session.address(), modelKey, bufferCapacityInput, bufferCountOutput, buffer, __functionAddress); - } - + */ + public static int nxrLoadControllerModelMSFT(XrSession session, long modelKey, int bufferCapacityInput, long bufferCountOutput, long buffer) { + long __functionAddress = session.getCapabilities().xrLoadControllerModelMSFT; + if (CHECKS) { + check(__functionAddress); + } + return callPJPPI(session.address(), modelKey, bufferCapacityInput, bufferCountOutput, buffer, __functionAddress); + } + /** * Load controller render model. * @@ -202,26 +202,26 @@ public static int nxrLoadControllerModelMSFT(XrSession session, long modelKey, i * @param modelKey the model key corresponding to the controller render model being queried. * @param bufferCountOutput filled in by the runtime with the count of elements in {@code buffer} array, or returns the required capacity in the case that {@code bufferCapacityInput} is insufficient. * @param buffer a pointer to an application-allocated array of the model for the device that will be filled with the {@code uint8_t} values by the runtime. It can be {@code NULL} if {@code bufferCapacityInput} is 0. - */ - @NativeType("XrResult") - public static int xrLoadControllerModelMSFT(XrSession session, @NativeType("XrControllerModelKeyMSFT") long modelKey, @NativeType("uint32_t *") IntBuffer bufferCountOutput, @Nullable @NativeType("uint8_t *") ByteBuffer buffer) { - if (CHECKS) { - check(bufferCountOutput, 1); - } - return nxrLoadControllerModelMSFT(session, modelKey, remainingSafe(buffer), memAddress(bufferCountOutput), memAddressSafe(buffer)); - } - - // --- [ xrGetControllerModelPropertiesMSFT ] --- - - /** Unsafe version of: {@link #xrGetControllerModelPropertiesMSFT GetControllerModelPropertiesMSFT} */ - public static int nxrGetControllerModelPropertiesMSFT(XrSession session, long modelKey, long properties) { - long __functionAddress = session.getCapabilities().xrGetControllerModelPropertiesMSFT; - if (CHECKS) { - check(__functionAddress); - } - return callPJPI(session.address(), modelKey, properties, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrLoadControllerModelMSFT(XrSession session, @NativeType("XrControllerModelKeyMSFT") long modelKey, @NativeType("uint32_t *") IntBuffer bufferCountOutput, @Nullable @NativeType("uint8_t *") ByteBuffer buffer) { + if (CHECKS) { + check(bufferCountOutput, 1); + } + return nxrLoadControllerModelMSFT(session, modelKey, remainingSafe(buffer), memAddress(bufferCountOutput), memAddressSafe(buffer)); + } + // --- [ xrGetControllerModelPropertiesMSFT ] --- + + /** Unsafe version of: {@link #xrGetControllerModelPropertiesMSFT GetControllerModelPropertiesMSFT} */ + public static int nxrGetControllerModelPropertiesMSFT(XrSession session, long modelKey, long properties) { + long __functionAddress = session.getCapabilities().xrGetControllerModelPropertiesMSFT; + if (CHECKS) { + check(__functionAddress); + } + return callPJPI(session.address(), modelKey, properties, __functionAddress); + } + /** * Get controller model properties. * @@ -265,7 +265,6 @@ public static int nxrGetControllerModelPropertiesMSFT(XrSession session, long mo *
  • {@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_SIZE_INSUFFICIENT ERROR_SIZE_INSUFFICIENT}
  • *
  • {@link #XR_ERROR_CONTROLLER_MODEL_KEY_INVALID_MSFT ERROR_CONTROLLER_MODEL_KEY_INVALID_MSFT}
  • * * @@ -277,23 +276,23 @@ public static int nxrGetControllerModelPropertiesMSFT(XrSession session, long mo * @param session the specified {@code XrSession}. * @param modelKey a valid model key obtained from {@link XrControllerModelKeyStateMSFT} * @param properties an {@link XrControllerModelPropertiesMSFT} returning the properties of the controller model - */ - @NativeType("XrResult") - public static int xrGetControllerModelPropertiesMSFT(XrSession session, @NativeType("XrControllerModelKeyMSFT") long modelKey, @NativeType("XrControllerModelPropertiesMSFT *") XrControllerModelPropertiesMSFT properties) { - return nxrGetControllerModelPropertiesMSFT(session, modelKey, properties.address()); - } - - // --- [ xrGetControllerModelStateMSFT ] --- - - /** Unsafe version of: {@link #xrGetControllerModelStateMSFT GetControllerModelStateMSFT} */ - public static int nxrGetControllerModelStateMSFT(XrSession session, long modelKey, long state) { - long __functionAddress = session.getCapabilities().xrGetControllerModelStateMSFT; - if (CHECKS) { - check(__functionAddress); - } - return callPJPI(session.address(), modelKey, state, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrGetControllerModelPropertiesMSFT(XrSession session, @NativeType("XrControllerModelKeyMSFT") long modelKey, @NativeType("XrControllerModelPropertiesMSFT *") XrControllerModelPropertiesMSFT properties) { + return nxrGetControllerModelPropertiesMSFT(session, modelKey, properties.address()); + } + // --- [ xrGetControllerModelStateMSFT ] --- + + /** Unsafe version of: {@link #xrGetControllerModelStateMSFT GetControllerModelStateMSFT} */ + public static int nxrGetControllerModelStateMSFT(XrSession session, long modelKey, long state) { + long __functionAddress = session.getCapabilities().xrGetControllerModelStateMSFT; + if (CHECKS) { + check(__functionAddress); + } + return callPJPI(session.address(), modelKey, state, __functionAddress); + } + /** * Get controller model state. * @@ -348,10 +347,10 @@ public static int nxrGetControllerModelStateMSFT(XrSession session, long modelKe * @param session the specified {@code XrSession}. * @param modelKey the model key corresponding to the controller model being queried. * @param state a pointer to {@link XrControllerModelNodeStateMSFT} returns the current controller model state. - */ - @NativeType("XrResult") - public static int xrGetControllerModelStateMSFT(XrSession session, @NativeType("XrControllerModelKeyMSFT") long modelKey, @NativeType("XrControllerModelStateMSFT *") XrControllerModelStateMSFT state) { - return nxrGetControllerModelStateMSFT(session, modelKey, state.address()); - } + */ + @NativeType("XrResult") + public static int xrGetControllerModelStateMSFT(XrSession session, @NativeType("XrControllerModelKeyMSFT") long modelKey, @NativeType("XrControllerModelStateMSFT *") XrControllerModelStateMSFT state) { + return nxrGetControllerModelStateMSFT(session, modelKey, state.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTFirstPersonObserver.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTFirstPersonObserver.java index c76a944df2..2b0dfbeb42 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTFirstPersonObserver.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTFirstPersonObserver.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_MSFT_first_person_observer extension. * @@ -19,18 +19,18 @@ *

    Because this is a first-person view of the scene, applications can share a common culling and instanced rendering pass with their primary view renders. However, the view state (pose and FOV) of the first-person observer view will not match the view state of any of the primary views. Applications enabling this view configuration must call {@link XR10#xrLocateViews LocateViews} a second time each frame to explicitly query the view state for the {@link #XR_VIEW_CONFIGURATION_TYPE_SECONDARY_MONO_FIRST_PERSON_OBSERVER_MSFT VIEW_CONFIGURATION_TYPE_SECONDARY_MONO_FIRST_PERSON_OBSERVER_MSFT} configuration.

    * *

    This secondary view configuration may support a different set of environment blend modes than the primary view configuration. For example, a device that only supports additive blending for its primary display may support alpha-blending when composing the first-person observer view with camera frames. The application should render with assets and shaders that produce output acceptable to both the primary and observer view configuration’s environment blend modes when sharing render passes across both view configurations.

    - */ -public final class MSFTFirstPersonObserver { - - /** The extension specification version. */ - public static final int XR_MSFT_first_person_observer_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_MSFT_FIRST_PERSON_OBSERVER_EXTENSION_NAME = "XR_MSFT_first_person_observer"; - - /** Extends {@code XrViewConfigurationType}. */ - public static final int XR_VIEW_CONFIGURATION_TYPE_SECONDARY_MONO_FIRST_PERSON_OBSERVER_MSFT = 1000054000; + */ +public final class MSFTFirstPersonObserver { + + /** The extension specification version. */ + public static final int XR_MSFT_first_person_observer_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_MSFT_FIRST_PERSON_OBSERVER_EXTENSION_NAME = "XR_MSFT_first_person_observer"; + + /** Extends {@code XrViewConfigurationType}. */ + public static final int XR_VIEW_CONFIGURATION_TYPE_SECONDARY_MONO_FIRST_PERSON_OBSERVER_MSFT = 1000054000; - private MSFTFirstPersonObserver() {} + private MSFTFirstPersonObserver() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTHandInteraction.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTHandInteraction.java index 37cec01416..21ad19a7da 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTHandInteraction.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTHandInteraction.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_MSFT_hand_interaction extension. * *

    This extension defines a new interaction profile for near interactions and far interactions driven by directly-tracked hands.

    - */ -public final class MSFTHandInteraction { - - /** The extension specification version. */ - public static final int XR_MSFT_hand_interaction_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_MSFT_HAND_INTERACTION_EXTENSION_NAME = "XR_MSFT_hand_interaction"; + */ +public final class MSFTHandInteraction { + + /** The extension specification version. */ + public static final int XR_MSFT_hand_interaction_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_MSFT_HAND_INTERACTION_EXTENSION_NAME = "XR_MSFT_hand_interaction"; - private MSFTHandInteraction() {} + private MSFTHandInteraction() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTHandTrackingMesh.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTHandTrackingMesh.java index 859cc2ed67..ffcec1a96b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTHandTrackingMesh.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTHandTrackingMesh.java @@ -4,30 +4,30 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import org.lwjgl.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_MSFT_hand_tracking_mesh extension. * *

    This extension enables hand tracking inputs represented as a dynamic hand mesh. It enables applications to render hands in XR experiences and interact with virtual objects using hand meshes.

    * *

    The application must also enable the {@link EXTHandTracking XR_EXT_hand_tracking} extension in order to use this extension.

    - */ -public class MSFTHandTrackingMesh { - - /** The extension specification version. */ - public static final int XR_MSFT_hand_tracking_mesh_SPEC_VERSION = 4; - - /** The extension name. */ - public static final String XR_MSFT_HAND_TRACKING_MESH_EXTENSION_NAME = "XR_MSFT_hand_tracking_mesh"; - + */ +public class MSFTHandTrackingMesh { + + /** The extension specification version. */ + public static final int XR_MSFT_hand_tracking_mesh_SPEC_VERSION = 4; + + /** The extension name. */ + public static final String XR_MSFT_HAND_TRACKING_MESH_EXTENSION_NAME = "XR_MSFT_hand_tracking_mesh"; + /** * Extends {@code XrStructureType}. * @@ -40,14 +40,14 @@ public class MSFTHandTrackingMesh { *
  • {@link #XR_TYPE_HAND_MESH_MSFT TYPE_HAND_MESH_MSFT}
  • *
  • {@link #XR_TYPE_HAND_POSE_TYPE_INFO_MSFT TYPE_HAND_POSE_TYPE_INFO_MSFT}
  • * - */ + */ public static final int - XR_TYPE_SYSTEM_HAND_TRACKING_MESH_PROPERTIES_MSFT = 1000052000, - XR_TYPE_HAND_MESH_SPACE_CREATE_INFO_MSFT = 1000052001, - XR_TYPE_HAND_MESH_UPDATE_INFO_MSFT = 1000052002, - XR_TYPE_HAND_MESH_MSFT = 1000052003, - XR_TYPE_HAND_POSE_TYPE_INFO_MSFT = 1000052004; - + XR_TYPE_SYSTEM_HAND_TRACKING_MESH_PROPERTIES_MSFT = 1000052000, + XR_TYPE_HAND_MESH_SPACE_CREATE_INFO_MSFT = 1000052001, + XR_TYPE_HAND_MESH_UPDATE_INFO_MSFT = 1000052002, + XR_TYPE_HAND_MESH_MSFT = 1000052003, + XR_TYPE_HAND_POSE_TYPE_INFO_MSFT = 1000052004; + /** * XrHandPoseTypeMSFT - Describe type of input hand pose * @@ -67,26 +67,26 @@ public class MSFTHandTrackingMesh { *
    See Also
    * *

    {@link XrHandMeshSpaceCreateInfoMSFT}, {@link XrHandMeshUpdateInfoMSFT}, {@link XrHandPoseTypeInfoMSFT}, {@link XrHandTrackerCreateInfoEXT}, {@link EXTHandTracking#xrCreateHandTrackerEXT CreateHandTrackerEXT}

    - */ + */ public static final int - XR_HAND_POSE_TYPE_TRACKED_MSFT = 0, - XR_HAND_POSE_TYPE_REFERENCE_OPEN_PALM_MSFT = 1; + XR_HAND_POSE_TYPE_TRACKED_MSFT = 0, + XR_HAND_POSE_TYPE_REFERENCE_OPEN_PALM_MSFT = 1; protected MSFTHandTrackingMesh() { throw new UnsupportedOperationException(); - } - - // --- [ xrCreateHandMeshSpaceMSFT ] --- - - /** Unsafe version of: {@link #xrCreateHandMeshSpaceMSFT CreateHandMeshSpaceMSFT} */ - public static int nxrCreateHandMeshSpaceMSFT(XrHandTrackerEXT handTracker, long createInfo, long space) { - long __functionAddress = handTracker.getCapabilities().xrCreateHandMeshSpaceMSFT; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(handTracker.address(), createInfo, space, __functionAddress); - } - + } + + // --- [ xrCreateHandMeshSpaceMSFT ] --- + + /** Unsafe version of: {@link #xrCreateHandMeshSpaceMSFT CreateHandMeshSpaceMSFT} */ + public static int nxrCreateHandMeshSpaceMSFT(XrHandTrackerEXT handTracker, long createInfo, long space) { + long __functionAddress = handTracker.getCapabilities().xrCreateHandMeshSpaceMSFT; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(handTracker.address(), createInfo, space, __functionAddress); + } + /** * Create a space for hand mesh tracking. * @@ -151,26 +151,26 @@ public static int nxrCreateHandMeshSpaceMSFT(XrHandTrackerEXT handTracker, long * @param handTracker an {@code XrHandTrackerEXT} handle previously created with the {@link EXTHandTracking#xrCreateHandTrackerEXT CreateHandTrackerEXT} function. * @param createInfo the {@link XrHandMeshSpaceCreateInfoMSFT} used to specify the hand mesh space. * @param space the returned {@code XrSpace} handle of the new hand mesh space. - */ - @NativeType("XrResult") - public static int xrCreateHandMeshSpaceMSFT(XrHandTrackerEXT handTracker, @NativeType("XrHandMeshSpaceCreateInfoMSFT const *") XrHandMeshSpaceCreateInfoMSFT createInfo, @NativeType("XrSpace *") PointerBuffer space) { - if (CHECKS) { - check(space, 1); - } - return nxrCreateHandMeshSpaceMSFT(handTracker, createInfo.address(), memAddress(space)); - } - - // --- [ xrUpdateHandMeshMSFT ] --- - - /** Unsafe version of: {@link #xrUpdateHandMeshMSFT UpdateHandMeshMSFT} */ - public static int nxrUpdateHandMeshMSFT(XrHandTrackerEXT handTracker, long updateInfo, long handMesh) { - long __functionAddress = handTracker.getCapabilities().xrUpdateHandMeshMSFT; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(handTracker.address(), updateInfo, handMesh, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrCreateHandMeshSpaceMSFT(XrHandTrackerEXT handTracker, @NativeType("XrHandMeshSpaceCreateInfoMSFT const *") XrHandMeshSpaceCreateInfoMSFT createInfo, @NativeType("XrSpace *") PointerBuffer space) { + if (CHECKS) { + check(space, 1); + } + return nxrCreateHandMeshSpaceMSFT(handTracker, createInfo.address(), memAddress(space)); + } + + // --- [ xrUpdateHandMeshMSFT ] --- + + /** Unsafe version of: {@link #xrUpdateHandMeshMSFT UpdateHandMeshMSFT} */ + public static int nxrUpdateHandMeshMSFT(XrHandTrackerEXT handTracker, long updateInfo, long handMesh) { + long __functionAddress = handTracker.getCapabilities().xrUpdateHandMeshMSFT; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(handTracker.address(), updateInfo, handMesh, __functionAddress); + } + /** * Update hand mesh buffers. * @@ -228,10 +228,10 @@ public static int nxrUpdateHandMeshMSFT(XrHandTrackerEXT handTracker, long updat * @param handTracker an {@code XrHandTrackerEXT} handle previously created with {@link EXTHandTracking#xrCreateHandTrackerEXT CreateHandTrackerEXT}. * @param updateInfo an {@link XrHandMeshUpdateInfoMSFT} which contains information to query the hand mesh. * @param handMesh an {@link XrHandMeshMSFT} structure to receive the updates of hand mesh data. - */ - @NativeType("XrResult") - public static int xrUpdateHandMeshMSFT(XrHandTrackerEXT handTracker, @NativeType("XrHandMeshUpdateInfoMSFT const *") XrHandMeshUpdateInfoMSFT updateInfo, @NativeType("XrHandMeshMSFT *") XrHandMeshMSFT handMesh) { - return nxrUpdateHandMeshMSFT(handTracker, updateInfo.address(), handMesh.address()); - } + */ + @NativeType("XrResult") + public static int xrUpdateHandMeshMSFT(XrHandTrackerEXT handTracker, @NativeType("XrHandMeshUpdateInfoMSFT const *") XrHandMeshUpdateInfoMSFT updateInfo, @NativeType("XrHandMeshMSFT *") XrHandMeshMSFT handMesh) { + return nxrUpdateHandMeshMSFT(handTracker, updateInfo.address(), handMesh.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTHolographicWindowAttachment.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTHolographicWindowAttachment.java index 577c87fa41..cb2bb8a730 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTHolographicWindowAttachment.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTHolographicWindowAttachment.java @@ -4,23 +4,23 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_MSFT_holographic_window_attachment extension. * *

    This extension enables the runtime to attach to app-provided HolographicSpace and CoreWindow WinRT objects when an {@code XrSession} is created. Applications may use this extension to create and control the CoreWindow/App View objects, allowing the app to subscribe to keyboard input events and react to activation event arguments. These events and data would otherwise be inaccessible if the application simply managed the app state and lifetime exclusively through the OpenXR API. This extension is only valid to use where an application can create a CoreWindow, such as UWP applications on the HoloLens.

    - */ -public final class MSFTHolographicWindowAttachment { - - /** The extension specification version. */ - public static final int XR_MSFT_holographic_window_attachment_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_MSFT_HOLOGRAPHIC_WINDOW_ATTACHMENT_EXTENSION_NAME = "XR_MSFT_holographic_window_attachment"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_HOLOGRAPHIC_WINDOW_ATTACHMENT_MSFT = 1000063000; + */ +public final class MSFTHolographicWindowAttachment { + + /** The extension specification version. */ + public static final int XR_MSFT_holographic_window_attachment_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_MSFT_HOLOGRAPHIC_WINDOW_ATTACHMENT_EXTENSION_NAME = "XR_MSFT_holographic_window_attachment"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_HOLOGRAPHIC_WINDOW_ATTACHMENT_MSFT = 1000063000; - private MSFTHolographicWindowAttachment() {} + private MSFTHolographicWindowAttachment() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTPerceptionAnchorInterop.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTPerceptionAnchorInterop.java index c33de7d64e..527f86fc78 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTPerceptionAnchorInterop.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTPerceptionAnchorInterop.java @@ -4,50 +4,50 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import org.lwjgl.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_MSFT_perception_anchor_interop extension. * - *

    This extension supports conversion between {@code XrSpatialAnchorMSFT} and Windows.Perception.Spatial.SpatialAnchor. An application can use this extension to persist spatial anchors on the Windows device through SpatialAnchorStore or transfer spatial anchors between devices through SpatialAnchorTransferManager.

    - */ -public class MSFTPerceptionAnchorInterop { - - /** The extension specification version. */ - public static final int XR_MSFT_perception_anchor_interop_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_MSFT_PERCEPTION_ANCHOR_INTEROP_EXTENSION_NAME = "XR_MSFT_perception_anchor_interop"; + *

    This extension supports conversion between {@code XrSpatialAnchorMSFT} and Windows.Perception.Spatial.SpatialAnchor. An application can use this extension to persist spatial anchors on the Windows device through SpatialAnchorStore or transfer spatial anchors between devices through SpatialAnchorTransferManager.

    + */ +public class MSFTPerceptionAnchorInterop { + + /** The extension specification version. */ + public static final int XR_MSFT_perception_anchor_interop_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_MSFT_PERCEPTION_ANCHOR_INTEROP_EXTENSION_NAME = "XR_MSFT_perception_anchor_interop"; protected MSFTPerceptionAnchorInterop() { throw new UnsupportedOperationException(); - } - - // --- [ xrCreateSpatialAnchorFromPerceptionAnchorMSFT ] --- - - /** Unsafe version of: {@link #xrCreateSpatialAnchorFromPerceptionAnchorMSFT CreateSpatialAnchorFromPerceptionAnchorMSFT} */ - public static int nxrCreateSpatialAnchorFromPerceptionAnchorMSFT(XrSession session, long perceptionAnchor, long anchor) { - long __functionAddress = session.getCapabilities().xrCreateSpatialAnchorFromPerceptionAnchorMSFT; - if (CHECKS) { - check(__functionAddress); - check(perceptionAnchor); - } - return callPPPI(session.address(), perceptionAnchor, anchor, __functionAddress); - } + } + // --- [ xrCreateSpatialAnchorFromPerceptionAnchorMSFT ] --- + + /** Unsafe version of: {@link #xrCreateSpatialAnchorFromPerceptionAnchorMSFT CreateSpatialAnchorFromPerceptionAnchorMSFT} */ + public static int nxrCreateSpatialAnchorFromPerceptionAnchorMSFT(XrSession session, long perceptionAnchor, long anchor) { + long __functionAddress = session.getCapabilities().xrCreateSpatialAnchorFromPerceptionAnchorMSFT; + if (CHECKS) { + check(__functionAddress); + check(perceptionAnchor); + } + return callPPPI(session.address(), perceptionAnchor, anchor, __functionAddress); + } + /** * Create an {@code XrSpatialAnchorMSFT} from a Windows SpatialAnchor pointer. * *
    C Specification
    * - *

    The {@link #xrCreateSpatialAnchorFromPerceptionAnchorMSFT CreateSpatialAnchorFromPerceptionAnchorMSFT} function creates a {@code XrSpatialAnchorMSFT} handle from an {@code IUnknown} pointer to Windows.Perception.Spatial.SpatialAnchor.

    + *

    The {@link #xrCreateSpatialAnchorFromPerceptionAnchorMSFT CreateSpatialAnchorFromPerceptionAnchorMSFT} function creates a {@code XrSpatialAnchorMSFT} handle from an {@code IUnknown} pointer to Windows.Perception.Spatial.SpatialAnchor.

    * *
    
          * XrResult xrCreateSpatialAnchorFromPerceptionAnchorMSFT(
    @@ -57,7 +57,7 @@ public static int nxrCreateSpatialAnchorFromPerceptionAnchorMSFT(XrSession sessi
          * 
          * 
    Description
    * - *

    The input {@code perceptionAnchor} must support successful {@code QueryInterface} to Windows.Perception.Spatial.SpatialAnchor , otherwise the runtime must return {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}.

    + *

    The input {@code perceptionAnchor} must support successful {@code QueryInterface} to Windows.Perception.Spatial.SpatialAnchor , otherwise the runtime must return {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}.

    * *

    If the function successfully returned, the output {@code anchor} must be a valid handle. This also increments the refcount of the {@code perceptionAnchor} object.

    * @@ -93,34 +93,34 @@ public static int nxrCreateSpatialAnchorFromPerceptionAnchorMSFT(XrSession sessi * * * @param session the specified {@code XrSession}. - * @param perceptionAnchor an IUnknown pointer to a Windows.Perception.Spatial.SpatialAnchor object. + * @param perceptionAnchor an IUnknown pointer to a Windows.Perception.Spatial.SpatialAnchor object. * @param anchor a pointer to {@code XrSpatialAnchorMSFT} to receive the returned anchor handle. - */ - @NativeType("XrResult") - public static int xrCreateSpatialAnchorFromPerceptionAnchorMSFT(XrSession session, @NativeType("IUnknown *") long perceptionAnchor, @NativeType("XrSpatialAnchorMSFT *") PointerBuffer anchor) { - if (CHECKS) { - check(anchor, 1); - } - return nxrCreateSpatialAnchorFromPerceptionAnchorMSFT(session, perceptionAnchor, memAddress(anchor)); - } - - // --- [ xrTryGetPerceptionAnchorFromSpatialAnchorMSFT ] --- - - /** Unsafe version of: {@link #xrTryGetPerceptionAnchorFromSpatialAnchorMSFT TryGetPerceptionAnchorFromSpatialAnchorMSFT} */ - public static int nxrTryGetPerceptionAnchorFromSpatialAnchorMSFT(XrSession session, XrSpatialAnchorMSFT anchor, long perceptionAnchor) { - long __functionAddress = session.getCapabilities().xrTryGetPerceptionAnchorFromSpatialAnchorMSFT; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), anchor.address(), perceptionAnchor, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrCreateSpatialAnchorFromPerceptionAnchorMSFT(XrSession session, @NativeType("IUnknown *") long perceptionAnchor, @NativeType("XrSpatialAnchorMSFT *") PointerBuffer anchor) { + if (CHECKS) { + check(anchor, 1); + } + return nxrCreateSpatialAnchorFromPerceptionAnchorMSFT(session, perceptionAnchor, memAddress(anchor)); + } + // --- [ xrTryGetPerceptionAnchorFromSpatialAnchorMSFT ] --- + + /** Unsafe version of: {@link #xrTryGetPerceptionAnchorFromSpatialAnchorMSFT TryGetPerceptionAnchorFromSpatialAnchorMSFT} */ + public static int nxrTryGetPerceptionAnchorFromSpatialAnchorMSFT(XrSession session, XrSpatialAnchorMSFT anchor, long perceptionAnchor) { + long __functionAddress = session.getCapabilities().xrTryGetPerceptionAnchorFromSpatialAnchorMSFT; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(session.address(), anchor.address(), perceptionAnchor, __functionAddress); + } + /** * Convert an {@code XrSpatialAnchorMSFT} to a Windows SpatialAnchor. * *
    C Specification
    * - *

    The {@link #xrTryGetPerceptionAnchorFromSpatialAnchorMSFT TryGetPerceptionAnchorFromSpatialAnchorMSFT} function converts a {@code XrSpatialAnchorMSFT} handle into an {@code IUnknown} pointer to Windows.Perception.Spatial.SpatialAnchor.

    + *

    The {@link #xrTryGetPerceptionAnchorFromSpatialAnchorMSFT TryGetPerceptionAnchorFromSpatialAnchorMSFT} function converts a {@code XrSpatialAnchorMSFT} handle into an {@code IUnknown} pointer to Windows.Perception.Spatial.SpatialAnchor.

    * *
    
          * XrResult xrTryGetPerceptionAnchorFromSpatialAnchorMSFT(
    @@ -130,9 +130,9 @@ public static int nxrTryGetPerceptionAnchorFromSpatialAnchorMSFT(XrSession sessi
          * 
          * 
    Description
    * - *

    If the runtime can convert the {@code anchor} to a Windows.Perception.Spatial.SpatialAnchor object, this function must return {@link XR10#XR_SUCCESS SUCCESS}, and the output {@code IUnknown} in the pointer of {@code perceptionAnchor} must be not {@code NULL}. This also increments the refcount of the object. The application can then use {@code QueryInterface} to get the pointer for Windows.Perception.Spatial.SpatialAnchor object. The application should release the COM pointer after done with the object, or attach it to a smart COM pointer such as {@code winrt::com_ptr}.

    + *

    If the runtime can convert the {@code anchor} to a Windows.Perception.Spatial.SpatialAnchor object, this function must return {@link XR10#XR_SUCCESS SUCCESS}, and the output {@code IUnknown} in the pointer of {@code perceptionAnchor} must be not {@code NULL}. This also increments the refcount of the object. The application can then use {@code QueryInterface} to get the pointer for Windows.Perception.Spatial.SpatialAnchor object. The application should release the COM pointer after done with the object, or attach it to a smart COM pointer such as {@code winrt::com_ptr}.

    * - *

    If the runtime cannot convert the {@code anchor} to a Windows.Perception.Spatial.SpatialAnchor object, the function must return {@link XR10#XR_SUCCESS SUCCESS}, and the output {@code IUnknown} in the pointer of {@code perceptionAnchor} must be {@code NULL}.

    + *

    If the runtime cannot convert the {@code anchor} to a Windows.Perception.Spatial.SpatialAnchor object, the function must return {@link XR10#XR_SUCCESS SUCCESS}, and the output {@code IUnknown} in the pointer of {@code perceptionAnchor} must be {@code NULL}.

    * *
    Valid Usage (Implicit)
    * @@ -165,14 +165,14 @@ public static int nxrTryGetPerceptionAnchorFromSpatialAnchorMSFT(XrSession sessi * * @param session the specified {@code XrSession}. * @param anchor a valid {@code XrSpatialAnchorMSFT} handle. - * @param perceptionAnchor a valid pointer to IUnknown pointer to receive the output Windows.Perception.Spatial.SpatialAnchor object. - */ - @NativeType("XrResult") - public static int xrTryGetPerceptionAnchorFromSpatialAnchorMSFT(XrSession session, XrSpatialAnchorMSFT anchor, @NativeType("IUnknown **") PointerBuffer perceptionAnchor) { - if (CHECKS) { - check(perceptionAnchor, 1); - } - return nxrTryGetPerceptionAnchorFromSpatialAnchorMSFT(session, anchor, memAddress(perceptionAnchor)); - } + * @param perceptionAnchor a valid pointer to IUnknown pointer to receive the output Windows.Perception.Spatial.SpatialAnchor object. + */ + @NativeType("XrResult") + public static int xrTryGetPerceptionAnchorFromSpatialAnchorMSFT(XrSession session, XrSpatialAnchorMSFT anchor, @NativeType("IUnknown **") PointerBuffer perceptionAnchor) { + if (CHECKS) { + check(perceptionAnchor, 1); + } + return nxrTryGetPerceptionAnchorFromSpatialAnchorMSFT(session, anchor, memAddress(perceptionAnchor)); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSceneUnderstanding.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSceneUnderstanding.java index 2f1bd0ddd9..09a1014b7e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSceneUnderstanding.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSceneUnderstanding.java @@ -4,19 +4,19 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - + import org.lwjgl.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_MSFT_scene_understanding extension. * @@ -42,15 +42,15 @@ *
  • Get properties of scene components using {@link #xrGetSceneComponentsMSFT GetSceneComponentsMSFT}.
  • *
  • Locate scene components using {@link #xrLocateSceneComponentsMSFT LocateSceneComponentsMSFT}.
  • * - */ -public class MSFTSceneUnderstanding { - - /** The extension specification version. */ - public static final int XR_MSFT_scene_understanding_SPEC_VERSION = 2; - - /** The extension name. */ - public static final String XR_MSFT_SCENE_UNDERSTANDING_EXTENSION_NAME = "XR_MSFT_scene_understanding"; - + */ +public class MSFTSceneUnderstanding { + + /** The extension specification version. */ + public static final int XR_MSFT_scene_understanding_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_MSFT_SCENE_UNDERSTANDING_EXTENSION_NAME = "XR_MSFT_scene_understanding"; + /** * Extends {@code XrObjectType}. * @@ -60,11 +60,11 @@ public class MSFTSceneUnderstanding { *
  • {@link #XR_OBJECT_TYPE_SCENE_OBSERVER_MSFT OBJECT_TYPE_SCENE_OBSERVER_MSFT}
  • *
  • {@link #XR_OBJECT_TYPE_SCENE_MSFT OBJECT_TYPE_SCENE_MSFT}
  • * - */ + */ public static final int - XR_OBJECT_TYPE_SCENE_OBSERVER_MSFT = 1000097000, - XR_OBJECT_TYPE_SCENE_MSFT = 1000097001; - + XR_OBJECT_TYPE_SCENE_OBSERVER_MSFT = 1000097000, + XR_OBJECT_TYPE_SCENE_MSFT = 1000097001; + /** * Extends {@code XrStructureType}. * @@ -91,28 +91,28 @@ public class MSFTSceneUnderstanding { *
  • {@link #XR_TYPE_SCENE_MESH_INDICES_UINT32_MSFT TYPE_SCENE_MESH_INDICES_UINT32_MSFT}
  • *
  • {@link #XR_TYPE_SCENE_MESH_INDICES_UINT16_MSFT TYPE_SCENE_MESH_INDICES_UINT16_MSFT}
  • * - */ + */ public static final int - XR_TYPE_SCENE_OBSERVER_CREATE_INFO_MSFT = 1000097000, - XR_TYPE_SCENE_CREATE_INFO_MSFT = 1000097001, - XR_TYPE_NEW_SCENE_COMPUTE_INFO_MSFT = 1000097002, - XR_TYPE_VISUAL_MESH_COMPUTE_LOD_INFO_MSFT = 1000097003, - XR_TYPE_SCENE_COMPONENTS_MSFT = 1000097004, - XR_TYPE_SCENE_COMPONENTS_GET_INFO_MSFT = 1000097005, - XR_TYPE_SCENE_COMPONENT_LOCATIONS_MSFT = 1000097006, - XR_TYPE_SCENE_COMPONENTS_LOCATE_INFO_MSFT = 1000097007, - XR_TYPE_SCENE_OBJECTS_MSFT = 1000097008, - XR_TYPE_SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT = 1000097009, - XR_TYPE_SCENE_OBJECT_TYPES_FILTER_INFO_MSFT = 1000097010, - XR_TYPE_SCENE_PLANES_MSFT = 1000097011, - XR_TYPE_SCENE_PLANE_ALIGNMENT_FILTER_INFO_MSFT = 1000097012, - XR_TYPE_SCENE_MESHES_MSFT = 1000097013, - XR_TYPE_SCENE_MESH_BUFFERS_GET_INFO_MSFT = 1000097014, - XR_TYPE_SCENE_MESH_BUFFERS_MSFT = 1000097015, - XR_TYPE_SCENE_MESH_VERTEX_BUFFER_MSFT = 1000097016, - XR_TYPE_SCENE_MESH_INDICES_UINT32_MSFT = 1000097017, - XR_TYPE_SCENE_MESH_INDICES_UINT16_MSFT = 1000097018; - + XR_TYPE_SCENE_OBSERVER_CREATE_INFO_MSFT = 1000097000, + XR_TYPE_SCENE_CREATE_INFO_MSFT = 1000097001, + XR_TYPE_NEW_SCENE_COMPUTE_INFO_MSFT = 1000097002, + XR_TYPE_VISUAL_MESH_COMPUTE_LOD_INFO_MSFT = 1000097003, + XR_TYPE_SCENE_COMPONENTS_MSFT = 1000097004, + XR_TYPE_SCENE_COMPONENTS_GET_INFO_MSFT = 1000097005, + XR_TYPE_SCENE_COMPONENT_LOCATIONS_MSFT = 1000097006, + XR_TYPE_SCENE_COMPONENTS_LOCATE_INFO_MSFT = 1000097007, + XR_TYPE_SCENE_OBJECTS_MSFT = 1000097008, + XR_TYPE_SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT = 1000097009, + XR_TYPE_SCENE_OBJECT_TYPES_FILTER_INFO_MSFT = 1000097010, + XR_TYPE_SCENE_PLANES_MSFT = 1000097011, + XR_TYPE_SCENE_PLANE_ALIGNMENT_FILTER_INFO_MSFT = 1000097012, + XR_TYPE_SCENE_MESHES_MSFT = 1000097013, + XR_TYPE_SCENE_MESH_BUFFERS_GET_INFO_MSFT = 1000097014, + XR_TYPE_SCENE_MESH_BUFFERS_MSFT = 1000097015, + XR_TYPE_SCENE_MESH_VERTEX_BUFFER_MSFT = 1000097016, + XR_TYPE_SCENE_MESH_INDICES_UINT32_MSFT = 1000097017, + XR_TYPE_SCENE_MESH_INDICES_UINT16_MSFT = 1000097018; + /** * Extends {@code XrResult}. * @@ -126,15 +126,15 @@ public class MSFTSceneUnderstanding { *
  • {@link #XR_ERROR_SCENE_COMPUTE_FEATURE_INCOMPATIBLE_MSFT ERROR_SCENE_COMPUTE_FEATURE_INCOMPATIBLE_MSFT}
  • *
  • {@link #XR_ERROR_SCENE_COMPUTE_CONSISTENCY_MISMATCH_MSFT ERROR_SCENE_COMPUTE_CONSISTENCY_MISMATCH_MSFT}
  • * - */ + */ public static final int - XR_ERROR_COMPUTE_NEW_SCENE_NOT_COMPLETED_MSFT = -1000097000, - XR_ERROR_SCENE_COMPONENT_ID_INVALID_MSFT = -1000097001, - XR_ERROR_SCENE_COMPONENT_TYPE_MISMATCH_MSFT = -1000097002, - XR_ERROR_SCENE_MESH_BUFFER_ID_INVALID_MSFT = -1000097003, - XR_ERROR_SCENE_COMPUTE_FEATURE_INCOMPATIBLE_MSFT = -1000097004, - XR_ERROR_SCENE_COMPUTE_CONSISTENCY_MISMATCH_MSFT = -1000097005; - + XR_ERROR_COMPUTE_NEW_SCENE_NOT_COMPLETED_MSFT = -1000097000, + XR_ERROR_SCENE_COMPONENT_ID_INVALID_MSFT = -1000097001, + XR_ERROR_SCENE_COMPONENT_TYPE_MISMATCH_MSFT = -1000097002, + XR_ERROR_SCENE_MESH_BUFFER_ID_INVALID_MSFT = -1000097003, + XR_ERROR_SCENE_COMPUTE_FEATURE_INCOMPATIBLE_MSFT = -1000097004, + XR_ERROR_SCENE_COMPUTE_CONSISTENCY_MISMATCH_MSFT = -1000097005; + /** * XrSceneComputeFeatureMSFT - Scene compute feature * @@ -159,13 +159,13 @@ public class MSFTSceneUnderstanding { *
    See Also
    * *

    {@link XrNewSceneComputeInfoMSFT}, {@link #xrComputeNewSceneMSFT ComputeNewSceneMSFT}, {@link #xrEnumerateSceneComputeFeaturesMSFT EnumerateSceneComputeFeaturesMSFT}

    - */ + */ public static final int - XR_SCENE_COMPUTE_FEATURE_PLANE_MSFT = 1, - XR_SCENE_COMPUTE_FEATURE_PLANE_MESH_MSFT = 2, - XR_SCENE_COMPUTE_FEATURE_VISUAL_MESH_MSFT = 3, - XR_SCENE_COMPUTE_FEATURE_COLLIDER_MESH_MSFT = 4; - + XR_SCENE_COMPUTE_FEATURE_PLANE_MSFT = 1, + XR_SCENE_COMPUTE_FEATURE_PLANE_MESH_MSFT = 2, + XR_SCENE_COMPUTE_FEATURE_VISUAL_MESH_MSFT = 3, + XR_SCENE_COMPUTE_FEATURE_COLLIDER_MESH_MSFT = 4; + /** * XrSceneComputeConsistencyMSFT - Scene compute consistency * @@ -180,12 +180,12 @@ public class MSFTSceneUnderstanding { *
    See Also
    * *

    {@link XrNewSceneComputeInfoMSFT}, {@link #xrComputeNewSceneMSFT ComputeNewSceneMSFT}

    - */ + */ public static final int - XR_SCENE_COMPUTE_CONSISTENCY_SNAPSHOT_COMPLETE_MSFT = 1, - XR_SCENE_COMPUTE_CONSISTENCY_SNAPSHOT_INCOMPLETE_FAST_MSFT = 2, - XR_SCENE_COMPUTE_CONSISTENCY_OCCLUSION_OPTIMIZED_MSFT = 3; - + XR_SCENE_COMPUTE_CONSISTENCY_SNAPSHOT_COMPLETE_MSFT = 1, + XR_SCENE_COMPUTE_CONSISTENCY_SNAPSHOT_INCOMPLETE_FAST_MSFT = 2, + XR_SCENE_COMPUTE_CONSISTENCY_OCCLUSION_OPTIMIZED_MSFT = 3; + /** * XrMeshComputeLodMSFT - Mesh compute level of detail enumeration * @@ -201,13 +201,13 @@ public class MSFTSceneUnderstanding { *
    See Also
    * *

    {@link XrVisualMeshComputeLodInfoMSFT}

    - */ + */ public static final int - XR_MESH_COMPUTE_LOD_COARSE_MSFT = 1, - XR_MESH_COMPUTE_LOD_MEDIUM_MSFT = 2, - XR_MESH_COMPUTE_LOD_FINE_MSFT = 3, - XR_MESH_COMPUTE_LOD_UNLIMITED_MSFT = 4; - + XR_MESH_COMPUTE_LOD_COARSE_MSFT = 1, + XR_MESH_COMPUTE_LOD_MEDIUM_MSFT = 2, + XR_MESH_COMPUTE_LOD_FINE_MSFT = 3, + XR_MESH_COMPUTE_LOD_UNLIMITED_MSFT = 4; + /** * XrSceneComponentTypeMSFT - Scene component type * @@ -224,14 +224,14 @@ public class MSFTSceneUnderstanding { *
    See Also
    * *

    {@link XrSceneComponentMSFT}, {@link XrSceneComponentsGetInfoMSFT}

    - */ + */ public static final int - XR_SCENE_COMPONENT_TYPE_INVALID_MSFT = -1, - XR_SCENE_COMPONENT_TYPE_OBJECT_MSFT = 1, - XR_SCENE_COMPONENT_TYPE_PLANE_MSFT = 2, - XR_SCENE_COMPONENT_TYPE_VISUAL_MESH_MSFT = 3, - XR_SCENE_COMPONENT_TYPE_COLLIDER_MESH_MSFT = 4; - + XR_SCENE_COMPONENT_TYPE_INVALID_MSFT = -1, + XR_SCENE_COMPONENT_TYPE_OBJECT_MSFT = 1, + XR_SCENE_COMPONENT_TYPE_PLANE_MSFT = 2, + XR_SCENE_COMPONENT_TYPE_VISUAL_MESH_MSFT = 3, + XR_SCENE_COMPONENT_TYPE_COLLIDER_MESH_MSFT = 4; + /** * XrSceneObjectTypeMSFT - Scene object type * @@ -250,16 +250,16 @@ public class MSFTSceneUnderstanding { *
    See Also
    * *

    {@link XrNewSceneComputeInfoMSFT}, {@link XrSceneObjectMSFT}, {@link XrSceneObjectTypesFilterInfoMSFT}

    - */ + */ public static final int - XR_SCENE_OBJECT_TYPE_UNCATEGORIZED_MSFT = -1, - XR_SCENE_OBJECT_TYPE_BACKGROUND_MSFT = 1, - XR_SCENE_OBJECT_TYPE_WALL_MSFT = 2, - XR_SCENE_OBJECT_TYPE_FLOOR_MSFT = 3, - XR_SCENE_OBJECT_TYPE_CEILING_MSFT = 4, - XR_SCENE_OBJECT_TYPE_PLATFORM_MSFT = 5, - XR_SCENE_OBJECT_TYPE_INFERRED_MSFT = 6; - + XR_SCENE_OBJECT_TYPE_UNCATEGORIZED_MSFT = -1, + XR_SCENE_OBJECT_TYPE_BACKGROUND_MSFT = 1, + XR_SCENE_OBJECT_TYPE_WALL_MSFT = 2, + XR_SCENE_OBJECT_TYPE_FLOOR_MSFT = 3, + XR_SCENE_OBJECT_TYPE_CEILING_MSFT = 4, + XR_SCENE_OBJECT_TYPE_PLATFORM_MSFT = 5, + XR_SCENE_OBJECT_TYPE_INFERRED_MSFT = 6; + /** * XrScenePlaneAlignmentTypeMSFT - Scene plane alignment type * @@ -274,12 +274,12 @@ public class MSFTSceneUnderstanding { *
    See Also
    * *

    {@link XrScenePlaneAlignmentFilterInfoMSFT}, {@link XrScenePlaneMSFT}

    - */ + */ public static final int - XR_SCENE_PLANE_ALIGNMENT_TYPE_NON_ORTHOGONAL_MSFT = 0, - XR_SCENE_PLANE_ALIGNMENT_TYPE_HORIZONTAL_MSFT = 1, - XR_SCENE_PLANE_ALIGNMENT_TYPE_VERTICAL_MSFT = 2; - + XR_SCENE_PLANE_ALIGNMENT_TYPE_NON_ORTHOGONAL_MSFT = 0, + XR_SCENE_PLANE_ALIGNMENT_TYPE_HORIZONTAL_MSFT = 1, + XR_SCENE_PLANE_ALIGNMENT_TYPE_VERTICAL_MSFT = 2; + /** * XrSceneComputeStateMSFT - Scene compute state type * @@ -295,32 +295,32 @@ public class MSFTSceneUnderstanding { *
    See Also
    * *

    {@link #xrGetSceneComputeStateMSFT GetSceneComputeStateMSFT}

    - */ + */ public static final int - XR_SCENE_COMPUTE_STATE_NONE_MSFT = 0, - XR_SCENE_COMPUTE_STATE_UPDATING_MSFT = 1, - XR_SCENE_COMPUTE_STATE_COMPLETED_MSFT = 2, - XR_SCENE_COMPUTE_STATE_COMPLETED_WITH_ERROR_MSFT = 3; + XR_SCENE_COMPUTE_STATE_NONE_MSFT = 0, + XR_SCENE_COMPUTE_STATE_UPDATING_MSFT = 1, + XR_SCENE_COMPUTE_STATE_COMPLETED_MSFT = 2, + XR_SCENE_COMPUTE_STATE_COMPLETED_WITH_ERROR_MSFT = 3; protected MSFTSceneUnderstanding() { throw new UnsupportedOperationException(); - } - - // --- [ xrEnumerateSceneComputeFeaturesMSFT ] --- + } + // --- [ xrEnumerateSceneComputeFeaturesMSFT ] --- + /** * Unsafe version of: {@link #xrEnumerateSceneComputeFeaturesMSFT EnumerateSceneComputeFeaturesMSFT} * * @param featureCapacityInput the capacity of the array, or 0 to indicate a request to retrieve the required capacity. - */ - public static int nxrEnumerateSceneComputeFeaturesMSFT(XrInstance instance, long systemId, int featureCapacityInput, long featureCountOutput, long features) { - long __functionAddress = instance.getCapabilities().xrEnumerateSceneComputeFeaturesMSFT; - if (CHECKS) { - check(__functionAddress); - } - return callPJPPI(instance.address(), systemId, featureCapacityInput, featureCountOutput, features, __functionAddress); - } - + */ + public static int nxrEnumerateSceneComputeFeaturesMSFT(XrInstance instance, long systemId, int featureCapacityInput, long featureCountOutput, long features) { + long __functionAddress = instance.getCapabilities().xrEnumerateSceneComputeFeaturesMSFT; + if (CHECKS) { + check(__functionAddress); + } + return callPJPPI(instance.address(), systemId, featureCapacityInput, featureCountOutput, features, __functionAddress); + } + /** * Enumerates scene compute features. * @@ -328,7 +328,7 @@ public static int nxrEnumerateSceneComputeFeaturesMSFT(XrInstance instance, long * *

    The {@link #xrEnumerateSceneComputeFeaturesMSFT EnumerateSceneComputeFeaturesMSFT} function enumerates the supported scene compute features of the given system.

    * - *

    This function follows the two-call idiom for filling the {@code features} array.

    + *

    This function follows the two-call idiom for filling the {@code features} array.

    * *
    
          * XrResult xrEnumerateSceneComputeFeaturesMSFT(
    @@ -375,26 +375,26 @@ public static int nxrEnumerateSceneComputeFeaturesMSFT(XrInstance instance, long
          * @param systemId           the {@code XrSystemId} whose scene compute features will be enumerated.
          * @param featureCountOutput a pointer to the count of scene compute features, or a pointer to the required capacity in the case that {@code featureCapacityInput} is insufficient.
          * @param features           an array of {@code XrSceneComputeFeatureMSFT}.
    -     */
    -    @NativeType("XrResult")
    -    public static int xrEnumerateSceneComputeFeaturesMSFT(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("uint32_t *") IntBuffer featureCountOutput, @Nullable @NativeType("XrSceneComputeFeatureMSFT *") IntBuffer features) {
    -        if (CHECKS) {
    -            check(featureCountOutput, 1);
    -        }
    -        return nxrEnumerateSceneComputeFeaturesMSFT(instance, systemId, remainingSafe(features), memAddress(featureCountOutput), memAddressSafe(features));
    -    }
    -
    -    // --- [ xrCreateSceneObserverMSFT ] ---
    -
    -    /** Unsafe version of: {@link #xrCreateSceneObserverMSFT CreateSceneObserverMSFT} */
    -    public static int nxrCreateSceneObserverMSFT(XrSession session, long createInfo, long sceneObserver) {
    -        long __functionAddress = session.getCapabilities().xrCreateSceneObserverMSFT;
    -        if (CHECKS) {
    -            check(__functionAddress);
    -        }
    -        return callPPPI(session.address(), createInfo, sceneObserver, __functionAddress);
    -    }
    +     */
    +    @NativeType("XrResult")
    +    public static int xrEnumerateSceneComputeFeaturesMSFT(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("uint32_t *") IntBuffer featureCountOutput, @Nullable @NativeType("XrSceneComputeFeatureMSFT *") IntBuffer features) {
    +        if (CHECKS) {
    +            check(featureCountOutput, 1);
    +        }
    +        return nxrEnumerateSceneComputeFeaturesMSFT(instance, systemId, remainingSafe(features), memAddress(featureCountOutput), memAddressSafe(features));
    +    }
     
    +    // --- [ xrCreateSceneObserverMSFT ] ---
    +
    +    /** Unsafe version of: {@link #xrCreateSceneObserverMSFT CreateSceneObserverMSFT} */
    +    public static int nxrCreateSceneObserverMSFT(XrSession session, long createInfo, long sceneObserver) {
    +        long __functionAddress = session.getCapabilities().xrCreateSceneObserverMSFT;
    +        if (CHECKS) {
    +            check(__functionAddress);
    +        }
    +        return callPPPI(session.address(), createInfo, sceneObserver, __functionAddress);
    +    }
    +
         /**
          * Create a scene observer handle.
          * 
    @@ -445,17 +445,17 @@ public static int nxrCreateSceneObserverMSFT(XrSession session, long createInfo,
          * @param session       an {@code XrSession} in which the scene observer will be active.
          * @param createInfo    exists for extensibility purposes, it is {@code NULL} or a pointer to a valid {@link XrSceneObserverCreateInfoMSFT} structure.
          * @param sceneObserver the returned {@code XrSceneObserverMSFT} handle.
    -     */
    -    @NativeType("XrResult")
    -    public static int xrCreateSceneObserverMSFT(XrSession session, @Nullable @NativeType("XrSceneObserverCreateInfoMSFT const *") XrSceneObserverCreateInfoMSFT createInfo, @NativeType("XrSceneObserverMSFT *") PointerBuffer sceneObserver) {
    -        if (CHECKS) {
    -            check(sceneObserver, 1);
    -        }
    -        return nxrCreateSceneObserverMSFT(session, memAddressSafe(createInfo), memAddress(sceneObserver));
    -    }
    -
    -    // --- [ xrDestroySceneObserverMSFT ] ---
    +     */
    +    @NativeType("XrResult")
    +    public static int xrCreateSceneObserverMSFT(XrSession session, @Nullable @NativeType("XrSceneObserverCreateInfoMSFT const *") XrSceneObserverCreateInfoMSFT createInfo, @NativeType("XrSceneObserverMSFT *") PointerBuffer sceneObserver) {
    +        if (CHECKS) {
    +            check(sceneObserver, 1);
    +        }
    +        return nxrCreateSceneObserverMSFT(session, memAddressSafe(createInfo), memAddress(sceneObserver));
    +    }
     
    +    // --- [ xrDestroySceneObserverMSFT ] ---
    +
         /**
          * Destroy a scene observer handle.
          * 
    @@ -499,27 +499,27 @@ public static int xrCreateSceneObserverMSFT(XrSession session, @Nullable @Native
          * 

    {@link #xrCreateSceneObserverMSFT CreateSceneObserverMSFT}

    * * @param sceneObserver an {@code XrSceneObserverMSFT} previously created by {@link #xrCreateSceneObserverMSFT CreateSceneObserverMSFT}. - */ - @NativeType("XrResult") - public static int xrDestroySceneObserverMSFT(XrSceneObserverMSFT sceneObserver) { - long __functionAddress = sceneObserver.getCapabilities().xrDestroySceneObserverMSFT; - if (CHECKS) { - check(__functionAddress); - } - return callPI(sceneObserver.address(), __functionAddress); - } - - // --- [ xrCreateSceneMSFT ] --- - - /** Unsafe version of: {@link #xrCreateSceneMSFT CreateSceneMSFT} */ - public static int nxrCreateSceneMSFT(XrSceneObserverMSFT sceneObserver, long createInfo, long scene) { - long __functionAddress = sceneObserver.getCapabilities().xrCreateSceneMSFT; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(sceneObserver.address(), createInfo, scene, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrDestroySceneObserverMSFT(XrSceneObserverMSFT sceneObserver) { + long __functionAddress = sceneObserver.getCapabilities().xrDestroySceneObserverMSFT; + if (CHECKS) { + check(__functionAddress); + } + return callPI(sceneObserver.address(), __functionAddress); + } + // --- [ xrCreateSceneMSFT ] --- + + /** Unsafe version of: {@link #xrCreateSceneMSFT CreateSceneMSFT} */ + public static int nxrCreateSceneMSFT(XrSceneObserverMSFT sceneObserver, long createInfo, long scene) { + long __functionAddress = sceneObserver.getCapabilities().xrCreateSceneMSFT; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(sceneObserver.address(), createInfo, scene, __functionAddress); + } + /** * Create a scene handle. * @@ -575,17 +575,17 @@ public static int nxrCreateSceneMSFT(XrSceneObserverMSFT sceneObserver, long cre * @param sceneObserver a handle to an {@code XrSceneObserverMSFT}. * @param createInfo exists for extensibility purposes, it is {@code NULL} or a pointer to a valid {@link XrSceneCreateInfoMSFT} structure. * @param scene the returned {@code XrSceneMSFT} handle. - */ - @NativeType("XrResult") - public static int xrCreateSceneMSFT(XrSceneObserverMSFT sceneObserver, @Nullable @NativeType("XrSceneCreateInfoMSFT const *") XrSceneCreateInfoMSFT createInfo, @NativeType("XrSceneMSFT *") PointerBuffer scene) { - if (CHECKS) { - check(scene, 1); - } - return nxrCreateSceneMSFT(sceneObserver, memAddressSafe(createInfo), memAddress(scene)); - } - - // --- [ xrDestroySceneMSFT ] --- + */ + @NativeType("XrResult") + public static int xrCreateSceneMSFT(XrSceneObserverMSFT sceneObserver, @Nullable @NativeType("XrSceneCreateInfoMSFT const *") XrSceneCreateInfoMSFT createInfo, @NativeType("XrSceneMSFT *") PointerBuffer scene) { + if (CHECKS) { + check(scene, 1); + } + return nxrCreateSceneMSFT(sceneObserver, memAddressSafe(createInfo), memAddress(scene)); + } + // --- [ xrDestroySceneMSFT ] --- + /** * Destroy a scene handle. * @@ -629,28 +629,28 @@ public static int xrCreateSceneMSFT(XrSceneObserverMSFT sceneObserver, @Nullable *

    {@link #xrCreateSceneMSFT CreateSceneMSFT}

    * * @param scene an {@code XrSceneMSFT} previously created by {@link #xrCreateSceneMSFT CreateSceneMSFT}. - */ - @NativeType("XrResult") - public static int xrDestroySceneMSFT(XrSceneMSFT scene) { - long __functionAddress = scene.getCapabilities().xrDestroySceneMSFT; - if (CHECKS) { - check(__functionAddress); - } - return callPI(scene.address(), __functionAddress); - } - - // --- [ xrComputeNewSceneMSFT ] --- - - /** Unsafe version of: {@link #xrComputeNewSceneMSFT ComputeNewSceneMSFT} */ - public static int nxrComputeNewSceneMSFT(XrSceneObserverMSFT sceneObserver, long computeInfo) { - long __functionAddress = sceneObserver.getCapabilities().xrComputeNewSceneMSFT; - if (CHECKS) { - check(__functionAddress); - XrNewSceneComputeInfoMSFT.validate(computeInfo); - } - return callPPI(sceneObserver.address(), computeInfo, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrDestroySceneMSFT(XrSceneMSFT scene) { + long __functionAddress = scene.getCapabilities().xrDestroySceneMSFT; + if (CHECKS) { + check(__functionAddress); + } + return callPI(scene.address(), __functionAddress); + } + // --- [ xrComputeNewSceneMSFT ] --- + + /** Unsafe version of: {@link #xrComputeNewSceneMSFT ComputeNewSceneMSFT} */ + public static int nxrComputeNewSceneMSFT(XrSceneObserverMSFT sceneObserver, long computeInfo) { + long __functionAddress = sceneObserver.getCapabilities().xrComputeNewSceneMSFT; + if (CHECKS) { + check(__functionAddress); + XrNewSceneComputeInfoMSFT.validate(computeInfo); + } + return callPPI(sceneObserver.address(), computeInfo, __functionAddress); + } + /** * Compute new scene. * @@ -774,23 +774,23 @@ public static int nxrComputeNewSceneMSFT(XrSceneObserverMSFT sceneObserver, long * * @param sceneObserver a handle to an {@code XrSceneObserverMSFT}. * @param computeInfo a pointer to an {@link XrNewSceneComputeInfoMSFT} structure. - */ - @NativeType("XrResult") - public static int xrComputeNewSceneMSFT(XrSceneObserverMSFT sceneObserver, @NativeType("XrNewSceneComputeInfoMSFT const *") XrNewSceneComputeInfoMSFT computeInfo) { - return nxrComputeNewSceneMSFT(sceneObserver, computeInfo.address()); - } - - // --- [ xrGetSceneComputeStateMSFT ] --- - - /** Unsafe version of: {@link #xrGetSceneComputeStateMSFT GetSceneComputeStateMSFT} */ - public static int nxrGetSceneComputeStateMSFT(XrSceneObserverMSFT sceneObserver, long state) { - long __functionAddress = sceneObserver.getCapabilities().xrGetSceneComputeStateMSFT; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(sceneObserver.address(), state, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrComputeNewSceneMSFT(XrSceneObserverMSFT sceneObserver, @NativeType("XrNewSceneComputeInfoMSFT const *") XrNewSceneComputeInfoMSFT computeInfo) { + return nxrComputeNewSceneMSFT(sceneObserver, computeInfo.address()); + } + // --- [ xrGetSceneComputeStateMSFT ] --- + + /** Unsafe version of: {@link #xrGetSceneComputeStateMSFT GetSceneComputeStateMSFT} */ + public static int nxrGetSceneComputeStateMSFT(XrSceneObserverMSFT sceneObserver, long state) { + long __functionAddress = sceneObserver.getCapabilities().xrGetSceneComputeStateMSFT; + if (CHECKS) { + check(__functionAddress); + } + return callPPI(sceneObserver.address(), state, __functionAddress); + } + /** * Get the scene compute state. * @@ -833,32 +833,32 @@ public static int nxrGetSceneComputeStateMSFT(XrSceneObserverMSFT sceneObserver, * * @param sceneObserver a handle to an {@code XrSceneObserverMSFT}. * @param state the returned {@code XrSceneComputeStateMSFT} value. - */ - @NativeType("XrResult") - public static int xrGetSceneComputeStateMSFT(XrSceneObserverMSFT sceneObserver, @NativeType("XrSceneComputeStateMSFT *") IntBuffer state) { - if (CHECKS) { - check(state, 1); - } - return nxrGetSceneComputeStateMSFT(sceneObserver, memAddress(state)); - } - - // --- [ xrGetSceneComponentsMSFT ] --- - - /** Unsafe version of: {@link #xrGetSceneComponentsMSFT GetSceneComponentsMSFT} */ - public static int nxrGetSceneComponentsMSFT(XrSceneMSFT scene, long getInfo, long components) { - long __functionAddress = scene.getCapabilities().xrGetSceneComponentsMSFT; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(scene.address(), getInfo, components, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrGetSceneComputeStateMSFT(XrSceneObserverMSFT sceneObserver, @NativeType("XrSceneComputeStateMSFT *") IntBuffer state) { + if (CHECKS) { + check(state, 1); + } + return nxrGetSceneComputeStateMSFT(sceneObserver, memAddress(state)); + } + // --- [ xrGetSceneComponentsMSFT ] --- + + /** Unsafe version of: {@link #xrGetSceneComponentsMSFT GetSceneComponentsMSFT} */ + public static int nxrGetSceneComponentsMSFT(XrSceneMSFT scene, long getInfo, long components) { + long __functionAddress = scene.getCapabilities().xrGetSceneComponentsMSFT; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(scene.address(), getInfo, components, __functionAddress); + } + /** * Get scene components from a scene. * *
    C Specification
    * - *

    Scene components are read from an {@code XrSceneMSFT} using {@link #xrGetSceneComponentsMSFT GetSceneComponentsMSFT} and passing one {@code XrSceneComponentTypeMSFT}. This function follows the two-call idiom for filling multiple buffers in a struct. Different scene component types may have additional properties that can be read by chaining additional structures to {@link XrSceneComponentsMSFT}. Those additional structures must have an array size that is at least as large as {@link XrSceneComponentsMSFT}::componentCapacityInput, otherwise the runtime must return {@link XR10#XR_ERROR_SIZE_INSUFFICIENT ERROR_SIZE_INSUFFICIENT}.

    + *

    Scene components are read from an {@code XrSceneMSFT} using {@link #xrGetSceneComponentsMSFT GetSceneComponentsMSFT} and passing one {@code XrSceneComponentTypeMSFT}. This function follows the two-call idiom for filling multiple buffers in a struct. Different scene component types may have additional properties that can be read by chaining additional structures to {@link XrSceneComponentsMSFT}. Those additional structures must have an array size that is at least as large as {@link XrSceneComponentsMSFT}::componentCapacityInput, otherwise the runtime must return {@link XR10#XR_ERROR_SIZE_INSUFFICIENT ERROR_SIZE_INSUFFICIENT}.

    * *
      *
    • If {@link #XR_SCENE_COMPONENT_TYPE_OBJECT_MSFT SCENE_COMPONENT_TYPE_OBJECT_MSFT} is passed to {@link #xrGetSceneComponentsMSFT GetSceneComponentsMSFT}, then {@link XrSceneObjectsMSFT} may be included in the {@link XrSceneComponentsMSFT}{@code ::next} chain.
    • @@ -910,24 +910,24 @@ public static int nxrGetSceneComponentsMSFT(XrSceneMSFT scene, long getInfo, lon * @param scene an {@code XrSceneMSFT} previously created by {@link #xrCreateSceneMSFT CreateSceneMSFT}. * @param getInfo a pointer to an {@link XrSceneComponentsGetInfoMSFT} structure. * @param components the {@link XrSceneComponentsMSFT} output structure. - */ - @NativeType("XrResult") - public static int xrGetSceneComponentsMSFT(XrSceneMSFT scene, @NativeType("XrSceneComponentsGetInfoMSFT const *") XrSceneComponentsGetInfoMSFT getInfo, @NativeType("XrSceneComponentsMSFT *") XrSceneComponentsMSFT components) { - return nxrGetSceneComponentsMSFT(scene, getInfo.address(), components.address()); - } - - // --- [ xrLocateSceneComponentsMSFT ] --- - - /** Unsafe version of: {@link #xrLocateSceneComponentsMSFT LocateSceneComponentsMSFT} */ - public static int nxrLocateSceneComponentsMSFT(XrSceneMSFT scene, long locateInfo, long locations) { - long __functionAddress = scene.getCapabilities().xrLocateSceneComponentsMSFT; - if (CHECKS) { - check(__functionAddress); - XrSceneComponentsLocateInfoMSFT.validate(locateInfo); - } - return callPPPI(scene.address(), locateInfo, locations, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrGetSceneComponentsMSFT(XrSceneMSFT scene, @NativeType("XrSceneComponentsGetInfoMSFT const *") XrSceneComponentsGetInfoMSFT getInfo, @NativeType("XrSceneComponentsMSFT *") XrSceneComponentsMSFT components) { + return nxrGetSceneComponentsMSFT(scene, getInfo.address(), components.address()); + } + // --- [ xrLocateSceneComponentsMSFT ] --- + + /** Unsafe version of: {@link #xrLocateSceneComponentsMSFT LocateSceneComponentsMSFT} */ + public static int nxrLocateSceneComponentsMSFT(XrSceneMSFT scene, long locateInfo, long locations) { + long __functionAddress = scene.getCapabilities().xrLocateSceneComponentsMSFT; + if (CHECKS) { + check(__functionAddress); + XrSceneComponentsLocateInfoMSFT.validate(locateInfo); + } + return callPPPI(scene.address(), locateInfo, locations, __functionAddress); + } + /** * Locate scene components. * @@ -988,23 +988,23 @@ public static int nxrLocateSceneComponentsMSFT(XrSceneMSFT scene, long locateInf * @param scene a handle to an {@code XrSceneMSFT}. * @param locateInfo a pointer to {@link XrSceneComponentsLocateInfoMSFT} describing information to locate scene components. * @param locations a pointer to {@link XrSceneComponentLocationsMSFT} receiving the returned scene component locations. - */ - @NativeType("XrResult") - public static int xrLocateSceneComponentsMSFT(XrSceneMSFT scene, @NativeType("XrSceneComponentsLocateInfoMSFT const *") XrSceneComponentsLocateInfoMSFT locateInfo, @NativeType("XrSceneComponentLocationsMSFT *") XrSceneComponentLocationsMSFT locations) { - return nxrLocateSceneComponentsMSFT(scene, locateInfo.address(), locations.address()); - } - - // --- [ xrGetSceneMeshBuffersMSFT ] --- - - /** Unsafe version of: {@link #xrGetSceneMeshBuffersMSFT GetSceneMeshBuffersMSFT} */ - public static int nxrGetSceneMeshBuffersMSFT(XrSceneMSFT scene, long getInfo, long buffers) { - long __functionAddress = scene.getCapabilities().xrGetSceneMeshBuffersMSFT; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(scene.address(), getInfo, buffers, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrLocateSceneComponentsMSFT(XrSceneMSFT scene, @NativeType("XrSceneComponentsLocateInfoMSFT const *") XrSceneComponentsLocateInfoMSFT locateInfo, @NativeType("XrSceneComponentLocationsMSFT *") XrSceneComponentLocationsMSFT locations) { + return nxrLocateSceneComponentsMSFT(scene, locateInfo.address(), locations.address()); + } + // --- [ xrGetSceneMeshBuffersMSFT ] --- + + /** Unsafe version of: {@link #xrGetSceneMeshBuffersMSFT GetSceneMeshBuffersMSFT} */ + public static int nxrGetSceneMeshBuffersMSFT(XrSceneMSFT scene, long getInfo, long buffers) { + long __functionAddress = scene.getCapabilities().xrGetSceneMeshBuffersMSFT; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(scene.address(), getInfo, buffers, __functionAddress); + } + /** * Get scene mesh buffers. * @@ -1075,10 +1075,10 @@ public static int nxrGetSceneMeshBuffersMSFT(XrSceneMSFT scene, long getInfo, lo * @param scene an {@code XrSceneMSFT} previously created by {@link #xrCreateSceneMSFT CreateSceneMSFT}. * @param getInfo a pointer to an {@link XrSceneMeshBuffersGetInfoMSFT} structure. * @param buffers a pointer to an {@link XrSceneMeshBuffersMSFT} structure for reading a scene mesh buffer. - */ - @NativeType("XrResult") - public static int xrGetSceneMeshBuffersMSFT(XrSceneMSFT scene, @NativeType("XrSceneMeshBuffersGetInfoMSFT const *") XrSceneMeshBuffersGetInfoMSFT getInfo, @NativeType("XrSceneMeshBuffersMSFT *") XrSceneMeshBuffersMSFT buffers) { - return nxrGetSceneMeshBuffersMSFT(scene, getInfo.address(), buffers.address()); - } + */ + @NativeType("XrResult") + public static int xrGetSceneMeshBuffersMSFT(XrSceneMSFT scene, @NativeType("XrSceneMeshBuffersGetInfoMSFT const *") XrSceneMeshBuffersGetInfoMSFT getInfo, @NativeType("XrSceneMeshBuffersMSFT *") XrSceneMeshBuffersMSFT buffers) { + return nxrGetSceneMeshBuffersMSFT(scene, getInfo.address(), buffers.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSceneUnderstandingSerialization.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSceneUnderstandingSerialization.java index 3b984e2d8a..e71f94d196 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSceneUnderstandingSerialization.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSceneUnderstandingSerialization.java @@ -4,30 +4,30 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_MSFT_scene_understanding_serialization extension. * *

      This extension extends the scene understanding extension and enables scenes to be serialized or deserialized. It enables computing a new scene into a serialized binary stream and it enables deserializing a binary stream into an {@code XrSceneMSFT} handle.

      - */ -public class MSFTSceneUnderstandingSerialization { - - /** The extension specification version. */ - public static final int XR_MSFT_scene_understanding_serialization_SPEC_VERSION = 2; - - /** The extension name. */ - public static final String XR_MSFT_SCENE_UNDERSTANDING_SERIALIZATION_EXTENSION_NAME = "XR_MSFT_scene_understanding_serialization"; - + */ +public class MSFTSceneUnderstandingSerialization { + + /** The extension specification version. */ + public static final int XR_MSFT_scene_understanding_serialization_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_MSFT_SCENE_UNDERSTANDING_SERIALIZATION_EXTENSION_NAME = "XR_MSFT_scene_understanding_serialization"; + /** * Extends {@code XrStructureType}. * @@ -37,32 +37,32 @@ public class MSFTSceneUnderstandingSerialization { *
    • {@link #XR_TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT}
    • *
    • {@link #XR_TYPE_SCENE_DESERIALIZE_INFO_MSFT TYPE_SCENE_DESERIALIZE_INFO_MSFT}
    • *
    - */ + */ public static final int - XR_TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT = 1000098000, - XR_TYPE_SCENE_DESERIALIZE_INFO_MSFT = 1000098001; - - /** Extends {@code XrSceneComputeFeatureMSFT}. */ - public static final int XR_SCENE_COMPUTE_FEATURE_SERIALIZE_SCENE_MSFT = 1000098000; - - /** Extends {@code XrSceneComponentTypeMSFT}. */ - public static final int XR_SCENE_COMPONENT_TYPE_SERIALIZED_SCENE_FRAGMENT_MSFT = 1000098000; + XR_TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT = 1000098000, + XR_TYPE_SCENE_DESERIALIZE_INFO_MSFT = 1000098001; + + /** Extends {@code XrSceneComputeFeatureMSFT}. */ + public static final int XR_SCENE_COMPUTE_FEATURE_SERIALIZE_SCENE_MSFT = 1000098000; + + /** Extends {@code XrSceneComponentTypeMSFT}. */ + public static final int XR_SCENE_COMPONENT_TYPE_SERIALIZED_SCENE_FRAGMENT_MSFT = 1000098000; protected MSFTSceneUnderstandingSerialization() { throw new UnsupportedOperationException(); - } - - // --- [ xrDeserializeSceneMSFT ] --- - - /** Unsafe version of: {@link #xrDeserializeSceneMSFT DeserializeSceneMSFT} */ - public static int nxrDeserializeSceneMSFT(XrSceneObserverMSFT sceneObserver, long deserializeInfo) { - long __functionAddress = sceneObserver.getCapabilities().xrDeserializeSceneMSFT; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(sceneObserver.address(), deserializeInfo, __functionAddress); - } - + } + + // --- [ xrDeserializeSceneMSFT ] --- + + /** Unsafe version of: {@link #xrDeserializeSceneMSFT DeserializeSceneMSFT} */ + public static int nxrDeserializeSceneMSFT(XrSceneObserverMSFT sceneObserver, long deserializeInfo) { + long __functionAddress = sceneObserver.getCapabilities().xrDeserializeSceneMSFT; + if (CHECKS) { + check(__functionAddress); + } + return callPPI(sceneObserver.address(), deserializeInfo, __functionAddress); + } + /** * Deserialize scene. * @@ -120,27 +120,27 @@ public static int nxrDeserializeSceneMSFT(XrSceneObserverMSFT sceneObserver, lon * * @param sceneObserver a handle to an {@code XrSceneObserverMSFT} previously created with {@link MSFTSceneUnderstanding#xrCreateSceneObserverMSFT CreateSceneObserverMSFT}. * @param deserializeInfo a pointer to an {@link XrSceneDeserializeInfoMSFT} structure. - */ - @NativeType("XrResult") - public static int xrDeserializeSceneMSFT(XrSceneObserverMSFT sceneObserver, @NativeType("XrSceneDeserializeInfoMSFT const *") XrSceneDeserializeInfoMSFT deserializeInfo) { - return nxrDeserializeSceneMSFT(sceneObserver, deserializeInfo.address()); - } - - // --- [ xrGetSerializedSceneFragmentDataMSFT ] --- - + */ + @NativeType("XrResult") + public static int xrDeserializeSceneMSFT(XrSceneObserverMSFT sceneObserver, @NativeType("XrSceneDeserializeInfoMSFT const *") XrSceneDeserializeInfoMSFT deserializeInfo) { + return nxrDeserializeSceneMSFT(sceneObserver, deserializeInfo.address()); + } + + // --- [ xrGetSerializedSceneFragmentDataMSFT ] --- + /** * Unsafe version of: {@link #xrGetSerializedSceneFragmentDataMSFT GetSerializedSceneFragmentDataMSFT} * * @param countInput the number of bytes that should be read. - */ - public static int nxrGetSerializedSceneFragmentDataMSFT(XrSceneMSFT scene, long getInfo, int countInput, long readOutput, long buffer) { - long __functionAddress = scene.getCapabilities().xrGetSerializedSceneFragmentDataMSFT; - if (CHECKS) { - check(__functionAddress); - } - return callPPPPI(scene.address(), getInfo, countInput, readOutput, buffer, __functionAddress); - } - + */ + public static int nxrGetSerializedSceneFragmentDataMSFT(XrSceneMSFT scene, long getInfo, int countInput, long readOutput, long buffer) { + long __functionAddress = scene.getCapabilities().xrGetSerializedSceneFragmentDataMSFT; + if (CHECKS) { + check(__functionAddress); + } + return callPPPPI(scene.address(), getInfo, countInput, readOutput, buffer, __functionAddress); + } + /** * Get serialized scene fragment data. * @@ -202,13 +202,13 @@ public static int nxrGetSerializedSceneFragmentDataMSFT(XrSceneMSFT scene, long * @param getInfo a pointer to an {@link XrSerializedSceneFragmentDataGetInfoMSFT} structure. * @param readOutput the number of bytes read. * @param buffer a pointer to the buffer where the data should be copied. - */ - @NativeType("XrResult") - public static int xrGetSerializedSceneFragmentDataMSFT(XrSceneMSFT scene, @NativeType("XrSerializedSceneFragmentDataGetInfoMSFT const *") XrSerializedSceneFragmentDataGetInfoMSFT getInfo, @NativeType("uint32_t *") IntBuffer readOutput, @Nullable @NativeType("uint8_t *") ByteBuffer buffer) { - if (CHECKS) { - check(readOutput, 1); - } - return nxrGetSerializedSceneFragmentDataMSFT(scene, getInfo.address(), remainingSafe(buffer), memAddress(readOutput), memAddressSafe(buffer)); - } + */ + @NativeType("XrResult") + public static int xrGetSerializedSceneFragmentDataMSFT(XrSceneMSFT scene, @NativeType("XrSerializedSceneFragmentDataGetInfoMSFT const *") XrSerializedSceneFragmentDataGetInfoMSFT getInfo, @NativeType("uint32_t *") IntBuffer readOutput, @Nullable @NativeType("uint8_t *") ByteBuffer buffer) { + if (CHECKS) { + check(readOutput, 1); + } + return nxrGetSerializedSceneFragmentDataMSFT(scene, getInfo.address(), remainingSafe(buffer), memAddress(readOutput), memAddressSafe(buffer)); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSecondaryViewConfiguration.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSecondaryViewConfiguration.java index 429549f086..35e3895dc9 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSecondaryViewConfiguration.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSecondaryViewConfiguration.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_MSFT_secondary_view_configuration extension. * @@ -22,15 +22,15 @@ *
  • Locate the secondary view configuration views using the {@link XR10#xrLocateViews LocateViews} function with the active secondary view configuration type.
  • *
  • Submit the composition layers using the swapchain images for an active secondary view configuration using the {@link XR10#xrEndFrame EndFrame} function with the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT} chained extension structure.
  • * - */ -public final class MSFTSecondaryViewConfiguration { - - /** The extension specification version. */ - public static final int XR_MSFT_secondary_view_configuration_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_MSFT_SECONDARY_VIEW_CONFIGURATION_EXTENSION_NAME = "XR_MSFT_secondary_view_configuration"; - + */ +public final class MSFTSecondaryViewConfiguration { + + /** The extension specification version. */ + public static final int XR_MSFT_secondary_view_configuration_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_MSFT_SECONDARY_VIEW_CONFIGURATION_EXTENSION_NAME = "XR_MSFT_secondary_view_configuration"; + /** * Extends {@code XrStructureType}. * @@ -44,18 +44,18 @@ public final class MSFTSecondaryViewConfiguration { *
  • {@link #XR_TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT}
  • *
  • {@link #XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT}
  • * - */ + */ public static final int - XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SESSION_BEGIN_INFO_MSFT = 1000053000, - XR_TYPE_SECONDARY_VIEW_CONFIGURATION_STATE_MSFT = 1000053001, - XR_TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_STATE_MSFT = 1000053002, - XR_TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_END_INFO_MSFT = 1000053003, - XR_TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT = 1000053004, - XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT = 1000053005; - - /** Extends {@code XrResult}. */ - public static final int XR_ERROR_SECONDARY_VIEW_CONFIGURATION_TYPE_NOT_ENABLED_MSFT = -1000053000; + XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SESSION_BEGIN_INFO_MSFT = 1000053000, + XR_TYPE_SECONDARY_VIEW_CONFIGURATION_STATE_MSFT = 1000053001, + XR_TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_STATE_MSFT = 1000053002, + XR_TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_END_INFO_MSFT = 1000053003, + XR_TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT = 1000053004, + XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT = 1000053005; + + /** Extends {@code XrResult}. */ + public static final int XR_ERROR_SECONDARY_VIEW_CONFIGURATION_TYPE_NOT_ENABLED_MSFT = -1000053000; - private MSFTSecondaryViewConfiguration() {} + private MSFTSecondaryViewConfiguration() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSpatialAnchor.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSpatialAnchor.java index 6840d4e7e9..c6b389097d 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSpatialAnchor.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSpatialAnchor.java @@ -4,28 +4,28 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import org.lwjgl.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_MSFT_spatial_anchor extension. * *

    This extension allows an application to create a spatial anchor, an arbitrary freespace point in the user’s physical environment that will then be tracked by the runtime. The runtime should then adjust the position and orientation of that anchor’s origin over time as needed, independently of all other spaces and anchors, to ensure that it maintains its original mapping to the real world.

    - */ -public class MSFTSpatialAnchor { - - /** The extension specification version. */ - public static final int XR_MSFT_spatial_anchor_SPEC_VERSION = 2; - - /** The extension name. */ - public static final String XR_MSFT_SPATIAL_ANCHOR_EXTENSION_NAME = "XR_MSFT_spatial_anchor"; - + */ +public class MSFTSpatialAnchor { + + /** The extension specification version. */ + public static final int XR_MSFT_spatial_anchor_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_MSFT_SPATIAL_ANCHOR_EXTENSION_NAME = "XR_MSFT_spatial_anchor"; + /** * Extends {@code XrStructureType}. * @@ -35,33 +35,33 @@ public class MSFTSpatialAnchor { *
  • {@link #XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT}
  • *
  • {@link #XR_TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT}
  • * - */ + */ public static final int - XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT = 1000039000, - XR_TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT = 1000039001; - - /** Extends {@code XrObjectType}. */ - public static final int XR_OBJECT_TYPE_SPATIAL_ANCHOR_MSFT = 1000039000; - - /** Extends {@code XrResult}. */ - public static final int XR_ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT = -1000039001; + XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT = 1000039000, + XR_TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT = 1000039001; + + /** Extends {@code XrObjectType}. */ + public static final int XR_OBJECT_TYPE_SPATIAL_ANCHOR_MSFT = 1000039000; + + /** Extends {@code XrResult}. */ + public static final int XR_ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT = -1000039001; protected MSFTSpatialAnchor() { throw new UnsupportedOperationException(); - } - - // --- [ xrCreateSpatialAnchorMSFT ] --- - - /** Unsafe version of: {@link #xrCreateSpatialAnchorMSFT CreateSpatialAnchorMSFT} */ - public static int nxrCreateSpatialAnchorMSFT(XrSession session, long createInfo, long anchor) { - long __functionAddress = session.getCapabilities().xrCreateSpatialAnchorMSFT; - if (CHECKS) { - check(__functionAddress); - XrSpatialAnchorCreateInfoMSFT.validate(createInfo); - } - return callPPPI(session.address(), createInfo, anchor, __functionAddress); - } + } + // --- [ xrCreateSpatialAnchorMSFT ] --- + + /** Unsafe version of: {@link #xrCreateSpatialAnchorMSFT CreateSpatialAnchorMSFT} */ + public static int nxrCreateSpatialAnchorMSFT(XrSession session, long createInfo, long anchor) { + long __functionAddress = session.getCapabilities().xrCreateSpatialAnchorMSFT; + if (CHECKS) { + check(__functionAddress); + XrSpatialAnchorCreateInfoMSFT.validate(createInfo); + } + return callPPPI(session.address(), createInfo, anchor, __functionAddress); + } + /** * Creates a spatial anchor. * @@ -79,8 +79,6 @@ public static int nxrCreateSpatialAnchorMSFT(XrSession session, long createInfo, * *

    Creates an {@code XrSpatialAnchorMSFT} handle representing a spatial anchor that will track a fixed location in the physical world over time. That real-world location is specified by the position and orientation of the specified {@code pose} within {@code space} at {@code time}.

    * - *

    The runtime must avoid long blocking operations such as networking or disk operations for {@link #xrCreateSpatialAnchorMSFT CreateSpatialAnchorMSFT} function. The application may safely use this function in UI thread. Though, the created anchor handle may not be ready immediately for certain operations yet. For example, the corresponding anchor space may not return valid location, or its location may not be successfully saved in anchor store.

    - * *

    If {@code space} cannot be located relative to the environment at the moment of the call to {@link #xrCreateSpatialAnchorMSFT CreateSpatialAnchorMSFT}, the runtime must return {@link #XR_ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT}.

    * *

    After the anchor is created, the runtime should then adjust its position and orientation over time relative to other spaces so as to maintain maximum alignment to its original real-world location, even if that changes the anchor’s relationship to the original {@code space} used to initialize it.

    @@ -124,27 +122,27 @@ public static int nxrCreateSpatialAnchorMSFT(XrSession session, long createInfo, * @param session a handle to an {@code XrSession}. * @param createInfo a pointer to an {@link XrSpatialAnchorCreateInfoMSFT} structure containing information about how to create the anchor. * @param anchor a pointer to a handle in which the created {@code XrSpatialAnchorMSFT} is returned. - */ - @NativeType("XrResult") - public static int xrCreateSpatialAnchorMSFT(XrSession session, @NativeType("XrSpatialAnchorCreateInfoMSFT const *") XrSpatialAnchorCreateInfoMSFT createInfo, @NativeType("XrSpatialAnchorMSFT *") PointerBuffer anchor) { - if (CHECKS) { - check(anchor, 1); - } - return nxrCreateSpatialAnchorMSFT(session, createInfo.address(), memAddress(anchor)); - } - - // --- [ xrCreateSpatialAnchorSpaceMSFT ] --- - - /** Unsafe version of: {@link #xrCreateSpatialAnchorSpaceMSFT CreateSpatialAnchorSpaceMSFT} */ - public static int nxrCreateSpatialAnchorSpaceMSFT(XrSession session, long createInfo, long space) { - long __functionAddress = session.getCapabilities().xrCreateSpatialAnchorSpaceMSFT; - if (CHECKS) { - check(__functionAddress); - XrSpatialAnchorSpaceCreateInfoMSFT.validate(createInfo); - } - return callPPPI(session.address(), createInfo, space, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrCreateSpatialAnchorMSFT(XrSession session, @NativeType("XrSpatialAnchorCreateInfoMSFT const *") XrSpatialAnchorCreateInfoMSFT createInfo, @NativeType("XrSpatialAnchorMSFT *") PointerBuffer anchor) { + if (CHECKS) { + check(anchor, 1); + } + return nxrCreateSpatialAnchorMSFT(session, createInfo.address(), memAddress(anchor)); + } + // --- [ xrCreateSpatialAnchorSpaceMSFT ] --- + + /** Unsafe version of: {@link #xrCreateSpatialAnchorSpaceMSFT CreateSpatialAnchorSpaceMSFT} */ + public static int nxrCreateSpatialAnchorSpaceMSFT(XrSession session, long createInfo, long space) { + long __functionAddress = session.getCapabilities().xrCreateSpatialAnchorSpaceMSFT; + if (CHECKS) { + check(__functionAddress); + XrSpatialAnchorSpaceCreateInfoMSFT.validate(createInfo); + } + return callPPPI(session.address(), createInfo, space, __functionAddress); + } + /** * Creates a space from a spatial anchor. * @@ -201,17 +199,17 @@ public static int nxrCreateSpatialAnchorSpaceMSFT(XrSession session, long create * @param session a handle to an {@code XrSession}. * @param createInfo a pointer to an {@link XrSpatialAnchorSpaceCreateInfoMSFT} structure containing information about how to create the anchor. * @param space a pointer to a handle in which the created {@code XrSpace} is returned. - */ - @NativeType("XrResult") - public static int xrCreateSpatialAnchorSpaceMSFT(XrSession session, @NativeType("XrSpatialAnchorSpaceCreateInfoMSFT const *") XrSpatialAnchorSpaceCreateInfoMSFT createInfo, @NativeType("XrSpace *") PointerBuffer space) { - if (CHECKS) { - check(space, 1); - } - return nxrCreateSpatialAnchorSpaceMSFT(session, createInfo.address(), memAddress(space)); - } - - // --- [ xrDestroySpatialAnchorMSFT ] --- + */ + @NativeType("XrResult") + public static int xrCreateSpatialAnchorSpaceMSFT(XrSession session, @NativeType("XrSpatialAnchorSpaceCreateInfoMSFT const *") XrSpatialAnchorSpaceCreateInfoMSFT createInfo, @NativeType("XrSpace *") PointerBuffer space) { + if (CHECKS) { + check(space, 1); + } + return nxrCreateSpatialAnchorSpaceMSFT(session, createInfo.address(), memAddress(space)); + } + // --- [ xrDestroySpatialAnchorMSFT ] --- + /** * Destroys a spatial anchor. * @@ -259,14 +257,14 @@ public static int xrCreateSpatialAnchorSpaceMSFT(XrSession session, @NativeType( *

    {@link #xrCreateSpatialAnchorMSFT CreateSpatialAnchorMSFT}

    * * @param anchor a handle to an {@code XrSpatialAnchorMSFT} previously created by {@link #xrCreateSpatialAnchorMSFT CreateSpatialAnchorMSFT}. - */ - @NativeType("XrResult") - public static int xrDestroySpatialAnchorMSFT(XrSpatialAnchorMSFT anchor) { - long __functionAddress = anchor.getCapabilities().xrDestroySpatialAnchorMSFT; - if (CHECKS) { - check(__functionAddress); - } - return callPI(anchor.address(), __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrDestroySpatialAnchorMSFT(XrSpatialAnchorMSFT anchor) { + long __functionAddress = anchor.getCapabilities().xrDestroySpatialAnchorMSFT; + if (CHECKS) { + check(__functionAddress); + } + return callPI(anchor.address(), __functionAddress); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSpatialAnchorPersistence.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSpatialAnchorPersistence.java index 95b7e88e56..a4398659c2 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSpatialAnchorPersistence.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSpatialAnchorPersistence.java @@ -4,35 +4,35 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - + import org.lwjgl.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_MSFT_spatial_anchor_persistence extension. * *

    This extension allows persistence and retrieval of spatial anchors sharing and localization across application sessions on a device. Spatial anchors persisted during an application session on a device will only be able to be retrieved during sessions of that same application on the same device. This extension requires {@link MSFTSpatialAnchor XR_MSFT_spatial_anchor} to also be enabled.

    - */ -public class MSFTSpatialAnchorPersistence { - - /** The extension specification version. */ - public static final int XR_MSFT_spatial_anchor_persistence_SPEC_VERSION = 2; - - /** The extension name. */ - public static final String XR_MSFT_SPATIAL_ANCHOR_PERSISTENCE_EXTENSION_NAME = "XR_MSFT_spatial_anchor_persistence"; - - /** Extends {@code XrObjectType}. */ - public static final int XR_OBJECT_TYPE_SPATIAL_ANCHOR_STORE_CONNECTION_MSFT = 1000142000; - + */ +public class MSFTSpatialAnchorPersistence { + + /** The extension specification version. */ + public static final int XR_MSFT_spatial_anchor_persistence_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_MSFT_SPATIAL_ANCHOR_PERSISTENCE_EXTENSION_NAME = "XR_MSFT_spatial_anchor_persistence"; + + /** Extends {@code XrObjectType}. */ + public static final int XR_OBJECT_TYPE_SPATIAL_ANCHOR_STORE_CONNECTION_MSFT = 1000142000; + /** * Extends {@code XrStructureType}. * @@ -42,11 +42,11 @@ public class MSFTSpatialAnchorPersistence { *
  • {@link #XR_TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT}
  • *
  • {@link #XR_TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT}
  • * - */ + */ public static final int - XR_TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT = 1000142000, - XR_TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT = 1000142001; - + XR_TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT = 1000142000, + XR_TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT = 1000142001; + /** * Extends {@code XrResult}. * @@ -56,29 +56,29 @@ public class MSFTSpatialAnchorPersistence { *
  • {@link #XR_ERROR_SPATIAL_ANCHOR_NAME_NOT_FOUND_MSFT ERROR_SPATIAL_ANCHOR_NAME_NOT_FOUND_MSFT}
  • *
  • {@link #XR_ERROR_SPATIAL_ANCHOR_NAME_INVALID_MSFT ERROR_SPATIAL_ANCHOR_NAME_INVALID_MSFT}
  • * - */ + */ public static final int - XR_ERROR_SPATIAL_ANCHOR_NAME_NOT_FOUND_MSFT = -1000142001, - XR_ERROR_SPATIAL_ANCHOR_NAME_INVALID_MSFT = -1000142002; - - /** XR_MAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT */ - public static final int XR_MAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT = 256; + XR_ERROR_SPATIAL_ANCHOR_NAME_NOT_FOUND_MSFT = -1000142001, + XR_ERROR_SPATIAL_ANCHOR_NAME_INVALID_MSFT = -1000142002; + + /** XR_MAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT */ + public static final int XR_MAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT = 256; protected MSFTSpatialAnchorPersistence() { throw new UnsupportedOperationException(); - } - - // --- [ xrCreateSpatialAnchorStoreConnectionMSFT ] --- - - /** Unsafe version of: {@link #xrCreateSpatialAnchorStoreConnectionMSFT CreateSpatialAnchorStoreConnectionMSFT} */ - public static int nxrCreateSpatialAnchorStoreConnectionMSFT(XrSession session, long spatialAnchorStore) { - long __functionAddress = session.getCapabilities().xrCreateSpatialAnchorStoreConnectionMSFT; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(session.address(), spatialAnchorStore, __functionAddress); - } - + } + + // --- [ xrCreateSpatialAnchorStoreConnectionMSFT ] --- + + /** Unsafe version of: {@link #xrCreateSpatialAnchorStoreConnectionMSFT CreateSpatialAnchorStoreConnectionMSFT} */ + public static int nxrCreateSpatialAnchorStoreConnectionMSFT(XrSession session, long spatialAnchorStore) { + long __functionAddress = session.getCapabilities().xrCreateSpatialAnchorStoreConnectionMSFT; + if (CHECKS) { + check(__functionAddress); + } + return callPPI(session.address(), spatialAnchorStore, __functionAddress); + } + /** * Create a handle to track a connection to the spatial anchor store. * @@ -123,17 +123,17 @@ public static int nxrCreateSpatialAnchorStoreConnectionMSFT(XrSession session, l * * @param session the {@code XrSession} the anchor was created with. * @param spatialAnchorStore a pointer to the {@code XrSpatialAnchorStoreConnectionMSFT} handle. - */ - @NativeType("XrResult") - public static int xrCreateSpatialAnchorStoreConnectionMSFT(XrSession session, @NativeType("XrSpatialAnchorStoreConnectionMSFT *") PointerBuffer spatialAnchorStore) { - if (CHECKS) { - check(spatialAnchorStore, 1); - } - return nxrCreateSpatialAnchorStoreConnectionMSFT(session, memAddress(spatialAnchorStore)); - } - - // --- [ xrDestroySpatialAnchorStoreConnectionMSFT ] --- - + */ + @NativeType("XrResult") + public static int xrCreateSpatialAnchorStoreConnectionMSFT(XrSession session, @NativeType("XrSpatialAnchorStoreConnectionMSFT *") PointerBuffer spatialAnchorStore) { + if (CHECKS) { + check(spatialAnchorStore, 1); + } + return nxrCreateSpatialAnchorStoreConnectionMSFT(session, memAddress(spatialAnchorStore)); + } + + // --- [ xrDestroySpatialAnchorStoreConnectionMSFT ] --- + /** * Destroys the anchor store handle. * @@ -174,28 +174,28 @@ public static int xrCreateSpatialAnchorStoreConnectionMSFT(XrSession session, @N * * * @param spatialAnchorStore the {@code XrSpatialAnchorStoreConnectionMSFT} to be destroyed. - */ - @NativeType("XrResult") - public static int xrDestroySpatialAnchorStoreConnectionMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore) { - long __functionAddress = spatialAnchorStore.getCapabilities().xrDestroySpatialAnchorStoreConnectionMSFT; - if (CHECKS) { - check(__functionAddress); - } - return callPI(spatialAnchorStore.address(), __functionAddress); - } - - // --- [ xrPersistSpatialAnchorMSFT ] --- - - /** Unsafe version of: {@link #xrPersistSpatialAnchorMSFT PersistSpatialAnchorMSFT} */ - public static int nxrPersistSpatialAnchorMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, long spatialAnchorPersistenceInfo) { - long __functionAddress = spatialAnchorStore.getCapabilities().xrPersistSpatialAnchorMSFT; - if (CHECKS) { - check(__functionAddress); - XrSpatialAnchorPersistenceInfoMSFT.validate(spatialAnchorPersistenceInfo); - } - return callPPI(spatialAnchorStore.address(), spatialAnchorPersistenceInfo, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrDestroySpatialAnchorStoreConnectionMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore) { + long __functionAddress = spatialAnchorStore.getCapabilities().xrDestroySpatialAnchorStoreConnectionMSFT; + if (CHECKS) { + check(__functionAddress); + } + return callPI(spatialAnchorStore.address(), __functionAddress); + } + + // --- [ xrPersistSpatialAnchorMSFT ] --- + + /** Unsafe version of: {@link #xrPersistSpatialAnchorMSFT PersistSpatialAnchorMSFT} */ + public static int nxrPersistSpatialAnchorMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, long spatialAnchorPersistenceInfo) { + long __functionAddress = spatialAnchorStore.getCapabilities().xrPersistSpatialAnchorMSFT; + if (CHECKS) { + check(__functionAddress); + XrSpatialAnchorPersistenceInfoMSFT.validate(spatialAnchorPersistenceInfo); + } + return callPPI(spatialAnchorStore.address(), spatialAnchorPersistenceInfo, __functionAddress); + } + /** * Persist the spatial anchor in the spatial anchor store. * @@ -242,33 +242,33 @@ public static int nxrPersistSpatialAnchorMSFT(XrSpatialAnchorStoreConnectionMSFT * * @param spatialAnchorStore the {@code XrSpatialAnchorStoreConnectionMSFT} with which to persist the {@code spatialAnchor}. * @param spatialAnchorPersistenceInfo a pointer to {@link XrSpatialAnchorPersistenceInfoMSFT} structure to specify the anchor and its name to persist. - */ - @NativeType("XrResult") - public static int xrPersistSpatialAnchorMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, @NativeType("XrSpatialAnchorPersistenceInfoMSFT const *") XrSpatialAnchorPersistenceInfoMSFT spatialAnchorPersistenceInfo) { - return nxrPersistSpatialAnchorMSFT(spatialAnchorStore, spatialAnchorPersistenceInfo.address()); - } - - // --- [ xrEnumeratePersistedSpatialAnchorNamesMSFT ] --- - + */ + @NativeType("XrResult") + public static int xrPersistSpatialAnchorMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, @NativeType("XrSpatialAnchorPersistenceInfoMSFT const *") XrSpatialAnchorPersistenceInfoMSFT spatialAnchorPersistenceInfo) { + return nxrPersistSpatialAnchorMSFT(spatialAnchorStore, spatialAnchorPersistenceInfo.address()); + } + + // --- [ xrEnumeratePersistedSpatialAnchorNamesMSFT ] --- + /** * Unsafe version of: {@link #xrEnumeratePersistedSpatialAnchorNamesMSFT EnumeratePersistedSpatialAnchorNamesMSFT} * * @param spatialAnchorNamesCapacityInput the capacity of the {@code spatialAnchorNames} array, or 0 to indicate a request to retrieve the required capacity. - */ - public static int nxrEnumeratePersistedSpatialAnchorNamesMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, int spatialAnchorNamesCapacityInput, long spatialAnchorNamesCountOutput, long persistedAnchorNames) { - long __functionAddress = spatialAnchorStore.getCapabilities().xrEnumeratePersistedSpatialAnchorNamesMSFT; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(spatialAnchorStore.address(), spatialAnchorNamesCapacityInput, spatialAnchorNamesCountOutput, persistedAnchorNames, __functionAddress); - } - + */ + public static int nxrEnumeratePersistedSpatialAnchorNamesMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, int spatialAnchorNamesCapacityInput, long spatialAnchorNamesCountOutput, long persistedAnchorNames) { + long __functionAddress = spatialAnchorStore.getCapabilities().xrEnumeratePersistedSpatialAnchorNamesMSFT; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(spatialAnchorStore.address(), spatialAnchorNamesCapacityInput, spatialAnchorNamesCountOutput, persistedAnchorNames, __functionAddress); + } + /** * Enumerate the names of currently persisted spatial anchors in the spatial anchor store. * *
    C Specification
    * - *

    The application can use the {@link #xrEnumeratePersistedSpatialAnchorNamesMSFT EnumeratePersistedSpatialAnchorNamesMSFT} function to enumerate the names of all spatial anchors currently persisted in the spatial anchor store for this application. This function follows the two-call idiom for filling the {@code spatialAnchorNames}.

    + *

    The application can use the {@link #xrEnumeratePersistedSpatialAnchorNamesMSFT EnumeratePersistedSpatialAnchorNamesMSFT} function to enumerate the names of all spatial anchors currently persisted in the spatial anchor store for this application. This function follows the two-call idiom for filling the {@code spatialAnchorNames}.

    * *
    
          * XrResult xrEnumeratePersistedSpatialAnchorNamesMSFT(
    @@ -313,27 +313,27 @@ public static int nxrEnumeratePersistedSpatialAnchorNamesMSFT(XrSpatialAnchorSto
          * @param spatialAnchorStore            the {@code XrSpatialAnchorStoreConnectionMSFT} anchor store to perform the enumeration operation on.
          * @param spatialAnchorNamesCountOutput filled in by the runtime with the count of anchor names written or the required capacity in the case that {@code spatialAnchorNamesCapacityInput} is insufficient.
          * @param persistedAnchorNames          a pointer to an array of {@link XrSpatialAnchorPersistenceNameMSFT} structures, but can be {@code NULL} if propertyCapacityInput is 0.
    -     */
    -    @NativeType("XrResult")
    -    public static int xrEnumeratePersistedSpatialAnchorNamesMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, @Nullable @NativeType("uint32_t *") IntBuffer spatialAnchorNamesCountOutput, @Nullable @NativeType("XrSpatialAnchorPersistenceNameMSFT *") XrSpatialAnchorPersistenceNameMSFT.Buffer persistedAnchorNames) {
    -        if (CHECKS) {
    -            checkSafe(spatialAnchorNamesCountOutput, 1);
    -        }
    -        return nxrEnumeratePersistedSpatialAnchorNamesMSFT(spatialAnchorStore, remainingSafe(persistedAnchorNames), memAddressSafe(spatialAnchorNamesCountOutput), memAddressSafe(persistedAnchorNames));
    -    }
    -
    -    // --- [ xrCreateSpatialAnchorFromPersistedNameMSFT ] ---
    -
    -    /** Unsafe version of: {@link #xrCreateSpatialAnchorFromPersistedNameMSFT CreateSpatialAnchorFromPersistedNameMSFT} */
    -    public static int nxrCreateSpatialAnchorFromPersistedNameMSFT(XrSession session, long spatialAnchorCreateInfo, long spatialAnchor) {
    -        long __functionAddress = session.getCapabilities().xrCreateSpatialAnchorFromPersistedNameMSFT;
    -        if (CHECKS) {
    -            check(__functionAddress);
    -            XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.validate(spatialAnchorCreateInfo);
    -        }
    -        return callPPPI(session.address(), spatialAnchorCreateInfo, spatialAnchor, __functionAddress);
    -    }
    -
    +     */
    +    @NativeType("XrResult")
    +    public static int xrEnumeratePersistedSpatialAnchorNamesMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, @Nullable @NativeType("uint32_t *") IntBuffer spatialAnchorNamesCountOutput, @Nullable @NativeType("XrSpatialAnchorPersistenceNameMSFT *") XrSpatialAnchorPersistenceNameMSFT.Buffer persistedAnchorNames) {
    +        if (CHECKS) {
    +            checkSafe(spatialAnchorNamesCountOutput, 1);
    +        }
    +        return nxrEnumeratePersistedSpatialAnchorNamesMSFT(spatialAnchorStore, remainingSafe(persistedAnchorNames), memAddressSafe(spatialAnchorNamesCountOutput), memAddressSafe(persistedAnchorNames));
    +    }
    +
    +    // --- [ xrCreateSpatialAnchorFromPersistedNameMSFT ] ---
    +
    +    /** Unsafe version of: {@link #xrCreateSpatialAnchorFromPersistedNameMSFT CreateSpatialAnchorFromPersistedNameMSFT} */
    +    public static int nxrCreateSpatialAnchorFromPersistedNameMSFT(XrSession session, long spatialAnchorCreateInfo, long spatialAnchor) {
    +        long __functionAddress = session.getCapabilities().xrCreateSpatialAnchorFromPersistedNameMSFT;
    +        if (CHECKS) {
    +            check(__functionAddress);
    +            XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.validate(spatialAnchorCreateInfo);
    +        }
    +        return callPPPI(session.address(), spatialAnchorCreateInfo, spatialAnchor, __functionAddress);
    +    }
    +
         /**
          * Create a spatial anchor from the spatial anchor store by name.
          * 
    @@ -385,26 +385,26 @@ public static int nxrCreateSpatialAnchorFromPersistedNameMSFT(XrSession session,
          * @param session                 a handle to an {@code XrSession} previously created with {@link XR10#xrCreateSession CreateSession}.
          * @param spatialAnchorCreateInfo a pointer to the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT}.
          * @param spatialAnchor           a pointer to an {@code XrSpatialAnchorMSFT} handle that will be set by the runtime on successful load.
    -     */
    -    @NativeType("XrResult")
    -    public static int xrCreateSpatialAnchorFromPersistedNameMSFT(XrSession session, @NativeType("XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT const *") XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT spatialAnchorCreateInfo, @NativeType("XrSpatialAnchorMSFT *") PointerBuffer spatialAnchor) {
    -        if (CHECKS) {
    -            check(spatialAnchor, 1);
    -        }
    -        return nxrCreateSpatialAnchorFromPersistedNameMSFT(session, spatialAnchorCreateInfo.address(), memAddress(spatialAnchor));
    -    }
    -
    -    // --- [ xrUnpersistSpatialAnchorMSFT ] ---
    -
    -    /** Unsafe version of: {@link #xrUnpersistSpatialAnchorMSFT UnpersistSpatialAnchorMSFT} */
    -    public static int nxrUnpersistSpatialAnchorMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, long spatialAnchorPersistenceName) {
    -        long __functionAddress = spatialAnchorStore.getCapabilities().xrUnpersistSpatialAnchorMSFT;
    -        if (CHECKS) {
    -            check(__functionAddress);
    -        }
    -        return callPPI(spatialAnchorStore.address(), spatialAnchorPersistenceName, __functionAddress);
    -    }
    -
    +     */
    +    @NativeType("XrResult")
    +    public static int xrCreateSpatialAnchorFromPersistedNameMSFT(XrSession session, @NativeType("XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT const *") XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT spatialAnchorCreateInfo, @NativeType("XrSpatialAnchorMSFT *") PointerBuffer spatialAnchor) {
    +        if (CHECKS) {
    +            check(spatialAnchor, 1);
    +        }
    +        return nxrCreateSpatialAnchorFromPersistedNameMSFT(session, spatialAnchorCreateInfo.address(), memAddress(spatialAnchor));
    +    }
    +
    +    // --- [ xrUnpersistSpatialAnchorMSFT ] ---
    +
    +    /** Unsafe version of: {@link #xrUnpersistSpatialAnchorMSFT UnpersistSpatialAnchorMSFT} */
    +    public static int nxrUnpersistSpatialAnchorMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, long spatialAnchorPersistenceName) {
    +        long __functionAddress = spatialAnchorStore.getCapabilities().xrUnpersistSpatialAnchorMSFT;
    +        if (CHECKS) {
    +            check(__functionAddress);
    +        }
    +        return callPPI(spatialAnchorStore.address(), spatialAnchorPersistenceName, __functionAddress);
    +    }
    +
         /**
          * Removes an anchor from the store.
          * 
    @@ -452,14 +452,14 @@ public static int nxrUnpersistSpatialAnchorMSFT(XrSpatialAnchorStoreConnectionMS
          *
          * @param spatialAnchorStore           an {@code XrSpatialAnchorStoreConnectionMSFT} anchor store to perform the unpersist operation on.
          * @param spatialAnchorPersistenceName a pointer to the {@link XrSpatialAnchorPersistenceNameMSFT}.
    -     */
    -    @NativeType("XrResult")
    -    public static int xrUnpersistSpatialAnchorMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, @NativeType("XrSpatialAnchorPersistenceNameMSFT const *") XrSpatialAnchorPersistenceNameMSFT spatialAnchorPersistenceName) {
    -        return nxrUnpersistSpatialAnchorMSFT(spatialAnchorStore, spatialAnchorPersistenceName.address());
    -    }
    -
    -    // --- [ xrClearSpatialAnchorStoreMSFT ] ---
    -
    +     */
    +    @NativeType("XrResult")
    +    public static int xrUnpersistSpatialAnchorMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, @NativeType("XrSpatialAnchorPersistenceNameMSFT const *") XrSpatialAnchorPersistenceNameMSFT spatialAnchorPersistenceName) {
    +        return nxrUnpersistSpatialAnchorMSFT(spatialAnchorStore, spatialAnchorPersistenceName.address());
    +    }
    +
    +    // --- [ xrClearSpatialAnchorStoreMSFT ] ---
    +
         /**
          * Clear all spatial anchors from the spatial anchor store.
          * 
    @@ -498,14 +498,14 @@ public static int xrUnpersistSpatialAnchorMSFT(XrSpatialAnchorStoreConnectionMSF
          * 
          *
          * @param spatialAnchorStore {@code XrSpatialAnchorStoreConnectionMSFT} to perform the clear operation on.
    -     */
    -    @NativeType("XrResult")
    -    public static int xrClearSpatialAnchorStoreMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore) {
    -        long __functionAddress = spatialAnchorStore.getCapabilities().xrClearSpatialAnchorStoreMSFT;
    -        if (CHECKS) {
    -            check(__functionAddress);
    -        }
    -        return callPI(spatialAnchorStore.address(), __functionAddress);
    -    }
    +     */
    +    @NativeType("XrResult")
    +    public static int xrClearSpatialAnchorStoreMSFT(XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore) {
    +        long __functionAddress = spatialAnchorStore.getCapabilities().xrClearSpatialAnchorStoreMSFT;
    +        if (CHECKS) {
    +            check(__functionAddress);
    +        }
    +        return callPI(spatialAnchorStore.address(), __functionAddress);
    +    }
     
     }
    \ No newline at end of file
    diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSpatialGraphBridge.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSpatialGraphBridge.java
    index d97ae554a6..1bcb200fbe 100644
    --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSpatialGraphBridge.java
    +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTSpatialGraphBridge.java
    @@ -4,36 +4,36 @@
      * MACHINE GENERATED FILE, DO NOT EDIT
      */
     package org.lwjgl.openxr;
    -
    +
     import javax.annotation.*;
    -
    +
     import org.lwjgl.*;
    -
    -import org.lwjgl.system.*;
    -
    -import static org.lwjgl.system.Checks.*;
    -import static org.lwjgl.system.JNI.*;
    -import static org.lwjgl.system.MemoryUtil.*;
    -
    +
    +import org.lwjgl.system.*;
    +
    +import static org.lwjgl.system.Checks.*;
    +import static org.lwjgl.system.JNI.*;
    +import static org.lwjgl.system.MemoryUtil.*;
    +
     /**
      * The XR_MSFT_spatial_graph_bridge extension.
      * 
      * 

    This extension enables applications to interop between {@code XrSpace} handles and other Windows Mixed Reality device platform libraries or APIs. These libraries represent a spatially tracked point, also known as a "spatial graph node", with a GUID value. This extension enables applications to create {@code XrSpace} handles from spatial graph nodes. Applications can also try to get a spatial graph node from an {@code XrSpace} handle.

    - */ -public class MSFTSpatialGraphBridge { - - /** The extension specification version. */ - public static final int XR_MSFT_spatial_graph_bridge_SPEC_VERSION = 2; - - /** The extension name. */ - public static final String XR_MSFT_SPATIAL_GRAPH_BRIDGE_EXTENSION_NAME = "XR_MSFT_spatial_graph_bridge"; - - /** XR_GUID_SIZE_MSFT */ - public static final int XR_GUID_SIZE_MSFT = 16; - - /** Extends {@code XrObjectType}. */ - public static final int XR_OBJECT_TYPE_SPATIAL_GRAPH_NODE_BINDING_MSFT = 1000049000; - + */ +public class MSFTSpatialGraphBridge { + + /** The extension specification version. */ + public static final int XR_MSFT_spatial_graph_bridge_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_MSFT_SPATIAL_GRAPH_BRIDGE_EXTENSION_NAME = "XR_MSFT_spatial_graph_bridge"; + + /** XR_GUID_SIZE_MSFT */ + public static final int XR_GUID_SIZE_MSFT = 16; + + /** Extends {@code XrObjectType}. */ + public static final int XR_OBJECT_TYPE_SPATIAL_GRAPH_NODE_BINDING_MSFT = 1000049000; + /** * Extends {@code XrStructureType}. * @@ -45,13 +45,13 @@ public class MSFTSpatialGraphBridge { *
  • {@link #XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_GET_INFO_MSFT TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_GET_INFO_MSFT}
  • *
  • {@link #XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT}
  • * - */ + */ public static final int - XR_TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT = 1000049000, - XR_TYPE_SPATIAL_GRAPH_STATIC_NODE_BINDING_CREATE_INFO_MSFT = 1000049001, - XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_GET_INFO_MSFT = 1000049002, - XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT = 1000049003; - + XR_TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT = 1000049000, + XR_TYPE_SPATIAL_GRAPH_STATIC_NODE_BINDING_CREATE_INFO_MSFT = 1000049001, + XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_GET_INFO_MSFT = 1000049002, + XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT = 1000049003; + /** * XrSpatialGraphNodeTypeMSFT - The type of spatial graph node. * @@ -66,26 +66,26 @@ public class MSFTSpatialGraphBridge { *
    See Also
    * *

    {@link XrSpatialGraphNodeSpaceCreateInfoMSFT}, {@link #xrCreateSpatialGraphNodeSpaceMSFT CreateSpatialGraphNodeSpaceMSFT}

    - */ + */ public static final int - XR_SPATIAL_GRAPH_NODE_TYPE_STATIC_MSFT = 1, - XR_SPATIAL_GRAPH_NODE_TYPE_DYNAMIC_MSFT = 2; + XR_SPATIAL_GRAPH_NODE_TYPE_STATIC_MSFT = 1, + XR_SPATIAL_GRAPH_NODE_TYPE_DYNAMIC_MSFT = 2; protected MSFTSpatialGraphBridge() { throw new UnsupportedOperationException(); - } - - // --- [ xrCreateSpatialGraphNodeSpaceMSFT ] --- - - /** Unsafe version of: {@link #xrCreateSpatialGraphNodeSpaceMSFT CreateSpatialGraphNodeSpaceMSFT} */ - public static int nxrCreateSpatialGraphNodeSpaceMSFT(XrSession session, long createInfo, long space) { - long __functionAddress = session.getCapabilities().xrCreateSpatialGraphNodeSpaceMSFT; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), createInfo, space, __functionAddress); - } + } + // --- [ xrCreateSpatialGraphNodeSpaceMSFT ] --- + + /** Unsafe version of: {@link #xrCreateSpatialGraphNodeSpaceMSFT CreateSpatialGraphNodeSpaceMSFT} */ + public static int nxrCreateSpatialGraphNodeSpaceMSFT(XrSession session, long createInfo, long space) { + long __functionAddress = session.getCapabilities().xrCreateSpatialGraphNodeSpaceMSFT; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(session.address(), createInfo, space, __functionAddress); + } + /** * Create an {@code XrSpace} from a spatial graph node. * @@ -136,33 +136,33 @@ public static int nxrCreateSpatialGraphNodeSpaceMSFT(XrSession session, long cre * @param session the {@code XrSession} which will use the created space. * @param createInfo an {@link XrSpatialGraphNodeSpaceCreateInfoMSFT} specifying the space to be created. * @param space the returned {@code XrSpace} handle for the given spatial node ID. - */ - @NativeType("XrResult") - public static int xrCreateSpatialGraphNodeSpaceMSFT(XrSession session, @NativeType("XrSpatialGraphNodeSpaceCreateInfoMSFT const *") XrSpatialGraphNodeSpaceCreateInfoMSFT createInfo, @NativeType("XrSpace *") PointerBuffer space) { - if (CHECKS) { - check(space, 1); - } - return nxrCreateSpatialGraphNodeSpaceMSFT(session, createInfo.address(), memAddress(space)); - } - - // --- [ xrTryCreateSpatialGraphStaticNodeBindingMSFT ] --- - - /** Unsafe version of: {@link #xrTryCreateSpatialGraphStaticNodeBindingMSFT TryCreateSpatialGraphStaticNodeBindingMSFT} */ - public static int nxrTryCreateSpatialGraphStaticNodeBindingMSFT(XrSession session, long createInfo, long nodeBinding) { - long __functionAddress = session.getCapabilities().xrTryCreateSpatialGraphStaticNodeBindingMSFT; - if (CHECKS) { - check(__functionAddress); - XrSpatialGraphStaticNodeBindingCreateInfoMSFT.validate(createInfo); - } - return callPPPI(session.address(), createInfo, nodeBinding, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrCreateSpatialGraphNodeSpaceMSFT(XrSession session, @NativeType("XrSpatialGraphNodeSpaceCreateInfoMSFT const *") XrSpatialGraphNodeSpaceCreateInfoMSFT createInfo, @NativeType("XrSpace *") PointerBuffer space) { + if (CHECKS) { + check(space, 1); + } + return nxrCreateSpatialGraphNodeSpaceMSFT(session, createInfo.address(), memAddress(space)); + } + // --- [ xrTryCreateSpatialGraphStaticNodeBindingMSFT ] --- + + /** Unsafe version of: {@link #xrTryCreateSpatialGraphStaticNodeBindingMSFT TryCreateSpatialGraphStaticNodeBindingMSFT} */ + public static int nxrTryCreateSpatialGraphStaticNodeBindingMSFT(XrSession session, long createInfo, long nodeBinding) { + long __functionAddress = session.getCapabilities().xrTryCreateSpatialGraphStaticNodeBindingMSFT; + if (CHECKS) { + check(__functionAddress); + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.validate(createInfo); + } + return callPPPI(session.address(), createInfo, nodeBinding, __functionAddress); + } + /** * Try create spatial graph static node binding. * *
    C Specification
    * - *

    The {@link #xrTryCreateSpatialGraphStaticNodeBindingMSFT TryCreateSpatialGraphStaticNodeBindingMSFT} function tries to create a binding to the best spatial graph static node relative to the given location and returns an {@code XrSpatialGraphNodeBindingMSFT} handle.

    + *

    The {@link #xrTryCreateSpatialGraphStaticNodeBindingMSFT TryCreateSpatialGraphStaticNodeBindingMSFT} function tries to create a spatial graph static node binding nearest to the given location and returns an {@code XrSpatialGraphNodeBindingMSFT} handle.

    * *
    
          * XrResult xrTryCreateSpatialGraphStaticNodeBindingMSFT(
    @@ -174,8 +174,6 @@ public static int nxrTryCreateSpatialGraphStaticNodeBindingMSFT(XrSession sessio
          * 
          * 

    The runtime may return {@link XR10#XR_SUCCESS SUCCESS} and set {@code nodeBinding} to {@link XR10#XR_NULL_HANDLE NULL_HANDLE} if it is unable to create a spatial graph static node binding. This may happen when the given {@code XrSpace} cannot be properly tracked at the moment. The application can retry creating the {@code XrSpatialGraphNodeBindingMSFT} handle again after a reasonable period of time when tracking is regained.

    * - *

    The {@link #xrTryCreateSpatialGraphStaticNodeBindingMSFT TryCreateSpatialGraphStaticNodeBindingMSFT} function may be a slow operation and therefore should be invoked from a non-timing critical thread.

    - * *
    Valid Usage (Implicit)
    * *
      @@ -215,17 +213,17 @@ public static int nxrTryCreateSpatialGraphStaticNodeBindingMSFT(XrSession sessio * @param session the specified {@code XrSession}. * @param createInfo the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT} input structure. * @param nodeBinding the {@code XrSpatialGraphNodeBindingMSFT} output structure. - */ - @NativeType("XrResult") - public static int xrTryCreateSpatialGraphStaticNodeBindingMSFT(XrSession session, @NativeType("XrSpatialGraphStaticNodeBindingCreateInfoMSFT const *") XrSpatialGraphStaticNodeBindingCreateInfoMSFT createInfo, @NativeType("XrSpatialGraphNodeBindingMSFT *") PointerBuffer nodeBinding) { - if (CHECKS) { - check(nodeBinding, 1); - } - return nxrTryCreateSpatialGraphStaticNodeBindingMSFT(session, createInfo.address(), memAddress(nodeBinding)); - } - - // --- [ xrDestroySpatialGraphNodeBindingMSFT ] --- + */ + @NativeType("XrResult") + public static int xrTryCreateSpatialGraphStaticNodeBindingMSFT(XrSession session, @NativeType("XrSpatialGraphStaticNodeBindingCreateInfoMSFT const *") XrSpatialGraphStaticNodeBindingCreateInfoMSFT createInfo, @NativeType("XrSpatialGraphNodeBindingMSFT *") PointerBuffer nodeBinding) { + if (CHECKS) { + check(nodeBinding, 1); + } + return nxrTryCreateSpatialGraphStaticNodeBindingMSFT(session, createInfo.address(), memAddress(nodeBinding)); + } + // --- [ xrDestroySpatialGraphNodeBindingMSFT ] --- + /** * Destroy a spatial graph node handle. * @@ -269,27 +267,27 @@ public static int xrTryCreateSpatialGraphStaticNodeBindingMSFT(XrSession session *

      {@link #xrTryCreateSpatialGraphStaticNodeBindingMSFT TryCreateSpatialGraphStaticNodeBindingMSFT}

      * * @param nodeBinding an {@code XrSpatialGraphNodeBindingMSFT} previously created by {@link #xrTryCreateSpatialGraphStaticNodeBindingMSFT TryCreateSpatialGraphStaticNodeBindingMSFT}. - */ - @NativeType("XrResult") - public static int xrDestroySpatialGraphNodeBindingMSFT(XrSpatialGraphNodeBindingMSFT nodeBinding) { - long __functionAddress = nodeBinding.getCapabilities().xrDestroySpatialGraphNodeBindingMSFT; - if (CHECKS) { - check(__functionAddress); - } - return callPI(nodeBinding.address(), __functionAddress); - } - - // --- [ xrGetSpatialGraphNodeBindingPropertiesMSFT ] --- - - /** Unsafe version of: {@link #xrGetSpatialGraphNodeBindingPropertiesMSFT GetSpatialGraphNodeBindingPropertiesMSFT} */ - public static int nxrGetSpatialGraphNodeBindingPropertiesMSFT(XrSpatialGraphNodeBindingMSFT nodeBinding, long getInfo, long properties) { - long __functionAddress = nodeBinding.getCapabilities().xrGetSpatialGraphNodeBindingPropertiesMSFT; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(nodeBinding.address(), getInfo, properties, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrDestroySpatialGraphNodeBindingMSFT(XrSpatialGraphNodeBindingMSFT nodeBinding) { + long __functionAddress = nodeBinding.getCapabilities().xrDestroySpatialGraphNodeBindingMSFT; + if (CHECKS) { + check(__functionAddress); + } + return callPI(nodeBinding.address(), __functionAddress); + } + // --- [ xrGetSpatialGraphNodeBindingPropertiesMSFT ] --- + + /** Unsafe version of: {@link #xrGetSpatialGraphNodeBindingPropertiesMSFT GetSpatialGraphNodeBindingPropertiesMSFT} */ + public static int nxrGetSpatialGraphNodeBindingPropertiesMSFT(XrSpatialGraphNodeBindingMSFT nodeBinding, long getInfo, long properties) { + long __functionAddress = nodeBinding.getCapabilities().xrGetSpatialGraphNodeBindingPropertiesMSFT; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(nodeBinding.address(), getInfo, properties, __functionAddress); + } + /** * Destroy a spatial graph node handle. * @@ -339,10 +337,10 @@ public static int nxrGetSpatialGraphNodeBindingPropertiesMSFT(XrSpatialGraphNode * @param nodeBinding an {@code XrSpatialGraphNodeBindingMSFT} previously created by {@link #xrTryCreateSpatialGraphStaticNodeBindingMSFT TryCreateSpatialGraphStaticNodeBindingMSFT}. * @param getInfo a pointer to an {@link XrSpatialGraphNodeBindingPropertiesGetInfoMSFT} input structure. * @param properties a pointer to an {@link XrSpatialGraphNodeBindingPropertiesMSFT} output structure. - */ - @NativeType("XrResult") - public static int xrGetSpatialGraphNodeBindingPropertiesMSFT(XrSpatialGraphNodeBindingMSFT nodeBinding, @Nullable @NativeType("XrSpatialGraphNodeBindingPropertiesGetInfoMSFT const *") XrSpatialGraphNodeBindingPropertiesGetInfoMSFT getInfo, @NativeType("XrSpatialGraphNodeBindingPropertiesMSFT *") XrSpatialGraphNodeBindingPropertiesMSFT properties) { - return nxrGetSpatialGraphNodeBindingPropertiesMSFT(nodeBinding, memAddressSafe(getInfo), properties.address()); - } + */ + @NativeType("XrResult") + public static int xrGetSpatialGraphNodeBindingPropertiesMSFT(XrSpatialGraphNodeBindingMSFT nodeBinding, @Nullable @NativeType("XrSpatialGraphNodeBindingPropertiesGetInfoMSFT const *") XrSpatialGraphNodeBindingPropertiesGetInfoMSFT getInfo, @NativeType("XrSpatialGraphNodeBindingPropertiesMSFT *") XrSpatialGraphNodeBindingPropertiesMSFT properties) { + return nxrGetSpatialGraphNodeBindingPropertiesMSFT(nodeBinding, memAddressSafe(getInfo), properties.address()); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTUnboundedReferenceSpace.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTUnboundedReferenceSpace.java index d80cdee65e..53d97f2f6f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTUnboundedReferenceSpace.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/MSFTUnboundedReferenceSpace.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_MSFT_unbounded_reference_space extension. * @@ -25,18 +25,18 @@ *

      If the viewer moves far enough away from the origin of an {@code UNBOUNDED_MSFT} reference space that floating point error would introduce noticeable error when locating the viewer within that space, the runtime may recenter the space’s origin to a new location closer to the viewer. If such recentering occurs, the runtime must queue the {@link XrEventDataReferenceSpaceChangePending} event with {@code poseValid} set to true.

      * *

      Runtimes must support the {@code UNBOUNDED_MSFT} reference space when this extension is enabled.

      - */ -public final class MSFTUnboundedReferenceSpace { - - /** The extension specification version. */ - public static final int XR_MSFT_unbounded_reference_space_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_MSFT_UNBOUNDED_REFERENCE_SPACE_EXTENSION_NAME = "XR_MSFT_unbounded_reference_space"; - - /** Extends {@code XrReferenceSpaceType}. */ - public static final int XR_REFERENCE_SPACE_TYPE_UNBOUNDED_MSFT = 1000038000; + */ +public final class MSFTUnboundedReferenceSpace { + + /** The extension specification version. */ + public static final int XR_MSFT_unbounded_reference_space_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_MSFT_UNBOUNDED_REFERENCE_SPACE_EXTENSION_NAME = "XR_MSFT_unbounded_reference_space"; + + /** Extends {@code XrReferenceSpaceType}. */ + public static final int XR_REFERENCE_SPACE_TYPE_UNBOUNDED_MSFT = 1000038000; - private MSFTUnboundedReferenceSpace() {} + private MSFTUnboundedReferenceSpace() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/OCULUSAudioDeviceGuid.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/OCULUSAudioDeviceGuid.java index 475fa8d6c5..1077f79bc8 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/OCULUSAudioDeviceGuid.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/OCULUSAudioDeviceGuid.java @@ -4,48 +4,48 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import java.nio.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_OCULUS_audio_device_guid extension. * *

      This extension enables the querying of audio device information associated with an OpenXR instance.

      * *

      On Windows, there may be multiple audio devices available on the system. This extensions allows applications to query the runtime for the appropriate audio devices for the active HMD.

      - */ -public class OCULUSAudioDeviceGuid { - - /** The extension specification version. */ - public static final int XR_OCULUS_audio_device_guid_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_OCULUS_AUDIO_DEVICE_GUID_EXTENSION_NAME = "XR_OCULUS_audio_device_guid"; - - /** XR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUS */ - public static final int XR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUS = 128; + */ +public class OCULUSAudioDeviceGuid { + + /** The extension specification version. */ + public static final int XR_OCULUS_audio_device_guid_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_OCULUS_AUDIO_DEVICE_GUID_EXTENSION_NAME = "XR_OCULUS_audio_device_guid"; + + /** XR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUS */ + public static final int XR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUS = 128; protected OCULUSAudioDeviceGuid() { throw new UnsupportedOperationException(); - } - - // --- [ xrGetAudioOutputDeviceGuidOculus ] --- - - /** Unsafe version of: {@link #xrGetAudioOutputDeviceGuidOculus GetAudioOutputDeviceGuidOculus} */ - public static int nxrGetAudioOutputDeviceGuidOculus(XrInstance instance, long buffer) { - long __functionAddress = instance.getCapabilities().xrGetAudioOutputDeviceGuidOculus; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(instance.address(), buffer, __functionAddress); - } + } + // --- [ xrGetAudioOutputDeviceGuidOculus ] --- + + /** Unsafe version of: {@link #xrGetAudioOutputDeviceGuidOculus GetAudioOutputDeviceGuidOculus} */ + public static int nxrGetAudioOutputDeviceGuidOculus(XrInstance instance, long buffer) { + long __functionAddress = instance.getCapabilities().xrGetAudioOutputDeviceGuidOculus; + if (CHECKS) { + check(__functionAddress); + } + return callPPI(instance.address(), buffer, __functionAddress); + } + /** * Query the GUID for the active audio output device. * @@ -87,27 +87,27 @@ public static int nxrGetAudioOutputDeviceGuidOculus(XrInstance instance, long bu *

      {@link #xrGetAudioInputDeviceGuidOculus GetAudioInputDeviceGuidOculus}

      * * @param instance the {@code XrInstance} to query the audio device state in. - * @param buffer a fixed size buffer which will contain the audio device GUID. The format of this data matches the IMMDevice::GetId API. - */ - @NativeType("XrResult") - public static int xrGetAudioOutputDeviceGuidOculus(XrInstance instance, @NativeType("wchar_t *") ByteBuffer buffer) { - if (CHECKS) { - check(buffer, XR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUS); - } - return nxrGetAudioOutputDeviceGuidOculus(instance, memAddress(buffer)); - } - - // --- [ xrGetAudioInputDeviceGuidOculus ] --- - - /** Unsafe version of: {@link #xrGetAudioInputDeviceGuidOculus GetAudioInputDeviceGuidOculus} */ - public static int nxrGetAudioInputDeviceGuidOculus(XrInstance instance, long buffer) { - long __functionAddress = instance.getCapabilities().xrGetAudioInputDeviceGuidOculus; - if (CHECKS) { - check(__functionAddress); - } - return callPPI(instance.address(), buffer, __functionAddress); - } + * @param buffer a fixed size buffer which will contain the audio device GUID. The format of this data matches the IMMDevice::GetId API. + */ + @NativeType("XrResult") + public static int xrGetAudioOutputDeviceGuidOculus(XrInstance instance, @NativeType("wchar_t *") ByteBuffer buffer) { + if (CHECKS) { + check(buffer, XR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUS); + } + return nxrGetAudioOutputDeviceGuidOculus(instance, memAddress(buffer)); + } + // --- [ xrGetAudioInputDeviceGuidOculus ] --- + + /** Unsafe version of: {@link #xrGetAudioInputDeviceGuidOculus GetAudioInputDeviceGuidOculus} */ + public static int nxrGetAudioInputDeviceGuidOculus(XrInstance instance, long buffer) { + long __functionAddress = instance.getCapabilities().xrGetAudioInputDeviceGuidOculus; + if (CHECKS) { + check(__functionAddress); + } + return callPPI(instance.address(), buffer, __functionAddress); + } + /** * Query the GUID for the active audio input device. * @@ -149,14 +149,14 @@ public static int nxrGetAudioInputDeviceGuidOculus(XrInstance instance, long buf *

      {@link #xrGetAudioOutputDeviceGuidOculus GetAudioOutputDeviceGuidOculus}

      * * @param instance the {@code XrInstance} to query the audio device state in. - * @param buffer a fixed size buffer which will contain the audio device GUID. The format of this data matches the IMMDevice::GetId API. - */ - @NativeType("XrResult") - public static int xrGetAudioInputDeviceGuidOculus(XrInstance instance, @NativeType("wchar_t *") ByteBuffer buffer) { - if (CHECKS) { - check(buffer, XR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUS); - } - return nxrGetAudioInputDeviceGuidOculus(instance, memAddress(buffer)); - } + * @param buffer a fixed size buffer which will contain the audio device GUID. The format of this data matches the IMMDevice::GetId API. + */ + @NativeType("XrResult") + public static int xrGetAudioInputDeviceGuidOculus(XrInstance instance, @NativeType("wchar_t *") ByteBuffer buffer) { + if (CHECKS) { + check(buffer, XR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUS); + } + return nxrGetAudioInputDeviceGuidOculus(instance, memAddress(buffer)); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/OCULUSExternalCamera.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/OCULUSExternalCamera.java index 1f09a3b90c..92b34f3bac 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/OCULUSExternalCamera.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/OCULUSExternalCamera.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_OCULUS_external_camera extension. * @@ -29,21 +29,21 @@ *
    • Camera extrinsics are everything external to the camera: relative pose, attached to, etc.
    • *
    • We do not expect the camera intrinsics to change frequently. We expect the camera extrinsics to change frequently.
    • *
    - */ -public class OCULUSExternalCamera { - - /** The extension specification version. */ - public static final int XR_OCULUS_external_camera_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_OCULUS_EXTERNAL_CAMERA_EXTENSION_NAME = "XR_OCULUS_external_camera"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_EXTERNAL_CAMERA_OCULUS = 1000226000; - - /** XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS */ - public static final int XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS = 32; - + */ +public class OCULUSExternalCamera { + + /** The extension specification version. */ + public static final int XR_OCULUS_external_camera_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_OCULUS_EXTERNAL_CAMERA_EXTENSION_NAME = "XR_OCULUS_external_camera"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_EXTERNAL_CAMERA_OCULUS = 1000226000; + + /** XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS */ + public static final int XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS = 32; + /** * XrExternalCameraAttachedToDeviceOCULUS - XrExternalCameraAttachedToDeviceOCULUS * @@ -62,13 +62,13 @@ public class OCULUSExternalCamera { *
    See Also
    * *

    {@link XrExternalCameraExtrinsicsOCULUS}

    - */ + */ public static final int - XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_NONE_OCULUS = 0, - XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_HMD_OCULUS = 1, - XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_LTOUCH_OCULUS = 2, - XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_RTOUCH_OCULUS = 3; - + XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_NONE_OCULUS = 0, + XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_HMD_OCULUS = 1, + XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_LTOUCH_OCULUS = 2, + XR_EXTERNAL_CAMERA_ATTACHED_TO_DEVICE_RTOUCH_OCULUS = 3; + /** * XrExternalCameraStatusFlagBitsOCULUS - XrExternalCameraStatusFlagBitsOCULUS * @@ -81,33 +81,33 @@ public class OCULUSExternalCamera { *
  • {@link #XR_EXTERNAL_CAMERA_STATUS_CALIBRATED_BIT_OCULUS EXTERNAL_CAMERA_STATUS_CALIBRATED_BIT_OCULUS} — External camera has tried and passed calibration
  • *
  • {@link #XR_EXTERNAL_CAMERA_STATUS_CAPTURING_BIT_OCULUS EXTERNAL_CAMERA_STATUS_CAPTURING_BIT_OCULUS} — External camera is capturing
  • * - */ + */ public static final int - XR_EXTERNAL_CAMERA_STATUS_CONNECTED_BIT_OCULUS = 0x1, - XR_EXTERNAL_CAMERA_STATUS_CALIBRATING_BIT_OCULUS = 0x2, - XR_EXTERNAL_CAMERA_STATUS_CALIBRATION_FAILED_BIT_OCULUS = 0x4, - XR_EXTERNAL_CAMERA_STATUS_CALIBRATED_BIT_OCULUS = 0x8, - XR_EXTERNAL_CAMERA_STATUS_CAPTURING_BIT_OCULUS = 0x10; + XR_EXTERNAL_CAMERA_STATUS_CONNECTED_BIT_OCULUS = 0x1, + XR_EXTERNAL_CAMERA_STATUS_CALIBRATING_BIT_OCULUS = 0x2, + XR_EXTERNAL_CAMERA_STATUS_CALIBRATION_FAILED_BIT_OCULUS = 0x4, + XR_EXTERNAL_CAMERA_STATUS_CALIBRATED_BIT_OCULUS = 0x8, + XR_EXTERNAL_CAMERA_STATUS_CAPTURING_BIT_OCULUS = 0x10; protected OCULUSExternalCamera() { throw new UnsupportedOperationException(); - } - - // --- [ xrEnumerateExternalCamerasOCULUS ] --- + } + // --- [ xrEnumerateExternalCamerasOCULUS ] --- + /** * Unsafe version of: {@link #xrEnumerateExternalCamerasOCULUS EnumerateExternalCamerasOCULUS} * * @param cameraCapacityInput the capacity of the {@code cameras} array, or 0 to indicate a request to retrieve the required capacity. - */ - public static int nxrEnumerateExternalCamerasOCULUS(XrSession session, int cameraCapacityInput, long cameraCountOutput, long cameras) { - long __functionAddress = session.getCapabilities().xrEnumerateExternalCamerasOCULUS; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), cameraCapacityInput, cameraCountOutput, cameras, __functionAddress); - } - + */ + public static int nxrEnumerateExternalCamerasOCULUS(XrSession session, int cameraCapacityInput, long cameraCountOutput, long cameras) { + long __functionAddress = session.getCapabilities().xrEnumerateExternalCamerasOCULUS; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(session.address(), cameraCapacityInput, cameraCountOutput, cameras, __functionAddress); + } + /** * Enumerates all the external cameras that are supported by the runtime. * @@ -159,13 +159,13 @@ public static int nxrEnumerateExternalCamerasOCULUS(XrSession session, int camer * @param session the {@code XrSession} to query the external cameras in * @param cameraCountOutput filled in by the runtime with the count of {@code cameras} written or the required capacity in the case that {@code cameraCapacityInput} is insufficient. * @param cameras an array of {@link XrExternalCameraOCULUS} filled in by the runtime which contains all the available external cameras, but can be {@code NULL} if {@code cameraCapacityInput} is 0. - */ - @NativeType("XrResult") - public static int xrEnumerateExternalCamerasOCULUS(XrSession session, @NativeType("uint32_t *") IntBuffer cameraCountOutput, @Nullable @NativeType("XrExternalCameraOCULUS *") XrExternalCameraOCULUS.Buffer cameras) { - if (CHECKS) { - check(cameraCountOutput, 1); - } - return nxrEnumerateExternalCamerasOCULUS(session, remainingSafe(cameras), memAddress(cameraCountOutput), memAddressSafe(cameras)); - } + */ + @NativeType("XrResult") + public static int xrEnumerateExternalCamerasOCULUS(XrSession session, @NativeType("uint32_t *") IntBuffer cameraCountOutput, @Nullable @NativeType("XrExternalCameraOCULUS *") XrExternalCameraOCULUS.Buffer cameras) { + if (CHECKS) { + check(cameraCountOutput, 1); + } + return nxrEnumerateExternalCamerasOCULUS(session, remainingSafe(cameras), memAddress(cameraCountOutput), memAddressSafe(cameras)); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/OPPOControllerInteraction.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/OPPOControllerInteraction.java index 2eedb7d5b0..e8b17d191b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/OPPOControllerInteraction.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/OPPOControllerInteraction.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_OPPO_controller_interaction extension. * *

    This extension defines a new interaction profile for the OPPO Controller, including but not limited to OPPO MR Glasses Controller.

    - */ -public final class OPPOControllerInteraction { - - /** The extension specification version. */ - public static final int XR_OPPO_controller_interaction_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_OPPO_CONTROLLER_INTERACTION_EXTENSION_NAME = "XR_OPPO_controller_interaction"; + */ +public final class OPPOControllerInteraction { + + /** The extension specification version. */ + public static final int XR_OPPO_controller_interaction_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_OPPO_CONTROLLER_INTERACTION_EXTENSION_NAME = "XR_OPPO_controller_interaction"; - private OPPOControllerInteraction() {} + private OPPOControllerInteraction() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/QCOMTrackingOptimizationSettings.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/QCOMTrackingOptimizationSettings.java index e9be581ca3..a91ba0e4ab 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/QCOMTrackingOptimizationSettings.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/QCOMTrackingOptimizationSettings.java @@ -4,12 +4,12 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; + /** * The XR_QCOM_tracking_optimization_settings extension. * @@ -20,18 +20,18 @@ *

    This allows the application to tailor the tracking algorithms to specific use-cases and scene-scales in order to provide the best experience possible.

    * *

    Summary: provide domain hints to the run-time about which parameters to optimize tracking for.

    - */ -public class QCOMTrackingOptimizationSettings { - - /** The extension specification version. */ - public static final int XR_QCOM_tracking_optimization_settings_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_QCOM_TRACKING_OPTIMIZATION_SETTINGS_EXTENSION_NAME = "XR_QCOM_tracking_optimization_settings"; - - /** Extends {@code XrResult}. */ - public static final int XR_ERROR_HINT_ALREADY_SET_QCOM = -1000306000; - + */ +public class QCOMTrackingOptimizationSettings { + + /** The extension specification version. */ + public static final int XR_QCOM_tracking_optimization_settings_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_QCOM_TRACKING_OPTIMIZATION_SETTINGS_EXTENSION_NAME = "XR_QCOM_tracking_optimization_settings"; + + /** Extends {@code XrResult}. */ + public static final int XR_ERROR_HINT_ALREADY_SET_QCOM = -1000306000; + /** * XrTrackingOptimizationSettingsDomainQCOM - Domains to apply tracking optimization hints * @@ -44,9 +44,9 @@ public class QCOMTrackingOptimizationSettings { *
    See Also
    * *

    {@link #xrSetTrackingOptimizationSettingsHintQCOM SetTrackingOptimizationSettingsHintQCOM}

    - */ - public static final int XR_TRACKING_OPTIMIZATION_SETTINGS_DOMAIN_ALL_QCOM = 1; - + */ + public static final int XR_TRACKING_OPTIMIZATION_SETTINGS_DOMAIN_ALL_QCOM = 1; + /** * XrTrackingOptimizationSettingsHintQCOM - Hints for prioritizing different tracking goals * @@ -63,20 +63,20 @@ public class QCOMTrackingOptimizationSettings { *
    See Also
    * *

    {@link #xrSetTrackingOptimizationSettingsHintQCOM SetTrackingOptimizationSettingsHintQCOM}

    - */ + */ public static final int - XR_TRACKING_OPTIMIZATION_SETTINGS_HINT_NONE_QCOM = 0, - XR_TRACKING_OPTIMIZATION_SETTINGS_HINT_LONG_RANGE_PRIORIZATION_QCOM = 1, - XR_TRACKING_OPTIMIZATION_SETTINGS_HINT_CLOSE_RANGE_PRIORIZATION_QCOM = 2, - XR_TRACKING_OPTIMIZATION_SETTINGS_HINT_LOW_POWER_PRIORIZATION_QCOM = 3, - XR_TRACKING_OPTIMIZATION_SETTINGS_HINT_HIGH_POWER_PRIORIZATION_QCOM = 4; + XR_TRACKING_OPTIMIZATION_SETTINGS_HINT_NONE_QCOM = 0, + XR_TRACKING_OPTIMIZATION_SETTINGS_HINT_LONG_RANGE_PRIORIZATION_QCOM = 1, + XR_TRACKING_OPTIMIZATION_SETTINGS_HINT_CLOSE_RANGE_PRIORIZATION_QCOM = 2, + XR_TRACKING_OPTIMIZATION_SETTINGS_HINT_LOW_POWER_PRIORIZATION_QCOM = 3, + XR_TRACKING_OPTIMIZATION_SETTINGS_HINT_HIGH_POWER_PRIORIZATION_QCOM = 4; protected QCOMTrackingOptimizationSettings() { throw new UnsupportedOperationException(); - } - - // --- [ xrSetTrackingOptimizationSettingsHintQCOM ] --- + } + // --- [ xrSetTrackingOptimizationSettingsHintQCOM ] --- + /** * Submit a tracking optimization hint. * @@ -132,14 +132,14 @@ protected QCOMTrackingOptimizationSettings() { * @param session a valid {@code XrSession} handle. * @param domain the tracking domain for which the hint is applied * @param hint the hint to be applied - */ - @NativeType("XrResult") - public static int xrSetTrackingOptimizationSettingsHintQCOM(XrSession session, @NativeType("XrTrackingOptimizationSettingsDomainQCOM") int domain, @NativeType("XrTrackingOptimizationSettingsHintQCOM") int hint) { - long __functionAddress = session.getCapabilities().xrSetTrackingOptimizationSettingsHintQCOM; - if (CHECKS) { - check(__functionAddress); - } - return callPI(session.address(), domain, hint, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrSetTrackingOptimizationSettingsHintQCOM(XrSession session, @NativeType("XrTrackingOptimizationSettingsDomainQCOM") int domain, @NativeType("XrTrackingOptimizationSettingsHintQCOM") int hint) { + long __functionAddress = session.getCapabilities().xrSetTrackingOptimizationSettingsHintQCOM; + if (CHECKS) { + check(__functionAddress); + } + return callPI(session.address(), domain, hint, __functionAddress); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/ULTRALEAPHandTrackingForearm.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/ULTRALEAPHandTrackingForearm.java index 4c4a2a0963..d3a3971f8b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/ULTRALEAPHandTrackingForearm.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/ULTRALEAPHandTrackingForearm.java @@ -4,25 +4,25 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_ULTRALEAP_hand_tracking_forearm extension. * *

    This extension augments the {@link EXTHandTracking XR_EXT_hand_tracking} extension to enable applications to request the default set of 26 hand joints, with the addition a joint representing the user’s elbow.

    * *

    The application must also enable the {@link EXTHandTracking XR_EXT_hand_tracking} extension in order to use this extension.

    - */ -public final class ULTRALEAPHandTrackingForearm { - - /** The extension specification version. */ - public static final int XR_ULTRALEAP_hand_tracking_forearm_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_ULTRALEAP_HAND_TRACKING_FOREARM_EXTENSION_NAME = "XR_ULTRALEAP_hand_tracking_forearm"; - - /** Extends {@code XrHandJointSetEXT}. */ - public static final int XR_HAND_JOINT_SET_HAND_WITH_FOREARM_ULTRALEAP = 1000149000; - + */ +public final class ULTRALEAPHandTrackingForearm { + + /** The extension specification version. */ + public static final int XR_ULTRALEAP_hand_tracking_forearm_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_ULTRALEAP_HAND_TRACKING_FOREARM_EXTENSION_NAME = "XR_ULTRALEAP_hand_tracking_forearm"; + + /** Extends {@code XrHandJointSetEXT}. */ + public static final int XR_HAND_JOINT_SET_HAND_WITH_FOREARM_ULTRALEAP = 1000149000; + /** * XrHandForearmJointULTRALEAP - The name of hand joints that can be tracked including the elbow * @@ -64,36 +64,36 @@ public final class ULTRALEAPHandTrackingForearm { *
  • {@link #XR_HAND_FOREARM_JOINT_LITTLE_TIP_ULTRALEAP HAND_FOREARM_JOINT_LITTLE_TIP_ULTRALEAP}
  • *
  • {@link #XR_HAND_FOREARM_JOINT_ELBOW_ULTRALEAP HAND_FOREARM_JOINT_ELBOW_ULTRALEAP}
  • * - */ + */ public static final int - XR_HAND_FOREARM_JOINT_PALM_ULTRALEAP = 0, - XR_HAND_FOREARM_JOINT_WRIST_ULTRALEAP = 1, - XR_HAND_FOREARM_JOINT_THUMB_METACARPAL_ULTRALEAP = 2, - XR_HAND_FOREARM_JOINT_THUMB_PROXIMAL_ULTRALEAP = 3, - XR_HAND_FOREARM_JOINT_THUMB_DISTAL_ULTRALEAP = 4, - XR_HAND_FOREARM_JOINT_THUMB_TIP_ULTRALEAP = 5, - XR_HAND_FOREARM_JOINT_INDEX_METACARPAL_ULTRALEAP = 6, - XR_HAND_FOREARM_JOINT_INDEX_PROXIMAL_ULTRALEAP = 7, - XR_HAND_FOREARM_JOINT_INDEX_INTERMEDIATE_ULTRALEAP = 8, - XR_HAND_FOREARM_JOINT_INDEX_DISTAL_ULTRALEAP = 9, - XR_HAND_FOREARM_JOINT_INDEX_TIP_ULTRALEAP = 10, - XR_HAND_FOREARM_JOINT_MIDDLE_METACARPAL_ULTRALEAP = 11, - XR_HAND_FOREARM_JOINT_MIDDLE_PROXIMAL_ULTRALEAP = 12, - XR_HAND_FOREARM_JOINT_MIDDLE_INTERMEDIATE_ULTRALEAP = 13, - XR_HAND_FOREARM_JOINT_MIDDLE_DISTAL_ULTRALEAP = 14, - XR_HAND_FOREARM_JOINT_MIDDLE_TIP_ULTRALEAP = 15, - XR_HAND_FOREARM_JOINT_RING_METACARPAL_ULTRALEAP = 16, - XR_HAND_FOREARM_JOINT_RING_PROXIMAL_ULTRALEAP = 17, - XR_HAND_FOREARM_JOINT_RING_INTERMEDIATE_ULTRALEAP = 18, - XR_HAND_FOREARM_JOINT_RING_DISTAL_ULTRALEAP = 19, - XR_HAND_FOREARM_JOINT_RING_TIP_ULTRALEAP = 20, - XR_HAND_FOREARM_JOINT_LITTLE_METACARPAL_ULTRALEAP = 21, - XR_HAND_FOREARM_JOINT_LITTLE_PROXIMAL_ULTRALEAP = 22, - XR_HAND_FOREARM_JOINT_LITTLE_INTERMEDIATE_ULTRALEAP = 23, - XR_HAND_FOREARM_JOINT_LITTLE_DISTAL_ULTRALEAP = 24, - XR_HAND_FOREARM_JOINT_LITTLE_TIP_ULTRALEAP = 25, - XR_HAND_FOREARM_JOINT_ELBOW_ULTRALEAP = 26; + XR_HAND_FOREARM_JOINT_PALM_ULTRALEAP = 0, + XR_HAND_FOREARM_JOINT_WRIST_ULTRALEAP = 1, + XR_HAND_FOREARM_JOINT_THUMB_METACARPAL_ULTRALEAP = 2, + XR_HAND_FOREARM_JOINT_THUMB_PROXIMAL_ULTRALEAP = 3, + XR_HAND_FOREARM_JOINT_THUMB_DISTAL_ULTRALEAP = 4, + XR_HAND_FOREARM_JOINT_THUMB_TIP_ULTRALEAP = 5, + XR_HAND_FOREARM_JOINT_INDEX_METACARPAL_ULTRALEAP = 6, + XR_HAND_FOREARM_JOINT_INDEX_PROXIMAL_ULTRALEAP = 7, + XR_HAND_FOREARM_JOINT_INDEX_INTERMEDIATE_ULTRALEAP = 8, + XR_HAND_FOREARM_JOINT_INDEX_DISTAL_ULTRALEAP = 9, + XR_HAND_FOREARM_JOINT_INDEX_TIP_ULTRALEAP = 10, + XR_HAND_FOREARM_JOINT_MIDDLE_METACARPAL_ULTRALEAP = 11, + XR_HAND_FOREARM_JOINT_MIDDLE_PROXIMAL_ULTRALEAP = 12, + XR_HAND_FOREARM_JOINT_MIDDLE_INTERMEDIATE_ULTRALEAP = 13, + XR_HAND_FOREARM_JOINT_MIDDLE_DISTAL_ULTRALEAP = 14, + XR_HAND_FOREARM_JOINT_MIDDLE_TIP_ULTRALEAP = 15, + XR_HAND_FOREARM_JOINT_RING_METACARPAL_ULTRALEAP = 16, + XR_HAND_FOREARM_JOINT_RING_PROXIMAL_ULTRALEAP = 17, + XR_HAND_FOREARM_JOINT_RING_INTERMEDIATE_ULTRALEAP = 18, + XR_HAND_FOREARM_JOINT_RING_DISTAL_ULTRALEAP = 19, + XR_HAND_FOREARM_JOINT_RING_TIP_ULTRALEAP = 20, + XR_HAND_FOREARM_JOINT_LITTLE_METACARPAL_ULTRALEAP = 21, + XR_HAND_FOREARM_JOINT_LITTLE_PROXIMAL_ULTRALEAP = 22, + XR_HAND_FOREARM_JOINT_LITTLE_INTERMEDIATE_ULTRALEAP = 23, + XR_HAND_FOREARM_JOINT_LITTLE_DISTAL_ULTRALEAP = 24, + XR_HAND_FOREARM_JOINT_LITTLE_TIP_ULTRALEAP = 25, + XR_HAND_FOREARM_JOINT_ELBOW_ULTRALEAP = 26; - private ULTRALEAPHandTrackingForearm() {} + private ULTRALEAPHandTrackingForearm() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VALVEAnalogThreshold.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VALVEAnalogThreshold.java index 547896b235..01ddd6b274 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VALVEAnalogThreshold.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VALVEAnalogThreshold.java @@ -4,25 +4,25 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_VALVE_analog_threshold extension. * *

    This extension allows the application to control the threshold and haptic feedback applied to an analog to digital conversion. See {@link XrInteractionProfileAnalogThresholdVALVE} for more information.

    * *

    Applications should also enable the {@link KHRBindingModification XR_KHR_binding_modification} extension to be able to define multiple thresholds.

    - */ -public final class VALVEAnalogThreshold { - - /** The extension specification version. */ - public static final int XR_VALVE_analog_threshold_SPEC_VERSION = 2; - - /** The extension name. */ - public static final String XR_VALVE_ANALOG_THRESHOLD_EXTENSION_NAME = "XR_VALVE_analog_threshold"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE = 1000079000; + */ +public final class VALVEAnalogThreshold { + + /** The extension specification version. */ + public static final int XR_VALVE_analog_threshold_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_VALVE_ANALOG_THRESHOLD_EXTENSION_NAME = "XR_VALVE_analog_threshold"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE = 1000079000; - private VALVEAnalogThreshold() {} + private VALVEAnalogThreshold() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOCompositionLayerDepthTest.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOCompositionLayerDepthTest.java index 434383929a..4d34160615 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOCompositionLayerDepthTest.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOCompositionLayerDepthTest.java @@ -4,27 +4,27 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_VARJO_composition_layer_depth_test extension. * *

    This extension enables depth-based layer composition inside the compositor.

    * - *

    Core OpenXR specifies that layer compositing must happen in the layer submission order (as described in Compositing). However, an application may want to composite the final image against the other layers based on depth information for proper occlusion. Layers can now provide depth information that will be used to calculate occlusion between those layers, as well as with the environment depth estimator ({@link VARJOEnvironmentDepthEstimation XR_VARJO_environment_depth_estimation}) when enabled.

    + *

    Core OpenXR specifies that layer compositing must happen in the layer submission order (as described in Compositing). However, an application may want to composite the final image against the other layers based on depth information for proper occlusion. Layers can now provide depth information that will be used to calculate occlusion between those layers, as well as with the environment depth estimator ({@link VARJOEnvironmentDepthEstimation XR_VARJO_environment_depth_estimation}) when enabled.

    * *

    This extension defines a new type, {@link XrCompositionLayerDepthTestVARJO}, which can be chained to {@link XrCompositionLayerProjection} in order to activate this functionality. An application must also specify a range where depth testing will happen, potentially covering only a subset of the full depth range.

    - */ -public final class VARJOCompositionLayerDepthTest { - - /** The extension specification version. */ - public static final int XR_VARJO_composition_layer_depth_test_SPEC_VERSION = 2; - - /** The extension name. */ - public static final String XR_VARJO_COMPOSITION_LAYER_DEPTH_TEST_EXTENSION_NAME = "XR_VARJO_composition_layer_depth_test"; - - /** Extends {@code XrStructureType}. */ - public static final int XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_VARJO = 1000122000; + */ +public final class VARJOCompositionLayerDepthTest { + + /** The extension specification version. */ + public static final int XR_VARJO_composition_layer_depth_test_SPEC_VERSION = 2; + + /** The extension name. */ + public static final String XR_VARJO_COMPOSITION_LAYER_DEPTH_TEST_EXTENSION_NAME = "XR_VARJO_composition_layer_depth_test"; + + /** Extends {@code XrStructureType}. */ + public static final int XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_VARJO = 1000122000; - private VARJOCompositionLayerDepthTest() {} + private VARJOCompositionLayerDepthTest() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOEnvironmentDepthEstimation.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOEnvironmentDepthEstimation.java index c0e55b86c2..b99e632f20 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOEnvironmentDepthEstimation.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOEnvironmentDepthEstimation.java @@ -4,12 +4,12 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; + /** * The XR_VARJO_environment_depth_estimation extension. * @@ -18,21 +18,21 @@ *

    Mixed reality applications might want to mix real and virtual content based on the depth information for proper occlusion. XR hardware and runtime may offer various ways to estimate the depth of the environment inside the compositor. When this estimation is enabled, the compositor can generate properly occluded final image when layers are submitted with depth information (both {@link KHRCompositionLayerDepth XR_KHR_composition_layer_depth} and {@link VARJOCompositionLayerDepthTest XR_VARJO_composition_layer_depth_test}).

    * *

    This extension defines a new function, {@link #xrSetEnvironmentDepthEstimationVARJO SetEnvironmentDepthEstimationVARJO}, which can be used to toggle environment depth estimation in the compositor. Toggling depth estimation is an asynchronous operation and the feature may not be activated immediately. Function can be called immediately after the session is created. Composition of the environment layer follows the rules as described in {@link VARJOCompositionLayerDepthTest XR_VARJO_composition_layer_depth_test}.

    - */ -public class VARJOEnvironmentDepthEstimation { - - /** The extension specification version. */ - public static final int XR_VARJO_environment_depth_estimation_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_VARJO_ENVIRONMENT_DEPTH_ESTIMATION_EXTENSION_NAME = "XR_VARJO_environment_depth_estimation"; + */ +public class VARJOEnvironmentDepthEstimation { + + /** The extension specification version. */ + public static final int XR_VARJO_environment_depth_estimation_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_VARJO_ENVIRONMENT_DEPTH_ESTIMATION_EXTENSION_NAME = "XR_VARJO_environment_depth_estimation"; protected VARJOEnvironmentDepthEstimation() { throw new UnsupportedOperationException(); - } - - // --- [ xrSetEnvironmentDepthEstimationVARJO ] --- + } + // --- [ xrSetEnvironmentDepthEstimationVARJO ] --- + /** * Enable or disable environment depth estimation functionality. * @@ -73,14 +73,14 @@ protected VARJOEnvironmentDepthEstimation() { * * @param session an {@code XrSession} handle previously created with {@link XR10#xrCreateSession CreateSession}. * @param enabled a boolean that specifies whether depth estimation functionality should be activated. Compositor will disable depth estimation functionality if environment blend mode is not {@link XR10#XR_ENVIRONMENT_BLEND_MODE_ALPHA_BLEND ENVIRONMENT_BLEND_MODE_ALPHA_BLEND} and will enable the functionality when environment blend mode is set to {@link XR10#XR_ENVIRONMENT_BLEND_MODE_ALPHA_BLEND ENVIRONMENT_BLEND_MODE_ALPHA_BLEND}. - */ - @NativeType("XrResult") - public static int xrSetEnvironmentDepthEstimationVARJO(XrSession session, @NativeType("XrBool32") boolean enabled) { - long __functionAddress = session.getCapabilities().xrSetEnvironmentDepthEstimationVARJO; - if (CHECKS) { - check(__functionAddress); - } - return callPI(session.address(), enabled ? 1 : 0, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrSetEnvironmentDepthEstimationVARJO(XrSession session, @NativeType("XrBool32") boolean enabled) { + long __functionAddress = session.getCapabilities().xrSetEnvironmentDepthEstimationVARJO; + if (CHECKS) { + check(__functionAddress); + } + return callPI(session.address(), enabled ? 1 : 0, __functionAddress); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOFoveatedRendering.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOFoveatedRendering.java index 3c0415ed14..3f3516a2af 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOFoveatedRendering.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOFoveatedRendering.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_VARJO_foveated_rendering extension. * @@ -28,15 +28,15 @@ *
  • Check if rendering gaze is available using {@link XR10#xrLocateSpace LocateSpace}.
  • *
  • Enable foveated rendering when {@link XR10#xrLocateViews LocateViews} is called.
  • * - */ -public final class VARJOFoveatedRendering { - - /** The extension specification version. */ - public static final int XR_VARJO_foveated_rendering_SPEC_VERSION = 3; - - /** The extension name. */ - public static final String XR_VARJO_FOVEATED_RENDERING_EXTENSION_NAME = "XR_VARJO_foveated_rendering"; - + */ +public final class VARJOFoveatedRendering { + + /** The extension specification version. */ + public static final int XR_VARJO_foveated_rendering_SPEC_VERSION = 3; + + /** The extension name. */ + public static final String XR_VARJO_FOVEATED_RENDERING_EXTENSION_NAME = "XR_VARJO_foveated_rendering"; + /** * Extends {@code XrStructureType}. * @@ -47,15 +47,15 @@ public final class VARJOFoveatedRendering { *
  • {@link #XR_TYPE_FOVEATED_VIEW_CONFIGURATION_VIEW_VARJO TYPE_FOVEATED_VIEW_CONFIGURATION_VIEW_VARJO}
  • *
  • {@link #XR_TYPE_SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJO TYPE_SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJO}
  • * - */ + */ public static final int - XR_TYPE_VIEW_LOCATE_FOVEATED_RENDERING_VARJO = 1000121000, - XR_TYPE_FOVEATED_VIEW_CONFIGURATION_VIEW_VARJO = 1000121001, - XR_TYPE_SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJO = 1000121002; - - /** Extends {@code XrReferenceSpaceType}. */ - public static final int XR_REFERENCE_SPACE_TYPE_COMBINED_EYE_VARJO = 1000121000; + XR_TYPE_VIEW_LOCATE_FOVEATED_RENDERING_VARJO = 1000121000, + XR_TYPE_FOVEATED_VIEW_CONFIGURATION_VIEW_VARJO = 1000121001, + XR_TYPE_SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJO = 1000121002; + + /** Extends {@code XrReferenceSpaceType}. */ + public static final int XR_REFERENCE_SPACE_TYPE_COMBINED_EYE_VARJO = 1000121000; - private VARJOFoveatedRendering() {} + private VARJOFoveatedRendering() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOMarkerTracking.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOMarkerTracking.java index bcb0223f3b..601b64fa8e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOMarkerTracking.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOMarkerTracking.java @@ -4,34 +4,34 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import org.lwjgl.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryUtil.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryUtil.*; + /** * The XR_VARJO_marker_tracking extension. * *

    Varjo Markers are physical markers tracked by the video cameras of the HMD. Different types of markers can be used for different purposes. As an example, Varjo Markers can be used as cheap replacements for electronic trackers. The cost per printed tracker is significantly lower and the markers require no power to function.

    * - *

    This extension provides the tracking interface to a set of marker types and sizes. Markers can be printed out from the PDF documents and instructions freely available at https://developer.varjo.com/docs/get-started/varjo-markers#printing-varjo-markers. Note that the printed marker must have the exact physical size for its ID.

    + *

    This extension provides the tracking interface to a set of marker types and sizes. Markers can be printed out from the PDF documents and instructions freely available at https://developer.varjo.com/docs/get-started/varjo-markers#printing-varjo-markers. Note that the printed marker must have the exact physical size for its ID.

    * *

    Object markers are used to track static or dynamic objects in the user environment. You may use object markers in both XR and VR applications. Each marker has a unique ID, and you must not use the same physical marker more than once in any given environment. For added precision, an application may use multiple markers to track a single object. For example, you could track a monitor by placing a marker in each corner.

    * *

    There is a set of marker IDs recognized by runtime and if the application uses ID which is not in the set then runtime must return {@link #XR_ERROR_MARKER_ID_INVALID_VARJO ERROR_MARKER_ID_INVALID_VARJO}.

    - */ -public class VARJOMarkerTracking { - - /** The extension specification version. */ - public static final int XR_VARJO_marker_tracking_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_VARJO_MARKER_TRACKING_EXTENSION_NAME = "XR_VARJO_marker_tracking"; - + */ +public class VARJOMarkerTracking { + + /** The extension specification version. */ + public static final int XR_VARJO_marker_tracking_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_VARJO_MARKER_TRACKING_EXTENSION_NAME = "XR_VARJO_marker_tracking"; + /** * Extends {@code XrStructureType}. * @@ -42,12 +42,12 @@ public class VARJOMarkerTracking { *
  • {@link #XR_TYPE_EVENT_DATA_MARKER_TRACKING_UPDATE_VARJO TYPE_EVENT_DATA_MARKER_TRACKING_UPDATE_VARJO}
  • *
  • {@link #XR_TYPE_MARKER_SPACE_CREATE_INFO_VARJO TYPE_MARKER_SPACE_CREATE_INFO_VARJO}
  • * - */ + */ public static final int - XR_TYPE_SYSTEM_MARKER_TRACKING_PROPERTIES_VARJO = 1000124000, - XR_TYPE_EVENT_DATA_MARKER_TRACKING_UPDATE_VARJO = 1000124001, - XR_TYPE_MARKER_SPACE_CREATE_INFO_VARJO = 1000124002; - + XR_TYPE_SYSTEM_MARKER_TRACKING_PROPERTIES_VARJO = 1000124000, + XR_TYPE_EVENT_DATA_MARKER_TRACKING_UPDATE_VARJO = 1000124001, + XR_TYPE_MARKER_SPACE_CREATE_INFO_VARJO = 1000124002; + /** * Extends {@code XrResult}. * @@ -57,17 +57,17 @@ public class VARJOMarkerTracking { *
  • {@link #XR_ERROR_MARKER_NOT_TRACKED_VARJO ERROR_MARKER_NOT_TRACKED_VARJO}
  • *
  • {@link #XR_ERROR_MARKER_ID_INVALID_VARJO ERROR_MARKER_ID_INVALID_VARJO}
  • * - */ + */ public static final int - XR_ERROR_MARKER_NOT_TRACKED_VARJO = -1000124000, - XR_ERROR_MARKER_ID_INVALID_VARJO = -1000124001; + XR_ERROR_MARKER_NOT_TRACKED_VARJO = -1000124000, + XR_ERROR_MARKER_ID_INVALID_VARJO = -1000124001; protected VARJOMarkerTracking() { throw new UnsupportedOperationException(); - } - - // --- [ xrSetMarkerTrackingVARJO ] --- + } + // --- [ xrSetMarkerTrackingVARJO ] --- + /** * Enables marker tracking. * @@ -112,18 +112,18 @@ protected VARJOMarkerTracking() { * * @param session an {@code XrSession} handle previously created with {@link XR10#xrCreateSession CreateSession}. * @param enabled the flag to enable or disable marker tracking. - */ - @NativeType("XrResult") - public static int xrSetMarkerTrackingVARJO(XrSession session, @NativeType("XrBool32") boolean enabled) { - long __functionAddress = session.getCapabilities().xrSetMarkerTrackingVARJO; - if (CHECKS) { - check(__functionAddress); - } - return callPI(session.address(), enabled ? 1 : 0, __functionAddress); - } - - // --- [ xrSetMarkerTrackingTimeoutVARJO ] --- + */ + @NativeType("XrResult") + public static int xrSetMarkerTrackingVARJO(XrSession session, @NativeType("XrBool32") boolean enabled) { + long __functionAddress = session.getCapabilities().xrSetMarkerTrackingVARJO; + if (CHECKS) { + check(__functionAddress); + } + return callPI(session.address(), enabled ? 1 : 0, __functionAddress); + } + // --- [ xrSetMarkerTrackingTimeoutVARJO ] --- + /** * Sets marker lifetime duration. * @@ -171,18 +171,18 @@ public static int xrSetMarkerTrackingVARJO(XrSession session, @NativeType("XrBoo * @param session an {@code XrSession} handle previously created with {@link XR10#xrCreateSession CreateSession}. * @param markerId the unique identifier of the marker for which the timeout will be updated. * @param timeout the desired lifetime duration for a specified marker. - */ - @NativeType("XrResult") - public static int xrSetMarkerTrackingTimeoutVARJO(XrSession session, @NativeType("uint64_t") long markerId, @NativeType("XrDuration") long timeout) { - long __functionAddress = session.getCapabilities().xrSetMarkerTrackingTimeoutVARJO; - if (CHECKS) { - check(__functionAddress); - } - return callPJJI(session.address(), markerId, timeout, __functionAddress); - } - - // --- [ xrSetMarkerTrackingPredictionVARJO ] --- + */ + @NativeType("XrResult") + public static int xrSetMarkerTrackingTimeoutVARJO(XrSession session, @NativeType("uint64_t") long markerId, @NativeType("XrDuration") long timeout) { + long __functionAddress = session.getCapabilities().xrSetMarkerTrackingTimeoutVARJO; + if (CHECKS) { + check(__functionAddress); + } + return callPJJI(session.address(), markerId, timeout, __functionAddress); + } + // --- [ xrSetMarkerTrackingPredictionVARJO ] --- + /** * Sets marker tracking with prediction. * @@ -229,27 +229,27 @@ public static int xrSetMarkerTrackingTimeoutVARJO(XrSession session, @NativeType * * @param session an {@code XrSession} handle previously created with {@link XR10#xrCreateSession CreateSession}. * @param markerId the unique identifier of the marker which should be tracked with prediction. - */ - @NativeType("XrResult") - public static int xrSetMarkerTrackingPredictionVARJO(XrSession session, @NativeType("uint64_t") long markerId, @NativeType("XrBool32") boolean enabled) { - long __functionAddress = session.getCapabilities().xrSetMarkerTrackingPredictionVARJO; - if (CHECKS) { - check(__functionAddress); - } - return callPJI(session.address(), markerId, enabled ? 1 : 0, __functionAddress); - } - - // --- [ xrGetMarkerSizeVARJO ] --- - - /** Unsafe version of: {@link #xrGetMarkerSizeVARJO GetMarkerSizeVARJO} */ - public static int nxrGetMarkerSizeVARJO(XrSession session, long markerId, long size) { - long __functionAddress = session.getCapabilities().xrGetMarkerSizeVARJO; - if (CHECKS) { - check(__functionAddress); - } - return callPJPI(session.address(), markerId, size, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrSetMarkerTrackingPredictionVARJO(XrSession session, @NativeType("uint64_t") long markerId, @NativeType("XrBool32") boolean enabled) { + long __functionAddress = session.getCapabilities().xrSetMarkerTrackingPredictionVARJO; + if (CHECKS) { + check(__functionAddress); + } + return callPJI(session.address(), markerId, enabled ? 1 : 0, __functionAddress); + } + // --- [ xrGetMarkerSizeVARJO ] --- + + /** Unsafe version of: {@link #xrGetMarkerSizeVARJO GetMarkerSizeVARJO} */ + public static int nxrGetMarkerSizeVARJO(XrSession session, long markerId, long size) { + long __functionAddress = session.getCapabilities().xrGetMarkerSizeVARJO; + if (CHECKS) { + check(__functionAddress); + } + return callPJPI(session.address(), markerId, size, __functionAddress); + } + /** * Gets physical size of marker. * @@ -303,23 +303,23 @@ public static int nxrGetMarkerSizeVARJO(XrSession session, long markerId, long s * @param session an {@code XrSession} handle previously created with {@link XR10#xrCreateSession CreateSession}. * @param markerId the unique identifier of the marker for which size is requested. * @param size pointer to the size to populate by the runtime with the physical size of plane marker in meters. - */ - @NativeType("XrResult") - public static int xrGetMarkerSizeVARJO(XrSession session, @NativeType("uint64_t") long markerId, @NativeType("XrExtent2Df *") XrExtent2Df size) { - return nxrGetMarkerSizeVARJO(session, markerId, size.address()); - } - - // --- [ xrCreateMarkerSpaceVARJO ] --- - - /** Unsafe version of: {@link #xrCreateMarkerSpaceVARJO CreateMarkerSpaceVARJO} */ - public static int nxrCreateMarkerSpaceVARJO(XrSession session, long createInfo, long space) { - long __functionAddress = session.getCapabilities().xrCreateMarkerSpaceVARJO; - if (CHECKS) { - check(__functionAddress); - } - return callPPPI(session.address(), createInfo, space, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrGetMarkerSizeVARJO(XrSession session, @NativeType("uint64_t") long markerId, @NativeType("XrExtent2Df *") XrExtent2Df size) { + return nxrGetMarkerSizeVARJO(session, markerId, size.address()); + } + // --- [ xrCreateMarkerSpaceVARJO ] --- + + /** Unsafe version of: {@link #xrCreateMarkerSpaceVARJO CreateMarkerSpaceVARJO} */ + public static int nxrCreateMarkerSpaceVARJO(XrSession session, long createInfo, long space) { + long __functionAddress = session.getCapabilities().xrCreateMarkerSpaceVARJO; + if (CHECKS) { + check(__functionAddress); + } + return callPPPI(session.address(), createInfo, space, __functionAddress); + } + /** * Creates marker space. * @@ -376,13 +376,13 @@ public static int nxrCreateMarkerSpaceVARJO(XrSession session, long createInfo, * @param session an {@code XrSession} handle previously created with {@link XR10#xrCreateSession CreateSession}. * @param createInfo the structure containing information about how to create the space based on marker. * @param space a pointer to a handle in which the created {@code XrSpace} is returned. - */ - @NativeType("XrResult") - public static int xrCreateMarkerSpaceVARJO(XrSession session, @NativeType("XrMarkerSpaceCreateInfoVARJO const *") XrMarkerSpaceCreateInfoVARJO createInfo, @NativeType("XrSpace *") PointerBuffer space) { - if (CHECKS) { - check(space, 1); - } - return nxrCreateMarkerSpaceVARJO(session, createInfo.address(), memAddress(space)); - } + */ + @NativeType("XrResult") + public static int xrCreateMarkerSpaceVARJO(XrSession session, @NativeType("XrMarkerSpaceCreateInfoVARJO const *") XrMarkerSpaceCreateInfoVARJO createInfo, @NativeType("XrSpace *") PointerBuffer space) { + if (CHECKS) { + check(space, 1); + } + return nxrCreateMarkerSpaceVARJO(session, createInfo.address(), memAddress(space)); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOQuadViews.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOQuadViews.java index 5428031523..de03dc945f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOQuadViews.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOQuadViews.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + /** * The XR_VARJO_quad_views extension. * @@ -19,18 +19,18 @@ *

    The relative position of the inner views relative to the outer views can change at run-time.

    * *

    The runtime might blend between the views at the edges, so the application should not omit the inner field of view from being generated in the outer view.

    - */ -public final class VARJOQuadViews { - - /** The extension specification version. */ - public static final int XR_VARJO_quad_views_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_VARJO_QUAD_VIEWS_EXTENSION_NAME = "XR_VARJO_quad_views"; - - /** Extends {@code XrViewConfigurationType}. */ - public static final int XR_VIEW_CONFIGURATION_TYPE_PRIMARY_QUAD_VARJO = 1000037000; + */ +public final class VARJOQuadViews { + + /** The extension specification version. */ + public static final int XR_VARJO_quad_views_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_VARJO_QUAD_VIEWS_EXTENSION_NAME = "XR_VARJO_quad_views"; + + /** Extends {@code XrViewConfigurationType}. */ + public static final int XR_VIEW_CONFIGURATION_TYPE_PRIMARY_QUAD_VARJO = 1000037000; - private VARJOQuadViews() {} + private VARJOQuadViews() {} } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOViewOffset.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOViewOffset.java index 8b7a919978..d223871f89 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOViewOffset.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/VARJOViewOffset.java @@ -4,12 +4,12 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; + /** * The XR_VARJO_view_offset extension. * @@ -20,21 +20,21 @@ *

    When blending the video pass-through image with virtual content, it is important that their relative geometries – position, size, and disparity – match one another. To achieve this, Varjo’s runtime automatically places the virtual reality cameras in the same position as the physical cameras when the video pass-through feature is enabled (see {@link XR10#XR_ENVIRONMENT_BLEND_MODE_ALPHA_BLEND ENVIRONMENT_BLEND_MODE_ALPHA_BLEND}). This allows virtual and real-world content to appear at the same distance and on the same plane when viewed together. While this can be observed as an apparent jump in the location of virtual objects compared to VR-only content, this does not cause any distortion in the object geometry or location; it is only the viewer’s location that changes.

    * *

    In some cases, moving the VR content to match the real-world position may not be desirable. This extension enable the application to control where the VR content is rendered from the location of the user’s eyes while the video pass-through image uses the camera locations. For example, if the virtual object is close the user, or if the application is switching between VR and MR modes. Offset values between 0.0 and 1.0 are supported. You can use this to create a smooth, animated transition between the two rendering positions in case you need to change from one to the other during a session.

    - */ -public class VARJOViewOffset { - - /** The extension specification version. */ - public static final int XR_VARJO_view_offset_SPEC_VERSION = 1; - - /** The extension name. */ - public static final String XR_VARJO_VIEW_OFFSET_EXTENSION_NAME = "XR_VARJO_view_offset"; + */ +public class VARJOViewOffset { + + /** The extension specification version. */ + public static final int XR_VARJO_view_offset_SPEC_VERSION = 1; + + /** The extension name. */ + public static final String XR_VARJO_VIEW_OFFSET_EXTENSION_NAME = "XR_VARJO_view_offset"; protected VARJOViewOffset() { throw new UnsupportedOperationException(); - } - - // --- [ xrSetViewOffsetVARJO ] --- + } + // --- [ xrSetViewOffsetVARJO ] --- + /** * Set view offest. * @@ -93,14 +93,14 @@ protected VARJOViewOffset() { * * @param session an {@code XrSession} handle previously created with {@link XR10#xrCreateSession CreateSession}. * @param offset the view offset to be applied. Must be between 0 and 1. - */ - @NativeType("XrResult") - public static int xrSetViewOffsetVARJO(XrSession session, float offset) { - long __functionAddress = session.getCapabilities().xrSetViewOffsetVARJO; - if (CHECKS) { - check(__functionAddress); - } - return callPI(session.address(), offset, __functionAddress); - } + */ + @NativeType("XrResult") + public static int xrSetViewOffsetVARJO(XrSession session, float offset) { + long __functionAddress = session.getCapabilities().xrSetViewOffsetVARJO; + if (CHECKS) { + check(__functionAddress); + } + return callPI(session.address(), offset, __functionAddress); + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XR10.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XR10.java index cd8eb36215..46ba3c4c45 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XR10.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XR10.java @@ -4,23 +4,23 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - + import org.lwjgl.*; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.JNI.*; -import static org.lwjgl.system.MemoryStack.*; -import static org.lwjgl.system.MemoryUtil.*; - -/** The core OpenXR 1.0 functionality. */ -public class XR10 { - + +import org.lwjgl.system.*; + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.JNI.*; +import static org.lwjgl.system.MemoryStack.*; +import static org.lwjgl.system.MemoryUtil.*; + +/** The core OpenXR 1.0 functionality. */ +public class XR10 { + /** * XrResult - Result codes * @@ -69,8 +69,8 @@ public class XR10 { * {@link #XR_ERROR_SIZE_INSUFFICIENT ERROR_SIZE_INSUFFICIENT}The supplied size was smaller than required. * {@link #XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}A supplied object handle was invalid. * {@link #XR_ERROR_INSTANCE_LOST ERROR_INSTANCE_LOST}The {@code XrInstance} was lost or could not be found. It will need to be destroyed and optionally recreated. - * {@link #XR_ERROR_SESSION_RUNNING ERROR_SESSION_RUNNING}The session is already running. - * {@link #XR_ERROR_SESSION_NOT_RUNNING ERROR_SESSION_NOT_RUNNING}The session is not yet running. + * {@link #XR_ERROR_SESSION_RUNNING ERROR_SESSION_RUNNING}The session is already running. + * {@link #XR_ERROR_SESSION_NOT_RUNNING ERROR_SESSION_NOT_RUNNING}The session is not yet running. * {@link #XR_ERROR_SESSION_LOST ERROR_SESSION_LOST}The {@code XrSession} was lost. It will need to be destroyed and optionally recreated. * {@link #XR_ERROR_SYSTEM_INVALID ERROR_SYSTEM_INVALID}The provided {@code XrSystemId} was invalid. * {@link #XR_ERROR_PATH_INVALID ERROR_PATH_INVALID}The provided {@code XrPath} was not valid. @@ -137,86 +137,83 @@ public class XR10 { * {@link FBSpatialEntitySharing#XR_ERROR_SPACE_NETWORK_TIMEOUT_FB ERROR_SPACE_NETWORK_TIMEOUT_FB}Timeout occurred while waiting for network request to complete. (Added by the {@link FBSpatialEntitySharing XR_FB_spatial_entity_sharing} extension) * {@link FBSpatialEntitySharing#XR_ERROR_SPACE_NETWORK_REQUEST_FAILED_FB ERROR_SPACE_NETWORK_REQUEST_FAILED_FB}The network request failed. (Added by the {@link FBSpatialEntitySharing XR_FB_spatial_entity_sharing} extension) * {@link FBSpatialEntitySharing#XR_ERROR_SPACE_CLOUD_STORAGE_DISABLED_FB ERROR_SPACE_CLOUD_STORAGE_DISABLED_FB}Cloud storage is required for this operation but is currently disabled. (Added by the {@link FBSpatialEntitySharing XR_FB_spatial_entity_sharing} extension) - * {@link METAPassthroughColorLut#XR_ERROR_PASSTHROUGH_COLOR_LUT_BUFFER_SIZE_MISMATCH_META ERROR_PASSTHROUGH_COLOR_LUT_BUFFER_SIZE_MISMATCH_META}The provided data buffer did not match the required size. (Added by the {@link METAPassthroughColorLut XR_META_passthrough_color_lut} extension) * {@link QCOMTrackingOptimizationSettings#XR_ERROR_HINT_ALREADY_SET_QCOM ERROR_HINT_ALREADY_SET_QCOM}Tracking optimization hint is already set for the domain. (Added by the {@link QCOMTrackingOptimizationSettings XR_QCOM_tracking_optimization_settings} extension) - * {@link EXTPlaneDetection#XR_ERROR_SPACE_NOT_LOCATABLE_EXT ERROR_SPACE_NOT_LOCATABLE_EXT}The space passed to the function was not locatable. (Added by the {@link EXTPlaneDetection XR_EXT_plane_detection} extension) - * {@link EXTPlaneDetection#XR_ERROR_PLANE_DETECTION_PERMISSION_DENIED_EXT ERROR_PLANE_DETECTION_PERMISSION_DENIED_EXT}The permission for this resource was not granted. (Added by the {@link EXTPlaneDetection XR_EXT_plane_detection} extension) * * * *
    See Also
    * *

    {@link XrEventDataSceneCaptureCompleteFB}, {@link XrEventDataSpaceEraseCompleteFB}, {@link XrEventDataSpaceListSaveCompleteFB}, {@link XrEventDataSpaceQueryCompleteFB}, {@link XrEventDataSpaceSaveCompleteFB}, {@link XrEventDataSpaceSetStatusCompleteFB}, {@link XrEventDataSpaceShareCompleteFB}, {@link XrEventDataSpatialAnchorCreateCompleteFB}, {@link #xrResultToString ResultToString}

    - */ + */ public static final int - XR_SUCCESS = 0, - XR_TIMEOUT_EXPIRED = 1, - XR_SESSION_LOSS_PENDING = 3, - XR_EVENT_UNAVAILABLE = 4, - XR_SPACE_BOUNDS_UNAVAILABLE = 7, - XR_SESSION_NOT_FOCUSED = 8, - XR_FRAME_DISCARDED = 9, - XR_ERROR_VALIDATION_FAILURE = -1, - XR_ERROR_RUNTIME_FAILURE = -2, - XR_ERROR_OUT_OF_MEMORY = -3, - XR_ERROR_API_VERSION_UNSUPPORTED = -4, - XR_ERROR_INITIALIZATION_FAILED = -6, - XR_ERROR_FUNCTION_UNSUPPORTED = -7, - XR_ERROR_FEATURE_UNSUPPORTED = -8, - XR_ERROR_EXTENSION_NOT_PRESENT = -9, - XR_ERROR_LIMIT_REACHED = -10, - XR_ERROR_SIZE_INSUFFICIENT = -11, - XR_ERROR_HANDLE_INVALID = -12, - XR_ERROR_INSTANCE_LOST = -13, - XR_ERROR_SESSION_RUNNING = -14, - XR_ERROR_SESSION_NOT_RUNNING = -16, - XR_ERROR_SESSION_LOST = -17, - XR_ERROR_SYSTEM_INVALID = -18, - XR_ERROR_PATH_INVALID = -19, - XR_ERROR_PATH_COUNT_EXCEEDED = -20, - XR_ERROR_PATH_FORMAT_INVALID = -21, - XR_ERROR_PATH_UNSUPPORTED = -22, - XR_ERROR_LAYER_INVALID = -23, - XR_ERROR_LAYER_LIMIT_EXCEEDED = -24, - XR_ERROR_SWAPCHAIN_RECT_INVALID = -25, - XR_ERROR_SWAPCHAIN_FORMAT_UNSUPPORTED = -26, - XR_ERROR_ACTION_TYPE_MISMATCH = -27, - XR_ERROR_SESSION_NOT_READY = -28, - XR_ERROR_SESSION_NOT_STOPPING = -29, - XR_ERROR_TIME_INVALID = -30, - XR_ERROR_REFERENCE_SPACE_UNSUPPORTED = -31, - XR_ERROR_FILE_ACCESS_ERROR = -32, - XR_ERROR_FILE_CONTENTS_INVALID = -33, - XR_ERROR_FORM_FACTOR_UNSUPPORTED = -34, - XR_ERROR_FORM_FACTOR_UNAVAILABLE = -35, - XR_ERROR_API_LAYER_NOT_PRESENT = -36, - XR_ERROR_CALL_ORDER_INVALID = -37, - XR_ERROR_GRAPHICS_DEVICE_INVALID = -38, - XR_ERROR_POSE_INVALID = -39, - XR_ERROR_INDEX_OUT_OF_RANGE = -40, - XR_ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED = -41, - XR_ERROR_ENVIRONMENT_BLEND_MODE_UNSUPPORTED = -42, - XR_ERROR_NAME_DUPLICATED = -44, - XR_ERROR_NAME_INVALID = -45, - XR_ERROR_ACTIONSET_NOT_ATTACHED = -46, - XR_ERROR_ACTIONSETS_ALREADY_ATTACHED = -47, - XR_ERROR_LOCALIZED_NAME_DUPLICATED = -48, - XR_ERROR_LOCALIZED_NAME_INVALID = -49, - XR_ERROR_GRAPHICS_REQUIREMENTS_CALL_MISSING = -50, - XR_ERROR_RUNTIME_UNAVAILABLE = -51; - + XR_SUCCESS = 0, + XR_TIMEOUT_EXPIRED = 1, + XR_SESSION_LOSS_PENDING = 3, + XR_EVENT_UNAVAILABLE = 4, + XR_SPACE_BOUNDS_UNAVAILABLE = 7, + XR_SESSION_NOT_FOCUSED = 8, + XR_FRAME_DISCARDED = 9, + XR_ERROR_VALIDATION_FAILURE = -1, + XR_ERROR_RUNTIME_FAILURE = -2, + XR_ERROR_OUT_OF_MEMORY = -3, + XR_ERROR_API_VERSION_UNSUPPORTED = -4, + XR_ERROR_INITIALIZATION_FAILED = -6, + XR_ERROR_FUNCTION_UNSUPPORTED = -7, + XR_ERROR_FEATURE_UNSUPPORTED = -8, + XR_ERROR_EXTENSION_NOT_PRESENT = -9, + XR_ERROR_LIMIT_REACHED = -10, + XR_ERROR_SIZE_INSUFFICIENT = -11, + XR_ERROR_HANDLE_INVALID = -12, + XR_ERROR_INSTANCE_LOST = -13, + XR_ERROR_SESSION_RUNNING = -14, + XR_ERROR_SESSION_NOT_RUNNING = -16, + XR_ERROR_SESSION_LOST = -17, + XR_ERROR_SYSTEM_INVALID = -18, + XR_ERROR_PATH_INVALID = -19, + XR_ERROR_PATH_COUNT_EXCEEDED = -20, + XR_ERROR_PATH_FORMAT_INVALID = -21, + XR_ERROR_PATH_UNSUPPORTED = -22, + XR_ERROR_LAYER_INVALID = -23, + XR_ERROR_LAYER_LIMIT_EXCEEDED = -24, + XR_ERROR_SWAPCHAIN_RECT_INVALID = -25, + XR_ERROR_SWAPCHAIN_FORMAT_UNSUPPORTED = -26, + XR_ERROR_ACTION_TYPE_MISMATCH = -27, + XR_ERROR_SESSION_NOT_READY = -28, + XR_ERROR_SESSION_NOT_STOPPING = -29, + XR_ERROR_TIME_INVALID = -30, + XR_ERROR_REFERENCE_SPACE_UNSUPPORTED = -31, + XR_ERROR_FILE_ACCESS_ERROR = -32, + XR_ERROR_FILE_CONTENTS_INVALID = -33, + XR_ERROR_FORM_FACTOR_UNSUPPORTED = -34, + XR_ERROR_FORM_FACTOR_UNAVAILABLE = -35, + XR_ERROR_API_LAYER_NOT_PRESENT = -36, + XR_ERROR_CALL_ORDER_INVALID = -37, + XR_ERROR_GRAPHICS_DEVICE_INVALID = -38, + XR_ERROR_POSE_INVALID = -39, + XR_ERROR_INDEX_OUT_OF_RANGE = -40, + XR_ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED = -41, + XR_ERROR_ENVIRONMENT_BLEND_MODE_UNSUPPORTED = -42, + XR_ERROR_NAME_DUPLICATED = -44, + XR_ERROR_NAME_INVALID = -45, + XR_ERROR_ACTIONSET_NOT_ATTACHED = -46, + XR_ERROR_ACTIONSETS_ALREADY_ATTACHED = -47, + XR_ERROR_LOCALIZED_NAME_DUPLICATED = -48, + XR_ERROR_LOCALIZED_NAME_INVALID = -49, + XR_ERROR_GRAPHICS_REQUIREMENTS_CALL_MISSING = -50, + XR_ERROR_RUNTIME_UNAVAILABLE = -51; + /** * XrStructureType - Values for type members of structs * *
    Description
    * - *

    Most structures containing {@code type} members have a value of {@code type} matching the type of the structure, as described more fully in Valid Usage for Structure Types.

    + *

    Most structures containing {@code type} members have a value of {@code type} matching the type of the structure, as described more fully in Valid Usage for Structure Types.

    * - *

    Note that all extension enums begin at the extension enum base of 10^9 (base 10). Each extension is assigned a block of 1000 enums, starting at the enum base and arranged by the extension’s number.

    + *

    Note that all extension enums begin at the extension enum base of 110 (base 10). Each extension is assigned a block of 1000 enums, starting at the enum base and arranged by the extension’s index.

    * *
    See Also
    * - *

    {@link XrActionCreateInfo}, {@link XrActionSetCreateInfo}, {@link XrActionSpaceCreateInfo}, {@link XrActionStateBoolean}, {@link XrActionStateFloat}, {@link XrActionStateGetInfo}, {@link XrActionStatePose}, {@link XrActionStateVector2f}, {@link XrActionsSyncInfo}, {@link XrActiveActionSetPrioritiesEXT}, {@link XrApiLayerProperties}, {@link XrBaseInStructure}, {@link XrBaseOutStructure}, {@link XrBindingModificationBaseHeaderKHR}, {@link XrBindingModificationsKHR}, {@link XrBodyJointLocationsFB}, {@link XrBodyJointsLocateInfoFB}, {@link XrBodySkeletonFB}, {@link XrBodyTrackerCreateInfoFB}, {@link XrBoundSourcesForActionEnumerateInfo}, {@link XrBoundary2DFB}, {@link XrCompositionLayerAlphaBlendFB}, {@link XrCompositionLayerBaseHeader}, {@link XrCompositionLayerColorScaleBiasKHR}, {@link XrCompositionLayerCubeKHR}, {@link XrCompositionLayerCylinderKHR}, {@link XrCompositionLayerDepthInfoKHR}, {@link XrCompositionLayerDepthTestFB}, {@link XrCompositionLayerDepthTestVARJO}, {@link XrCompositionLayerEquirect2KHR}, {@link XrCompositionLayerEquirectKHR}, {@link XrCompositionLayerImageLayoutFB}, {@link XrCompositionLayerPassthroughFB}, {@link XrCompositionLayerPassthroughHTC}, {@link XrCompositionLayerProjection}, {@link XrCompositionLayerProjectionView}, {@link XrCompositionLayerQuad}, {@link XrCompositionLayerReprojectionInfoMSFT}, {@link XrCompositionLayerReprojectionPlaneOverrideMSFT}, {@link XrCompositionLayerSecureContentFB}, {@link XrCompositionLayerSettingsFB}, {@link XrCompositionLayerSpaceWarpInfoFB}, {@link XrControllerModelKeyStateMSFT}, {@link XrControllerModelNodePropertiesMSFT}, {@link XrControllerModelNodeStateMSFT}, {@link XrControllerModelPropertiesMSFT}, {@link XrControllerModelStateMSFT}, {@link XrCoordinateSpaceCreateInfoML}, {@link XrDebugUtilsLabelEXT}, {@link XrDebugUtilsMessengerCallbackDataEXT}, {@link XrDebugUtilsMessengerCreateInfoEXT}, {@link XrDebugUtilsObjectNameInfoEXT}, {@link XrDevicePcmSampleRateStateFB}, {@link XrDigitalLensControlALMALENCE}, {@link XrEventDataBaseHeader}, {@link XrEventDataBuffer}, {@link XrEventDataDisplayRefreshRateChangedFB}, {@link XrEventDataEventsLost}, {@link XrEventDataInstanceLossPending}, {@link XrEventDataInteractionProfileChanged}, {@link XrEventDataMainSessionVisibilityChangedEXTX}, {@link XrEventDataMarkerTrackingUpdateVARJO}, {@link XrEventDataPassthroughStateChangedFB}, {@link XrEventDataPerfSettingsEXT}, {@link XrEventDataReferenceSpaceChangePending}, {@link XrEventDataSceneCaptureCompleteFB}, {@link XrEventDataSessionStateChanged}, {@link XrEventDataSpaceEraseCompleteFB}, {@link XrEventDataSpaceListSaveCompleteFB}, {@link XrEventDataSpaceQueryCompleteFB}, {@link XrEventDataSpaceQueryResultsAvailableFB}, {@link XrEventDataSpaceSaveCompleteFB}, {@link XrEventDataSpaceSetStatusCompleteFB}, {@link XrEventDataSpaceShareCompleteFB}, {@link XrEventDataSpatialAnchorCreateCompleteFB}, {@link XrEventDataVirtualKeyboardBackspaceMETA}, {@link XrEventDataVirtualKeyboardCommitTextMETA}, {@link XrEventDataVirtualKeyboardEnterMETA}, {@link XrEventDataVirtualKeyboardHiddenMETA}, {@link XrEventDataVirtualKeyboardShownMETA}, {@link XrEventDataVisibilityMaskChangedKHR}, {@link XrEventDataViveTrackerConnectedHTCX}, {@link XrExtensionProperties}, {@link XrExternalCameraOCULUS}, {@link XrEyeGazeSampleTimeEXT}, {@link XrEyeGazesFB}, {@link XrEyeGazesInfoFB}, {@link XrEyeTrackerCreateInfoFB}, {@link XrFaceExpressionInfoFB}, {@link XrFaceExpressionWeightsFB}, {@link XrFaceTrackerCreateInfoFB}, {@link XrFacialExpressionsHTC}, {@link XrFacialTrackerCreateInfoHTC}, {@link XrForceFeedbackCurlApplyLocationsMNDX}, {@link XrFoveatedViewConfigurationViewVARJO}, {@link XrFoveationApplyInfoHTC}, {@link XrFoveationCustomModeInfoHTC}, {@link XrFoveationDynamicModeInfoHTC}, {@link XrFoveationEyeTrackedProfileCreateInfoMETA}, {@link XrFoveationEyeTrackedStateMETA}, {@link XrFoveationLevelProfileCreateInfoFB}, {@link XrFoveationProfileCreateInfoFB}, {@link XrFrameBeginInfo}, {@link XrFrameEndInfo}, {@link XrFrameEndInfoML}, {@link XrFrameState}, {@link XrFrameWaitInfo}, {@link XrGeometryInstanceCreateInfoFB}, {@link XrGeometryInstanceTransformFB}, {@link XrGlobalDimmerFrameEndInfoML}, {@link XrGraphicsBindingEGLMNDX}, {@link XrGraphicsBindingOpenGLWaylandKHR}, {@link XrGraphicsBindingOpenGLWin32KHR}, {@link XrGraphicsBindingOpenGLXcbKHR}, {@link XrGraphicsBindingOpenGLXlibKHR}, {@link XrGraphicsBindingVulkanKHR}, {@link XrGraphicsRequirementsOpenGLKHR}, {@link XrGraphicsRequirementsVulkanKHR}, {@link XrHandJointLocationsEXT}, {@link XrHandJointVelocitiesEXT}, {@link XrHandJointsLocateInfoEXT}, {@link XrHandJointsMotionRangeInfoEXT}, {@link XrHandMeshMSFT}, {@link XrHandMeshSpaceCreateInfoMSFT}, {@link XrHandMeshUpdateInfoMSFT}, {@link XrHandPoseTypeInfoMSFT}, {@link XrHandTrackerCreateInfoEXT}, {@link XrHandTrackingAimStateFB}, {@link XrHandTrackingCapsulesStateFB}, {@link XrHandTrackingDataSourceInfoEXT}, {@link XrHandTrackingDataSourceStateEXT}, {@link XrHandTrackingMeshFB}, {@link XrHandTrackingScaleFB}, {@link XrHapticActionInfo}, {@link XrHapticAmplitudeEnvelopeVibrationFB}, {@link XrHapticBaseHeader}, {@link XrHapticPcmVibrationFB}, {@link XrHapticVibration}, {@link XrHolographicWindowAttachmentMSFT}, {@link XrInputSourceLocalizedNameGetInfo}, {@link XrInstanceCreateInfo}, {@link XrInstanceProperties}, {@link XrInteractionProfileAnalogThresholdVALVE}, {@link XrInteractionProfileDpadBindingEXT}, {@link XrInteractionProfileState}, {@link XrInteractionProfileSuggestedBinding}, {@link XrKeyboardSpaceCreateInfoFB}, {@link XrKeyboardTrackingQueryFB}, {@link XrLoaderInitInfoBaseHeaderKHR}, {@link XrLocalDimmingFrameEndInfoMETA}, {@link XrMarkerSpaceCreateInfoVARJO}, {@link XrNewSceneComputeInfoMSFT}, {@link XrPassthroughBrightnessContrastSaturationFB}, {@link XrPassthroughColorHTC}, {@link XrPassthroughColorLutCreateInfoMETA}, {@link XrPassthroughColorLutUpdateInfoMETA}, {@link XrPassthroughColorMapInterpolatedLutMETA}, {@link XrPassthroughColorMapLutMETA}, {@link XrPassthroughColorMapMonoToMonoFB}, {@link XrPassthroughColorMapMonoToRgbaFB}, {@link XrPassthroughCreateInfoFB}, {@link XrPassthroughCreateInfoHTC}, {@link XrPassthroughKeyboardHandsIntensityFB}, {@link XrPassthroughLayerCreateInfoFB}, {@link XrPassthroughMeshTransformInfoHTC}, {@link XrPassthroughPreferencesMETA}, {@link XrPassthroughStyleFB}, {@link XrPerformanceMetricsCounterMETA}, {@link XrPerformanceMetricsStateMETA}, {@link XrPlaneDetectorBeginInfoEXT}, {@link XrPlaneDetectorCreateInfoEXT}, {@link XrPlaneDetectorGetInfoEXT}, {@link XrPlaneDetectorLocationEXT}, {@link XrPlaneDetectorLocationsEXT}, {@link XrPlaneDetectorPolygonBufferEXT}, {@link XrReferenceSpaceCreateInfo}, {@link XrRenderModelBufferFB}, {@link XrRenderModelCapabilitiesRequestFB}, {@link XrRenderModelLoadInfoFB}, {@link XrRenderModelPathInfoFB}, {@link XrRenderModelPropertiesFB}, {@link XrRoomLayoutFB}, {@link XrSceneCaptureRequestInfoFB}, {@link XrSceneComponentLocationsMSFT}, {@link XrSceneComponentParentFilterInfoMSFT}, {@link XrSceneComponentsGetInfoMSFT}, {@link XrSceneComponentsLocateInfoMSFT}, {@link XrSceneComponentsMSFT}, {@link XrSceneCreateInfoMSFT}, {@link XrSceneDeserializeInfoMSFT}, {@link XrSceneMeshBuffersGetInfoMSFT}, {@link XrSceneMeshBuffersMSFT}, {@link XrSceneMeshIndicesUint16MSFT}, {@link XrSceneMeshIndicesUint32MSFT}, {@link XrSceneMeshVertexBufferMSFT}, {@link XrSceneMeshesMSFT}, {@link XrSceneObjectTypesFilterInfoMSFT}, {@link XrSceneObjectsMSFT}, {@link XrSceneObserverCreateInfoMSFT}, {@link XrScenePlaneAlignmentFilterInfoMSFT}, {@link XrScenePlanesMSFT}, {@link XrSecondaryViewConfigurationFrameEndInfoMSFT}, {@link XrSecondaryViewConfigurationFrameStateMSFT}, {@link XrSecondaryViewConfigurationLayerInfoMSFT}, {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT}, {@link XrSecondaryViewConfigurationStateMSFT}, {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT}, {@link XrSemanticLabelsFB}, {@link XrSemanticLabelsSupportInfoFB}, {@link XrSerializedSceneFragmentDataGetInfoMSFT}, {@link XrSessionActionSetsAttachInfo}, {@link XrSessionBeginInfo}, {@link XrSessionCreateInfo}, {@link XrSessionCreateInfoOverlayEXTX}, {@link XrSpaceComponentFilterInfoFB}, {@link XrSpaceComponentStatusFB}, {@link XrSpaceComponentStatusSetInfoFB}, {@link XrSpaceContainerFB}, {@link XrSpaceEraseInfoFB}, {@link XrSpaceFilterInfoBaseHeaderFB}, {@link XrSpaceListSaveInfoFB}, {@link XrSpaceLocation}, {@link XrSpaceQueryInfoBaseHeaderFB}, {@link XrSpaceQueryInfoFB}, {@link XrSpaceQueryResultsFB}, {@link XrSpaceSaveInfoFB}, {@link XrSpaceShareInfoFB}, {@link XrSpaceStorageLocationFilterInfoFB}, {@link XrSpaceUserCreateInfoFB}, {@link XrSpaceUuidFilterInfoFB}, {@link XrSpaceVelocity}, {@link XrSpatialAnchorCreateInfoFB}, {@link XrSpatialAnchorCreateInfoMSFT}, {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT}, {@link XrSpatialAnchorPersistenceInfoMSFT}, {@link XrSpatialAnchorSpaceCreateInfoMSFT}, {@link XrSpatialGraphNodeBindingPropertiesGetInfoMSFT}, {@link XrSpatialGraphNodeBindingPropertiesMSFT}, {@link XrSpatialGraphNodeSpaceCreateInfoMSFT}, {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT}, {@link XrSwapchainCreateInfo}, {@link XrSwapchainCreateInfoFoveationFB}, {@link XrSwapchainImageAcquireInfo}, {@link XrSwapchainImageBaseHeader}, {@link XrSwapchainImageFoveationVulkanFB}, {@link XrSwapchainImageOpenGLKHR}, {@link XrSwapchainImageReleaseInfo}, {@link XrSwapchainImageVulkanKHR}, {@link XrSwapchainImageWaitInfo}, {@link XrSwapchainStateBaseHeaderFB}, {@link XrSwapchainStateFoveationFB}, {@link XrSwapchainStateSamplerOpenGLESFB}, {@link XrSwapchainStateSamplerVulkanFB}, {@link XrSystemBodyTrackingPropertiesFB}, {@link XrSystemColorSpacePropertiesFB}, {@link XrSystemEyeGazeInteractionPropertiesEXT}, {@link XrSystemEyeTrackingPropertiesFB}, {@link XrSystemFaceTrackingPropertiesFB}, {@link XrSystemFacialTrackingPropertiesHTC}, {@link XrSystemForceFeedbackCurlPropertiesMNDX}, {@link XrSystemFoveatedRenderingPropertiesVARJO}, {@link XrSystemFoveationEyeTrackedPropertiesMETA}, {@link XrSystemGetInfo}, {@link XrSystemHandTrackingMeshPropertiesMSFT}, {@link XrSystemHandTrackingPropertiesEXT}, {@link XrSystemHeadsetIdPropertiesMETA}, {@link XrSystemKeyboardTrackingPropertiesFB}, {@link XrSystemMarkerTrackingPropertiesVARJO}, {@link XrSystemPassthroughColorLutPropertiesMETA}, {@link XrSystemPassthroughProperties2FB}, {@link XrSystemPassthroughPropertiesFB}, {@link XrSystemPlaneDetectionPropertiesEXT}, {@link XrSystemProperties}, {@link XrSystemRenderModelPropertiesFB}, {@link XrSystemSpaceWarpPropertiesFB}, {@link XrSystemSpatialEntityPropertiesFB}, {@link XrSystemVirtualKeyboardPropertiesMETA}, {@link XrTriangleMeshCreateInfoFB}, {@link XrView}, {@link XrViewConfigurationDepthRangeEXT}, {@link XrViewConfigurationProperties}, {@link XrViewConfigurationView}, {@link XrViewConfigurationViewFovEPIC}, {@link XrViewLocateFoveatedRenderingVARJO}, {@link XrViewLocateInfo}, {@link XrViewState}, {@link XrVirtualKeyboardAnimationStateMETA}, {@link XrVirtualKeyboardCreateInfoMETA}, {@link XrVirtualKeyboardInputInfoMETA}, {@link XrVirtualKeyboardLocationInfoMETA}, {@link XrVirtualKeyboardModelAnimationStatesMETA}, {@link XrVirtualKeyboardModelVisibilitySetInfoMETA}, {@link XrVirtualKeyboardSpaceCreateInfoMETA}, {@link XrVirtualKeyboardTextContextChangeInfoMETA}, {@link XrVirtualKeyboardTextureDataMETA}, {@link XrVisibilityMaskKHR}, {@link XrVisualMeshComputeLodInfoMSFT}, {@link XrViveTrackerPathsHTCX}, {@link XrVulkanDeviceCreateInfoKHR}, {@link XrVulkanGraphicsDeviceGetInfoKHR}, {@link XrVulkanInstanceCreateInfoKHR}, {@link XrVulkanSwapchainCreateInfoMETA}, {@link XrVulkanSwapchainFormatListCreateInfoKHR}, {@link #xrStructureTypeToString StructureTypeToString}

    + *

    {@link XrActionCreateInfo}, {@link XrActionSetCreateInfo}, {@link XrActionSpaceCreateInfo}, {@link XrActionStateBoolean}, {@link XrActionStateFloat}, {@link XrActionStateGetInfo}, {@link XrActionStatePose}, {@link XrActionStateVector2f}, {@link XrActionsSyncInfo}, {@link XrActiveActionSetPrioritiesEXT}, {@link XrApiLayerProperties}, {@link XrBaseInStructure}, {@link XrBaseOutStructure}, {@link XrBindingModificationBaseHeaderKHR}, {@link XrBindingModificationsKHR}, {@link XrBodyJointLocationsFB}, {@link XrBodyJointsLocateInfoFB}, {@link XrBodySkeletonFB}, {@link XrBodyTrackerCreateInfoFB}, {@link XrBoundSourcesForActionEnumerateInfo}, {@link XrBoundary2DFB}, {@link XrCompositionLayerAlphaBlendFB}, {@link XrCompositionLayerBaseHeader}, {@link XrCompositionLayerColorScaleBiasKHR}, {@link XrCompositionLayerCubeKHR}, {@link XrCompositionLayerCylinderKHR}, {@link XrCompositionLayerDepthInfoKHR}, {@link XrCompositionLayerDepthTestFB}, {@link XrCompositionLayerDepthTestVARJO}, {@link XrCompositionLayerEquirect2KHR}, {@link XrCompositionLayerEquirectKHR}, {@link XrCompositionLayerImageLayoutFB}, {@link XrCompositionLayerPassthroughFB}, {@link XrCompositionLayerPassthroughHTC}, {@link XrCompositionLayerProjection}, {@link XrCompositionLayerProjectionView}, {@link XrCompositionLayerQuad}, {@link XrCompositionLayerReprojectionInfoMSFT}, {@link XrCompositionLayerReprojectionPlaneOverrideMSFT}, {@link XrCompositionLayerSecureContentFB}, {@link XrCompositionLayerSettingsFB}, {@link XrCompositionLayerSpaceWarpInfoFB}, {@link XrControllerModelKeyStateMSFT}, {@link XrControllerModelNodePropertiesMSFT}, {@link XrControllerModelNodeStateMSFT}, {@link XrControllerModelPropertiesMSFT}, {@link XrControllerModelStateMSFT}, {@link XrCoordinateSpaceCreateInfoML}, {@link XrDebugUtilsLabelEXT}, {@link XrDebugUtilsMessengerCallbackDataEXT}, {@link XrDebugUtilsMessengerCreateInfoEXT}, {@link XrDebugUtilsObjectNameInfoEXT}, {@link XrDevicePcmSampleRateStateFB}, {@link XrDigitalLensControlALMALENCE}, {@link XrEventDataBaseHeader}, {@link XrEventDataBuffer}, {@link XrEventDataDisplayRefreshRateChangedFB}, {@link XrEventDataEventsLost}, {@link XrEventDataInstanceLossPending}, {@link XrEventDataInteractionProfileChanged}, {@link XrEventDataMainSessionVisibilityChangedEXTX}, {@link XrEventDataMarkerTrackingUpdateVARJO}, {@link XrEventDataPassthroughStateChangedFB}, {@link XrEventDataPerfSettingsEXT}, {@link XrEventDataReferenceSpaceChangePending}, {@link XrEventDataSceneCaptureCompleteFB}, {@link XrEventDataSessionStateChanged}, {@link XrEventDataSpaceEraseCompleteFB}, {@link XrEventDataSpaceListSaveCompleteFB}, {@link XrEventDataSpaceQueryCompleteFB}, {@link XrEventDataSpaceQueryResultsAvailableFB}, {@link XrEventDataSpaceSaveCompleteFB}, {@link XrEventDataSpaceSetStatusCompleteFB}, {@link XrEventDataSpaceShareCompleteFB}, {@link XrEventDataSpatialAnchorCreateCompleteFB}, {@link XrEventDataVisibilityMaskChangedKHR}, {@link XrEventDataViveTrackerConnectedHTCX}, {@link XrExtensionProperties}, {@link XrExternalCameraOCULUS}, {@link XrEyeGazeSampleTimeEXT}, {@link XrEyeGazesFB}, {@link XrEyeGazesInfoFB}, {@link XrEyeTrackerCreateInfoFB}, {@link XrFaceExpressionInfoFB}, {@link XrFaceExpressionWeightsFB}, {@link XrFaceTrackerCreateInfoFB}, {@link XrFacialExpressionsHTC}, {@link XrFacialTrackerCreateInfoHTC}, {@link XrForceFeedbackCurlApplyLocationsMNDX}, {@link XrFoveatedViewConfigurationViewVARJO}, {@link XrFoveationApplyInfoHTC}, {@link XrFoveationCustomModeInfoHTC}, {@link XrFoveationDynamicModeInfoHTC}, {@link XrFoveationEyeTrackedProfileCreateInfoMETA}, {@link XrFoveationEyeTrackedStateMETA}, {@link XrFoveationLevelProfileCreateInfoFB}, {@link XrFoveationProfileCreateInfoFB}, {@link XrFrameBeginInfo}, {@link XrFrameEndInfo}, {@link XrFrameEndInfoML}, {@link XrFrameState}, {@link XrFrameWaitInfo}, {@link XrGeometryInstanceCreateInfoFB}, {@link XrGeometryInstanceTransformFB}, {@link XrGlobalDimmerFrameEndInfoML}, {@link XrGraphicsBindingEGLMNDX}, {@link XrGraphicsBindingOpenGLESAndroidKHR}, {@link XrGraphicsBindingOpenGLWaylandKHR}, {@link XrGraphicsBindingOpenGLWin32KHR}, {@link XrGraphicsBindingOpenGLXcbKHR}, {@link XrGraphicsBindingOpenGLXlibKHR}, {@link XrGraphicsBindingVulkanKHR}, {@link XrGraphicsRequirementsOpenGLESKHR}, {@link XrGraphicsRequirementsOpenGLKHR}, {@link XrGraphicsRequirementsVulkanKHR}, {@link XrHandJointLocationsEXT}, {@link XrHandJointVelocitiesEXT}, {@link XrHandJointsLocateInfoEXT}, {@link XrHandJointsMotionRangeInfoEXT}, {@link XrHandMeshMSFT}, {@link XrHandMeshSpaceCreateInfoMSFT}, {@link XrHandMeshUpdateInfoMSFT}, {@link XrHandPoseTypeInfoMSFT}, {@link XrHandTrackerCreateInfoEXT}, {@link XrHandTrackingAimStateFB}, {@link XrHandTrackingCapsulesStateFB}, {@link XrHandTrackingMeshFB}, {@link XrHandTrackingScaleFB}, {@link XrHapticActionInfo}, {@link XrHapticAmplitudeEnvelopeVibrationFB}, {@link XrHapticBaseHeader}, {@link XrHapticPcmVibrationFB}, {@link XrHapticVibration}, {@link XrHolographicWindowAttachmentMSFT}, {@link XrInputSourceLocalizedNameGetInfo}, {@link XrInstanceCreateInfo}, {@link XrInstanceCreateInfoAndroidKHR}, {@link XrInstanceProperties}, {@link XrInteractionProfileAnalogThresholdVALVE}, {@link XrInteractionProfileDpadBindingEXT}, {@link XrInteractionProfileState}, {@link XrInteractionProfileSuggestedBinding}, {@link XrKeyboardSpaceCreateInfoFB}, {@link XrKeyboardTrackingQueryFB}, {@link XrLoaderInitInfoAndroidKHR}, {@link XrLoaderInitInfoBaseHeaderKHR}, {@link XrLocalDimmingFrameEndInfoMETA}, {@link XrMarkerSpaceCreateInfoVARJO}, {@link XrNewSceneComputeInfoMSFT}, {@link XrPassthroughBrightnessContrastSaturationFB}, {@link XrPassthroughColorHTC}, {@link XrPassthroughColorMapMonoToMonoFB}, {@link XrPassthroughColorMapMonoToRgbaFB}, {@link XrPassthroughCreateInfoFB}, {@link XrPassthroughCreateInfoHTC}, {@link XrPassthroughKeyboardHandsIntensityFB}, {@link XrPassthroughLayerCreateInfoFB}, {@link XrPassthroughMeshTransformInfoHTC}, {@link XrPassthroughStyleFB}, {@link XrPerformanceMetricsCounterMETA}, {@link XrPerformanceMetricsStateMETA}, {@link XrReferenceSpaceCreateInfo}, {@link XrRenderModelBufferFB}, {@link XrRenderModelCapabilitiesRequestFB}, {@link XrRenderModelLoadInfoFB}, {@link XrRenderModelPathInfoFB}, {@link XrRenderModelPropertiesFB}, {@link XrRoomLayoutFB}, {@link XrSceneCaptureRequestInfoFB}, {@link XrSceneComponentLocationsMSFT}, {@link XrSceneComponentParentFilterInfoMSFT}, {@link XrSceneComponentsGetInfoMSFT}, {@link XrSceneComponentsLocateInfoMSFT}, {@link XrSceneComponentsMSFT}, {@link XrSceneCreateInfoMSFT}, {@link XrSceneDeserializeInfoMSFT}, {@link XrSceneMeshBuffersGetInfoMSFT}, {@link XrSceneMeshBuffersMSFT}, {@link XrSceneMeshIndicesUint16MSFT}, {@link XrSceneMeshIndicesUint32MSFT}, {@link XrSceneMeshVertexBufferMSFT}, {@link XrSceneMeshesMSFT}, {@link XrSceneObjectTypesFilterInfoMSFT}, {@link XrSceneObjectsMSFT}, {@link XrSceneObserverCreateInfoMSFT}, {@link XrScenePlaneAlignmentFilterInfoMSFT}, {@link XrScenePlanesMSFT}, {@link XrSecondaryViewConfigurationFrameEndInfoMSFT}, {@link XrSecondaryViewConfigurationFrameStateMSFT}, {@link XrSecondaryViewConfigurationLayerInfoMSFT}, {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT}, {@link XrSecondaryViewConfigurationStateMSFT}, {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT}, {@link XrSemanticLabelsFB}, {@link XrSerializedSceneFragmentDataGetInfoMSFT}, {@link XrSessionActionSetsAttachInfo}, {@link XrSessionBeginInfo}, {@link XrSessionCreateInfo}, {@link XrSessionCreateInfoOverlayEXTX}, {@link XrSpaceComponentFilterInfoFB}, {@link XrSpaceComponentStatusFB}, {@link XrSpaceComponentStatusSetInfoFB}, {@link XrSpaceContainerFB}, {@link XrSpaceEraseInfoFB}, {@link XrSpaceFilterInfoBaseHeaderFB}, {@link XrSpaceListSaveInfoFB}, {@link XrSpaceLocation}, {@link XrSpaceQueryInfoBaseHeaderFB}, {@link XrSpaceQueryInfoFB}, {@link XrSpaceQueryResultsFB}, {@link XrSpaceSaveInfoFB}, {@link XrSpaceShareInfoFB}, {@link XrSpaceStorageLocationFilterInfoFB}, {@link XrSpaceUserCreateInfoFB}, {@link XrSpaceUuidFilterInfoFB}, {@link XrSpaceVelocity}, {@link XrSpatialAnchorCreateInfoFB}, {@link XrSpatialAnchorCreateInfoMSFT}, {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT}, {@link XrSpatialAnchorPersistenceInfoMSFT}, {@link XrSpatialAnchorSpaceCreateInfoMSFT}, {@link XrSpatialGraphNodeBindingPropertiesGetInfoMSFT}, {@link XrSpatialGraphNodeBindingPropertiesMSFT}, {@link XrSpatialGraphNodeSpaceCreateInfoMSFT}, {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT}, {@link XrSwapchainCreateInfo}, {@link XrSwapchainCreateInfoFoveationFB}, {@link XrSwapchainImageAcquireInfo}, {@link XrSwapchainImageBaseHeader}, {@link XrSwapchainImageFoveationVulkanFB}, {@link XrSwapchainImageOpenGLESKHR}, {@link XrSwapchainImageOpenGLKHR}, {@link XrSwapchainImageReleaseInfo}, {@link XrSwapchainImageVulkanKHR}, {@link XrSwapchainImageWaitInfo}, {@link XrSwapchainStateBaseHeaderFB}, {@link XrSwapchainStateFoveationFB}, {@link XrSwapchainStateSamplerOpenGLESFB}, {@link XrSwapchainStateSamplerVulkanFB}, {@link XrSystemBodyTrackingPropertiesFB}, {@link XrSystemColorSpacePropertiesFB}, {@link XrSystemEyeGazeInteractionPropertiesEXT}, {@link XrSystemEyeTrackingPropertiesFB}, {@link XrSystemFaceTrackingPropertiesFB}, {@link XrSystemFacialTrackingPropertiesHTC}, {@link XrSystemForceFeedbackCurlPropertiesMNDX}, {@link XrSystemFoveatedRenderingPropertiesVARJO}, {@link XrSystemFoveationEyeTrackedPropertiesMETA}, {@link XrSystemGetInfo}, {@link XrSystemHandTrackingMeshPropertiesMSFT}, {@link XrSystemHandTrackingPropertiesEXT}, {@link XrSystemHeadsetIdPropertiesMETA}, {@link XrSystemKeyboardTrackingPropertiesFB}, {@link XrSystemMarkerTrackingPropertiesVARJO}, {@link XrSystemPassthroughProperties2FB}, {@link XrSystemPassthroughPropertiesFB}, {@link XrSystemProperties}, {@link XrSystemRenderModelPropertiesFB}, {@link XrSystemSpaceWarpPropertiesFB}, {@link XrSystemSpatialEntityPropertiesFB}, {@link XrTriangleMeshCreateInfoFB}, {@link XrView}, {@link XrViewConfigurationDepthRangeEXT}, {@link XrViewConfigurationProperties}, {@link XrViewConfigurationView}, {@link XrViewConfigurationViewFovEPIC}, {@link XrViewLocateFoveatedRenderingVARJO}, {@link XrViewLocateInfo}, {@link XrViewState}, {@link XrVisibilityMaskKHR}, {@link XrVisualMeshComputeLodInfoMSFT}, {@link XrViveTrackerPathsHTCX}, {@link XrVulkanDeviceCreateInfoKHR}, {@link XrVulkanGraphicsDeviceGetInfoKHR}, {@link XrVulkanInstanceCreateInfoKHR}, {@link XrVulkanSwapchainCreateInfoMETA}, {@link XrVulkanSwapchainFormatListCreateInfoKHR}, {@link #xrStructureTypeToString StructureTypeToString}

    * *
    Enum values:
    * @@ -272,59 +269,59 @@ public class XR10 { *
  • {@link #XR_TYPE_BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO TYPE_BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO}
  • *
  • {@link #XR_TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO}
  • * - */ + */ public static final int - XR_TYPE_UNKNOWN = 0, - XR_TYPE_API_LAYER_PROPERTIES = 1, - XR_TYPE_EXTENSION_PROPERTIES = 2, - XR_TYPE_INSTANCE_CREATE_INFO = 3, - XR_TYPE_SYSTEM_GET_INFO = 4, - XR_TYPE_SYSTEM_PROPERTIES = 5, - XR_TYPE_VIEW_LOCATE_INFO = 6, - XR_TYPE_VIEW = 7, - XR_TYPE_SESSION_CREATE_INFO = 8, - XR_TYPE_SWAPCHAIN_CREATE_INFO = 9, - XR_TYPE_SESSION_BEGIN_INFO = 10, - XR_TYPE_VIEW_STATE = 11, - XR_TYPE_FRAME_END_INFO = 12, - XR_TYPE_HAPTIC_VIBRATION = 13, - XR_TYPE_EVENT_DATA_BUFFER = 16, - XR_TYPE_EVENT_DATA_INSTANCE_LOSS_PENDING = 17, - XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED = 18, - XR_TYPE_ACTION_STATE_BOOLEAN = 23, - XR_TYPE_ACTION_STATE_FLOAT = 24, - XR_TYPE_ACTION_STATE_VECTOR2F = 25, - XR_TYPE_ACTION_STATE_POSE = 27, - XR_TYPE_ACTION_SET_CREATE_INFO = 28, - XR_TYPE_ACTION_CREATE_INFO = 29, - XR_TYPE_INSTANCE_PROPERTIES = 32, - XR_TYPE_FRAME_WAIT_INFO = 33, - XR_TYPE_COMPOSITION_LAYER_PROJECTION = 35, - XR_TYPE_COMPOSITION_LAYER_QUAD = 36, - XR_TYPE_REFERENCE_SPACE_CREATE_INFO = 37, - XR_TYPE_ACTION_SPACE_CREATE_INFO = 38, - XR_TYPE_EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDING = 40, - XR_TYPE_VIEW_CONFIGURATION_VIEW = 41, - XR_TYPE_SPACE_LOCATION = 42, - XR_TYPE_SPACE_VELOCITY = 43, - XR_TYPE_FRAME_STATE = 44, - XR_TYPE_VIEW_CONFIGURATION_PROPERTIES = 45, - XR_TYPE_FRAME_BEGIN_INFO = 46, - XR_TYPE_COMPOSITION_LAYER_PROJECTION_VIEW = 48, - XR_TYPE_EVENT_DATA_EVENTS_LOST = 49, - XR_TYPE_INTERACTION_PROFILE_SUGGESTED_BINDING = 51, - XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED = 52, - XR_TYPE_INTERACTION_PROFILE_STATE = 53, - XR_TYPE_SWAPCHAIN_IMAGE_ACQUIRE_INFO = 55, - XR_TYPE_SWAPCHAIN_IMAGE_WAIT_INFO = 56, - XR_TYPE_SWAPCHAIN_IMAGE_RELEASE_INFO = 57, - XR_TYPE_ACTION_STATE_GET_INFO = 58, - XR_TYPE_HAPTIC_ACTION_INFO = 59, - XR_TYPE_SESSION_ACTION_SETS_ATTACH_INFO = 60, - XR_TYPE_ACTIONS_SYNC_INFO = 61, - XR_TYPE_BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO = 62, - XR_TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO = 63; - + XR_TYPE_UNKNOWN = 0, + XR_TYPE_API_LAYER_PROPERTIES = 1, + XR_TYPE_EXTENSION_PROPERTIES = 2, + XR_TYPE_INSTANCE_CREATE_INFO = 3, + XR_TYPE_SYSTEM_GET_INFO = 4, + XR_TYPE_SYSTEM_PROPERTIES = 5, + XR_TYPE_VIEW_LOCATE_INFO = 6, + XR_TYPE_VIEW = 7, + XR_TYPE_SESSION_CREATE_INFO = 8, + XR_TYPE_SWAPCHAIN_CREATE_INFO = 9, + XR_TYPE_SESSION_BEGIN_INFO = 10, + XR_TYPE_VIEW_STATE = 11, + XR_TYPE_FRAME_END_INFO = 12, + XR_TYPE_HAPTIC_VIBRATION = 13, + XR_TYPE_EVENT_DATA_BUFFER = 16, + XR_TYPE_EVENT_DATA_INSTANCE_LOSS_PENDING = 17, + XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED = 18, + XR_TYPE_ACTION_STATE_BOOLEAN = 23, + XR_TYPE_ACTION_STATE_FLOAT = 24, + XR_TYPE_ACTION_STATE_VECTOR2F = 25, + XR_TYPE_ACTION_STATE_POSE = 27, + XR_TYPE_ACTION_SET_CREATE_INFO = 28, + XR_TYPE_ACTION_CREATE_INFO = 29, + XR_TYPE_INSTANCE_PROPERTIES = 32, + XR_TYPE_FRAME_WAIT_INFO = 33, + XR_TYPE_COMPOSITION_LAYER_PROJECTION = 35, + XR_TYPE_COMPOSITION_LAYER_QUAD = 36, + XR_TYPE_REFERENCE_SPACE_CREATE_INFO = 37, + XR_TYPE_ACTION_SPACE_CREATE_INFO = 38, + XR_TYPE_EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDING = 40, + XR_TYPE_VIEW_CONFIGURATION_VIEW = 41, + XR_TYPE_SPACE_LOCATION = 42, + XR_TYPE_SPACE_VELOCITY = 43, + XR_TYPE_FRAME_STATE = 44, + XR_TYPE_VIEW_CONFIGURATION_PROPERTIES = 45, + XR_TYPE_FRAME_BEGIN_INFO = 46, + XR_TYPE_COMPOSITION_LAYER_PROJECTION_VIEW = 48, + XR_TYPE_EVENT_DATA_EVENTS_LOST = 49, + XR_TYPE_INTERACTION_PROFILE_SUGGESTED_BINDING = 51, + XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED = 52, + XR_TYPE_INTERACTION_PROFILE_STATE = 53, + XR_TYPE_SWAPCHAIN_IMAGE_ACQUIRE_INFO = 55, + XR_TYPE_SWAPCHAIN_IMAGE_WAIT_INFO = 56, + XR_TYPE_SWAPCHAIN_IMAGE_RELEASE_INFO = 57, + XR_TYPE_ACTION_STATE_GET_INFO = 58, + XR_TYPE_HAPTIC_ACTION_INFO = 59, + XR_TYPE_SESSION_ACTION_SETS_ATTACH_INFO = 60, + XR_TYPE_ACTIONS_SYNC_INFO = 61, + XR_TYPE_BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO = 62, + XR_TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO = 63; + /** * XrFormFactor - Supported form factors * @@ -342,11 +339,11 @@ public class XR10 { *
    See Also
    * *

    {@link #XR_NULL_SYSTEM_ID NULL_SYSTEM_ID}, {@link XrSystemGetInfo}, {@link #xrGetSystem GetSystem}

    - */ + */ public static final int - XR_FORM_FACTOR_HEAD_MOUNTED_DISPLAY = 1, - XR_FORM_FACTOR_HANDHELD_DISPLAY = 2; - + XR_FORM_FACTOR_HEAD_MOUNTED_DISPLAY = 1, + XR_FORM_FACTOR_HANDHELD_DISPLAY = 2; + /** * XrViewConfigurationType - Supported view configuration type * @@ -366,11 +363,11 @@ public class XR10 { *
    See Also
    * *

    {@link XrEventDataVisibilityMaskChangedKHR}, {@link XrSecondaryViewConfigurationLayerInfoMSFT}, {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT}, {@link XrSecondaryViewConfigurationStateMSFT}, {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT}, {@link XrSessionBeginInfo}, {@link XrViewConfigurationProperties}, {@link XrViewLocateInfo}, {@link #xrEnumerateEnvironmentBlendModes EnumerateEnvironmentBlendModes}, {@link MSFTCompositionLayerReprojection#xrEnumerateReprojectionModesMSFT EnumerateReprojectionModesMSFT}, {@link #xrEnumerateViewConfigurationViews EnumerateViewConfigurationViews}, {@link #xrEnumerateViewConfigurations EnumerateViewConfigurations}, {@link #xrGetViewConfigurationProperties GetViewConfigurationProperties}, {@link KHRVisibilityMask#xrGetVisibilityMaskKHR GetVisibilityMaskKHR}

    - */ + */ public static final int - XR_VIEW_CONFIGURATION_TYPE_PRIMARY_MONO = 1, - XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO = 2; - + XR_VIEW_CONFIGURATION_TYPE_PRIMARY_MONO = 1, + XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO = 2; + /** * XrEnvironmentBlendMode - Environment blend modes * @@ -385,12 +382,12 @@ public class XR10 { *
    See Also
    * *

    {@link XrFrameEndInfo}, {@link XrSecondaryViewConfigurationLayerInfoMSFT}, {@link #xrEnumerateEnvironmentBlendModes EnumerateEnvironmentBlendModes}

    - */ + */ public static final int - XR_ENVIRONMENT_BLEND_MODE_OPAQUE = 1, - XR_ENVIRONMENT_BLEND_MODE_ADDITIVE = 2, - XR_ENVIRONMENT_BLEND_MODE_ALPHA_BLEND = 3; - + XR_ENVIRONMENT_BLEND_MODE_OPAQUE = 1, + XR_ENVIRONMENT_BLEND_MODE_ADDITIVE = 2, + XR_ENVIRONMENT_BLEND_MODE_ALPHA_BLEND = 3; + /** * XrSpaceVelocityFlagBits - Space velocity flags * @@ -408,11 +405,11 @@ public class XR10 { *
    See Also
    * *

    {@link XrSpaceVelocity}

    - */ + */ public static final int - XR_SPACE_VELOCITY_LINEAR_VALID_BIT = 0x1, - XR_SPACE_VELOCITY_ANGULAR_VALID_BIT = 0x2; - + XR_SPACE_VELOCITY_LINEAR_VALID_BIT = 0x1, + XR_SPACE_VELOCITY_ANGULAR_VALID_BIT = 0x2; + /** * XrReferenceSpaceType - Reference space types * @@ -453,12 +450,12 @@ public class XR10 { *
    See Also
    * *

    {@link XrEventDataReferenceSpaceChangePending}, {@link XrReferenceSpaceCreateInfo}, {@link #xrEnumerateReferenceSpaces EnumerateReferenceSpaces}, {@link #xrGetReferenceSpaceBoundsRect GetReferenceSpaceBoundsRect}

    - */ + */ public static final int - XR_REFERENCE_SPACE_TYPE_VIEW = 1, - XR_REFERENCE_SPACE_TYPE_LOCAL = 2, - XR_REFERENCE_SPACE_TYPE_STAGE = 3; - + XR_REFERENCE_SPACE_TYPE_VIEW = 1, + XR_REFERENCE_SPACE_TYPE_LOCAL = 2, + XR_REFERENCE_SPACE_TYPE_STAGE = 3; + /** * XrSpaceLocationFlagBits - Space location flags * @@ -478,13 +475,13 @@ public class XR10 { *
    See Also
    * *

    {@link XrSpaceLocation}, {@link #xrLocateSpace LocateSpace}

    - */ + */ public static final int - XR_SPACE_LOCATION_ORIENTATION_VALID_BIT = 0x1, - XR_SPACE_LOCATION_POSITION_VALID_BIT = 0x2, - XR_SPACE_LOCATION_ORIENTATION_TRACKED_BIT = 0x4, - XR_SPACE_LOCATION_POSITION_TRACKED_BIT = 0x8; - + XR_SPACE_LOCATION_ORIENTATION_VALID_BIT = 0x1, + XR_SPACE_LOCATION_POSITION_VALID_BIT = 0x2, + XR_SPACE_LOCATION_ORIENTATION_TRACKED_BIT = 0x4, + XR_SPACE_LOCATION_POSITION_TRACKED_BIT = 0x8; + /** * XrSwapchainCreateFlagBits - Swapchain creation flags * @@ -504,11 +501,11 @@ public class XR10 { *
    See Also
    * *

    {@link XrSwapchainCreateInfo}

    - */ + */ public static final int - XR_SWAPCHAIN_CREATE_PROTECTED_CONTENT_BIT = 0x1, - XR_SWAPCHAIN_CREATE_STATIC_IMAGE_BIT = 0x2; - + XR_SWAPCHAIN_CREATE_PROTECTED_CONTENT_BIT = 0x1, + XR_SWAPCHAIN_CREATE_STATIC_IMAGE_BIT = 0x2; + /** * XrSwapchainUsageFlagBits - Swapchain usage flags * @@ -533,16 +530,16 @@ public class XR10 { *
    See Also
    * *

    {@link XrSwapchainCreateInfo}, {@link #xrCreateSwapchain CreateSwapchain}

    - */ + */ public static final int - XR_SWAPCHAIN_USAGE_COLOR_ATTACHMENT_BIT = 0x1, - XR_SWAPCHAIN_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT = 0x2, - XR_SWAPCHAIN_USAGE_UNORDERED_ACCESS_BIT = 0x4, - XR_SWAPCHAIN_USAGE_TRANSFER_SRC_BIT = 0x8, - XR_SWAPCHAIN_USAGE_TRANSFER_DST_BIT = 0x10, - XR_SWAPCHAIN_USAGE_SAMPLED_BIT = 0x20, - XR_SWAPCHAIN_USAGE_MUTABLE_FORMAT_BIT = 0x40; - + XR_SWAPCHAIN_USAGE_COLOR_ATTACHMENT_BIT = 0x1, + XR_SWAPCHAIN_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT = 0x2, + XR_SWAPCHAIN_USAGE_UNORDERED_ACCESS_BIT = 0x4, + XR_SWAPCHAIN_USAGE_TRANSFER_SRC_BIT = 0x8, + XR_SWAPCHAIN_USAGE_TRANSFER_DST_BIT = 0x10, + XR_SWAPCHAIN_USAGE_SAMPLED_BIT = 0x20, + XR_SWAPCHAIN_USAGE_MUTABLE_FORMAT_BIT = 0x40; + /** * XrCompositionLayerFlagBits - Composition layer flags * @@ -561,12 +558,12 @@ public class XR10 { *
    See Also
    * *

    {@link XrCompositionLayerProjection}, {@link XrCompositionLayerQuad}

    - */ + */ public static final int - XR_COMPOSITION_LAYER_CORRECT_CHROMATIC_ABERRATION_BIT = 0x1, - XR_COMPOSITION_LAYER_BLEND_TEXTURE_SOURCE_ALPHA_BIT = 0x2, - XR_COMPOSITION_LAYER_UNPREMULTIPLIED_ALPHA_BIT = 0x4; - + XR_COMPOSITION_LAYER_CORRECT_CHROMATIC_ABERRATION_BIT = 0x1, + XR_COMPOSITION_LAYER_BLEND_TEXTURE_SOURCE_ALPHA_BIT = 0x2, + XR_COMPOSITION_LAYER_UNPREMULTIPLIED_ALPHA_BIT = 0x4; + /** * XrViewStateFlagBits - View state flags * @@ -586,13 +583,13 @@ public class XR10 { *
    See Also
    * *

    {@link XrView}, {@link XrViewState}, {@link #xrLocateViews LocateViews}

    - */ + */ public static final int - XR_VIEW_STATE_ORIENTATION_VALID_BIT = 0x1, - XR_VIEW_STATE_POSITION_VALID_BIT = 0x2, - XR_VIEW_STATE_ORIENTATION_TRACKED_BIT = 0x4, - XR_VIEW_STATE_POSITION_TRACKED_BIT = 0x8; - + XR_VIEW_STATE_ORIENTATION_VALID_BIT = 0x1, + XR_VIEW_STATE_POSITION_VALID_BIT = 0x2, + XR_VIEW_STATE_ORIENTATION_TRACKED_BIT = 0x4, + XR_VIEW_STATE_POSITION_TRACKED_BIT = 0x8; + /** * XrActionType - XrAction type * @@ -609,14 +606,14 @@ public class XR10 { *
    See Also
    * *

    {@link XrActionCreateInfo}, {@link #xrCreateActionSet CreateActionSet}

    - */ + */ public static final int - XR_ACTION_TYPE_BOOLEAN_INPUT = 1, - XR_ACTION_TYPE_FLOAT_INPUT = 2, - XR_ACTION_TYPE_VECTOR2F_INPUT = 3, - XR_ACTION_TYPE_POSE_INPUT = 4, - XR_ACTION_TYPE_VIBRATION_OUTPUT = 100; - + XR_ACTION_TYPE_BOOLEAN_INPUT = 1, + XR_ACTION_TYPE_FLOAT_INPUT = 2, + XR_ACTION_TYPE_VECTOR2F_INPUT = 3, + XR_ACTION_TYPE_POSE_INPUT = 4, + XR_ACTION_TYPE_VIBRATION_OUTPUT = 100; + /** * XrInputSourceLocalizedNameFlagBits - Input source localized name flags * @@ -635,12 +632,12 @@ public class XR10 { *
    See Also
    * *

    {@link #xrGetInputSourceLocalizedName GetInputSourceLocalizedName}

    - */ + */ public static final int - XR_INPUT_SOURCE_LOCALIZED_NAME_USER_PATH_BIT = 0x1, - XR_INPUT_SOURCE_LOCALIZED_NAME_INTERACTION_PROFILE_BIT = 0x2, - XR_INPUT_SOURCE_LOCALIZED_NAME_COMPONENT_BIT = 0x4; - + XR_INPUT_SOURCE_LOCALIZED_NAME_USER_PATH_BIT = 0x1, + XR_INPUT_SOURCE_LOCALIZED_NAME_INTERACTION_PROFILE_BIT = 0x2, + XR_INPUT_SOURCE_LOCALIZED_NAME_COMPONENT_BIT = 0x4; + /** * XrEyeVisibility - Eye visibility selector * @@ -655,12 +652,12 @@ public class XR10 { *
    See Also
    * *

    {@link XrCompositionLayerCubeKHR}, {@link XrCompositionLayerCylinderKHR}, {@link XrCompositionLayerEquirect2KHR}, {@link XrCompositionLayerEquirectKHR}, {@link XrCompositionLayerQuad}

    - */ + */ public static final int - XR_EYE_VISIBILITY_BOTH = 0, - XR_EYE_VISIBILITY_LEFT = 1, - XR_EYE_VISIBILITY_RIGHT = 2; - + XR_EYE_VISIBILITY_BOTH = 0, + XR_EYE_VISIBILITY_LEFT = 1, + XR_EYE_VISIBILITY_RIGHT = 2; + /** * XrSessionState - Session lifecycle state * @@ -669,10 +666,10 @@ public class XR10 { *
      *
    • {@link #XR_SESSION_STATE_UNKNOWN SESSION_STATE_UNKNOWN}. An unknown state. The runtime must not return this value in an {@link XrEventDataSessionStateChanged} event.
    • *
    • {@link #XR_SESSION_STATE_IDLE SESSION_STATE_IDLE}. The initial state after calling {@link #xrCreateSession CreateSession} or returned to after calling {@link #xrEndSession EndSession}.
    • - *
    • {@link #XR_SESSION_STATE_READY SESSION_STATE_READY}. The application is ready to call {@link #xrBeginSession BeginSession} and sync its frame loop with the runtime.
    • + *
    • {@link #XR_SESSION_STATE_READY SESSION_STATE_READY}. The application is ready to call {@link #xrBeginSession BeginSession} and sync its frame loop with the runtime.
    • *
    • {@link #XR_SESSION_STATE_SYNCHRONIZED SESSION_STATE_SYNCHRONIZED}. The application has synced its frame loop with the runtime but is not visible to the user.
    • - *
    • {@link #XR_SESSION_STATE_VISIBLE SESSION_STATE_VISIBLE}. The application has synced its frame loop with the runtime and is visible to the user but cannot receive XR input.
    • - *
    • {@link #XR_SESSION_STATE_FOCUSED SESSION_STATE_FOCUSED}. The application has synced its frame loop with the runtime, is visible to the user and can receive XR input.
    • + *
    • {@link #XR_SESSION_STATE_VISIBLE SESSION_STATE_VISIBLE}. The application has synced its frame loop with the runtime and is visible to the user but cannot receive XR input.
    • + *
    • {@link #XR_SESSION_STATE_FOCUSED SESSION_STATE_FOCUSED}. The application has synced its frame loop with the runtime, is visible to the user and can receive XR input.
    • *
    • {@link #XR_SESSION_STATE_STOPPING SESSION_STATE_STOPPING}. The application should exit its frame loop and call {@link #xrEndSession EndSession}.
    • *
    • {@link #XR_SESSION_STATE_LOSS_PENDING SESSION_STATE_LOSS_PENDING}. The session is in the process of being lost. The application should destroy the current session and can optionally recreate it.
    • *
    • {@link #XR_SESSION_STATE_EXITING SESSION_STATE_EXITING}. The application should end its XR experience and not automatically restart it.
    • @@ -684,11 +681,11 @@ public class XR10 { * *

      Receiving the {@link #XR_SESSION_STATE_READY SESSION_STATE_READY} state indicates that the runtime desires the application to prepare rendering resources, begin its session and synchronize its frame loop with the runtime. The application does this by successfully calling {@link #xrBeginSession BeginSession} and then running its frame loop by calling {@link #xrWaitFrame WaitFrame}, {@link #xrBeginFrame BeginFrame} and {@link #xrEndFrame EndFrame} in a loop. If the runtime wishes to return the session to the {@link #XR_SESSION_STATE_IDLE SESSION_STATE_IDLE} state, it must wait until the application calls {@link #xrBeginSession BeginSession}. After returning from the {@link #xrBeginSession BeginSession} call, the runtime may then immediately transition forward through the {@link #XR_SESSION_STATE_SYNCHRONIZED SESSION_STATE_SYNCHRONIZED} state to the {@link #XR_SESSION_STATE_STOPPING SESSION_STATE_STOPPING} state, to request that the application end this session. If the system supports a user engagement sensor and runtime is in {@link #XR_SESSION_STATE_IDLE SESSION_STATE_IDLE} state, the runtime should not transition to the {@link #XR_SESSION_STATE_READY SESSION_STATE_READY} state until the user starts engaging with the device.

      * - *

      Receiving the {@link #XR_SESSION_STATE_SYNCHRONIZED SESSION_STATE_SYNCHRONIZED} state indicates that the application has synchronized its frame loop with the runtime, but its frames are not visible to the user. The application should continue running its frame loop by calling {@link #xrWaitFrame WaitFrame}, {@link #xrBeginFrame BeginFrame} and {@link #xrEndFrame EndFrame}, although it should avoid heavy GPU work so that other visible applications can take CPU and GPU precedence. The application can save resources here by skipping rendering and not submitting any composition layers until {@link #xrWaitFrame WaitFrame} returns an {@link XrFrameState} with {@code shouldRender} set to true. A runtime may use this frame synchronization to facilitate seamless switching from a previous XR application to this application on a frame boundary.

      + *

      Receiving the {@link #XR_SESSION_STATE_SYNCHRONIZED SESSION_STATE_SYNCHRONIZED} state indicates that the application has synchronized its frame loop with the runtime, but its frames are not visible to the user. The application should continue running its frame loop by calling {@link #xrWaitFrame WaitFrame}, {@link #xrBeginFrame BeginFrame} and {@link #xrEndFrame EndFrame}, although it should avoid heavy GPU work so that other visible applications can take CPU and GPU precedence. The application can save resources here by skipping rendering and not submitting any composition layers until {@link #xrWaitFrame WaitFrame} returns an {@link XrFrameState} with {@code shouldRender} set to true. A runtime may use this frame synchronization to facilitate seamless switching from a previous XR application to this application on a frame boundary.

      * - *

      Receiving the {@link #XR_SESSION_STATE_VISIBLE SESSION_STATE_VISIBLE} state indicates that the application has synchronized its frame loop with the runtime, and the session’s frames will be visible to the user, but the session is not eligible to receive XR input. An application may be visible but not have focus, for example when the runtime is composing a modal pop-up on top of the application’s rendered frames. The application should continue running its frame loop, rendering and submitting its composition layers, although it may wish to pause its experience, as users cannot interact with the application at this time. It is important for applications to continue rendering when visible, even when they do not have focus, so the user continues to see something reasonable underneath modal pop-ups. Runtimes should make input actions inactive while the application is unfocused, and applications should react to an inactive input action by skipping rendering of that action’s input avatar (depictions of hands or other tracked objects controlled by the user).

      + *

      Receiving the {@link #XR_SESSION_STATE_VISIBLE SESSION_STATE_VISIBLE} state indicates that the application has synchronized its frame loop with the runtime, and the session’s frames will be visible to the user, but the session is not eligible to receive XR input. An application may be visible but not have focus, for example when the runtime is composing a modal pop-up on top of the application’s rendered frames. The application should continue running its frame loop, rendering and submitting its composition layers, although it may wish to pause its experience, as users cannot interact with the application at this time. It is important for applications to continue rendering when visible, even when they do not have focus, so the user continues to see something reasonable underneath modal pop-ups. Runtimes should make input actions inactive while the application is unfocused, and applications should react to an inactive input action by skipping rendering of that action’s input avatar (depictions of hands or other tracked objects controlled by the user).

      * - *

      Receiving the {@link #XR_SESSION_STATE_FOCUSED SESSION_STATE_FOCUSED} state indicates that the application has synchronized its frame loop with the runtime, the session’s frames will be visible to the user, and the session is eligible to receive XR input. The runtime should only give one session XR input focus at any given time. The application should be running its frame loop, rendering and submitting composition layers, including input avatars (depictions of hands or other tracked objects controlled by the user) for any input actions that are active. The runtime should avoid rendering its own input avatars when an application is focused, unless input from a given source is being captured by the runtime at the moment.

      + *

      Receiving the {@link #XR_SESSION_STATE_FOCUSED SESSION_STATE_FOCUSED} state indicates that the application has synchronized its frame loop with the runtime, the session’s frames will be visible to the user, and the session is eligible to receive XR input. The runtime should only give one session XR input focus at any given time. The application should be running its frame loop, rendering and submitting composition layers, including input avatars (depictions of hands or other tracked objects controlled by the user) for any input actions that are active. The runtime should avoid rendering its own input avatars when an application is focused, unless input from a given source is being captured by the runtime at the moment.

      * *

      Receiving the {@link #XR_SESSION_STATE_STOPPING SESSION_STATE_STOPPING} state indicates that the runtime has determined that the application should halt its rendering loop. Applications should exit their rendering loop and call {@link #xrEndSession EndSession} when in this state. A possible reason for this would be to minimize contention between multiple applications. If the system supports a user engagement sensor and the session is running, the runtime should transition to the {@link #XR_SESSION_STATE_STOPPING SESSION_STATE_STOPPING} state when the user stops engaging with the device.

      * @@ -699,18 +696,18 @@ public class XR10 { *
      See Also
      * *

      {@link XrEventDataSessionStateChanged}, {@link #xrPollEvent PollEvent}

      - */ + */ public static final int - XR_SESSION_STATE_UNKNOWN = 0, - XR_SESSION_STATE_IDLE = 1, - XR_SESSION_STATE_READY = 2, - XR_SESSION_STATE_SYNCHRONIZED = 3, - XR_SESSION_STATE_VISIBLE = 4, - XR_SESSION_STATE_FOCUSED = 5, - XR_SESSION_STATE_STOPPING = 6, - XR_SESSION_STATE_LOSS_PENDING = 7, - XR_SESSION_STATE_EXITING = 8; - + XR_SESSION_STATE_UNKNOWN = 0, + XR_SESSION_STATE_IDLE = 1, + XR_SESSION_STATE_READY = 2, + XR_SESSION_STATE_SYNCHRONIZED = 3, + XR_SESSION_STATE_VISIBLE = 4, + XR_SESSION_STATE_FOCUSED = 5, + XR_SESSION_STATE_STOPPING = 6, + XR_SESSION_STATE_LOSS_PENDING = 7, + XR_SESSION_STATE_EXITING = 8; + /** * XrObjectType - Specify an enumeration to track object handle types * @@ -736,76 +733,76 @@ public class XR10 { *
      See Also
      * *

      {@link XrDebugUtilsObjectNameInfoEXT}

      - */ + */ public static final int - XR_OBJECT_TYPE_UNKNOWN = 0, - XR_OBJECT_TYPE_INSTANCE = 1, - XR_OBJECT_TYPE_SESSION = 2, - XR_OBJECT_TYPE_SWAPCHAIN = 3, - XR_OBJECT_TYPE_SPACE = 4, - XR_OBJECT_TYPE_ACTION_SET = 5, - XR_OBJECT_TYPE_ACTION = 6; - - /** OpenXR current version number. */ - public static final long XR_CURRENT_API_VERSION = XR_MAKE_VERSION(1, 0, 29); - - /** Compile-time symbols, ignore. */ + XR_OBJECT_TYPE_UNKNOWN = 0, + XR_OBJECT_TYPE_INSTANCE = 1, + XR_OBJECT_TYPE_SESSION = 2, + XR_OBJECT_TYPE_SWAPCHAIN = 3, + XR_OBJECT_TYPE_SPACE = 4, + XR_OBJECT_TYPE_ACTION_SET = 5, + XR_OBJECT_TYPE_ACTION = 6; + + /** OpenXR current version number. */ + public static final long XR_CURRENT_API_VERSION = XR_MAKE_VERSION(1, 0, 29); + + /** Compile-time symbols, ignore. */ public static final int - XR_USE_GRAPHICS_API_OPENGL = 0, - XR_USE_GRAPHICS_API_OPENGL_ES = 0, - XR_USE_GRAPHICS_API_VULKAN = 0, - XR_USE_PLATFORM_EGL = 0, - XR_USE_PLATFORM_WIN32 = 0, - XR_USE_PLATFORM_XLIB = 0, - XR_USE_PLATFORM_XCB = 0, - XR_USE_PLATFORM_WAYLAND = 0; - - /** API Constants */ + XR_USE_GRAPHICS_API_OPENGL = 0, + XR_USE_GRAPHICS_API_OPENGL_ES = 0, + XR_USE_GRAPHICS_API_VULKAN = 0, + XR_USE_PLATFORM_EGL = 0, + XR_USE_PLATFORM_WIN32 = 0, + XR_USE_PLATFORM_XLIB = 0, + XR_USE_PLATFORM_XCB = 0, + XR_USE_PLATFORM_WAYLAND = 0; + + /** API Constants */ public static final long - XR_NULL_HANDLE = 0x0L, - XR_NULL_PATH = 0x0L, - XR_NULL_SYSTEM_ID = 0x0L, - XR_NO_DURATION = 0x0L, - XR_INFINITE_DURATION = 0x7FFF_FFFF_FFFF_FFFFL, - XR_MIN_HAPTIC_DURATION = 0xFFFFFFFFFFFFFFFFL, - XR_MAX_EVENT_DATA_SIZE = XrEventDataBuffer.SIZEOF; - - /** API Constants */ - public static final float XR_FREQUENCY_UNSPECIFIED = 0f; - - /** API Constants */ + XR_NULL_HANDLE = 0x0L, + XR_NULL_PATH = 0x0L, + XR_NULL_SYSTEM_ID = 0x0L, + XR_NO_DURATION = 0x0L, + XR_INFINITE_DURATION = 0x7FFF_FFFF_FFFF_FFFFL, + XR_MIN_HAPTIC_DURATION = 0xFFFFFFFFFFFFFFFFL, + XR_MAX_EVENT_DATA_SIZE = XrEventDataBuffer.SIZEOF; + + /** API Constants */ + public static final float XR_FREQUENCY_UNSPECIFIED = 0f; + + /** API Constants */ public static final int - XR_TRUE = 1, - XR_FALSE = 0, - XR_MAX_EXTENSION_NAME_SIZE = 128, - XR_MAX_API_LAYER_NAME_SIZE = 256, - XR_MAX_API_LAYER_DESCRIPTION_SIZE = 256, - XR_MAX_SYSTEM_NAME_SIZE = 256, - XR_MAX_APPLICATION_NAME_SIZE = 128, - XR_MAX_ENGINE_NAME_SIZE = 128, - XR_MAX_RUNTIME_NAME_SIZE = 128, - XR_MAX_PATH_LENGTH = 256, - XR_MAX_STRUCTURE_NAME_SIZE = 64, - XR_MAX_RESULT_STRING_SIZE = 64, - XR_MAX_GRAPHICS_APIS_SUPPORTED = 32, - XR_MAX_ACTION_SET_NAME_SIZE = 64, - XR_MAX_ACTION_NAME_SIZE = 64, - XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE = 128, - XR_MAX_LOCALIZED_ACTION_NAME_SIZE = 128, - XR_MIN_COMPOSITION_LAYERS_SUPPORTED = 16; + XR_TRUE = 1, + XR_FALSE = 0, + XR_MAX_EXTENSION_NAME_SIZE = 128, + XR_MAX_API_LAYER_NAME_SIZE = 256, + XR_MAX_API_LAYER_DESCRIPTION_SIZE = 256, + XR_MAX_SYSTEM_NAME_SIZE = 256, + XR_MAX_APPLICATION_NAME_SIZE = 128, + XR_MAX_ENGINE_NAME_SIZE = 128, + XR_MAX_RUNTIME_NAME_SIZE = 128, + XR_MAX_PATH_LENGTH = 256, + XR_MAX_STRUCTURE_NAME_SIZE = 64, + XR_MAX_RESULT_STRING_SIZE = 64, + XR_MAX_GRAPHICS_APIS_SUPPORTED = 32, + XR_MAX_ACTION_SET_NAME_SIZE = 64, + XR_MAX_ACTION_NAME_SIZE = 64, + XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE = 128, + XR_MAX_LOCALIZED_ACTION_NAME_SIZE = 128, + XR_MIN_COMPOSITION_LAYERS_SUPPORTED = 16; protected XR10() { throw new UnsupportedOperationException(); - } - - // --- [ xrGetInstanceProcAddr ] --- - - /** Unsafe version of: {@link #xrGetInstanceProcAddr GetInstanceProcAddr} */ - public static int nxrGetInstanceProcAddr(long instance, long name, long function) { - long __functionAddress = XR.getGlobalCommands().xrGetInstanceProcAddr; - return callPPPI(instance, name, function, __functionAddress); - } - + } + + // --- [ xrGetInstanceProcAddr ] --- + + /** Unsafe version of: {@link #xrGetInstanceProcAddr GetInstanceProcAddr} */ + public static int nxrGetInstanceProcAddr(long instance, long name, long function) { + long __functionAddress = XR.getGlobalCommands().xrGetInstanceProcAddr; + return callPPPI(instance, name, function, __functionAddress); + } + /** * Gets a function pointer for an OpenXR function. * @@ -894,16 +891,16 @@ public static int nxrGetInstanceProcAddr(long instance, long name, long function * @param instance the instance that the function pointer will be compatible with, or {@code NULL} for functions not dependent on any instance. * @param name the name of the function to obtain. * @param function the address of the function pointer to get. - */ - @NativeType("XrResult") - public static int xrGetInstanceProcAddr(@Nullable XrInstance instance, @NativeType("char const *") ByteBuffer name, @NativeType("PFN_xrVoidFunction *") PointerBuffer function) { - if (CHECKS) { - checkNT1(name); - check(function, 1); - } - return nxrGetInstanceProcAddr(memAddressSafe(instance), memAddress(name), memAddress(function)); - } - + */ + @NativeType("XrResult") + public static int xrGetInstanceProcAddr(@Nullable XrInstance instance, @NativeType("char const *") ByteBuffer name, @NativeType("PFN_xrVoidFunction *") PointerBuffer function) { + if (CHECKS) { + checkNT1(name); + check(function, 1); + } + return nxrGetInstanceProcAddr(memAddressSafe(instance), memAddress(name), memAddress(function)); + } + /** * Gets a function pointer for an OpenXR function. * @@ -992,34 +989,34 @@ public static int xrGetInstanceProcAddr(@Nullable XrInstance instance, @NativeTy * @param instance the instance that the function pointer will be compatible with, or {@code NULL} for functions not dependent on any instance. * @param name the name of the function to obtain. * @param function the address of the function pointer to get. - */ - @NativeType("XrResult") - public static int xrGetInstanceProcAddr(@Nullable XrInstance instance, @NativeType("char const *") CharSequence name, @NativeType("PFN_xrVoidFunction *") PointerBuffer function) { - if (CHECKS) { - check(function, 1); - } - MemoryStack stack = stackGet(); int stackPointer = stack.getPointer(); - try { - stack.nUTF8(name, true); - long nameEncoded = stack.getPointerAddress(); - return nxrGetInstanceProcAddr(memAddressSafe(instance), nameEncoded, memAddress(function)); - } finally { - stack.setPointer(stackPointer); - } - } - - // --- [ xrEnumerateApiLayerProperties ] --- - + */ + @NativeType("XrResult") + public static int xrGetInstanceProcAddr(@Nullable XrInstance instance, @NativeType("char const *") CharSequence name, @NativeType("PFN_xrVoidFunction *") PointerBuffer function) { + if (CHECKS) { + check(function, 1); + } + MemoryStack stack = stackGet(); int stackPointer = stack.getPointer(); + try { + stack.nUTF8(name, true); + long nameEncoded = stack.getPointerAddress(); + return nxrGetInstanceProcAddr(memAddressSafe(instance), nameEncoded, memAddress(function)); + } finally { + stack.setPointer(stackPointer); + } + } + + // --- [ xrEnumerateApiLayerProperties ] --- + /** * Unsafe version of: {@link #xrEnumerateApiLayerProperties EnumerateApiLayerProperties} * * @param propertyCapacityInput the capacity of the {@code properties} array, or 0 to indicate a request to retrieve the required capacity. - */ - public static int nxrEnumerateApiLayerProperties(int propertyCapacityInput, long propertyCountOutput, long properties) { - long __functionAddress = XR.getGlobalCommands().xrEnumerateApiLayerProperties; - return callPPI(propertyCapacityInput, propertyCountOutput, properties, __functionAddress); - } - + */ + public static int nxrEnumerateApiLayerProperties(int propertyCapacityInput, long propertyCountOutput, long properties) { + long __functionAddress = XR.getGlobalCommands().xrEnumerateApiLayerProperties; + return callPPI(propertyCapacityInput, propertyCountOutput, properties, __functionAddress); + } + /** * Returns up to requested number of global layer properties. * @@ -1068,27 +1065,27 @@ public static int nxrEnumerateApiLayerProperties(int propertyCapacityInput, long * * @param propertyCountOutput a pointer to the count of {@code properties} written, or a pointer to the required capacity in the case that {@code propertyCapacityInput} is insufficient. * @param properties a pointer to an array of {@link XrApiLayerProperties} structures, but can be {@code NULL} if {@code propertyCapacityInput} is 0. - */ - @NativeType("XrResult") - public static int xrEnumerateApiLayerProperties(@NativeType("uint32_t *") IntBuffer propertyCountOutput, @Nullable @NativeType("XrApiLayerProperties *") XrApiLayerProperties.Buffer properties) { - if (CHECKS) { - check(propertyCountOutput, 1); - } - return nxrEnumerateApiLayerProperties(remainingSafe(properties), memAddress(propertyCountOutput), memAddressSafe(properties)); - } - - // --- [ xrEnumerateInstanceExtensionProperties ] --- - + */ + @NativeType("XrResult") + public static int xrEnumerateApiLayerProperties(@NativeType("uint32_t *") IntBuffer propertyCountOutput, @Nullable @NativeType("XrApiLayerProperties *") XrApiLayerProperties.Buffer properties) { + if (CHECKS) { + check(propertyCountOutput, 1); + } + return nxrEnumerateApiLayerProperties(remainingSafe(properties), memAddress(propertyCountOutput), memAddressSafe(properties)); + } + + // --- [ xrEnumerateInstanceExtensionProperties ] --- + /** * Unsafe version of: {@link #xrEnumerateInstanceExtensionProperties EnumerateInstanceExtensionProperties} * * @param propertyCapacityInput the capacity of the {@code properties} array, or 0 to indicate a request to retrieve the required capacity. - */ - public static int nxrEnumerateInstanceExtensionProperties(long layerName, int propertyCapacityInput, long propertyCountOutput, long properties) { - long __functionAddress = XR.getGlobalCommands().xrEnumerateInstanceExtensionProperties; - return callPPPI(layerName, propertyCapacityInput, propertyCountOutput, properties, __functionAddress); - } - + */ + public static int nxrEnumerateInstanceExtensionProperties(long layerName, int propertyCapacityInput, long propertyCountOutput, long properties) { + long __functionAddress = XR.getGlobalCommands().xrEnumerateInstanceExtensionProperties; + return callPPPI(layerName, propertyCapacityInput, propertyCountOutput, properties, __functionAddress); + } + /** * Returns properties of available instance extensions. * @@ -1140,16 +1137,16 @@ public static int nxrEnumerateInstanceExtensionProperties(long layerName, int pr * @param layerName either {@code NULL} or a pointer to a string naming the API layer to retrieve extensions from, as returned by {@link #xrEnumerateApiLayerProperties EnumerateApiLayerProperties}. * @param propertyCountOutput a pointer to the count of {@code properties} written, or a pointer to the required capacity in the case that {@code propertyCapacityInput} is insufficient. * @param properties a pointer to an array of {@link XrExtensionProperties} structures, but can be {@code NULL} if {@code propertyCapacityInput} is 0. - */ - @NativeType("XrResult") - public static int xrEnumerateInstanceExtensionProperties(@Nullable @NativeType("char const *") ByteBuffer layerName, @NativeType("uint32_t *") IntBuffer propertyCountOutput, @Nullable @NativeType("XrExtensionProperties *") XrExtensionProperties.Buffer properties) { - if (CHECKS) { - checkNT1Safe(layerName); - check(propertyCountOutput, 1); - } - return nxrEnumerateInstanceExtensionProperties(memAddressSafe(layerName), remainingSafe(properties), memAddress(propertyCountOutput), memAddressSafe(properties)); - } - + */ + @NativeType("XrResult") + public static int xrEnumerateInstanceExtensionProperties(@Nullable @NativeType("char const *") ByteBuffer layerName, @NativeType("uint32_t *") IntBuffer propertyCountOutput, @Nullable @NativeType("XrExtensionProperties *") XrExtensionProperties.Buffer properties) { + if (CHECKS) { + checkNT1Safe(layerName); + check(propertyCountOutput, 1); + } + return nxrEnumerateInstanceExtensionProperties(memAddressSafe(layerName), remainingSafe(properties), memAddress(propertyCountOutput), memAddressSafe(properties)); + } + /** * Returns properties of available instance extensions. * @@ -1201,33 +1198,33 @@ public static int xrEnumerateInstanceExtensionProperties(@Nullable @NativeType(" * @param layerName either {@code NULL} or a pointer to a string naming the API layer to retrieve extensions from, as returned by {@link #xrEnumerateApiLayerProperties EnumerateApiLayerProperties}. * @param propertyCountOutput a pointer to the count of {@code properties} written, or a pointer to the required capacity in the case that {@code propertyCapacityInput} is insufficient. * @param properties a pointer to an array of {@link XrExtensionProperties} structures, but can be {@code NULL} if {@code propertyCapacityInput} is 0. - */ - @NativeType("XrResult") - public static int xrEnumerateInstanceExtensionProperties(@Nullable @NativeType("char const *") CharSequence layerName, @NativeType("uint32_t *") IntBuffer propertyCountOutput, @Nullable @NativeType("XrExtensionProperties *") XrExtensionProperties.Buffer properties) { - if (CHECKS) { - check(propertyCountOutput, 1); - } - MemoryStack stack = stackGet(); int stackPointer = stack.getPointer(); - try { - stack.nUTF8Safe(layerName, true); - long layerNameEncoded = layerName == null ? NULL : stack.getPointerAddress(); - return nxrEnumerateInstanceExtensionProperties(layerNameEncoded, remainingSafe(properties), memAddress(propertyCountOutput), memAddressSafe(properties)); - } finally { - stack.setPointer(stackPointer); - } - } - - // --- [ xrCreateInstance ] --- - - /** Unsafe version of: {@link #xrCreateInstance CreateInstance} */ - public static int nxrCreateInstance(long createInfo, long instance) { - long __functionAddress = XR.getGlobalCommands().xrCreateInstance; - if (CHECKS) { - XrInstanceCreateInfo.validate(createInfo); - } - return callPPI(createInfo, instance, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrEnumerateInstanceExtensionProperties(@Nullable @NativeType("char const *") CharSequence layerName, @NativeType("uint32_t *") IntBuffer propertyCountOutput, @Nullable @NativeType("XrExtensionProperties *") XrExtensionProperties.Buffer properties) { + if (CHECKS) { + check(propertyCountOutput, 1); + } + MemoryStack stack = stackGet(); int stackPointer = stack.getPointer(); + try { + stack.nUTF8Safe(layerName, true); + long layerNameEncoded = layerName == null ? NULL : stack.getPointerAddress(); + return nxrEnumerateInstanceExtensionProperties(layerNameEncoded, remainingSafe(properties), memAddress(propertyCountOutput), memAddressSafe(properties)); + } finally { + stack.setPointer(stackPointer); + } + } + + // --- [ xrCreateInstance ] --- + + /** Unsafe version of: {@link #xrCreateInstance CreateInstance} */ + public static int nxrCreateInstance(long createInfo, long instance) { + long __functionAddress = XR.getGlobalCommands().xrCreateInstance; + if (CHECKS) { + XrInstanceCreateInfo.validate(createInfo); + } + return callPPI(createInfo, instance, __functionAddress); + } + /** * Creates an OpenXR Instance. * @@ -1283,17 +1280,17 @@ public static int nxrCreateInstance(long createInfo, long instance) { * * @param createInfo points to an instance of {@link XrInstanceCreateInfo} controlling creation of the instance. * @param instance points to an {@code XrInstance} handle in which the resulting instance is returned. - */ - @NativeType("XrResult") - public static int xrCreateInstance(@NativeType("XrInstanceCreateInfo const *") XrInstanceCreateInfo createInfo, @NativeType("XrInstance *") PointerBuffer instance) { - if (CHECKS) { - check(instance, 1); - } - return nxrCreateInstance(createInfo.address(), memAddress(instance)); - } - - // --- [ xrDestroyInstance ] --- - + */ + @NativeType("XrResult") + public static int xrCreateInstance(@NativeType("XrInstanceCreateInfo const *") XrInstanceCreateInfo createInfo, @NativeType("XrInstance *") PointerBuffer instance) { + if (CHECKS) { + check(instance, 1); + } + return nxrCreateInstance(createInfo.address(), memAddress(instance)); + } + + // --- [ xrDestroyInstance ] --- + /** * Destroy an instance of OpenXR. * @@ -1337,21 +1334,21 @@ public static int xrCreateInstance(@NativeType("XrInstanceCreateInfo const *") X *
    • {@link #XR_ERROR_HANDLE_INVALID ERROR_HANDLE_INVALID}
    • *
    * - */ - @NativeType("XrResult") - public static int xrDestroyInstance(XrInstance instance) { - long __functionAddress = instance.getCapabilities().xrDestroyInstance; - return callPI(instance.address(), __functionAddress); - } - - // --- [ xrGetInstanceProperties ] --- - - /** Unsafe version of: {@link #xrGetInstanceProperties GetInstanceProperties} */ - public static int nxrGetInstanceProperties(XrInstance instance, long instanceProperties) { - long __functionAddress = instance.getCapabilities().xrGetInstanceProperties; - return callPPI(instance.address(), instanceProperties, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrDestroyInstance(XrInstance instance) { + long __functionAddress = instance.getCapabilities().xrDestroyInstance; + return callPI(instance.address(), __functionAddress); + } + + // --- [ xrGetInstanceProperties ] --- + + /** Unsafe version of: {@link #xrGetInstanceProperties GetInstanceProperties} */ + public static int nxrGetInstanceProperties(XrInstance instance, long instanceProperties) { + long __functionAddress = instance.getCapabilities().xrGetInstanceProperties; + return callPPI(instance.address(), instanceProperties, __functionAddress); + } + /** * Gets information about the instance. * @@ -1397,20 +1394,20 @@ public static int nxrGetInstanceProperties(XrInstance instance, long instancePro * * @param instance a handle to an {@code XrInstance} previously created with {@link #xrCreateInstance CreateInstance}. * @param instanceProperties points to an {@link XrInstanceProperties} which describes the {@code instance}. - */ - @NativeType("XrResult") - public static int xrGetInstanceProperties(XrInstance instance, @NativeType("XrInstanceProperties *") XrInstanceProperties instanceProperties) { - return nxrGetInstanceProperties(instance, instanceProperties.address()); - } - - // --- [ xrPollEvent ] --- - - /** Unsafe version of: {@link #xrPollEvent PollEvent} */ - public static int nxrPollEvent(XrInstance instance, long eventData) { - long __functionAddress = instance.getCapabilities().xrPollEvent; - return callPPI(instance.address(), eventData, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrGetInstanceProperties(XrInstance instance, @NativeType("XrInstanceProperties *") XrInstanceProperties instanceProperties) { + return nxrGetInstanceProperties(instance, instanceProperties.address()); + } + + // --- [ xrPollEvent ] --- + + /** Unsafe version of: {@link #xrPollEvent PollEvent} */ + public static int nxrPollEvent(XrInstance instance, long eventData) { + long __functionAddress = instance.getCapabilities().xrPollEvent; + return callPPI(instance.address(), eventData, __functionAddress); + } + /** * Polls for events. * @@ -1470,20 +1467,20 @@ public static int nxrPollEvent(XrInstance instance, long eventData) { *
    See Also
    * *

    {@link XrEventDataBuffer}

    - */ - @NativeType("XrResult") - public static int xrPollEvent(XrInstance instance, @NativeType("XrEventDataBuffer *") XrEventDataBuffer eventData) { - return nxrPollEvent(instance, eventData.address()); - } - - // --- [ xrResultToString ] --- - - /** Unsafe version of: {@link #xrResultToString ResultToString} */ - public static int nxrResultToString(XrInstance instance, int value, long buffer) { - long __functionAddress = instance.getCapabilities().xrResultToString; - return callPPI(instance.address(), value, buffer, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrPollEvent(XrInstance instance, @NativeType("XrEventDataBuffer *") XrEventDataBuffer eventData) { + return nxrPollEvent(instance, eventData.address()); + } + + // --- [ xrResultToString ] --- + + /** Unsafe version of: {@link #xrResultToString ResultToString} */ + public static int nxrResultToString(XrInstance instance, int value, long buffer) { + long __functionAddress = instance.getCapabilities().xrResultToString; + return callPPI(instance.address(), value, buffer, __functionAddress); + } + /** * Converts an XrResult to a UTF-8 string. * @@ -1540,23 +1537,23 @@ public static int nxrResultToString(XrInstance instance, int value, long buffer) * @param instance the handle of the instance to ask for the string. * @param value the {@code XrResult} value to turn into a string. * @param buffer the buffer that will be used to return the string in. - */ - @NativeType("XrResult") - public static int xrResultToString(XrInstance instance, @NativeType("XrResult") int value, @NativeType("char *") ByteBuffer buffer) { - if (CHECKS) { - check(buffer, XR_MAX_RESULT_STRING_SIZE); - } - return nxrResultToString(instance, value, memAddress(buffer)); - } - - // --- [ xrStructureTypeToString ] --- - - /** Unsafe version of: {@link #xrStructureTypeToString StructureTypeToString} */ - public static int nxrStructureTypeToString(XrInstance instance, int value, long buffer) { - long __functionAddress = instance.getCapabilities().xrStructureTypeToString; - return callPPI(instance.address(), value, buffer, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrResultToString(XrInstance instance, @NativeType("XrResult") int value, @NativeType("char *") ByteBuffer buffer) { + if (CHECKS) { + check(buffer, XR_MAX_RESULT_STRING_SIZE); + } + return nxrResultToString(instance, value, memAddress(buffer)); + } + + // --- [ xrStructureTypeToString ] --- + + /** Unsafe version of: {@link #xrStructureTypeToString StructureTypeToString} */ + public static int nxrStructureTypeToString(XrInstance instance, int value, long buffer) { + long __functionAddress = instance.getCapabilities().xrStructureTypeToString; + return callPPI(instance.address(), value, buffer, __functionAddress); + } + /** * Converts an XrStructureType to a UTF-8 string. * @@ -1614,23 +1611,23 @@ public static int nxrStructureTypeToString(XrInstance instance, int value, long * @param instance the handle of the instance to ask for the string. * @param value the {@code XrStructureType} value to turn into a string. * @param buffer the buffer that will be used to return the string in. - */ - @NativeType("XrResult") - public static int xrStructureTypeToString(XrInstance instance, @NativeType("XrStructureType") int value, @NativeType("char *") ByteBuffer buffer) { - if (CHECKS) { - check(buffer, XR_MAX_STRUCTURE_NAME_SIZE); - } - return nxrStructureTypeToString(instance, value, memAddress(buffer)); - } - - // --- [ xrGetSystem ] --- - - /** Unsafe version of: {@link #xrGetSystem GetSystem} */ - public static int nxrGetSystem(XrInstance instance, long getInfo, long systemId) { - long __functionAddress = instance.getCapabilities().xrGetSystem; - return callPPPI(instance.address(), getInfo, systemId, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrStructureTypeToString(XrInstance instance, @NativeType("XrStructureType") int value, @NativeType("char *") ByteBuffer buffer) { + if (CHECKS) { + check(buffer, XR_MAX_STRUCTURE_NAME_SIZE); + } + return nxrStructureTypeToString(instance, value, memAddress(buffer)); + } + + // --- [ xrGetSystem ] --- + + /** Unsafe version of: {@link #xrGetSystem GetSystem} */ + public static int nxrGetSystem(XrInstance instance, long getInfo, long systemId) { + long __functionAddress = instance.getCapabilities().xrGetSystem; + return callPPPI(instance.address(), getInfo, systemId, __functionAddress); + } + /** * Gets a system identifier. * @@ -1646,7 +1643,7 @@ public static int nxrGetSystem(XrInstance instance, long getInfo, long systemId) * *
    Description
    * - *

    To get an {@code XrSystemId}, an application specifies its desired form factor to {@link #xrGetSystem GetSystem} and gets the runtime’s {@code XrSystemId} associated with that configuration.

    + *

    To get an {@code XrSystemId}, an application specifies its desired form factor to {@link #xrGetSystem GetSystem} and gets the runtime’s {@code XrSystemId} associated with that configuration.

    * *

    If the form factor is supported but temporarily unavailable, {@link #xrGetSystem GetSystem} must return {@link #XR_ERROR_FORM_FACTOR_UNAVAILABLE ERROR_FORM_FACTOR_UNAVAILABLE}. A runtime may return {@link #XR_SUCCESS SUCCESS} on a subsequent call for a form factor it previously returned {@link #XR_ERROR_FORM_FACTOR_UNAVAILABLE ERROR_FORM_FACTOR_UNAVAILABLE}. For example, connecting or warming up hardware might cause an unavailable form factor to become available.

    * @@ -1683,23 +1680,23 @@ public static int nxrGetSystem(XrInstance instance, long getInfo, long systemId) * @param instance the handle of the instance from which to get the information. * @param getInfo a pointer to an {@link XrSystemGetInfo} structure containing the application’s requests for a system. * @param systemId the returned {@code XrSystemId}. - */ - @NativeType("XrResult") - public static int xrGetSystem(XrInstance instance, @NativeType("XrSystemGetInfo const *") XrSystemGetInfo getInfo, @NativeType("XrSystemId *") LongBuffer systemId) { - if (CHECKS) { - check(systemId, 1); - } - return nxrGetSystem(instance, getInfo.address(), memAddress(systemId)); - } - - // --- [ xrGetSystemProperties ] --- - - /** Unsafe version of: {@link #xrGetSystemProperties GetSystemProperties} */ - public static int nxrGetSystemProperties(XrInstance instance, long systemId, long properties) { - long __functionAddress = instance.getCapabilities().xrGetSystemProperties; - return callPJPI(instance.address(), systemId, properties, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrGetSystem(XrInstance instance, @NativeType("XrSystemGetInfo const *") XrSystemGetInfo getInfo, @NativeType("XrSystemId *") LongBuffer systemId) { + if (CHECKS) { + check(systemId, 1); + } + return nxrGetSystem(instance, getInfo.address(), memAddress(systemId)); + } + + // --- [ xrGetSystemProperties ] --- + + /** Unsafe version of: {@link #xrGetSystemProperties GetSystemProperties} */ + public static int nxrGetSystemProperties(XrInstance instance, long systemId, long properties) { + long __functionAddress = instance.getCapabilities().xrGetSystemProperties; + return callPJPI(instance.address(), systemId, properties, __functionAddress); + } + /** * Gets the properties of a particular system. * @@ -1749,24 +1746,24 @@ public static int nxrGetSystemProperties(XrInstance instance, long systemId, lon * @param instance the instance from which {@code systemId} was retrieved. * @param systemId the {@code XrSystemId} whose properties will be queried. * @param properties points to an instance of the {@link XrSystemProperties} structure, that will be filled with returned information. - */ - @NativeType("XrResult") - public static int xrGetSystemProperties(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrSystemProperties *") XrSystemProperties properties) { - return nxrGetSystemProperties(instance, systemId, properties.address()); - } - - // --- [ xrEnumerateEnvironmentBlendModes ] --- - + */ + @NativeType("XrResult") + public static int xrGetSystemProperties(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrSystemProperties *") XrSystemProperties properties) { + return nxrGetSystemProperties(instance, systemId, properties.address()); + } + + // --- [ xrEnumerateEnvironmentBlendModes ] --- + /** * Unsafe version of: {@link #xrEnumerateEnvironmentBlendModes EnumerateEnvironmentBlendModes} * * @param environmentBlendModeCapacityInput the capacity of the {@code environmentBlendModes} array, or 0 to indicate a request to retrieve the required capacity. - */ - public static int nxrEnumerateEnvironmentBlendModes(XrInstance instance, long systemId, int viewConfigurationType, int environmentBlendModeCapacityInput, long environmentBlendModeCountOutput, long environmentBlendModes) { - long __functionAddress = instance.getCapabilities().xrEnumerateEnvironmentBlendModes; - return callPJPPI(instance.address(), systemId, viewConfigurationType, environmentBlendModeCapacityInput, environmentBlendModeCountOutput, environmentBlendModes, __functionAddress); - } - + */ + public static int nxrEnumerateEnvironmentBlendModes(XrInstance instance, long systemId, int viewConfigurationType, int environmentBlendModeCapacityInput, long environmentBlendModeCountOutput, long environmentBlendModes) { + long __functionAddress = instance.getCapabilities().xrEnumerateEnvironmentBlendModes; + return callPJPPI(instance.address(), systemId, viewConfigurationType, environmentBlendModeCapacityInput, environmentBlendModeCountOutput, environmentBlendModes, __functionAddress); + } + /** * Lists environment blend modes. * @@ -1822,23 +1819,23 @@ public static int nxrEnumerateEnvironmentBlendModes(XrInstance instance, long sy * @param viewConfigurationType the {@code XrViewConfigurationType} to enumerate. * @param environmentBlendModeCountOutput a pointer to the count of {@code environmentBlendModes} written, or a pointer to the required capacity in the case that {@code environmentBlendModeCapacityInput} is insufficient. * @param environmentBlendModes a pointer to an array of {@code XrEnvironmentBlendMode} values, but can be {@code NULL} if {@code environmentBlendModeCapacityInput} is 0. - */ - @NativeType("XrResult") - public static int xrEnumerateEnvironmentBlendModes(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrViewConfigurationType") int viewConfigurationType, @NativeType("uint32_t *") IntBuffer environmentBlendModeCountOutput, @Nullable @NativeType("XrEnvironmentBlendMode *") IntBuffer environmentBlendModes) { - if (CHECKS) { - check(environmentBlendModeCountOutput, 1); - } - return nxrEnumerateEnvironmentBlendModes(instance, systemId, viewConfigurationType, remainingSafe(environmentBlendModes), memAddress(environmentBlendModeCountOutput), memAddressSafe(environmentBlendModes)); - } - - // --- [ xrCreateSession ] --- - - /** Unsafe version of: {@link #xrCreateSession CreateSession} */ - public static int nxrCreateSession(XrInstance instance, long createInfo, long session) { - long __functionAddress = instance.getCapabilities().xrCreateSession; - return callPPPI(instance.address(), createInfo, session, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrEnumerateEnvironmentBlendModes(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrViewConfigurationType") int viewConfigurationType, @NativeType("uint32_t *") IntBuffer environmentBlendModeCountOutput, @Nullable @NativeType("XrEnvironmentBlendMode *") IntBuffer environmentBlendModes) { + if (CHECKS) { + check(environmentBlendModeCountOutput, 1); + } + return nxrEnumerateEnvironmentBlendModes(instance, systemId, viewConfigurationType, remainingSafe(environmentBlendModes), memAddress(environmentBlendModeCountOutput), memAddressSafe(environmentBlendModes)); + } + + // --- [ xrCreateSession ] --- + + /** Unsafe version of: {@link #xrCreateSession CreateSession} */ + public static int nxrCreateSession(XrInstance instance, long createInfo, long session) { + long __functionAddress = instance.getCapabilities().xrCreateSession; + return callPPPI(instance.address(), createInfo, session, __functionAddress); + } + /** * Creates an XrSession. * @@ -1895,17 +1892,17 @@ public static int nxrCreateSession(XrInstance instance, long createInfo, long se * @param instance the instance from which {@code systemId} was retrieved. * @param createInfo a pointer to an {@link XrSessionCreateInfo} structure containing information about how to create the session. * @param session a pointer to a handle in which the created {@code XrSession} is returned. - */ - @NativeType("XrResult") - public static int xrCreateSession(XrInstance instance, @NativeType("XrSessionCreateInfo const *") XrSessionCreateInfo createInfo, @NativeType("XrSession *") PointerBuffer session) { - if (CHECKS) { - check(session, 1); - } - return nxrCreateSession(instance, createInfo.address(), memAddress(session)); - } - - // --- [ xrDestroySession ] --- - + */ + @NativeType("XrResult") + public static int xrCreateSession(XrInstance instance, @NativeType("XrSessionCreateInfo const *") XrSessionCreateInfo createInfo, @NativeType("XrSession *") PointerBuffer session) { + if (CHECKS) { + check(session, 1); + } + return nxrCreateSession(instance, createInfo.address(), memAddress(session)); + } + + // --- [ xrDestroySession ] --- + /** * Destroys an XrSession. * @@ -1955,25 +1952,25 @@ public static int xrCreateSession(XrInstance instance, @NativeType("XrSessionCre *

    {@link #xrBeginSession BeginSession}, {@link #xrCreateSession CreateSession}, {@link #xrEndSession EndSession}

    * * @param session the session to destroy. - */ - @NativeType("XrResult") - public static int xrDestroySession(XrSession session) { - long __functionAddress = session.getCapabilities().xrDestroySession; - return callPI(session.address(), __functionAddress); - } - - // --- [ xrEnumerateReferenceSpaces ] --- - + */ + @NativeType("XrResult") + public static int xrDestroySession(XrSession session) { + long __functionAddress = session.getCapabilities().xrDestroySession; + return callPI(session.address(), __functionAddress); + } + + // --- [ xrEnumerateReferenceSpaces ] --- + /** * Unsafe version of: {@link #xrEnumerateReferenceSpaces EnumerateReferenceSpaces} * * @param spaceCapacityInput the capacity of the {@code spaces} array, or 0 to indicate a request to retrieve the required capacity. - */ - public static int nxrEnumerateReferenceSpaces(XrSession session, int spaceCapacityInput, long spaceCountOutput, long spaces) { - long __functionAddress = session.getCapabilities().xrEnumerateReferenceSpaces; - return callPPPI(session.address(), spaceCapacityInput, spaceCountOutput, spaces, __functionAddress); - } - + */ + public static int nxrEnumerateReferenceSpaces(XrSession session, int spaceCapacityInput, long spaceCountOutput, long spaces) { + long __functionAddress = session.getCapabilities().xrEnumerateReferenceSpaces; + return callPPPI(session.address(), spaceCapacityInput, spaceCountOutput, spaces, __functionAddress); + } + /** * Enumerate available reference spaces. * @@ -2024,23 +2021,23 @@ public static int nxrEnumerateReferenceSpaces(XrSession session, int spaceCapaci * @param session a handle to an {@code XrSession} previously created with {@link #xrCreateSession CreateSession}. * @param spaceCountOutput a pointer to the count of {@code spaces} written, or a pointer to the required capacity in the case that {@code spaceCapacityInput} is insufficient. * @param spaces a pointer to an application-allocated array that will be filled with the enumerant of each supported reference space. It can be {@code NULL} if {@code spaceCapacityInput} is 0. - */ - @NativeType("XrResult") - public static int xrEnumerateReferenceSpaces(XrSession session, @NativeType("uint32_t *") IntBuffer spaceCountOutput, @Nullable @NativeType("XrReferenceSpaceType *") IntBuffer spaces) { - if (CHECKS) { - check(spaceCountOutput, 1); - } - return nxrEnumerateReferenceSpaces(session, remainingSafe(spaces), memAddress(spaceCountOutput), memAddressSafe(spaces)); - } - - // --- [ xrCreateReferenceSpace ] --- - - /** Unsafe version of: {@link #xrCreateReferenceSpace CreateReferenceSpace} */ - public static int nxrCreateReferenceSpace(XrSession session, long createInfo, long space) { - long __functionAddress = session.getCapabilities().xrCreateReferenceSpace; - return callPPPI(session.address(), createInfo, space, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrEnumerateReferenceSpaces(XrSession session, @NativeType("uint32_t *") IntBuffer spaceCountOutput, @Nullable @NativeType("XrReferenceSpaceType *") IntBuffer spaces) { + if (CHECKS) { + check(spaceCountOutput, 1); + } + return nxrEnumerateReferenceSpaces(session, remainingSafe(spaces), memAddress(spaceCountOutput), memAddressSafe(spaces)); + } + + // --- [ xrCreateReferenceSpace ] --- + + /** Unsafe version of: {@link #xrCreateReferenceSpace CreateReferenceSpace} */ + public static int nxrCreateReferenceSpace(XrSession session, long createInfo, long space) { + long __functionAddress = session.getCapabilities().xrCreateReferenceSpace; + return callPPPI(session.address(), createInfo, space, __functionAddress); + } + /** * Creates a reference space. * @@ -2099,23 +2096,23 @@ public static int nxrCreateReferenceSpace(XrSession session, long createInfo, lo * @param session a handle to an {@code XrSession} previously created with {@link #xrCreateSession CreateSession}. * @param createInfo the {@link XrReferenceSpaceCreateInfo} used to specify the space. * @param space the returned space handle. - */ - @NativeType("XrResult") - public static int xrCreateReferenceSpace(XrSession session, @NativeType("XrReferenceSpaceCreateInfo const *") XrReferenceSpaceCreateInfo createInfo, @NativeType("XrSpace *") PointerBuffer space) { - if (CHECKS) { - check(space, 1); - } - return nxrCreateReferenceSpace(session, createInfo.address(), memAddress(space)); - } - - // --- [ xrGetReferenceSpaceBoundsRect ] --- - - /** Unsafe version of: {@link #xrGetReferenceSpaceBoundsRect GetReferenceSpaceBoundsRect} */ - public static int nxrGetReferenceSpaceBoundsRect(XrSession session, int referenceSpaceType, long bounds) { - long __functionAddress = session.getCapabilities().xrGetReferenceSpaceBoundsRect; - return callPPI(session.address(), referenceSpaceType, bounds, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrCreateReferenceSpace(XrSession session, @NativeType("XrReferenceSpaceCreateInfo const *") XrReferenceSpaceCreateInfo createInfo, @NativeType("XrSpace *") PointerBuffer space) { + if (CHECKS) { + check(space, 1); + } + return nxrCreateReferenceSpace(session, createInfo.address(), memAddress(space)); + } + + // --- [ xrGetReferenceSpaceBoundsRect ] --- + + /** Unsafe version of: {@link #xrGetReferenceSpaceBoundsRect GetReferenceSpaceBoundsRect} */ + public static int nxrGetReferenceSpaceBoundsRect(XrSession session, int referenceSpaceType, long bounds) { + long __functionAddress = session.getCapabilities().xrGetReferenceSpaceBoundsRect; + return callPPI(session.address(), referenceSpaceType, bounds, __functionAddress); + } + /** * Gets the bounds rectangle of a reference space. * @@ -2173,23 +2170,23 @@ public static int nxrGetReferenceSpaceBoundsRect(XrSession session, int referenc * @param session a handle to an {@code XrSession} previously created with {@link #xrCreateSession CreateSession}. * @param referenceSpaceType the reference space type whose bounds should be retrieved. * @param bounds the returned space extents. - */ - @NativeType("XrResult") - public static int xrGetReferenceSpaceBoundsRect(XrSession session, @NativeType("XrReferenceSpaceType") int referenceSpaceType, @NativeType("XrExtent2Df *") XrExtent2Df bounds) { - return nxrGetReferenceSpaceBoundsRect(session, referenceSpaceType, bounds.address()); - } - - // --- [ xrCreateActionSpace ] --- - - /** Unsafe version of: {@link #xrCreateActionSpace CreateActionSpace} */ - public static int nxrCreateActionSpace(XrSession session, long createInfo, long space) { - long __functionAddress = session.getCapabilities().xrCreateActionSpace; - if (CHECKS) { - XrActionSpaceCreateInfo.validate(createInfo); - } - return callPPPI(session.address(), createInfo, space, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrGetReferenceSpaceBoundsRect(XrSession session, @NativeType("XrReferenceSpaceType") int referenceSpaceType, @NativeType("XrExtent2Df *") XrExtent2Df bounds) { + return nxrGetReferenceSpaceBoundsRect(session, referenceSpaceType, bounds.address()); + } + + // --- [ xrCreateActionSpace ] --- + + /** Unsafe version of: {@link #xrCreateActionSpace CreateActionSpace} */ + public static int nxrCreateActionSpace(XrSession session, long createInfo, long space) { + long __functionAddress = session.getCapabilities().xrCreateActionSpace; + if (CHECKS) { + XrActionSpaceCreateInfo.validate(createInfo); + } + return callPPPI(session.address(), createInfo, space, __functionAddress); + } + /** * Creates a space based on a pose action. * @@ -2250,23 +2247,23 @@ public static int nxrCreateActionSpace(XrSession session, long createInfo, long * @param session the {@code XrSession} to create the action space in. * @param createInfo the {@link XrActionSpaceCreateInfo} used to specify the space. * @param space the returned space handle. - */ - @NativeType("XrResult") - public static int xrCreateActionSpace(XrSession session, @NativeType("XrActionSpaceCreateInfo const *") XrActionSpaceCreateInfo createInfo, @NativeType("XrSpace *") PointerBuffer space) { - if (CHECKS) { - check(space, 1); - } - return nxrCreateActionSpace(session, createInfo.address(), memAddress(space)); - } - - // --- [ xrLocateSpace ] --- - - /** Unsafe version of: {@link #xrLocateSpace LocateSpace} */ - public static int nxrLocateSpace(XrSpace space, XrSpace baseSpace, long time, long location) { - long __functionAddress = space.getCapabilities().xrLocateSpace; - return callPPJPI(space.address(), baseSpace.address(), time, location, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrCreateActionSpace(XrSession session, @NativeType("XrActionSpaceCreateInfo const *") XrActionSpaceCreateInfo createInfo, @NativeType("XrSpace *") PointerBuffer space) { + if (CHECKS) { + check(space, 1); + } + return nxrCreateActionSpace(session, createInfo.address(), memAddress(space)); + } + + // --- [ xrLocateSpace ] --- + + /** Unsafe version of: {@link #xrLocateSpace LocateSpace} */ + public static int nxrLocateSpace(XrSpace space, XrSpace baseSpace, long time, long location) { + long __functionAddress = space.getCapabilities().xrLocateSpace; + return callPPJPI(space.address(), baseSpace.address(), time, location, __functionAddress); + } + /** * Locates a space with reference to another space. * @@ -2287,7 +2284,7 @@ public static int nxrLocateSpace(XrSpace space, XrSpace baseSpace, long time, lo * *

    For a {@code time} in the future, the runtime should locate the spaces based on the runtime’s most up-to-date prediction of how the world will be at that future time.

    * - *

    The minimum valid range of values for {@code time} are described in prediction-time-limits. For values of {@code time} outside this range, {@link #xrLocateSpace LocateSpace} may return a location with no position and {@link #XR_SPACE_LOCATION_POSITION_VALID_BIT SPACE_LOCATION_POSITION_VALID_BIT} unset.

    + *

    The minimum valid range of values for {@code time} are described in prediction-time-limits. For values of {@code time} outside this range, {@link #xrLocateSpace LocateSpace} may return a location with no position and {@link #XR_SPACE_LOCATION_POSITION_VALID_BIT SPACE_LOCATION_POSITION_VALID_BIT} unset.

    * *

    Some devices improve their understanding of the world as the device is used. The location returned by {@link #xrLocateSpace LocateSpace} for a given {@code space}, {@code baseSpace} and {@code time} may change over time, even for spaces that track static objects, as one or both spaces adjust their origins.

    * @@ -2348,14 +2345,14 @@ public static int nxrLocateSpace(XrSpace space, XrSpace baseSpace, long time, lo * @param baseSpace identifies the underlying space in which to locate {@code space}. * @param time the time for which the location should be provided. * @param location provides the location of {@code space} in {@code baseSpace}. - */ - @NativeType("XrResult") - public static int xrLocateSpace(XrSpace space, XrSpace baseSpace, @NativeType("XrTime") long time, @NativeType("XrSpaceLocation *") XrSpaceLocation location) { - return nxrLocateSpace(space, baseSpace, time, location.address()); - } - - // --- [ xrDestroySpace ] --- - + */ + @NativeType("XrResult") + public static int xrLocateSpace(XrSpace space, XrSpace baseSpace, @NativeType("XrTime") long time, @NativeType("XrSpaceLocation *") XrSpaceLocation location) { + return nxrLocateSpace(space, baseSpace, time, location.address()); + } + + // --- [ xrDestroySpace ] --- + /** * Destroys an XrSpace. * @@ -2401,25 +2398,25 @@ public static int xrLocateSpace(XrSpace space, XrSpace baseSpace, @NativeType("X *

    {@link #xrCreateActionSpace CreateActionSpace}, {@link #xrCreateReferenceSpace CreateReferenceSpace}

    * * @param space a handle to an {@code XrSpace} previously created by a function such as {@link #xrCreateReferenceSpace CreateReferenceSpace}. - */ - @NativeType("XrResult") - public static int xrDestroySpace(XrSpace space) { - long __functionAddress = space.getCapabilities().xrDestroySpace; - return callPI(space.address(), __functionAddress); - } - - // --- [ xrEnumerateViewConfigurations ] --- - + */ + @NativeType("XrResult") + public static int xrDestroySpace(XrSpace space) { + long __functionAddress = space.getCapabilities().xrDestroySpace; + return callPI(space.address(), __functionAddress); + } + + // --- [ xrEnumerateViewConfigurations ] --- + /** * Unsafe version of: {@link #xrEnumerateViewConfigurations EnumerateViewConfigurations} * * @param viewConfigurationsTypeCapacityInput the capacity of the {@code viewConfigurations} array, or 0 to indicate a request to retrieve the required capacity. - */ - public static int nxrEnumerateViewConfigurations(XrInstance instance, long systemId, int viewConfigurationsTypeCapacityInput, long viewConfigurationsTypeCountOutput, long viewConfigurationsTypes) { - long __functionAddress = instance.getCapabilities().xrEnumerateViewConfigurations; - return callPJPPI(instance.address(), systemId, viewConfigurationsTypeCapacityInput, viewConfigurationsTypeCountOutput, viewConfigurationsTypes, __functionAddress); - } - + */ + public static int nxrEnumerateViewConfigurations(XrInstance instance, long systemId, int viewConfigurationsTypeCapacityInput, long viewConfigurationsTypeCountOutput, long viewConfigurationsTypes) { + long __functionAddress = instance.getCapabilities().xrEnumerateViewConfigurations; + return callPJPPI(instance.address(), systemId, viewConfigurationsTypeCapacityInput, viewConfigurationsTypeCountOutput, viewConfigurationsTypes, __functionAddress); + } + /** * Enumerates supported view configurations. * @@ -2471,23 +2468,23 @@ public static int nxrEnumerateViewConfigurations(XrInstance instance, long syste * @param systemId the {@code XrSystemId} whose view configurations will be enumerated. * @param viewConfigurationsTypeCountOutput a pointer to the count of {@code viewConfigurations} written, or a pointer to the required capacity in the case that {@code viewConfigurationsTypeCapacityInput} is insufficient. * @param viewConfigurationsTypes a pointer to an array of {@code XrViewConfigurationType} values, but can be {@code NULL} if {@code viewConfigurationsTypeCapacityInput} is 0. - */ - @NativeType("XrResult") - public static int xrEnumerateViewConfigurations(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("uint32_t *") IntBuffer viewConfigurationsTypeCountOutput, @Nullable @NativeType("XrViewConfigurationType *") IntBuffer viewConfigurationsTypes) { - if (CHECKS) { - check(viewConfigurationsTypeCountOutput, 1); - } - return nxrEnumerateViewConfigurations(instance, systemId, remainingSafe(viewConfigurationsTypes), memAddress(viewConfigurationsTypeCountOutput), memAddressSafe(viewConfigurationsTypes)); - } - - // --- [ xrGetViewConfigurationProperties ] --- - - /** Unsafe version of: {@link #xrGetViewConfigurationProperties GetViewConfigurationProperties} */ - public static int nxrGetViewConfigurationProperties(XrInstance instance, long systemId, int viewConfigurationType, long configurationProperties) { - long __functionAddress = instance.getCapabilities().xrGetViewConfigurationProperties; - return callPJPI(instance.address(), systemId, viewConfigurationType, configurationProperties, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrEnumerateViewConfigurations(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("uint32_t *") IntBuffer viewConfigurationsTypeCountOutput, @Nullable @NativeType("XrViewConfigurationType *") IntBuffer viewConfigurationsTypes) { + if (CHECKS) { + check(viewConfigurationsTypeCountOutput, 1); + } + return nxrEnumerateViewConfigurations(instance, systemId, remainingSafe(viewConfigurationsTypes), memAddress(viewConfigurationsTypeCountOutput), memAddressSafe(viewConfigurationsTypes)); + } + + // --- [ xrGetViewConfigurationProperties ] --- + + /** Unsafe version of: {@link #xrGetViewConfigurationProperties GetViewConfigurationProperties} */ + public static int nxrGetViewConfigurationProperties(XrInstance instance, long systemId, int viewConfigurationType, long configurationProperties) { + long __functionAddress = instance.getCapabilities().xrGetViewConfigurationProperties; + return callPJPI(instance.address(), systemId, viewConfigurationType, configurationProperties, __functionAddress); + } + /** * Gets information for a view configuration. * @@ -2540,24 +2537,24 @@ public static int nxrGetViewConfigurationProperties(XrInstance instance, long sy * @param systemId the {@code XrSystemId} whose view configuration is being queried. * @param viewConfigurationType the {@code XrViewConfigurationType} of the configuration to get. * @param configurationProperties a pointer to view configuration properties to return. - */ - @NativeType("XrResult") - public static int xrGetViewConfigurationProperties(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrViewConfigurationType") int viewConfigurationType, @NativeType("XrViewConfigurationProperties *") XrViewConfigurationProperties configurationProperties) { - return nxrGetViewConfigurationProperties(instance, systemId, viewConfigurationType, configurationProperties.address()); - } - - // --- [ xrEnumerateViewConfigurationViews ] --- - + */ + @NativeType("XrResult") + public static int xrGetViewConfigurationProperties(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrViewConfigurationType") int viewConfigurationType, @NativeType("XrViewConfigurationProperties *") XrViewConfigurationProperties configurationProperties) { + return nxrGetViewConfigurationProperties(instance, systemId, viewConfigurationType, configurationProperties.address()); + } + + // --- [ xrEnumerateViewConfigurationViews ] --- + /** * Unsafe version of: {@link #xrEnumerateViewConfigurationViews EnumerateViewConfigurationViews} * * @param viewCapacityInput the capacity of the {@code views} array, or 0 to indicate a request to retrieve the required capacity. - */ - public static int nxrEnumerateViewConfigurationViews(XrInstance instance, long systemId, int viewConfigurationType, int viewCapacityInput, long viewCountOutput, long views) { - long __functionAddress = instance.getCapabilities().xrEnumerateViewConfigurationViews; - return callPJPPI(instance.address(), systemId, viewConfigurationType, viewCapacityInput, viewCountOutput, views, __functionAddress); - } - + */ + public static int nxrEnumerateViewConfigurationViews(XrInstance instance, long systemId, int viewConfigurationType, int viewCapacityInput, long viewCountOutput, long views) { + long __functionAddress = instance.getCapabilities().xrEnumerateViewConfigurationViews; + return callPJPPI(instance.address(), systemId, viewConfigurationType, viewCapacityInput, viewCountOutput, views, __functionAddress); + } + /** * Gets view configuration views. * @@ -2617,27 +2614,27 @@ public static int nxrEnumerateViewConfigurationViews(XrInstance instance, long s * @param viewConfigurationType the {@code XrViewConfigurationType} of the configuration to get. * @param viewCountOutput a pointer to the count of {@code views} written, or a pointer to the required capacity in the case that {@code viewCapacityInput} is 0. * @param views a pointer to an array of {@link XrViewConfigurationView} values, but can be {@code NULL} if {@code viewCapacityInput} is 0. - */ - @NativeType("XrResult") - public static int xrEnumerateViewConfigurationViews(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrViewConfigurationType") int viewConfigurationType, @NativeType("uint32_t *") IntBuffer viewCountOutput, @Nullable @NativeType("XrViewConfigurationView *") XrViewConfigurationView.Buffer views) { - if (CHECKS) { - check(viewCountOutput, 1); - } - return nxrEnumerateViewConfigurationViews(instance, systemId, viewConfigurationType, remainingSafe(views), memAddress(viewCountOutput), memAddressSafe(views)); - } - - // --- [ xrEnumerateSwapchainFormats ] --- - + */ + @NativeType("XrResult") + public static int xrEnumerateViewConfigurationViews(XrInstance instance, @NativeType("XrSystemId") long systemId, @NativeType("XrViewConfigurationType") int viewConfigurationType, @NativeType("uint32_t *") IntBuffer viewCountOutput, @Nullable @NativeType("XrViewConfigurationView *") XrViewConfigurationView.Buffer views) { + if (CHECKS) { + check(viewCountOutput, 1); + } + return nxrEnumerateViewConfigurationViews(instance, systemId, viewConfigurationType, remainingSafe(views), memAddress(viewCountOutput), memAddressSafe(views)); + } + + // --- [ xrEnumerateSwapchainFormats ] --- + /** * Unsafe version of: {@link #xrEnumerateSwapchainFormats EnumerateSwapchainFormats} * * @param formatCapacityInput the capacity of the {@code formats}, or 0 to retrieve the required capacity. - */ - public static int nxrEnumerateSwapchainFormats(XrSession session, int formatCapacityInput, long formatCountOutput, long formats) { - long __functionAddress = session.getCapabilities().xrEnumerateSwapchainFormats; - return callPPPI(session.address(), formatCapacityInput, formatCountOutput, formats, __functionAddress); - } - + */ + public static int nxrEnumerateSwapchainFormats(XrSession session, int formatCapacityInput, long formatCountOutput, long formats) { + long __functionAddress = session.getCapabilities().xrEnumerateSwapchainFormats; + return callPPPI(session.address(), formatCapacityInput, formatCountOutput, formats, __functionAddress); + } + /** * Enumerates swapchain formats. * @@ -2694,23 +2691,23 @@ public static int nxrEnumerateSwapchainFormats(XrSession session, int formatCapa * @param session the session that enumerates the supported formats. * @param formatCountOutput a pointer to the count of {@code uint64_t} formats written, or a pointer to the required capacity in the case that {@code formatCapacityInput} is insufficient. * @param formats a pointer to an array of {@code int64_t} format ids, but can be {@code NULL} if {@code formatCapacityInput} is 0. The format ids are specific to the specified graphics API. - */ - @NativeType("XrResult") - public static int xrEnumerateSwapchainFormats(XrSession session, @NativeType("uint32_t *") IntBuffer formatCountOutput, @Nullable @NativeType("int64_t *") LongBuffer formats) { - if (CHECKS) { - check(formatCountOutput, 1); - } - return nxrEnumerateSwapchainFormats(session, remainingSafe(formats), memAddress(formatCountOutput), memAddressSafe(formats)); - } - - // --- [ xrCreateSwapchain ] --- - - /** Unsafe version of: {@link #xrCreateSwapchain CreateSwapchain} */ - public static int nxrCreateSwapchain(XrSession session, long createInfo, long swapchain) { - long __functionAddress = session.getCapabilities().xrCreateSwapchain; - return callPPPI(session.address(), createInfo, swapchain, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrEnumerateSwapchainFormats(XrSession session, @NativeType("uint32_t *") IntBuffer formatCountOutput, @Nullable @NativeType("int64_t *") LongBuffer formats) { + if (CHECKS) { + check(formatCountOutput, 1); + } + return nxrEnumerateSwapchainFormats(session, remainingSafe(formats), memAddress(formatCountOutput), memAddressSafe(formats)); + } + + // --- [ xrCreateSwapchain ] --- + + /** Unsafe version of: {@link #xrCreateSwapchain CreateSwapchain} */ + public static int nxrCreateSwapchain(XrSession session, long createInfo, long swapchain) { + long __functionAddress = session.getCapabilities().xrCreateSwapchain; + return callPPPI(session.address(), createInfo, swapchain, __functionAddress); + } + /** * Creates an XrSwapchain. * @@ -2765,17 +2762,17 @@ public static int nxrCreateSwapchain(XrSession session, long createInfo, long sw * @param session the session that creates the image. * @param createInfo a pointer to an {@link XrSwapchainCreateInfo} structure containing parameters to be used to create the image. * @param swapchain a pointer to a handle in which the created {@code XrSwapchain} is returned. - */ - @NativeType("XrResult") - public static int xrCreateSwapchain(XrSession session, @NativeType("XrSwapchainCreateInfo const *") XrSwapchainCreateInfo createInfo, @NativeType("XrSwapchain *") PointerBuffer swapchain) { - if (CHECKS) { - check(swapchain, 1); - } - return nxrCreateSwapchain(session, createInfo.address(), memAddress(swapchain)); - } - - // --- [ xrDestroySwapchain ] --- - + */ + @NativeType("XrResult") + public static int xrCreateSwapchain(XrSession session, @NativeType("XrSwapchainCreateInfo const *") XrSwapchainCreateInfo createInfo, @NativeType("XrSwapchain *") PointerBuffer swapchain) { + if (CHECKS) { + check(swapchain, 1); + } + return nxrCreateSwapchain(session, createInfo.address(), memAddress(swapchain)); + } + + // --- [ xrDestroySwapchain ] --- + /** * Destroys an XrSwapchain. * @@ -2821,25 +2818,25 @@ public static int xrCreateSwapchain(XrSession session, @NativeType("XrSwapchainC *

    {@link #xrCreateSwapchain CreateSwapchain}

    * * @param swapchain the swapchain to destroy. - */ - @NativeType("XrResult") - public static int xrDestroySwapchain(XrSwapchain swapchain) { - long __functionAddress = swapchain.getCapabilities().xrDestroySwapchain; - return callPI(swapchain.address(), __functionAddress); - } - - // --- [ xrEnumerateSwapchainImages ] --- - + */ + @NativeType("XrResult") + public static int xrDestroySwapchain(XrSwapchain swapchain) { + long __functionAddress = swapchain.getCapabilities().xrDestroySwapchain; + return callPI(swapchain.address(), __functionAddress); + } + + // --- [ xrEnumerateSwapchainImages ] --- + /** * Unsafe version of: {@link #xrEnumerateSwapchainImages EnumerateSwapchainImages} * * @param imageCapacityInput the capacity of the {@code images} array, or 0 to indicate a request to retrieve the required capacity. - */ - public static int nxrEnumerateSwapchainImages(XrSwapchain swapchain, int imageCapacityInput, long imageCountOutput, long images) { - long __functionAddress = swapchain.getCapabilities().xrEnumerateSwapchainImages; - return callPPPI(swapchain.address(), imageCapacityInput, imageCountOutput, images, __functionAddress); - } - + */ + public static int nxrEnumerateSwapchainImages(XrSwapchain swapchain, int imageCapacityInput, long imageCountOutput, long images) { + long __functionAddress = swapchain.getCapabilities().xrEnumerateSwapchainImages; + return callPPPI(swapchain.address(), imageCapacityInput, imageCountOutput, images, __functionAddress); + } + /** * Gets images from an XrSwapchain. * @@ -2874,7 +2871,7 @@ public static int nxrEnumerateSwapchainImages(XrSwapchain swapchain, int imageCa *
      *
    • {@code swapchain} must be a valid {@code XrSwapchain} handle
    • *
    • {@code imageCountOutput} must be a pointer to a {@code uint32_t} value
    • - *
    • If {@code imageCapacityInput} is not 0, {@code images} must be a pointer to an array of {@code imageCapacityInput} {@link XrSwapchainImageBaseHeader}-based structures. See also: {@link XrSwapchainImageOpenGLKHR}, {@link XrSwapchainImageVulkanKHR}
    • + *
    • If {@code imageCapacityInput} is not 0, {@code images} must be a pointer to an array of {@code imageCapacityInput} {@link XrSwapchainImageBaseHeader}-based structures. See also: {@link XrSwapchainImageOpenGLESKHR}, {@link XrSwapchainImageOpenGLKHR}, {@link XrSwapchainImageVulkanKHR}
    • *
    * *
    Return Codes
    @@ -2903,23 +2900,23 @@ public static int nxrEnumerateSwapchainImages(XrSwapchain swapchain, int imageCa * @param swapchain the {@code XrSwapchain} to get images from. * @param imageCountOutput a pointer to the count of {@code images} written, or a pointer to the required capacity in the case that {@code imageCapacityInput} is insufficient. * @param images a pointer to an array of graphics API-specific {@code XrSwapchainImage} structures, all of the same type, based on {@link XrSwapchainImageBaseHeader}. It can be {@code NULL} if {@code imageCapacityInput} is 0. - */ - @NativeType("XrResult") - public static int xrEnumerateSwapchainImages(XrSwapchain swapchain, @NativeType("uint32_t *") IntBuffer imageCountOutput, @Nullable @NativeType("XrSwapchainImageBaseHeader *") XrSwapchainImageBaseHeader.Buffer images) { - if (CHECKS) { - check(imageCountOutput, 1); - } - return nxrEnumerateSwapchainImages(swapchain, remainingSafe(images), memAddress(imageCountOutput), memAddressSafe(images)); - } - - // --- [ xrAcquireSwapchainImage ] --- - - /** Unsafe version of: {@link #xrAcquireSwapchainImage AcquireSwapchainImage} */ - public static int nxrAcquireSwapchainImage(XrSwapchain swapchain, long acquireInfo, long index) { - long __functionAddress = swapchain.getCapabilities().xrAcquireSwapchainImage; - return callPPPI(swapchain.address(), acquireInfo, index, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrEnumerateSwapchainImages(XrSwapchain swapchain, @NativeType("uint32_t *") IntBuffer imageCountOutput, @Nullable @NativeType("XrSwapchainImageBaseHeader *") XrSwapchainImageBaseHeader.Buffer images) { + if (CHECKS) { + check(imageCountOutput, 1); + } + return nxrEnumerateSwapchainImages(swapchain, remainingSafe(images), memAddress(imageCountOutput), memAddressSafe(images)); + } + + // --- [ xrAcquireSwapchainImage ] --- + + /** Unsafe version of: {@link #xrAcquireSwapchainImage AcquireSwapchainImage} */ + public static int nxrAcquireSwapchainImage(XrSwapchain swapchain, long acquireInfo, long index) { + long __functionAddress = swapchain.getCapabilities().xrAcquireSwapchainImage; + return callPPPI(swapchain.address(), acquireInfo, index, __functionAddress); + } + /** * Acquire a swapchain image. * @@ -2971,23 +2968,23 @@ public static int nxrAcquireSwapchainImage(XrSwapchain swapchain, long acquireIn * @param swapchain the swapchain from which to acquire an image. * @param acquireInfo exists for extensibility purposes, it is {@code NULL} or a pointer to a valid {@link XrSwapchainImageAcquireInfo}. * @param index the returned image index that has been acquired. - */ - @NativeType("XrResult") - public static int xrAcquireSwapchainImage(XrSwapchain swapchain, @Nullable @NativeType("XrSwapchainImageAcquireInfo const *") XrSwapchainImageAcquireInfo acquireInfo, @NativeType("uint32_t *") IntBuffer index) { - if (CHECKS) { - check(index, 1); - } - return nxrAcquireSwapchainImage(swapchain, memAddressSafe(acquireInfo), memAddress(index)); - } - - // --- [ xrWaitSwapchainImage ] --- - - /** Unsafe version of: {@link #xrWaitSwapchainImage WaitSwapchainImage} */ - public static int nxrWaitSwapchainImage(XrSwapchain swapchain, long waitInfo) { - long __functionAddress = swapchain.getCapabilities().xrWaitSwapchainImage; - return callPPI(swapchain.address(), waitInfo, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrAcquireSwapchainImage(XrSwapchain swapchain, @Nullable @NativeType("XrSwapchainImageAcquireInfo const *") XrSwapchainImageAcquireInfo acquireInfo, @NativeType("uint32_t *") IntBuffer index) { + if (CHECKS) { + check(index, 1); + } + return nxrAcquireSwapchainImage(swapchain, memAddressSafe(acquireInfo), memAddress(index)); + } + + // --- [ xrWaitSwapchainImage ] --- + + /** Unsafe version of: {@link #xrWaitSwapchainImage WaitSwapchainImage} */ + public static int nxrWaitSwapchainImage(XrSwapchain swapchain, long waitInfo) { + long __functionAddress = swapchain.getCapabilities().xrWaitSwapchainImage; + return callPPI(swapchain.address(), waitInfo, __functionAddress); + } + /** * Wait for a swapchain image to be available. * @@ -3045,20 +3042,20 @@ public static int nxrWaitSwapchainImage(XrSwapchain swapchain, long waitInfo) { * * @param swapchain the swapchain from which to wait for an image. * @param waitInfo a pointer to an {@link XrSwapchainImageWaitInfo} structure. - */ - @NativeType("XrResult") - public static int xrWaitSwapchainImage(XrSwapchain swapchain, @NativeType("XrSwapchainImageWaitInfo const *") XrSwapchainImageWaitInfo waitInfo) { - return nxrWaitSwapchainImage(swapchain, waitInfo.address()); - } - - // --- [ xrReleaseSwapchainImage ] --- - - /** Unsafe version of: {@link #xrReleaseSwapchainImage ReleaseSwapchainImage} */ - public static int nxrReleaseSwapchainImage(XrSwapchain swapchain, long releaseInfo) { - long __functionAddress = swapchain.getCapabilities().xrReleaseSwapchainImage; - return callPPI(swapchain.address(), releaseInfo, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrWaitSwapchainImage(XrSwapchain swapchain, @NativeType("XrSwapchainImageWaitInfo const *") XrSwapchainImageWaitInfo waitInfo) { + return nxrWaitSwapchainImage(swapchain, waitInfo.address()); + } + + // --- [ xrReleaseSwapchainImage ] --- + + /** Unsafe version of: {@link #xrReleaseSwapchainImage ReleaseSwapchainImage} */ + public static int nxrReleaseSwapchainImage(XrSwapchain swapchain, long releaseInfo) { + long __functionAddress = swapchain.getCapabilities().xrReleaseSwapchainImage; + return callPPI(swapchain.address(), releaseInfo, __functionAddress); + } + /** * Release a swapchain image. * @@ -3109,20 +3106,20 @@ public static int nxrReleaseSwapchainImage(XrSwapchain swapchain, long releaseIn * * @param swapchain the {@code XrSwapchain} from which to release an image. * @param releaseInfo exists for extensibility purposes, it is {@code NULL} or a pointer to a valid {@link XrSwapchainImageReleaseInfo}. - */ - @NativeType("XrResult") - public static int xrReleaseSwapchainImage(XrSwapchain swapchain, @Nullable @NativeType("XrSwapchainImageReleaseInfo const *") XrSwapchainImageReleaseInfo releaseInfo) { - return nxrReleaseSwapchainImage(swapchain, memAddressSafe(releaseInfo)); - } - - // --- [ xrBeginSession ] --- - - /** Unsafe version of: {@link #xrBeginSession BeginSession} */ - public static int nxrBeginSession(XrSession session, long beginInfo) { - long __functionAddress = session.getCapabilities().xrBeginSession; - return callPPI(session.address(), beginInfo, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrReleaseSwapchainImage(XrSwapchain swapchain, @Nullable @NativeType("XrSwapchainImageReleaseInfo const *") XrSwapchainImageReleaseInfo releaseInfo) { + return nxrReleaseSwapchainImage(swapchain, memAddressSafe(releaseInfo)); + } + + // --- [ xrBeginSession ] --- + + /** Unsafe version of: {@link #xrBeginSession BeginSession} */ + public static int nxrBeginSession(XrSession session, long beginInfo) { + long __functionAddress = session.getCapabilities().xrBeginSession; + return callPPI(session.address(), beginInfo, __functionAddress); + } + /** * Begins an XrSession. * @@ -3139,13 +3136,13 @@ public static int nxrBeginSession(XrSession session, long beginInfo) { * *

    When the application receives {@link XrEventDataSessionStateChanged} event with the {@link #XR_SESSION_STATE_READY SESSION_STATE_READY} state, the application should then call {@link #xrBeginSession BeginSession} to start rendering frames for display to the user.

    * - *

    After this function successfully returns, the session is considered to be running. The application should then start its frame loop consisting of some sequence of {@link #xrWaitFrame WaitFrame}/{@link #xrBeginFrame BeginFrame}/{@link #xrEndFrame EndFrame} calls.

    + *

    After this function successfully returns, the session is considered to be running. The application should then start its frame loop consisting of some sequence of {@link #xrWaitFrame WaitFrame}/{@link #xrBeginFrame BeginFrame}/{@link #xrEndFrame EndFrame} calls.

    * - *

    If the session is already running when the application calls {@link #xrBeginSession BeginSession}, the runtime must return error {@link #XR_ERROR_SESSION_RUNNING ERROR_SESSION_RUNNING}. If the session is not running when the application calls {@link #xrBeginSession BeginSession}, but the session is not yet in the {@link #XR_SESSION_STATE_READY SESSION_STATE_READY} state, the runtime must return error {@link #XR_ERROR_SESSION_NOT_READY ERROR_SESSION_NOT_READY}.

    + *

    If the session is already running when the application calls {@link #xrBeginSession BeginSession}, the runtime must return error {@link #XR_ERROR_SESSION_RUNNING ERROR_SESSION_RUNNING}. If the session is not running when the application calls {@link #xrBeginSession BeginSession}, but the session is not yet in the {@link #XR_SESSION_STATE_READY SESSION_STATE_READY} state, the runtime must return error {@link #XR_ERROR_SESSION_NOT_READY ERROR_SESSION_NOT_READY}.

    * *

    Note that a runtime may decide not to show the user any given frame from a session at any time, for example if the user has switched to a different application’s running session. The application should check whether {@link #xrWaitFrame WaitFrame} returns an {@link XrFrameState} with {@code shouldRender} set to true before rendering a given frame to determine whether that frame will be visible to the user.

    * - *

    Runtime session frame state must start in a reset state when a session transitions to running so that no state is carried over from when the same session was previously running.

    + *

    Runtime session frame state must start in a reset state when a session transitions to running so that no state is carried over from when the same session was previously running.

    * *

    If {@code primaryViewConfigurationType} in {@code beginInfo} is not supported by the {@code XrSystemId} used to create the {@code session}, the runtime must return {@link #XR_ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED}.

    * @@ -3183,14 +3180,14 @@ public static int nxrBeginSession(XrSession session, long beginInfo) { * * @param session a valid {@code XrSession} handle. * @param beginInfo a pointer to an {@link XrSessionBeginInfo} structure. - */ - @NativeType("XrResult") - public static int xrBeginSession(XrSession session, @NativeType("XrSessionBeginInfo const *") XrSessionBeginInfo beginInfo) { - return nxrBeginSession(session, beginInfo.address()); - } - - // --- [ xrEndSession ] --- - + */ + @NativeType("XrResult") + public static int xrBeginSession(XrSession session, @NativeType("XrSessionBeginInfo const *") XrSessionBeginInfo beginInfo) { + return nxrBeginSession(session, beginInfo.address()); + } + + // --- [ xrEndSession ] --- + /** * Ends an XrSession. * @@ -3204,9 +3201,9 @@ public static int xrBeginSession(XrSession session, @NativeType("XrSessionBeginI * *
    Description
    * - *

    When the application receives {@link XrEventDataSessionStateChanged} event with the {@link #XR_SESSION_STATE_STOPPING SESSION_STATE_STOPPING} state, the application should stop its frame loop and then call {@link #xrEndSession EndSession} to end the running session. This function signals to the runtime that the application will no longer call {@link #xrWaitFrame WaitFrame}, {@link #xrBeginFrame BeginFrame} or {@link #xrEndFrame EndFrame} from any thread allowing the runtime to safely transition the session to {@link #XR_SESSION_STATE_IDLE SESSION_STATE_IDLE}. The application must also avoid reading input state or sending haptic output after calling {@link #xrEndSession EndSession}.

    + *

    When the application receives {@link XrEventDataSessionStateChanged} event with the {@link #XR_SESSION_STATE_STOPPING SESSION_STATE_STOPPING} state, the application should stop its frame loop and then call {@link #xrEndSession EndSession} to end the running session. This function signals to the runtime that the application will no longer call {@link #xrWaitFrame WaitFrame}, {@link #xrBeginFrame BeginFrame} or {@link #xrEndFrame EndFrame} from any thread allowing the runtime to safely transition the session to {@link #XR_SESSION_STATE_IDLE SESSION_STATE_IDLE}. The application must also avoid reading input state or sending haptic output after calling {@link #xrEndSession EndSession}.

    * - *

    If the session is not running when the application calls {@link #xrEndSession EndSession}, the runtime must return error {@link #XR_ERROR_SESSION_NOT_RUNNING ERROR_SESSION_NOT_RUNNING}. If the session is still running when the application calls {@link #xrEndSession EndSession}, but the session is not yet in the {@link #XR_SESSION_STATE_STOPPING SESSION_STATE_STOPPING} state, the runtime must return error {@link #XR_ERROR_SESSION_NOT_STOPPING ERROR_SESSION_NOT_STOPPING}.

    + *

    If the session is not running when the application calls {@link #xrEndSession EndSession}, the runtime must return error {@link #XR_ERROR_SESSION_NOT_RUNNING ERROR_SESSION_NOT_RUNNING}. If the session is still running when the application calls {@link #xrEndSession EndSession}, but the session is not yet in the {@link #XR_SESSION_STATE_STOPPING SESSION_STATE_STOPPING} state, the runtime must return error {@link #XR_ERROR_SESSION_NOT_STOPPING ERROR_SESSION_NOT_STOPPING}.

    * *

    If the application wishes to exit a running session, the application can call {@link #xrRequestExitSession RequestExitSession} so that the session transitions from {@link #XR_SESSION_STATE_IDLE SESSION_STATE_IDLE} to {@link #XR_SESSION_STATE_EXITING SESSION_STATE_EXITING}.

    * @@ -3240,22 +3237,22 @@ public static int xrBeginSession(XrSession session, @NativeType("XrSessionBeginI * *

    {@link #xrBeginSession BeginSession}, {@link #xrCreateSession CreateSession}, {@link #xrDestroySession DestroySession}

    * - * @param session a handle to a running {@code XrSession}. - */ - @NativeType("XrResult") - public static int xrEndSession(XrSession session) { - long __functionAddress = session.getCapabilities().xrEndSession; - return callPI(session.address(), __functionAddress); - } - - // --- [ xrRequestExitSession ] --- - + * @param session a handle to a running {@code XrSession}. + */ + @NativeType("XrResult") + public static int xrEndSession(XrSession session) { + long __functionAddress = session.getCapabilities().xrEndSession; + return callPI(session.address(), __functionAddress); + } + + // --- [ xrRequestExitSession ] --- + /** * Request to exit a running session. * *
    C Specification
    * - *

    When an application wishes to exit a running session, it can call {@link #xrRequestExitSession RequestExitSession}, requesting that the runtime transition through the various intermediate session states including {@link #XR_SESSION_STATE_STOPPING SESSION_STATE_STOPPING} to {@link #XR_SESSION_STATE_EXITING SESSION_STATE_EXITING}.

    + *

    When an application wishes to exit a running session, it can call {@link #xrRequestExitSession RequestExitSession}, requesting that the runtime transition through the various intermediate session states including {@link #XR_SESSION_STATE_STOPPING SESSION_STATE_STOPPING} to {@link #XR_SESSION_STATE_EXITING SESSION_STATE_EXITING}.

    * *

    On platforms where an application’s lifecycle is managed by the system, session state changes may be implicitly triggered by application lifecycle state changes. On such platforms, using platform-specific methods to alter application lifecycle state may be the preferred method of provoking session state changes. The behavior of {@link #xrRequestExitSession RequestExitSession} is not altered, however explicit session exit may not interact with the platform-specific application lifecycle.

    * @@ -3267,7 +3264,7 @@ public static int xrEndSession(XrSession session) { * *
    Description
    * - *

    If {@code session} is not running when {@link #xrRequestExitSession RequestExitSession} is called, {@link #XR_ERROR_SESSION_NOT_RUNNING ERROR_SESSION_NOT_RUNNING} must be returned.

    + *

    If {@code session} is not running when {@link #xrRequestExitSession RequestExitSession} is called, {@link #XR_ERROR_SESSION_NOT_RUNNING ERROR_SESSION_NOT_RUNNING} must be returned.

    * *
    Valid Usage (Implicit)
    * @@ -3299,21 +3296,21 @@ public static int xrEndSession(XrSession session) { *

    {@link #xrDestroySession DestroySession}, {@link #xrEndSession EndSession}

    * * @param session a handle to a running {@code XrSession}. - */ - @NativeType("XrResult") - public static int xrRequestExitSession(XrSession session) { - long __functionAddress = session.getCapabilities().xrRequestExitSession; - return callPI(session.address(), __functionAddress); - } - - // --- [ xrWaitFrame ] --- - - /** Unsafe version of: {@link #xrWaitFrame WaitFrame} */ - public static int nxrWaitFrame(XrSession session, long frameWaitInfo, long frameState) { - long __functionAddress = session.getCapabilities().xrWaitFrame; - return callPPPI(session.address(), frameWaitInfo, frameState, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrRequestExitSession(XrSession session) { + long __functionAddress = session.getCapabilities().xrRequestExitSession; + return callPI(session.address(), __functionAddress); + } + + // --- [ xrWaitFrame ] --- + + /** Unsafe version of: {@link #xrWaitFrame WaitFrame} */ + public static int nxrWaitFrame(XrSession session, long frameWaitInfo, long frameState) { + long __functionAddress = session.getCapabilities().xrWaitFrame; + return callPPPI(session.address(), frameWaitInfo, frameState, __functionAddress); + } + /** * Frame timing function. * @@ -3341,7 +3338,7 @@ public static int nxrWaitFrame(XrSession session, long frameWaitInfo, long frame * *

    Calling {@link #xrWaitFrame WaitFrame} must be externally synchronized by the application, concurrent calls may result in undefined behavior.

    * - *

    The runtime must return {@link #XR_ERROR_SESSION_NOT_RUNNING ERROR_SESSION_NOT_RUNNING} if the {@code session} is not running.

    + *

    The runtime must return {@link #XR_ERROR_SESSION_NOT_RUNNING ERROR_SESSION_NOT_RUNNING} if the {@code session} is not running.

    * *
    Note
    * @@ -3388,20 +3385,20 @@ public static int nxrWaitFrame(XrSession session, long frameWaitInfo, long frame * @param session a valid {@code XrSession} handle. * @param frameWaitInfo exists for extensibility purposes, it is {@code NULL} or a pointer to a valid {@link XrFrameWaitInfo}. * @param frameState a pointer to a valid {@link XrFrameState}, an output parameter. - */ - @NativeType("XrResult") - public static int xrWaitFrame(XrSession session, @Nullable @NativeType("XrFrameWaitInfo const *") XrFrameWaitInfo frameWaitInfo, @NativeType("XrFrameState *") XrFrameState frameState) { - return nxrWaitFrame(session, memAddressSafe(frameWaitInfo), frameState.address()); - } - - // --- [ xrBeginFrame ] --- - - /** Unsafe version of: {@link #xrBeginFrame BeginFrame} */ - public static int nxrBeginFrame(XrSession session, long frameBeginInfo) { - long __functionAddress = session.getCapabilities().xrBeginFrame; - return callPPI(session.address(), frameBeginInfo, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrWaitFrame(XrSession session, @Nullable @NativeType("XrFrameWaitInfo const *") XrFrameWaitInfo frameWaitInfo, @NativeType("XrFrameState *") XrFrameState frameState) { + return nxrWaitFrame(session, memAddressSafe(frameWaitInfo), frameState.address()); + } + + // --- [ xrBeginFrame ] --- + + /** Unsafe version of: {@link #xrBeginFrame BeginFrame} */ + public static int nxrBeginFrame(XrSession session, long frameBeginInfo) { + long __functionAddress = session.getCapabilities().xrBeginFrame; + return callPPI(session.address(), frameBeginInfo, __functionAddress); + } + /** * Marks a frame. * @@ -3424,7 +3421,7 @@ public static int nxrBeginFrame(XrSession session, long frameBeginInfo) { * *

    The runtime must return the success code {@link #XR_FRAME_DISCARDED FRAME_DISCARDED} if a prior {@link #xrBeginFrame BeginFrame} has been called without an intervening call to {@link #xrEndFrame EndFrame}.

    * - *

    The runtime must return {@link #XR_ERROR_SESSION_NOT_RUNNING ERROR_SESSION_NOT_RUNNING} if the {@code session} is not running.

    + *

    The runtime must return {@link #XR_ERROR_SESSION_NOT_RUNNING ERROR_SESSION_NOT_RUNNING} if the {@code session} is not running.

    * *
    Valid Usage (Implicit)
    * @@ -3466,20 +3463,20 @@ public static int nxrBeginFrame(XrSession session, long frameBeginInfo) { * * @param session a valid {@code XrSession} handle. * @param frameBeginInfo exists for extensibility purposes, it is {@code NULL} or a pointer to a valid {@link XrFrameBeginInfo}. - */ - @NativeType("XrResult") - public static int xrBeginFrame(XrSession session, @Nullable @NativeType("XrFrameBeginInfo const *") XrFrameBeginInfo frameBeginInfo) { - return nxrBeginFrame(session, memAddressSafe(frameBeginInfo)); - } - - // --- [ xrEndFrame ] --- - - /** Unsafe version of: {@link #xrEndFrame EndFrame} */ - public static int nxrEndFrame(XrSession session, long frameEndInfo) { - long __functionAddress = session.getCapabilities().xrEndFrame; - return callPPI(session.address(), frameEndInfo, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrBeginFrame(XrSession session, @Nullable @NativeType("XrFrameBeginInfo const *") XrFrameBeginInfo frameBeginInfo) { + return nxrBeginFrame(session, memAddressSafe(frameBeginInfo)); + } + + // --- [ xrEndFrame ] --- + + /** Unsafe version of: {@link #xrEndFrame EndFrame} */ + public static int nxrEndFrame(XrSession session, long frameEndInfo) { + long __functionAddress = session.getCapabilities().xrEndFrame; + return callPPI(session.address(), frameEndInfo, __functionAddress); + } + /** * Marks a frame. * @@ -3515,7 +3512,7 @@ public static int nxrEndFrame(XrSession session, long frameEndInfo) { * *

    {@link #XR_ERROR_ENVIRONMENT_BLEND_MODE_UNSUPPORTED ERROR_ENVIRONMENT_BLEND_MODE_UNSUPPORTED} must be returned if {@link XrFrameEndInfo}::environmentBlendMode is not supported.

    * - *

    {@link #XR_ERROR_SESSION_NOT_RUNNING ERROR_SESSION_NOT_RUNNING} must be returned if the {@code session} is not running.

    + *

    {@link #XR_ERROR_SESSION_NOT_RUNNING ERROR_SESSION_NOT_RUNNING} must be returned if the {@code session} is not running.

    * *
    Note
    * @@ -3567,27 +3564,27 @@ public static int nxrEndFrame(XrSession session, long frameEndInfo) { * * @param session a valid {@code XrSession} handle. * @param frameEndInfo a pointer to a valid {@link XrFrameEndInfo}. - */ - @NativeType("XrResult") - public static int xrEndFrame(XrSession session, @NativeType("XrFrameEndInfo const *") XrFrameEndInfo frameEndInfo) { - return nxrEndFrame(session, frameEndInfo.address()); - } - - // --- [ xrLocateViews ] --- - + */ + @NativeType("XrResult") + public static int xrEndFrame(XrSession session, @NativeType("XrFrameEndInfo const *") XrFrameEndInfo frameEndInfo) { + return nxrEndFrame(session, frameEndInfo.address()); + } + + // --- [ xrLocateViews ] --- + /** * Unsafe version of: {@link #xrLocateViews LocateViews} * * @param viewCapacityInput an input parameter which specifies the capacity of the {@code views} array. The required capacity must be same as defined by the corresponding {@code XrViewConfigurationType}. - */ - public static int nxrLocateViews(XrSession session, long viewLocateInfo, long viewState, int viewCapacityInput, long viewCountOutput, long views) { - long __functionAddress = session.getCapabilities().xrLocateViews; - if (CHECKS) { - XrViewLocateInfo.validate(viewLocateInfo); - } - return callPPPPPI(session.address(), viewLocateInfo, viewState, viewCapacityInput, viewCountOutput, views, __functionAddress); - } - + */ + public static int nxrLocateViews(XrSession session, long viewLocateInfo, long viewState, int viewCapacityInput, long viewCountOutput, long views) { + long __functionAddress = session.getCapabilities().xrLocateViews; + if (CHECKS) { + XrViewLocateInfo.validate(viewLocateInfo); + } + return callPPPPPI(session.address(), viewLocateInfo, viewState, viewCapacityInput, viewCountOutput, views, __functionAddress); + } + /** * Gets view and projection info. * @@ -3608,9 +3605,7 @@ public static int nxrLocateViews(XrSession session, long viewLocateInfo, long vi * *

    The {@link #xrLocateViews LocateViews} function returns the view and projection info for a particular display time. This time is typically the target display time for a given frame. Repeatedly calling {@link #xrLocateViews LocateViews} with the same time may not necessarily return the same result. Instead the prediction gets increasingly accurate as the function is called closer to the given time for which a prediction is made. This allows an application to get the predicted views as late as possible in its pipeline to get the least amount of latency and prediction error.

    * - *

    {@link #xrLocateViews LocateViews} returns an array of {@link XrView} elements, one for each view of the specified view configuration type, along with an {@link XrViewState} containing additional state data shared across all views. The eye each view corresponds to is statically defined in {@code XrViewConfigurationType} in case the application wants to apply eye-specific rendering traits. The {@link XrViewState} and {@link XrView} member data may change on subsequent calls to {@link #xrLocateViews LocateViews}, and so applications must not assume it to be constant.

    - * - *

    If an application gives a {@code viewLocateInfo} with a {@code viewConfigurationType} that was not passed in the session’s call to {@link #xrBeginSession BeginSession} via the {@code beginInfo.pname}:primaryViewConfigurationType, or enabled though an extension, then the runtime must return {@link #XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}.

    + *

    {@link #xrLocateViews LocateViews} returns an array of {@link XrView} elements, one for each view of the specified view configuration type, along with an {@link XrViewState} containing additional state data shared across all views. The eye each view corresponds to is statically defined in {@code XrViewConfigurationType} in case the application wants to apply eye-specific rendering traits. The {@link XrViewState} and {@link XrView} member data may change on subsequent calls to {@link #xrLocateViews LocateViews}, and so applications must not assume it to be constant.

    * *
    Valid Usage (Implicit)
    * @@ -3652,23 +3647,23 @@ public static int nxrLocateViews(XrSession session, long viewLocateInfo, long vi * @param viewState the output structure with the viewer state information. * @param viewCountOutput an output parameter which identifies the valid count of {@code views}. * @param views an array of {@link XrView}. - */ - @NativeType("XrResult") - public static int xrLocateViews(XrSession session, @NativeType("XrViewLocateInfo const *") XrViewLocateInfo viewLocateInfo, @NativeType("XrViewState *") XrViewState viewState, @NativeType("uint32_t *") IntBuffer viewCountOutput, @Nullable @NativeType("XrView *") XrView.Buffer views) { - if (CHECKS) { - check(viewCountOutput, 1); - } - return nxrLocateViews(session, viewLocateInfo.address(), viewState.address(), remainingSafe(views), memAddress(viewCountOutput), memAddressSafe(views)); - } - - // --- [ xrStringToPath ] --- - - /** Unsafe version of: {@link #xrStringToPath StringToPath} */ - public static int nxrStringToPath(XrInstance instance, long pathString, long path) { - long __functionAddress = instance.getCapabilities().xrStringToPath; - return callPPPI(instance.address(), pathString, path, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrLocateViews(XrSession session, @NativeType("XrViewLocateInfo const *") XrViewLocateInfo viewLocateInfo, @NativeType("XrViewState *") XrViewState viewState, @NativeType("uint32_t *") IntBuffer viewCountOutput, @Nullable @NativeType("XrView *") XrView.Buffer views) { + if (CHECKS) { + check(viewCountOutput, 1); + } + return nxrLocateViews(session, viewLocateInfo.address(), viewState.address(), remainingSafe(views), memAddress(viewCountOutput), memAddressSafe(views)); + } + + // --- [ xrStringToPath ] --- + + /** Unsafe version of: {@link #xrStringToPath StringToPath} */ + public static int nxrStringToPath(XrInstance instance, long pathString, long path) { + long __functionAddress = instance.getCapabilities().xrStringToPath; + return callPPPI(instance.address(), pathString, path, __functionAddress); + } + /** * Converts a string to a semantic path. * @@ -3684,7 +3679,7 @@ public static int nxrStringToPath(XrInstance instance, long pathString, long pat * *
    Description
    * - *

    {@link #xrStringToPath StringToPath} retrieves the {@code XrPath} value for a well-formed path string. If such a value had not yet been assigned by the runtime to the provided path string in this {@code XrInstance}, one must be assigned at this point. All calls to this function with the same {@code XrInstance} and path string must retrieve the same {@code XrPath} value. Upon failure, {@link #xrStringToPath StringToPath} must return an appropriate {@code XrResult}, and may set the output parameter to {@link #XR_NULL_PATH NULL_PATH}. See Path Atom Type for the conditions under which an error may be returned when this function is given a valid {@code XrInstance} and a well-formed path string.

    + *

    {@link #xrStringToPath StringToPath} retrieves the {@code XrPath} value for a well-formed path string. If such a value had not yet been assigned by the runtime to the provided path string in this {@code XrInstance}, one must be assigned at this point. All calls to this function with the same {@code XrInstance} and path string must retrieve the same {@code XrPath} value. Upon failure, {@link #xrStringToPath StringToPath} must return an appropriate {@code XrResult}, and may set the output parameter to {@link #XR_NULL_PATH NULL_PATH}. See Path Atom Type for the conditions under which an error may be returned when this function is given a valid {@code XrInstance} and a well-formed path string.

    * *

    If the runtime’s resources are exhausted and it cannot create the path, a return value of {@link #XR_ERROR_PATH_COUNT_EXCEEDED ERROR_PATH_COUNT_EXCEEDED} must be returned. If the application specifies a string that is not a well-formed path string, {@link #XR_ERROR_PATH_FORMAT_INVALID ERROR_PATH_FORMAT_INVALID} must be returned.

    * @@ -3723,16 +3718,16 @@ public static int nxrStringToPath(XrInstance instance, long pathString, long pat * @param instance an instance previously created. * @param pathString the path name string to retrieve the associated {@code XrPath} for. * @param path the output parameter, which must point to an {@code XrPath}. Given a well-formed path name string, this will be populated with an opaque value that is constant for that path string during the lifetime of that instance. - */ - @NativeType("XrResult") - public static int xrStringToPath(XrInstance instance, @NativeType("char const *") ByteBuffer pathString, @NativeType("XrPath *") LongBuffer path) { - if (CHECKS) { - checkNT1(pathString); - check(path, 1); - } - return nxrStringToPath(instance, memAddress(pathString), memAddress(path)); - } - + */ + @NativeType("XrResult") + public static int xrStringToPath(XrInstance instance, @NativeType("char const *") ByteBuffer pathString, @NativeType("XrPath *") LongBuffer path) { + if (CHECKS) { + checkNT1(pathString); + check(path, 1); + } + return nxrStringToPath(instance, memAddress(pathString), memAddress(path)); + } + /** * Converts a string to a semantic path. * @@ -3748,7 +3743,7 @@ public static int xrStringToPath(XrInstance instance, @NativeType("char const *" * *
    Description
    * - *

    {@link #xrStringToPath StringToPath} retrieves the {@code XrPath} value for a well-formed path string. If such a value had not yet been assigned by the runtime to the provided path string in this {@code XrInstance}, one must be assigned at this point. All calls to this function with the same {@code XrInstance} and path string must retrieve the same {@code XrPath} value. Upon failure, {@link #xrStringToPath StringToPath} must return an appropriate {@code XrResult}, and may set the output parameter to {@link #XR_NULL_PATH NULL_PATH}. See Path Atom Type for the conditions under which an error may be returned when this function is given a valid {@code XrInstance} and a well-formed path string.

    + *

    {@link #xrStringToPath StringToPath} retrieves the {@code XrPath} value for a well-formed path string. If such a value had not yet been assigned by the runtime to the provided path string in this {@code XrInstance}, one must be assigned at this point. All calls to this function with the same {@code XrInstance} and path string must retrieve the same {@code XrPath} value. Upon failure, {@link #xrStringToPath StringToPath} must return an appropriate {@code XrResult}, and may set the output parameter to {@link #XR_NULL_PATH NULL_PATH}. See Path Atom Type for the conditions under which an error may be returned when this function is given a valid {@code XrInstance} and a well-formed path string.

    * *

    If the runtime’s resources are exhausted and it cannot create the path, a return value of {@link #XR_ERROR_PATH_COUNT_EXCEEDED ERROR_PATH_COUNT_EXCEEDED} must be returned. If the application specifies a string that is not a well-formed path string, {@link #XR_ERROR_PATH_FORMAT_INVALID ERROR_PATH_FORMAT_INVALID} must be returned.

    * @@ -3787,34 +3782,34 @@ public static int xrStringToPath(XrInstance instance, @NativeType("char const *" * @param instance an instance previously created. * @param pathString the path name string to retrieve the associated {@code XrPath} for. * @param path the output parameter, which must point to an {@code XrPath}. Given a well-formed path name string, this will be populated with an opaque value that is constant for that path string during the lifetime of that instance. - */ - @NativeType("XrResult") - public static int xrStringToPath(XrInstance instance, @NativeType("char const *") CharSequence pathString, @NativeType("XrPath *") LongBuffer path) { - if (CHECKS) { - check(path, 1); - } - MemoryStack stack = stackGet(); int stackPointer = stack.getPointer(); - try { - stack.nUTF8(pathString, true); - long pathStringEncoded = stack.getPointerAddress(); - return nxrStringToPath(instance, pathStringEncoded, memAddress(path)); - } finally { - stack.setPointer(stackPointer); - } - } - - // --- [ xrPathToString ] --- - + */ + @NativeType("XrResult") + public static int xrStringToPath(XrInstance instance, @NativeType("char const *") CharSequence pathString, @NativeType("XrPath *") LongBuffer path) { + if (CHECKS) { + check(path, 1); + } + MemoryStack stack = stackGet(); int stackPointer = stack.getPointer(); + try { + stack.nUTF8(pathString, true); + long pathStringEncoded = stack.getPointerAddress(); + return nxrStringToPath(instance, pathStringEncoded, memAddress(path)); + } finally { + stack.setPointer(stackPointer); + } + } + + // --- [ xrPathToString ] --- + /** * Unsafe version of: {@link #xrPathToString PathToString} * * @param bufferCapacityInput the capacity of the buffer, or 0 to indicate a request to retrieve the required capacity. - */ - public static int nxrPathToString(XrInstance instance, long path, int bufferCapacityInput, long bufferCountOutput, long buffer) { - long __functionAddress = instance.getCapabilities().xrPathToString; - return callPJPPI(instance.address(), path, bufferCapacityInput, bufferCountOutput, buffer, __functionAddress); - } - + */ + public static int nxrPathToString(XrInstance instance, long path, int bufferCapacityInput, long bufferCountOutput, long buffer) { + long __functionAddress = instance.getCapabilities().xrPathToString; + return callPJPPI(instance.address(), path, bufferCapacityInput, bufferCountOutput, buffer, __functionAddress); + } + /** * Converts a semantic path to a string. * @@ -3866,23 +3861,23 @@ public static int nxrPathToString(XrInstance instance, long path, int bufferCapa * @param path the valid {@code XrPath} value to retrieve the path string for. * @param bufferCountOutput a pointer to the count of characters written to {@code buffer} (including the terminating '\0'), or a pointer to the required capacity in the case that {@code bufferCapacityInput} is insufficient. * @param buffer a pointer to an application-allocated buffer that will be filled with the semantic path string. It can be {@code NULL} if {@code bufferCapacityInput} is 0. - */ - @NativeType("XrResult") - public static int xrPathToString(XrInstance instance, @NativeType("XrPath") long path, @NativeType("uint32_t *") IntBuffer bufferCountOutput, @Nullable @NativeType("char *") ByteBuffer buffer) { - if (CHECKS) { - check(bufferCountOutput, 1); - } - return nxrPathToString(instance, path, remainingSafe(buffer), memAddress(bufferCountOutput), memAddressSafe(buffer)); - } - - // --- [ xrCreateActionSet ] --- - - /** Unsafe version of: {@link #xrCreateActionSet CreateActionSet} */ - public static int nxrCreateActionSet(XrInstance instance, long createInfo, long actionSet) { - long __functionAddress = instance.getCapabilities().xrCreateActionSet; - return callPPPI(instance.address(), createInfo, actionSet, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrPathToString(XrInstance instance, @NativeType("XrPath") long path, @NativeType("uint32_t *") IntBuffer bufferCountOutput, @Nullable @NativeType("char *") ByteBuffer buffer) { + if (CHECKS) { + check(bufferCountOutput, 1); + } + return nxrPathToString(instance, path, remainingSafe(buffer), memAddress(bufferCountOutput), memAddressSafe(buffer)); + } + + // --- [ xrCreateActionSet ] --- + + /** Unsafe version of: {@link #xrCreateActionSet CreateActionSet} */ + public static int nxrCreateActionSet(XrInstance instance, long createInfo, long actionSet) { + long __functionAddress = instance.getCapabilities().xrCreateActionSet; + return callPPPI(instance.address(), createInfo, actionSet, __functionAddress); + } + /** * Creates an XrActionSet. * @@ -3938,17 +3933,17 @@ public static int nxrCreateActionSet(XrInstance instance, long createInfo, long * @param instance a handle to an {@code XrInstance}. * @param createInfo a pointer to a valid {@link XrActionSetCreateInfo} structure that defines the action set being created. * @param actionSet a pointer to an {@code XrActionSet} where the created action set is returned. - */ - @NativeType("XrResult") - public static int xrCreateActionSet(XrInstance instance, @NativeType("XrActionSetCreateInfo const *") XrActionSetCreateInfo createInfo, @NativeType("XrActionSet *") PointerBuffer actionSet) { - if (CHECKS) { - check(actionSet, 1); - } - return nxrCreateActionSet(instance, createInfo.address(), memAddress(actionSet)); - } - - // --- [ xrDestroyActionSet ] --- - + */ + @NativeType("XrResult") + public static int xrCreateActionSet(XrInstance instance, @NativeType("XrActionSetCreateInfo const *") XrActionSetCreateInfo createInfo, @NativeType("XrActionSet *") PointerBuffer actionSet) { + if (CHECKS) { + check(actionSet, 1); + } + return nxrCreateActionSet(instance, createInfo.address(), memAddress(actionSet)); + } + + // --- [ xrDestroyActionSet ] --- + /** * Destroys an XrActionSet. * @@ -3964,7 +3959,7 @@ public static int xrCreateActionSet(XrInstance instance, @NativeType("XrActionSe * *

    Action set handles can be destroyed by calling {@link #xrDestroyActionSet DestroyActionSet}. When an action set handle is destroyed, all handles of actions in that action set are also destroyed.

    * - *

    The implementation must not free underlying resources for the action set while there are other valid handles that refer to those resources. The implementation may release resources for an action set when all of the action spaces for actions in that action set have been destroyed. See Action Spaces Lifetime for details.

    + *

    The implementation must not free underlying resources for the action set while there are other valid handles that refer to those resources. The implementation may release resources for an action set when all of the action spaces for actions in that action set have been destroyed. See Action Spaces Lifetime for details.

    * *

    Resources for all action sets in an instance must be freed when the instance containing those actions sets is destroyed.

    * @@ -3998,21 +3993,21 @@ public static int xrCreateActionSet(XrInstance instance, @NativeType("XrActionSe *

    {@link #xrCreateActionSet CreateActionSet}

    * * @param actionSet the action set to destroy. - */ - @NativeType("XrResult") - public static int xrDestroyActionSet(XrActionSet actionSet) { - long __functionAddress = actionSet.getCapabilities().xrDestroyActionSet; - return callPI(actionSet.address(), __functionAddress); - } - - // --- [ xrCreateAction ] --- - - /** Unsafe version of: {@link #xrCreateAction CreateAction} */ - public static int nxrCreateAction(XrActionSet actionSet, long createInfo, long action) { - long __functionAddress = actionSet.getCapabilities().xrCreateAction; - return callPPPI(actionSet.address(), createInfo, action, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrDestroyActionSet(XrActionSet actionSet) { + long __functionAddress = actionSet.getCapabilities().xrDestroyActionSet; + return callPI(actionSet.address(), __functionAddress); + } + + // --- [ xrCreateAction ] --- + + /** Unsafe version of: {@link #xrCreateAction CreateAction} */ + public static int nxrCreateAction(XrActionSet actionSet, long createInfo, long action) { + long __functionAddress = actionSet.getCapabilities().xrCreateAction; + return callPPPI(actionSet.address(), createInfo, action, __functionAddress); + } + /** * Creates an XrAction. * @@ -4073,17 +4068,17 @@ public static int nxrCreateAction(XrActionSet actionSet, long createInfo, long a * @param actionSet a handle to an {@code XrActionSet}. * @param createInfo a pointer to a valid {@link XrActionCreateInfo} structure that defines the action being created. * @param action a pointer to an {@code XrAction} where the created action is returned. - */ - @NativeType("XrResult") - public static int xrCreateAction(XrActionSet actionSet, @NativeType("XrActionCreateInfo const *") XrActionCreateInfo createInfo, @NativeType("XrAction *") PointerBuffer action) { - if (CHECKS) { - check(action, 1); - } - return nxrCreateAction(actionSet, createInfo.address(), memAddress(action)); - } - - // --- [ xrDestroyAction ] --- - + */ + @NativeType("XrResult") + public static int xrCreateAction(XrActionSet actionSet, @NativeType("XrActionCreateInfo const *") XrActionCreateInfo createInfo, @NativeType("XrAction *") PointerBuffer action) { + if (CHECKS) { + check(action, 1); + } + return nxrCreateAction(actionSet, createInfo.address(), memAddress(action)); + } + + // --- [ xrDestroyAction ] --- + /** * Destroys an XrAction. * @@ -4099,7 +4094,7 @@ public static int xrCreateAction(XrActionSet actionSet, @NativeType("XrActionCre * *

    Action handles can be destroyed by calling {@link #xrDestroyAction DestroyAction}. Handles for actions that are part of an action set are automatically destroyed when the action set’s handle is destroyed.

    * - *

    The implementation must not destroy the underlying resources for an action when {@link #xrDestroyAction DestroyAction} is called. Those resources are still used to make action spaces locatable and when processing action priority in {@link #xrSyncActions SyncActions}. Destroying the action handle removes the application’s access to these resources, but has no other change on actions.

    + *

    The implementation must not destroy the underlying resources for an action when {@link #xrDestroyAction DestroyAction} is called. Those resources are still used to make action spaces locatable and when processing action priority in {@link #xrSyncActions SyncActions}. Destroying the action handle removes the application’s access to these resources, but has no other change on actions.

    * *

    Resources for all actions in an instance must be freed when the instance containing those actions sets is destroyed.

    * @@ -4133,24 +4128,24 @@ public static int xrCreateAction(XrActionSet actionSet, @NativeType("XrActionCre *

    {@link #xrCreateAction CreateAction}

    * * @param action the action to destroy. - */ - @NativeType("XrResult") - public static int xrDestroyAction(XrAction action) { - long __functionAddress = action.getCapabilities().xrDestroyAction; - return callPI(action.address(), __functionAddress); - } - - // --- [ xrSuggestInteractionProfileBindings ] --- - - /** Unsafe version of: {@link #xrSuggestInteractionProfileBindings SuggestInteractionProfileBindings} */ - public static int nxrSuggestInteractionProfileBindings(XrInstance instance, long suggestedBindings) { - long __functionAddress = instance.getCapabilities().xrSuggestInteractionProfileBindings; - if (CHECKS) { - XrInteractionProfileSuggestedBinding.validate(suggestedBindings); - } - return callPPI(instance.address(), suggestedBindings, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrDestroyAction(XrAction action) { + long __functionAddress = action.getCapabilities().xrDestroyAction; + return callPI(action.address(), __functionAddress); + } + + // --- [ xrSuggestInteractionProfileBindings ] --- + + /** Unsafe version of: {@link #xrSuggestInteractionProfileBindings SuggestInteractionProfileBindings} */ + public static int nxrSuggestInteractionProfileBindings(XrInstance instance, long suggestedBindings) { + long __functionAddress = instance.getCapabilities().xrSuggestInteractionProfileBindings; + if (CHECKS) { + XrInteractionProfileSuggestedBinding.validate(suggestedBindings); + } + return callPPI(instance.address(), suggestedBindings, __functionAddress); + } + /** * Sets the application-suggested bindings for the interaction profile. * @@ -4171,7 +4166,7 @@ public static int nxrSuggestInteractionProfileBindings(XrInstance instance, long * *

    If the application successfully calls {@link #xrSuggestInteractionProfileBindings SuggestInteractionProfileBindings} more than once for an interaction profile, the runtime must discard the previous suggested bindings and replace them with the new suggested bindings for that profile.

    * - *

    If the interaction profile path does not follow the structure defined in Interaction Profiles or suggested bindings contain paths that do not follow the format defined in Device input subpaths, the runtime must return {@link #XR_ERROR_PATH_UNSUPPORTED ERROR_PATH_UNSUPPORTED}. If the interaction profile or input source for any of the suggested bindings does not exist in the allowlist defined in Interaction Profile Paths, the runtime must return {@link #XR_ERROR_PATH_UNSUPPORTED ERROR_PATH_UNSUPPORTED}. A runtime must accept every valid binding in the allowlist though it is free to ignore any of them.

    + *

    If the interaction profile path does not follow the structure defined in Interaction Profiles or suggested bindings contain paths that do not follow the format defined in Device input subpaths, the runtime must return {@link #XR_ERROR_PATH_UNSUPPORTED ERROR_PATH_UNSUPPORTED}. If the interaction profile or input source for any of the suggested bindings does not exist in the allowlist defined in Interaction Profile Paths, the runtime must return {@link #XR_ERROR_PATH_UNSUPPORTED ERROR_PATH_UNSUPPORTED}. A runtime must accept every valid binding in the allowlist though it is free to ignore any of them.

    * *

    If the action set for any action referenced in the {@code suggestedBindings} parameter has been included in a call to {@link #xrAttachSessionActionSets AttachSessionActionSets}, the implementation must return {@link #XR_ERROR_ACTIONSETS_ALREADY_ATTACHED ERROR_ACTIONSETS_ALREADY_ATTACHED}.

    * @@ -4207,23 +4202,23 @@ public static int nxrSuggestInteractionProfileBindings(XrInstance instance, long * * @param instance the {@code XrInstance} for which the application would like to set suggested bindings * @param suggestedBindings the {@link XrInteractionProfileSuggestedBinding} that the application would like to set - */ - @NativeType("XrResult") - public static int xrSuggestInteractionProfileBindings(XrInstance instance, @NativeType("XrInteractionProfileSuggestedBinding const *") XrInteractionProfileSuggestedBinding suggestedBindings) { - return nxrSuggestInteractionProfileBindings(instance, suggestedBindings.address()); - } - - // --- [ xrAttachSessionActionSets ] --- - - /** Unsafe version of: {@link #xrAttachSessionActionSets AttachSessionActionSets} */ - public static int nxrAttachSessionActionSets(XrSession session, long attachInfo) { - long __functionAddress = session.getCapabilities().xrAttachSessionActionSets; - if (CHECKS) { - XrSessionActionSetsAttachInfo.validate(attachInfo); - } - return callPPI(session.address(), attachInfo, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrSuggestInteractionProfileBindings(XrInstance instance, @NativeType("XrInteractionProfileSuggestedBinding const *") XrInteractionProfileSuggestedBinding suggestedBindings) { + return nxrSuggestInteractionProfileBindings(instance, suggestedBindings.address()); + } + + // --- [ xrAttachSessionActionSets ] --- + + /** Unsafe version of: {@link #xrAttachSessionActionSets AttachSessionActionSets} */ + public static int nxrAttachSessionActionSets(XrSession session, long attachInfo) { + long __functionAddress = session.getCapabilities().xrAttachSessionActionSets; + if (CHECKS) { + XrSessionActionSetsAttachInfo.validate(attachInfo); + } + return callPPI(session.address(), attachInfo, __functionAddress); + } + /** * Attaches action sets to a given session. * @@ -4278,20 +4273,20 @@ public static int nxrAttachSessionActionSets(XrSession session, long attachInfo) * * @param session the {@code XrSession} to attach the action sets to. * @param attachInfo the {@link XrSessionActionSetsAttachInfo} to provide information to attach action sets to the session. - */ - @NativeType("XrResult") - public static int xrAttachSessionActionSets(XrSession session, @NativeType("XrSessionActionSetsAttachInfo const *") XrSessionActionSetsAttachInfo attachInfo) { - return nxrAttachSessionActionSets(session, attachInfo.address()); - } - - // --- [ xrGetCurrentInteractionProfile ] --- - - /** Unsafe version of: {@link #xrGetCurrentInteractionProfile GetCurrentInteractionProfile} */ - public static int nxrGetCurrentInteractionProfile(XrSession session, long topLevelUserPath, long interactionProfile) { - long __functionAddress = session.getCapabilities().xrGetCurrentInteractionProfile; - return callPJPI(session.address(), topLevelUserPath, interactionProfile, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrAttachSessionActionSets(XrSession session, @NativeType("XrSessionActionSetsAttachInfo const *") XrSessionActionSetsAttachInfo attachInfo) { + return nxrAttachSessionActionSets(session, attachInfo.address()); + } + + // --- [ xrGetCurrentInteractionProfile ] --- + + /** Unsafe version of: {@link #xrGetCurrentInteractionProfile GetCurrentInteractionProfile} */ + public static int nxrGetCurrentInteractionProfile(XrSession session, long topLevelUserPath, long interactionProfile) { + long __functionAddress = session.getCapabilities().xrGetCurrentInteractionProfile; + return callPJPI(session.address(), topLevelUserPath, interactionProfile, __functionAddress); + } + /** * Gets the current interaction profile for a top level user paths. * @@ -4311,7 +4306,7 @@ public static int nxrGetCurrentInteractionProfile(XrSession session, long topLev * *

    The runtime must return only interaction profiles for which the application has provided bindings with {@link #xrSuggestInteractionProfileBindings SuggestInteractionProfileBindings} or {@link #XR_NULL_PATH NULL_PATH}. The runtime may return interaction profiles that do not represent physically present hardware, for example if the runtime is using a known interaction profile to bind to hardware that the application is not aware of. The runtime may return the last-known interaction profile in the event that no controllers are active.

    * - *

    If {@link #xrAttachSessionActionSets AttachSessionActionSets} has not yet been called for the {@code session}, the runtime must return {@link #XR_ERROR_ACTIONSET_NOT_ATTACHED ERROR_ACTIONSET_NOT_ATTACHED}. If {@code topLevelUserPath} is not one of the device input subpaths described in section /user paths, the runtime must return {@link #XR_ERROR_PATH_UNSUPPORTED ERROR_PATH_UNSUPPORTED}.

    + *

    If {@link #xrAttachSessionActionSets AttachSessionActionSets} has not yet been called for the {@code session}, the runtime must return {@link #XR_ERROR_ACTIONSET_NOT_ATTACHED ERROR_ACTIONSET_NOT_ATTACHED}. If {@code topLevelUserPath} is not one of the device input subpaths described in section /user paths, the runtime must return {@link #XR_ERROR_PATH_UNSUPPORTED ERROR_PATH_UNSUPPORTED}.

    * *
    Valid Usage (Implicit)
    * @@ -4348,23 +4343,23 @@ public static int nxrGetCurrentInteractionProfile(XrSession session, long topLev * @param session the {@code XrSession} for which the application would like to retrieve the current interaction profile. * @param topLevelUserPath the top level user path the application would like to retrieve the interaction profile for. * @param interactionProfile a pointer to an {@link XrInteractionProfileState} structure to receive the current interaction profile. - */ - @NativeType("XrResult") - public static int xrGetCurrentInteractionProfile(XrSession session, @NativeType("XrPath") long topLevelUserPath, @NativeType("XrInteractionProfileState *") XrInteractionProfileState interactionProfile) { - return nxrGetCurrentInteractionProfile(session, topLevelUserPath, interactionProfile.address()); - } - - // --- [ xrGetActionStateBoolean ] --- - - /** Unsafe version of: {@link #xrGetActionStateBoolean GetActionStateBoolean} */ - public static int nxrGetActionStateBoolean(XrSession session, long getInfo, long state) { - long __functionAddress = session.getCapabilities().xrGetActionStateBoolean; - if (CHECKS) { - XrActionStateGetInfo.validate(getInfo); - } - return callPPPI(session.address(), getInfo, state, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrGetCurrentInteractionProfile(XrSession session, @NativeType("XrPath") long topLevelUserPath, @NativeType("XrInteractionProfileState *") XrInteractionProfileState interactionProfile) { + return nxrGetCurrentInteractionProfile(session, topLevelUserPath, interactionProfile.address()); + } + + // --- [ xrGetActionStateBoolean ] --- + + /** Unsafe version of: {@link #xrGetActionStateBoolean GetActionStateBoolean} */ + public static int nxrGetActionStateBoolean(XrSession session, long getInfo, long state) { + long __functionAddress = session.getCapabilities().xrGetActionStateBoolean; + if (CHECKS) { + XrActionStateGetInfo.validate(getInfo); + } + return callPPPI(session.address(), getInfo, state, __functionAddress); + } + /** * Gets boolean action state. * @@ -4415,23 +4410,23 @@ public static int nxrGetActionStateBoolean(XrSession session, long getInfo, long * @param session the {@code XrSession} to query. * @param getInfo a pointer to {@link XrActionStateGetInfo} to provide action and subaction paths information. * @param state a pointer to a valid {@link XrActionStateBoolean} into which the state will be placed. - */ - @NativeType("XrResult") - public static int xrGetActionStateBoolean(XrSession session, @NativeType("XrActionStateGetInfo const *") XrActionStateGetInfo getInfo, @NativeType("XrActionStateBoolean *") XrActionStateBoolean state) { - return nxrGetActionStateBoolean(session, getInfo.address(), state.address()); - } - - // --- [ xrGetActionStateFloat ] --- - - /** Unsafe version of: {@link #xrGetActionStateFloat GetActionStateFloat} */ - public static int nxrGetActionStateFloat(XrSession session, long getInfo, long state) { - long __functionAddress = session.getCapabilities().xrGetActionStateFloat; - if (CHECKS) { - XrActionStateGetInfo.validate(getInfo); - } - return callPPPI(session.address(), getInfo, state, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrGetActionStateBoolean(XrSession session, @NativeType("XrActionStateGetInfo const *") XrActionStateGetInfo getInfo, @NativeType("XrActionStateBoolean *") XrActionStateBoolean state) { + return nxrGetActionStateBoolean(session, getInfo.address(), state.address()); + } + + // --- [ xrGetActionStateFloat ] --- + + /** Unsafe version of: {@link #xrGetActionStateFloat GetActionStateFloat} */ + public static int nxrGetActionStateFloat(XrSession session, long getInfo, long state) { + long __functionAddress = session.getCapabilities().xrGetActionStateFloat; + if (CHECKS) { + XrActionStateGetInfo.validate(getInfo); + } + return callPPPI(session.address(), getInfo, state, __functionAddress); + } + /** * Gets a floating point action state. * @@ -4482,23 +4477,23 @@ public static int nxrGetActionStateFloat(XrSession session, long getInfo, long s * @param session the {@code XrSession} to query. * @param getInfo a pointer to {@link XrActionStateGetInfo} to provide action and subaction paths information. * @param state a pointer to a valid {@link XrActionStateFloat} into which the state will be placed. - */ - @NativeType("XrResult") - public static int xrGetActionStateFloat(XrSession session, @NativeType("XrActionStateGetInfo const *") XrActionStateGetInfo getInfo, @NativeType("XrActionStateFloat *") XrActionStateFloat state) { - return nxrGetActionStateFloat(session, getInfo.address(), state.address()); - } - - // --- [ xrGetActionStateVector2f ] --- - - /** Unsafe version of: {@link #xrGetActionStateVector2f GetActionStateVector2f} */ - public static int nxrGetActionStateVector2f(XrSession session, long getInfo, long state) { - long __functionAddress = session.getCapabilities().xrGetActionStateVector2f; - if (CHECKS) { - XrActionStateGetInfo.validate(getInfo); - } - return callPPPI(session.address(), getInfo, state, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrGetActionStateFloat(XrSession session, @NativeType("XrActionStateGetInfo const *") XrActionStateGetInfo getInfo, @NativeType("XrActionStateFloat *") XrActionStateFloat state) { + return nxrGetActionStateFloat(session, getInfo.address(), state.address()); + } + + // --- [ xrGetActionStateVector2f ] --- + + /** Unsafe version of: {@link #xrGetActionStateVector2f GetActionStateVector2f} */ + public static int nxrGetActionStateVector2f(XrSession session, long getInfo, long state) { + long __functionAddress = session.getCapabilities().xrGetActionStateVector2f; + if (CHECKS) { + XrActionStateGetInfo.validate(getInfo); + } + return callPPPI(session.address(), getInfo, state, __functionAddress); + } + /** * Gets 2D float vector action state. * @@ -4549,23 +4544,23 @@ public static int nxrGetActionStateVector2f(XrSession session, long getInfo, lon * @param session the {@code XrSession} to query. * @param getInfo a pointer to {@link XrActionStateGetInfo} to provide action and subaction paths information. * @param state a pointer to a valid {@link XrActionStateVector2f} into which the state will be placed. - */ - @NativeType("XrResult") - public static int xrGetActionStateVector2f(XrSession session, @NativeType("XrActionStateGetInfo const *") XrActionStateGetInfo getInfo, @NativeType("XrActionStateVector2f *") XrActionStateVector2f state) { - return nxrGetActionStateVector2f(session, getInfo.address(), state.address()); - } - - // --- [ xrGetActionStatePose ] --- - - /** Unsafe version of: {@link #xrGetActionStatePose GetActionStatePose} */ - public static int nxrGetActionStatePose(XrSession session, long getInfo, long state) { - long __functionAddress = session.getCapabilities().xrGetActionStatePose; - if (CHECKS) { - XrActionStateGetInfo.validate(getInfo); - } - return callPPPI(session.address(), getInfo, state, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrGetActionStateVector2f(XrSession session, @NativeType("XrActionStateGetInfo const *") XrActionStateGetInfo getInfo, @NativeType("XrActionStateVector2f *") XrActionStateVector2f state) { + return nxrGetActionStateVector2f(session, getInfo.address(), state.address()); + } + + // --- [ xrGetActionStatePose ] --- + + /** Unsafe version of: {@link #xrGetActionStatePose GetActionStatePose} */ + public static int nxrGetActionStatePose(XrSession session, long getInfo, long state) { + long __functionAddress = session.getCapabilities().xrGetActionStatePose; + if (CHECKS) { + XrActionStateGetInfo.validate(getInfo); + } + return callPPPI(session.address(), getInfo, state, __functionAddress); + } + /** * Gets metadata from a pose action. * @@ -4620,20 +4615,20 @@ public static int nxrGetActionStatePose(XrSession session, long getInfo, long st * @param session the {@code XrSession} to query. * @param getInfo a pointer to {@link XrActionStateGetInfo} to provide action and subaction paths information. * @param state a pointer to a valid {@link XrActionStatePose} into which the state will be placed. - */ - @NativeType("XrResult") - public static int xrGetActionStatePose(XrSession session, @NativeType("XrActionStateGetInfo const *") XrActionStateGetInfo getInfo, @NativeType("XrActionStatePose *") XrActionStatePose state) { - return nxrGetActionStatePose(session, getInfo.address(), state.address()); - } - - // --- [ xrSyncActions ] --- - - /** Unsafe version of: {@link #xrSyncActions SyncActions} */ - public static int nxrSyncActions(XrSession session, long syncInfo) { - long __functionAddress = session.getCapabilities().xrSyncActions; - return callPPI(session.address(), syncInfo, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrGetActionStatePose(XrSession session, @NativeType("XrActionStateGetInfo const *") XrActionStateGetInfo getInfo, @NativeType("XrActionStatePose *") XrActionStatePose state) { + return nxrGetActionStatePose(session, getInfo.address(), state.address()); + } + + // --- [ xrSyncActions ] --- + + /** Unsafe version of: {@link #xrSyncActions SyncActions} */ + public static int nxrSyncActions(XrSession session, long syncInfo) { + long __functionAddress = session.getCapabilities().xrSyncActions; + return callPPI(session.address(), syncInfo, __functionAddress); + } + /** * Updates the current state of input actions. * @@ -4687,27 +4682,27 @@ public static int nxrSyncActions(XrSession session, long syncInfo) { * * @param session a handle to the {@code XrSession} that all provided action set handles belong to. * @param syncInfo an {@link XrActionsSyncInfo} providing information to synchronize action states. - */ - @NativeType("XrResult") - public static int xrSyncActions(XrSession session, @NativeType("XrActionsSyncInfo const *") XrActionsSyncInfo syncInfo) { - return nxrSyncActions(session, syncInfo.address()); - } - - // --- [ xrEnumerateBoundSourcesForAction ] --- - + */ + @NativeType("XrResult") + public static int xrSyncActions(XrSession session, @NativeType("XrActionsSyncInfo const *") XrActionsSyncInfo syncInfo) { + return nxrSyncActions(session, syncInfo.address()); + } + + // --- [ xrEnumerateBoundSourcesForAction ] --- + /** * Unsafe version of: {@link #xrEnumerateBoundSourcesForAction EnumerateBoundSourcesForAction} * * @param sourceCapacityInput the capacity of the array, or 0 to indicate a request to retrieve the required capacity. - */ - public static int nxrEnumerateBoundSourcesForAction(XrSession session, long enumerateInfo, int sourceCapacityInput, long sourceCountOutput, long sources) { - long __functionAddress = session.getCapabilities().xrEnumerateBoundSourcesForAction; - if (CHECKS) { - XrBoundSourcesForActionEnumerateInfo.validate(enumerateInfo); - } - return callPPPPI(session.address(), enumerateInfo, sourceCapacityInput, sourceCountOutput, sources, __functionAddress); - } - + */ + public static int nxrEnumerateBoundSourcesForAction(XrSession session, long enumerateInfo, int sourceCapacityInput, long sourceCountOutput, long sources) { + long __functionAddress = session.getCapabilities().xrEnumerateBoundSourcesForAction; + if (CHECKS) { + XrBoundSourcesForActionEnumerateInfo.validate(enumerateInfo); + } + return callPPPPI(session.address(), enumerateInfo, sourceCapacityInput, sourceCountOutput, sources, __functionAddress); + } + /** * Queries the bound input sources for an action. * @@ -4774,27 +4769,27 @@ public static int nxrEnumerateBoundSourcesForAction(XrSession session, long enum * @param enumerateInfo an {@link XrBoundSourcesForActionEnumerateInfo} providing the query information. * @param sourceCountOutput a pointer to the count of {@code sources}, or a pointer to the required capacity in the case that {@code sourceCapacityInput} is insufficient. * @param sources a pointer to an application-allocated array that will be filled with the {@code XrPath} values for all bound sources. It can be {@code NULL} if {@code sourceCapacityInput} is 0. - */ - @NativeType("XrResult") - public static int xrEnumerateBoundSourcesForAction(XrSession session, @NativeType("XrBoundSourcesForActionEnumerateInfo const *") XrBoundSourcesForActionEnumerateInfo enumerateInfo, @NativeType("uint32_t *") IntBuffer sourceCountOutput, @Nullable @NativeType("XrPath *") LongBuffer sources) { - if (CHECKS) { - check(sourceCountOutput, 1); - } - return nxrEnumerateBoundSourcesForAction(session, enumerateInfo.address(), remainingSafe(sources), memAddress(sourceCountOutput), memAddressSafe(sources)); - } - - // --- [ xrGetInputSourceLocalizedName ] --- - + */ + @NativeType("XrResult") + public static int xrEnumerateBoundSourcesForAction(XrSession session, @NativeType("XrBoundSourcesForActionEnumerateInfo const *") XrBoundSourcesForActionEnumerateInfo enumerateInfo, @NativeType("uint32_t *") IntBuffer sourceCountOutput, @Nullable @NativeType("XrPath *") LongBuffer sources) { + if (CHECKS) { + check(sourceCountOutput, 1); + } + return nxrEnumerateBoundSourcesForAction(session, enumerateInfo.address(), remainingSafe(sources), memAddress(sourceCountOutput), memAddressSafe(sources)); + } + + // --- [ xrGetInputSourceLocalizedName ] --- + /** * Unsafe version of: {@link #xrGetInputSourceLocalizedName GetInputSourceLocalizedName} * * @param bufferCapacityInput the capacity of the {@code buffer}, or 0 to indicate a request to retrieve the required capacity. - */ - public static int nxrGetInputSourceLocalizedName(XrSession session, long getInfo, int bufferCapacityInput, long bufferCountOutput, long buffer) { - long __functionAddress = session.getCapabilities().xrGetInputSourceLocalizedName; - return callPPPPI(session.address(), getInfo, bufferCapacityInput, bufferCountOutput, buffer, __functionAddress); - } - + */ + public static int nxrGetInputSourceLocalizedName(XrSession session, long getInfo, int bufferCapacityInput, long bufferCountOutput, long buffer) { + long __functionAddress = session.getCapabilities().xrGetInputSourceLocalizedName; + return callPPPPI(session.address(), getInfo, bufferCapacityInput, bufferCountOutput, buffer, __functionAddress); + } + /** * Gets a localized source name. * @@ -4855,26 +4850,26 @@ public static int nxrGetInputSourceLocalizedName(XrSession session, long getInfo * @param getInfo an {@link XrInputSourceLocalizedNameGetInfo} providing the query information. * @param bufferCountOutput a pointer to the count of name characters written to {@code buffer} (including the terminating {@code \0}), or a pointer to the required capacity in the case that {@code bufferCapacityInput} is insufficient. * @param buffer a pointer to an application-allocated buffer that will be filled with the bound source name. It can be {@code NULL} if {@code bufferCapacityInput} is 0. - */ - @NativeType("XrResult") - public static int xrGetInputSourceLocalizedName(XrSession session, @NativeType("XrInputSourceLocalizedNameGetInfo const *") XrInputSourceLocalizedNameGetInfo getInfo, @NativeType("uint32_t *") IntBuffer bufferCountOutput, @Nullable @NativeType("char *") ByteBuffer buffer) { - if (CHECKS) { - check(bufferCountOutput, 1); - } - return nxrGetInputSourceLocalizedName(session, getInfo.address(), remainingSafe(buffer), memAddress(bufferCountOutput), memAddressSafe(buffer)); - } - - // --- [ xrApplyHapticFeedback ] --- - - /** Unsafe version of: {@link #xrApplyHapticFeedback ApplyHapticFeedback} */ - public static int nxrApplyHapticFeedback(XrSession session, long hapticActionInfo, long hapticFeedback) { - long __functionAddress = session.getCapabilities().xrApplyHapticFeedback; - if (CHECKS) { - XrHapticActionInfo.validate(hapticActionInfo); - } - return callPPPI(session.address(), hapticActionInfo, hapticFeedback, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrGetInputSourceLocalizedName(XrSession session, @NativeType("XrInputSourceLocalizedNameGetInfo const *") XrInputSourceLocalizedNameGetInfo getInfo, @NativeType("uint32_t *") IntBuffer bufferCountOutput, @Nullable @NativeType("char *") ByteBuffer buffer) { + if (CHECKS) { + check(bufferCountOutput, 1); + } + return nxrGetInputSourceLocalizedName(session, getInfo.address(), remainingSafe(buffer), memAddress(bufferCountOutput), memAddressSafe(buffer)); + } + + // --- [ xrApplyHapticFeedback ] --- + + /** Unsafe version of: {@link #xrApplyHapticFeedback ApplyHapticFeedback} */ + public static int nxrApplyHapticFeedback(XrSession session, long hapticActionInfo, long hapticFeedback) { + long __functionAddress = session.getCapabilities().xrApplyHapticFeedback; + if (CHECKS) { + XrHapticActionInfo.validate(hapticActionInfo); + } + return callPPPI(session.address(), hapticActionInfo, hapticFeedback, __functionAddress); + } + /** * Apply haptic feedback. * @@ -4934,23 +4929,23 @@ public static int nxrApplyHapticFeedback(XrSession session, long hapticActionInf * @param session the {@code XrSession} to start outputting to. * @param hapticActionInfo a pointer to {@link XrHapticActionInfo} to provide action and subaction paths information. * @param hapticFeedback a pointer to a haptic event structure which starts with an {@link XrHapticBaseHeader}. - */ - @NativeType("XrResult") - public static int xrApplyHapticFeedback(XrSession session, @NativeType("XrHapticActionInfo const *") XrHapticActionInfo hapticActionInfo, @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader hapticFeedback) { - return nxrApplyHapticFeedback(session, hapticActionInfo.address(), hapticFeedback.address()); - } - - // --- [ xrStopHapticFeedback ] --- - - /** Unsafe version of: {@link #xrStopHapticFeedback StopHapticFeedback} */ - public static int nxrStopHapticFeedback(XrSession session, long hapticActionInfo) { - long __functionAddress = session.getCapabilities().xrStopHapticFeedback; - if (CHECKS) { - XrHapticActionInfo.validate(hapticActionInfo); - } - return callPPI(session.address(), hapticActionInfo, __functionAddress); - } - + */ + @NativeType("XrResult") + public static int xrApplyHapticFeedback(XrSession session, @NativeType("XrHapticActionInfo const *") XrHapticActionInfo hapticActionInfo, @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader hapticFeedback) { + return nxrApplyHapticFeedback(session, hapticActionInfo.address(), hapticFeedback.address()); + } + + // --- [ xrStopHapticFeedback ] --- + + /** Unsafe version of: {@link #xrStopHapticFeedback StopHapticFeedback} */ + public static int nxrStopHapticFeedback(XrSession session, long hapticActionInfo) { + long __functionAddress = session.getCapabilities().xrStopHapticFeedback; + if (CHECKS) { + XrHapticActionInfo.validate(hapticActionInfo); + } + return callPPI(session.address(), hapticActionInfo, __functionAddress); + } + /** * Stop haptic feedback. * @@ -5005,14 +5000,14 @@ public static int nxrStopHapticFeedback(XrSession session, long hapticActionInfo * * @param session the {@code XrSession} to stop outputting to. * @param hapticActionInfo a pointer to an {@link XrHapticActionInfo} to provide action and subaction path information. - */ - @NativeType("XrResult") - public static int xrStopHapticFeedback(XrSession session, @NativeType("XrHapticActionInfo const *") XrHapticActionInfo hapticActionInfo) { - return nxrStopHapticFeedback(session, hapticActionInfo.address()); - } - - // --- [ XR_MAKE_VERSION ] --- - + */ + @NativeType("XrResult") + public static int xrStopHapticFeedback(XrSession session, @NativeType("XrHapticActionInfo const *") XrHapticActionInfo hapticActionInfo) { + return nxrStopHapticFeedback(session, hapticActionInfo.address()); + } + + // --- [ XR_MAKE_VERSION ] --- + /** * Packs a three-component version number into a packed version number integer. * @@ -5021,67 +5016,67 @@ public static int xrStopHapticFeedback(XrSession session, @NativeType("XrHapticA * @param major the major version number, packed into the most-significant 16 bits * @param minor the minor version number, packed into the second-most-significant group of 16 bits * @param patch the patch version number, in the least-significant 32 bits - */ - @NativeType("uint64_t") - public static long XR_MAKE_VERSION(@NativeType("uint16_t") int major, @NativeType("uint16_t") int minor, @NativeType("uint32_t") int patch) { - return ((major & 0xFFFFL) << 48) | ((minor & 0xFFFFL) << 32) | (patch & 0xFFFF_FFFFL); - } - - // --- [ XR_VERSION_MAJOR ] --- - + */ + @NativeType("uint64_t") + public static long XR_MAKE_VERSION(@NativeType("uint16_t") int major, @NativeType("uint16_t") int minor, @NativeType("uint32_t") int patch) { + return ((major & 0xFFFFL) << 48) | ((minor & 0xFFFFL) << 32) | (patch & 0xFFFF_FFFFL); + } + + // --- [ XR_VERSION_MAJOR ] --- + /** * Extracts the major version number from a packed version number. * * @param version a packed version number - */ - @NativeType("uint16_t") - public static short XR_VERSION_MAJOR(@NativeType("uint64_t") long version) { - return (short)((version >> 48) & 0xFFFFL); - } - - // --- [ XR_VERSION_MINOR ] --- - + */ + @NativeType("uint16_t") + public static short XR_VERSION_MAJOR(@NativeType("uint64_t") long version) { + return (short)((version >> 48) & 0xFFFFL); + } + + // --- [ XR_VERSION_MINOR ] --- + /** * Extracts the minor version number from a packed version number. * * @param version a packed version number - */ - @NativeType("uint16_t") - public static short XR_VERSION_MINOR(@NativeType("uint64_t") long version) { - return (short)((version >> 32) & 0xFFFFL); - } - - // --- [ XR_VERSION_PATCH ] --- - + */ + @NativeType("uint16_t") + public static short XR_VERSION_MINOR(@NativeType("uint64_t") long version) { + return (short)((version >> 32) & 0xFFFFL); + } + + // --- [ XR_VERSION_PATCH ] --- + /** * Extracts the patch version number from a packed version number. * * @param version a packed version number - */ - @NativeType("uint32_t") - public static int XR_VERSION_PATCH(@NativeType("uint64_t") long version) { - return (int)(version & 0xFFFF_FFFFL); - } - - // --- [ XR_SUCCEEDED ] --- - - @NativeType("bool") - public static boolean XR_SUCCEEDED(int result) { - return result >= 0; - } - - // --- [ XR_UNQUALIFIED_SUCCESS ] --- - - @NativeType("bool") - public static boolean XR_UNQUALIFIED_SUCCESS(int result) { - return result == 0; - } - - // --- [ XR_FAILED ] --- - - @NativeType("bool") - public static boolean XR_FAILED(int result) { - return result < 0; - } + */ + @NativeType("uint32_t") + public static int XR_VERSION_PATCH(@NativeType("uint64_t") long version) { + return (int)(version & 0xFFFF_FFFFL); + } + + // --- [ XR_SUCCEEDED ] --- + + @NativeType("bool") + public static boolean XR_SUCCEEDED(int result) { + return result >= 0; + } + + // --- [ XR_UNQUALIFIED_SUCCESS ] --- + + @NativeType("bool") + public static boolean XR_UNQUALIFIED_SUCCESS(int result) { + return result == 0; + } + + // --- [ XR_FAILED ] --- + + @NativeType("bool") + public static boolean XR_FAILED(int result) { + return result < 0; + } } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XRCapabilities.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XRCapabilities.java index 6894e85cbb..60c17e1a1a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XRCapabilities.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XRCapabilities.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -import org.lwjgl.system.*; -import java.util.Set; - -import static org.lwjgl.system.Checks.*; - -/** Defines the capabilities of an OpenXR {@code XrInstance}. */ -@SuppressWarnings("SimplifiableIfStatement") -public class XRCapabilities { - - // XR10 - public final long + +import org.lwjgl.system.*; +import java.util.Set; + +import static org.lwjgl.system.Checks.*; + +/** Defines the capabilities of an OpenXR {@code XrInstance}. */ +@SuppressWarnings("SimplifiableIfStatement") +public class XRCapabilities { + + // XR10 + public final long xrDestroyInstance, xrGetInstanceProperties, xrPollEvent, @@ -66,103 +66,94 @@ public class XRCapabilities { xrEnumerateBoundSourcesForAction, xrGetInputSourceLocalizedName, xrApplyHapticFeedback, - xrStopHapticFeedback; + xrStopHapticFeedback; - // ALMALENCE_digital_lens_control - public final long - xrSetDigitalLensControlALMALENCE; + // ALMALENCE_digital_lens_control + public final long + xrSetDigitalLensControlALMALENCE; - // EXT_conformance_automation - public final long + // EXT_conformance_automation + public final long xrSetInputDeviceActiveEXT, xrSetInputDeviceStateBoolEXT, xrSetInputDeviceStateFloatEXT, xrSetInputDeviceStateVector2fEXT, - xrSetInputDeviceLocationEXT; + xrSetInputDeviceLocationEXT; - // EXT_debug_utils - public final long + // EXT_debug_utils + public final long xrSetDebugUtilsObjectNameEXT, xrCreateDebugUtilsMessengerEXT, xrDestroyDebugUtilsMessengerEXT, xrSubmitDebugUtilsMessageEXT, xrSessionBeginDebugUtilsLabelRegionEXT, xrSessionEndDebugUtilsLabelRegionEXT, - xrSessionInsertDebugUtilsLabelEXT; + xrSessionInsertDebugUtilsLabelEXT; - // EXT_hand_tracking - public final long + // EXT_hand_tracking + public final long xrCreateHandTrackerEXT, xrDestroyHandTrackerEXT, - xrLocateHandJointsEXT; - - // EXT_performance_settings - public final long - xrPerfSettingsSetPerformanceLevelEXT; - - // EXT_plane_detection - public final long - xrCreatePlaneDetectorEXT, - xrDestroyPlaneDetectorEXT, - xrBeginPlaneDetectionEXT, - xrGetPlaneDetectionStateEXT, - xrGetPlaneDetectionsEXT, - xrGetPlanePolygonBufferEXT; - - // EXT_thermal_query - public final long - xrThermalGetTemperatureTrendEXT; - - // FB_body_tracking - public final long + xrLocateHandJointsEXT; + + // EXT_performance_settings + public final long + xrPerfSettingsSetPerformanceLevelEXT; + + // EXT_thermal_query + public final long + xrThermalGetTemperatureTrendEXT; + + // FB_body_tracking + public final long xrCreateBodyTrackerFB, xrDestroyBodyTrackerFB, xrLocateBodyJointsFB, - xrGetBodySkeletonFB; + xrGetBodySkeletonFB; - // FB_color_space - public final long + // FB_color_space + public final long xrEnumerateColorSpacesFB, - xrSetColorSpaceFB; + xrSetColorSpaceFB; - // FB_display_refresh_rate - public final long + // FB_display_refresh_rate + public final long xrEnumerateDisplayRefreshRatesFB, xrGetDisplayRefreshRateFB, - xrRequestDisplayRefreshRateFB; + xrRequestDisplayRefreshRateFB; - // FB_eye_tracking_social - public final long + // FB_eye_tracking_social + public final long xrCreateEyeTrackerFB, xrDestroyEyeTrackerFB, - xrGetEyeGazesFB; + xrGetEyeGazesFB; - // FB_face_tracking - public final long + // FB_face_tracking + public final long xrCreateFaceTrackerFB, xrDestroyFaceTrackerFB, - xrGetFaceExpressionWeightsFB; + xrGetFaceExpressionWeightsFB; - // FB_foveation - public final long + // FB_foveation + public final long xrCreateFoveationProfileFB, - xrDestroyFoveationProfileFB; + xrDestroyFoveationProfileFB; - // FB_hand_tracking_mesh - public final long - xrGetHandMeshFB; + // FB_hand_tracking_mesh + public final long + xrGetHandMeshFB; - // FB_haptic_pcm - public final long - xrGetDeviceSampleRateFB; + // FB_haptic_pcm + public final long + xrGetDeviceSampleRateFB; - // FB_keyboard_tracking - public final long + // FB_keyboard_tracking + public final long xrQuerySystemTrackedKeyboardFB, - xrCreateKeyboardSpaceFB; + xrCreateKeyboardSpaceFB; - // FB_passthrough - public final long + // FB_passthrough + public final long xrCreatePassthroughFB, xrDestroyPassthroughFB, xrPassthroughStartFB, @@ -174,73 +165,73 @@ public class XRCapabilities { xrPassthroughLayerSetStyleFB, xrCreateGeometryInstanceFB, xrDestroyGeometryInstanceFB, - xrGeometryInstanceSetTransformFB; + xrGeometryInstanceSetTransformFB; - // FB_passthrough_keyboard_hands - public final long - xrPassthroughLayerSetKeyboardHandsIntensityFB; + // FB_passthrough_keyboard_hands + public final long + xrPassthroughLayerSetKeyboardHandsIntensityFB; - // FB_render_model - public final long + // FB_render_model + public final long xrEnumerateRenderModelPathsFB, xrGetRenderModelPropertiesFB, - xrLoadRenderModelFB; + xrLoadRenderModelFB; - // FB_scene - public final long + // FB_scene + public final long xrGetSpaceBoundingBox2DFB, xrGetSpaceBoundingBox3DFB, xrGetSpaceSemanticLabelsFB, xrGetSpaceBoundary2DFB, - xrGetSpaceRoomLayoutFB; + xrGetSpaceRoomLayoutFB; - // FB_scene_capture - public final long - xrRequestSceneCaptureFB; + // FB_scene_capture + public final long + xrRequestSceneCaptureFB; - // FB_spatial_entity - public final long + // FB_spatial_entity + public final long xrCreateSpatialAnchorFB, xrGetSpaceUuidFB, xrEnumerateSpaceSupportedComponentsFB, xrSetSpaceComponentStatusFB, - xrGetSpaceComponentStatusFB; + xrGetSpaceComponentStatusFB; - // FB_spatial_entity_container - public final long - xrGetSpaceContainerFB; + // FB_spatial_entity_container + public final long + xrGetSpaceContainerFB; - // FB_spatial_entity_query - public final long + // FB_spatial_entity_query + public final long xrQuerySpacesFB, - xrRetrieveSpaceQueryResultsFB; + xrRetrieveSpaceQueryResultsFB; - // FB_spatial_entity_sharing - public final long - xrShareSpacesFB; + // FB_spatial_entity_sharing + public final long + xrShareSpacesFB; - // FB_spatial_entity_storage - public final long + // FB_spatial_entity_storage + public final long xrSaveSpaceFB, - xrEraseSpaceFB; + xrEraseSpaceFB; - // FB_spatial_entity_storage_batch - public final long - xrSaveSpaceListFB; + // FB_spatial_entity_storage_batch + public final long + xrSaveSpaceListFB; - // FB_spatial_entity_user - public final long + // FB_spatial_entity_user + public final long xrCreateSpaceUserFB, xrGetSpaceUserIdFB, - xrDestroySpaceUserFB; + xrDestroySpaceUserFB; - // FB_swapchain_update_state - public final long + // FB_swapchain_update_state + public final long xrUpdateSwapchainFB, - xrGetSwapchainStateFB; + xrGetSwapchainStateFB; - // FB_triangle_mesh - public final long + // FB_triangle_mesh + public final long xrCreateTriangleMeshFB, xrDestroyTriangleMeshFB, xrTriangleMeshGetVertexBufferFB, @@ -248,125 +239,105 @@ public class XRCapabilities { xrTriangleMeshBeginUpdateFB, xrTriangleMeshEndUpdateFB, xrTriangleMeshBeginVertexBufferUpdateFB, - xrTriangleMeshEndVertexBufferUpdateFB; + xrTriangleMeshEndVertexBufferUpdateFB; - // HTC_facial_tracking - public final long + // HTC_facial_tracking + public final long xrCreateFacialTrackerHTC, xrDestroyFacialTrackerHTC, - xrGetFacialExpressionsHTC; + xrGetFacialExpressionsHTC; - // HTC_foveation - public final long - xrApplyFoveationHTC; + // HTC_foveation + public final long + xrApplyFoveationHTC; - // HTC_passthrough - public final long + // HTC_passthrough + public final long xrCreatePassthroughHTC, - xrDestroyPassthroughHTC; + xrDestroyPassthroughHTC; - // HTCX_vive_tracker_interaction - public final long - xrEnumerateViveTrackerPathsHTCX; + // HTCX_vive_tracker_interaction + public final long + xrEnumerateViveTrackerPathsHTCX; - // KHR_convert_timespec_time - public final long + // KHR_convert_timespec_time + public final long xrConvertTimespecTimeToTimeKHR, - xrConvertTimeToTimespecTimeKHR; + xrConvertTimeToTimespecTimeKHR; + + // KHR_opengl_enable + public final long + xrGetOpenGLGraphicsRequirementsKHR; - // KHR_opengl_enable - public final long - xrGetOpenGLGraphicsRequirementsKHR; + // KHR_opengl_es_enable + public final long + xrGetOpenGLESGraphicsRequirementsKHR; - // KHR_visibility_mask - public final long - xrGetVisibilityMaskKHR; + // KHR_visibility_mask + public final long + xrGetVisibilityMaskKHR; - // KHR_vulkan_enable - public final long + // KHR_vulkan_enable + public final long xrGetVulkanInstanceExtensionsKHR, xrGetVulkanDeviceExtensionsKHR, xrGetVulkanGraphicsDeviceKHR, - xrGetVulkanGraphicsRequirementsKHR; + xrGetVulkanGraphicsRequirementsKHR; - // KHR_vulkan_enable2 - public final long + // KHR_vulkan_enable2 + public final long xrCreateVulkanInstanceKHR, xrCreateVulkanDeviceKHR, xrGetVulkanGraphicsDevice2KHR, - xrGetVulkanGraphicsRequirements2KHR; + xrGetVulkanGraphicsRequirements2KHR; - // KHR_win32_convert_performance_counter_time - public final long + // KHR_win32_convert_performance_counter_time + public final long xrConvertWin32PerformanceCounterToTimeKHR, - xrConvertTimeToWin32PerformanceCounterKHR; + xrConvertTimeToWin32PerformanceCounterKHR; - // META_foveation_eye_tracked - public final long - xrGetFoveationEyeTrackedStateMETA; + // META_foveation_eye_tracked + public final long + xrGetFoveationEyeTrackedStateMETA; - // META_passthrough_color_lut - public final long - xrCreatePassthroughColorLutMETA, - xrDestroyPassthroughColorLutMETA, - xrUpdatePassthroughColorLutMETA; - - // META_passthrough_preferences - public final long - xrGetPassthroughPreferencesMETA; - - // META_performance_metrics - public final long + // META_performance_metrics + public final long xrEnumeratePerformanceMetricsCounterPathsMETA, xrSetPerformanceMetricsStateMETA, xrGetPerformanceMetricsStateMETA, - xrQueryPerformanceMetricsCounterMETA; - - // META_virtual_keyboard - public final long - xrCreateVirtualKeyboardMETA, - xrDestroyVirtualKeyboardMETA, - xrCreateVirtualKeyboardSpaceMETA, - xrSuggestVirtualKeyboardLocationMETA, - xrGetVirtualKeyboardScaleMETA, - xrSetVirtualKeyboardModelVisibilityMETA, - xrGetVirtualKeyboardModelAnimationStatesMETA, - xrGetVirtualKeyboardDirtyTexturesMETA, - xrGetVirtualKeyboardTextureDataMETA, - xrSendVirtualKeyboardInputMETA, - xrChangeVirtualKeyboardTextContextMETA; - - // ML_compat - public final long - xrCreateSpaceFromCoordinateFrameUIDML; - - // MNDX_force_feedback_curl - public final long - xrApplyForceFeedbackCurlMNDX; - - // MSFT_composition_layer_reprojection - public final long - xrEnumerateReprojectionModesMSFT; - - // MSFT_controller_model - public final long + xrQueryPerformanceMetricsCounterMETA; + + // ML_compat + public final long + xrCreateSpaceFromCoordinateFrameUIDML; + + // MNDX_force_feedback_curl + public final long + xrApplyForceFeedbackCurlMNDX; + + // MSFT_composition_layer_reprojection + public final long + xrEnumerateReprojectionModesMSFT; + + // MSFT_controller_model + public final long xrGetControllerModelKeyMSFT, xrLoadControllerModelMSFT, xrGetControllerModelPropertiesMSFT, - xrGetControllerModelStateMSFT; + xrGetControllerModelStateMSFT; - // MSFT_hand_tracking_mesh - public final long + // MSFT_hand_tracking_mesh + public final long xrCreateHandMeshSpaceMSFT, - xrUpdateHandMeshMSFT; + xrUpdateHandMeshMSFT; - // MSFT_perception_anchor_interop - public final long + // MSFT_perception_anchor_interop + public final long xrCreateSpatialAnchorFromPerceptionAnchorMSFT, - xrTryGetPerceptionAnchorFromSpatialAnchorMSFT; + xrTryGetPerceptionAnchorFromSpatialAnchorMSFT; - // MSFT_scene_understanding - public final long + // MSFT_scene_understanding + public final long xrEnumerateSceneComputeFeaturesMSFT, xrCreateSceneObserverMSFT, xrDestroySceneObserverMSFT, @@ -376,331 +347,329 @@ public class XRCapabilities { xrGetSceneComputeStateMSFT, xrGetSceneComponentsMSFT, xrLocateSceneComponentsMSFT, - xrGetSceneMeshBuffersMSFT; + xrGetSceneMeshBuffersMSFT; - // MSFT_scene_understanding_serialization - public final long + // MSFT_scene_understanding_serialization + public final long xrDeserializeSceneMSFT, - xrGetSerializedSceneFragmentDataMSFT; + xrGetSerializedSceneFragmentDataMSFT; - // MSFT_spatial_anchor - public final long + // MSFT_spatial_anchor + public final long xrCreateSpatialAnchorMSFT, xrCreateSpatialAnchorSpaceMSFT, - xrDestroySpatialAnchorMSFT; + xrDestroySpatialAnchorMSFT; - // MSFT_spatial_anchor_persistence - public final long + // MSFT_spatial_anchor_persistence + public final long xrCreateSpatialAnchorStoreConnectionMSFT, xrDestroySpatialAnchorStoreConnectionMSFT, xrPersistSpatialAnchorMSFT, xrEnumeratePersistedSpatialAnchorNamesMSFT, xrCreateSpatialAnchorFromPersistedNameMSFT, xrUnpersistSpatialAnchorMSFT, - xrClearSpatialAnchorStoreMSFT; + xrClearSpatialAnchorStoreMSFT; - // MSFT_spatial_graph_bridge - public final long + // MSFT_spatial_graph_bridge + public final long xrCreateSpatialGraphNodeSpaceMSFT, xrTryCreateSpatialGraphStaticNodeBindingMSFT, xrDestroySpatialGraphNodeBindingMSFT, - xrGetSpatialGraphNodeBindingPropertiesMSFT; + xrGetSpatialGraphNodeBindingPropertiesMSFT; - // OCULUS_audio_device_guid - public final long + // OCULUS_audio_device_guid + public final long xrGetAudioOutputDeviceGuidOculus, - xrGetAudioInputDeviceGuidOculus; + xrGetAudioInputDeviceGuidOculus; - // OCULUS_external_camera - public final long - xrEnumerateExternalCamerasOCULUS; + // OCULUS_external_camera + public final long + xrEnumerateExternalCamerasOCULUS; - // QCOM_tracking_optimization_settings - public final long - xrSetTrackingOptimizationSettingsHintQCOM; + // QCOM_tracking_optimization_settings + public final long + xrSetTrackingOptimizationSettingsHintQCOM; - // VARJO_environment_depth_estimation - public final long - xrSetEnvironmentDepthEstimationVARJO; + // VARJO_environment_depth_estimation + public final long + xrSetEnvironmentDepthEstimationVARJO; - // VARJO_marker_tracking - public final long + // VARJO_marker_tracking + public final long xrSetMarkerTrackingVARJO, xrSetMarkerTrackingTimeoutVARJO, xrSetMarkerTrackingPredictionVARJO, xrGetMarkerSizeVARJO, - xrCreateMarkerSpaceVARJO; + xrCreateMarkerSpaceVARJO; - // VARJO_view_offset - public final long - xrSetViewOffsetVARJO; + // VARJO_view_offset + public final long + xrSetViewOffsetVARJO; /** The OpenXR API version number. */ public final long apiVersion; - - /** When true, {@link XR10} is supported. */ - public final boolean OpenXR10; - /** When true, {@link ALMALENCEDigitalLensControl} is supported. */ - public final boolean XR_ALMALENCE_digital_lens_control; - /** When true, {@link BDControllerInteraction} is supported. */ - public final boolean XR_BD_controller_interaction; - /** When true, {@link EPICViewConfigurationFov} is supported. */ - public final boolean XR_EPIC_view_configuration_fov; - /** When true, {@link EXTActiveActionSetPriority} is supported. */ - public final boolean XR_EXT_active_action_set_priority; - /** When true, {@link EXTConformanceAutomation} is supported. */ - public final boolean XR_EXT_conformance_automation; - /** When true, {@link EXTDebugUtils} is supported. */ - public final boolean XR_EXT_debug_utils; - /** When true, {@link EXTDpadBinding} is supported. */ - public final boolean XR_EXT_dpad_binding; - /** When true, {@link EXTEyeGazeInteraction} is supported. */ - public final boolean XR_EXT_eye_gaze_interaction; - /** When true, {@link EXTHandInteraction} is supported. */ - public final boolean XR_EXT_hand_interaction; - /** When true, {@link EXTHandJointsMotionRange} is supported. */ - public final boolean XR_EXT_hand_joints_motion_range; - /** When true, {@link EXTHandTracking} is supported. */ - public final boolean XR_EXT_hand_tracking; - /** When true, {@link EXTHandTrackingDataSource} is supported. */ - public final boolean XR_EXT_hand_tracking_data_source; - /** When true, {@link EXTHPMixedRealityController} is supported. */ - public final boolean XR_EXT_hp_mixed_reality_controller; - /** When true, {@link EXTLocalFloor} is supported. */ - public final boolean XR_EXT_local_floor; - /** When true, {@link EXTPalmPose} is supported. */ - public final boolean XR_EXT_palm_pose; - /** When true, {@link EXTPerformanceSettings} is supported. */ - public final boolean XR_EXT_performance_settings; - /** When true, {@link EXTPlaneDetection} is supported. */ - public final boolean XR_EXT_plane_detection; - /** When true, {@link EXTSamsungOdysseyController} is supported. */ - public final boolean XR_EXT_samsung_odyssey_controller; - /** When true, {@link EXTThermalQuery} is supported. */ - public final boolean XR_EXT_thermal_query; - /** When true, {@link EXTUUIUD} is supported. */ - public final boolean XR_EXT_uuid; - /** When true, {@link EXTViewConfigurationDepthRange} is supported. */ - public final boolean XR_EXT_view_configuration_depth_range; - /** When true, {@link EXTWin32AppcontainerCompatible} is supported. */ - public final boolean XR_EXT_win32_appcontainer_compatible; - /** When true, {@link EXTXOverlay} is supported. */ - public final boolean XR_EXTX_overlay; - /** When true, {@link FBBodyTracking} is supported. */ - public final boolean XR_FB_body_tracking; - /** When true, {@link FBColorSpace} is supported. */ - public final boolean XR_FB_color_space; - /** When true, {@link FBCompositionLayerAlphaBlend} is supported. */ - public final boolean XR_FB_composition_layer_alpha_blend; - /** When true, {@link FBCompositionLayerDepthTest} is supported. */ - public final boolean XR_FB_composition_layer_depth_test; - /** When true, {@link FBCompositionLayerImageLayout} is supported. */ - public final boolean XR_FB_composition_layer_image_layout; - /** When true, {@link FBCompositionLayerSecureContent} is supported. */ - public final boolean XR_FB_composition_layer_secure_content; - /** When true, {@link FBCompositionLayerSettings} is supported. */ - public final boolean XR_FB_composition_layer_settings; - /** When true, {@link FBDisplayRefreshRate} is supported. */ - public final boolean XR_FB_display_refresh_rate; - /** When true, {@link FBEyeTrackingSocial} is supported. */ - public final boolean XR_FB_eye_tracking_social; - /** When true, {@link FBFaceTracking} is supported. */ - public final boolean XR_FB_face_tracking; - /** When true, {@link FBFoveation} is supported. */ - public final boolean XR_FB_foveation; - /** When true, {@link FBFoveationConfiguration} is supported. */ - public final boolean XR_FB_foveation_configuration; - /** When true, {@link FBFoveationVulkan} is supported. */ - public final boolean XR_FB_foveation_vulkan; - /** When true, {@link FBHandTrackingAim} is supported. */ - public final boolean XR_FB_hand_tracking_aim; - /** When true, {@link FBHandTrackingCapsules} is supported. */ - public final boolean XR_FB_hand_tracking_capsules; - /** When true, {@link FBHandTrackingMesh} is supported. */ - public final boolean XR_FB_hand_tracking_mesh; - /** When true, {@link FBHapticAmplitudeEnvelope} is supported. */ - public final boolean XR_FB_haptic_amplitude_envelope; - /** When true, {@link FBHapticPcm} is supported. */ - public final boolean XR_FB_haptic_pcm; - /** When true, {@link FBKeyboardTracking} is supported. */ - public final boolean XR_FB_keyboard_tracking; - /** When true, {@link FBPassthrough} is supported. */ - public final boolean XR_FB_passthrough; - /** When true, {@link FBPassthroughKeyboardHands} is supported. */ - public final boolean XR_FB_passthrough_keyboard_hands; - /** When true, {@link FBRenderModel} is supported. */ - public final boolean XR_FB_render_model; - /** When true, {@link FBScene} is supported. */ - public final boolean XR_FB_scene; - /** When true, {@link FBSceneCapture} is supported. */ - public final boolean XR_FB_scene_capture; - /** When true, {@link FBSpaceWarp} is supported. */ - public final boolean XR_FB_space_warp; - /** When true, {@link FBSpatialEntity} is supported. */ - public final boolean XR_FB_spatial_entity; - /** When true, {@link FBSpatialEntityContainer} is supported. */ - public final boolean XR_FB_spatial_entity_container; - /** When true, {@link FBSpatialEntityQuery} is supported. */ - public final boolean XR_FB_spatial_entity_query; - /** When true, {@link FBSpatialEntitySharing} is supported. */ - public final boolean XR_FB_spatial_entity_sharing; - /** When true, {@link FBSpatialEntityStorage} is supported. */ - public final boolean XR_FB_spatial_entity_storage; - /** When true, {@link FBSpatialEntityStorageBatch} is supported. */ - public final boolean XR_FB_spatial_entity_storage_batch; - /** When true, {@link FBSpatialEntityUser} is supported. */ - public final boolean XR_FB_spatial_entity_user; - /** When true, {@link FBSwapchainUpdateState} is supported. */ - public final boolean XR_FB_swapchain_update_state; - /** When true, {@link FBSwapchainUpdateStateOpenGLES} is supported. */ - public final boolean XR_FB_swapchain_update_state_opengl_es; - /** When true, {@link FBSwapchainUpdateStateVulkan} is supported. */ - public final boolean XR_FB_swapchain_update_state_vulkan; - /** When true, {@link FBTouchControllerPro} is supported. */ - public final boolean XR_FB_touch_controller_pro; - /** When true, {@link FBTouchControllerProximity} is supported. */ - public final boolean XR_FB_touch_controller_proximity; - /** When true, {@link FBTriangleMesh} is supported. */ - public final boolean XR_FB_triangle_mesh; - /** When true, {@link HTCFacialTracking} is supported. */ - public final boolean XR_HTC_facial_tracking; - /** When true, {@link HTCFoveation} is supported. */ - public final boolean XR_HTC_foveation; - /** When true, {@link HTCHandInteraction} is supported. */ - public final boolean XR_HTC_hand_interaction; - /** When true, {@link HTCPassthrough} is supported. */ - public final boolean XR_HTC_passthrough; - /** When true, {@link HTCViveCosmosControllerInteraction} is supported. */ - public final boolean XR_HTC_vive_cosmos_controller_interaction; - /** When true, {@link HTCViveFocus3ControllerInteraction} is supported. */ - public final boolean XR_HTC_vive_focus3_controller_interaction; - /** When true, {@link HTCViveWristTrackerInteraction} is supported. */ - public final boolean XR_HTC_vive_wrist_tracker_interaction; - /** When true, {@link HTCXViveTrackerInteraction} is supported. */ - public final boolean XR_HTCX_vive_tracker_interaction; - /** When true, {@link HUAWEIControllerInteraction} is supported. */ - public final boolean XR_HUAWEI_controller_interaction; - /** When true, {@link KHRBindingModification} is supported. */ - public final boolean XR_KHR_binding_modification; - /** When true, {@link KHRCompositionLayerColorScaleBias} is supported. */ - public final boolean XR_KHR_composition_layer_color_scale_bias; - /** When true, {@link KHRCompositionLayerCube} is supported. */ - public final boolean XR_KHR_composition_layer_cube; - /** When true, {@link KHRCompositionLayerCylinder} is supported. */ - public final boolean XR_KHR_composition_layer_cylinder; - /** When true, {@link KHRCompositionLayerDepth} is supported. */ - public final boolean XR_KHR_composition_layer_depth; - /** When true, {@link KHRCompositionLayerEquirect} is supported. */ - public final boolean XR_KHR_composition_layer_equirect; - /** When true, {@link KHRCompositionLayerEquirect2} is supported. */ - public final boolean XR_KHR_composition_layer_equirect2; - /** When true, {@link KHRConvertTimespecTime} is supported. */ - public final boolean XR_KHR_convert_timespec_time; - /** When true, {@link KHRLoaderInit} is supported. */ - public final boolean XR_KHR_loader_init; - /** When true, {@link KHROpenGLEnable} is supported. */ - public final boolean XR_KHR_opengl_enable; - /** When true, {@link KHRSwapchainUsageInputAttachmentBit} is supported. */ - public final boolean XR_KHR_swapchain_usage_input_attachment_bit; - /** When true, {@link KHRVisibilityMask} is supported. */ - public final boolean XR_KHR_visibility_mask; - /** When true, {@link KHRVulkanEnable} is supported. */ - public final boolean XR_KHR_vulkan_enable; - /** When true, {@link KHRVulkanEnable2} is supported. */ - public final boolean XR_KHR_vulkan_enable2; - /** When true, {@link KHRVulkanSwapchainFormatList} is supported. */ - public final boolean XR_KHR_vulkan_swapchain_format_list; - /** When true, {@link KHRWin32ConvertPerformanceCounterTime} is supported. */ - public final boolean XR_KHR_win32_convert_performance_counter_time; - /** When true, {@link METAFoveationEyeTracked} is supported. */ - public final boolean XR_META_foveation_eye_tracked; - /** When true, {@link METAHeadsetId} is supported. */ - public final boolean XR_META_headset_id; - /** When true, {@link METALocalDimming} is supported. */ - public final boolean XR_META_local_dimming; - /** When true, {@link METAPassthroughColorLut} is supported. */ - public final boolean XR_META_passthrough_color_lut; - /** When true, {@link METAPassthroughPreferences} is supported. */ - public final boolean XR_META_passthrough_preferences; - /** When true, {@link METAPerformanceMetrics} is supported. */ - public final boolean XR_META_performance_metrics; - /** When true, {@link METAVirtualKeyboard} is supported. */ - public final boolean XR_META_virtual_keyboard; - /** When true, {@link METAVulkanSwapchainCreateInfo} is supported. */ - public final boolean XR_META_vulkan_swapchain_create_info; - /** When true, {@link MLCompat} is supported. */ - public final boolean XR_ML_compat; - /** When true, {@link MLFrameEndInfo} is supported. */ - public final boolean XR_ML_frame_end_info; - /** When true, {@link MLGlobalDimmer} is supported. */ - public final boolean XR_ML_global_dimmer; - /** When true, {@link MLMl2ControllerInteraction} is supported. */ - public final boolean XR_ML_ml2_controller_interaction; - /** When true, {@link MNDHeadless} is supported. */ - public final boolean XR_MND_headless; - /** When true, {@link MNDSwapchainUsageInputAttachmentBit} is supported. */ - public final boolean XR_MND_swapchain_usage_input_attachment_bit; - /** When true, {@link MNDXEGLEnable} is supported. */ - public final boolean XR_MNDX_egl_enable; - /** When true, {@link MNDXForceFeedbackCurl} is supported. */ - public final boolean XR_MNDX_force_feedback_curl; - /** When true, {@link MSFTCompositionLayerReprojection} is supported. */ - public final boolean XR_MSFT_composition_layer_reprojection; - /** When true, {@link MSFTControllerModel} is supported. */ - public final boolean XR_MSFT_controller_model; - /** When true, {@link MSFTFirstPersonObserver} is supported. */ - public final boolean XR_MSFT_first_person_observer; - /** When true, {@link MSFTHandInteraction} is supported. */ - public final boolean XR_MSFT_hand_interaction; - /** When true, {@link MSFTHandTrackingMesh} is supported. */ - public final boolean XR_MSFT_hand_tracking_mesh; - /** When true, {@link MSFTHolographicWindowAttachment} is supported. */ - public final boolean XR_MSFT_holographic_window_attachment; - /** When true, {@link MSFTPerceptionAnchorInterop} is supported. */ - public final boolean XR_MSFT_perception_anchor_interop; - /** When true, {@link MSFTSceneUnderstanding} is supported. */ - public final boolean XR_MSFT_scene_understanding; - /** When true, {@link MSFTSceneUnderstandingSerialization} is supported. */ - public final boolean XR_MSFT_scene_understanding_serialization; - /** When true, {@link MSFTSecondaryViewConfiguration} is supported. */ - public final boolean XR_MSFT_secondary_view_configuration; - /** When true, {@link MSFTSpatialAnchor} is supported. */ - public final boolean XR_MSFT_spatial_anchor; - /** When true, {@link MSFTSpatialAnchorPersistence} is supported. */ - public final boolean XR_MSFT_spatial_anchor_persistence; - /** When true, {@link MSFTSpatialGraphBridge} is supported. */ - public final boolean XR_MSFT_spatial_graph_bridge; - /** When true, {@link MSFTUnboundedReferenceSpace} is supported. */ - public final boolean XR_MSFT_unbounded_reference_space; - /** When true, {@link OCULUSAudioDeviceGuid} is supported. */ - public final boolean XR_OCULUS_audio_device_guid; - /** When true, {@link OCULUSExternalCamera} is supported. */ - public final boolean XR_OCULUS_external_camera; - /** When true, {@link OPPOControllerInteraction} is supported. */ - public final boolean XR_OPPO_controller_interaction; - /** When true, {@link QCOMTrackingOptimizationSettings} is supported. */ - public final boolean XR_QCOM_tracking_optimization_settings; - /** When true, {@link ULTRALEAPHandTrackingForearm} is supported. */ - public final boolean XR_ULTRALEAP_hand_tracking_forearm; - /** When true, {@link VALVEAnalogThreshold} is supported. */ - public final boolean XR_VALVE_analog_threshold; - /** When true, {@link VARJOCompositionLayerDepthTest} is supported. */ - public final boolean XR_VARJO_composition_layer_depth_test; - /** When true, {@link VARJOEnvironmentDepthEstimation} is supported. */ - public final boolean XR_VARJO_environment_depth_estimation; - /** When true, {@link VARJOFoveatedRendering} is supported. */ - public final boolean XR_VARJO_foveated_rendering; - /** When true, {@link VARJOMarkerTracking} is supported. */ - public final boolean XR_VARJO_marker_tracking; - /** When true, {@link VARJOQuadViews} is supported. */ - public final boolean XR_VARJO_quad_views; - /** When true, {@link VARJOViewOffset} is supported. */ - public final boolean XR_VARJO_view_offset; + + /** When true, {@link XR10} is supported. */ + public final boolean OpenXR10; + /** When true, {@link ALMALENCEDigitalLensControl} is supported. */ + public final boolean XR_ALMALENCE_digital_lens_control; + /** When true, {@link BDControllerInteraction} is supported. */ + public final boolean XR_BD_controller_interaction; + /** When true, {@link EPICViewConfigurationFov} is supported. */ + public final boolean XR_EPIC_view_configuration_fov; + /** When true, {@link EXTActiveActionSetPriority} is supported. */ + public final boolean XR_EXT_active_action_set_priority; + /** When true, {@link EXTConformanceAutomation} is supported. */ + public final boolean XR_EXT_conformance_automation; + /** When true, {@link EXTDebugUtils} is supported. */ + public final boolean XR_EXT_debug_utils; + /** When true, {@link EXTDpadBinding} is supported. */ + public final boolean XR_EXT_dpad_binding; + /** When true, {@link EXTEyeGazeInteraction} is supported. */ + public final boolean XR_EXT_eye_gaze_interaction; + /** When true, {@link EXTHandInteraction} is supported. */ + public final boolean XR_EXT_hand_interaction; + /** When true, {@link EXTHandJointsMotionRange} is supported. */ + public final boolean XR_EXT_hand_joints_motion_range; + /** When true, {@link EXTHandTracking} is supported. */ + public final boolean XR_EXT_hand_tracking; + /** When true, {@link EXTHandTrackingDataSource} is supported. */ + public final boolean XR_EXT_hand_tracking_data_source; + /** When true, {@link EXTHPMixedRealityController} is supported. */ + public final boolean XR_EXT_hp_mixed_reality_controller; + /** When true, {@link EXTLocalFloor} is supported. */ + public final boolean XR_EXT_local_floor; + /** When true, {@link EXTPalmPose} is supported. */ + public final boolean XR_EXT_palm_pose; + /** When true, {@link EXTPerformanceSettings} is supported. */ + public final boolean XR_EXT_performance_settings; + /** When true, {@link EXTSamsungOdysseyController} is supported. */ + public final boolean XR_EXT_samsung_odyssey_controller; + /** When true, {@link EXTThermalQuery} is supported. */ + public final boolean XR_EXT_thermal_query; + /** When true, {@link EXTUUIUD} is supported. */ + public final boolean XR_EXT_uuid; + /** When true, {@link EXTViewConfigurationDepthRange} is supported. */ + public final boolean XR_EXT_view_configuration_depth_range; + /** When true, {@link EXTWin32AppcontainerCompatible} is supported. */ + public final boolean XR_EXT_win32_appcontainer_compatible; + /** When true, {@link EXTXOverlay} is supported. */ + public final boolean XR_EXTX_overlay; + /** When true, {@link FBBodyTracking} is supported. */ + public final boolean XR_FB_body_tracking; + /** When true, {@link FBColorSpace} is supported. */ + public final boolean XR_FB_color_space; + /** When true, {@link FBCompositionLayerAlphaBlend} is supported. */ + public final boolean XR_FB_composition_layer_alpha_blend; + /** When true, {@link FBCompositionLayerDepthTest} is supported. */ + public final boolean XR_FB_composition_layer_depth_test; + /** When true, {@link FBCompositionLayerImageLayout} is supported. */ + public final boolean XR_FB_composition_layer_image_layout; + /** When true, {@link FBCompositionLayerSecureContent} is supported. */ + public final boolean XR_FB_composition_layer_secure_content; + /** When true, {@link FBCompositionLayerSettings} is supported. */ + public final boolean XR_FB_composition_layer_settings; + /** When true, {@link FBDisplayRefreshRate} is supported. */ + public final boolean XR_FB_display_refresh_rate; + /** When true, {@link FBEyeTrackingSocial} is supported. */ + public final boolean XR_FB_eye_tracking_social; + /** When true, {@link FBFaceTracking} is supported. */ + public final boolean XR_FB_face_tracking; + /** When true, {@link FBFoveation} is supported. */ + public final boolean XR_FB_foveation; + /** When true, {@link FBFoveationConfiguration} is supported. */ + public final boolean XR_FB_foveation_configuration; + /** When true, {@link FBFoveationVulkan} is supported. */ + public final boolean XR_FB_foveation_vulkan; + /** When true, {@link FBHandTrackingAim} is supported. */ + public final boolean XR_FB_hand_tracking_aim; + /** When true, {@link FBHandTrackingCapsules} is supported. */ + public final boolean XR_FB_hand_tracking_capsules; + /** When true, {@link FBHandTrackingMesh} is supported. */ + public final boolean XR_FB_hand_tracking_mesh; + /** When true, {@link FBHapticAmplitudeEnvelope} is supported. */ + public final boolean XR_FB_haptic_amplitude_envelope; + /** When true, {@link FBHapticPcm} is supported. */ + public final boolean XR_FB_haptic_pcm; + /** When true, {@link FBKeyboardTracking} is supported. */ + public final boolean XR_FB_keyboard_tracking; + /** When true, {@link FBPassthrough} is supported. */ + public final boolean XR_FB_passthrough; + /** When true, {@link FBPassthroughKeyboardHands} is supported. */ + public final boolean XR_FB_passthrough_keyboard_hands; + /** When true, {@link FBRenderModel} is supported. */ + public final boolean XR_FB_render_model; + /** When true, {@link FBScene} is supported. */ + public final boolean XR_FB_scene; + /** When true, {@link FBSceneCapture} is supported. */ + public final boolean XR_FB_scene_capture; + /** When true, {@link FBSpaceWarp} is supported. */ + public final boolean XR_FB_space_warp; + /** When true, {@link FBSpatialEntity} is supported. */ + public final boolean XR_FB_spatial_entity; + /** When true, {@link FBSpatialEntityContainer} is supported. */ + public final boolean XR_FB_spatial_entity_container; + /** When true, {@link FBSpatialEntityQuery} is supported. */ + public final boolean XR_FB_spatial_entity_query; + /** When true, {@link FBSpatialEntitySharing} is supported. */ + public final boolean XR_FB_spatial_entity_sharing; + /** When true, {@link FBSpatialEntityStorage} is supported. */ + public final boolean XR_FB_spatial_entity_storage; + /** When true, {@link FBSpatialEntityStorageBatch} is supported. */ + public final boolean XR_FB_spatial_entity_storage_batch; + /** When true, {@link FBSpatialEntityUser} is supported. */ + public final boolean XR_FB_spatial_entity_user; + /** When true, {@link FBSwapchainUpdateState} is supported. */ + public final boolean XR_FB_swapchain_update_state; + /** When true, {@link FBSwapchainUpdateStateOpenGLES} is supported. */ + public final boolean XR_FB_swapchain_update_state_opengl_es; + /** When true, {@link FBSwapchainUpdateStateVulkan} is supported. */ + public final boolean XR_FB_swapchain_update_state_vulkan; + /** When true, {@link FBTouchControllerPro} is supported. */ + public final boolean XR_FB_touch_controller_pro; + /** When true, {@link FBTouchControllerProximity} is supported. */ + public final boolean XR_FB_touch_controller_proximity; + /** When true, {@link FBTriangleMesh} is supported. */ + public final boolean XR_FB_triangle_mesh; + /** When true, {@link HTCFacialTracking} is supported. */ + public final boolean XR_HTC_facial_tracking; + /** When true, {@link HTCFoveation} is supported. */ + public final boolean XR_HTC_foveation; + /** When true, {@link HTCHandInteraction} is supported. */ + public final boolean XR_HTC_hand_interaction; + /** When true, {@link HTCPassthrough} is supported. */ + public final boolean XR_HTC_passthrough; + /** When true, {@link HTCViveCosmosControllerInteraction} is supported. */ + public final boolean XR_HTC_vive_cosmos_controller_interaction; + /** When true, {@link HTCViveFocus3ControllerInteraction} is supported. */ + public final boolean XR_HTC_vive_focus3_controller_interaction; + /** When true, {@link HTCViveWristTrackerInteraction} is supported. */ + public final boolean XR_HTC_vive_wrist_tracker_interaction; + /** When true, {@link HTCXViveTrackerInteraction} is supported. */ + public final boolean XR_HTCX_vive_tracker_interaction; + /** When true, {@link HUAWEIControllerInteraction} is supported. */ + public final boolean XR_HUAWEI_controller_interaction; + /** When true, {@link KHRAndroidCreateInstance} is supported. */ + public final boolean XR_KHR_android_create_instance; + /** When true, {@link KHRBindingModification} is supported. */ + public final boolean XR_KHR_binding_modification; + /** When true, {@link KHRCompositionLayerColorScaleBias} is supported. */ + public final boolean XR_KHR_composition_layer_color_scale_bias; + /** When true, {@link KHRCompositionLayerCube} is supported. */ + public final boolean XR_KHR_composition_layer_cube; + /** When true, {@link KHRCompositionLayerCylinder} is supported. */ + public final boolean XR_KHR_composition_layer_cylinder; + /** When true, {@link KHRCompositionLayerDepth} is supported. */ + public final boolean XR_KHR_composition_layer_depth; + /** When true, {@link KHRCompositionLayerEquirect} is supported. */ + public final boolean XR_KHR_composition_layer_equirect; + /** When true, {@link KHRCompositionLayerEquirect2} is supported. */ + public final boolean XR_KHR_composition_layer_equirect2; + /** When true, {@link KHRConvertTimespecTime} is supported. */ + public final boolean XR_KHR_convert_timespec_time; + /** When true, {@link KHRLoaderInit} is supported. */ + public final boolean XR_KHR_loader_init; + /** When true, {@link KHRLoaderInitAndroid} is supported. */ + public final boolean XR_KHR_loader_init_android; + /** When true, {@link KHROpenGLEnable} is supported. */ + public final boolean XR_KHR_opengl_enable; + /** When true, {@link KHROpenGLESEnable} is supported. */ + public final boolean XR_KHR_opengl_es_enable; + /** When true, {@link KHRSwapchainUsageInputAttachmentBit} is supported. */ + public final boolean XR_KHR_swapchain_usage_input_attachment_bit; + /** When true, {@link KHRVisibilityMask} is supported. */ + public final boolean XR_KHR_visibility_mask; + /** When true, {@link KHRVulkanEnable} is supported. */ + public final boolean XR_KHR_vulkan_enable; + /** When true, {@link KHRVulkanEnable2} is supported. */ + public final boolean XR_KHR_vulkan_enable2; + /** When true, {@link KHRVulkanSwapchainFormatList} is supported. */ + public final boolean XR_KHR_vulkan_swapchain_format_list; + /** When true, {@link KHRWin32ConvertPerformanceCounterTime} is supported. */ + public final boolean XR_KHR_win32_convert_performance_counter_time; + /** When true, {@link METAFoveationEyeTracked} is supported. */ + public final boolean XR_META_foveation_eye_tracked; + /** When true, {@link METAHeadsetId} is supported. */ + public final boolean XR_META_headset_id; + /** When true, {@link METALocalDimming} is supported. */ + public final boolean XR_META_local_dimming; + /** When true, {@link METAPerformanceMetrics} is supported. */ + public final boolean XR_META_performance_metrics; + /** When true, {@link METAVulkanSwapchainCreateInfo} is supported. */ + public final boolean XR_META_vulkan_swapchain_create_info; + /** When true, {@link MLCompat} is supported. */ + public final boolean XR_ML_compat; + /** When true, {@link MLFrameEndInfo} is supported. */ + public final boolean XR_ML_frame_end_info; + /** When true, {@link MLGlobalDimmer} is supported. */ + public final boolean XR_ML_global_dimmer; + /** When true, {@link MLMl2ControllerInteraction} is supported. */ + public final boolean XR_ML_ml2_controller_interaction; + /** When true, {@link MNDHeadless} is supported. */ + public final boolean XR_MND_headless; + /** When true, {@link MNDSwapchainUsageInputAttachmentBit} is supported. */ + public final boolean XR_MND_swapchain_usage_input_attachment_bit; + /** When true, {@link MNDXEGLEnable} is supported. */ + public final boolean XR_MNDX_egl_enable; + /** When true, {@link MNDXForceFeedbackCurl} is supported. */ + public final boolean XR_MNDX_force_feedback_curl; + /** When true, {@link MSFTCompositionLayerReprojection} is supported. */ + public final boolean XR_MSFT_composition_layer_reprojection; + /** When true, {@link MSFTControllerModel} is supported. */ + public final boolean XR_MSFT_controller_model; + /** When true, {@link MSFTFirstPersonObserver} is supported. */ + public final boolean XR_MSFT_first_person_observer; + /** When true, {@link MSFTHandInteraction} is supported. */ + public final boolean XR_MSFT_hand_interaction; + /** When true, {@link MSFTHandTrackingMesh} is supported. */ + public final boolean XR_MSFT_hand_tracking_mesh; + /** When true, {@link MSFTHolographicWindowAttachment} is supported. */ + public final boolean XR_MSFT_holographic_window_attachment; + /** When true, {@link MSFTPerceptionAnchorInterop} is supported. */ + public final boolean XR_MSFT_perception_anchor_interop; + /** When true, {@link MSFTSceneUnderstanding} is supported. */ + public final boolean XR_MSFT_scene_understanding; + /** When true, {@link MSFTSceneUnderstandingSerialization} is supported. */ + public final boolean XR_MSFT_scene_understanding_serialization; + /** When true, {@link MSFTSecondaryViewConfiguration} is supported. */ + public final boolean XR_MSFT_secondary_view_configuration; + /** When true, {@link MSFTSpatialAnchor} is supported. */ + public final boolean XR_MSFT_spatial_anchor; + /** When true, {@link MSFTSpatialAnchorPersistence} is supported. */ + public final boolean XR_MSFT_spatial_anchor_persistence; + /** When true, {@link MSFTSpatialGraphBridge} is supported. */ + public final boolean XR_MSFT_spatial_graph_bridge; + /** When true, {@link MSFTUnboundedReferenceSpace} is supported. */ + public final boolean XR_MSFT_unbounded_reference_space; + /** When true, {@link OCULUSAudioDeviceGuid} is supported. */ + public final boolean XR_OCULUS_audio_device_guid; + /** When true, {@link OCULUSExternalCamera} is supported. */ + public final boolean XR_OCULUS_external_camera; + /** When true, {@link OPPOControllerInteraction} is supported. */ + public final boolean XR_OPPO_controller_interaction; + /** When true, {@link QCOMTrackingOptimizationSettings} is supported. */ + public final boolean XR_QCOM_tracking_optimization_settings; + /** When true, {@link ULTRALEAPHandTrackingForearm} is supported. */ + public final boolean XR_ULTRALEAP_hand_tracking_forearm; + /** When true, {@link VALVEAnalogThreshold} is supported. */ + public final boolean XR_VALVE_analog_threshold; + /** When true, {@link VARJOCompositionLayerDepthTest} is supported. */ + public final boolean XR_VARJO_composition_layer_depth_test; + /** When true, {@link VARJOEnvironmentDepthEstimation} is supported. */ + public final boolean XR_VARJO_environment_depth_estimation; + /** When true, {@link VARJOFoveatedRendering} is supported. */ + public final boolean XR_VARJO_foveated_rendering; + /** When true, {@link VARJOMarkerTracking} is supported. */ + public final boolean XR_VARJO_marker_tracking; + /** When true, {@link VARJOQuadViews} is supported. */ + public final boolean XR_VARJO_quad_views; + /** When true, {@link VARJOViewOffset} is supported. */ + public final boolean XR_VARJO_view_offset; XRCapabilities(FunctionProvider provider, long apiVersion, Set ext) { this.apiVersion = apiVersion; - long[] caps = new long[232]; + long[] caps = new long[212]; OpenXR10 = check_XR10(provider, caps, ext); XR_ALMALENCE_digital_lens_control = check_ALMALENCE_digital_lens_control(provider, caps, ext); @@ -719,7 +688,6 @@ public class XRCapabilities { XR_EXT_local_floor = ext.contains("XR_EXT_local_floor"); XR_EXT_palm_pose = ext.contains("XR_EXT_palm_pose"); XR_EXT_performance_settings = check_EXT_performance_settings(provider, caps, ext); - XR_EXT_plane_detection = check_EXT_plane_detection(provider, caps, ext); XR_EXT_samsung_odyssey_controller = ext.contains("XR_EXT_samsung_odyssey_controller"); XR_EXT_thermal_query = check_EXT_thermal_query(provider, caps, ext); XR_EXT_uuid = ext.contains("XR_EXT_uuid"); @@ -773,6 +741,7 @@ public class XRCapabilities { XR_HTC_vive_wrist_tracker_interaction = ext.contains("XR_HTC_vive_wrist_tracker_interaction"); XR_HTCX_vive_tracker_interaction = check_HTCX_vive_tracker_interaction(provider, caps, ext); XR_HUAWEI_controller_interaction = ext.contains("XR_HUAWEI_controller_interaction"); + XR_KHR_android_create_instance = ext.contains("XR_KHR_android_create_instance"); XR_KHR_binding_modification = ext.contains("XR_KHR_binding_modification"); XR_KHR_composition_layer_color_scale_bias = ext.contains("XR_KHR_composition_layer_color_scale_bias"); XR_KHR_composition_layer_cube = ext.contains("XR_KHR_composition_layer_cube"); @@ -782,7 +751,9 @@ public class XRCapabilities { XR_KHR_composition_layer_equirect2 = ext.contains("XR_KHR_composition_layer_equirect2"); XR_KHR_convert_timespec_time = check_KHR_convert_timespec_time(provider, caps, ext); XR_KHR_loader_init = ext.contains("XR_KHR_loader_init"); + XR_KHR_loader_init_android = ext.contains("XR_KHR_loader_init_android"); XR_KHR_opengl_enable = check_KHR_opengl_enable(provider, caps, ext); + XR_KHR_opengl_es_enable = check_KHR_opengl_es_enable(provider, caps, ext); XR_KHR_swapchain_usage_input_attachment_bit = ext.contains("XR_KHR_swapchain_usage_input_attachment_bit"); XR_KHR_visibility_mask = check_KHR_visibility_mask(provider, caps, ext); XR_KHR_vulkan_enable = check_KHR_vulkan_enable(provider, caps, ext); @@ -792,10 +763,7 @@ public class XRCapabilities { XR_META_foveation_eye_tracked = check_META_foveation_eye_tracked(provider, caps, ext); XR_META_headset_id = ext.contains("XR_META_headset_id"); XR_META_local_dimming = ext.contains("XR_META_local_dimming"); - XR_META_passthrough_color_lut = check_META_passthrough_color_lut(provider, caps, ext); - XR_META_passthrough_preferences = check_META_passthrough_preferences(provider, caps, ext); XR_META_performance_metrics = check_META_performance_metrics(provider, caps, ext); - XR_META_virtual_keyboard = check_META_virtual_keyboard(provider, caps, ext); XR_META_vulkan_swapchain_create_info = ext.contains("XR_META_vulkan_swapchain_create_info"); XR_ML_compat = check_ML_compat(provider, caps, ext); XR_ML_frame_end_info = ext.contains("XR_ML_frame_end_info"); @@ -830,7 +798,7 @@ public class XRCapabilities { XR_VARJO_foveated_rendering = ext.contains("XR_VARJO_foveated_rendering"); XR_VARJO_marker_tracking = check_VARJO_marker_tracking(provider, caps, ext); XR_VARJO_quad_views = ext.contains("XR_VARJO_quad_views"); - XR_VARJO_view_offset = check_VARJO_view_offset(provider, caps, ext); + XR_VARJO_view_offset = check_VARJO_view_offset(provider, caps, ext); xrDestroyInstance = caps[0]; xrGetInstanceProperties = caps[1]; @@ -900,170 +868,150 @@ public class XRCapabilities { xrDestroyHandTrackerEXT = caps[65]; xrLocateHandJointsEXT = caps[66]; xrPerfSettingsSetPerformanceLevelEXT = caps[67]; - xrCreatePlaneDetectorEXT = caps[68]; - xrDestroyPlaneDetectorEXT = caps[69]; - xrBeginPlaneDetectionEXT = caps[70]; - xrGetPlaneDetectionStateEXT = caps[71]; - xrGetPlaneDetectionsEXT = caps[72]; - xrGetPlanePolygonBufferEXT = caps[73]; - xrThermalGetTemperatureTrendEXT = caps[74]; - xrCreateBodyTrackerFB = caps[75]; - xrDestroyBodyTrackerFB = caps[76]; - xrLocateBodyJointsFB = caps[77]; - xrGetBodySkeletonFB = caps[78]; - xrEnumerateColorSpacesFB = caps[79]; - xrSetColorSpaceFB = caps[80]; - xrEnumerateDisplayRefreshRatesFB = caps[81]; - xrGetDisplayRefreshRateFB = caps[82]; - xrRequestDisplayRefreshRateFB = caps[83]; - xrCreateEyeTrackerFB = caps[84]; - xrDestroyEyeTrackerFB = caps[85]; - xrGetEyeGazesFB = caps[86]; - xrCreateFaceTrackerFB = caps[87]; - xrDestroyFaceTrackerFB = caps[88]; - xrGetFaceExpressionWeightsFB = caps[89]; - xrCreateFoveationProfileFB = caps[90]; - xrDestroyFoveationProfileFB = caps[91]; - xrGetHandMeshFB = caps[92]; - xrGetDeviceSampleRateFB = caps[93]; - xrQuerySystemTrackedKeyboardFB = caps[94]; - xrCreateKeyboardSpaceFB = caps[95]; - xrCreatePassthroughFB = caps[96]; - xrDestroyPassthroughFB = caps[97]; - xrPassthroughStartFB = caps[98]; - xrPassthroughPauseFB = caps[99]; - xrCreatePassthroughLayerFB = caps[100]; - xrDestroyPassthroughLayerFB = caps[101]; - xrPassthroughLayerPauseFB = caps[102]; - xrPassthroughLayerResumeFB = caps[103]; - xrPassthroughLayerSetStyleFB = caps[104]; - xrCreateGeometryInstanceFB = caps[105]; - xrDestroyGeometryInstanceFB = caps[106]; - xrGeometryInstanceSetTransformFB = caps[107]; - xrPassthroughLayerSetKeyboardHandsIntensityFB = caps[108]; - xrEnumerateRenderModelPathsFB = caps[109]; - xrGetRenderModelPropertiesFB = caps[110]; - xrLoadRenderModelFB = caps[111]; - xrGetSpaceBoundingBox2DFB = caps[112]; - xrGetSpaceBoundingBox3DFB = caps[113]; - xrGetSpaceSemanticLabelsFB = caps[114]; - xrGetSpaceBoundary2DFB = caps[115]; - xrGetSpaceRoomLayoutFB = caps[116]; - xrRequestSceneCaptureFB = caps[117]; - xrCreateSpatialAnchorFB = caps[118]; - xrGetSpaceUuidFB = caps[119]; - xrEnumerateSpaceSupportedComponentsFB = caps[120]; - xrSetSpaceComponentStatusFB = caps[121]; - xrGetSpaceComponentStatusFB = caps[122]; - xrGetSpaceContainerFB = caps[123]; - xrQuerySpacesFB = caps[124]; - xrRetrieveSpaceQueryResultsFB = caps[125]; - xrShareSpacesFB = caps[126]; - xrSaveSpaceFB = caps[127]; - xrEraseSpaceFB = caps[128]; - xrSaveSpaceListFB = caps[129]; - xrCreateSpaceUserFB = caps[130]; - xrGetSpaceUserIdFB = caps[131]; - xrDestroySpaceUserFB = caps[132]; - xrUpdateSwapchainFB = caps[133]; - xrGetSwapchainStateFB = caps[134]; - xrCreateTriangleMeshFB = caps[135]; - xrDestroyTriangleMeshFB = caps[136]; - xrTriangleMeshGetVertexBufferFB = caps[137]; - xrTriangleMeshGetIndexBufferFB = caps[138]; - xrTriangleMeshBeginUpdateFB = caps[139]; - xrTriangleMeshEndUpdateFB = caps[140]; - xrTriangleMeshBeginVertexBufferUpdateFB = caps[141]; - xrTriangleMeshEndVertexBufferUpdateFB = caps[142]; - xrCreateFacialTrackerHTC = caps[143]; - xrDestroyFacialTrackerHTC = caps[144]; - xrGetFacialExpressionsHTC = caps[145]; - xrApplyFoveationHTC = caps[146]; - xrCreatePassthroughHTC = caps[147]; - xrDestroyPassthroughHTC = caps[148]; - xrEnumerateViveTrackerPathsHTCX = caps[149]; - xrConvertTimespecTimeToTimeKHR = caps[150]; - xrConvertTimeToTimespecTimeKHR = caps[151]; - xrGetOpenGLGraphicsRequirementsKHR = caps[152]; - xrGetVisibilityMaskKHR = caps[153]; - xrGetVulkanInstanceExtensionsKHR = caps[154]; - xrGetVulkanDeviceExtensionsKHR = caps[155]; - xrGetVulkanGraphicsDeviceKHR = caps[156]; - xrGetVulkanGraphicsRequirementsKHR = caps[157]; - xrCreateVulkanInstanceKHR = caps[158]; - xrCreateVulkanDeviceKHR = caps[159]; - xrGetVulkanGraphicsDevice2KHR = caps[160]; - xrGetVulkanGraphicsRequirements2KHR = caps[161]; - xrConvertWin32PerformanceCounterToTimeKHR = caps[162]; - xrConvertTimeToWin32PerformanceCounterKHR = caps[163]; - xrGetFoveationEyeTrackedStateMETA = caps[164]; - xrCreatePassthroughColorLutMETA = caps[165]; - xrDestroyPassthroughColorLutMETA = caps[166]; - xrUpdatePassthroughColorLutMETA = caps[167]; - xrGetPassthroughPreferencesMETA = caps[168]; - xrEnumeratePerformanceMetricsCounterPathsMETA = caps[169]; - xrSetPerformanceMetricsStateMETA = caps[170]; - xrGetPerformanceMetricsStateMETA = caps[171]; - xrQueryPerformanceMetricsCounterMETA = caps[172]; - xrCreateVirtualKeyboardMETA = caps[173]; - xrDestroyVirtualKeyboardMETA = caps[174]; - xrCreateVirtualKeyboardSpaceMETA = caps[175]; - xrSuggestVirtualKeyboardLocationMETA = caps[176]; - xrGetVirtualKeyboardScaleMETA = caps[177]; - xrSetVirtualKeyboardModelVisibilityMETA = caps[178]; - xrGetVirtualKeyboardModelAnimationStatesMETA = caps[179]; - xrGetVirtualKeyboardDirtyTexturesMETA = caps[180]; - xrGetVirtualKeyboardTextureDataMETA = caps[181]; - xrSendVirtualKeyboardInputMETA = caps[182]; - xrChangeVirtualKeyboardTextContextMETA = caps[183]; - xrCreateSpaceFromCoordinateFrameUIDML = caps[184]; - xrApplyForceFeedbackCurlMNDX = caps[185]; - xrEnumerateReprojectionModesMSFT = caps[186]; - xrGetControllerModelKeyMSFT = caps[187]; - xrLoadControllerModelMSFT = caps[188]; - xrGetControllerModelPropertiesMSFT = caps[189]; - xrGetControllerModelStateMSFT = caps[190]; - xrCreateHandMeshSpaceMSFT = caps[191]; - xrUpdateHandMeshMSFT = caps[192]; - xrCreateSpatialAnchorFromPerceptionAnchorMSFT = caps[193]; - xrTryGetPerceptionAnchorFromSpatialAnchorMSFT = caps[194]; - xrEnumerateSceneComputeFeaturesMSFT = caps[195]; - xrCreateSceneObserverMSFT = caps[196]; - xrDestroySceneObserverMSFT = caps[197]; - xrCreateSceneMSFT = caps[198]; - xrDestroySceneMSFT = caps[199]; - xrComputeNewSceneMSFT = caps[200]; - xrGetSceneComputeStateMSFT = caps[201]; - xrGetSceneComponentsMSFT = caps[202]; - xrLocateSceneComponentsMSFT = caps[203]; - xrGetSceneMeshBuffersMSFT = caps[204]; - xrDeserializeSceneMSFT = caps[205]; - xrGetSerializedSceneFragmentDataMSFT = caps[206]; - xrCreateSpatialAnchorMSFT = caps[207]; - xrCreateSpatialAnchorSpaceMSFT = caps[208]; - xrDestroySpatialAnchorMSFT = caps[209]; - xrCreateSpatialAnchorStoreConnectionMSFT = caps[210]; - xrDestroySpatialAnchorStoreConnectionMSFT = caps[211]; - xrPersistSpatialAnchorMSFT = caps[212]; - xrEnumeratePersistedSpatialAnchorNamesMSFT = caps[213]; - xrCreateSpatialAnchorFromPersistedNameMSFT = caps[214]; - xrUnpersistSpatialAnchorMSFT = caps[215]; - xrClearSpatialAnchorStoreMSFT = caps[216]; - xrCreateSpatialGraphNodeSpaceMSFT = caps[217]; - xrTryCreateSpatialGraphStaticNodeBindingMSFT = caps[218]; - xrDestroySpatialGraphNodeBindingMSFT = caps[219]; - xrGetSpatialGraphNodeBindingPropertiesMSFT = caps[220]; - xrGetAudioOutputDeviceGuidOculus = caps[221]; - xrGetAudioInputDeviceGuidOculus = caps[222]; - xrEnumerateExternalCamerasOCULUS = caps[223]; - xrSetTrackingOptimizationSettingsHintQCOM = caps[224]; - xrSetEnvironmentDepthEstimationVARJO = caps[225]; - xrSetMarkerTrackingVARJO = caps[226]; - xrSetMarkerTrackingTimeoutVARJO = caps[227]; - xrSetMarkerTrackingPredictionVARJO = caps[228]; - xrGetMarkerSizeVARJO = caps[229]; - xrCreateMarkerSpaceVARJO = caps[230]; - xrSetViewOffsetVARJO = caps[231]; + xrThermalGetTemperatureTrendEXT = caps[68]; + xrCreateBodyTrackerFB = caps[69]; + xrDestroyBodyTrackerFB = caps[70]; + xrLocateBodyJointsFB = caps[71]; + xrGetBodySkeletonFB = caps[72]; + xrEnumerateColorSpacesFB = caps[73]; + xrSetColorSpaceFB = caps[74]; + xrEnumerateDisplayRefreshRatesFB = caps[75]; + xrGetDisplayRefreshRateFB = caps[76]; + xrRequestDisplayRefreshRateFB = caps[77]; + xrCreateEyeTrackerFB = caps[78]; + xrDestroyEyeTrackerFB = caps[79]; + xrGetEyeGazesFB = caps[80]; + xrCreateFaceTrackerFB = caps[81]; + xrDestroyFaceTrackerFB = caps[82]; + xrGetFaceExpressionWeightsFB = caps[83]; + xrCreateFoveationProfileFB = caps[84]; + xrDestroyFoveationProfileFB = caps[85]; + xrGetHandMeshFB = caps[86]; + xrGetDeviceSampleRateFB = caps[87]; + xrQuerySystemTrackedKeyboardFB = caps[88]; + xrCreateKeyboardSpaceFB = caps[89]; + xrCreatePassthroughFB = caps[90]; + xrDestroyPassthroughFB = caps[91]; + xrPassthroughStartFB = caps[92]; + xrPassthroughPauseFB = caps[93]; + xrCreatePassthroughLayerFB = caps[94]; + xrDestroyPassthroughLayerFB = caps[95]; + xrPassthroughLayerPauseFB = caps[96]; + xrPassthroughLayerResumeFB = caps[97]; + xrPassthroughLayerSetStyleFB = caps[98]; + xrCreateGeometryInstanceFB = caps[99]; + xrDestroyGeometryInstanceFB = caps[100]; + xrGeometryInstanceSetTransformFB = caps[101]; + xrPassthroughLayerSetKeyboardHandsIntensityFB = caps[102]; + xrEnumerateRenderModelPathsFB = caps[103]; + xrGetRenderModelPropertiesFB = caps[104]; + xrLoadRenderModelFB = caps[105]; + xrGetSpaceBoundingBox2DFB = caps[106]; + xrGetSpaceBoundingBox3DFB = caps[107]; + xrGetSpaceSemanticLabelsFB = caps[108]; + xrGetSpaceBoundary2DFB = caps[109]; + xrGetSpaceRoomLayoutFB = caps[110]; + xrRequestSceneCaptureFB = caps[111]; + xrCreateSpatialAnchorFB = caps[112]; + xrGetSpaceUuidFB = caps[113]; + xrEnumerateSpaceSupportedComponentsFB = caps[114]; + xrSetSpaceComponentStatusFB = caps[115]; + xrGetSpaceComponentStatusFB = caps[116]; + xrGetSpaceContainerFB = caps[117]; + xrQuerySpacesFB = caps[118]; + xrRetrieveSpaceQueryResultsFB = caps[119]; + xrShareSpacesFB = caps[120]; + xrSaveSpaceFB = caps[121]; + xrEraseSpaceFB = caps[122]; + xrSaveSpaceListFB = caps[123]; + xrCreateSpaceUserFB = caps[124]; + xrGetSpaceUserIdFB = caps[125]; + xrDestroySpaceUserFB = caps[126]; + xrUpdateSwapchainFB = caps[127]; + xrGetSwapchainStateFB = caps[128]; + xrCreateTriangleMeshFB = caps[129]; + xrDestroyTriangleMeshFB = caps[130]; + xrTriangleMeshGetVertexBufferFB = caps[131]; + xrTriangleMeshGetIndexBufferFB = caps[132]; + xrTriangleMeshBeginUpdateFB = caps[133]; + xrTriangleMeshEndUpdateFB = caps[134]; + xrTriangleMeshBeginVertexBufferUpdateFB = caps[135]; + xrTriangleMeshEndVertexBufferUpdateFB = caps[136]; + xrCreateFacialTrackerHTC = caps[137]; + xrDestroyFacialTrackerHTC = caps[138]; + xrGetFacialExpressionsHTC = caps[139]; + xrApplyFoveationHTC = caps[140]; + xrCreatePassthroughHTC = caps[141]; + xrDestroyPassthroughHTC = caps[142]; + xrEnumerateViveTrackerPathsHTCX = caps[143]; + xrConvertTimespecTimeToTimeKHR = caps[144]; + xrConvertTimeToTimespecTimeKHR = caps[145]; + xrGetOpenGLGraphicsRequirementsKHR = caps[146]; + xrGetOpenGLESGraphicsRequirementsKHR = caps[147]; + xrGetVisibilityMaskKHR = caps[148]; + xrGetVulkanInstanceExtensionsKHR = caps[149]; + xrGetVulkanDeviceExtensionsKHR = caps[150]; + xrGetVulkanGraphicsDeviceKHR = caps[151]; + xrGetVulkanGraphicsRequirementsKHR = caps[152]; + xrCreateVulkanInstanceKHR = caps[153]; + xrCreateVulkanDeviceKHR = caps[154]; + xrGetVulkanGraphicsDevice2KHR = caps[155]; + xrGetVulkanGraphicsRequirements2KHR = caps[156]; + xrConvertWin32PerformanceCounterToTimeKHR = caps[157]; + xrConvertTimeToWin32PerformanceCounterKHR = caps[158]; + xrGetFoveationEyeTrackedStateMETA = caps[159]; + xrEnumeratePerformanceMetricsCounterPathsMETA = caps[160]; + xrSetPerformanceMetricsStateMETA = caps[161]; + xrGetPerformanceMetricsStateMETA = caps[162]; + xrQueryPerformanceMetricsCounterMETA = caps[163]; + xrCreateSpaceFromCoordinateFrameUIDML = caps[164]; + xrApplyForceFeedbackCurlMNDX = caps[165]; + xrEnumerateReprojectionModesMSFT = caps[166]; + xrGetControllerModelKeyMSFT = caps[167]; + xrLoadControllerModelMSFT = caps[168]; + xrGetControllerModelPropertiesMSFT = caps[169]; + xrGetControllerModelStateMSFT = caps[170]; + xrCreateHandMeshSpaceMSFT = caps[171]; + xrUpdateHandMeshMSFT = caps[172]; + xrCreateSpatialAnchorFromPerceptionAnchorMSFT = caps[173]; + xrTryGetPerceptionAnchorFromSpatialAnchorMSFT = caps[174]; + xrEnumerateSceneComputeFeaturesMSFT = caps[175]; + xrCreateSceneObserverMSFT = caps[176]; + xrDestroySceneObserverMSFT = caps[177]; + xrCreateSceneMSFT = caps[178]; + xrDestroySceneMSFT = caps[179]; + xrComputeNewSceneMSFT = caps[180]; + xrGetSceneComputeStateMSFT = caps[181]; + xrGetSceneComponentsMSFT = caps[182]; + xrLocateSceneComponentsMSFT = caps[183]; + xrGetSceneMeshBuffersMSFT = caps[184]; + xrDeserializeSceneMSFT = caps[185]; + xrGetSerializedSceneFragmentDataMSFT = caps[186]; + xrCreateSpatialAnchorMSFT = caps[187]; + xrCreateSpatialAnchorSpaceMSFT = caps[188]; + xrDestroySpatialAnchorMSFT = caps[189]; + xrCreateSpatialAnchorStoreConnectionMSFT = caps[190]; + xrDestroySpatialAnchorStoreConnectionMSFT = caps[191]; + xrPersistSpatialAnchorMSFT = caps[192]; + xrEnumeratePersistedSpatialAnchorNamesMSFT = caps[193]; + xrCreateSpatialAnchorFromPersistedNameMSFT = caps[194]; + xrUnpersistSpatialAnchorMSFT = caps[195]; + xrClearSpatialAnchorStoreMSFT = caps[196]; + xrCreateSpatialGraphNodeSpaceMSFT = caps[197]; + xrTryCreateSpatialGraphStaticNodeBindingMSFT = caps[198]; + xrDestroySpatialGraphNodeBindingMSFT = caps[199]; + xrGetSpatialGraphNodeBindingPropertiesMSFT = caps[200]; + xrGetAudioOutputDeviceGuidOculus = caps[201]; + xrGetAudioInputDeviceGuidOculus = caps[202]; + xrEnumerateExternalCamerasOCULUS = caps[203]; + xrSetTrackingOptimizationSettingsHintQCOM = caps[204]; + xrSetEnvironmentDepthEstimationVARJO = caps[205]; + xrSetMarkerTrackingVARJO = caps[206]; + xrSetMarkerTrackingTimeoutVARJO = caps[207]; + xrSetMarkerTrackingPredictionVARJO = caps[208]; + xrGetMarkerSizeVARJO = caps[209]; + xrCreateMarkerSpaceVARJO = caps[210]; + xrSetViewOffsetVARJO = caps[211]; } private static boolean check_XR10(FunctionProvider provider, long[] caps, java.util.Set ext) { @@ -1085,8 +1033,8 @@ private static boolean check_XR10(FunctionProvider provider, long[] caps, java.u "xrSuggestInteractionProfileBindings", "xrAttachSessionActionSets", "xrGetCurrentInteractionProfile", "xrGetActionStateBoolean", "xrGetActionStateFloat", "xrGetActionStateVector2f", "xrGetActionStatePose", "xrSyncActions", "xrEnumerateBoundSourcesForAction", "xrGetInputSourceLocalizedName", "xrApplyHapticFeedback", "xrStopHapticFeedback" - ) || reportMissing("XR", "OpenXR10"); - } + ) || reportMissing("XR", "OpenXR10"); + } private static boolean check_ALMALENCE_digital_lens_control(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_ALMALENCE_digital_lens_control")) { @@ -1097,8 +1045,8 @@ private static boolean check_ALMALENCE_digital_lens_control(FunctionProvider pro 51 }, "xrSetDigitalLensControlALMALENCE" - ) || reportMissing("XR", "XR_ALMALENCE_digital_lens_control"); - } + ) || reportMissing("XR", "XR_ALMALENCE_digital_lens_control"); + } private static boolean check_EXT_conformance_automation(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_EXT_conformance_automation")) { @@ -1110,8 +1058,8 @@ private static boolean check_EXT_conformance_automation(FunctionProvider provide }, "xrSetInputDeviceActiveEXT", "xrSetInputDeviceStateBoolEXT", "xrSetInputDeviceStateFloatEXT", "xrSetInputDeviceStateVector2fEXT", "xrSetInputDeviceLocationEXT" - ) || reportMissing("XR", "XR_EXT_conformance_automation"); - } + ) || reportMissing("XR", "XR_EXT_conformance_automation"); + } private static boolean check_EXT_debug_utils(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_EXT_debug_utils")) { @@ -1123,8 +1071,8 @@ private static boolean check_EXT_debug_utils(FunctionProvider provider, long[] c }, "xrSetDebugUtilsObjectNameEXT", "xrCreateDebugUtilsMessengerEXT", "xrDestroyDebugUtilsMessengerEXT", "xrSubmitDebugUtilsMessageEXT", "xrSessionBeginDebugUtilsLabelRegionEXT", "xrSessionEndDebugUtilsLabelRegionEXT", "xrSessionInsertDebugUtilsLabelEXT" - ) || reportMissing("XR", "XR_EXT_debug_utils"); - } + ) || reportMissing("XR", "XR_EXT_debug_utils"); + } private static boolean check_EXT_hand_tracking(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_EXT_hand_tracking")) { @@ -1135,8 +1083,8 @@ private static boolean check_EXT_hand_tracking(FunctionProvider provider, long[] 64, 65, 66 }, "xrCreateHandTrackerEXT", "xrDestroyHandTrackerEXT", "xrLocateHandJointsEXT" - ) || reportMissing("XR", "XR_EXT_hand_tracking"); - } + ) || reportMissing("XR", "XR_EXT_hand_tracking"); + } private static boolean check_EXT_performance_settings(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_EXT_performance_settings")) { @@ -1147,21 +1095,8 @@ private static boolean check_EXT_performance_settings(FunctionProvider provider, 67 }, "xrPerfSettingsSetPerformanceLevelEXT" - ) || reportMissing("XR", "XR_EXT_performance_settings"); - } - - private static boolean check_EXT_plane_detection(FunctionProvider provider, long[] caps, java.util.Set ext) { - if (!ext.contains("XR_EXT_plane_detection")) { - return false; - } - - return checkFunctions(provider, caps, new int[] { - 68, 69, 70, 71, 72, 73 - }, - "xrCreatePlaneDetectorEXT", "xrDestroyPlaneDetectorEXT", "xrBeginPlaneDetectionEXT", "xrGetPlaneDetectionStateEXT", "xrGetPlaneDetectionsEXT", - "xrGetPlanePolygonBufferEXT" - ) || reportMissing("XR", "XR_EXT_plane_detection"); - } + ) || reportMissing("XR", "XR_EXT_performance_settings"); + } private static boolean check_EXT_thermal_query(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_EXT_thermal_query")) { @@ -1169,11 +1104,11 @@ private static boolean check_EXT_thermal_query(FunctionProvider provider, long[] } return checkFunctions(provider, caps, new int[] { - 74 + 68 }, "xrThermalGetTemperatureTrendEXT" - ) || reportMissing("XR", "XR_EXT_thermal_query"); - } + ) || reportMissing("XR", "XR_EXT_thermal_query"); + } private static boolean check_FB_body_tracking(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_FB_body_tracking")) { @@ -1181,11 +1116,11 @@ private static boolean check_FB_body_tracking(FunctionProvider provider, long[] } return checkFunctions(provider, caps, new int[] { - 75, 76, 77, 78 + 69, 70, 71, 72 }, "xrCreateBodyTrackerFB", "xrDestroyBodyTrackerFB", "xrLocateBodyJointsFB", "xrGetBodySkeletonFB" - ) || reportMissing("XR", "XR_FB_body_tracking"); - } + ) || reportMissing("XR", "XR_FB_body_tracking"); + } private static boolean check_FB_color_space(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_FB_color_space")) { @@ -1193,11 +1128,11 @@ private static boolean check_FB_color_space(FunctionProvider provider, long[] ca } return checkFunctions(provider, caps, new int[] { - 79, 80 + 73, 74 }, "xrEnumerateColorSpacesFB", "xrSetColorSpaceFB" - ) || reportMissing("XR", "XR_FB_color_space"); - } + ) || reportMissing("XR", "XR_FB_color_space"); + } private static boolean check_FB_display_refresh_rate(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_FB_display_refresh_rate")) { @@ -1205,11 +1140,11 @@ private static boolean check_FB_display_refresh_rate(FunctionProvider provider, } return checkFunctions(provider, caps, new int[] { - 81, 82, 83 + 75, 76, 77 }, "xrEnumerateDisplayRefreshRatesFB", "xrGetDisplayRefreshRateFB", "xrRequestDisplayRefreshRateFB" - ) || reportMissing("XR", "XR_FB_display_refresh_rate"); - } + ) || reportMissing("XR", "XR_FB_display_refresh_rate"); + } private static boolean check_FB_eye_tracking_social(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_FB_eye_tracking_social")) { @@ -1217,11 +1152,11 @@ private static boolean check_FB_eye_tracking_social(FunctionProvider provider, l } return checkFunctions(provider, caps, new int[] { - 84, 85, 86 + 78, 79, 80 }, "xrCreateEyeTrackerFB", "xrDestroyEyeTrackerFB", "xrGetEyeGazesFB" - ) || reportMissing("XR", "XR_FB_eye_tracking_social"); - } + ) || reportMissing("XR", "XR_FB_eye_tracking_social"); + } private static boolean check_FB_face_tracking(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_FB_face_tracking")) { @@ -1229,11 +1164,11 @@ private static boolean check_FB_face_tracking(FunctionProvider provider, long[] } return checkFunctions(provider, caps, new int[] { - 87, 88, 89 + 81, 82, 83 }, "xrCreateFaceTrackerFB", "xrDestroyFaceTrackerFB", "xrGetFaceExpressionWeightsFB" - ) || reportMissing("XR", "XR_FB_face_tracking"); - } + ) || reportMissing("XR", "XR_FB_face_tracking"); + } private static boolean check_FB_foveation(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_FB_foveation")) { @@ -1241,11 +1176,11 @@ private static boolean check_FB_foveation(FunctionProvider provider, long[] caps } return checkFunctions(provider, caps, new int[] { - 90, 91 + 84, 85 }, "xrCreateFoveationProfileFB", "xrDestroyFoveationProfileFB" - ) || reportMissing("XR", "XR_FB_foveation"); - } + ) || reportMissing("XR", "XR_FB_foveation"); + } private static boolean check_FB_hand_tracking_mesh(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_FB_hand_tracking_mesh")) { @@ -1253,11 +1188,11 @@ private static boolean check_FB_hand_tracking_mesh(FunctionProvider provider, lo } return checkFunctions(provider, caps, new int[] { - 92 + 86 }, "xrGetHandMeshFB" - ) || reportMissing("XR", "XR_FB_hand_tracking_mesh"); - } + ) || reportMissing("XR", "XR_FB_hand_tracking_mesh"); + } private static boolean check_FB_haptic_pcm(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_FB_haptic_pcm")) { @@ -1265,11 +1200,11 @@ private static boolean check_FB_haptic_pcm(FunctionProvider provider, long[] cap } return checkFunctions(provider, caps, new int[] { - 93 + 87 }, "xrGetDeviceSampleRateFB" - ) || reportMissing("XR", "XR_FB_haptic_pcm"); - } + ) || reportMissing("XR", "XR_FB_haptic_pcm"); + } private static boolean check_FB_keyboard_tracking(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_FB_keyboard_tracking")) { @@ -1277,11 +1212,11 @@ private static boolean check_FB_keyboard_tracking(FunctionProvider provider, lon } return checkFunctions(provider, caps, new int[] { - 94, 95 + 88, 89 }, "xrQuerySystemTrackedKeyboardFB", "xrCreateKeyboardSpaceFB" - ) || reportMissing("XR", "XR_FB_keyboard_tracking"); - } + ) || reportMissing("XR", "XR_FB_keyboard_tracking"); + } private static boolean check_FB_passthrough(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_FB_passthrough")) { @@ -1289,13 +1224,13 @@ private static boolean check_FB_passthrough(FunctionProvider provider, long[] ca } return checkFunctions(provider, caps, new int[] { - 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107 + 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101 }, "xrCreatePassthroughFB", "xrDestroyPassthroughFB", "xrPassthroughStartFB", "xrPassthroughPauseFB", "xrCreatePassthroughLayerFB", "xrDestroyPassthroughLayerFB", "xrPassthroughLayerPauseFB", "xrPassthroughLayerResumeFB", "xrPassthroughLayerSetStyleFB", "xrCreateGeometryInstanceFB", "xrDestroyGeometryInstanceFB", "xrGeometryInstanceSetTransformFB" - ) || reportMissing("XR", "XR_FB_passthrough"); - } + ) || reportMissing("XR", "XR_FB_passthrough"); + } private static boolean check_FB_passthrough_keyboard_hands(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_FB_passthrough_keyboard_hands")) { @@ -1303,11 +1238,11 @@ private static boolean check_FB_passthrough_keyboard_hands(FunctionProvider prov } return checkFunctions(provider, caps, new int[] { - 108 + 102 }, "xrPassthroughLayerSetKeyboardHandsIntensityFB" - ) || reportMissing("XR", "XR_FB_passthrough_keyboard_hands"); - } + ) || reportMissing("XR", "XR_FB_passthrough_keyboard_hands"); + } private static boolean check_FB_render_model(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_FB_render_model")) { @@ -1315,11 +1250,11 @@ private static boolean check_FB_render_model(FunctionProvider provider, long[] c } return checkFunctions(provider, caps, new int[] { - 109, 110, 111 + 103, 104, 105 }, "xrEnumerateRenderModelPathsFB", "xrGetRenderModelPropertiesFB", "xrLoadRenderModelFB" - ) || reportMissing("XR", "XR_FB_render_model"); - } + ) || reportMissing("XR", "XR_FB_render_model"); + } private static boolean check_FB_scene(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_FB_scene")) { @@ -1327,11 +1262,11 @@ private static boolean check_FB_scene(FunctionProvider provider, long[] caps, ja } return checkFunctions(provider, caps, new int[] { - 112, 113, 114, 115, 116 + 106, 107, 108, 109, 110 }, "xrGetSpaceBoundingBox2DFB", "xrGetSpaceBoundingBox3DFB", "xrGetSpaceSemanticLabelsFB", "xrGetSpaceBoundary2DFB", "xrGetSpaceRoomLayoutFB" - ) || reportMissing("XR", "XR_FB_scene"); - } + ) || reportMissing("XR", "XR_FB_scene"); + } private static boolean check_FB_scene_capture(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_FB_scene_capture")) { @@ -1339,11 +1274,11 @@ private static boolean check_FB_scene_capture(FunctionProvider provider, long[] } return checkFunctions(provider, caps, new int[] { - 117 + 111 }, "xrRequestSceneCaptureFB" - ) || reportMissing("XR", "XR_FB_scene_capture"); - } + ) || reportMissing("XR", "XR_FB_scene_capture"); + } private static boolean check_FB_spatial_entity(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_FB_spatial_entity")) { @@ -1351,12 +1286,12 @@ private static boolean check_FB_spatial_entity(FunctionProvider provider, long[] } return checkFunctions(provider, caps, new int[] { - 118, 119, 120, 121, 122 + 112, 113, 114, 115, 116 }, "xrCreateSpatialAnchorFB", "xrGetSpaceUuidFB", "xrEnumerateSpaceSupportedComponentsFB", "xrSetSpaceComponentStatusFB", "xrGetSpaceComponentStatusFB" - ) || reportMissing("XR", "XR_FB_spatial_entity"); - } + ) || reportMissing("XR", "XR_FB_spatial_entity"); + } private static boolean check_FB_spatial_entity_container(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_FB_spatial_entity_container")) { @@ -1364,11 +1299,11 @@ private static boolean check_FB_spatial_entity_container(FunctionProvider provid } return checkFunctions(provider, caps, new int[] { - 123 + 117 }, "xrGetSpaceContainerFB" - ) || reportMissing("XR", "XR_FB_spatial_entity_container"); - } + ) || reportMissing("XR", "XR_FB_spatial_entity_container"); + } private static boolean check_FB_spatial_entity_query(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_FB_spatial_entity_query")) { @@ -1376,11 +1311,11 @@ private static boolean check_FB_spatial_entity_query(FunctionProvider provider, } return checkFunctions(provider, caps, new int[] { - 124, 125 + 118, 119 }, "xrQuerySpacesFB", "xrRetrieveSpaceQueryResultsFB" - ) || reportMissing("XR", "XR_FB_spatial_entity_query"); - } + ) || reportMissing("XR", "XR_FB_spatial_entity_query"); + } private static boolean check_FB_spatial_entity_sharing(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_FB_spatial_entity_sharing")) { @@ -1388,11 +1323,11 @@ private static boolean check_FB_spatial_entity_sharing(FunctionProvider provider } return checkFunctions(provider, caps, new int[] { - 126 + 120 }, "xrShareSpacesFB" - ) || reportMissing("XR", "XR_FB_spatial_entity_sharing"); - } + ) || reportMissing("XR", "XR_FB_spatial_entity_sharing"); + } private static boolean check_FB_spatial_entity_storage(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_FB_spatial_entity_storage")) { @@ -1400,11 +1335,11 @@ private static boolean check_FB_spatial_entity_storage(FunctionProvider provider } return checkFunctions(provider, caps, new int[] { - 127, 128 + 121, 122 }, "xrSaveSpaceFB", "xrEraseSpaceFB" - ) || reportMissing("XR", "XR_FB_spatial_entity_storage"); - } + ) || reportMissing("XR", "XR_FB_spatial_entity_storage"); + } private static boolean check_FB_spatial_entity_storage_batch(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_FB_spatial_entity_storage_batch")) { @@ -1412,11 +1347,11 @@ private static boolean check_FB_spatial_entity_storage_batch(FunctionProvider pr } return checkFunctions(provider, caps, new int[] { - 129 + 123 }, "xrSaveSpaceListFB" - ) || reportMissing("XR", "XR_FB_spatial_entity_storage_batch"); - } + ) || reportMissing("XR", "XR_FB_spatial_entity_storage_batch"); + } private static boolean check_FB_spatial_entity_user(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_FB_spatial_entity_user")) { @@ -1424,11 +1359,11 @@ private static boolean check_FB_spatial_entity_user(FunctionProvider provider, l } return checkFunctions(provider, caps, new int[] { - 130, 131, 132 + 124, 125, 126 }, "xrCreateSpaceUserFB", "xrGetSpaceUserIdFB", "xrDestroySpaceUserFB" - ) || reportMissing("XR", "XR_FB_spatial_entity_user"); - } + ) || reportMissing("XR", "XR_FB_spatial_entity_user"); + } private static boolean check_FB_swapchain_update_state(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_FB_swapchain_update_state")) { @@ -1436,11 +1371,11 @@ private static boolean check_FB_swapchain_update_state(FunctionProvider provider } return checkFunctions(provider, caps, new int[] { - 133, 134 + 127, 128 }, "xrUpdateSwapchainFB", "xrGetSwapchainStateFB" - ) || reportMissing("XR", "XR_FB_swapchain_update_state"); - } + ) || reportMissing("XR", "XR_FB_swapchain_update_state"); + } private static boolean check_FB_triangle_mesh(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_FB_triangle_mesh")) { @@ -1448,12 +1383,12 @@ private static boolean check_FB_triangle_mesh(FunctionProvider provider, long[] } return checkFunctions(provider, caps, new int[] { - 135, 136, 137, 138, 139, 140, 141, 142 + 129, 130, 131, 132, 133, 134, 135, 136 }, "xrCreateTriangleMeshFB", "xrDestroyTriangleMeshFB", "xrTriangleMeshGetVertexBufferFB", "xrTriangleMeshGetIndexBufferFB", "xrTriangleMeshBeginUpdateFB", "xrTriangleMeshEndUpdateFB", "xrTriangleMeshBeginVertexBufferUpdateFB", "xrTriangleMeshEndVertexBufferUpdateFB" - ) || reportMissing("XR", "XR_FB_triangle_mesh"); - } + ) || reportMissing("XR", "XR_FB_triangle_mesh"); + } private static boolean check_HTC_facial_tracking(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_HTC_facial_tracking")) { @@ -1461,11 +1396,11 @@ private static boolean check_HTC_facial_tracking(FunctionProvider provider, long } return checkFunctions(provider, caps, new int[] { - 143, 144, 145 + 137, 138, 139 }, "xrCreateFacialTrackerHTC", "xrDestroyFacialTrackerHTC", "xrGetFacialExpressionsHTC" - ) || reportMissing("XR", "XR_HTC_facial_tracking"); - } + ) || reportMissing("XR", "XR_HTC_facial_tracking"); + } private static boolean check_HTC_foveation(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_HTC_foveation")) { @@ -1473,11 +1408,11 @@ private static boolean check_HTC_foveation(FunctionProvider provider, long[] cap } return checkFunctions(provider, caps, new int[] { - 146 + 140 }, "xrApplyFoveationHTC" - ) || reportMissing("XR", "XR_HTC_foveation"); - } + ) || reportMissing("XR", "XR_HTC_foveation"); + } private static boolean check_HTC_passthrough(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_HTC_passthrough")) { @@ -1485,11 +1420,11 @@ private static boolean check_HTC_passthrough(FunctionProvider provider, long[] c } return checkFunctions(provider, caps, new int[] { - 147, 148 + 141, 142 }, "xrCreatePassthroughHTC", "xrDestroyPassthroughHTC" - ) || reportMissing("XR", "XR_HTC_passthrough"); - } + ) || reportMissing("XR", "XR_HTC_passthrough"); + } private static boolean check_HTCX_vive_tracker_interaction(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_HTCX_vive_tracker_interaction")) { @@ -1497,11 +1432,11 @@ private static boolean check_HTCX_vive_tracker_interaction(FunctionProvider prov } return checkFunctions(provider, caps, new int[] { - 149 + 143 }, "xrEnumerateViveTrackerPathsHTCX" - ) || reportMissing("XR", "XR_HTCX_vive_tracker_interaction"); - } + ) || reportMissing("XR", "XR_HTCX_vive_tracker_interaction"); + } private static boolean check_KHR_convert_timespec_time(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_KHR_convert_timespec_time")) { @@ -1509,11 +1444,11 @@ private static boolean check_KHR_convert_timespec_time(FunctionProvider provider } return checkFunctions(provider, caps, new int[] { - 150, 151 + 144, 145 }, "xrConvertTimespecTimeToTimeKHR", "xrConvertTimeToTimespecTimeKHR" - ) || reportMissing("XR", "XR_KHR_convert_timespec_time"); - } + ) || reportMissing("XR", "XR_KHR_convert_timespec_time"); + } private static boolean check_KHR_opengl_enable(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_KHR_opengl_enable")) { @@ -1521,11 +1456,23 @@ private static boolean check_KHR_opengl_enable(FunctionProvider provider, long[] } return checkFunctions(provider, caps, new int[] { - 152 + 146 }, "xrGetOpenGLGraphicsRequirementsKHR" - ) || reportMissing("XR", "XR_KHR_opengl_enable"); - } + ) || reportMissing("XR", "XR_KHR_opengl_enable"); + } + + private static boolean check_KHR_opengl_es_enable(FunctionProvider provider, long[] caps, java.util.Set ext) { + if (!ext.contains("XR_KHR_opengl_es_enable")) { + return false; + } + + return checkFunctions(provider, caps, new int[] { + 147 + }, + "xrGetOpenGLESGraphicsRequirementsKHR" + ) || reportMissing("XR", "XR_KHR_opengl_es_enable"); + } private static boolean check_KHR_visibility_mask(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_KHR_visibility_mask")) { @@ -1533,11 +1480,11 @@ private static boolean check_KHR_visibility_mask(FunctionProvider provider, long } return checkFunctions(provider, caps, new int[] { - 153 + 148 }, "xrGetVisibilityMaskKHR" - ) || reportMissing("XR", "XR_KHR_visibility_mask"); - } + ) || reportMissing("XR", "XR_KHR_visibility_mask"); + } private static boolean check_KHR_vulkan_enable(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_KHR_vulkan_enable")) { @@ -1545,11 +1492,11 @@ private static boolean check_KHR_vulkan_enable(FunctionProvider provider, long[] } return checkFunctions(provider, caps, new int[] { - 154, 155, 156, 157 + 149, 150, 151, 152 }, "xrGetVulkanInstanceExtensionsKHR", "xrGetVulkanDeviceExtensionsKHR", "xrGetVulkanGraphicsDeviceKHR", "xrGetVulkanGraphicsRequirementsKHR" - ) || reportMissing("XR", "XR_KHR_vulkan_enable"); - } + ) || reportMissing("XR", "XR_KHR_vulkan_enable"); + } private static boolean check_KHR_vulkan_enable2(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_KHR_vulkan_enable2")) { @@ -1557,11 +1504,11 @@ private static boolean check_KHR_vulkan_enable2(FunctionProvider provider, long[ } return checkFunctions(provider, caps, new int[] { - 158, 159, 160, 161 + 153, 154, 155, 156 }, "xrCreateVulkanInstanceKHR", "xrCreateVulkanDeviceKHR", "xrGetVulkanGraphicsDevice2KHR", "xrGetVulkanGraphicsRequirements2KHR" - ) || reportMissing("XR", "XR_KHR_vulkan_enable2"); - } + ) || reportMissing("XR", "XR_KHR_vulkan_enable2"); + } private static boolean check_KHR_win32_convert_performance_counter_time(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_KHR_win32_convert_performance_counter_time")) { @@ -1569,11 +1516,11 @@ private static boolean check_KHR_win32_convert_performance_counter_time(Function } return checkFunctions(provider, caps, new int[] { - 162, 163 + 157, 158 }, "xrConvertWin32PerformanceCounterToTimeKHR", "xrConvertTimeToWin32PerformanceCounterKHR" - ) || reportMissing("XR", "XR_KHR_win32_convert_performance_counter_time"); - } + ) || reportMissing("XR", "XR_KHR_win32_convert_performance_counter_time"); + } private static boolean check_META_foveation_eye_tracked(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_META_foveation_eye_tracked")) { @@ -1581,35 +1528,11 @@ private static boolean check_META_foveation_eye_tracked(FunctionProvider provide } return checkFunctions(provider, caps, new int[] { - 164 + 159 }, "xrGetFoveationEyeTrackedStateMETA" - ) || reportMissing("XR", "XR_META_foveation_eye_tracked"); - } - - private static boolean check_META_passthrough_color_lut(FunctionProvider provider, long[] caps, java.util.Set ext) { - if (!ext.contains("XR_META_passthrough_color_lut")) { - return false; - } - - return checkFunctions(provider, caps, new int[] { - 165, 166, 167 - }, - "xrCreatePassthroughColorLutMETA", "xrDestroyPassthroughColorLutMETA", "xrUpdatePassthroughColorLutMETA" - ) || reportMissing("XR", "XR_META_passthrough_color_lut"); - } - - private static boolean check_META_passthrough_preferences(FunctionProvider provider, long[] caps, java.util.Set ext) { - if (!ext.contains("XR_META_passthrough_preferences")) { - return false; - } - - return checkFunctions(provider, caps, new int[] { - 168 - }, - "xrGetPassthroughPreferencesMETA" - ) || reportMissing("XR", "XR_META_passthrough_preferences"); - } + ) || reportMissing("XR", "XR_META_foveation_eye_tracked"); + } private static boolean check_META_performance_metrics(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_META_performance_metrics")) { @@ -1617,27 +1540,12 @@ private static boolean check_META_performance_metrics(FunctionProvider provider, } return checkFunctions(provider, caps, new int[] { - 169, 170, 171, 172 + 160, 161, 162, 163 }, "xrEnumeratePerformanceMetricsCounterPathsMETA", "xrSetPerformanceMetricsStateMETA", "xrGetPerformanceMetricsStateMETA", "xrQueryPerformanceMetricsCounterMETA" - ) || reportMissing("XR", "XR_META_performance_metrics"); - } - - private static boolean check_META_virtual_keyboard(FunctionProvider provider, long[] caps, java.util.Set ext) { - if (!ext.contains("XR_META_virtual_keyboard")) { - return false; - } - - return checkFunctions(provider, caps, new int[] { - 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183 - }, - "xrCreateVirtualKeyboardMETA", "xrDestroyVirtualKeyboardMETA", "xrCreateVirtualKeyboardSpaceMETA", "xrSuggestVirtualKeyboardLocationMETA", - "xrGetVirtualKeyboardScaleMETA", "xrSetVirtualKeyboardModelVisibilityMETA", "xrGetVirtualKeyboardModelAnimationStatesMETA", - "xrGetVirtualKeyboardDirtyTexturesMETA", "xrGetVirtualKeyboardTextureDataMETA", "xrSendVirtualKeyboardInputMETA", - "xrChangeVirtualKeyboardTextContextMETA" - ) || reportMissing("XR", "XR_META_virtual_keyboard"); - } + ) || reportMissing("XR", "XR_META_performance_metrics"); + } private static boolean check_ML_compat(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_ML_compat")) { @@ -1645,11 +1553,11 @@ private static boolean check_ML_compat(FunctionProvider provider, long[] caps, j } return checkFunctions(provider, caps, new int[] { - 184 + 164 }, "xrCreateSpaceFromCoordinateFrameUIDML" - ) || reportMissing("XR", "XR_ML_compat"); - } + ) || reportMissing("XR", "XR_ML_compat"); + } private static boolean check_MNDX_force_feedback_curl(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_MNDX_force_feedback_curl")) { @@ -1657,11 +1565,11 @@ private static boolean check_MNDX_force_feedback_curl(FunctionProvider provider, } return checkFunctions(provider, caps, new int[] { - 185 + 165 }, "xrApplyForceFeedbackCurlMNDX" - ) || reportMissing("XR", "XR_MNDX_force_feedback_curl"); - } + ) || reportMissing("XR", "XR_MNDX_force_feedback_curl"); + } private static boolean check_MSFT_composition_layer_reprojection(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_MSFT_composition_layer_reprojection")) { @@ -1669,11 +1577,11 @@ private static boolean check_MSFT_composition_layer_reprojection(FunctionProvide } return checkFunctions(provider, caps, new int[] { - 186 + 166 }, "xrEnumerateReprojectionModesMSFT" - ) || reportMissing("XR", "XR_MSFT_composition_layer_reprojection"); - } + ) || reportMissing("XR", "XR_MSFT_composition_layer_reprojection"); + } private static boolean check_MSFT_controller_model(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_MSFT_controller_model")) { @@ -1681,11 +1589,11 @@ private static boolean check_MSFT_controller_model(FunctionProvider provider, lo } return checkFunctions(provider, caps, new int[] { - 187, 188, 189, 190 + 167, 168, 169, 170 }, "xrGetControllerModelKeyMSFT", "xrLoadControllerModelMSFT", "xrGetControllerModelPropertiesMSFT", "xrGetControllerModelStateMSFT" - ) || reportMissing("XR", "XR_MSFT_controller_model"); - } + ) || reportMissing("XR", "XR_MSFT_controller_model"); + } private static boolean check_MSFT_hand_tracking_mesh(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_MSFT_hand_tracking_mesh")) { @@ -1693,11 +1601,11 @@ private static boolean check_MSFT_hand_tracking_mesh(FunctionProvider provider, } return checkFunctions(provider, caps, new int[] { - 191, 192 + 171, 172 }, "xrCreateHandMeshSpaceMSFT", "xrUpdateHandMeshMSFT" - ) || reportMissing("XR", "XR_MSFT_hand_tracking_mesh"); - } + ) || reportMissing("XR", "XR_MSFT_hand_tracking_mesh"); + } private static boolean check_MSFT_perception_anchor_interop(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_MSFT_perception_anchor_interop")) { @@ -1705,11 +1613,11 @@ private static boolean check_MSFT_perception_anchor_interop(FunctionProvider pro } return checkFunctions(provider, caps, new int[] { - 193, 194 + 173, 174 }, "xrCreateSpatialAnchorFromPerceptionAnchorMSFT", "xrTryGetPerceptionAnchorFromSpatialAnchorMSFT" - ) || reportMissing("XR", "XR_MSFT_perception_anchor_interop"); - } + ) || reportMissing("XR", "XR_MSFT_perception_anchor_interop"); + } private static boolean check_MSFT_scene_understanding(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_MSFT_scene_understanding")) { @@ -1717,12 +1625,12 @@ private static boolean check_MSFT_scene_understanding(FunctionProvider provider, } return checkFunctions(provider, caps, new int[] { - 195, 196, 197, 198, 199, 200, 201, 202, 203, 204 + 175, 176, 177, 178, 179, 180, 181, 182, 183, 184 }, "xrEnumerateSceneComputeFeaturesMSFT", "xrCreateSceneObserverMSFT", "xrDestroySceneObserverMSFT", "xrCreateSceneMSFT", "xrDestroySceneMSFT", "xrComputeNewSceneMSFT", "xrGetSceneComputeStateMSFT", "xrGetSceneComponentsMSFT", "xrLocateSceneComponentsMSFT", "xrGetSceneMeshBuffersMSFT" - ) || reportMissing("XR", "XR_MSFT_scene_understanding"); - } + ) || reportMissing("XR", "XR_MSFT_scene_understanding"); + } private static boolean check_MSFT_scene_understanding_serialization(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_MSFT_scene_understanding_serialization")) { @@ -1730,11 +1638,11 @@ private static boolean check_MSFT_scene_understanding_serialization(FunctionProv } return checkFunctions(provider, caps, new int[] { - 205, 206 + 185, 186 }, "xrDeserializeSceneMSFT", "xrGetSerializedSceneFragmentDataMSFT" - ) || reportMissing("XR", "XR_MSFT_scene_understanding_serialization"); - } + ) || reportMissing("XR", "XR_MSFT_scene_understanding_serialization"); + } private static boolean check_MSFT_spatial_anchor(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_MSFT_spatial_anchor")) { @@ -1742,11 +1650,11 @@ private static boolean check_MSFT_spatial_anchor(FunctionProvider provider, long } return checkFunctions(provider, caps, new int[] { - 207, 208, 209 + 187, 188, 189 }, "xrCreateSpatialAnchorMSFT", "xrCreateSpatialAnchorSpaceMSFT", "xrDestroySpatialAnchorMSFT" - ) || reportMissing("XR", "XR_MSFT_spatial_anchor"); - } + ) || reportMissing("XR", "XR_MSFT_spatial_anchor"); + } private static boolean check_MSFT_spatial_anchor_persistence(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_MSFT_spatial_anchor_persistence")) { @@ -1754,13 +1662,13 @@ private static boolean check_MSFT_spatial_anchor_persistence(FunctionProvider pr } return checkFunctions(provider, caps, new int[] { - 210, 211, 212, 213, 214, 215, 216 + 190, 191, 192, 193, 194, 195, 196 }, "xrCreateSpatialAnchorStoreConnectionMSFT", "xrDestroySpatialAnchorStoreConnectionMSFT", "xrPersistSpatialAnchorMSFT", "xrEnumeratePersistedSpatialAnchorNamesMSFT", "xrCreateSpatialAnchorFromPersistedNameMSFT", "xrUnpersistSpatialAnchorMSFT", "xrClearSpatialAnchorStoreMSFT" - ) || reportMissing("XR", "XR_MSFT_spatial_anchor_persistence"); - } + ) || reportMissing("XR", "XR_MSFT_spatial_anchor_persistence"); + } private static boolean check_MSFT_spatial_graph_bridge(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_MSFT_spatial_graph_bridge")) { @@ -1768,12 +1676,12 @@ private static boolean check_MSFT_spatial_graph_bridge(FunctionProvider provider } return checkFunctions(provider, caps, new int[] { - 217, 218, 219, 220 + 197, 198, 199, 200 }, "xrCreateSpatialGraphNodeSpaceMSFT", "xrTryCreateSpatialGraphStaticNodeBindingMSFT", "xrDestroySpatialGraphNodeBindingMSFT", "xrGetSpatialGraphNodeBindingPropertiesMSFT" - ) || reportMissing("XR", "XR_MSFT_spatial_graph_bridge"); - } + ) || reportMissing("XR", "XR_MSFT_spatial_graph_bridge"); + } private static boolean check_OCULUS_audio_device_guid(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_OCULUS_audio_device_guid")) { @@ -1781,11 +1689,11 @@ private static boolean check_OCULUS_audio_device_guid(FunctionProvider provider, } return checkFunctions(provider, caps, new int[] { - 221, 222 + 201, 202 }, "xrGetAudioOutputDeviceGuidOculus", "xrGetAudioInputDeviceGuidOculus" - ) || reportMissing("XR", "XR_OCULUS_audio_device_guid"); - } + ) || reportMissing("XR", "XR_OCULUS_audio_device_guid"); + } private static boolean check_OCULUS_external_camera(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_OCULUS_external_camera")) { @@ -1793,11 +1701,11 @@ private static boolean check_OCULUS_external_camera(FunctionProvider provider, l } return checkFunctions(provider, caps, new int[] { - 223 + 203 }, "xrEnumerateExternalCamerasOCULUS" - ) || reportMissing("XR", "XR_OCULUS_external_camera"); - } + ) || reportMissing("XR", "XR_OCULUS_external_camera"); + } private static boolean check_QCOM_tracking_optimization_settings(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_QCOM_tracking_optimization_settings")) { @@ -1805,11 +1713,11 @@ private static boolean check_QCOM_tracking_optimization_settings(FunctionProvide } return checkFunctions(provider, caps, new int[] { - 224 + 204 }, "xrSetTrackingOptimizationSettingsHintQCOM" - ) || reportMissing("XR", "XR_QCOM_tracking_optimization_settings"); - } + ) || reportMissing("XR", "XR_QCOM_tracking_optimization_settings"); + } private static boolean check_VARJO_environment_depth_estimation(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_VARJO_environment_depth_estimation")) { @@ -1817,11 +1725,11 @@ private static boolean check_VARJO_environment_depth_estimation(FunctionProvider } return checkFunctions(provider, caps, new int[] { - 225 + 205 }, "xrSetEnvironmentDepthEstimationVARJO" - ) || reportMissing("XR", "XR_VARJO_environment_depth_estimation"); - } + ) || reportMissing("XR", "XR_VARJO_environment_depth_estimation"); + } private static boolean check_VARJO_marker_tracking(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_VARJO_marker_tracking")) { @@ -1829,12 +1737,12 @@ private static boolean check_VARJO_marker_tracking(FunctionProvider provider, lo } return checkFunctions(provider, caps, new int[] { - 226, 227, 228, 229, 230 + 206, 207, 208, 209, 210 }, "xrSetMarkerTrackingVARJO", "xrSetMarkerTrackingTimeoutVARJO", "xrSetMarkerTrackingPredictionVARJO", "xrGetMarkerSizeVARJO", "xrCreateMarkerSpaceVARJO" - ) || reportMissing("XR", "XR_VARJO_marker_tracking"); - } + ) || reportMissing("XR", "XR_VARJO_marker_tracking"); + } private static boolean check_VARJO_view_offset(FunctionProvider provider, long[] caps, java.util.Set ext) { if (!ext.contains("XR_VARJO_view_offset")) { @@ -1842,10 +1750,10 @@ private static boolean check_VARJO_view_offset(FunctionProvider provider, long[] } return checkFunctions(provider, caps, new int[] { - 231 + 211 }, "xrSetViewOffsetVARJO" - ) || reportMissing("XR", "XR_VARJO_view_offset"); - } + ) || reportMissing("XR", "XR_VARJO_view_offset"); + } -} +} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrAction.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrAction.java index be493217e1..58bc23578a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrAction.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrAction.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrAction} handle. */ + +/** Wraps an {@code XrAction} handle. */ public class XrAction extends DispatchableHandle { private final XrActionSet actionSet; @@ -26,4 +26,4 @@ public XrActionSet getActionSet() { return actionSet; } -} +} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionCreateInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionCreateInfo.java index 0b6e3032d2..4c07091b75 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionCreateInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionCreateInfo.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import static org.lwjgl.openxr.XR10.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.XR10.*; + /** * XrAction creation info. * @@ -56,13 +56,13 @@ *
  • The application called {@code xrGetActionState*} or a haptic function with a subaction path that was not specified when the action was created.
  • * * - *

    If {@code actionName} or {@code localizedActionName} are empty strings, the runtime must return {@link XR10#XR_ERROR_NAME_INVALID ERROR_NAME_INVALID} or {@link XR10#XR_ERROR_LOCALIZED_NAME_INVALID ERROR_LOCALIZED_NAME_INVALID} respectively. If {@code actionName} or {@code localizedActionName} are duplicates of the corresponding field for any existing action in the specified action set, the runtime must return {@link XR10#XR_ERROR_NAME_DUPLICATED ERROR_NAME_DUPLICATED} or {@link XR10#XR_ERROR_LOCALIZED_NAME_DUPLICATED ERROR_LOCALIZED_NAME_DUPLICATED} respectively. If the conflicting action is destroyed, the conflicting field is no longer considered duplicated. If {@code actionName} contains characters which are not allowed in a single level of a well-formed path string, the runtime must return {@link XR10#XR_ERROR_PATH_FORMAT_INVALID ERROR_PATH_FORMAT_INVALID}.

    + *

    If {@code actionName} or {@code localizedActionName} are empty strings, the runtime must return {@link XR10#XR_ERROR_NAME_INVALID ERROR_NAME_INVALID} or {@link XR10#XR_ERROR_LOCALIZED_NAME_INVALID ERROR_LOCALIZED_NAME_INVALID} respectively. If {@code actionName} or {@code localizedActionName} are duplicates of the corresponding field for any existing action in the specified action set, the runtime must return {@link XR10#XR_ERROR_NAME_DUPLICATED ERROR_NAME_DUPLICATED} or {@link XR10#XR_ERROR_LOCALIZED_NAME_DUPLICATED ERROR_LOCALIZED_NAME_DUPLICATED} respectively. If the conflicting action is destroyed, the conflicting field is no longer considered duplicated. If {@code actionName} contains characters which are not allowed in a single level of a well-formed path string, the runtime must return {@link XR10#XR_ERROR_PATH_FORMAT_INVALID ERROR_PATH_FORMAT_INVALID}.

    * *
    Valid Usage (Implicit)
    * *
      *
    • {@code type} must be {@link XR10#XR_TYPE_ACTION_CREATE_INFO TYPE_ACTION_CREATE_INFO}
    • - *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • + *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • *
    • {@code actionName} must be a null-terminated UTF-8 string whose length is less than or equal to {@link XR10#XR_MAX_ACTION_NAME_SIZE MAX_ACTION_NAME_SIZE}
    • *
    • {@code actionType} must be a valid {@code XrActionType} value
    • *
    • If {@code countSubactionPaths} is not 0, {@code subactionPaths} must be a pointer to an array of {@code countSubactionPaths} valid {@code XrPath} values
    • @@ -85,8 +85,8 @@ * XrPath const * {@link #subactionPaths}; * char {@link #localizedActionName}[XR_MAX_LOCALIZED_ACTION_NAME_SIZE]; * }
    - */ -public class XrActionCreateInfo extends Struct implements NativeResource { + */ +public class XrActionCreateInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -96,36 +96,36 @@ public class XrActionCreateInfo extends Struct implements Na /** The struct member offsets. */ public static final int - TYPE, - NEXT, - ACTIONNAME, - ACTIONTYPE, - COUNTSUBACTIONPATHS, - SUBACTIONPATHS, - LOCALIZEDACTIONNAME; + TYPE, + NEXT, + ACTIONNAME, + ACTIONTYPE, + COUNTSUBACTIONPATHS, + SUBACTIONPATHS, + LOCALIZEDACTIONNAME; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __array(1, XR_MAX_ACTION_NAME_SIZE), - __member(4), - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __array(1, XR_MAX_ACTION_NAME_SIZE), + __member(4), + __member(4), + __member(POINTER_SIZE), __array(1, XR_MAX_LOCALIZED_ACTION_NAME_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - ACTIONNAME = layout.offsetof(2); - ACTIONTYPE = layout.offsetof(3); - COUNTSUBACTIONPATHS = layout.offsetof(4); - SUBACTIONPATHS = layout.offsetof(5); - LOCALIZEDACTIONNAME = layout.offsetof(6); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + ACTIONNAME = layout.offsetof(2); + ACTIONTYPE = layout.offsetof(3); + COUNTSUBACTIONPATHS = layout.offsetof(4); + SUBACTIONPATHS = layout.offsetof(5); + LOCALIZEDACTIONNAME = layout.offsetof(6); + } protected XrActionCreateInfo(long address, @Nullable ByteBuffer container) { super(address, container); @@ -148,70 +148,70 @@ public XrActionCreateInfo(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** an array containing a {@code NULL} terminated string with the name of this action. */ - @NativeType("char[XR_MAX_ACTION_NAME_SIZE]") - public ByteBuffer actionName() { return nactionName(address()); } - /** an array containing a {@code NULL} terminated string with the name of this action. */ - @NativeType("char[XR_MAX_ACTION_NAME_SIZE]") - public String actionNameString() { return nactionNameString(address()); } - /** the {@code XrActionType} of the action to be created. */ - @NativeType("XrActionType") - public int actionType() { return nactionType(address()); } - /** the number of elements in the {@code subactionPaths} array. If {@code subactionPaths} is NULL, this parameter must be 0. */ - @NativeType("uint32_t") - public int countSubactionPaths() { return ncountSubactionPaths(address()); } - /** an array of {@code XrPath} or {@code NULL}. If this array is specified, it contains one or more subaction paths that the application intends to query action state for. */ - @Nullable - @NativeType("XrPath const *") - public LongBuffer subactionPaths() { return nsubactionPaths(address()); } - /** an array containing a {@code NULL} terminated {@code UTF}-8 string that can be presented to the user as a description of the action. This string should be in the system’s current active locale. */ - @NativeType("char[XR_MAX_LOCALIZED_ACTION_NAME_SIZE]") - public ByteBuffer localizedActionName() { return nlocalizedActionName(address()); } - /** an array containing a {@code NULL} terminated {@code UTF}-8 string that can be presented to the user as a description of the action. This string should be in the system’s current active locale. */ - @NativeType("char[XR_MAX_LOCALIZED_ACTION_NAME_SIZE]") - public String localizedActionNameString() { return nlocalizedActionNameString(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrActionCreateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_ACTION_CREATE_INFO TYPE_ACTION_CREATE_INFO} value to the {@link #type} field. */ - public XrActionCreateInfo type$Default() { return type(XR10.XR_TYPE_ACTION_CREATE_INFO); } - /** Sets the specified value to the {@link #next} field. */ - public XrActionCreateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Copies the specified encoded string to the {@link #actionName} field. */ - public XrActionCreateInfo actionName(@NativeType("char[XR_MAX_ACTION_NAME_SIZE]") ByteBuffer value) { nactionName(address(), value); return this; } - /** Sets the specified value to the {@link #actionType} field. */ - public XrActionCreateInfo actionType(@NativeType("XrActionType") int value) { nactionType(address(), value); return this; } - /** Sets the specified value to the {@link #countSubactionPaths} field. */ - public XrActionCreateInfo countSubactionPaths(@NativeType("uint32_t") int value) { ncountSubactionPaths(address(), value); return this; } - /** Sets the address of the specified {@link LongBuffer} to the {@link #subactionPaths} field. */ - public XrActionCreateInfo subactionPaths(@Nullable @NativeType("XrPath const *") LongBuffer value) { nsubactionPaths(address(), value); return this; } - /** Copies the specified encoded string to the {@link #localizedActionName} field. */ - public XrActionCreateInfo localizedActionName(@NativeType("char[XR_MAX_LOCALIZED_ACTION_NAME_SIZE]") ByteBuffer value) { nlocalizedActionName(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** an array containing a {@code NULL} terminated string with the name of this action. */ + @NativeType("char[XR_MAX_ACTION_NAME_SIZE]") + public ByteBuffer actionName() { return nactionName(address()); } + /** an array containing a {@code NULL} terminated string with the name of this action. */ + @NativeType("char[XR_MAX_ACTION_NAME_SIZE]") + public String actionNameString() { return nactionNameString(address()); } + /** the {@code XrActionType} of the action to be created. */ + @NativeType("XrActionType") + public int actionType() { return nactionType(address()); } + /** the number of elements in the {@code subactionPaths} array. If {@code subactionPaths} is NULL, this parameter must be 0. */ + @NativeType("uint32_t") + public int countSubactionPaths() { return ncountSubactionPaths(address()); } + /** an array of {@code XrPath} or {@code NULL}. If this array is specified, it contains one or more subaction paths that the application intends to query action state for. */ + @Nullable + @NativeType("XrPath const *") + public LongBuffer subactionPaths() { return nsubactionPaths(address()); } + /** an array containing a {@code NULL} terminated {@code UTF}-8 string that can be presented to the user as a description of the action. This string should be in the system’s current active locale. */ + @NativeType("char[XR_MAX_LOCALIZED_ACTION_NAME_SIZE]") + public ByteBuffer localizedActionName() { return nlocalizedActionName(address()); } + /** an array containing a {@code NULL} terminated {@code UTF}-8 string that can be presented to the user as a description of the action. This string should be in the system’s current active locale. */ + @NativeType("char[XR_MAX_LOCALIZED_ACTION_NAME_SIZE]") + public String localizedActionNameString() { return nlocalizedActionNameString(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrActionCreateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_ACTION_CREATE_INFO TYPE_ACTION_CREATE_INFO} value to the {@link #type} field. */ + public XrActionCreateInfo type$Default() { return type(XR10.XR_TYPE_ACTION_CREATE_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrActionCreateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Copies the specified encoded string to the {@link #actionName} field. */ + public XrActionCreateInfo actionName(@NativeType("char[XR_MAX_ACTION_NAME_SIZE]") ByteBuffer value) { nactionName(address(), value); return this; } + /** Sets the specified value to the {@link #actionType} field. */ + public XrActionCreateInfo actionType(@NativeType("XrActionType") int value) { nactionType(address(), value); return this; } + /** Sets the specified value to the {@link #countSubactionPaths} field. */ + public XrActionCreateInfo countSubactionPaths(@NativeType("uint32_t") int value) { ncountSubactionPaths(address(), value); return this; } + /** Sets the address of the specified {@link LongBuffer} to the {@link #subactionPaths} field. */ + public XrActionCreateInfo subactionPaths(@Nullable @NativeType("XrPath const *") LongBuffer value) { nsubactionPaths(address(), value); return this; } + /** Copies the specified encoded string to the {@link #localizedActionName} field. */ + public XrActionCreateInfo localizedActionName(@NativeType("char[XR_MAX_LOCALIZED_ACTION_NAME_SIZE]") ByteBuffer value) { nlocalizedActionName(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrActionCreateInfo set( - int type, - long next, - ByteBuffer actionName, - int actionType, - int countSubactionPaths, - @Nullable LongBuffer subactionPaths, + int type, + long next, + ByteBuffer actionName, + int actionType, + int countSubactionPaths, + @Nullable LongBuffer subactionPaths, ByteBuffer localizedActionName - ) { - type(type); - next(next); - actionName(actionName); - actionType(actionType); - countSubactionPaths(countSubactionPaths); - subactionPaths(subactionPaths); - localizedActionName(localizedActionName); + ) { + type(type); + next(next); + actionName(actionName); + actionType(actionType); + countSubactionPaths(countSubactionPaths); + subactionPaths(subactionPaths); + localizedActionName(localizedActionName); return this; } @@ -340,54 +340,54 @@ public static XrActionCreateInfo.Buffer calloc(int capacity, MemoryStack stack) } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionCreateInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrActionCreateInfo.NEXT); } - /** Unsafe version of {@link #actionName}. */ - public static ByteBuffer nactionName(long struct) { return memByteBuffer(struct + XrActionCreateInfo.ACTIONNAME, XR_MAX_ACTION_NAME_SIZE); } - /** Unsafe version of {@link #actionNameString}. */ - public static String nactionNameString(long struct) { return memUTF8(struct + XrActionCreateInfo.ACTIONNAME); } - /** Unsafe version of {@link #actionType}. */ - public static int nactionType(long struct) { return UNSAFE.getInt(null, struct + XrActionCreateInfo.ACTIONTYPE); } - /** Unsafe version of {@link #countSubactionPaths}. */ - public static int ncountSubactionPaths(long struct) { return UNSAFE.getInt(null, struct + XrActionCreateInfo.COUNTSUBACTIONPATHS); } - /** Unsafe version of {@link #subactionPaths() subactionPaths}. */ - @Nullable public static LongBuffer nsubactionPaths(long struct) { return memLongBufferSafe(memGetAddress(struct + XrActionCreateInfo.SUBACTIONPATHS), ncountSubactionPaths(struct)); } - /** Unsafe version of {@link #localizedActionName}. */ - public static ByteBuffer nlocalizedActionName(long struct) { return memByteBuffer(struct + XrActionCreateInfo.LOCALIZEDACTIONNAME, XR_MAX_LOCALIZED_ACTION_NAME_SIZE); } - /** Unsafe version of {@link #localizedActionNameString}. */ - public static String nlocalizedActionNameString(long struct) { return memUTF8(struct + XrActionCreateInfo.LOCALIZEDACTIONNAME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionCreateInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrActionCreateInfo.NEXT, value); } - /** Unsafe version of {@link #actionName(ByteBuffer) actionName}. */ - public static void nactionName(long struct, ByteBuffer value) { - if (CHECKS) { - checkNT1(value); - checkGT(value, XR_MAX_ACTION_NAME_SIZE); - } - memCopy(memAddress(value), struct + XrActionCreateInfo.ACTIONNAME, value.remaining()); - } - /** Unsafe version of {@link #actionType(int) actionType}. */ - public static void nactionType(long struct, int value) { UNSAFE.putInt(null, struct + XrActionCreateInfo.ACTIONTYPE, value); } - /** Sets the specified value to the {@code countSubactionPaths} field of the specified {@code struct}. */ - public static void ncountSubactionPaths(long struct, int value) { UNSAFE.putInt(null, struct + XrActionCreateInfo.COUNTSUBACTIONPATHS, value); } - /** Unsafe version of {@link #subactionPaths(LongBuffer) subactionPaths}. */ - public static void nsubactionPaths(long struct, @Nullable LongBuffer value) { memPutAddress(struct + XrActionCreateInfo.SUBACTIONPATHS, memAddressSafe(value)); if (value != null) { ncountSubactionPaths(struct, value.remaining()); } } - /** Unsafe version of {@link #localizedActionName(ByteBuffer) localizedActionName}. */ - public static void nlocalizedActionName(long struct, ByteBuffer value) { - if (CHECKS) { - checkNT1(value); - checkGT(value, XR_MAX_LOCALIZED_ACTION_NAME_SIZE); - } - memCopy(memAddress(value), struct + XrActionCreateInfo.LOCALIZEDACTIONNAME, value.remaining()); - } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionCreateInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrActionCreateInfo.NEXT); } + /** Unsafe version of {@link #actionName}. */ + public static ByteBuffer nactionName(long struct) { return memByteBuffer(struct + XrActionCreateInfo.ACTIONNAME, XR_MAX_ACTION_NAME_SIZE); } + /** Unsafe version of {@link #actionNameString}. */ + public static String nactionNameString(long struct) { return memUTF8(struct + XrActionCreateInfo.ACTIONNAME); } + /** Unsafe version of {@link #actionType}. */ + public static int nactionType(long struct) { return UNSAFE.getInt(null, struct + XrActionCreateInfo.ACTIONTYPE); } + /** Unsafe version of {@link #countSubactionPaths}. */ + public static int ncountSubactionPaths(long struct) { return UNSAFE.getInt(null, struct + XrActionCreateInfo.COUNTSUBACTIONPATHS); } + /** Unsafe version of {@link #subactionPaths() subactionPaths}. */ + @Nullable public static LongBuffer nsubactionPaths(long struct) { return memLongBufferSafe(memGetAddress(struct + XrActionCreateInfo.SUBACTIONPATHS), ncountSubactionPaths(struct)); } + /** Unsafe version of {@link #localizedActionName}. */ + public static ByteBuffer nlocalizedActionName(long struct) { return memByteBuffer(struct + XrActionCreateInfo.LOCALIZEDACTIONNAME, XR_MAX_LOCALIZED_ACTION_NAME_SIZE); } + /** Unsafe version of {@link #localizedActionNameString}. */ + public static String nlocalizedActionNameString(long struct) { return memUTF8(struct + XrActionCreateInfo.LOCALIZEDACTIONNAME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionCreateInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrActionCreateInfo.NEXT, value); } + /** Unsafe version of {@link #actionName(ByteBuffer) actionName}. */ + public static void nactionName(long struct, ByteBuffer value) { + if (CHECKS) { + checkNT1(value); + checkGT(value, XR_MAX_ACTION_NAME_SIZE); + } + memCopy(memAddress(value), struct + XrActionCreateInfo.ACTIONNAME, value.remaining()); + } + /** Unsafe version of {@link #actionType(int) actionType}. */ + public static void nactionType(long struct, int value) { UNSAFE.putInt(null, struct + XrActionCreateInfo.ACTIONTYPE, value); } + /** Sets the specified value to the {@code countSubactionPaths} field of the specified {@code struct}. */ + public static void ncountSubactionPaths(long struct, int value) { UNSAFE.putInt(null, struct + XrActionCreateInfo.COUNTSUBACTIONPATHS, value); } + /** Unsafe version of {@link #subactionPaths(LongBuffer) subactionPaths}. */ + public static void nsubactionPaths(long struct, @Nullable LongBuffer value) { memPutAddress(struct + XrActionCreateInfo.SUBACTIONPATHS, memAddressSafe(value)); if (value != null) { ncountSubactionPaths(struct, value.remaining()); } } + /** Unsafe version of {@link #localizedActionName(ByteBuffer) localizedActionName}. */ + public static void nlocalizedActionName(long struct, ByteBuffer value) { + if (CHECKS) { + checkNT1(value); + checkGT(value, XR_MAX_LOCALIZED_ACTION_NAME_SIZE); + } + memCopy(memAddress(value), struct + XrActionCreateInfo.LOCALIZEDACTIONNAME, value.remaining()); + } + + // ----------------------------------- /** An array of {@link XrActionCreateInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -424,52 +424,52 @@ protected Buffer self() { protected XrActionCreateInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrActionCreateInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrActionCreateInfo.ntype(address()); } - /** @return the value of the {@link XrActionCreateInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrActionCreateInfo.nnext(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrActionCreateInfo#actionName} field. */ - @NativeType("char[XR_MAX_ACTION_NAME_SIZE]") - public ByteBuffer actionName() { return XrActionCreateInfo.nactionName(address()); } - /** @return the null-terminated string stored in the {@link XrActionCreateInfo#actionName} field. */ - @NativeType("char[XR_MAX_ACTION_NAME_SIZE]") - public String actionNameString() { return XrActionCreateInfo.nactionNameString(address()); } - /** @return the value of the {@link XrActionCreateInfo#actionType} field. */ - @NativeType("XrActionType") - public int actionType() { return XrActionCreateInfo.nactionType(address()); } - /** @return the value of the {@link XrActionCreateInfo#countSubactionPaths} field. */ - @NativeType("uint32_t") - public int countSubactionPaths() { return XrActionCreateInfo.ncountSubactionPaths(address()); } - /** @return a {@link LongBuffer} view of the data pointed to by the {@link XrActionCreateInfo#subactionPaths} field. */ - @Nullable - @NativeType("XrPath const *") - public LongBuffer subactionPaths() { return XrActionCreateInfo.nsubactionPaths(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrActionCreateInfo#localizedActionName} field. */ - @NativeType("char[XR_MAX_LOCALIZED_ACTION_NAME_SIZE]") - public ByteBuffer localizedActionName() { return XrActionCreateInfo.nlocalizedActionName(address()); } - /** @return the null-terminated string stored in the {@link XrActionCreateInfo#localizedActionName} field. */ - @NativeType("char[XR_MAX_LOCALIZED_ACTION_NAME_SIZE]") - public String localizedActionNameString() { return XrActionCreateInfo.nlocalizedActionNameString(address()); } - - /** Sets the specified value to the {@link XrActionCreateInfo#type} field. */ - public XrActionCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrActionCreateInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_ACTION_CREATE_INFO TYPE_ACTION_CREATE_INFO} value to the {@link XrActionCreateInfo#type} field. */ - public XrActionCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_CREATE_INFO); } - /** Sets the specified value to the {@link XrActionCreateInfo#next} field. */ - public XrActionCreateInfo.Buffer next(@NativeType("void const *") long value) { XrActionCreateInfo.nnext(address(), value); return this; } - /** Copies the specified encoded string to the {@link XrActionCreateInfo#actionName} field. */ - public XrActionCreateInfo.Buffer actionName(@NativeType("char[XR_MAX_ACTION_NAME_SIZE]") ByteBuffer value) { XrActionCreateInfo.nactionName(address(), value); return this; } - /** Sets the specified value to the {@link XrActionCreateInfo#actionType} field. */ - public XrActionCreateInfo.Buffer actionType(@NativeType("XrActionType") int value) { XrActionCreateInfo.nactionType(address(), value); return this; } - /** Sets the specified value to the {@link XrActionCreateInfo#countSubactionPaths} field. */ - public XrActionCreateInfo.Buffer countSubactionPaths(@NativeType("uint32_t") int value) { XrActionCreateInfo.ncountSubactionPaths(address(), value); return this; } - /** Sets the address of the specified {@link LongBuffer} to the {@link XrActionCreateInfo#subactionPaths} field. */ - public XrActionCreateInfo.Buffer subactionPaths(@Nullable @NativeType("XrPath const *") LongBuffer value) { XrActionCreateInfo.nsubactionPaths(address(), value); return this; } - /** Copies the specified encoded string to the {@link XrActionCreateInfo#localizedActionName} field. */ - public XrActionCreateInfo.Buffer localizedActionName(@NativeType("char[XR_MAX_LOCALIZED_ACTION_NAME_SIZE]") ByteBuffer value) { XrActionCreateInfo.nlocalizedActionName(address(), value); return this; } + + /** @return the value of the {@link XrActionCreateInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrActionCreateInfo.ntype(address()); } + /** @return the value of the {@link XrActionCreateInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrActionCreateInfo.nnext(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrActionCreateInfo#actionName} field. */ + @NativeType("char[XR_MAX_ACTION_NAME_SIZE]") + public ByteBuffer actionName() { return XrActionCreateInfo.nactionName(address()); } + /** @return the null-terminated string stored in the {@link XrActionCreateInfo#actionName} field. */ + @NativeType("char[XR_MAX_ACTION_NAME_SIZE]") + public String actionNameString() { return XrActionCreateInfo.nactionNameString(address()); } + /** @return the value of the {@link XrActionCreateInfo#actionType} field. */ + @NativeType("XrActionType") + public int actionType() { return XrActionCreateInfo.nactionType(address()); } + /** @return the value of the {@link XrActionCreateInfo#countSubactionPaths} field. */ + @NativeType("uint32_t") + public int countSubactionPaths() { return XrActionCreateInfo.ncountSubactionPaths(address()); } + /** @return a {@link LongBuffer} view of the data pointed to by the {@link XrActionCreateInfo#subactionPaths} field. */ + @Nullable + @NativeType("XrPath const *") + public LongBuffer subactionPaths() { return XrActionCreateInfo.nsubactionPaths(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrActionCreateInfo#localizedActionName} field. */ + @NativeType("char[XR_MAX_LOCALIZED_ACTION_NAME_SIZE]") + public ByteBuffer localizedActionName() { return XrActionCreateInfo.nlocalizedActionName(address()); } + /** @return the null-terminated string stored in the {@link XrActionCreateInfo#localizedActionName} field. */ + @NativeType("char[XR_MAX_LOCALIZED_ACTION_NAME_SIZE]") + public String localizedActionNameString() { return XrActionCreateInfo.nlocalizedActionNameString(address()); } + + /** Sets the specified value to the {@link XrActionCreateInfo#type} field. */ + public XrActionCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrActionCreateInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_ACTION_CREATE_INFO TYPE_ACTION_CREATE_INFO} value to the {@link XrActionCreateInfo#type} field. */ + public XrActionCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_CREATE_INFO); } + /** Sets the specified value to the {@link XrActionCreateInfo#next} field. */ + public XrActionCreateInfo.Buffer next(@NativeType("void const *") long value) { XrActionCreateInfo.nnext(address(), value); return this; } + /** Copies the specified encoded string to the {@link XrActionCreateInfo#actionName} field. */ + public XrActionCreateInfo.Buffer actionName(@NativeType("char[XR_MAX_ACTION_NAME_SIZE]") ByteBuffer value) { XrActionCreateInfo.nactionName(address(), value); return this; } + /** Sets the specified value to the {@link XrActionCreateInfo#actionType} field. */ + public XrActionCreateInfo.Buffer actionType(@NativeType("XrActionType") int value) { XrActionCreateInfo.nactionType(address(), value); return this; } + /** Sets the specified value to the {@link XrActionCreateInfo#countSubactionPaths} field. */ + public XrActionCreateInfo.Buffer countSubactionPaths(@NativeType("uint32_t") int value) { XrActionCreateInfo.ncountSubactionPaths(address(), value); return this; } + /** Sets the address of the specified {@link LongBuffer} to the {@link XrActionCreateInfo#subactionPaths} field. */ + public XrActionCreateInfo.Buffer subactionPaths(@Nullable @NativeType("XrPath const *") LongBuffer value) { XrActionCreateInfo.nsubactionPaths(address(), value); return this; } + /** Copies the specified encoded string to the {@link XrActionCreateInfo#localizedActionName} field. */ + public XrActionCreateInfo.Buffer localizedActionName(@NativeType("char[XR_MAX_LOCALIZED_ACTION_NAME_SIZE]") ByteBuffer value) { XrActionCreateInfo.nlocalizedActionName(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSet.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSet.java index b230c5206e..984552ff04 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSet.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSet.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrActionSet} handle. */ + +/** Wraps an {@code XrActionSet} handle. */ public class XrActionSet extends DispatchableHandle { private final XrInstance instance; @@ -26,4 +26,4 @@ public XrInstance getInstance() { return instance; } -} +} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSetCreateInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSetCreateInfo.java index b2fe9d756a..33090e617a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSetCreateInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSetCreateInfo.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import static org.lwjgl.openxr.XR10.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.XR10.*; + /** * XrActionSet creation info. * @@ -25,17 +25,17 @@ * *

    When multiple actions are bound to the same input source, the {@code priority} of each action set determines which bindings are suppressed. Runtimes must ignore input sources from action sets with a lower priority number if those specific input sources are also present in active actions within a higher priority action set. If multiple action sets with the same priority are bound to the same input source and that is the highest priority number, runtimes must process all those bindings at the same time.

    * - *

    Two actions are considered to be bound to the same input source if they use the same identifier and optional location path segments, even if they have different component segments.

    + *

    Two actions are considered to be bound to the same input source if they use the same identifier and optional location path segments, even if they have different component segments.

    * *

    When runtimes are ignoring bindings because of priority, they must treat the binding to that input source as though they do not exist. That means the {@code isActive} field must be {@link XR10#XR_FALSE FALSE} when retrieving action data, and that the runtime must not provide any visual, haptic, or other feedback related to the binding of that action to that input source. Other actions in the same action set which are bound to input sources that do not collide are not affected and are processed as normal.

    * - *

    If {@code actionSetName} or {@code localizedActionSetName} are empty strings, the runtime must return {@link XR10#XR_ERROR_NAME_INVALID ERROR_NAME_INVALID} or {@link XR10#XR_ERROR_LOCALIZED_NAME_INVALID ERROR_LOCALIZED_NAME_INVALID} respectively. If {@code actionSetName} or {@code localizedActionSetName} are duplicates of the corresponding field for any existing action set in the specified instance, the runtime must return {@link XR10#XR_ERROR_NAME_DUPLICATED ERROR_NAME_DUPLICATED} or {@link XR10#XR_ERROR_LOCALIZED_NAME_DUPLICATED ERROR_LOCALIZED_NAME_DUPLICATED} respectively. If the conflicting action set is destroyed, the conflicting field is no longer considered duplicated. If {@code actionSetName} contains characters which are not allowed in a single level of a well-formed path string, the runtime must return {@link XR10#XR_ERROR_PATH_FORMAT_INVALID ERROR_PATH_FORMAT_INVALID}.

    + *

    If {@code actionSetName} or {@code localizedActionSetName} are empty strings, the runtime must return {@link XR10#XR_ERROR_NAME_INVALID ERROR_NAME_INVALID} or {@link XR10#XR_ERROR_LOCALIZED_NAME_INVALID ERROR_LOCALIZED_NAME_INVALID} respectively. If {@code actionSetName} or {@code localizedActionSetName} are duplicates of the corresponding field for any existing action set in the specified instance, the runtime must return {@link XR10#XR_ERROR_NAME_DUPLICATED ERROR_NAME_DUPLICATED} or {@link XR10#XR_ERROR_LOCALIZED_NAME_DUPLICATED ERROR_LOCALIZED_NAME_DUPLICATED} respectively. If the conflicting action set is destroyed, the conflicting field is no longer considered duplicated. If {@code actionSetName} contains characters which are not allowed in a single level of a well-formed path string, the runtime must return {@link XR10#XR_ERROR_PATH_FORMAT_INVALID ERROR_PATH_FORMAT_INVALID}.

    * *
    Valid Usage (Implicit)
    * *
      *
    • {@code type} must be {@link XR10#XR_TYPE_ACTION_SET_CREATE_INFO TYPE_ACTION_SET_CREATE_INFO}
    • - *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • + *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • *
    • {@code actionSetName} must be a null-terminated UTF-8 string whose length is less than or equal to {@link XR10#XR_MAX_ACTION_SET_NAME_SIZE MAX_ACTION_SET_NAME_SIZE}
    • *
    • {@code localizedActionSetName} must be a null-terminated UTF-8 string whose length is less than or equal to {@link XR10#XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE MAX_LOCALIZED_ACTION_SET_NAME_SIZE}
    • *
    @@ -54,8 +54,8 @@ * char {@link #localizedActionSetName}[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE]; * uint32_t {@link #priority}; * }
    - */ -public class XrActionSetCreateInfo extends Struct implements NativeResource { + */ +public class XrActionSetCreateInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -65,30 +65,30 @@ public class XrActionSetCreateInfo extends Struct impleme /** The struct member offsets. */ public static final int - TYPE, - NEXT, - ACTIONSETNAME, - LOCALIZEDACTIONSETNAME, - PRIORITY; + TYPE, + NEXT, + ACTIONSETNAME, + LOCALIZEDACTIONSETNAME, + PRIORITY; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __array(1, XR_MAX_ACTION_SET_NAME_SIZE), - __array(1, XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __array(1, XR_MAX_ACTION_SET_NAME_SIZE), + __array(1, XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - ACTIONSETNAME = layout.offsetof(2); - LOCALIZEDACTIONSETNAME = layout.offsetof(3); - PRIORITY = layout.offsetof(4); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + ACTIONSETNAME = layout.offsetof(2); + LOCALIZEDACTIONSETNAME = layout.offsetof(3); + PRIORITY = layout.offsetof(4); + } protected XrActionSetCreateInfo(long address, @Nullable ByteBuffer container) { super(address, container); @@ -111,55 +111,55 @@ public XrActionSetCreateInfo(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** an array containing a {@code NULL} terminated non-empty string with the name of this action set. */ - @NativeType("char[XR_MAX_ACTION_SET_NAME_SIZE]") - public ByteBuffer actionSetName() { return nactionSetName(address()); } - /** an array containing a {@code NULL} terminated non-empty string with the name of this action set. */ - @NativeType("char[XR_MAX_ACTION_SET_NAME_SIZE]") - public String actionSetNameString() { return nactionSetNameString(address()); } - /** an array containing a {@code NULL} terminated {@code UTF}-8 string that can be presented to the user as a description of the action set. This string should be presented in the system’s current active locale. */ - @NativeType("char[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE]") - public ByteBuffer localizedActionSetName() { return nlocalizedActionSetName(address()); } - /** an array containing a {@code NULL} terminated {@code UTF}-8 string that can be presented to the user as a description of the action set. This string should be presented in the system’s current active locale. */ - @NativeType("char[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE]") - public String localizedActionSetNameString() { return nlocalizedActionSetNameString(address()); } - /** defines which action sets' actions are active on a given input source when actions on multiple active action sets are bound to the same input source. Larger priority numbers take precedence over smaller priority numbers. */ - @NativeType("uint32_t") - public int priority() { return npriority(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrActionSetCreateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_ACTION_SET_CREATE_INFO TYPE_ACTION_SET_CREATE_INFO} value to the {@link #type} field. */ - public XrActionSetCreateInfo type$Default() { return type(XR10.XR_TYPE_ACTION_SET_CREATE_INFO); } - /** Sets the specified value to the {@link #next} field. */ - public XrActionSetCreateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Copies the specified encoded string to the {@link #actionSetName} field. */ - public XrActionSetCreateInfo actionSetName(@NativeType("char[XR_MAX_ACTION_SET_NAME_SIZE]") ByteBuffer value) { nactionSetName(address(), value); return this; } - /** Copies the specified encoded string to the {@link #localizedActionSetName} field. */ - public XrActionSetCreateInfo localizedActionSetName(@NativeType("char[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE]") ByteBuffer value) { nlocalizedActionSetName(address(), value); return this; } - /** Sets the specified value to the {@link #priority} field. */ - public XrActionSetCreateInfo priority(@NativeType("uint32_t") int value) { npriority(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** an array containing a {@code NULL} terminated non-empty string with the name of this action set. */ + @NativeType("char[XR_MAX_ACTION_SET_NAME_SIZE]") + public ByteBuffer actionSetName() { return nactionSetName(address()); } + /** an array containing a {@code NULL} terminated non-empty string with the name of this action set. */ + @NativeType("char[XR_MAX_ACTION_SET_NAME_SIZE]") + public String actionSetNameString() { return nactionSetNameString(address()); } + /** an array containing a {@code NULL} terminated {@code UTF}-8 string that can be presented to the user as a description of the action set. This string should be presented in the system’s current active locale. */ + @NativeType("char[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE]") + public ByteBuffer localizedActionSetName() { return nlocalizedActionSetName(address()); } + /** an array containing a {@code NULL} terminated {@code UTF}-8 string that can be presented to the user as a description of the action set. This string should be presented in the system’s current active locale. */ + @NativeType("char[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE]") + public String localizedActionSetNameString() { return nlocalizedActionSetNameString(address()); } + /** defines which action sets' actions are active on a given input source when actions on multiple active action sets are bound to the same input source. Larger priority numbers take precedence over smaller priority numbers. */ + @NativeType("uint32_t") + public int priority() { return npriority(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrActionSetCreateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_ACTION_SET_CREATE_INFO TYPE_ACTION_SET_CREATE_INFO} value to the {@link #type} field. */ + public XrActionSetCreateInfo type$Default() { return type(XR10.XR_TYPE_ACTION_SET_CREATE_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrActionSetCreateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Copies the specified encoded string to the {@link #actionSetName} field. */ + public XrActionSetCreateInfo actionSetName(@NativeType("char[XR_MAX_ACTION_SET_NAME_SIZE]") ByteBuffer value) { nactionSetName(address(), value); return this; } + /** Copies the specified encoded string to the {@link #localizedActionSetName} field. */ + public XrActionSetCreateInfo localizedActionSetName(@NativeType("char[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE]") ByteBuffer value) { nlocalizedActionSetName(address(), value); return this; } + /** Sets the specified value to the {@link #priority} field. */ + public XrActionSetCreateInfo priority(@NativeType("uint32_t") int value) { npriority(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrActionSetCreateInfo set( - int type, - long next, - ByteBuffer actionSetName, - ByteBuffer localizedActionSetName, + int type, + long next, + ByteBuffer actionSetName, + ByteBuffer localizedActionSetName, int priority - ) { - type(type); - next(next); - actionSetName(actionSetName); - localizedActionSetName(localizedActionSetName); - priority(priority); + ) { + type(type); + next(next); + actionSetName(actionSetName); + localizedActionSetName(localizedActionSetName); + priority(priority); return this; } @@ -288,46 +288,46 @@ public static XrActionSetCreateInfo.Buffer calloc(int capacity, MemoryStack stac } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionSetCreateInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrActionSetCreateInfo.NEXT); } - /** Unsafe version of {@link #actionSetName}. */ - public static ByteBuffer nactionSetName(long struct) { return memByteBuffer(struct + XrActionSetCreateInfo.ACTIONSETNAME, XR_MAX_ACTION_SET_NAME_SIZE); } - /** Unsafe version of {@link #actionSetNameString}. */ - public static String nactionSetNameString(long struct) { return memUTF8(struct + XrActionSetCreateInfo.ACTIONSETNAME); } - /** Unsafe version of {@link #localizedActionSetName}. */ - public static ByteBuffer nlocalizedActionSetName(long struct) { return memByteBuffer(struct + XrActionSetCreateInfo.LOCALIZEDACTIONSETNAME, XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE); } - /** Unsafe version of {@link #localizedActionSetNameString}. */ - public static String nlocalizedActionSetNameString(long struct) { return memUTF8(struct + XrActionSetCreateInfo.LOCALIZEDACTIONSETNAME); } - /** Unsafe version of {@link #priority}. */ - public static int npriority(long struct) { return UNSAFE.getInt(null, struct + XrActionSetCreateInfo.PRIORITY); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionSetCreateInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrActionSetCreateInfo.NEXT, value); } - /** Unsafe version of {@link #actionSetName(ByteBuffer) actionSetName}. */ - public static void nactionSetName(long struct, ByteBuffer value) { - if (CHECKS) { - checkNT1(value); - checkGT(value, XR_MAX_ACTION_SET_NAME_SIZE); - } - memCopy(memAddress(value), struct + XrActionSetCreateInfo.ACTIONSETNAME, value.remaining()); - } - /** Unsafe version of {@link #localizedActionSetName(ByteBuffer) localizedActionSetName}. */ - public static void nlocalizedActionSetName(long struct, ByteBuffer value) { - if (CHECKS) { - checkNT1(value); - checkGT(value, XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE); - } - memCopy(memAddress(value), struct + XrActionSetCreateInfo.LOCALIZEDACTIONSETNAME, value.remaining()); - } - /** Unsafe version of {@link #priority(int) priority}. */ - public static void npriority(long struct, int value) { UNSAFE.putInt(null, struct + XrActionSetCreateInfo.PRIORITY, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionSetCreateInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrActionSetCreateInfo.NEXT); } + /** Unsafe version of {@link #actionSetName}. */ + public static ByteBuffer nactionSetName(long struct) { return memByteBuffer(struct + XrActionSetCreateInfo.ACTIONSETNAME, XR_MAX_ACTION_SET_NAME_SIZE); } + /** Unsafe version of {@link #actionSetNameString}. */ + public static String nactionSetNameString(long struct) { return memUTF8(struct + XrActionSetCreateInfo.ACTIONSETNAME); } + /** Unsafe version of {@link #localizedActionSetName}. */ + public static ByteBuffer nlocalizedActionSetName(long struct) { return memByteBuffer(struct + XrActionSetCreateInfo.LOCALIZEDACTIONSETNAME, XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE); } + /** Unsafe version of {@link #localizedActionSetNameString}. */ + public static String nlocalizedActionSetNameString(long struct) { return memUTF8(struct + XrActionSetCreateInfo.LOCALIZEDACTIONSETNAME); } + /** Unsafe version of {@link #priority}. */ + public static int npriority(long struct) { return UNSAFE.getInt(null, struct + XrActionSetCreateInfo.PRIORITY); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionSetCreateInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrActionSetCreateInfo.NEXT, value); } + /** Unsafe version of {@link #actionSetName(ByteBuffer) actionSetName}. */ + public static void nactionSetName(long struct, ByteBuffer value) { + if (CHECKS) { + checkNT1(value); + checkGT(value, XR_MAX_ACTION_SET_NAME_SIZE); + } + memCopy(memAddress(value), struct + XrActionSetCreateInfo.ACTIONSETNAME, value.remaining()); + } + /** Unsafe version of {@link #localizedActionSetName(ByteBuffer) localizedActionSetName}. */ + public static void nlocalizedActionSetName(long struct, ByteBuffer value) { + if (CHECKS) { + checkNT1(value); + checkGT(value, XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE); + } + memCopy(memAddress(value), struct + XrActionSetCreateInfo.LOCALIZEDACTIONSETNAME, value.remaining()); + } + /** Unsafe version of {@link #priority(int) priority}. */ + public static void npriority(long struct, int value) { UNSAFE.putInt(null, struct + XrActionSetCreateInfo.PRIORITY, value); } + + // ----------------------------------- /** An array of {@link XrActionSetCreateInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -364,41 +364,41 @@ protected Buffer self() { protected XrActionSetCreateInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrActionSetCreateInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrActionSetCreateInfo.ntype(address()); } - /** @return the value of the {@link XrActionSetCreateInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrActionSetCreateInfo.nnext(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrActionSetCreateInfo#actionSetName} field. */ - @NativeType("char[XR_MAX_ACTION_SET_NAME_SIZE]") - public ByteBuffer actionSetName() { return XrActionSetCreateInfo.nactionSetName(address()); } - /** @return the null-terminated string stored in the {@link XrActionSetCreateInfo#actionSetName} field. */ - @NativeType("char[XR_MAX_ACTION_SET_NAME_SIZE]") - public String actionSetNameString() { return XrActionSetCreateInfo.nactionSetNameString(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrActionSetCreateInfo#localizedActionSetName} field. */ - @NativeType("char[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE]") - public ByteBuffer localizedActionSetName() { return XrActionSetCreateInfo.nlocalizedActionSetName(address()); } - /** @return the null-terminated string stored in the {@link XrActionSetCreateInfo#localizedActionSetName} field. */ - @NativeType("char[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE]") - public String localizedActionSetNameString() { return XrActionSetCreateInfo.nlocalizedActionSetNameString(address()); } - /** @return the value of the {@link XrActionSetCreateInfo#priority} field. */ - @NativeType("uint32_t") - public int priority() { return XrActionSetCreateInfo.npriority(address()); } - - /** Sets the specified value to the {@link XrActionSetCreateInfo#type} field. */ - public XrActionSetCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrActionSetCreateInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_ACTION_SET_CREATE_INFO TYPE_ACTION_SET_CREATE_INFO} value to the {@link XrActionSetCreateInfo#type} field. */ - public XrActionSetCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_SET_CREATE_INFO); } - /** Sets the specified value to the {@link XrActionSetCreateInfo#next} field. */ - public XrActionSetCreateInfo.Buffer next(@NativeType("void const *") long value) { XrActionSetCreateInfo.nnext(address(), value); return this; } - /** Copies the specified encoded string to the {@link XrActionSetCreateInfo#actionSetName} field. */ - public XrActionSetCreateInfo.Buffer actionSetName(@NativeType("char[XR_MAX_ACTION_SET_NAME_SIZE]") ByteBuffer value) { XrActionSetCreateInfo.nactionSetName(address(), value); return this; } - /** Copies the specified encoded string to the {@link XrActionSetCreateInfo#localizedActionSetName} field. */ - public XrActionSetCreateInfo.Buffer localizedActionSetName(@NativeType("char[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE]") ByteBuffer value) { XrActionSetCreateInfo.nlocalizedActionSetName(address(), value); return this; } - /** Sets the specified value to the {@link XrActionSetCreateInfo#priority} field. */ - public XrActionSetCreateInfo.Buffer priority(@NativeType("uint32_t") int value) { XrActionSetCreateInfo.npriority(address(), value); return this; } + + /** @return the value of the {@link XrActionSetCreateInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrActionSetCreateInfo.ntype(address()); } + /** @return the value of the {@link XrActionSetCreateInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrActionSetCreateInfo.nnext(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrActionSetCreateInfo#actionSetName} field. */ + @NativeType("char[XR_MAX_ACTION_SET_NAME_SIZE]") + public ByteBuffer actionSetName() { return XrActionSetCreateInfo.nactionSetName(address()); } + /** @return the null-terminated string stored in the {@link XrActionSetCreateInfo#actionSetName} field. */ + @NativeType("char[XR_MAX_ACTION_SET_NAME_SIZE]") + public String actionSetNameString() { return XrActionSetCreateInfo.nactionSetNameString(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrActionSetCreateInfo#localizedActionSetName} field. */ + @NativeType("char[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE]") + public ByteBuffer localizedActionSetName() { return XrActionSetCreateInfo.nlocalizedActionSetName(address()); } + /** @return the null-terminated string stored in the {@link XrActionSetCreateInfo#localizedActionSetName} field. */ + @NativeType("char[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE]") + public String localizedActionSetNameString() { return XrActionSetCreateInfo.nlocalizedActionSetNameString(address()); } + /** @return the value of the {@link XrActionSetCreateInfo#priority} field. */ + @NativeType("uint32_t") + public int priority() { return XrActionSetCreateInfo.npriority(address()); } + + /** Sets the specified value to the {@link XrActionSetCreateInfo#type} field. */ + public XrActionSetCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrActionSetCreateInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_ACTION_SET_CREATE_INFO TYPE_ACTION_SET_CREATE_INFO} value to the {@link XrActionSetCreateInfo#type} field. */ + public XrActionSetCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_SET_CREATE_INFO); } + /** Sets the specified value to the {@link XrActionSetCreateInfo#next} field. */ + public XrActionSetCreateInfo.Buffer next(@NativeType("void const *") long value) { XrActionSetCreateInfo.nnext(address(), value); return this; } + /** Copies the specified encoded string to the {@link XrActionSetCreateInfo#actionSetName} field. */ + public XrActionSetCreateInfo.Buffer actionSetName(@NativeType("char[XR_MAX_ACTION_SET_NAME_SIZE]") ByteBuffer value) { XrActionSetCreateInfo.nactionSetName(address(), value); return this; } + /** Copies the specified encoded string to the {@link XrActionSetCreateInfo#localizedActionSetName} field. */ + public XrActionSetCreateInfo.Buffer localizedActionSetName(@NativeType("char[XR_MAX_LOCALIZED_ACTION_SET_NAME_SIZE]") ByteBuffer value) { XrActionSetCreateInfo.nlocalizedActionSetName(address(), value); return this; } + /** Sets the specified value to the {@link XrActionSetCreateInfo#priority} field. */ + public XrActionSetCreateInfo.Buffer priority(@NativeType("uint32_t") int value) { XrActionSetCreateInfo.npriority(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSpaceCreateInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSpaceCreateInfo.java index f458edd83e..bf221c18af 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSpaceCreateInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSpaceCreateInfo.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Creation info for an action space. * @@ -23,7 +23,7 @@ * *
      *
    • {@code type} must be {@link XR10#XR_TYPE_ACTION_SPACE_CREATE_INFO TYPE_ACTION_SPACE_CREATE_INFO}
    • - *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • + *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • *
    • {@code action} must be a valid {@code XrAction} handle
    • *
    * @@ -41,8 +41,8 @@ * XrPath {@link #subactionPath}; * {@link XrPosef XrPosef} {@link #poseInActionSpace}; * }
    - */ -public class XrActionSpaceCreateInfo extends Struct implements NativeResource { + */ +public class XrActionSpaceCreateInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,30 +52,30 @@ public class XrActionSpaceCreateInfo extends Struct imp /** The struct member offsets. */ public static final int - TYPE, - NEXT, - ACTION, - SUBACTIONPATH, - POSEINACTIONSPACE; + TYPE, + NEXT, + ACTION, + SUBACTIONPATH, + POSEINACTIONSPACE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(POINTER_SIZE), - __member(8), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(POINTER_SIZE), + __member(8), __member(XrPosef.SIZEOF, XrPosef.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - ACTION = layout.offsetof(2); - SUBACTIONPATH = layout.offsetof(3); - POSEINACTIONSPACE = layout.offsetof(4); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + ACTION = layout.offsetof(2); + SUBACTIONPATH = layout.offsetof(3); + POSEINACTIONSPACE = layout.offsetof(4); + } protected XrActionSpaceCreateInfo(long address, @Nullable ByteBuffer container) { super(address, container); @@ -98,50 +98,50 @@ public XrActionSpaceCreateInfo(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** a handle to a pose {@code XrAction} previously created with {@link XR10#xrCreateAction CreateAction}. */ - @NativeType("XrAction") - public long action() { return naction(address()); } - /** {@link XR10#XR_NULL_PATH NULL_PATH} or an {@code XrPath} that was specified when the action was created. If {@code subactionPath} is a valid path not specified when the action was created the runtime must return {@link XR10#XR_ERROR_PATH_UNSUPPORTED ERROR_PATH_UNSUPPORTED}. If this parameter is set, the runtime must create a space that is relative to only that subaction’s pose binding. */ - @NativeType("XrPath") - public long subactionPath() { return nsubactionPath(address()); } - /** an {@link XrPosef} defining the position and orientation of the new space’s origin within the natural reference frame of the pose action. */ - public XrPosef poseInActionSpace() { return nposeInActionSpace(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrActionSpaceCreateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_ACTION_SPACE_CREATE_INFO TYPE_ACTION_SPACE_CREATE_INFO} value to the {@link #type} field. */ - public XrActionSpaceCreateInfo type$Default() { return type(XR10.XR_TYPE_ACTION_SPACE_CREATE_INFO); } - /** Sets the specified value to the {@link #next} field. */ - public XrActionSpaceCreateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #action} field. */ - public XrActionSpaceCreateInfo action(XrAction value) { naction(address(), value); return this; } - /** Sets the specified value to the {@link #subactionPath} field. */ - public XrActionSpaceCreateInfo subactionPath(@NativeType("XrPath") long value) { nsubactionPath(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link #poseInActionSpace} field. */ - public XrActionSpaceCreateInfo poseInActionSpace(XrPosef value) { nposeInActionSpace(address(), value); return this; } - /** Passes the {@link #poseInActionSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrActionSpaceCreateInfo poseInActionSpace(java.util.function.Consumer consumer) { consumer.accept(poseInActionSpace()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** a handle to a pose {@code XrAction} previously created with {@link XR10#xrCreateAction CreateAction}. */ + @NativeType("XrAction") + public long action() { return naction(address()); } + /** {@link XR10#XR_NULL_PATH NULL_PATH} or an {@code XrPath} that was specified when the action was created. If {@code subactionPath} is a valid path not specified when the action was created the runtime must return {@link XR10#XR_ERROR_PATH_UNSUPPORTED ERROR_PATH_UNSUPPORTED}. If this parameter is set, the runtime must create a space that is relative to only that subaction’s pose binding. */ + @NativeType("XrPath") + public long subactionPath() { return nsubactionPath(address()); } + /** an {@link XrPosef} defining the position and orientation of the new space’s origin within the natural reference frame of the pose action. */ + public XrPosef poseInActionSpace() { return nposeInActionSpace(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrActionSpaceCreateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_ACTION_SPACE_CREATE_INFO TYPE_ACTION_SPACE_CREATE_INFO} value to the {@link #type} field. */ + public XrActionSpaceCreateInfo type$Default() { return type(XR10.XR_TYPE_ACTION_SPACE_CREATE_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrActionSpaceCreateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #action} field. */ + public XrActionSpaceCreateInfo action(XrAction value) { naction(address(), value); return this; } + /** Sets the specified value to the {@link #subactionPath} field. */ + public XrActionSpaceCreateInfo subactionPath(@NativeType("XrPath") long value) { nsubactionPath(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #poseInActionSpace} field. */ + public XrActionSpaceCreateInfo poseInActionSpace(XrPosef value) { nposeInActionSpace(address(), value); return this; } + /** Passes the {@link #poseInActionSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrActionSpaceCreateInfo poseInActionSpace(java.util.function.Consumer consumer) { consumer.accept(poseInActionSpace()); return this; } /** Initializes this struct with the specified values. */ public XrActionSpaceCreateInfo set( - int type, - long next, - XrAction action, - long subactionPath, + int type, + long next, + XrAction action, + long subactionPath, XrPosef poseInActionSpace - ) { - type(type); - next(next); - action(action); - subactionPath(subactionPath); - poseInActionSpace(poseInActionSpace); + ) { + type(type); + next(next); + action(action); + subactionPath(subactionPath); + poseInActionSpace(poseInActionSpace); return this; } @@ -270,28 +270,28 @@ public static XrActionSpaceCreateInfo.Buffer calloc(int capacity, MemoryStack st } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionSpaceCreateInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrActionSpaceCreateInfo.NEXT); } - /** Unsafe version of {@link #action}. */ - public static long naction(long struct) { return memGetAddress(struct + XrActionSpaceCreateInfo.ACTION); } - /** Unsafe version of {@link #subactionPath}. */ - public static long nsubactionPath(long struct) { return UNSAFE.getLong(null, struct + XrActionSpaceCreateInfo.SUBACTIONPATH); } - /** Unsafe version of {@link #poseInActionSpace}. */ - public static XrPosef nposeInActionSpace(long struct) { return XrPosef.create(struct + XrActionSpaceCreateInfo.POSEINACTIONSPACE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionSpaceCreateInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrActionSpaceCreateInfo.NEXT, value); } - /** Unsafe version of {@link #action(XrAction) action}. */ - public static void naction(long struct, XrAction value) { memPutAddress(struct + XrActionSpaceCreateInfo.ACTION, value.address()); } - /** Unsafe version of {@link #subactionPath(long) subactionPath}. */ - public static void nsubactionPath(long struct, long value) { UNSAFE.putLong(null, struct + XrActionSpaceCreateInfo.SUBACTIONPATH, value); } - /** Unsafe version of {@link #poseInActionSpace(XrPosef) poseInActionSpace}. */ - public static void nposeInActionSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrActionSpaceCreateInfo.POSEINACTIONSPACE, XrPosef.SIZEOF); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionSpaceCreateInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrActionSpaceCreateInfo.NEXT); } + /** Unsafe version of {@link #action}. */ + public static long naction(long struct) { return memGetAddress(struct + XrActionSpaceCreateInfo.ACTION); } + /** Unsafe version of {@link #subactionPath}. */ + public static long nsubactionPath(long struct) { return UNSAFE.getLong(null, struct + XrActionSpaceCreateInfo.SUBACTIONPATH); } + /** Unsafe version of {@link #poseInActionSpace}. */ + public static XrPosef nposeInActionSpace(long struct) { return XrPosef.create(struct + XrActionSpaceCreateInfo.POSEINACTIONSPACE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionSpaceCreateInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrActionSpaceCreateInfo.NEXT, value); } + /** Unsafe version of {@link #action(XrAction) action}. */ + public static void naction(long struct, XrAction value) { memPutAddress(struct + XrActionSpaceCreateInfo.ACTION, value.address()); } + /** Unsafe version of {@link #subactionPath(long) subactionPath}. */ + public static void nsubactionPath(long struct, long value) { UNSAFE.putLong(null, struct + XrActionSpaceCreateInfo.SUBACTIONPATH, value); } + /** Unsafe version of {@link #poseInActionSpace(XrPosef) poseInActionSpace}. */ + public static void nposeInActionSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrActionSpaceCreateInfo.POSEINACTIONSPACE, XrPosef.SIZEOF); } /** * Validates pointer members that should not be {@code NULL}. @@ -300,9 +300,9 @@ public static XrActionSpaceCreateInfo.Buffer calloc(int capacity, MemoryStack st */ public static void validate(long struct) { check(memGetAddress(struct + XrActionSpaceCreateInfo.ACTION)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrActionSpaceCreateInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -339,36 +339,36 @@ protected Buffer self() { protected XrActionSpaceCreateInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrActionSpaceCreateInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrActionSpaceCreateInfo.ntype(address()); } - /** @return the value of the {@link XrActionSpaceCreateInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrActionSpaceCreateInfo.nnext(address()); } - /** @return the value of the {@link XrActionSpaceCreateInfo#action} field. */ - @NativeType("XrAction") - public long action() { return XrActionSpaceCreateInfo.naction(address()); } - /** @return the value of the {@link XrActionSpaceCreateInfo#subactionPath} field. */ - @NativeType("XrPath") - public long subactionPath() { return XrActionSpaceCreateInfo.nsubactionPath(address()); } - /** @return a {@link XrPosef} view of the {@link XrActionSpaceCreateInfo#poseInActionSpace} field. */ - public XrPosef poseInActionSpace() { return XrActionSpaceCreateInfo.nposeInActionSpace(address()); } - - /** Sets the specified value to the {@link XrActionSpaceCreateInfo#type} field. */ - public XrActionSpaceCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrActionSpaceCreateInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_ACTION_SPACE_CREATE_INFO TYPE_ACTION_SPACE_CREATE_INFO} value to the {@link XrActionSpaceCreateInfo#type} field. */ - public XrActionSpaceCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_SPACE_CREATE_INFO); } - /** Sets the specified value to the {@link XrActionSpaceCreateInfo#next} field. */ - public XrActionSpaceCreateInfo.Buffer next(@NativeType("void const *") long value) { XrActionSpaceCreateInfo.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrActionSpaceCreateInfo#action} field. */ - public XrActionSpaceCreateInfo.Buffer action(XrAction value) { XrActionSpaceCreateInfo.naction(address(), value); return this; } - /** Sets the specified value to the {@link XrActionSpaceCreateInfo#subactionPath} field. */ - public XrActionSpaceCreateInfo.Buffer subactionPath(@NativeType("XrPath") long value) { XrActionSpaceCreateInfo.nsubactionPath(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrActionSpaceCreateInfo#poseInActionSpace} field. */ - public XrActionSpaceCreateInfo.Buffer poseInActionSpace(XrPosef value) { XrActionSpaceCreateInfo.nposeInActionSpace(address(), value); return this; } - /** Passes the {@link XrActionSpaceCreateInfo#poseInActionSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrActionSpaceCreateInfo.Buffer poseInActionSpace(java.util.function.Consumer consumer) { consumer.accept(poseInActionSpace()); return this; } + + /** @return the value of the {@link XrActionSpaceCreateInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrActionSpaceCreateInfo.ntype(address()); } + /** @return the value of the {@link XrActionSpaceCreateInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrActionSpaceCreateInfo.nnext(address()); } + /** @return the value of the {@link XrActionSpaceCreateInfo#action} field. */ + @NativeType("XrAction") + public long action() { return XrActionSpaceCreateInfo.naction(address()); } + /** @return the value of the {@link XrActionSpaceCreateInfo#subactionPath} field. */ + @NativeType("XrPath") + public long subactionPath() { return XrActionSpaceCreateInfo.nsubactionPath(address()); } + /** @return a {@link XrPosef} view of the {@link XrActionSpaceCreateInfo#poseInActionSpace} field. */ + public XrPosef poseInActionSpace() { return XrActionSpaceCreateInfo.nposeInActionSpace(address()); } + + /** Sets the specified value to the {@link XrActionSpaceCreateInfo#type} field. */ + public XrActionSpaceCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrActionSpaceCreateInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_ACTION_SPACE_CREATE_INFO TYPE_ACTION_SPACE_CREATE_INFO} value to the {@link XrActionSpaceCreateInfo#type} field. */ + public XrActionSpaceCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_SPACE_CREATE_INFO); } + /** Sets the specified value to the {@link XrActionSpaceCreateInfo#next} field. */ + public XrActionSpaceCreateInfo.Buffer next(@NativeType("void const *") long value) { XrActionSpaceCreateInfo.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrActionSpaceCreateInfo#action} field. */ + public XrActionSpaceCreateInfo.Buffer action(XrAction value) { XrActionSpaceCreateInfo.naction(address(), value); return this; } + /** Sets the specified value to the {@link XrActionSpaceCreateInfo#subactionPath} field. */ + public XrActionSpaceCreateInfo.Buffer subactionPath(@NativeType("XrPath") long value) { XrActionSpaceCreateInfo.nsubactionPath(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrActionSpaceCreateInfo#poseInActionSpace} field. */ + public XrActionSpaceCreateInfo.Buffer poseInActionSpace(XrPosef value) { XrActionSpaceCreateInfo.nposeInActionSpace(address(), value); return this; } + /** Passes the {@link XrActionSpaceCreateInfo#poseInActionSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrActionSpaceCreateInfo.Buffer poseInActionSpace(java.util.function.Consumer consumer) { consumer.accept(poseInActionSpace()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateBoolean.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateBoolean.java index 0110325e05..e7163a4612 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateBoolean.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateBoolean.java @@ -4,29 +4,29 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Boolean action state. * *
    Description
    * - *

    When multiple input sources are bound to this action, the {@code currentState} follows the previously defined rule to resolve ambiguity.

    + *

    When multiple input sources are bound to this action, the {@code currentState} follows the previously defined rule to resolve ambiguity.

    * *
    Valid Usage (Implicit)
    * * * *
    See Also
    @@ -44,8 +44,8 @@ * XrTime {@link #lastChangeTime}; * XrBool32 {@link #isActive}; * }
    - */ -public class XrActionStateBoolean extends Struct implements NativeResource { + */ +public class XrActionStateBoolean extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,33 +55,33 @@ public class XrActionStateBoolean extends Struct implement /** The struct member offsets. */ public static final int - TYPE, - NEXT, - CURRENTSTATE, - CHANGEDSINCELASTSYNC, - LASTCHANGETIME, - ISACTIVE; + TYPE, + NEXT, + CURRENTSTATE, + CHANGEDSINCELASTSYNC, + LASTCHANGETIME, + ISACTIVE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), - __member(8), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), + __member(8), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - CURRENTSTATE = layout.offsetof(2); - CHANGEDSINCELASTSYNC = layout.offsetof(3); - LASTCHANGETIME = layout.offsetof(4); - ISACTIVE = layout.offsetof(5); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + CURRENTSTATE = layout.offsetof(2); + CHANGEDSINCELASTSYNC = layout.offsetof(3); + LASTCHANGETIME = layout.offsetof(4); + ISACTIVE = layout.offsetof(5); + } protected XrActionStateBoolean(long address, @Nullable ByteBuffer container) { super(address, container); @@ -104,56 +104,56 @@ public XrActionStateBoolean(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** the current state of the action. */ - @NativeType("XrBool32") - public boolean currentState() { return ncurrentState(address()) != 0; } - /** {@link XR10#XR_TRUE TRUE} if the value of {@code currentState} is different than it was before the most recent call to {@link XR10#xrSyncActions SyncActions}. This parameter can be combined with {@code currentState} to detect rising and falling edges since the previous call to {@link XR10#xrSyncActions SyncActions}. E.g. if both {@code changedSinceLastSync} and {@code currentState} are {@link XR10#XR_TRUE TRUE} then a rising edge ({@link XR10#XR_FALSE FALSE} to {@link XR10#XR_TRUE TRUE}) has taken place. */ - @NativeType("XrBool32") - public boolean changedSinceLastSync() { return nchangedSinceLastSync(address()) != 0; } - /** the {@code XrTime} when this action’s value last changed. */ - @NativeType("XrTime") - public long lastChangeTime() { return nlastChangeTime(address()); } - /** {@link XR10#XR_TRUE TRUE} if and only if there exists an input source that is contributing to the current state of this action. */ - @NativeType("XrBool32") - public boolean isActive() { return nisActive(address()) != 0; } - - /** Sets the specified value to the {@link #type} field. */ - public XrActionStateBoolean type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_BOOLEAN TYPE_ACTION_STATE_BOOLEAN} value to the {@link #type} field. */ - public XrActionStateBoolean type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_BOOLEAN); } - /** Sets the specified value to the {@link #next} field. */ - public XrActionStateBoolean next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #currentState} field. */ - public XrActionStateBoolean currentState(@NativeType("XrBool32") boolean value) { ncurrentState(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link #changedSinceLastSync} field. */ - public XrActionStateBoolean changedSinceLastSync(@NativeType("XrBool32") boolean value) { nchangedSinceLastSync(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link #lastChangeTime} field. */ - public XrActionStateBoolean lastChangeTime(@NativeType("XrTime") long value) { nlastChangeTime(address(), value); return this; } - /** Sets the specified value to the {@link #isActive} field. */ - public XrActionStateBoolean isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the current state of the action. */ + @NativeType("XrBool32") + public boolean currentState() { return ncurrentState(address()) != 0; } + /** {@link XR10#XR_TRUE TRUE} if the value of {@code currentState} is different than it was before the most recent call to {@link XR10#xrSyncActions SyncActions}. This parameter can be combined with {@code currentState} to detect rising and falling edges since the previous call to {@link XR10#xrSyncActions SyncActions}. E.g. if both {@code changedSinceLastSync} and {@code currentState} are {@link XR10#XR_TRUE TRUE} then a rising edge ({@link XR10#XR_FALSE FALSE} to {@link XR10#XR_TRUE TRUE}) has taken place. */ + @NativeType("XrBool32") + public boolean changedSinceLastSync() { return nchangedSinceLastSync(address()) != 0; } + /** the {@code XrTime} when this action’s value last changed. */ + @NativeType("XrTime") + public long lastChangeTime() { return nlastChangeTime(address()); } + /** {@link XR10#XR_TRUE TRUE} if and only if there exists an input source that is contributing to the current state of this action. */ + @NativeType("XrBool32") + public boolean isActive() { return nisActive(address()) != 0; } + + /** Sets the specified value to the {@link #type} field. */ + public XrActionStateBoolean type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_BOOLEAN TYPE_ACTION_STATE_BOOLEAN} value to the {@link #type} field. */ + public XrActionStateBoolean type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_BOOLEAN); } + /** Sets the specified value to the {@link #next} field. */ + public XrActionStateBoolean next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #currentState} field. */ + public XrActionStateBoolean currentState(@NativeType("XrBool32") boolean value) { ncurrentState(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link #changedSinceLastSync} field. */ + public XrActionStateBoolean changedSinceLastSync(@NativeType("XrBool32") boolean value) { nchangedSinceLastSync(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link #lastChangeTime} field. */ + public XrActionStateBoolean lastChangeTime(@NativeType("XrTime") long value) { nlastChangeTime(address(), value); return this; } + /** Sets the specified value to the {@link #isActive} field. */ + public XrActionStateBoolean isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; } /** Initializes this struct with the specified values. */ public XrActionStateBoolean set( - int type, - long next, - boolean currentState, - boolean changedSinceLastSync, - long lastChangeTime, + int type, + long next, + boolean currentState, + boolean changedSinceLastSync, + long lastChangeTime, boolean isActive - ) { - type(type); - next(next); - currentState(currentState); - changedSinceLastSync(changedSinceLastSync); - lastChangeTime(lastChangeTime); - isActive(isActive); + ) { + type(type); + next(next); + currentState(currentState); + changedSinceLastSync(changedSinceLastSync); + lastChangeTime(lastChangeTime); + isActive(isActive); return this; } @@ -282,34 +282,34 @@ public static XrActionStateBoolean.Buffer calloc(int capacity, MemoryStack stack } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionStateBoolean.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrActionStateBoolean.NEXT); } - /** Unsafe version of {@link #currentState}. */ - public static int ncurrentState(long struct) { return UNSAFE.getInt(null, struct + XrActionStateBoolean.CURRENTSTATE); } - /** Unsafe version of {@link #changedSinceLastSync}. */ - public static int nchangedSinceLastSync(long struct) { return UNSAFE.getInt(null, struct + XrActionStateBoolean.CHANGEDSINCELASTSYNC); } - /** Unsafe version of {@link #lastChangeTime}. */ - public static long nlastChangeTime(long struct) { return UNSAFE.getLong(null, struct + XrActionStateBoolean.LASTCHANGETIME); } - /** Unsafe version of {@link #isActive}. */ - public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrActionStateBoolean.ISACTIVE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateBoolean.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrActionStateBoolean.NEXT, value); } - /** Unsafe version of {@link #currentState(boolean) currentState}. */ - public static void ncurrentState(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateBoolean.CURRENTSTATE, value); } - /** Unsafe version of {@link #changedSinceLastSync(boolean) changedSinceLastSync}. */ - public static void nchangedSinceLastSync(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateBoolean.CHANGEDSINCELASTSYNC, value); } - /** Unsafe version of {@link #lastChangeTime(long) lastChangeTime}. */ - public static void nlastChangeTime(long struct, long value) { UNSAFE.putLong(null, struct + XrActionStateBoolean.LASTCHANGETIME, value); } - /** Unsafe version of {@link #isActive(boolean) isActive}. */ - public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateBoolean.ISACTIVE, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionStateBoolean.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrActionStateBoolean.NEXT); } + /** Unsafe version of {@link #currentState}. */ + public static int ncurrentState(long struct) { return UNSAFE.getInt(null, struct + XrActionStateBoolean.CURRENTSTATE); } + /** Unsafe version of {@link #changedSinceLastSync}. */ + public static int nchangedSinceLastSync(long struct) { return UNSAFE.getInt(null, struct + XrActionStateBoolean.CHANGEDSINCELASTSYNC); } + /** Unsafe version of {@link #lastChangeTime}. */ + public static long nlastChangeTime(long struct) { return UNSAFE.getLong(null, struct + XrActionStateBoolean.LASTCHANGETIME); } + /** Unsafe version of {@link #isActive}. */ + public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrActionStateBoolean.ISACTIVE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateBoolean.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrActionStateBoolean.NEXT, value); } + /** Unsafe version of {@link #currentState(boolean) currentState}. */ + public static void ncurrentState(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateBoolean.CURRENTSTATE, value); } + /** Unsafe version of {@link #changedSinceLastSync(boolean) changedSinceLastSync}. */ + public static void nchangedSinceLastSync(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateBoolean.CHANGEDSINCELASTSYNC, value); } + /** Unsafe version of {@link #lastChangeTime(long) lastChangeTime}. */ + public static void nlastChangeTime(long struct, long value) { UNSAFE.putLong(null, struct + XrActionStateBoolean.LASTCHANGETIME, value); } + /** Unsafe version of {@link #isActive(boolean) isActive}. */ + public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateBoolean.ISACTIVE, value); } + + // ----------------------------------- /** An array of {@link XrActionStateBoolean} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -346,40 +346,40 @@ protected Buffer self() { protected XrActionStateBoolean getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrActionStateBoolean#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrActionStateBoolean.ntype(address()); } - /** @return the value of the {@link XrActionStateBoolean#next} field. */ - @NativeType("void *") - public long next() { return XrActionStateBoolean.nnext(address()); } - /** @return the value of the {@link XrActionStateBoolean#currentState} field. */ - @NativeType("XrBool32") - public boolean currentState() { return XrActionStateBoolean.ncurrentState(address()) != 0; } - /** @return the value of the {@link XrActionStateBoolean#changedSinceLastSync} field. */ - @NativeType("XrBool32") - public boolean changedSinceLastSync() { return XrActionStateBoolean.nchangedSinceLastSync(address()) != 0; } - /** @return the value of the {@link XrActionStateBoolean#lastChangeTime} field. */ - @NativeType("XrTime") - public long lastChangeTime() { return XrActionStateBoolean.nlastChangeTime(address()); } - /** @return the value of the {@link XrActionStateBoolean#isActive} field. */ - @NativeType("XrBool32") - public boolean isActive() { return XrActionStateBoolean.nisActive(address()) != 0; } - - /** Sets the specified value to the {@link XrActionStateBoolean#type} field. */ - public XrActionStateBoolean.Buffer type(@NativeType("XrStructureType") int value) { XrActionStateBoolean.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_BOOLEAN TYPE_ACTION_STATE_BOOLEAN} value to the {@link XrActionStateBoolean#type} field. */ - public XrActionStateBoolean.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_BOOLEAN); } - /** Sets the specified value to the {@link XrActionStateBoolean#next} field. */ - public XrActionStateBoolean.Buffer next(@NativeType("void *") long value) { XrActionStateBoolean.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrActionStateBoolean#currentState} field. */ - public XrActionStateBoolean.Buffer currentState(@NativeType("XrBool32") boolean value) { XrActionStateBoolean.ncurrentState(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link XrActionStateBoolean#changedSinceLastSync} field. */ - public XrActionStateBoolean.Buffer changedSinceLastSync(@NativeType("XrBool32") boolean value) { XrActionStateBoolean.nchangedSinceLastSync(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link XrActionStateBoolean#lastChangeTime} field. */ - public XrActionStateBoolean.Buffer lastChangeTime(@NativeType("XrTime") long value) { XrActionStateBoolean.nlastChangeTime(address(), value); return this; } - /** Sets the specified value to the {@link XrActionStateBoolean#isActive} field. */ - public XrActionStateBoolean.Buffer isActive(@NativeType("XrBool32") boolean value) { XrActionStateBoolean.nisActive(address(), value ? 1 : 0); return this; } + + /** @return the value of the {@link XrActionStateBoolean#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrActionStateBoolean.ntype(address()); } + /** @return the value of the {@link XrActionStateBoolean#next} field. */ + @NativeType("void *") + public long next() { return XrActionStateBoolean.nnext(address()); } + /** @return the value of the {@link XrActionStateBoolean#currentState} field. */ + @NativeType("XrBool32") + public boolean currentState() { return XrActionStateBoolean.ncurrentState(address()) != 0; } + /** @return the value of the {@link XrActionStateBoolean#changedSinceLastSync} field. */ + @NativeType("XrBool32") + public boolean changedSinceLastSync() { return XrActionStateBoolean.nchangedSinceLastSync(address()) != 0; } + /** @return the value of the {@link XrActionStateBoolean#lastChangeTime} field. */ + @NativeType("XrTime") + public long lastChangeTime() { return XrActionStateBoolean.nlastChangeTime(address()); } + /** @return the value of the {@link XrActionStateBoolean#isActive} field. */ + @NativeType("XrBool32") + public boolean isActive() { return XrActionStateBoolean.nisActive(address()) != 0; } + + /** Sets the specified value to the {@link XrActionStateBoolean#type} field. */ + public XrActionStateBoolean.Buffer type(@NativeType("XrStructureType") int value) { XrActionStateBoolean.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_BOOLEAN TYPE_ACTION_STATE_BOOLEAN} value to the {@link XrActionStateBoolean#type} field. */ + public XrActionStateBoolean.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_BOOLEAN); } + /** Sets the specified value to the {@link XrActionStateBoolean#next} field. */ + public XrActionStateBoolean.Buffer next(@NativeType("void *") long value) { XrActionStateBoolean.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrActionStateBoolean#currentState} field. */ + public XrActionStateBoolean.Buffer currentState(@NativeType("XrBool32") boolean value) { XrActionStateBoolean.ncurrentState(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link XrActionStateBoolean#changedSinceLastSync} field. */ + public XrActionStateBoolean.Buffer changedSinceLastSync(@NativeType("XrBool32") boolean value) { XrActionStateBoolean.nchangedSinceLastSync(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link XrActionStateBoolean#lastChangeTime} field. */ + public XrActionStateBoolean.Buffer lastChangeTime(@NativeType("XrTime") long value) { XrActionStateBoolean.nlastChangeTime(address(), value); return this; } + /** Sets the specified value to the {@link XrActionStateBoolean#isActive} field. */ + public XrActionStateBoolean.Buffer isActive(@NativeType("XrBool32") boolean value) { XrActionStateBoolean.nisActive(address(), value ? 1 : 0); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateFloat.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateFloat.java index 5f98ab519c..6394a33fa1 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateFloat.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateFloat.java @@ -4,29 +4,29 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Floating point action state. * *
    Description
    * - *

    When multiple input sources are bound to this action, the {@code currentState} follows the previously defined rule to resolve ambiguity.

    + *

    When multiple input sources are bound to this action, the {@code currentState} follows the previously defined rule to resolve ambiguity.

    * *
    Valid Usage (Implicit)
    * * * *
    See Also
    @@ -44,8 +44,8 @@ * XrTime {@link #lastChangeTime}; * XrBool32 {@link #isActive}; * }
    - */ -public class XrActionStateFloat extends Struct implements NativeResource { + */ +public class XrActionStateFloat extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,33 +55,33 @@ public class XrActionStateFloat extends Struct implements Na /** The struct member offsets. */ public static final int - TYPE, - NEXT, - CURRENTSTATE, - CHANGEDSINCELASTSYNC, - LASTCHANGETIME, - ISACTIVE; + TYPE, + NEXT, + CURRENTSTATE, + CHANGEDSINCELASTSYNC, + LASTCHANGETIME, + ISACTIVE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), - __member(8), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), + __member(8), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - CURRENTSTATE = layout.offsetof(2); - CHANGEDSINCELASTSYNC = layout.offsetof(3); - LASTCHANGETIME = layout.offsetof(4); - ISACTIVE = layout.offsetof(5); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + CURRENTSTATE = layout.offsetof(2); + CHANGEDSINCELASTSYNC = layout.offsetof(3); + LASTCHANGETIME = layout.offsetof(4); + ISACTIVE = layout.offsetof(5); + } protected XrActionStateFloat(long address, @Nullable ByteBuffer container) { super(address, container); @@ -104,55 +104,55 @@ public XrActionStateFloat(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** the current state of the Action. */ - public float currentState() { return ncurrentState(address()); } - /** {@link XR10#XR_TRUE TRUE} if the value of {@code currentState} is different than it was before the most recent call to {@link XR10#xrSyncActions SyncActions}. */ - @NativeType("XrBool32") - public boolean changedSinceLastSync() { return nchangedSinceLastSync(address()) != 0; } - /** the {@code XrTime} in nanoseconds since this action’s value last changed. */ - @NativeType("XrTime") - public long lastChangeTime() { return nlastChangeTime(address()); } - /** {@link XR10#XR_TRUE TRUE} if and only if there exists an input source that is contributing to the current state of this action. */ - @NativeType("XrBool32") - public boolean isActive() { return nisActive(address()) != 0; } - - /** Sets the specified value to the {@link #type} field. */ - public XrActionStateFloat type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_FLOAT TYPE_ACTION_STATE_FLOAT} value to the {@link #type} field. */ - public XrActionStateFloat type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_FLOAT); } - /** Sets the specified value to the {@link #next} field. */ - public XrActionStateFloat next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #currentState} field. */ - public XrActionStateFloat currentState(float value) { ncurrentState(address(), value); return this; } - /** Sets the specified value to the {@link #changedSinceLastSync} field. */ - public XrActionStateFloat changedSinceLastSync(@NativeType("XrBool32") boolean value) { nchangedSinceLastSync(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link #lastChangeTime} field. */ - public XrActionStateFloat lastChangeTime(@NativeType("XrTime") long value) { nlastChangeTime(address(), value); return this; } - /** Sets the specified value to the {@link #isActive} field. */ - public XrActionStateFloat isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the current state of the Action. */ + public float currentState() { return ncurrentState(address()); } + /** {@link XR10#XR_TRUE TRUE} if the value of {@code currentState} is different than it was before the most recent call to {@link XR10#xrSyncActions SyncActions}. */ + @NativeType("XrBool32") + public boolean changedSinceLastSync() { return nchangedSinceLastSync(address()) != 0; } + /** the {@code XrTime} in nanoseconds since this action’s value last changed. */ + @NativeType("XrTime") + public long lastChangeTime() { return nlastChangeTime(address()); } + /** {@link XR10#XR_TRUE TRUE} if and only if there exists an input source that is contributing to the current state of this action. */ + @NativeType("XrBool32") + public boolean isActive() { return nisActive(address()) != 0; } + + /** Sets the specified value to the {@link #type} field. */ + public XrActionStateFloat type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_FLOAT TYPE_ACTION_STATE_FLOAT} value to the {@link #type} field. */ + public XrActionStateFloat type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_FLOAT); } + /** Sets the specified value to the {@link #next} field. */ + public XrActionStateFloat next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #currentState} field. */ + public XrActionStateFloat currentState(float value) { ncurrentState(address(), value); return this; } + /** Sets the specified value to the {@link #changedSinceLastSync} field. */ + public XrActionStateFloat changedSinceLastSync(@NativeType("XrBool32") boolean value) { nchangedSinceLastSync(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link #lastChangeTime} field. */ + public XrActionStateFloat lastChangeTime(@NativeType("XrTime") long value) { nlastChangeTime(address(), value); return this; } + /** Sets the specified value to the {@link #isActive} field. */ + public XrActionStateFloat isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; } /** Initializes this struct with the specified values. */ public XrActionStateFloat set( - int type, - long next, - float currentState, - boolean changedSinceLastSync, - long lastChangeTime, + int type, + long next, + float currentState, + boolean changedSinceLastSync, + long lastChangeTime, boolean isActive - ) { - type(type); - next(next); - currentState(currentState); - changedSinceLastSync(changedSinceLastSync); - lastChangeTime(lastChangeTime); - isActive(isActive); + ) { + type(type); + next(next); + currentState(currentState); + changedSinceLastSync(changedSinceLastSync); + lastChangeTime(lastChangeTime); + isActive(isActive); return this; } @@ -281,34 +281,34 @@ public static XrActionStateFloat.Buffer calloc(int capacity, MemoryStack stack) } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionStateFloat.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrActionStateFloat.NEXT); } - /** Unsafe version of {@link #currentState}. */ - public static float ncurrentState(long struct) { return UNSAFE.getFloat(null, struct + XrActionStateFloat.CURRENTSTATE); } - /** Unsafe version of {@link #changedSinceLastSync}. */ - public static int nchangedSinceLastSync(long struct) { return UNSAFE.getInt(null, struct + XrActionStateFloat.CHANGEDSINCELASTSYNC); } - /** Unsafe version of {@link #lastChangeTime}. */ - public static long nlastChangeTime(long struct) { return UNSAFE.getLong(null, struct + XrActionStateFloat.LASTCHANGETIME); } - /** Unsafe version of {@link #isActive}. */ - public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrActionStateFloat.ISACTIVE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateFloat.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrActionStateFloat.NEXT, value); } - /** Unsafe version of {@link #currentState(float) currentState}. */ - public static void ncurrentState(long struct, float value) { UNSAFE.putFloat(null, struct + XrActionStateFloat.CURRENTSTATE, value); } - /** Unsafe version of {@link #changedSinceLastSync(boolean) changedSinceLastSync}. */ - public static void nchangedSinceLastSync(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateFloat.CHANGEDSINCELASTSYNC, value); } - /** Unsafe version of {@link #lastChangeTime(long) lastChangeTime}. */ - public static void nlastChangeTime(long struct, long value) { UNSAFE.putLong(null, struct + XrActionStateFloat.LASTCHANGETIME, value); } - /** Unsafe version of {@link #isActive(boolean) isActive}. */ - public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateFloat.ISACTIVE, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionStateFloat.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrActionStateFloat.NEXT); } + /** Unsafe version of {@link #currentState}. */ + public static float ncurrentState(long struct) { return UNSAFE.getFloat(null, struct + XrActionStateFloat.CURRENTSTATE); } + /** Unsafe version of {@link #changedSinceLastSync}. */ + public static int nchangedSinceLastSync(long struct) { return UNSAFE.getInt(null, struct + XrActionStateFloat.CHANGEDSINCELASTSYNC); } + /** Unsafe version of {@link #lastChangeTime}. */ + public static long nlastChangeTime(long struct) { return UNSAFE.getLong(null, struct + XrActionStateFloat.LASTCHANGETIME); } + /** Unsafe version of {@link #isActive}. */ + public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrActionStateFloat.ISACTIVE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateFloat.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrActionStateFloat.NEXT, value); } + /** Unsafe version of {@link #currentState(float) currentState}. */ + public static void ncurrentState(long struct, float value) { UNSAFE.putFloat(null, struct + XrActionStateFloat.CURRENTSTATE, value); } + /** Unsafe version of {@link #changedSinceLastSync(boolean) changedSinceLastSync}. */ + public static void nchangedSinceLastSync(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateFloat.CHANGEDSINCELASTSYNC, value); } + /** Unsafe version of {@link #lastChangeTime(long) lastChangeTime}. */ + public static void nlastChangeTime(long struct, long value) { UNSAFE.putLong(null, struct + XrActionStateFloat.LASTCHANGETIME, value); } + /** Unsafe version of {@link #isActive(boolean) isActive}. */ + public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateFloat.ISACTIVE, value); } + + // ----------------------------------- /** An array of {@link XrActionStateFloat} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -345,39 +345,39 @@ protected Buffer self() { protected XrActionStateFloat getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrActionStateFloat#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrActionStateFloat.ntype(address()); } - /** @return the value of the {@link XrActionStateFloat#next} field. */ - @NativeType("void *") - public long next() { return XrActionStateFloat.nnext(address()); } - /** @return the value of the {@link XrActionStateFloat#currentState} field. */ - public float currentState() { return XrActionStateFloat.ncurrentState(address()); } - /** @return the value of the {@link XrActionStateFloat#changedSinceLastSync} field. */ - @NativeType("XrBool32") - public boolean changedSinceLastSync() { return XrActionStateFloat.nchangedSinceLastSync(address()) != 0; } - /** @return the value of the {@link XrActionStateFloat#lastChangeTime} field. */ - @NativeType("XrTime") - public long lastChangeTime() { return XrActionStateFloat.nlastChangeTime(address()); } - /** @return the value of the {@link XrActionStateFloat#isActive} field. */ - @NativeType("XrBool32") - public boolean isActive() { return XrActionStateFloat.nisActive(address()) != 0; } - - /** Sets the specified value to the {@link XrActionStateFloat#type} field. */ - public XrActionStateFloat.Buffer type(@NativeType("XrStructureType") int value) { XrActionStateFloat.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_FLOAT TYPE_ACTION_STATE_FLOAT} value to the {@link XrActionStateFloat#type} field. */ - public XrActionStateFloat.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_FLOAT); } - /** Sets the specified value to the {@link XrActionStateFloat#next} field. */ - public XrActionStateFloat.Buffer next(@NativeType("void *") long value) { XrActionStateFloat.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrActionStateFloat#currentState} field. */ - public XrActionStateFloat.Buffer currentState(float value) { XrActionStateFloat.ncurrentState(address(), value); return this; } - /** Sets the specified value to the {@link XrActionStateFloat#changedSinceLastSync} field. */ - public XrActionStateFloat.Buffer changedSinceLastSync(@NativeType("XrBool32") boolean value) { XrActionStateFloat.nchangedSinceLastSync(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link XrActionStateFloat#lastChangeTime} field. */ - public XrActionStateFloat.Buffer lastChangeTime(@NativeType("XrTime") long value) { XrActionStateFloat.nlastChangeTime(address(), value); return this; } - /** Sets the specified value to the {@link XrActionStateFloat#isActive} field. */ - public XrActionStateFloat.Buffer isActive(@NativeType("XrBool32") boolean value) { XrActionStateFloat.nisActive(address(), value ? 1 : 0); return this; } + + /** @return the value of the {@link XrActionStateFloat#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrActionStateFloat.ntype(address()); } + /** @return the value of the {@link XrActionStateFloat#next} field. */ + @NativeType("void *") + public long next() { return XrActionStateFloat.nnext(address()); } + /** @return the value of the {@link XrActionStateFloat#currentState} field. */ + public float currentState() { return XrActionStateFloat.ncurrentState(address()); } + /** @return the value of the {@link XrActionStateFloat#changedSinceLastSync} field. */ + @NativeType("XrBool32") + public boolean changedSinceLastSync() { return XrActionStateFloat.nchangedSinceLastSync(address()) != 0; } + /** @return the value of the {@link XrActionStateFloat#lastChangeTime} field. */ + @NativeType("XrTime") + public long lastChangeTime() { return XrActionStateFloat.nlastChangeTime(address()); } + /** @return the value of the {@link XrActionStateFloat#isActive} field. */ + @NativeType("XrBool32") + public boolean isActive() { return XrActionStateFloat.nisActive(address()) != 0; } + + /** Sets the specified value to the {@link XrActionStateFloat#type} field. */ + public XrActionStateFloat.Buffer type(@NativeType("XrStructureType") int value) { XrActionStateFloat.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_FLOAT TYPE_ACTION_STATE_FLOAT} value to the {@link XrActionStateFloat#type} field. */ + public XrActionStateFloat.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_FLOAT); } + /** Sets the specified value to the {@link XrActionStateFloat#next} field. */ + public XrActionStateFloat.Buffer next(@NativeType("void *") long value) { XrActionStateFloat.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrActionStateFloat#currentState} field. */ + public XrActionStateFloat.Buffer currentState(float value) { XrActionStateFloat.ncurrentState(address(), value); return this; } + /** Sets the specified value to the {@link XrActionStateFloat#changedSinceLastSync} field. */ + public XrActionStateFloat.Buffer changedSinceLastSync(@NativeType("XrBool32") boolean value) { XrActionStateFloat.nchangedSinceLastSync(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link XrActionStateFloat#lastChangeTime} field. */ + public XrActionStateFloat.Buffer lastChangeTime(@NativeType("XrTime") long value) { XrActionStateFloat.nlastChangeTime(address(), value); return this; } + /** Sets the specified value to the {@link XrActionStateFloat#isActive} field. */ + public XrActionStateFloat.Buffer isActive(@NativeType("XrBool32") boolean value) { XrActionStateFloat.nisActive(address(), value ? 1 : 0); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateGetInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateGetInfo.java index 4011e5dc17..f2428d36e7 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateGetInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateGetInfo.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Information to get action state. * @@ -27,7 +27,7 @@ * *
      *
    • {@code type} must be {@link XR10#XR_TYPE_ACTION_STATE_GET_INFO TYPE_ACTION_STATE_GET_INFO}
    • - *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • + *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • *
    • {@code action} must be a valid {@code XrAction} handle
    • *
    * @@ -44,8 +44,8 @@ * XrAction {@link #action}; * XrPath {@link #subactionPath}; * } - */ -public class XrActionStateGetInfo extends Struct implements NativeResource { + */ +public class XrActionStateGetInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,27 +55,27 @@ public class XrActionStateGetInfo extends Struct implement /** The struct member offsets. */ public static final int - TYPE, - NEXT, - ACTION, - SUBACTIONPATH; + TYPE, + NEXT, + ACTION, + SUBACTIONPATH; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - ACTION = layout.offsetof(2); - SUBACTIONPATH = layout.offsetof(3); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + ACTION = layout.offsetof(2); + SUBACTIONPATH = layout.offsetof(3); + } protected XrActionStateGetInfo(long address, @Nullable ByteBuffer container) { super(address, container); @@ -98,42 +98,42 @@ public XrActionStateGetInfo(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** the {@code XrAction} being queried. */ - @NativeType("XrAction") - public long action() { return naction(address()); } - /** the subaction path {@code XrPath} to query data from, or {@link XR10#XR_NULL_PATH NULL_PATH} to specify all subaction paths. If the subaction path is specified, it is one of the subaction paths that were specified when the action was created. If the subaction path was not specified when the action was created, the runtime must return {@link XR10#XR_ERROR_PATH_UNSUPPORTED ERROR_PATH_UNSUPPORTED}. If this parameter is specified, the runtime must return data that originates only from the subaction paths specified. */ - @NativeType("XrPath") - public long subactionPath() { return nsubactionPath(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrActionStateGetInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_GET_INFO TYPE_ACTION_STATE_GET_INFO} value to the {@link #type} field. */ - public XrActionStateGetInfo type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_GET_INFO); } - /** Sets the specified value to the {@link #next} field. */ - public XrActionStateGetInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #action} field. */ - public XrActionStateGetInfo action(XrAction value) { naction(address(), value); return this; } - /** Sets the specified value to the {@link #subactionPath} field. */ - public XrActionStateGetInfo subactionPath(@NativeType("XrPath") long value) { nsubactionPath(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the {@code XrAction} being queried. */ + @NativeType("XrAction") + public long action() { return naction(address()); } + /** the subaction path {@code XrPath} to query data from, or {@link XR10#XR_NULL_PATH NULL_PATH} to specify all subaction paths. If the subaction path is specified, it is one of the subaction paths that were specified when the action was created. If the subaction path was not specified when the action was created, the runtime must return {@link XR10#XR_ERROR_PATH_UNSUPPORTED ERROR_PATH_UNSUPPORTED}. If this parameter is specified, the runtime must return data that originates only from the subaction paths specified. */ + @NativeType("XrPath") + public long subactionPath() { return nsubactionPath(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrActionStateGetInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_GET_INFO TYPE_ACTION_STATE_GET_INFO} value to the {@link #type} field. */ + public XrActionStateGetInfo type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_GET_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrActionStateGetInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #action} field. */ + public XrActionStateGetInfo action(XrAction value) { naction(address(), value); return this; } + /** Sets the specified value to the {@link #subactionPath} field. */ + public XrActionStateGetInfo subactionPath(@NativeType("XrPath") long value) { nsubactionPath(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrActionStateGetInfo set( - int type, - long next, - XrAction action, + int type, + long next, + XrAction action, long subactionPath - ) { - type(type); - next(next); - action(action); - subactionPath(subactionPath); + ) { + type(type); + next(next); + action(action); + subactionPath(subactionPath); return this; } @@ -262,24 +262,24 @@ public static XrActionStateGetInfo.Buffer calloc(int capacity, MemoryStack stack } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionStateGetInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrActionStateGetInfo.NEXT); } - /** Unsafe version of {@link #action}. */ - public static long naction(long struct) { return memGetAddress(struct + XrActionStateGetInfo.ACTION); } - /** Unsafe version of {@link #subactionPath}. */ - public static long nsubactionPath(long struct) { return UNSAFE.getLong(null, struct + XrActionStateGetInfo.SUBACTIONPATH); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateGetInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrActionStateGetInfo.NEXT, value); } - /** Unsafe version of {@link #action(XrAction) action}. */ - public static void naction(long struct, XrAction value) { memPutAddress(struct + XrActionStateGetInfo.ACTION, value.address()); } - /** Unsafe version of {@link #subactionPath(long) subactionPath}. */ - public static void nsubactionPath(long struct, long value) { UNSAFE.putLong(null, struct + XrActionStateGetInfo.SUBACTIONPATH, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionStateGetInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrActionStateGetInfo.NEXT); } + /** Unsafe version of {@link #action}. */ + public static long naction(long struct) { return memGetAddress(struct + XrActionStateGetInfo.ACTION); } + /** Unsafe version of {@link #subactionPath}. */ + public static long nsubactionPath(long struct) { return UNSAFE.getLong(null, struct + XrActionStateGetInfo.SUBACTIONPATH); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateGetInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrActionStateGetInfo.NEXT, value); } + /** Unsafe version of {@link #action(XrAction) action}. */ + public static void naction(long struct, XrAction value) { memPutAddress(struct + XrActionStateGetInfo.ACTION, value.address()); } + /** Unsafe version of {@link #subactionPath(long) subactionPath}. */ + public static void nsubactionPath(long struct, long value) { UNSAFE.putLong(null, struct + XrActionStateGetInfo.SUBACTIONPATH, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -288,9 +288,9 @@ public static XrActionStateGetInfo.Buffer calloc(int capacity, MemoryStack stack */ public static void validate(long struct) { check(memGetAddress(struct + XrActionStateGetInfo.ACTION)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrActionStateGetInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -327,30 +327,30 @@ protected Buffer self() { protected XrActionStateGetInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrActionStateGetInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrActionStateGetInfo.ntype(address()); } - /** @return the value of the {@link XrActionStateGetInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrActionStateGetInfo.nnext(address()); } - /** @return the value of the {@link XrActionStateGetInfo#action} field. */ - @NativeType("XrAction") - public long action() { return XrActionStateGetInfo.naction(address()); } - /** @return the value of the {@link XrActionStateGetInfo#subactionPath} field. */ - @NativeType("XrPath") - public long subactionPath() { return XrActionStateGetInfo.nsubactionPath(address()); } - - /** Sets the specified value to the {@link XrActionStateGetInfo#type} field. */ - public XrActionStateGetInfo.Buffer type(@NativeType("XrStructureType") int value) { XrActionStateGetInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_GET_INFO TYPE_ACTION_STATE_GET_INFO} value to the {@link XrActionStateGetInfo#type} field. */ - public XrActionStateGetInfo.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_GET_INFO); } - /** Sets the specified value to the {@link XrActionStateGetInfo#next} field. */ - public XrActionStateGetInfo.Buffer next(@NativeType("void const *") long value) { XrActionStateGetInfo.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrActionStateGetInfo#action} field. */ - public XrActionStateGetInfo.Buffer action(XrAction value) { XrActionStateGetInfo.naction(address(), value); return this; } - /** Sets the specified value to the {@link XrActionStateGetInfo#subactionPath} field. */ - public XrActionStateGetInfo.Buffer subactionPath(@NativeType("XrPath") long value) { XrActionStateGetInfo.nsubactionPath(address(), value); return this; } + + /** @return the value of the {@link XrActionStateGetInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrActionStateGetInfo.ntype(address()); } + /** @return the value of the {@link XrActionStateGetInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrActionStateGetInfo.nnext(address()); } + /** @return the value of the {@link XrActionStateGetInfo#action} field. */ + @NativeType("XrAction") + public long action() { return XrActionStateGetInfo.naction(address()); } + /** @return the value of the {@link XrActionStateGetInfo#subactionPath} field. */ + @NativeType("XrPath") + public long subactionPath() { return XrActionStateGetInfo.nsubactionPath(address()); } + + /** Sets the specified value to the {@link XrActionStateGetInfo#type} field. */ + public XrActionStateGetInfo.Buffer type(@NativeType("XrStructureType") int value) { XrActionStateGetInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_GET_INFO TYPE_ACTION_STATE_GET_INFO} value to the {@link XrActionStateGetInfo#type} field. */ + public XrActionStateGetInfo.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_GET_INFO); } + /** Sets the specified value to the {@link XrActionStateGetInfo#next} field. */ + public XrActionStateGetInfo.Buffer next(@NativeType("void const *") long value) { XrActionStateGetInfo.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrActionStateGetInfo#action} field. */ + public XrActionStateGetInfo.Buffer action(XrAction value) { XrActionStateGetInfo.naction(address(), value); return this; } + /** Sets the specified value to the {@link XrActionStateGetInfo#subactionPath} field. */ + public XrActionStateGetInfo.Buffer subactionPath(@NativeType("XrPath") long value) { XrActionStateGetInfo.nsubactionPath(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStatePose.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStatePose.java index aaca1d9706..f0403aa67c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStatePose.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStatePose.java @@ -4,29 +4,29 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Pose action metadata. * *
    Description
    * - *

    A pose action must not be bound to multiple input sources, according to the previously defined rule.

    + *

    A pose action must not be bound to multiple input sources, according to the previously defined rule.

    * *
    Valid Usage (Implicit)
    * * * *
    See Also
    @@ -41,8 +41,8 @@ * void * {@link #next}; * XrBool32 {@link #isActive}; * } - */ -public class XrActionStatePose extends Struct implements NativeResource { + */ +public class XrActionStatePose extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,24 +52,24 @@ public class XrActionStatePose extends Struct implements Nati /** The struct member offsets. */ public static final int - TYPE, - NEXT, - ISACTIVE; + TYPE, + NEXT, + ISACTIVE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - ISACTIVE = layout.offsetof(2); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + ISACTIVE = layout.offsetof(2); + } protected XrActionStatePose(long address, @Nullable ByteBuffer container) { super(address, container); @@ -92,35 +92,35 @@ public XrActionStatePose(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** {@link XR10#XR_TRUE TRUE} if and only if there exists an input source that is being tracked by this pose action. */ - @NativeType("XrBool32") - public boolean isActive() { return nisActive(address()) != 0; } - - /** Sets the specified value to the {@link #type} field. */ - public XrActionStatePose type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_POSE TYPE_ACTION_STATE_POSE} value to the {@link #type} field. */ - public XrActionStatePose type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_POSE); } - /** Sets the specified value to the {@link #next} field. */ - public XrActionStatePose next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #isActive} field. */ - public XrActionStatePose isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** {@link XR10#XR_TRUE TRUE} if and only if there exists an input source that is being tracked by this pose action. */ + @NativeType("XrBool32") + public boolean isActive() { return nisActive(address()) != 0; } + + /** Sets the specified value to the {@link #type} field. */ + public XrActionStatePose type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_POSE TYPE_ACTION_STATE_POSE} value to the {@link #type} field. */ + public XrActionStatePose type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_POSE); } + /** Sets the specified value to the {@link #next} field. */ + public XrActionStatePose next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #isActive} field. */ + public XrActionStatePose isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; } /** Initializes this struct with the specified values. */ public XrActionStatePose set( - int type, - long next, + int type, + long next, boolean isActive - ) { - type(type); - next(next); - isActive(isActive); + ) { + type(type); + next(next); + isActive(isActive); return this; } @@ -249,22 +249,22 @@ public static XrActionStatePose.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionStatePose.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrActionStatePose.NEXT); } - /** Unsafe version of {@link #isActive}. */ - public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrActionStatePose.ISACTIVE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStatePose.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrActionStatePose.NEXT, value); } - /** Unsafe version of {@link #isActive(boolean) isActive}. */ - public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStatePose.ISACTIVE, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionStatePose.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrActionStatePose.NEXT); } + /** Unsafe version of {@link #isActive}. */ + public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrActionStatePose.ISACTIVE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStatePose.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrActionStatePose.NEXT, value); } + /** Unsafe version of {@link #isActive(boolean) isActive}. */ + public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStatePose.ISACTIVE, value); } + + // ----------------------------------- /** An array of {@link XrActionStatePose} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -301,25 +301,25 @@ protected Buffer self() { protected XrActionStatePose getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrActionStatePose#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrActionStatePose.ntype(address()); } - /** @return the value of the {@link XrActionStatePose#next} field. */ - @NativeType("void *") - public long next() { return XrActionStatePose.nnext(address()); } - /** @return the value of the {@link XrActionStatePose#isActive} field. */ - @NativeType("XrBool32") - public boolean isActive() { return XrActionStatePose.nisActive(address()) != 0; } - - /** Sets the specified value to the {@link XrActionStatePose#type} field. */ - public XrActionStatePose.Buffer type(@NativeType("XrStructureType") int value) { XrActionStatePose.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_POSE TYPE_ACTION_STATE_POSE} value to the {@link XrActionStatePose#type} field. */ - public XrActionStatePose.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_POSE); } - /** Sets the specified value to the {@link XrActionStatePose#next} field. */ - public XrActionStatePose.Buffer next(@NativeType("void *") long value) { XrActionStatePose.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrActionStatePose#isActive} field. */ - public XrActionStatePose.Buffer isActive(@NativeType("XrBool32") boolean value) { XrActionStatePose.nisActive(address(), value ? 1 : 0); return this; } + + /** @return the value of the {@link XrActionStatePose#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrActionStatePose.ntype(address()); } + /** @return the value of the {@link XrActionStatePose#next} field. */ + @NativeType("void *") + public long next() { return XrActionStatePose.nnext(address()); } + /** @return the value of the {@link XrActionStatePose#isActive} field. */ + @NativeType("XrBool32") + public boolean isActive() { return XrActionStatePose.nisActive(address()) != 0; } + + /** Sets the specified value to the {@link XrActionStatePose#type} field. */ + public XrActionStatePose.Buffer type(@NativeType("XrStructureType") int value) { XrActionStatePose.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_POSE TYPE_ACTION_STATE_POSE} value to the {@link XrActionStatePose#type} field. */ + public XrActionStatePose.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_POSE); } + /** Sets the specified value to the {@link XrActionStatePose#next} field. */ + public XrActionStatePose.Buffer next(@NativeType("void *") long value) { XrActionStatePose.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrActionStatePose#isActive} field. */ + public XrActionStatePose.Buffer isActive(@NativeType("XrBool32") boolean value) { XrActionStatePose.nisActive(address(), value ? 1 : 0); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateVector2f.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateVector2f.java index a44b68f2dd..33aaac6489 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateVector2f.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionStateVector2f.java @@ -4,29 +4,29 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * 2D float vector action state. * *
    Description
    * - *

    When multiple input sources are bound to this action, the {@code currentState} follows the previously defined rule to resolve ambiguity.

    + *

    When multiple input sources are bound to this action, the {@code currentState} follows the previously defined rule to resolve ambiguity.

    * *
    Valid Usage (Implicit)
    * * * *
    See Also
    @@ -44,8 +44,8 @@ * XrTime {@link #lastChangeTime}; * XrBool32 {@link #isActive}; * } - */ -public class XrActionStateVector2f extends Struct implements NativeResource { + */ +public class XrActionStateVector2f extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,33 +55,33 @@ public class XrActionStateVector2f extends Struct impleme /** The struct member offsets. */ public static final int - TYPE, - NEXT, - CURRENTSTATE, - CHANGEDSINCELASTSYNC, - LASTCHANGETIME, - ISACTIVE; + TYPE, + NEXT, + CURRENTSTATE, + CHANGEDSINCELASTSYNC, + LASTCHANGETIME, + ISACTIVE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(XrVector2f.SIZEOF, XrVector2f.ALIGNOF), - __member(4), - __member(8), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(XrVector2f.SIZEOF, XrVector2f.ALIGNOF), + __member(4), + __member(8), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - CURRENTSTATE = layout.offsetof(2); - CHANGEDSINCELASTSYNC = layout.offsetof(3); - LASTCHANGETIME = layout.offsetof(4); - ISACTIVE = layout.offsetof(5); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + CURRENTSTATE = layout.offsetof(2); + CHANGEDSINCELASTSYNC = layout.offsetof(3); + LASTCHANGETIME = layout.offsetof(4); + ISACTIVE = layout.offsetof(5); + } protected XrActionStateVector2f(long address, @Nullable ByteBuffer container) { super(address, container); @@ -104,57 +104,57 @@ public XrActionStateVector2f(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** the current {@link XrVector2f} state of the Action. */ - public XrVector2f currentState() { return ncurrentState(address()); } - /** {@link XR10#XR_TRUE TRUE} if the value of {@code currentState} is different than it was before the most recent call to {@link XR10#xrSyncActions SyncActions}. */ - @NativeType("XrBool32") - public boolean changedSinceLastSync() { return nchangedSinceLastSync(address()) != 0; } - /** the {@code XrTime} in nanoseconds since this action’s value last changed. */ - @NativeType("XrTime") - public long lastChangeTime() { return nlastChangeTime(address()); } - /** {@link XR10#XR_TRUE TRUE} if and only if there exists an input source that is contributing to the current state of this action. */ - @NativeType("XrBool32") - public boolean isActive() { return nisActive(address()) != 0; } - - /** Sets the specified value to the {@link #type} field. */ - public XrActionStateVector2f type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_VECTOR2F TYPE_ACTION_STATE_VECTOR2F} value to the {@link #type} field. */ - public XrActionStateVector2f type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_VECTOR2F); } - /** Sets the specified value to the {@link #next} field. */ - public XrActionStateVector2f next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Copies the specified {@link XrVector2f} to the {@link #currentState} field. */ - public XrActionStateVector2f currentState(XrVector2f value) { ncurrentState(address(), value); return this; } - /** Passes the {@link #currentState} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrActionStateVector2f currentState(java.util.function.Consumer consumer) { consumer.accept(currentState()); return this; } - /** Sets the specified value to the {@link #changedSinceLastSync} field. */ - public XrActionStateVector2f changedSinceLastSync(@NativeType("XrBool32") boolean value) { nchangedSinceLastSync(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link #lastChangeTime} field. */ - public XrActionStateVector2f lastChangeTime(@NativeType("XrTime") long value) { nlastChangeTime(address(), value); return this; } - /** Sets the specified value to the {@link #isActive} field. */ - public XrActionStateVector2f isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the current {@link XrVector2f} state of the Action. */ + public XrVector2f currentState() { return ncurrentState(address()); } + /** {@link XR10#XR_TRUE TRUE} if the value of {@code currentState} is different than it was before the most recent call to {@link XR10#xrSyncActions SyncActions}. */ + @NativeType("XrBool32") + public boolean changedSinceLastSync() { return nchangedSinceLastSync(address()) != 0; } + /** the {@code XrTime} in nanoseconds since this action’s value last changed. */ + @NativeType("XrTime") + public long lastChangeTime() { return nlastChangeTime(address()); } + /** {@link XR10#XR_TRUE TRUE} if and only if there exists an input source that is contributing to the current state of this action. */ + @NativeType("XrBool32") + public boolean isActive() { return nisActive(address()) != 0; } + + /** Sets the specified value to the {@link #type} field. */ + public XrActionStateVector2f type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_VECTOR2F TYPE_ACTION_STATE_VECTOR2F} value to the {@link #type} field. */ + public XrActionStateVector2f type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_VECTOR2F); } + /** Sets the specified value to the {@link #next} field. */ + public XrActionStateVector2f next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link XrVector2f} to the {@link #currentState} field. */ + public XrActionStateVector2f currentState(XrVector2f value) { ncurrentState(address(), value); return this; } + /** Passes the {@link #currentState} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrActionStateVector2f currentState(java.util.function.Consumer consumer) { consumer.accept(currentState()); return this; } + /** Sets the specified value to the {@link #changedSinceLastSync} field. */ + public XrActionStateVector2f changedSinceLastSync(@NativeType("XrBool32") boolean value) { nchangedSinceLastSync(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link #lastChangeTime} field. */ + public XrActionStateVector2f lastChangeTime(@NativeType("XrTime") long value) { nlastChangeTime(address(), value); return this; } + /** Sets the specified value to the {@link #isActive} field. */ + public XrActionStateVector2f isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; } /** Initializes this struct with the specified values. */ public XrActionStateVector2f set( - int type, - long next, - XrVector2f currentState, - boolean changedSinceLastSync, - long lastChangeTime, + int type, + long next, + XrVector2f currentState, + boolean changedSinceLastSync, + long lastChangeTime, boolean isActive - ) { - type(type); - next(next); - currentState(currentState); - changedSinceLastSync(changedSinceLastSync); - lastChangeTime(lastChangeTime); - isActive(isActive); + ) { + type(type); + next(next); + currentState(currentState); + changedSinceLastSync(changedSinceLastSync); + lastChangeTime(lastChangeTime); + isActive(isActive); return this; } @@ -283,34 +283,34 @@ public static XrActionStateVector2f.Buffer calloc(int capacity, MemoryStack stac } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionStateVector2f.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrActionStateVector2f.NEXT); } - /** Unsafe version of {@link #currentState}. */ - public static XrVector2f ncurrentState(long struct) { return XrVector2f.create(struct + XrActionStateVector2f.CURRENTSTATE); } - /** Unsafe version of {@link #changedSinceLastSync}. */ - public static int nchangedSinceLastSync(long struct) { return UNSAFE.getInt(null, struct + XrActionStateVector2f.CHANGEDSINCELASTSYNC); } - /** Unsafe version of {@link #lastChangeTime}. */ - public static long nlastChangeTime(long struct) { return UNSAFE.getLong(null, struct + XrActionStateVector2f.LASTCHANGETIME); } - /** Unsafe version of {@link #isActive}. */ - public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrActionStateVector2f.ISACTIVE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateVector2f.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrActionStateVector2f.NEXT, value); } - /** Unsafe version of {@link #currentState(XrVector2f) currentState}. */ - public static void ncurrentState(long struct, XrVector2f value) { memCopy(value.address(), struct + XrActionStateVector2f.CURRENTSTATE, XrVector2f.SIZEOF); } - /** Unsafe version of {@link #changedSinceLastSync(boolean) changedSinceLastSync}. */ - public static void nchangedSinceLastSync(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateVector2f.CHANGEDSINCELASTSYNC, value); } - /** Unsafe version of {@link #lastChangeTime(long) lastChangeTime}. */ - public static void nlastChangeTime(long struct, long value) { UNSAFE.putLong(null, struct + XrActionStateVector2f.LASTCHANGETIME, value); } - /** Unsafe version of {@link #isActive(boolean) isActive}. */ - public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateVector2f.ISACTIVE, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionStateVector2f.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrActionStateVector2f.NEXT); } + /** Unsafe version of {@link #currentState}. */ + public static XrVector2f ncurrentState(long struct) { return XrVector2f.create(struct + XrActionStateVector2f.CURRENTSTATE); } + /** Unsafe version of {@link #changedSinceLastSync}. */ + public static int nchangedSinceLastSync(long struct) { return UNSAFE.getInt(null, struct + XrActionStateVector2f.CHANGEDSINCELASTSYNC); } + /** Unsafe version of {@link #lastChangeTime}. */ + public static long nlastChangeTime(long struct) { return UNSAFE.getLong(null, struct + XrActionStateVector2f.LASTCHANGETIME); } + /** Unsafe version of {@link #isActive}. */ + public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrActionStateVector2f.ISACTIVE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateVector2f.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrActionStateVector2f.NEXT, value); } + /** Unsafe version of {@link #currentState(XrVector2f) currentState}. */ + public static void ncurrentState(long struct, XrVector2f value) { memCopy(value.address(), struct + XrActionStateVector2f.CURRENTSTATE, XrVector2f.SIZEOF); } + /** Unsafe version of {@link #changedSinceLastSync(boolean) changedSinceLastSync}. */ + public static void nchangedSinceLastSync(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateVector2f.CHANGEDSINCELASTSYNC, value); } + /** Unsafe version of {@link #lastChangeTime(long) lastChangeTime}. */ + public static void nlastChangeTime(long struct, long value) { UNSAFE.putLong(null, struct + XrActionStateVector2f.LASTCHANGETIME, value); } + /** Unsafe version of {@link #isActive(boolean) isActive}. */ + public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrActionStateVector2f.ISACTIVE, value); } + + // ----------------------------------- /** An array of {@link XrActionStateVector2f} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -347,41 +347,41 @@ protected Buffer self() { protected XrActionStateVector2f getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrActionStateVector2f#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrActionStateVector2f.ntype(address()); } - /** @return the value of the {@link XrActionStateVector2f#next} field. */ - @NativeType("void *") - public long next() { return XrActionStateVector2f.nnext(address()); } - /** @return a {@link XrVector2f} view of the {@link XrActionStateVector2f#currentState} field. */ - public XrVector2f currentState() { return XrActionStateVector2f.ncurrentState(address()); } - /** @return the value of the {@link XrActionStateVector2f#changedSinceLastSync} field. */ - @NativeType("XrBool32") - public boolean changedSinceLastSync() { return XrActionStateVector2f.nchangedSinceLastSync(address()) != 0; } - /** @return the value of the {@link XrActionStateVector2f#lastChangeTime} field. */ - @NativeType("XrTime") - public long lastChangeTime() { return XrActionStateVector2f.nlastChangeTime(address()); } - /** @return the value of the {@link XrActionStateVector2f#isActive} field. */ - @NativeType("XrBool32") - public boolean isActive() { return XrActionStateVector2f.nisActive(address()) != 0; } - - /** Sets the specified value to the {@link XrActionStateVector2f#type} field. */ - public XrActionStateVector2f.Buffer type(@NativeType("XrStructureType") int value) { XrActionStateVector2f.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_VECTOR2F TYPE_ACTION_STATE_VECTOR2F} value to the {@link XrActionStateVector2f#type} field. */ - public XrActionStateVector2f.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_VECTOR2F); } - /** Sets the specified value to the {@link XrActionStateVector2f#next} field. */ - public XrActionStateVector2f.Buffer next(@NativeType("void *") long value) { XrActionStateVector2f.nnext(address(), value); return this; } - /** Copies the specified {@link XrVector2f} to the {@link XrActionStateVector2f#currentState} field. */ - public XrActionStateVector2f.Buffer currentState(XrVector2f value) { XrActionStateVector2f.ncurrentState(address(), value); return this; } - /** Passes the {@link XrActionStateVector2f#currentState} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrActionStateVector2f.Buffer currentState(java.util.function.Consumer consumer) { consumer.accept(currentState()); return this; } - /** Sets the specified value to the {@link XrActionStateVector2f#changedSinceLastSync} field. */ - public XrActionStateVector2f.Buffer changedSinceLastSync(@NativeType("XrBool32") boolean value) { XrActionStateVector2f.nchangedSinceLastSync(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link XrActionStateVector2f#lastChangeTime} field. */ - public XrActionStateVector2f.Buffer lastChangeTime(@NativeType("XrTime") long value) { XrActionStateVector2f.nlastChangeTime(address(), value); return this; } - /** Sets the specified value to the {@link XrActionStateVector2f#isActive} field. */ - public XrActionStateVector2f.Buffer isActive(@NativeType("XrBool32") boolean value) { XrActionStateVector2f.nisActive(address(), value ? 1 : 0); return this; } + + /** @return the value of the {@link XrActionStateVector2f#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrActionStateVector2f.ntype(address()); } + /** @return the value of the {@link XrActionStateVector2f#next} field. */ + @NativeType("void *") + public long next() { return XrActionStateVector2f.nnext(address()); } + /** @return a {@link XrVector2f} view of the {@link XrActionStateVector2f#currentState} field. */ + public XrVector2f currentState() { return XrActionStateVector2f.ncurrentState(address()); } + /** @return the value of the {@link XrActionStateVector2f#changedSinceLastSync} field. */ + @NativeType("XrBool32") + public boolean changedSinceLastSync() { return XrActionStateVector2f.nchangedSinceLastSync(address()) != 0; } + /** @return the value of the {@link XrActionStateVector2f#lastChangeTime} field. */ + @NativeType("XrTime") + public long lastChangeTime() { return XrActionStateVector2f.nlastChangeTime(address()); } + /** @return the value of the {@link XrActionStateVector2f#isActive} field. */ + @NativeType("XrBool32") + public boolean isActive() { return XrActionStateVector2f.nisActive(address()) != 0; } + + /** Sets the specified value to the {@link XrActionStateVector2f#type} field. */ + public XrActionStateVector2f.Buffer type(@NativeType("XrStructureType") int value) { XrActionStateVector2f.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_ACTION_STATE_VECTOR2F TYPE_ACTION_STATE_VECTOR2F} value to the {@link XrActionStateVector2f#type} field. */ + public XrActionStateVector2f.Buffer type$Default() { return type(XR10.XR_TYPE_ACTION_STATE_VECTOR2F); } + /** Sets the specified value to the {@link XrActionStateVector2f#next} field. */ + public XrActionStateVector2f.Buffer next(@NativeType("void *") long value) { XrActionStateVector2f.nnext(address(), value); return this; } + /** Copies the specified {@link XrVector2f} to the {@link XrActionStateVector2f#currentState} field. */ + public XrActionStateVector2f.Buffer currentState(XrVector2f value) { XrActionStateVector2f.ncurrentState(address(), value); return this; } + /** Passes the {@link XrActionStateVector2f#currentState} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrActionStateVector2f.Buffer currentState(java.util.function.Consumer consumer) { consumer.accept(currentState()); return this; } + /** Sets the specified value to the {@link XrActionStateVector2f#changedSinceLastSync} field. */ + public XrActionStateVector2f.Buffer changedSinceLastSync(@NativeType("XrBool32") boolean value) { XrActionStateVector2f.nchangedSinceLastSync(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link XrActionStateVector2f#lastChangeTime} field. */ + public XrActionStateVector2f.Buffer lastChangeTime(@NativeType("XrTime") long value) { XrActionStateVector2f.nlastChangeTime(address(), value); return this; } + /** Sets the specified value to the {@link XrActionStateVector2f#isActive} field. */ + public XrActionStateVector2f.Buffer isActive(@NativeType("XrBool32") boolean value) { XrActionStateVector2f.nisActive(address(), value ? 1 : 0); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSuggestedBinding.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSuggestedBinding.java index 5c7ce18fa1..72dbbc85cf 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSuggestedBinding.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionSuggestedBinding.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Suggested binding for a single action. * @@ -36,8 +36,8 @@ * XrAction {@link #action}; * XrPath {@link #binding}; * } - */ -public class XrActionSuggestedBinding extends Struct implements NativeResource { + */ +public class XrActionSuggestedBinding extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -47,21 +47,21 @@ public class XrActionSuggestedBinding extends Struct i /** The struct member offsets. */ public static final int - ACTION, - BINDING; + ACTION, + BINDING; static { - Layout layout = __struct( - __member(POINTER_SIZE), + Layout layout = __struct( + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - ACTION = layout.offsetof(0); - BINDING = layout.offsetof(1); - } + ACTION = layout.offsetof(0); + BINDING = layout.offsetof(1); + } protected XrActionSuggestedBinding(long address, @Nullable ByteBuffer container) { super(address, container); @@ -84,26 +84,26 @@ public XrActionSuggestedBinding(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrAction} handle for an action */ - @NativeType("XrAction") - public long action() { return naction(address()); } - /** the {@code XrPath} of a binding for the action specified in {@code action}. This path is any top level user path plus input source path, for example pathname:/user/hand/right/input/trigger/click. See suggested bindings for more details. */ - @NativeType("XrPath") - public long binding() { return nbinding(address()); } - - /** Sets the specified value to the {@link #action} field. */ - public XrActionSuggestedBinding action(XrAction value) { naction(address(), value); return this; } - /** Sets the specified value to the {@link #binding} field. */ - public XrActionSuggestedBinding binding(@NativeType("XrPath") long value) { nbinding(address(), value); return this; } + + /** the {@code XrAction} handle for an action */ + @NativeType("XrAction") + public long action() { return naction(address()); } + /** the {@code XrPath} of a binding for the action specified in {@code action}. This path is any top level user path plus input source path, for example pathname:/user/hand/right/input/trigger/click. See suggested bindings for more details. */ + @NativeType("XrPath") + public long binding() { return nbinding(address()); } + + /** Sets the specified value to the {@link #action} field. */ + public XrActionSuggestedBinding action(XrAction value) { naction(address(), value); return this; } + /** Sets the specified value to the {@link #binding} field. */ + public XrActionSuggestedBinding binding(@NativeType("XrPath") long value) { nbinding(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrActionSuggestedBinding set( - XrAction action, + XrAction action, long binding - ) { - action(action); - binding(binding); + ) { + action(action); + binding(binding); return this; } @@ -232,16 +232,16 @@ public static XrActionSuggestedBinding.Buffer calloc(int capacity, MemoryStack s } // ----------------------------------- - - /** Unsafe version of {@link #action}. */ - public static long naction(long struct) { return memGetAddress(struct + XrActionSuggestedBinding.ACTION); } - /** Unsafe version of {@link #binding}. */ - public static long nbinding(long struct) { return UNSAFE.getLong(null, struct + XrActionSuggestedBinding.BINDING); } - - /** Unsafe version of {@link #action(XrAction) action}. */ - public static void naction(long struct, XrAction value) { memPutAddress(struct + XrActionSuggestedBinding.ACTION, value.address()); } - /** Unsafe version of {@link #binding(long) binding}. */ - public static void nbinding(long struct, long value) { UNSAFE.putLong(null, struct + XrActionSuggestedBinding.BINDING, value); } + + /** Unsafe version of {@link #action}. */ + public static long naction(long struct) { return memGetAddress(struct + XrActionSuggestedBinding.ACTION); } + /** Unsafe version of {@link #binding}. */ + public static long nbinding(long struct) { return UNSAFE.getLong(null, struct + XrActionSuggestedBinding.BINDING); } + + /** Unsafe version of {@link #action(XrAction) action}. */ + public static void naction(long struct, XrAction value) { memPutAddress(struct + XrActionSuggestedBinding.ACTION, value.address()); } + /** Unsafe version of {@link #binding(long) binding}. */ + public static void nbinding(long struct, long value) { UNSAFE.putLong(null, struct + XrActionSuggestedBinding.BINDING, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -250,9 +250,9 @@ public static XrActionSuggestedBinding.Buffer calloc(int capacity, MemoryStack s */ public static void validate(long struct) { check(memGetAddress(struct + XrActionSuggestedBinding.ACTION)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrActionSuggestedBinding} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -289,18 +289,18 @@ protected Buffer self() { protected XrActionSuggestedBinding getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrActionSuggestedBinding#action} field. */ - @NativeType("XrAction") - public long action() { return XrActionSuggestedBinding.naction(address()); } - /** @return the value of the {@link XrActionSuggestedBinding#binding} field. */ - @NativeType("XrPath") - public long binding() { return XrActionSuggestedBinding.nbinding(address()); } - - /** Sets the specified value to the {@link XrActionSuggestedBinding#action} field. */ - public XrActionSuggestedBinding.Buffer action(XrAction value) { XrActionSuggestedBinding.naction(address(), value); return this; } - /** Sets the specified value to the {@link XrActionSuggestedBinding#binding} field. */ - public XrActionSuggestedBinding.Buffer binding(@NativeType("XrPath") long value) { XrActionSuggestedBinding.nbinding(address(), value); return this; } + + /** @return the value of the {@link XrActionSuggestedBinding#action} field. */ + @NativeType("XrAction") + public long action() { return XrActionSuggestedBinding.naction(address()); } + /** @return the value of the {@link XrActionSuggestedBinding#binding} field. */ + @NativeType("XrPath") + public long binding() { return XrActionSuggestedBinding.nbinding(address()); } + + /** Sets the specified value to the {@link XrActionSuggestedBinding#action} field. */ + public XrActionSuggestedBinding.Buffer action(XrAction value) { XrActionSuggestedBinding.naction(address(), value); return this; } + /** Sets the specified value to the {@link XrActionSuggestedBinding#binding} field. */ + public XrActionSuggestedBinding.Buffer binding(@NativeType("XrPath") long value) { XrActionSuggestedBinding.nbinding(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionsSyncInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionsSyncInfo.java index c45480d9de..dcfde4c982 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionsSyncInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActionsSyncInfo.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Information to sync actions. * @@ -22,7 +22,7 @@ * *
      *
    • {@code type} must be {@link XR10#XR_TYPE_ACTIONS_SYNC_INFO TYPE_ACTIONS_SYNC_INFO}
    • - *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrActiveActionSetPrioritiesEXT}
    • + *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrActiveActionSetPrioritiesEXT}
    • *
    • If {@code countActiveActionSets} is not 0, {@code activeActionSets} must be a pointer to an array of {@code countActiveActionSets} valid {@link XrActiveActionSet} structures
    • *
    * @@ -39,8 +39,8 @@ * uint32_t {@link #countActiveActionSets}; * {@link XrActiveActionSet XrActiveActionSet} const * {@link #activeActionSets}; * } - */ -public class XrActionsSyncInfo extends Struct implements NativeResource { + */ +public class XrActionsSyncInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,27 +50,27 @@ public class XrActionsSyncInfo extends Struct implements Nati /** The struct member offsets. */ public static final int - TYPE, - NEXT, - COUNTACTIVEACTIONSETS, - ACTIVEACTIONSETS; + TYPE, + NEXT, + COUNTACTIVEACTIONSETS, + ACTIVEACTIONSETS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - COUNTACTIVEACTIONSETS = layout.offsetof(2); - ACTIVEACTIONSETS = layout.offsetof(3); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + COUNTACTIVEACTIONSETS = layout.offsetof(2); + ACTIVEACTIONSETS = layout.offsetof(3); + } protected XrActionsSyncInfo(long address, @Nullable ByteBuffer container) { super(address, container); @@ -93,45 +93,45 @@ public XrActionsSyncInfo(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** an integer specifying the number of valid elements in the {@code activeActionSets} array. */ - @NativeType("uint32_t") - public int countActiveActionSets() { return ncountActiveActionSets(address()); } - /** {@code NULL} or a pointer to an array of one or more {@link XrActiveActionSet} structures that should be synchronized. */ - @Nullable - @NativeType("XrActiveActionSet const *") - public XrActiveActionSet.Buffer activeActionSets() { return nactiveActionSets(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrActionsSyncInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_ACTIONS_SYNC_INFO TYPE_ACTIONS_SYNC_INFO} value to the {@link #type} field. */ - public XrActionsSyncInfo type$Default() { return type(XR10.XR_TYPE_ACTIONS_SYNC_INFO); } - /** Sets the specified value to the {@link #next} field. */ - public XrActionsSyncInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrActiveActionSetPrioritiesEXT} value to the {@code next} chain. */ - public XrActionsSyncInfo next(XrActiveActionSetPrioritiesEXT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #countActiveActionSets} field. */ - public XrActionsSyncInfo countActiveActionSets(@NativeType("uint32_t") int value) { ncountActiveActionSets(address(), value); return this; } - /** Sets the address of the specified {@link XrActiveActionSet.Buffer} to the {@link #activeActionSets} field. */ - public XrActionsSyncInfo activeActionSets(@Nullable @NativeType("XrActiveActionSet const *") XrActiveActionSet.Buffer value) { nactiveActionSets(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** an integer specifying the number of valid elements in the {@code activeActionSets} array. */ + @NativeType("uint32_t") + public int countActiveActionSets() { return ncountActiveActionSets(address()); } + /** {@code NULL} or a pointer to an array of one or more {@link XrActiveActionSet} structures that should be synchronized. */ + @Nullable + @NativeType("XrActiveActionSet const *") + public XrActiveActionSet.Buffer activeActionSets() { return nactiveActionSets(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrActionsSyncInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_ACTIONS_SYNC_INFO TYPE_ACTIONS_SYNC_INFO} value to the {@link #type} field. */ + public XrActionsSyncInfo type$Default() { return type(XR10.XR_TYPE_ACTIONS_SYNC_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrActionsSyncInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrActiveActionSetPrioritiesEXT} value to the {@code next} chain. */ + public XrActionsSyncInfo next(XrActiveActionSetPrioritiesEXT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #countActiveActionSets} field. */ + public XrActionsSyncInfo countActiveActionSets(@NativeType("uint32_t") int value) { ncountActiveActionSets(address(), value); return this; } + /** Sets the address of the specified {@link XrActiveActionSet.Buffer} to the {@link #activeActionSets} field. */ + public XrActionsSyncInfo activeActionSets(@Nullable @NativeType("XrActiveActionSet const *") XrActiveActionSet.Buffer value) { nactiveActionSets(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrActionsSyncInfo set( - int type, - long next, - int countActiveActionSets, + int type, + long next, + int countActiveActionSets, @Nullable XrActiveActionSet.Buffer activeActionSets - ) { - type(type); - next(next); - countActiveActionSets(countActiveActionSets); - activeActionSets(activeActionSets); + ) { + type(type); + next(next); + countActiveActionSets(countActiveActionSets); + activeActionSets(activeActionSets); return this; } @@ -260,26 +260,26 @@ public static XrActionsSyncInfo.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionsSyncInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrActionsSyncInfo.NEXT); } - /** Unsafe version of {@link #countActiveActionSets}. */ - public static int ncountActiveActionSets(long struct) { return UNSAFE.getInt(null, struct + XrActionsSyncInfo.COUNTACTIVEACTIONSETS); } - /** Unsafe version of {@link #activeActionSets}. */ - @Nullable public static XrActiveActionSet.Buffer nactiveActionSets(long struct) { return XrActiveActionSet.createSafe(memGetAddress(struct + XrActionsSyncInfo.ACTIVEACTIONSETS), ncountActiveActionSets(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionsSyncInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrActionsSyncInfo.NEXT, value); } - /** Sets the specified value to the {@code countActiveActionSets} field of the specified {@code struct}. */ - public static void ncountActiveActionSets(long struct, int value) { UNSAFE.putInt(null, struct + XrActionsSyncInfo.COUNTACTIVEACTIONSETS, value); } - /** Unsafe version of {@link #activeActionSets(XrActiveActionSet.Buffer) activeActionSets}. */ - public static void nactiveActionSets(long struct, @Nullable XrActiveActionSet.Buffer value) { memPutAddress(struct + XrActionsSyncInfo.ACTIVEACTIONSETS, memAddressSafe(value)); if (value != null) { ncountActiveActionSets(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActionsSyncInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrActionsSyncInfo.NEXT); } + /** Unsafe version of {@link #countActiveActionSets}. */ + public static int ncountActiveActionSets(long struct) { return UNSAFE.getInt(null, struct + XrActionsSyncInfo.COUNTACTIVEACTIONSETS); } + /** Unsafe version of {@link #activeActionSets}. */ + @Nullable public static XrActiveActionSet.Buffer nactiveActionSets(long struct) { return XrActiveActionSet.createSafe(memGetAddress(struct + XrActionsSyncInfo.ACTIVEACTIONSETS), ncountActiveActionSets(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActionsSyncInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrActionsSyncInfo.NEXT, value); } + /** Sets the specified value to the {@code countActiveActionSets} field of the specified {@code struct}. */ + public static void ncountActiveActionSets(long struct, int value) { UNSAFE.putInt(null, struct + XrActionsSyncInfo.COUNTACTIVEACTIONSETS, value); } + /** Unsafe version of {@link #activeActionSets(XrActiveActionSet.Buffer) activeActionSets}. */ + public static void nactiveActionSets(long struct, @Nullable XrActiveActionSet.Buffer value) { memPutAddress(struct + XrActionsSyncInfo.ACTIVEACTIONSETS, memAddressSafe(value)); if (value != null) { ncountActiveActionSets(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrActionsSyncInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -316,33 +316,33 @@ protected Buffer self() { protected XrActionsSyncInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrActionsSyncInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrActionsSyncInfo.ntype(address()); } - /** @return the value of the {@link XrActionsSyncInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrActionsSyncInfo.nnext(address()); } - /** @return the value of the {@link XrActionsSyncInfo#countActiveActionSets} field. */ - @NativeType("uint32_t") - public int countActiveActionSets() { return XrActionsSyncInfo.ncountActiveActionSets(address()); } - /** @return a {@link XrActiveActionSet.Buffer} view of the struct array pointed to by the {@link XrActionsSyncInfo#activeActionSets} field. */ - @Nullable - @NativeType("XrActiveActionSet const *") - public XrActiveActionSet.Buffer activeActionSets() { return XrActionsSyncInfo.nactiveActionSets(address()); } - - /** Sets the specified value to the {@link XrActionsSyncInfo#type} field. */ - public XrActionsSyncInfo.Buffer type(@NativeType("XrStructureType") int value) { XrActionsSyncInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_ACTIONS_SYNC_INFO TYPE_ACTIONS_SYNC_INFO} value to the {@link XrActionsSyncInfo#type} field. */ - public XrActionsSyncInfo.Buffer type$Default() { return type(XR10.XR_TYPE_ACTIONS_SYNC_INFO); } - /** Sets the specified value to the {@link XrActionsSyncInfo#next} field. */ - public XrActionsSyncInfo.Buffer next(@NativeType("void const *") long value) { XrActionsSyncInfo.nnext(address(), value); return this; } - /** Prepends the specified {@link XrActiveActionSetPrioritiesEXT} value to the {@code next} chain. */ - public XrActionsSyncInfo.Buffer next(XrActiveActionSetPrioritiesEXT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrActionsSyncInfo#countActiveActionSets} field. */ - public XrActionsSyncInfo.Buffer countActiveActionSets(@NativeType("uint32_t") int value) { XrActionsSyncInfo.ncountActiveActionSets(address(), value); return this; } - /** Sets the address of the specified {@link XrActiveActionSet.Buffer} to the {@link XrActionsSyncInfo#activeActionSets} field. */ - public XrActionsSyncInfo.Buffer activeActionSets(@Nullable @NativeType("XrActiveActionSet const *") XrActiveActionSet.Buffer value) { XrActionsSyncInfo.nactiveActionSets(address(), value); return this; } + + /** @return the value of the {@link XrActionsSyncInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrActionsSyncInfo.ntype(address()); } + /** @return the value of the {@link XrActionsSyncInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrActionsSyncInfo.nnext(address()); } + /** @return the value of the {@link XrActionsSyncInfo#countActiveActionSets} field. */ + @NativeType("uint32_t") + public int countActiveActionSets() { return XrActionsSyncInfo.ncountActiveActionSets(address()); } + /** @return a {@link XrActiveActionSet.Buffer} view of the struct array pointed to by the {@link XrActionsSyncInfo#activeActionSets} field. */ + @Nullable + @NativeType("XrActiveActionSet const *") + public XrActiveActionSet.Buffer activeActionSets() { return XrActionsSyncInfo.nactiveActionSets(address()); } + + /** Sets the specified value to the {@link XrActionsSyncInfo#type} field. */ + public XrActionsSyncInfo.Buffer type(@NativeType("XrStructureType") int value) { XrActionsSyncInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_ACTIONS_SYNC_INFO TYPE_ACTIONS_SYNC_INFO} value to the {@link XrActionsSyncInfo#type} field. */ + public XrActionsSyncInfo.Buffer type$Default() { return type(XR10.XR_TYPE_ACTIONS_SYNC_INFO); } + /** Sets the specified value to the {@link XrActionsSyncInfo#next} field. */ + public XrActionsSyncInfo.Buffer next(@NativeType("void const *") long value) { XrActionsSyncInfo.nnext(address(), value); return this; } + /** Prepends the specified {@link XrActiveActionSetPrioritiesEXT} value to the {@code next} chain. */ + public XrActionsSyncInfo.Buffer next(XrActiveActionSetPrioritiesEXT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrActionsSyncInfo#countActiveActionSets} field. */ + public XrActionsSyncInfo.Buffer countActiveActionSets(@NativeType("uint32_t") int value) { XrActionsSyncInfo.ncountActiveActionSets(address(), value); return this; } + /** Sets the address of the specified {@link XrActiveActionSet.Buffer} to the {@link XrActionsSyncInfo#activeActionSets} field. */ + public XrActionsSyncInfo.Buffer activeActionSets(@Nullable @NativeType("XrActiveActionSet const *") XrActiveActionSet.Buffer value) { XrActionsSyncInfo.nactiveActionSets(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActiveActionSet.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActiveActionSet.java index 9579cdcced..351fba29d1 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActiveActionSet.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActiveActionSet.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes an active action set. * @@ -40,8 +40,8 @@ * XrActionSet {@link #actionSet}; * XrPath {@link #subactionPath}; * } - */ -public class XrActiveActionSet extends Struct implements NativeResource { + */ +public class XrActiveActionSet extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,21 +51,21 @@ public class XrActiveActionSet extends Struct implements Nati /** The struct member offsets. */ public static final int - ACTIONSET, - SUBACTIONPATH; + ACTIONSET, + SUBACTIONPATH; static { - Layout layout = __struct( - __member(POINTER_SIZE), + Layout layout = __struct( + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - ACTIONSET = layout.offsetof(0); - SUBACTIONPATH = layout.offsetof(1); - } + ACTIONSET = layout.offsetof(0); + SUBACTIONPATH = layout.offsetof(1); + } protected XrActiveActionSet(long address, @Nullable ByteBuffer container) { super(address, container); @@ -88,26 +88,26 @@ public XrActiveActionSet(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the handle of the action set to activate. */ - @NativeType("XrActionSet") - public long actionSet() { return nactionSet(address()); } - /** a subaction path that was declared when one or more actions in the action set was created or {@link XR10#XR_NULL_PATH NULL_PATH}. If the application wants to activate the action set on more than one subaction path, it can include additional {@link XrActiveActionSet} structs with the other {@code subactionPath} values. Using {@link XR10#XR_NULL_PATH NULL_PATH} as the value for {@code subactionPath}, acts as a wildcard for all subaction paths on the actions in the action set. If the subaction path was not specified on any of the actions in the actionSet when that action was created, the runtime must return {@link XR10#XR_ERROR_PATH_UNSUPPORTED ERROR_PATH_UNSUPPORTED}. */ - @NativeType("XrPath") - public long subactionPath() { return nsubactionPath(address()); } - - /** Sets the specified value to the {@link #actionSet} field. */ - public XrActiveActionSet actionSet(XrActionSet value) { nactionSet(address(), value); return this; } - /** Sets the specified value to the {@link #subactionPath} field. */ - public XrActiveActionSet subactionPath(@NativeType("XrPath") long value) { nsubactionPath(address(), value); return this; } + + /** the handle of the action set to activate. */ + @NativeType("XrActionSet") + public long actionSet() { return nactionSet(address()); } + /** a subaction path that was declared when one or more actions in the action set was created or {@link XR10#XR_NULL_PATH NULL_PATH}. If the application wants to activate the action set on more than one subaction path, it can include additional {@link XrActiveActionSet} structs with the other {@code subactionPath} values. Using {@link XR10#XR_NULL_PATH NULL_PATH} as the value for {@code subactionPath}, acts as a wildcard for all subaction paths on the actions in the action set. If the subaction path was not specified on any of the actions in the actionSet when that action was created, the runtime must return {@link XR10#XR_ERROR_PATH_UNSUPPORTED ERROR_PATH_UNSUPPORTED}. */ + @NativeType("XrPath") + public long subactionPath() { return nsubactionPath(address()); } + + /** Sets the specified value to the {@link #actionSet} field. */ + public XrActiveActionSet actionSet(XrActionSet value) { nactionSet(address(), value); return this; } + /** Sets the specified value to the {@link #subactionPath} field. */ + public XrActiveActionSet subactionPath(@NativeType("XrPath") long value) { nsubactionPath(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrActiveActionSet set( - XrActionSet actionSet, + XrActionSet actionSet, long subactionPath - ) { - actionSet(actionSet); - subactionPath(subactionPath); + ) { + actionSet(actionSet); + subactionPath(subactionPath); return this; } @@ -236,16 +236,16 @@ public static XrActiveActionSet.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #actionSet}. */ - public static long nactionSet(long struct) { return memGetAddress(struct + XrActiveActionSet.ACTIONSET); } - /** Unsafe version of {@link #subactionPath}. */ - public static long nsubactionPath(long struct) { return UNSAFE.getLong(null, struct + XrActiveActionSet.SUBACTIONPATH); } - - /** Unsafe version of {@link #actionSet(XrActionSet) actionSet}. */ - public static void nactionSet(long struct, XrActionSet value) { memPutAddress(struct + XrActiveActionSet.ACTIONSET, value.address()); } - /** Unsafe version of {@link #subactionPath(long) subactionPath}. */ - public static void nsubactionPath(long struct, long value) { UNSAFE.putLong(null, struct + XrActiveActionSet.SUBACTIONPATH, value); } + + /** Unsafe version of {@link #actionSet}. */ + public static long nactionSet(long struct) { return memGetAddress(struct + XrActiveActionSet.ACTIONSET); } + /** Unsafe version of {@link #subactionPath}. */ + public static long nsubactionPath(long struct) { return UNSAFE.getLong(null, struct + XrActiveActionSet.SUBACTIONPATH); } + + /** Unsafe version of {@link #actionSet(XrActionSet) actionSet}. */ + public static void nactionSet(long struct, XrActionSet value) { memPutAddress(struct + XrActiveActionSet.ACTIONSET, value.address()); } + /** Unsafe version of {@link #subactionPath(long) subactionPath}. */ + public static void nsubactionPath(long struct, long value) { UNSAFE.putLong(null, struct + XrActiveActionSet.SUBACTIONPATH, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -254,9 +254,9 @@ public static XrActiveActionSet.Buffer calloc(int capacity, MemoryStack stack) { */ public static void validate(long struct) { check(memGetAddress(struct + XrActiveActionSet.ACTIONSET)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrActiveActionSet} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -293,18 +293,18 @@ protected Buffer self() { protected XrActiveActionSet getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrActiveActionSet#actionSet} field. */ - @NativeType("XrActionSet") - public long actionSet() { return XrActiveActionSet.nactionSet(address()); } - /** @return the value of the {@link XrActiveActionSet#subactionPath} field. */ - @NativeType("XrPath") - public long subactionPath() { return XrActiveActionSet.nsubactionPath(address()); } - - /** Sets the specified value to the {@link XrActiveActionSet#actionSet} field. */ - public XrActiveActionSet.Buffer actionSet(XrActionSet value) { XrActiveActionSet.nactionSet(address(), value); return this; } - /** Sets the specified value to the {@link XrActiveActionSet#subactionPath} field. */ - public XrActiveActionSet.Buffer subactionPath(@NativeType("XrPath") long value) { XrActiveActionSet.nsubactionPath(address(), value); return this; } + + /** @return the value of the {@link XrActiveActionSet#actionSet} field. */ + @NativeType("XrActionSet") + public long actionSet() { return XrActiveActionSet.nactionSet(address()); } + /** @return the value of the {@link XrActiveActionSet#subactionPath} field. */ + @NativeType("XrPath") + public long subactionPath() { return XrActiveActionSet.nsubactionPath(address()); } + + /** Sets the specified value to the {@link XrActiveActionSet#actionSet} field. */ + public XrActiveActionSet.Buffer actionSet(XrActionSet value) { XrActiveActionSet.nactionSet(address(), value); return this; } + /** Sets the specified value to the {@link XrActiveActionSet#subactionPath} field. */ + public XrActiveActionSet.Buffer subactionPath(@NativeType("XrPath") long value) { XrActiveActionSet.nsubactionPath(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActiveActionSetPrioritiesEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActiveActionSetPrioritiesEXT.java index cad6e64731..9631ad253e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActiveActionSetPrioritiesEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActiveActionSetPrioritiesEXT.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Active action set priority numbers. * @@ -24,7 +24,7 @@ *
      *
    • The {@link EXTActiveActionSetPriority XR_EXT_active_action_set_priority} extension must be enabled prior to using {@link XrActiveActionSetPrioritiesEXT}
    • *
    • {@code type} must be {@link EXTActiveActionSetPriority#XR_TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT}
    • - *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • + *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • *
    • {@code actionSetPriorities} must be a pointer to an array of {@code actionSetPriorityCount} valid {@link XrActiveActionSetPriorityEXT} structures
    • *
    • The {@code actionSetPriorityCount} parameter must be greater than 0
    • *
    @@ -48,8 +48,8 @@ * uint32_t actionSetPriorityCount; * {@link XrActiveActionSetPriorityEXT XrActiveActionSetPriorityEXT} const * {@link #actionSetPriorities}; * } - */ -public class XrActiveActionSetPrioritiesEXT extends Struct implements NativeResource { + */ +public class XrActiveActionSetPrioritiesEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -59,27 +59,27 @@ public class XrActiveActionSetPrioritiesEXT extends Structmay return {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE} from {@link XR10#xrSyncActions SyncActions}. */ - @NativeType("XrActiveActionSetPriorityEXT const *") - public XrActiveActionSetPriorityEXT.Buffer actionSetPriorities() { return nactionSetPriorities(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrActiveActionSetPrioritiesEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link EXTActiveActionSetPriority#XR_TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT} value to the {@link #type} field. */ - public XrActiveActionSetPrioritiesEXT type$Default() { return type(EXTActiveActionSetPriority.XR_TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT); } - /** Sets the specified value to the {@link #next} field. */ - public XrActiveActionSetPrioritiesEXT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the address of the specified {@link XrActiveActionSetPriorityEXT.Buffer} to the {@link #actionSetPriorities} field. */ - public XrActiveActionSetPrioritiesEXT actionSetPriorities(@NativeType("XrActiveActionSetPriorityEXT const *") XrActiveActionSetPriorityEXT.Buffer value) { nactionSetPriorities(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** @return the value of the {@code actionSetPriorityCount} field. */ + @NativeType("uint32_t") + public int actionSetPriorityCount() { return nactionSetPriorityCount(address()); } + /** a pointer to an array that maps action sets to their active priority numbers. If an action set is specified multiple times, the runtime may return {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE} from {@link XR10#xrSyncActions SyncActions}. */ + @NativeType("XrActiveActionSetPriorityEXT const *") + public XrActiveActionSetPriorityEXT.Buffer actionSetPriorities() { return nactionSetPriorities(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrActiveActionSetPrioritiesEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link EXTActiveActionSetPriority#XR_TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT} value to the {@link #type} field. */ + public XrActiveActionSetPrioritiesEXT type$Default() { return type(EXTActiveActionSetPriority.XR_TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT); } + /** Sets the specified value to the {@link #next} field. */ + public XrActiveActionSetPrioritiesEXT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the address of the specified {@link XrActiveActionSetPriorityEXT.Buffer} to the {@link #actionSetPriorities} field. */ + public XrActiveActionSetPrioritiesEXT actionSetPriorities(@NativeType("XrActiveActionSetPriorityEXT const *") XrActiveActionSetPriorityEXT.Buffer value) { nactionSetPriorities(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrActiveActionSetPrioritiesEXT set( - int type, - long next, + int type, + long next, XrActiveActionSetPriorityEXT.Buffer actionSetPriorities - ) { - type(type); - next(next); - actionSetPriorities(actionSetPriorities); + ) { + type(type); + next(next); + actionSetPriorities(actionSetPriorities); return this; } @@ -262,24 +262,24 @@ public static XrActiveActionSetPrioritiesEXT.Buffer calloc(int capacity, MemoryS } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActiveActionSetPrioritiesEXT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrActiveActionSetPrioritiesEXT.NEXT); } - /** Unsafe version of {@link #actionSetPriorityCount}. */ - public static int nactionSetPriorityCount(long struct) { return UNSAFE.getInt(null, struct + XrActiveActionSetPrioritiesEXT.ACTIONSETPRIORITYCOUNT); } - /** Unsafe version of {@link #actionSetPriorities}. */ - public static XrActiveActionSetPriorityEXT.Buffer nactionSetPriorities(long struct) { return XrActiveActionSetPriorityEXT.create(memGetAddress(struct + XrActiveActionSetPrioritiesEXT.ACTIONSETPRIORITIES), nactionSetPriorityCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActiveActionSetPrioritiesEXT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrActiveActionSetPrioritiesEXT.NEXT, value); } - /** Sets the specified value to the {@code actionSetPriorityCount} field of the specified {@code struct}. */ - public static void nactionSetPriorityCount(long struct, int value) { UNSAFE.putInt(null, struct + XrActiveActionSetPrioritiesEXT.ACTIONSETPRIORITYCOUNT, value); } - /** Unsafe version of {@link #actionSetPriorities(XrActiveActionSetPriorityEXT.Buffer) actionSetPriorities}. */ - public static void nactionSetPriorities(long struct, XrActiveActionSetPriorityEXT.Buffer value) { memPutAddress(struct + XrActiveActionSetPrioritiesEXT.ACTIONSETPRIORITIES, value.address()); nactionSetPriorityCount(struct, value.remaining()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrActiveActionSetPrioritiesEXT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrActiveActionSetPrioritiesEXT.NEXT); } + /** Unsafe version of {@link #actionSetPriorityCount}. */ + public static int nactionSetPriorityCount(long struct) { return UNSAFE.getInt(null, struct + XrActiveActionSetPrioritiesEXT.ACTIONSETPRIORITYCOUNT); } + /** Unsafe version of {@link #actionSetPriorities}. */ + public static XrActiveActionSetPriorityEXT.Buffer nactionSetPriorities(long struct) { return XrActiveActionSetPriorityEXT.create(memGetAddress(struct + XrActiveActionSetPrioritiesEXT.ACTIONSETPRIORITIES), nactionSetPriorityCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrActiveActionSetPrioritiesEXT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrActiveActionSetPrioritiesEXT.NEXT, value); } + /** Sets the specified value to the {@code actionSetPriorityCount} field of the specified {@code struct}. */ + public static void nactionSetPriorityCount(long struct, int value) { UNSAFE.putInt(null, struct + XrActiveActionSetPrioritiesEXT.ACTIONSETPRIORITYCOUNT, value); } + /** Unsafe version of {@link #actionSetPriorities(XrActiveActionSetPriorityEXT.Buffer) actionSetPriorities}. */ + public static void nactionSetPriorities(long struct, XrActiveActionSetPriorityEXT.Buffer value) { memPutAddress(struct + XrActiveActionSetPrioritiesEXT.ACTIONSETPRIORITIES, value.address()); nactionSetPriorityCount(struct, value.remaining()); } /** * Validates pointer members that should not be {@code NULL}. @@ -291,9 +291,9 @@ public static void validate(long struct) { long actionSetPriorities = memGetAddress(struct + XrActiveActionSetPrioritiesEXT.ACTIONSETPRIORITIES); check(actionSetPriorities); validate(actionSetPriorities, actionSetPriorityCount, XrActiveActionSetPriorityEXT.SIZEOF, XrActiveActionSetPriorityEXT::validate); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrActiveActionSetPrioritiesEXT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -330,28 +330,28 @@ protected Buffer self() { protected XrActiveActionSetPrioritiesEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrActiveActionSetPrioritiesEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrActiveActionSetPrioritiesEXT.ntype(address()); } - /** @return the value of the {@link XrActiveActionSetPrioritiesEXT#next} field. */ - @NativeType("void const *") - public long next() { return XrActiveActionSetPrioritiesEXT.nnext(address()); } - /** @return the value of the {@code actionSetPriorityCount} field. */ - @NativeType("uint32_t") - public int actionSetPriorityCount() { return XrActiveActionSetPrioritiesEXT.nactionSetPriorityCount(address()); } - /** @return a {@link XrActiveActionSetPriorityEXT.Buffer} view of the struct array pointed to by the {@link XrActiveActionSetPrioritiesEXT#actionSetPriorities} field. */ - @NativeType("XrActiveActionSetPriorityEXT const *") - public XrActiveActionSetPriorityEXT.Buffer actionSetPriorities() { return XrActiveActionSetPrioritiesEXT.nactionSetPriorities(address()); } - - /** Sets the specified value to the {@link XrActiveActionSetPrioritiesEXT#type} field. */ - public XrActiveActionSetPrioritiesEXT.Buffer type(@NativeType("XrStructureType") int value) { XrActiveActionSetPrioritiesEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTActiveActionSetPriority#XR_TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT} value to the {@link XrActiveActionSetPrioritiesEXT#type} field. */ - public XrActiveActionSetPrioritiesEXT.Buffer type$Default() { return type(EXTActiveActionSetPriority.XR_TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT); } - /** Sets the specified value to the {@link XrActiveActionSetPrioritiesEXT#next} field. */ - public XrActiveActionSetPrioritiesEXT.Buffer next(@NativeType("void const *") long value) { XrActiveActionSetPrioritiesEXT.nnext(address(), value); return this; } - /** Sets the address of the specified {@link XrActiveActionSetPriorityEXT.Buffer} to the {@link XrActiveActionSetPrioritiesEXT#actionSetPriorities} field. */ - public XrActiveActionSetPrioritiesEXT.Buffer actionSetPriorities(@NativeType("XrActiveActionSetPriorityEXT const *") XrActiveActionSetPriorityEXT.Buffer value) { XrActiveActionSetPrioritiesEXT.nactionSetPriorities(address(), value); return this; } + + /** @return the value of the {@link XrActiveActionSetPrioritiesEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrActiveActionSetPrioritiesEXT.ntype(address()); } + /** @return the value of the {@link XrActiveActionSetPrioritiesEXT#next} field. */ + @NativeType("void const *") + public long next() { return XrActiveActionSetPrioritiesEXT.nnext(address()); } + /** @return the value of the {@code actionSetPriorityCount} field. */ + @NativeType("uint32_t") + public int actionSetPriorityCount() { return XrActiveActionSetPrioritiesEXT.nactionSetPriorityCount(address()); } + /** @return a {@link XrActiveActionSetPriorityEXT.Buffer} view of the struct array pointed to by the {@link XrActiveActionSetPrioritiesEXT#actionSetPriorities} field. */ + @NativeType("XrActiveActionSetPriorityEXT const *") + public XrActiveActionSetPriorityEXT.Buffer actionSetPriorities() { return XrActiveActionSetPrioritiesEXT.nactionSetPriorities(address()); } + + /** Sets the specified value to the {@link XrActiveActionSetPrioritiesEXT#type} field. */ + public XrActiveActionSetPrioritiesEXT.Buffer type(@NativeType("XrStructureType") int value) { XrActiveActionSetPrioritiesEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTActiveActionSetPriority#XR_TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT} value to the {@link XrActiveActionSetPrioritiesEXT#type} field. */ + public XrActiveActionSetPrioritiesEXT.Buffer type$Default() { return type(EXTActiveActionSetPriority.XR_TYPE_ACTIVE_ACTION_SET_PRIORITIES_EXT); } + /** Sets the specified value to the {@link XrActiveActionSetPrioritiesEXT#next} field. */ + public XrActiveActionSetPrioritiesEXT.Buffer next(@NativeType("void const *") long value) { XrActiveActionSetPrioritiesEXT.nnext(address(), value); return this; } + /** Sets the address of the specified {@link XrActiveActionSetPriorityEXT.Buffer} to the {@link XrActiveActionSetPrioritiesEXT#actionSetPriorities} field. */ + public XrActiveActionSetPrioritiesEXT.Buffer actionSetPriorities(@NativeType("XrActiveActionSetPriorityEXT const *") XrActiveActionSetPriorityEXT.Buffer value) { XrActiveActionSetPrioritiesEXT.nactionSetPriorities(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActiveActionSetPriorityEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActiveActionSetPriorityEXT.java index 9bd4d93ec0..4b9cd6046f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActiveActionSetPriorityEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrActiveActionSetPriorityEXT.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Action set priority mapping. * @@ -37,8 +37,8 @@ * XrActionSet {@link #actionSet}; * uint32_t {@link #priorityOverride}; * } - */ -public class XrActiveActionSetPriorityEXT extends Struct implements NativeResource { + */ +public class XrActiveActionSetPriorityEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,21 +48,21 @@ public class XrActiveActionSetPriorityEXT extends Struct implements NativeResource { @@ -290,18 +290,18 @@ protected Buffer self() { protected XrActiveActionSetPriorityEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrActiveActionSetPriorityEXT#actionSet} field. */ - @NativeType("XrActionSet") - public long actionSet() { return XrActiveActionSetPriorityEXT.nactionSet(address()); } - /** @return the value of the {@link XrActiveActionSetPriorityEXT#priorityOverride} field. */ - @NativeType("uint32_t") - public int priorityOverride() { return XrActiveActionSetPriorityEXT.npriorityOverride(address()); } - - /** Sets the specified value to the {@link XrActiveActionSetPriorityEXT#actionSet} field. */ - public XrActiveActionSetPriorityEXT.Buffer actionSet(XrActionSet value) { XrActiveActionSetPriorityEXT.nactionSet(address(), value); return this; } - /** Sets the specified value to the {@link XrActiveActionSetPriorityEXT#priorityOverride} field. */ - public XrActiveActionSetPriorityEXT.Buffer priorityOverride(@NativeType("uint32_t") int value) { XrActiveActionSetPriorityEXT.npriorityOverride(address(), value); return this; } + + /** @return the value of the {@link XrActiveActionSetPriorityEXT#actionSet} field. */ + @NativeType("XrActionSet") + public long actionSet() { return XrActiveActionSetPriorityEXT.nactionSet(address()); } + /** @return the value of the {@link XrActiveActionSetPriorityEXT#priorityOverride} field. */ + @NativeType("uint32_t") + public int priorityOverride() { return XrActiveActionSetPriorityEXT.npriorityOverride(address()); } + + /** Sets the specified value to the {@link XrActiveActionSetPriorityEXT#actionSet} field. */ + public XrActiveActionSetPriorityEXT.Buffer actionSet(XrActionSet value) { XrActiveActionSetPriorityEXT.nactionSet(address(), value); return this; } + /** Sets the specified value to the {@link XrActiveActionSetPriorityEXT#priorityOverride} field. */ + public XrActiveActionSetPriorityEXT.Buffer priorityOverride(@NativeType("uint32_t") int value) { XrActiveActionSetPriorityEXT.npriorityOverride(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrApiLayerProperties.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrApiLayerProperties.java index 583b76c077..45090b3b20 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrApiLayerProperties.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrApiLayerProperties.java @@ -4,19 +4,19 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import static org.lwjgl.openxr.XR10.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.XR10.*; + /** * Structure specifying layer properties. * @@ -24,7 +24,7 @@ * * * *
    See Also
    @@ -42,8 +42,8 @@ * uint32_t {@link #layerVersion}; * char {@link #description}[XR_MAX_API_LAYER_DESCRIPTION_SIZE]; * } - */ -public class XrApiLayerProperties extends Struct implements NativeResource { + */ +public class XrApiLayerProperties extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,33 +53,33 @@ public class XrApiLayerProperties extends Struct implement /** The struct member offsets. */ public static final int - TYPE, - NEXT, - LAYERNAME, - SPECVERSION, - LAYERVERSION, - DESCRIPTION; + TYPE, + NEXT, + LAYERNAME, + SPECVERSION, + LAYERVERSION, + DESCRIPTION; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __array(1, XR_MAX_API_LAYER_NAME_SIZE), - __member(8), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __array(1, XR_MAX_API_LAYER_NAME_SIZE), + __member(8), + __member(4), __array(1, XR_MAX_API_LAYER_DESCRIPTION_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - LAYERNAME = layout.offsetof(2); - SPECVERSION = layout.offsetof(3); - LAYERVERSION = layout.offsetof(4); - DESCRIPTION = layout.offsetof(5); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + LAYERNAME = layout.offsetof(2); + SPECVERSION = layout.offsetof(3); + LAYERVERSION = layout.offsetof(4); + DESCRIPTION = layout.offsetof(5); + } protected XrApiLayerProperties(long address, @Nullable ByteBuffer container) { super(address, container); @@ -102,46 +102,46 @@ public XrApiLayerProperties(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** a string specifying the name of the API layer. Use this name in the {@link XrInstanceCreateInfo}{@code ::enabledApiLayerNames} array to enable this API layer for an instance. */ - @NativeType("char[XR_MAX_API_LAYER_NAME_SIZE]") - public ByteBuffer layerName() { return nlayerName(address()); } - /** a string specifying the name of the API layer. Use this name in the {@link XrInstanceCreateInfo}{@code ::enabledApiLayerNames} array to enable this API layer for an instance. */ - @NativeType("char[XR_MAX_API_LAYER_NAME_SIZE]") - public String layerNameString() { return nlayerNameString(address()); } - /** the API version the API layer was written to, encoded as described in the API Version Numbers and Semantics section. */ - @NativeType("XrVersion") - public long specVersion() { return nspecVersion(address()); } - /** the version of this API layer. It is an integer, increasing with backward compatible changes. */ - @NativeType("uint32_t") - public int layerVersion() { return nlayerVersion(address()); } - /** a string providing additional details that can be used by the application to identify the API layer. */ - @NativeType("char[XR_MAX_API_LAYER_DESCRIPTION_SIZE]") - public ByteBuffer description() { return ndescription(address()); } - /** a string providing additional details that can be used by the application to identify the API layer. */ - @NativeType("char[XR_MAX_API_LAYER_DESCRIPTION_SIZE]") - public String descriptionString() { return ndescriptionString(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrApiLayerProperties type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_API_LAYER_PROPERTIES TYPE_API_LAYER_PROPERTIES} value to the {@link #type} field. */ - public XrApiLayerProperties type$Default() { return type(XR10.XR_TYPE_API_LAYER_PROPERTIES); } - /** Sets the specified value to the {@link #next} field. */ - public XrApiLayerProperties next(@NativeType("void *") long value) { nnext(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** a string specifying the name of the API layer. Use this name in the {@link XrInstanceCreateInfo}{@code ::enabledApiLayerNames} array to enable this API layer for an instance. */ + @NativeType("char[XR_MAX_API_LAYER_NAME_SIZE]") + public ByteBuffer layerName() { return nlayerName(address()); } + /** a string specifying the name of the API layer. Use this name in the {@link XrInstanceCreateInfo}{@code ::enabledApiLayerNames} array to enable this API layer for an instance. */ + @NativeType("char[XR_MAX_API_LAYER_NAME_SIZE]") + public String layerNameString() { return nlayerNameString(address()); } + /** the API version the API layer was written to, encoded as described in the API Version Numbers and Semantics section. */ + @NativeType("XrVersion") + public long specVersion() { return nspecVersion(address()); } + /** the version of this API layer. It is an integer, increasing with backward compatible changes. */ + @NativeType("uint32_t") + public int layerVersion() { return nlayerVersion(address()); } + /** a string providing additional details that can be used by the application to identify the API layer. */ + @NativeType("char[XR_MAX_API_LAYER_DESCRIPTION_SIZE]") + public ByteBuffer description() { return ndescription(address()); } + /** a string providing additional details that can be used by the application to identify the API layer. */ + @NativeType("char[XR_MAX_API_LAYER_DESCRIPTION_SIZE]") + public String descriptionString() { return ndescriptionString(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrApiLayerProperties type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_API_LAYER_PROPERTIES TYPE_API_LAYER_PROPERTIES} value to the {@link #type} field. */ + public XrApiLayerProperties type$Default() { return type(XR10.XR_TYPE_API_LAYER_PROPERTIES); } + /** Sets the specified value to the {@link #next} field. */ + public XrApiLayerProperties next(@NativeType("void *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrApiLayerProperties set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -270,30 +270,30 @@ public static XrApiLayerProperties.Buffer calloc(int capacity, MemoryStack stack } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrApiLayerProperties.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrApiLayerProperties.NEXT); } - /** Unsafe version of {@link #layerName}. */ - public static ByteBuffer nlayerName(long struct) { return memByteBuffer(struct + XrApiLayerProperties.LAYERNAME, XR_MAX_API_LAYER_NAME_SIZE); } - /** Unsafe version of {@link #layerNameString}. */ - public static String nlayerNameString(long struct) { return memUTF8(struct + XrApiLayerProperties.LAYERNAME); } - /** Unsafe version of {@link #specVersion}. */ - public static long nspecVersion(long struct) { return UNSAFE.getLong(null, struct + XrApiLayerProperties.SPECVERSION); } - /** Unsafe version of {@link #layerVersion}. */ - public static int nlayerVersion(long struct) { return UNSAFE.getInt(null, struct + XrApiLayerProperties.LAYERVERSION); } - /** Unsafe version of {@link #description}. */ - public static ByteBuffer ndescription(long struct) { return memByteBuffer(struct + XrApiLayerProperties.DESCRIPTION, XR_MAX_API_LAYER_DESCRIPTION_SIZE); } - /** Unsafe version of {@link #descriptionString}. */ - public static String ndescriptionString(long struct) { return memUTF8(struct + XrApiLayerProperties.DESCRIPTION); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrApiLayerProperties.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrApiLayerProperties.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrApiLayerProperties.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrApiLayerProperties.NEXT); } + /** Unsafe version of {@link #layerName}. */ + public static ByteBuffer nlayerName(long struct) { return memByteBuffer(struct + XrApiLayerProperties.LAYERNAME, XR_MAX_API_LAYER_NAME_SIZE); } + /** Unsafe version of {@link #layerNameString}. */ + public static String nlayerNameString(long struct) { return memUTF8(struct + XrApiLayerProperties.LAYERNAME); } + /** Unsafe version of {@link #specVersion}. */ + public static long nspecVersion(long struct) { return UNSAFE.getLong(null, struct + XrApiLayerProperties.SPECVERSION); } + /** Unsafe version of {@link #layerVersion}. */ + public static int nlayerVersion(long struct) { return UNSAFE.getInt(null, struct + XrApiLayerProperties.LAYERVERSION); } + /** Unsafe version of {@link #description}. */ + public static ByteBuffer ndescription(long struct) { return memByteBuffer(struct + XrApiLayerProperties.DESCRIPTION, XR_MAX_API_LAYER_DESCRIPTION_SIZE); } + /** Unsafe version of {@link #descriptionString}. */ + public static String ndescriptionString(long struct) { return memUTF8(struct + XrApiLayerProperties.DESCRIPTION); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrApiLayerProperties.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrApiLayerProperties.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrApiLayerProperties} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -330,38 +330,38 @@ protected Buffer self() { protected XrApiLayerProperties getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrApiLayerProperties#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrApiLayerProperties.ntype(address()); } - /** @return the value of the {@link XrApiLayerProperties#next} field. */ - @NativeType("void *") - public long next() { return XrApiLayerProperties.nnext(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrApiLayerProperties#layerName} field. */ - @NativeType("char[XR_MAX_API_LAYER_NAME_SIZE]") - public ByteBuffer layerName() { return XrApiLayerProperties.nlayerName(address()); } - /** @return the null-terminated string stored in the {@link XrApiLayerProperties#layerName} field. */ - @NativeType("char[XR_MAX_API_LAYER_NAME_SIZE]") - public String layerNameString() { return XrApiLayerProperties.nlayerNameString(address()); } - /** @return the value of the {@link XrApiLayerProperties#specVersion} field. */ - @NativeType("XrVersion") - public long specVersion() { return XrApiLayerProperties.nspecVersion(address()); } - /** @return the value of the {@link XrApiLayerProperties#layerVersion} field. */ - @NativeType("uint32_t") - public int layerVersion() { return XrApiLayerProperties.nlayerVersion(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrApiLayerProperties#description} field. */ - @NativeType("char[XR_MAX_API_LAYER_DESCRIPTION_SIZE]") - public ByteBuffer description() { return XrApiLayerProperties.ndescription(address()); } - /** @return the null-terminated string stored in the {@link XrApiLayerProperties#description} field. */ - @NativeType("char[XR_MAX_API_LAYER_DESCRIPTION_SIZE]") - public String descriptionString() { return XrApiLayerProperties.ndescriptionString(address()); } - - /** Sets the specified value to the {@link XrApiLayerProperties#type} field. */ - public XrApiLayerProperties.Buffer type(@NativeType("XrStructureType") int value) { XrApiLayerProperties.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_API_LAYER_PROPERTIES TYPE_API_LAYER_PROPERTIES} value to the {@link XrApiLayerProperties#type} field. */ - public XrApiLayerProperties.Buffer type$Default() { return type(XR10.XR_TYPE_API_LAYER_PROPERTIES); } - /** Sets the specified value to the {@link XrApiLayerProperties#next} field. */ - public XrApiLayerProperties.Buffer next(@NativeType("void *") long value) { XrApiLayerProperties.nnext(address(), value); return this; } + + /** @return the value of the {@link XrApiLayerProperties#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrApiLayerProperties.ntype(address()); } + /** @return the value of the {@link XrApiLayerProperties#next} field. */ + @NativeType("void *") + public long next() { return XrApiLayerProperties.nnext(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrApiLayerProperties#layerName} field. */ + @NativeType("char[XR_MAX_API_LAYER_NAME_SIZE]") + public ByteBuffer layerName() { return XrApiLayerProperties.nlayerName(address()); } + /** @return the null-terminated string stored in the {@link XrApiLayerProperties#layerName} field. */ + @NativeType("char[XR_MAX_API_LAYER_NAME_SIZE]") + public String layerNameString() { return XrApiLayerProperties.nlayerNameString(address()); } + /** @return the value of the {@link XrApiLayerProperties#specVersion} field. */ + @NativeType("XrVersion") + public long specVersion() { return XrApiLayerProperties.nspecVersion(address()); } + /** @return the value of the {@link XrApiLayerProperties#layerVersion} field. */ + @NativeType("uint32_t") + public int layerVersion() { return XrApiLayerProperties.nlayerVersion(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrApiLayerProperties#description} field. */ + @NativeType("char[XR_MAX_API_LAYER_DESCRIPTION_SIZE]") + public ByteBuffer description() { return XrApiLayerProperties.ndescription(address()); } + /** @return the null-terminated string stored in the {@link XrApiLayerProperties#description} field. */ + @NativeType("char[XR_MAX_API_LAYER_DESCRIPTION_SIZE]") + public String descriptionString() { return XrApiLayerProperties.ndescriptionString(address()); } + + /** Sets the specified value to the {@link XrApiLayerProperties#type} field. */ + public XrApiLayerProperties.Buffer type(@NativeType("XrStructureType") int value) { XrApiLayerProperties.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_API_LAYER_PROPERTIES TYPE_API_LAYER_PROPERTIES} value to the {@link XrApiLayerProperties#type} field. */ + public XrApiLayerProperties.Buffer type$Default() { return type(XR10.XR_TYPE_API_LAYER_PROPERTIES); } + /** Sets the specified value to the {@link XrApiLayerProperties#next} field. */ + public XrApiLayerProperties.Buffer next(@NativeType("void *") long value) { XrApiLayerProperties.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrApplicationInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrApplicationInfo.java index 30fa630f6a..f62fddc122 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrApplicationInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrApplicationInfo.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import static org.lwjgl.openxr.XR10.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.XR10.*; + /** * Structure specifying application info. * @@ -49,8 +49,8 @@ * uint32_t {@link #engineVersion}; * XrVersion {@link #apiVersion}; * } - */ -public class XrApplicationInfo extends Struct implements NativeResource { + */ +public class XrApplicationInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -60,30 +60,30 @@ public class XrApplicationInfo extends Struct implements Nati /** The struct member offsets. */ public static final int - APPLICATIONNAME, - APPLICATIONVERSION, - ENGINENAME, - ENGINEVERSION, - APIVERSION; + APPLICATIONNAME, + APPLICATIONVERSION, + ENGINENAME, + ENGINEVERSION, + APIVERSION; static { - Layout layout = __struct( - __array(1, XR_MAX_APPLICATION_NAME_SIZE), - __member(4), - __array(1, XR_MAX_ENGINE_NAME_SIZE), - __member(4), + Layout layout = __struct( + __array(1, XR_MAX_APPLICATION_NAME_SIZE), + __member(4), + __array(1, XR_MAX_ENGINE_NAME_SIZE), + __member(4), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - APPLICATIONNAME = layout.offsetof(0); - APPLICATIONVERSION = layout.offsetof(1); - ENGINENAME = layout.offsetof(2); - ENGINEVERSION = layout.offsetof(3); - APIVERSION = layout.offsetof(4); - } + APPLICATIONNAME = layout.offsetof(0); + APPLICATIONVERSION = layout.offsetof(1); + ENGINENAME = layout.offsetof(2); + ENGINEVERSION = layout.offsetof(3); + APIVERSION = layout.offsetof(4); + } protected XrApplicationInfo(long address, @Nullable ByteBuffer container) { super(address, container); @@ -106,53 +106,53 @@ public XrApplicationInfo(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** a non-empty string containing the name of the application. */ - @NativeType("char[XR_MAX_APPLICATION_NAME_SIZE]") - public ByteBuffer applicationName() { return napplicationName(address()); } - /** a non-empty string containing the name of the application. */ - @NativeType("char[XR_MAX_APPLICATION_NAME_SIZE]") - public String applicationNameString() { return napplicationNameString(address()); } - /** an unsigned integer variable containing the developer-supplied version number of the application. */ - @NativeType("uint32_t") - public int applicationVersion() { return napplicationVersion(address()); } - /** a string containing the name of the engine (if any) used to create the application. It may be empty to indicate no specified engine. */ - @NativeType("char[XR_MAX_ENGINE_NAME_SIZE]") - public ByteBuffer engineName() { return nengineName(address()); } - /** a string containing the name of the engine (if any) used to create the application. It may be empty to indicate no specified engine. */ - @NativeType("char[XR_MAX_ENGINE_NAME_SIZE]") - public String engineNameString() { return nengineNameString(address()); } - /** an unsigned integer variable containing the developer-supplied version number of the engine used to create the application. May be zero to indicate no specified engine. */ - @NativeType("uint32_t") - public int engineVersion() { return nengineVersion(address()); } - /** the version of this API against which the application will run, encoded as described in the API Version Numbers and Semantics section. If the runtime does not support the requested {@code apiVersion} it must return {@link XR10#XR_ERROR_API_VERSION_UNSUPPORTED ERROR_API_VERSION_UNSUPPORTED}. */ - @NativeType("XrVersion") - public long apiVersion() { return napiVersion(address()); } - - /** Copies the specified encoded string to the {@link #applicationName} field. */ - public XrApplicationInfo applicationName(@NativeType("char[XR_MAX_APPLICATION_NAME_SIZE]") ByteBuffer value) { napplicationName(address(), value); return this; } - /** Sets the specified value to the {@link #applicationVersion} field. */ - public XrApplicationInfo applicationVersion(@NativeType("uint32_t") int value) { napplicationVersion(address(), value); return this; } - /** Copies the specified encoded string to the {@link #engineName} field. */ - public XrApplicationInfo engineName(@NativeType("char[XR_MAX_ENGINE_NAME_SIZE]") ByteBuffer value) { nengineName(address(), value); return this; } - /** Sets the specified value to the {@link #engineVersion} field. */ - public XrApplicationInfo engineVersion(@NativeType("uint32_t") int value) { nengineVersion(address(), value); return this; } - /** Sets the specified value to the {@link #apiVersion} field. */ - public XrApplicationInfo apiVersion(@NativeType("XrVersion") long value) { napiVersion(address(), value); return this; } + + /** a non-empty string containing the name of the application. */ + @NativeType("char[XR_MAX_APPLICATION_NAME_SIZE]") + public ByteBuffer applicationName() { return napplicationName(address()); } + /** a non-empty string containing the name of the application. */ + @NativeType("char[XR_MAX_APPLICATION_NAME_SIZE]") + public String applicationNameString() { return napplicationNameString(address()); } + /** an unsigned integer variable containing the developer-supplied version number of the application. */ + @NativeType("uint32_t") + public int applicationVersion() { return napplicationVersion(address()); } + /** a string containing the name of the engine (if any) used to create the application. It may be empty to indicate no specified engine. */ + @NativeType("char[XR_MAX_ENGINE_NAME_SIZE]") + public ByteBuffer engineName() { return nengineName(address()); } + /** a string containing the name of the engine (if any) used to create the application. It may be empty to indicate no specified engine. */ + @NativeType("char[XR_MAX_ENGINE_NAME_SIZE]") + public String engineNameString() { return nengineNameString(address()); } + /** an unsigned integer variable containing the developer-supplied version number of the engine used to create the application. May be zero to indicate no specified engine. */ + @NativeType("uint32_t") + public int engineVersion() { return nengineVersion(address()); } + /** the version of this API against which the application will run, encoded as described in the API Version Numbers and Semantics section. If the runtime does not support the requested {@code apiVersion} it must return {@link XR10#XR_ERROR_API_VERSION_UNSUPPORTED ERROR_API_VERSION_UNSUPPORTED}. */ + @NativeType("XrVersion") + public long apiVersion() { return napiVersion(address()); } + + /** Copies the specified encoded string to the {@link #applicationName} field. */ + public XrApplicationInfo applicationName(@NativeType("char[XR_MAX_APPLICATION_NAME_SIZE]") ByteBuffer value) { napplicationName(address(), value); return this; } + /** Sets the specified value to the {@link #applicationVersion} field. */ + public XrApplicationInfo applicationVersion(@NativeType("uint32_t") int value) { napplicationVersion(address(), value); return this; } + /** Copies the specified encoded string to the {@link #engineName} field. */ + public XrApplicationInfo engineName(@NativeType("char[XR_MAX_ENGINE_NAME_SIZE]") ByteBuffer value) { nengineName(address(), value); return this; } + /** Sets the specified value to the {@link #engineVersion} field. */ + public XrApplicationInfo engineVersion(@NativeType("uint32_t") int value) { nengineVersion(address(), value); return this; } + /** Sets the specified value to the {@link #apiVersion} field. */ + public XrApplicationInfo apiVersion(@NativeType("XrVersion") long value) { napiVersion(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrApplicationInfo set( - ByteBuffer applicationName, - int applicationVersion, - ByteBuffer engineName, - int engineVersion, + ByteBuffer applicationName, + int applicationVersion, + ByteBuffer engineName, + int engineVersion, long apiVersion - ) { - applicationName(applicationName); - applicationVersion(applicationVersion); - engineName(engineName); - engineVersion(engineVersion); - apiVersion(apiVersion); + ) { + applicationName(applicationName); + applicationVersion(applicationVersion); + engineName(engineName); + engineVersion(engineVersion); + apiVersion(apiVersion); return this; } @@ -281,46 +281,46 @@ public static XrApplicationInfo.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #applicationName}. */ - public static ByteBuffer napplicationName(long struct) { return memByteBuffer(struct + XrApplicationInfo.APPLICATIONNAME, XR_MAX_APPLICATION_NAME_SIZE); } - /** Unsafe version of {@link #applicationNameString}. */ - public static String napplicationNameString(long struct) { return memUTF8(struct + XrApplicationInfo.APPLICATIONNAME); } - /** Unsafe version of {@link #applicationVersion}. */ - public static int napplicationVersion(long struct) { return UNSAFE.getInt(null, struct + XrApplicationInfo.APPLICATIONVERSION); } - /** Unsafe version of {@link #engineName}. */ - public static ByteBuffer nengineName(long struct) { return memByteBuffer(struct + XrApplicationInfo.ENGINENAME, XR_MAX_ENGINE_NAME_SIZE); } - /** Unsafe version of {@link #engineNameString}. */ - public static String nengineNameString(long struct) { return memUTF8(struct + XrApplicationInfo.ENGINENAME); } - /** Unsafe version of {@link #engineVersion}. */ - public static int nengineVersion(long struct) { return UNSAFE.getInt(null, struct + XrApplicationInfo.ENGINEVERSION); } - /** Unsafe version of {@link #apiVersion}. */ - public static long napiVersion(long struct) { return UNSAFE.getLong(null, struct + XrApplicationInfo.APIVERSION); } - - /** Unsafe version of {@link #applicationName(ByteBuffer) applicationName}. */ - public static void napplicationName(long struct, ByteBuffer value) { - if (CHECKS) { - checkNT1(value); - checkGT(value, XR_MAX_APPLICATION_NAME_SIZE); - } - memCopy(memAddress(value), struct + XrApplicationInfo.APPLICATIONNAME, value.remaining()); - } - /** Unsafe version of {@link #applicationVersion(int) applicationVersion}. */ - public static void napplicationVersion(long struct, int value) { UNSAFE.putInt(null, struct + XrApplicationInfo.APPLICATIONVERSION, value); } - /** Unsafe version of {@link #engineName(ByteBuffer) engineName}. */ - public static void nengineName(long struct, ByteBuffer value) { - if (CHECKS) { - checkNT1(value); - checkGT(value, XR_MAX_ENGINE_NAME_SIZE); - } - memCopy(memAddress(value), struct + XrApplicationInfo.ENGINENAME, value.remaining()); - } - /** Unsafe version of {@link #engineVersion(int) engineVersion}. */ - public static void nengineVersion(long struct, int value) { UNSAFE.putInt(null, struct + XrApplicationInfo.ENGINEVERSION, value); } - /** Unsafe version of {@link #apiVersion(long) apiVersion}. */ - public static void napiVersion(long struct, long value) { UNSAFE.putLong(null, struct + XrApplicationInfo.APIVERSION, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #applicationName}. */ + public static ByteBuffer napplicationName(long struct) { return memByteBuffer(struct + XrApplicationInfo.APPLICATIONNAME, XR_MAX_APPLICATION_NAME_SIZE); } + /** Unsafe version of {@link #applicationNameString}. */ + public static String napplicationNameString(long struct) { return memUTF8(struct + XrApplicationInfo.APPLICATIONNAME); } + /** Unsafe version of {@link #applicationVersion}. */ + public static int napplicationVersion(long struct) { return UNSAFE.getInt(null, struct + XrApplicationInfo.APPLICATIONVERSION); } + /** Unsafe version of {@link #engineName}. */ + public static ByteBuffer nengineName(long struct) { return memByteBuffer(struct + XrApplicationInfo.ENGINENAME, XR_MAX_ENGINE_NAME_SIZE); } + /** Unsafe version of {@link #engineNameString}. */ + public static String nengineNameString(long struct) { return memUTF8(struct + XrApplicationInfo.ENGINENAME); } + /** Unsafe version of {@link #engineVersion}. */ + public static int nengineVersion(long struct) { return UNSAFE.getInt(null, struct + XrApplicationInfo.ENGINEVERSION); } + /** Unsafe version of {@link #apiVersion}. */ + public static long napiVersion(long struct) { return UNSAFE.getLong(null, struct + XrApplicationInfo.APIVERSION); } + + /** Unsafe version of {@link #applicationName(ByteBuffer) applicationName}. */ + public static void napplicationName(long struct, ByteBuffer value) { + if (CHECKS) { + checkNT1(value); + checkGT(value, XR_MAX_APPLICATION_NAME_SIZE); + } + memCopy(memAddress(value), struct + XrApplicationInfo.APPLICATIONNAME, value.remaining()); + } + /** Unsafe version of {@link #applicationVersion(int) applicationVersion}. */ + public static void napplicationVersion(long struct, int value) { UNSAFE.putInt(null, struct + XrApplicationInfo.APPLICATIONVERSION, value); } + /** Unsafe version of {@link #engineName(ByteBuffer) engineName}. */ + public static void nengineName(long struct, ByteBuffer value) { + if (CHECKS) { + checkNT1(value); + checkGT(value, XR_MAX_ENGINE_NAME_SIZE); + } + memCopy(memAddress(value), struct + XrApplicationInfo.ENGINENAME, value.remaining()); + } + /** Unsafe version of {@link #engineVersion(int) engineVersion}. */ + public static void nengineVersion(long struct, int value) { UNSAFE.putInt(null, struct + XrApplicationInfo.ENGINEVERSION, value); } + /** Unsafe version of {@link #apiVersion(long) apiVersion}. */ + public static void napiVersion(long struct, long value) { UNSAFE.putLong(null, struct + XrApplicationInfo.APIVERSION, value); } + + // ----------------------------------- /** An array of {@link XrApplicationInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -357,39 +357,39 @@ protected Buffer self() { protected XrApplicationInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return a {@link ByteBuffer} view of the {@link XrApplicationInfo#applicationName} field. */ - @NativeType("char[XR_MAX_APPLICATION_NAME_SIZE]") - public ByteBuffer applicationName() { return XrApplicationInfo.napplicationName(address()); } - /** @return the null-terminated string stored in the {@link XrApplicationInfo#applicationName} field. */ - @NativeType("char[XR_MAX_APPLICATION_NAME_SIZE]") - public String applicationNameString() { return XrApplicationInfo.napplicationNameString(address()); } - /** @return the value of the {@link XrApplicationInfo#applicationVersion} field. */ - @NativeType("uint32_t") - public int applicationVersion() { return XrApplicationInfo.napplicationVersion(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrApplicationInfo#engineName} field. */ - @NativeType("char[XR_MAX_ENGINE_NAME_SIZE]") - public ByteBuffer engineName() { return XrApplicationInfo.nengineName(address()); } - /** @return the null-terminated string stored in the {@link XrApplicationInfo#engineName} field. */ - @NativeType("char[XR_MAX_ENGINE_NAME_SIZE]") - public String engineNameString() { return XrApplicationInfo.nengineNameString(address()); } - /** @return the value of the {@link XrApplicationInfo#engineVersion} field. */ - @NativeType("uint32_t") - public int engineVersion() { return XrApplicationInfo.nengineVersion(address()); } - /** @return the value of the {@link XrApplicationInfo#apiVersion} field. */ - @NativeType("XrVersion") - public long apiVersion() { return XrApplicationInfo.napiVersion(address()); } - - /** Copies the specified encoded string to the {@link XrApplicationInfo#applicationName} field. */ - public XrApplicationInfo.Buffer applicationName(@NativeType("char[XR_MAX_APPLICATION_NAME_SIZE]") ByteBuffer value) { XrApplicationInfo.napplicationName(address(), value); return this; } - /** Sets the specified value to the {@link XrApplicationInfo#applicationVersion} field. */ - public XrApplicationInfo.Buffer applicationVersion(@NativeType("uint32_t") int value) { XrApplicationInfo.napplicationVersion(address(), value); return this; } - /** Copies the specified encoded string to the {@link XrApplicationInfo#engineName} field. */ - public XrApplicationInfo.Buffer engineName(@NativeType("char[XR_MAX_ENGINE_NAME_SIZE]") ByteBuffer value) { XrApplicationInfo.nengineName(address(), value); return this; } - /** Sets the specified value to the {@link XrApplicationInfo#engineVersion} field. */ - public XrApplicationInfo.Buffer engineVersion(@NativeType("uint32_t") int value) { XrApplicationInfo.nengineVersion(address(), value); return this; } - /** Sets the specified value to the {@link XrApplicationInfo#apiVersion} field. */ - public XrApplicationInfo.Buffer apiVersion(@NativeType("XrVersion") long value) { XrApplicationInfo.napiVersion(address(), value); return this; } + + /** @return a {@link ByteBuffer} view of the {@link XrApplicationInfo#applicationName} field. */ + @NativeType("char[XR_MAX_APPLICATION_NAME_SIZE]") + public ByteBuffer applicationName() { return XrApplicationInfo.napplicationName(address()); } + /** @return the null-terminated string stored in the {@link XrApplicationInfo#applicationName} field. */ + @NativeType("char[XR_MAX_APPLICATION_NAME_SIZE]") + public String applicationNameString() { return XrApplicationInfo.napplicationNameString(address()); } + /** @return the value of the {@link XrApplicationInfo#applicationVersion} field. */ + @NativeType("uint32_t") + public int applicationVersion() { return XrApplicationInfo.napplicationVersion(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrApplicationInfo#engineName} field. */ + @NativeType("char[XR_MAX_ENGINE_NAME_SIZE]") + public ByteBuffer engineName() { return XrApplicationInfo.nengineName(address()); } + /** @return the null-terminated string stored in the {@link XrApplicationInfo#engineName} field. */ + @NativeType("char[XR_MAX_ENGINE_NAME_SIZE]") + public String engineNameString() { return XrApplicationInfo.nengineNameString(address()); } + /** @return the value of the {@link XrApplicationInfo#engineVersion} field. */ + @NativeType("uint32_t") + public int engineVersion() { return XrApplicationInfo.nengineVersion(address()); } + /** @return the value of the {@link XrApplicationInfo#apiVersion} field. */ + @NativeType("XrVersion") + public long apiVersion() { return XrApplicationInfo.napiVersion(address()); } + + /** Copies the specified encoded string to the {@link XrApplicationInfo#applicationName} field. */ + public XrApplicationInfo.Buffer applicationName(@NativeType("char[XR_MAX_APPLICATION_NAME_SIZE]") ByteBuffer value) { XrApplicationInfo.napplicationName(address(), value); return this; } + /** Sets the specified value to the {@link XrApplicationInfo#applicationVersion} field. */ + public XrApplicationInfo.Buffer applicationVersion(@NativeType("uint32_t") int value) { XrApplicationInfo.napplicationVersion(address(), value); return this; } + /** Copies the specified encoded string to the {@link XrApplicationInfo#engineName} field. */ + public XrApplicationInfo.Buffer engineName(@NativeType("char[XR_MAX_ENGINE_NAME_SIZE]") ByteBuffer value) { XrApplicationInfo.nengineName(address(), value); return this; } + /** Sets the specified value to the {@link XrApplicationInfo#engineVersion} field. */ + public XrApplicationInfo.Buffer engineVersion(@NativeType("uint32_t") int value) { XrApplicationInfo.nengineVersion(address(), value); return this; } + /** Sets the specified value to the {@link XrApplicationInfo#apiVersion} field. */ + public XrApplicationInfo.Buffer apiVersion(@NativeType("XrVersion") long value) { XrApplicationInfo.napiVersion(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBaseInStructure.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBaseInStructure.java index b6b2eac0dd..4264704d4d 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBaseInStructure.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBaseInStructure.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Convenience type for iterating (read only). * @@ -34,8 +34,8 @@ * XrStructureType {@link #type}; * {@link XrBaseInStructure XrBaseInStructure} const * {@link #next}; * } - */ -public class XrBaseInStructure extends Struct implements NativeResource { + */ +public class XrBaseInStructure extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -45,21 +45,21 @@ public class XrBaseInStructure extends Struct implements Nati /** The struct member offsets. */ public static final int - TYPE, - NEXT; + TYPE, + NEXT; static { - Layout layout = __struct( - __member(4), + Layout layout = __struct( + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + } protected XrBaseInStructure(long address, @Nullable ByteBuffer container) { super(address, container); @@ -82,26 +82,26 @@ public XrBaseInStructure(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. This base structure itself has no associated {@code XrStructureType} value. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("XrBaseInStructure const *") - public XrBaseInStructure next() { return nnext(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrBaseInStructure type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the address of the specified {@link XrBaseInStructure} to the {@link #next} field. */ - public XrBaseInStructure next(@NativeType("XrBaseInStructure const *") XrBaseInStructure value) { nnext(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. This base structure itself has no associated {@code XrStructureType} value. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("XrBaseInStructure const *") + public XrBaseInStructure next() { return nnext(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrBaseInStructure type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the address of the specified {@link XrBaseInStructure} to the {@link #next} field. */ + public XrBaseInStructure next(@NativeType("XrBaseInStructure const *") XrBaseInStructure value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrBaseInStructure set( - int type, + int type, XrBaseInStructure next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -230,16 +230,16 @@ public static XrBaseInStructure.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBaseInStructure.TYPE); } - /** Unsafe version of {@link #next}. */ - public static XrBaseInStructure nnext(long struct) { return XrBaseInStructure.create(memGetAddress(struct + XrBaseInStructure.NEXT)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBaseInStructure.TYPE, value); } - /** Unsafe version of {@link #next(XrBaseInStructure) next}. */ - public static void nnext(long struct, XrBaseInStructure value) { memPutAddress(struct + XrBaseInStructure.NEXT, value.address()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBaseInStructure.TYPE); } + /** Unsafe version of {@link #next}. */ + public static XrBaseInStructure nnext(long struct) { return XrBaseInStructure.create(memGetAddress(struct + XrBaseInStructure.NEXT)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBaseInStructure.TYPE, value); } + /** Unsafe version of {@link #next(XrBaseInStructure) next}. */ + public static void nnext(long struct, XrBaseInStructure value) { memPutAddress(struct + XrBaseInStructure.NEXT, value.address()); } /** * Validates pointer members that should not be {@code NULL}. @@ -248,9 +248,9 @@ public static XrBaseInStructure.Buffer calloc(int capacity, MemoryStack stack) { */ public static void validate(long struct) { check(memGetAddress(struct + XrBaseInStructure.NEXT)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrBaseInStructure} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -287,18 +287,18 @@ protected Buffer self() { protected XrBaseInStructure getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrBaseInStructure#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrBaseInStructure.ntype(address()); } - /** @return a {@link XrBaseInStructure} view of the struct pointed to by the {@link XrBaseInStructure#next} field. */ - @NativeType("XrBaseInStructure const *") - public XrBaseInStructure next() { return XrBaseInStructure.nnext(address()); } - - /** Sets the specified value to the {@link XrBaseInStructure#type} field. */ - public XrBaseInStructure.Buffer type(@NativeType("XrStructureType") int value) { XrBaseInStructure.ntype(address(), value); return this; } - /** Sets the address of the specified {@link XrBaseInStructure} to the {@link XrBaseInStructure#next} field. */ - public XrBaseInStructure.Buffer next(@NativeType("XrBaseInStructure const *") XrBaseInStructure value) { XrBaseInStructure.nnext(address(), value); return this; } + + /** @return the value of the {@link XrBaseInStructure#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrBaseInStructure.ntype(address()); } + /** @return a {@link XrBaseInStructure} view of the struct pointed to by the {@link XrBaseInStructure#next} field. */ + @NativeType("XrBaseInStructure const *") + public XrBaseInStructure next() { return XrBaseInStructure.nnext(address()); } + + /** Sets the specified value to the {@link XrBaseInStructure#type} field. */ + public XrBaseInStructure.Buffer type(@NativeType("XrStructureType") int value) { XrBaseInStructure.ntype(address(), value); return this; } + /** Sets the address of the specified {@link XrBaseInStructure} to the {@link XrBaseInStructure#next} field. */ + public XrBaseInStructure.Buffer next(@NativeType("XrBaseInStructure const *") XrBaseInStructure value) { XrBaseInStructure.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBaseOutStructure.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBaseOutStructure.java index 314d216a14..e1bf42e221 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBaseOutStructure.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBaseOutStructure.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Convenience type for iterating (mutable). * @@ -34,8 +34,8 @@ * XrStructureType {@link #type}; * {@link XrBaseOutStructure XrBaseOutStructure} * {@link #next}; * } - */ -public class XrBaseOutStructure extends Struct implements NativeResource { + */ +public class XrBaseOutStructure extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -45,21 +45,21 @@ public class XrBaseOutStructure extends Struct implements Na /** The struct member offsets. */ public static final int - TYPE, - NEXT; + TYPE, + NEXT; static { - Layout layout = __struct( - __member(4), + Layout layout = __struct( + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + } protected XrBaseOutStructure(long address, @Nullable ByteBuffer container) { super(address, container); @@ -82,26 +82,26 @@ public XrBaseOutStructure(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. This base structure itself has no associated {@code XrStructureType} value. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("XrBaseOutStructure *") - public XrBaseOutStructure next() { return nnext(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrBaseOutStructure type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the address of the specified {@link XrBaseOutStructure} to the {@link #next} field. */ - public XrBaseOutStructure next(@NativeType("XrBaseOutStructure *") XrBaseOutStructure value) { nnext(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. This base structure itself has no associated {@code XrStructureType} value. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("XrBaseOutStructure *") + public XrBaseOutStructure next() { return nnext(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrBaseOutStructure type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the address of the specified {@link XrBaseOutStructure} to the {@link #next} field. */ + public XrBaseOutStructure next(@NativeType("XrBaseOutStructure *") XrBaseOutStructure value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrBaseOutStructure set( - int type, + int type, XrBaseOutStructure next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -230,16 +230,16 @@ public static XrBaseOutStructure.Buffer calloc(int capacity, MemoryStack stack) } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBaseOutStructure.TYPE); } - /** Unsafe version of {@link #next}. */ - public static XrBaseOutStructure nnext(long struct) { return XrBaseOutStructure.create(memGetAddress(struct + XrBaseOutStructure.NEXT)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBaseOutStructure.TYPE, value); } - /** Unsafe version of {@link #next(XrBaseOutStructure) next}. */ - public static void nnext(long struct, XrBaseOutStructure value) { memPutAddress(struct + XrBaseOutStructure.NEXT, value.address()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBaseOutStructure.TYPE); } + /** Unsafe version of {@link #next}. */ + public static XrBaseOutStructure nnext(long struct) { return XrBaseOutStructure.create(memGetAddress(struct + XrBaseOutStructure.NEXT)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBaseOutStructure.TYPE, value); } + /** Unsafe version of {@link #next(XrBaseOutStructure) next}. */ + public static void nnext(long struct, XrBaseOutStructure value) { memPutAddress(struct + XrBaseOutStructure.NEXT, value.address()); } /** * Validates pointer members that should not be {@code NULL}. @@ -248,9 +248,9 @@ public static XrBaseOutStructure.Buffer calloc(int capacity, MemoryStack stack) */ public static void validate(long struct) { check(memGetAddress(struct + XrBaseOutStructure.NEXT)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrBaseOutStructure} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -287,18 +287,18 @@ protected Buffer self() { protected XrBaseOutStructure getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrBaseOutStructure#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrBaseOutStructure.ntype(address()); } - /** @return a {@link XrBaseOutStructure} view of the struct pointed to by the {@link XrBaseOutStructure#next} field. */ - @NativeType("XrBaseOutStructure *") - public XrBaseOutStructure next() { return XrBaseOutStructure.nnext(address()); } - - /** Sets the specified value to the {@link XrBaseOutStructure#type} field. */ - public XrBaseOutStructure.Buffer type(@NativeType("XrStructureType") int value) { XrBaseOutStructure.ntype(address(), value); return this; } - /** Sets the address of the specified {@link XrBaseOutStructure} to the {@link XrBaseOutStructure#next} field. */ - public XrBaseOutStructure.Buffer next(@NativeType("XrBaseOutStructure *") XrBaseOutStructure value) { XrBaseOutStructure.nnext(address(), value); return this; } + + /** @return the value of the {@link XrBaseOutStructure#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrBaseOutStructure.ntype(address()); } + /** @return a {@link XrBaseOutStructure} view of the struct pointed to by the {@link XrBaseOutStructure#next} field. */ + @NativeType("XrBaseOutStructure *") + public XrBaseOutStructure next() { return XrBaseOutStructure.nnext(address()); } + + /** Sets the specified value to the {@link XrBaseOutStructure#type} field. */ + public XrBaseOutStructure.Buffer type(@NativeType("XrStructureType") int value) { XrBaseOutStructure.ntype(address(), value); return this; } + /** Sets the address of the specified {@link XrBaseOutStructure} to the {@link XrBaseOutStructure#next} field. */ + public XrBaseOutStructure.Buffer next(@NativeType("XrBaseOutStructure *") XrBaseOutStructure value) { XrBaseOutStructure.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBindingModificationBaseHeaderKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBindingModificationBaseHeaderKHR.java index 1753899057..fc39d7f120 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBindingModificationBaseHeaderKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBindingModificationBaseHeaderKHR.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Base struct for all binding modifications. * @@ -26,7 +26,7 @@ * *
      *
    • The {@link KHRBindingModification XR_KHR_binding_modification} extension must be enabled prior to using {@link XrBindingModificationBaseHeaderKHR}
    • - *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • + *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • *
    * *
    See Also
    @@ -40,8 +40,8 @@ * XrStructureType {@link #type}; * void const * {@link #next}; * } - */ -public class XrBindingModificationBaseHeaderKHR extends Struct implements NativeResource { + */ +public class XrBindingModificationBaseHeaderKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,21 +51,21 @@ public class XrBindingModificationBaseHeaderKHR extends Struct implements NativeResource { @@ -304,18 +304,18 @@ protected Buffer self() { protected XrBindingModificationBaseHeaderKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrBindingModificationBaseHeaderKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrBindingModificationBaseHeaderKHR.ntype(address()); } - /** @return the value of the {@link XrBindingModificationBaseHeaderKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrBindingModificationBaseHeaderKHR.nnext(address()); } - - /** Sets the specified value to the {@link XrBindingModificationBaseHeaderKHR#type} field. */ - public XrBindingModificationBaseHeaderKHR.Buffer type(@NativeType("XrStructureType") int value) { XrBindingModificationBaseHeaderKHR.ntype(address(), value); return this; } - /** Sets the specified value to the {@link XrBindingModificationBaseHeaderKHR#next} field. */ - public XrBindingModificationBaseHeaderKHR.Buffer next(@NativeType("void const *") long value) { XrBindingModificationBaseHeaderKHR.nnext(address(), value); return this; } + + /** @return the value of the {@link XrBindingModificationBaseHeaderKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrBindingModificationBaseHeaderKHR.ntype(address()); } + /** @return the value of the {@link XrBindingModificationBaseHeaderKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrBindingModificationBaseHeaderKHR.nnext(address()); } + + /** Sets the specified value to the {@link XrBindingModificationBaseHeaderKHR#type} field. */ + public XrBindingModificationBaseHeaderKHR.Buffer type(@NativeType("XrStructureType") int value) { XrBindingModificationBaseHeaderKHR.ntype(address(), value); return this; } + /** Sets the specified value to the {@link XrBindingModificationBaseHeaderKHR#next} field. */ + public XrBindingModificationBaseHeaderKHR.Buffer next(@NativeType("void const *") long value) { XrBindingModificationBaseHeaderKHR.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBindingModificationsKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBindingModificationsKHR.java index 93b9bb4e75..2e9e36ab55 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBindingModificationsKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBindingModificationsKHR.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Suggested bindings with binding modification details. * @@ -23,7 +23,7 @@ *
      *
    • The {@link KHRBindingModification XR_KHR_binding_modification} extension must be enabled prior to using {@link XrBindingModificationsKHR}
    • *
    • {@code type} must be {@link KHRBindingModification#XR_TYPE_BINDING_MODIFICATIONS_KHR TYPE_BINDING_MODIFICATIONS_KHR}
    • - *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • + *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • *
    • If {@code bindingModificationCount} is not 0, {@code bindingModifications} must be a pointer to an array of {@code bindingModificationCount} valid {@link XrBindingModificationBaseHeaderKHR}-based structures. See also: {@link XrInteractionProfileAnalogThresholdVALVE}, {@link XrInteractionProfileDpadBindingEXT}
    • *
    * @@ -40,8 +40,8 @@ * uint32_t {@link #bindingModificationCount}; * {@link XrBindingModificationBaseHeaderKHR XrBindingModificationBaseHeaderKHR} const * const * {@link #bindingModifications}; * } - */ -public class XrBindingModificationsKHR extends Struct implements NativeResource { + */ +public class XrBindingModificationsKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,27 +51,27 @@ public class XrBindingModificationsKHR extends Struct /** The struct member offsets. */ public static final int - TYPE, - NEXT, - BINDINGMODIFICATIONCOUNT, - BINDINGMODIFICATIONS; + TYPE, + NEXT, + BINDINGMODIFICATIONCOUNT, + BINDINGMODIFICATIONS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - BINDINGMODIFICATIONCOUNT = layout.offsetof(2); - BINDINGMODIFICATIONS = layout.offsetof(3); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + BINDINGMODIFICATIONCOUNT = layout.offsetof(2); + BINDINGMODIFICATIONS = layout.offsetof(3); + } protected XrBindingModificationsKHR(long address, @Nullable ByteBuffer container) { super(address, container); @@ -94,43 +94,43 @@ public XrBindingModificationsKHR(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** the number of binding modifications in the array pointed to by {@code bindingModifications}. */ - @NativeType("uint32_t") - public int bindingModificationCount() { return nbindingModificationCount(address()); } - /** a pointer to an array of pointers to binding modification structures based on {@link XrBindingModificationBaseHeaderKHR}, that define all of the application’s suggested binding modifications for the specified interaction profile. */ - @Nullable - @NativeType("XrBindingModificationBaseHeaderKHR const * const *") - public PointerBuffer bindingModifications() { return nbindingModifications(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrBindingModificationsKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link KHRBindingModification#XR_TYPE_BINDING_MODIFICATIONS_KHR TYPE_BINDING_MODIFICATIONS_KHR} value to the {@link #type} field. */ - public XrBindingModificationsKHR type$Default() { return type(KHRBindingModification.XR_TYPE_BINDING_MODIFICATIONS_KHR); } - /** Sets the specified value to the {@link #next} field. */ - public XrBindingModificationsKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #bindingModificationCount} field. */ - public XrBindingModificationsKHR bindingModificationCount(@NativeType("uint32_t") int value) { nbindingModificationCount(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@link #bindingModifications} field. */ - public XrBindingModificationsKHR bindingModifications(@Nullable @NativeType("XrBindingModificationBaseHeaderKHR const * const *") PointerBuffer value) { nbindingModifications(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the number of binding modifications in the array pointed to by {@code bindingModifications}. */ + @NativeType("uint32_t") + public int bindingModificationCount() { return nbindingModificationCount(address()); } + /** a pointer to an array of pointers to binding modification structures based on {@link XrBindingModificationBaseHeaderKHR}, that define all of the application’s suggested binding modifications for the specified interaction profile. */ + @Nullable + @NativeType("XrBindingModificationBaseHeaderKHR const * const *") + public PointerBuffer bindingModifications() { return nbindingModifications(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrBindingModificationsKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHRBindingModification#XR_TYPE_BINDING_MODIFICATIONS_KHR TYPE_BINDING_MODIFICATIONS_KHR} value to the {@link #type} field. */ + public XrBindingModificationsKHR type$Default() { return type(KHRBindingModification.XR_TYPE_BINDING_MODIFICATIONS_KHR); } + /** Sets the specified value to the {@link #next} field. */ + public XrBindingModificationsKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #bindingModificationCount} field. */ + public XrBindingModificationsKHR bindingModificationCount(@NativeType("uint32_t") int value) { nbindingModificationCount(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@link #bindingModifications} field. */ + public XrBindingModificationsKHR bindingModifications(@Nullable @NativeType("XrBindingModificationBaseHeaderKHR const * const *") PointerBuffer value) { nbindingModifications(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrBindingModificationsKHR set( - int type, - long next, - int bindingModificationCount, + int type, + long next, + int bindingModificationCount, @Nullable PointerBuffer bindingModifications - ) { - type(type); - next(next); - bindingModificationCount(bindingModificationCount); - bindingModifications(bindingModifications); + ) { + type(type); + next(next); + bindingModificationCount(bindingModificationCount); + bindingModifications(bindingModifications); return this; } @@ -259,26 +259,26 @@ public static XrBindingModificationsKHR.Buffer calloc(int capacity, MemoryStack } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBindingModificationsKHR.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrBindingModificationsKHR.NEXT); } - /** Unsafe version of {@link #bindingModificationCount}. */ - public static int nbindingModificationCount(long struct) { return UNSAFE.getInt(null, struct + XrBindingModificationsKHR.BINDINGMODIFICATIONCOUNT); } - /** Unsafe version of {@link #bindingModifications() bindingModifications}. */ - @Nullable public static PointerBuffer nbindingModifications(long struct) { return memPointerBufferSafe(memGetAddress(struct + XrBindingModificationsKHR.BINDINGMODIFICATIONS), nbindingModificationCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBindingModificationsKHR.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrBindingModificationsKHR.NEXT, value); } - /** Sets the specified value to the {@code bindingModificationCount} field of the specified {@code struct}. */ - public static void nbindingModificationCount(long struct, int value) { UNSAFE.putInt(null, struct + XrBindingModificationsKHR.BINDINGMODIFICATIONCOUNT, value); } - /** Unsafe version of {@link #bindingModifications(PointerBuffer) bindingModifications}. */ - public static void nbindingModifications(long struct, @Nullable PointerBuffer value) { memPutAddress(struct + XrBindingModificationsKHR.BINDINGMODIFICATIONS, memAddressSafe(value)); if (value != null) { nbindingModificationCount(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBindingModificationsKHR.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrBindingModificationsKHR.NEXT); } + /** Unsafe version of {@link #bindingModificationCount}. */ + public static int nbindingModificationCount(long struct) { return UNSAFE.getInt(null, struct + XrBindingModificationsKHR.BINDINGMODIFICATIONCOUNT); } + /** Unsafe version of {@link #bindingModifications() bindingModifications}. */ + @Nullable public static PointerBuffer nbindingModifications(long struct) { return memPointerBufferSafe(memGetAddress(struct + XrBindingModificationsKHR.BINDINGMODIFICATIONS), nbindingModificationCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBindingModificationsKHR.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrBindingModificationsKHR.NEXT, value); } + /** Sets the specified value to the {@code bindingModificationCount} field of the specified {@code struct}. */ + public static void nbindingModificationCount(long struct, int value) { UNSAFE.putInt(null, struct + XrBindingModificationsKHR.BINDINGMODIFICATIONCOUNT, value); } + /** Unsafe version of {@link #bindingModifications(PointerBuffer) bindingModifications}. */ + public static void nbindingModifications(long struct, @Nullable PointerBuffer value) { memPutAddress(struct + XrBindingModificationsKHR.BINDINGMODIFICATIONS, memAddressSafe(value)); if (value != null) { nbindingModificationCount(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrBindingModificationsKHR} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -315,31 +315,31 @@ protected Buffer self() { protected XrBindingModificationsKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrBindingModificationsKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrBindingModificationsKHR.ntype(address()); } - /** @return the value of the {@link XrBindingModificationsKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrBindingModificationsKHR.nnext(address()); } - /** @return the value of the {@link XrBindingModificationsKHR#bindingModificationCount} field. */ - @NativeType("uint32_t") - public int bindingModificationCount() { return XrBindingModificationsKHR.nbindingModificationCount(address()); } - /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrBindingModificationsKHR#bindingModifications} field. */ - @Nullable - @NativeType("XrBindingModificationBaseHeaderKHR const * const *") - public PointerBuffer bindingModifications() { return XrBindingModificationsKHR.nbindingModifications(address()); } - - /** Sets the specified value to the {@link XrBindingModificationsKHR#type} field. */ - public XrBindingModificationsKHR.Buffer type(@NativeType("XrStructureType") int value) { XrBindingModificationsKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRBindingModification#XR_TYPE_BINDING_MODIFICATIONS_KHR TYPE_BINDING_MODIFICATIONS_KHR} value to the {@link XrBindingModificationsKHR#type} field. */ - public XrBindingModificationsKHR.Buffer type$Default() { return type(KHRBindingModification.XR_TYPE_BINDING_MODIFICATIONS_KHR); } - /** Sets the specified value to the {@link XrBindingModificationsKHR#next} field. */ - public XrBindingModificationsKHR.Buffer next(@NativeType("void const *") long value) { XrBindingModificationsKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrBindingModificationsKHR#bindingModificationCount} field. */ - public XrBindingModificationsKHR.Buffer bindingModificationCount(@NativeType("uint32_t") int value) { XrBindingModificationsKHR.nbindingModificationCount(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@link XrBindingModificationsKHR#bindingModifications} field. */ - public XrBindingModificationsKHR.Buffer bindingModifications(@Nullable @NativeType("XrBindingModificationBaseHeaderKHR const * const *") PointerBuffer value) { XrBindingModificationsKHR.nbindingModifications(address(), value); return this; } + + /** @return the value of the {@link XrBindingModificationsKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrBindingModificationsKHR.ntype(address()); } + /** @return the value of the {@link XrBindingModificationsKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrBindingModificationsKHR.nnext(address()); } + /** @return the value of the {@link XrBindingModificationsKHR#bindingModificationCount} field. */ + @NativeType("uint32_t") + public int bindingModificationCount() { return XrBindingModificationsKHR.nbindingModificationCount(address()); } + /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrBindingModificationsKHR#bindingModifications} field. */ + @Nullable + @NativeType("XrBindingModificationBaseHeaderKHR const * const *") + public PointerBuffer bindingModifications() { return XrBindingModificationsKHR.nbindingModifications(address()); } + + /** Sets the specified value to the {@link XrBindingModificationsKHR#type} field. */ + public XrBindingModificationsKHR.Buffer type(@NativeType("XrStructureType") int value) { XrBindingModificationsKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRBindingModification#XR_TYPE_BINDING_MODIFICATIONS_KHR TYPE_BINDING_MODIFICATIONS_KHR} value to the {@link XrBindingModificationsKHR#type} field. */ + public XrBindingModificationsKHR.Buffer type$Default() { return type(KHRBindingModification.XR_TYPE_BINDING_MODIFICATIONS_KHR); } + /** Sets the specified value to the {@link XrBindingModificationsKHR#next} field. */ + public XrBindingModificationsKHR.Buffer next(@NativeType("void const *") long value) { XrBindingModificationsKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrBindingModificationsKHR#bindingModificationCount} field. */ + public XrBindingModificationsKHR.Buffer bindingModificationCount(@NativeType("uint32_t") int value) { XrBindingModificationsKHR.nbindingModificationCount(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@link XrBindingModificationsKHR#bindingModifications} field. */ + public XrBindingModificationsKHR.Buffer bindingModifications(@Nullable @NativeType("XrBindingModificationBaseHeaderKHR const * const *") PointerBuffer value) { XrBindingModificationsKHR.nbindingModifications(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyJointLocationFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyJointLocationFB.java index 5d0edf21ca..c891170d84 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyJointLocationFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyJointLocationFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes the location and radius of a body joint. * @@ -37,8 +37,8 @@ * XrSpaceLocationFlags {@link #locationFlags}; * {@link XrPosef XrPosef} {@link #pose}; * } - */ -public class XrBodyJointLocationFB extends Struct implements NativeResource { + */ +public class XrBodyJointLocationFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,21 +48,21 @@ public class XrBodyJointLocationFB extends Struct impleme /** The struct member offsets. */ public static final int - LOCATIONFLAGS, - POSE; + LOCATIONFLAGS, + POSE; static { - Layout layout = __struct( - __member(8), + Layout layout = __struct( + __member(8), __member(XrPosef.SIZEOF, XrPosef.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - LOCATIONFLAGS = layout.offsetof(0); - POSE = layout.offsetof(1); - } + LOCATIONFLAGS = layout.offsetof(0); + POSE = layout.offsetof(1); + } protected XrBodyJointLocationFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -85,27 +85,27 @@ public XrBodyJointLocationFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** a bitfield, with bit masks defined in {@code XrSpaceLocationFlagBits}, to indicate which members contain valid data. If none of the bits are set, no other fields in this structure should be considered to be valid or meaningful. */ - @NativeType("XrSpaceLocationFlags") - public long locationFlags() { return nlocationFlags(address()); } - /** an {@link XrPosef} defining the position and orientation of the origin of a body joint within the reference frame of the corresponding {@link XrBodyJointsLocateInfoFB}{@code ::baseSpace}. */ - public XrPosef pose() { return npose(address()); } - - /** Sets the specified value to the {@link #locationFlags} field. */ - public XrBodyJointLocationFB locationFlags(@NativeType("XrSpaceLocationFlags") long value) { nlocationFlags(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ - public XrBodyJointLocationFB pose(XrPosef value) { npose(address(), value); return this; } - /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrBodyJointLocationFB pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + + /** a bitfield, with bit masks defined in {@code XrSpaceLocationFlagBits}, to indicate which members contain valid data. If none of the bits are set, no other fields in this structure should be considered to be valid or meaningful. */ + @NativeType("XrSpaceLocationFlags") + public long locationFlags() { return nlocationFlags(address()); } + /** an {@link XrPosef} defining the position and orientation of the origin of a body joint within the reference frame of the corresponding {@link XrBodyJointsLocateInfoFB}{@code ::baseSpace}. */ + public XrPosef pose() { return npose(address()); } + + /** Sets the specified value to the {@link #locationFlags} field. */ + public XrBodyJointLocationFB locationFlags(@NativeType("XrSpaceLocationFlags") long value) { nlocationFlags(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrBodyJointLocationFB pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrBodyJointLocationFB pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } /** Initializes this struct with the specified values. */ public XrBodyJointLocationFB set( - long locationFlags, + long locationFlags, XrPosef pose - ) { - locationFlags(locationFlags); - pose(pose); + ) { + locationFlags(locationFlags); + pose(pose); return this; } @@ -234,18 +234,18 @@ public static XrBodyJointLocationFB.Buffer calloc(int capacity, MemoryStack stac } // ----------------------------------- - - /** Unsafe version of {@link #locationFlags}. */ - public static long nlocationFlags(long struct) { return UNSAFE.getLong(null, struct + XrBodyJointLocationFB.LOCATIONFLAGS); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrBodyJointLocationFB.POSE); } - - /** Unsafe version of {@link #locationFlags(long) locationFlags}. */ - public static void nlocationFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrBodyJointLocationFB.LOCATIONFLAGS, value); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrBodyJointLocationFB.POSE, XrPosef.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #locationFlags}. */ + public static long nlocationFlags(long struct) { return UNSAFE.getLong(null, struct + XrBodyJointLocationFB.LOCATIONFLAGS); } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrBodyJointLocationFB.POSE); } + + /** Unsafe version of {@link #locationFlags(long) locationFlags}. */ + public static void nlocationFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrBodyJointLocationFB.LOCATIONFLAGS, value); } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrBodyJointLocationFB.POSE, XrPosef.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrBodyJointLocationFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -282,19 +282,19 @@ protected Buffer self() { protected XrBodyJointLocationFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrBodyJointLocationFB#locationFlags} field. */ - @NativeType("XrSpaceLocationFlags") - public long locationFlags() { return XrBodyJointLocationFB.nlocationFlags(address()); } - /** @return a {@link XrPosef} view of the {@link XrBodyJointLocationFB#pose} field. */ - public XrPosef pose() { return XrBodyJointLocationFB.npose(address()); } - - /** Sets the specified value to the {@link XrBodyJointLocationFB#locationFlags} field. */ - public XrBodyJointLocationFB.Buffer locationFlags(@NativeType("XrSpaceLocationFlags") long value) { XrBodyJointLocationFB.nlocationFlags(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrBodyJointLocationFB#pose} field. */ - public XrBodyJointLocationFB.Buffer pose(XrPosef value) { XrBodyJointLocationFB.npose(address(), value); return this; } - /** Passes the {@link XrBodyJointLocationFB#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrBodyJointLocationFB.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + + /** @return the value of the {@link XrBodyJointLocationFB#locationFlags} field. */ + @NativeType("XrSpaceLocationFlags") + public long locationFlags() { return XrBodyJointLocationFB.nlocationFlags(address()); } + /** @return a {@link XrPosef} view of the {@link XrBodyJointLocationFB#pose} field. */ + public XrPosef pose() { return XrBodyJointLocationFB.npose(address()); } + + /** Sets the specified value to the {@link XrBodyJointLocationFB#locationFlags} field. */ + public XrBodyJointLocationFB.Buffer locationFlags(@NativeType("XrSpaceLocationFlags") long value) { XrBodyJointLocationFB.nlocationFlags(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrBodyJointLocationFB#pose} field. */ + public XrBodyJointLocationFB.Buffer pose(XrPosef value) { XrBodyJointLocationFB.npose(address(), value); return this; } + /** Passes the {@link XrBodyJointLocationFB#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrBodyJointLocationFB.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyJointLocationsFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyJointLocationsFB.java index 46bee8ac3c..ab20474bac 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyJointLocationsFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyJointLocationsFB.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Returns the body joint locations. * @@ -36,7 +36,7 @@ *
      *
    • The {@link FBBodyTracking XR_FB_body_tracking} extension must be enabled prior to using {@link XrBodyJointLocationsFB}
    • *
    • {@code type} must be {@link FBBodyTracking#XR_TYPE_BODY_JOINT_LOCATIONS_FB TYPE_BODY_JOINT_LOCATIONS_FB}
    • - *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • + *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • *
    • {@code jointLocations} must be a pointer to an array of {@code jointCount} {@link XrBodyJointLocationFB} structures
    • *
    • The {@code jointCount} parameter must be greater than 0
    • *
    @@ -58,8 +58,8 @@ * uint32_t {@link #skeletonChangedCount}; * XrTime {@link #time}; * } - */ -public class XrBodyJointLocationsFB extends Struct implements NativeResource { + */ +public class XrBodyJointLocationsFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -69,39 +69,39 @@ public class XrBodyJointLocationsFB extends Struct imple /** The struct member offsets. */ public static final int - TYPE, - NEXT, - ISACTIVE, - CONFIDENCE, - JOINTCOUNT, - JOINTLOCATIONS, - SKELETONCHANGEDCOUNT, - TIME; + TYPE, + NEXT, + ISACTIVE, + CONFIDENCE, + JOINTCOUNT, + JOINTLOCATIONS, + SKELETONCHANGEDCOUNT, + TIME; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), - __member(4), - __member(POINTER_SIZE), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), + __member(4), + __member(POINTER_SIZE), + __member(4), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - ISACTIVE = layout.offsetof(2); - CONFIDENCE = layout.offsetof(3); - JOINTCOUNT = layout.offsetof(4); - JOINTLOCATIONS = layout.offsetof(5); - SKELETONCHANGEDCOUNT = layout.offsetof(6); - TIME = layout.offsetof(7); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + ISACTIVE = layout.offsetof(2); + CONFIDENCE = layout.offsetof(3); + JOINTCOUNT = layout.offsetof(4); + JOINTLOCATIONS = layout.offsetof(5); + SKELETONCHANGEDCOUNT = layout.offsetof(6); + TIME = layout.offsetof(7); + } protected XrBodyJointLocationsFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -124,65 +124,65 @@ public XrBodyJointLocationsFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** an {@code XrBool32} indicating if the body tracker is actively tracking. */ - @NativeType("XrBool32") - public boolean isActive() { return nisActive(address()) != 0; } - /** a {@code float} between 0 and 1 which represents the confidence for the returned body pose. A value of 0 means there is no confidence in the pose returned, and a value of 1 means maximum confidence in the returned body pose. */ - public float confidence() { return nconfidence(address()); } - /** a {@code uint32_t} describing the count of elements in {@code jointLocations} array. */ - @NativeType("uint32_t") - public int jointCount() { return njointCount(address()); } - /** an application-allocated array of {@link XrBodyJointLocationFB} that will be filled with joint locations. */ - @NativeType("XrBodyJointLocationFB *") - public XrBodyJointLocationFB.Buffer jointLocations() { return njointLocations(address()); } - /** an output {@code uint32_t} incremental counter indicating that the skeleton scale proportions have changed. {@link FBBodyTracking#xrGetBodySkeletonFB GetBodySkeletonFB} can be called when this counter increases to get the latest body proportions/scale. */ - @NativeType("uint32_t") - public int skeletonChangedCount() { return nskeletonChangedCount(address()); } - /** an {@code XrTime} time at which the returned joints are tracked. Equals the time at which the joints were requested if the interpolation at the time was successful. */ - @NativeType("XrTime") - public long time() { return ntime(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrBodyJointLocationsFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_JOINT_LOCATIONS_FB TYPE_BODY_JOINT_LOCATIONS_FB} value to the {@link #type} field. */ - public XrBodyJointLocationsFB type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_JOINT_LOCATIONS_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrBodyJointLocationsFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #isActive} field. */ - public XrBodyJointLocationsFB isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link #confidence} field. */ - public XrBodyJointLocationsFB confidence(float value) { nconfidence(address(), value); return this; } - /** Sets the address of the specified {@link XrBodyJointLocationFB.Buffer} to the {@link #jointLocations} field. */ - public XrBodyJointLocationsFB jointLocations(@NativeType("XrBodyJointLocationFB *") XrBodyJointLocationFB.Buffer value) { njointLocations(address(), value); return this; } - /** Sets the specified value to the {@link #skeletonChangedCount} field. */ - public XrBodyJointLocationsFB skeletonChangedCount(@NativeType("uint32_t") int value) { nskeletonChangedCount(address(), value); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrBodyJointLocationsFB time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** an {@code XrBool32} indicating if the body tracker is actively tracking. */ + @NativeType("XrBool32") + public boolean isActive() { return nisActive(address()) != 0; } + /** a {@code float} between 0 and 1 which represents the confidence for the returned body pose. A value of 0 means there is no confidence in the pose returned, and a value of 1 means maximum confidence in the returned body pose. */ + public float confidence() { return nconfidence(address()); } + /** a {@code uint32_t} describing the count of elements in {@code jointLocations} array. */ + @NativeType("uint32_t") + public int jointCount() { return njointCount(address()); } + /** an application-allocated array of {@link XrBodyJointLocationFB} that will be filled with joint locations. */ + @NativeType("XrBodyJointLocationFB *") + public XrBodyJointLocationFB.Buffer jointLocations() { return njointLocations(address()); } + /** an output {@code uint32_t} incremental counter indicating that the skeleton scale proportions have changed. {@link FBBodyTracking#xrGetBodySkeletonFB GetBodySkeletonFB} can be called when this counter increases to get the latest body proportions/scale. */ + @NativeType("uint32_t") + public int skeletonChangedCount() { return nskeletonChangedCount(address()); } + /** an {@code XrTime} time at which the returned joints are tracked. Equals the time at which the joints were requested if the interpolation at the time was successful. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrBodyJointLocationsFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_JOINT_LOCATIONS_FB TYPE_BODY_JOINT_LOCATIONS_FB} value to the {@link #type} field. */ + public XrBodyJointLocationsFB type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_JOINT_LOCATIONS_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrBodyJointLocationsFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #isActive} field. */ + public XrBodyJointLocationsFB isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link #confidence} field. */ + public XrBodyJointLocationsFB confidence(float value) { nconfidence(address(), value); return this; } + /** Sets the address of the specified {@link XrBodyJointLocationFB.Buffer} to the {@link #jointLocations} field. */ + public XrBodyJointLocationsFB jointLocations(@NativeType("XrBodyJointLocationFB *") XrBodyJointLocationFB.Buffer value) { njointLocations(address(), value); return this; } + /** Sets the specified value to the {@link #skeletonChangedCount} field. */ + public XrBodyJointLocationsFB skeletonChangedCount(@NativeType("uint32_t") int value) { nskeletonChangedCount(address(), value); return this; } + /** Sets the specified value to the {@link #time} field. */ + public XrBodyJointLocationsFB time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrBodyJointLocationsFB set( - int type, - long next, - boolean isActive, - float confidence, - XrBodyJointLocationFB.Buffer jointLocations, - int skeletonChangedCount, + int type, + long next, + boolean isActive, + float confidence, + XrBodyJointLocationFB.Buffer jointLocations, + int skeletonChangedCount, long time - ) { - type(type); - next(next); - isActive(isActive); - confidence(confidence); - jointLocations(jointLocations); - skeletonChangedCount(skeletonChangedCount); - time(time); + ) { + type(type); + next(next); + isActive(isActive); + confidence(confidence); + jointLocations(jointLocations); + skeletonChangedCount(skeletonChangedCount); + time(time); return this; } @@ -311,40 +311,40 @@ public static XrBodyJointLocationsFB.Buffer calloc(int capacity, MemoryStack sta } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBodyJointLocationsFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrBodyJointLocationsFB.NEXT); } - /** Unsafe version of {@link #isActive}. */ - public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrBodyJointLocationsFB.ISACTIVE); } - /** Unsafe version of {@link #confidence}. */ - public static float nconfidence(long struct) { return UNSAFE.getFloat(null, struct + XrBodyJointLocationsFB.CONFIDENCE); } - /** Unsafe version of {@link #jointCount}. */ - public static int njointCount(long struct) { return UNSAFE.getInt(null, struct + XrBodyJointLocationsFB.JOINTCOUNT); } - /** Unsafe version of {@link #jointLocations}. */ - public static XrBodyJointLocationFB.Buffer njointLocations(long struct) { return XrBodyJointLocationFB.create(memGetAddress(struct + XrBodyJointLocationsFB.JOINTLOCATIONS), njointCount(struct)); } - /** Unsafe version of {@link #skeletonChangedCount}. */ - public static int nskeletonChangedCount(long struct) { return UNSAFE.getInt(null, struct + XrBodyJointLocationsFB.SKELETONCHANGEDCOUNT); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrBodyJointLocationsFB.TIME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyJointLocationsFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrBodyJointLocationsFB.NEXT, value); } - /** Unsafe version of {@link #isActive(boolean) isActive}. */ - public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyJointLocationsFB.ISACTIVE, value); } - /** Unsafe version of {@link #confidence(float) confidence}. */ - public static void nconfidence(long struct, float value) { UNSAFE.putFloat(null, struct + XrBodyJointLocationsFB.CONFIDENCE, value); } - /** Sets the specified value to the {@code jointCount} field of the specified {@code struct}. */ - public static void njointCount(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyJointLocationsFB.JOINTCOUNT, value); } - /** Unsafe version of {@link #jointLocations(XrBodyJointLocationFB.Buffer) jointLocations}. */ - public static void njointLocations(long struct, XrBodyJointLocationFB.Buffer value) { memPutAddress(struct + XrBodyJointLocationsFB.JOINTLOCATIONS, value.address()); njointCount(struct, value.remaining()); } - /** Unsafe version of {@link #skeletonChangedCount(int) skeletonChangedCount}. */ - public static void nskeletonChangedCount(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyJointLocationsFB.SKELETONCHANGEDCOUNT, value); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrBodyJointLocationsFB.TIME, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBodyJointLocationsFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrBodyJointLocationsFB.NEXT); } + /** Unsafe version of {@link #isActive}. */ + public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrBodyJointLocationsFB.ISACTIVE); } + /** Unsafe version of {@link #confidence}. */ + public static float nconfidence(long struct) { return UNSAFE.getFloat(null, struct + XrBodyJointLocationsFB.CONFIDENCE); } + /** Unsafe version of {@link #jointCount}. */ + public static int njointCount(long struct) { return UNSAFE.getInt(null, struct + XrBodyJointLocationsFB.JOINTCOUNT); } + /** Unsafe version of {@link #jointLocations}. */ + public static XrBodyJointLocationFB.Buffer njointLocations(long struct) { return XrBodyJointLocationFB.create(memGetAddress(struct + XrBodyJointLocationsFB.JOINTLOCATIONS), njointCount(struct)); } + /** Unsafe version of {@link #skeletonChangedCount}. */ + public static int nskeletonChangedCount(long struct) { return UNSAFE.getInt(null, struct + XrBodyJointLocationsFB.SKELETONCHANGEDCOUNT); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrBodyJointLocationsFB.TIME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyJointLocationsFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrBodyJointLocationsFB.NEXT, value); } + /** Unsafe version of {@link #isActive(boolean) isActive}. */ + public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyJointLocationsFB.ISACTIVE, value); } + /** Unsafe version of {@link #confidence(float) confidence}. */ + public static void nconfidence(long struct, float value) { UNSAFE.putFloat(null, struct + XrBodyJointLocationsFB.CONFIDENCE, value); } + /** Sets the specified value to the {@code jointCount} field of the specified {@code struct}. */ + public static void njointCount(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyJointLocationsFB.JOINTCOUNT, value); } + /** Unsafe version of {@link #jointLocations(XrBodyJointLocationFB.Buffer) jointLocations}. */ + public static void njointLocations(long struct, XrBodyJointLocationFB.Buffer value) { memPutAddress(struct + XrBodyJointLocationsFB.JOINTLOCATIONS, value.address()); njointCount(struct, value.remaining()); } + /** Unsafe version of {@link #skeletonChangedCount(int) skeletonChangedCount}. */ + public static void nskeletonChangedCount(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyJointLocationsFB.SKELETONCHANGEDCOUNT, value); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrBodyJointLocationsFB.TIME, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -353,9 +353,9 @@ public static XrBodyJointLocationsFB.Buffer calloc(int capacity, MemoryStack sta */ public static void validate(long struct) { check(memGetAddress(struct + XrBodyJointLocationsFB.JOINTLOCATIONS)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrBodyJointLocationsFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -392,47 +392,47 @@ protected Buffer self() { protected XrBodyJointLocationsFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrBodyJointLocationsFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrBodyJointLocationsFB.ntype(address()); } - /** @return the value of the {@link XrBodyJointLocationsFB#next} field. */ - @NativeType("void *") - public long next() { return XrBodyJointLocationsFB.nnext(address()); } - /** @return the value of the {@link XrBodyJointLocationsFB#isActive} field. */ - @NativeType("XrBool32") - public boolean isActive() { return XrBodyJointLocationsFB.nisActive(address()) != 0; } - /** @return the value of the {@link XrBodyJointLocationsFB#confidence} field. */ - public float confidence() { return XrBodyJointLocationsFB.nconfidence(address()); } - /** @return the value of the {@link XrBodyJointLocationsFB#jointCount} field. */ - @NativeType("uint32_t") - public int jointCount() { return XrBodyJointLocationsFB.njointCount(address()); } - /** @return a {@link XrBodyJointLocationFB.Buffer} view of the struct array pointed to by the {@link XrBodyJointLocationsFB#jointLocations} field. */ - @NativeType("XrBodyJointLocationFB *") - public XrBodyJointLocationFB.Buffer jointLocations() { return XrBodyJointLocationsFB.njointLocations(address()); } - /** @return the value of the {@link XrBodyJointLocationsFB#skeletonChangedCount} field. */ - @NativeType("uint32_t") - public int skeletonChangedCount() { return XrBodyJointLocationsFB.nskeletonChangedCount(address()); } - /** @return the value of the {@link XrBodyJointLocationsFB#time} field. */ - @NativeType("XrTime") - public long time() { return XrBodyJointLocationsFB.ntime(address()); } - - /** Sets the specified value to the {@link XrBodyJointLocationsFB#type} field. */ - public XrBodyJointLocationsFB.Buffer type(@NativeType("XrStructureType") int value) { XrBodyJointLocationsFB.ntype(address(), value); return this; } - /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_JOINT_LOCATIONS_FB TYPE_BODY_JOINT_LOCATIONS_FB} value to the {@link XrBodyJointLocationsFB#type} field. */ - public XrBodyJointLocationsFB.Buffer type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_JOINT_LOCATIONS_FB); } - /** Sets the specified value to the {@link XrBodyJointLocationsFB#next} field. */ - public XrBodyJointLocationsFB.Buffer next(@NativeType("void *") long value) { XrBodyJointLocationsFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrBodyJointLocationsFB#isActive} field. */ - public XrBodyJointLocationsFB.Buffer isActive(@NativeType("XrBool32") boolean value) { XrBodyJointLocationsFB.nisActive(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link XrBodyJointLocationsFB#confidence} field. */ - public XrBodyJointLocationsFB.Buffer confidence(float value) { XrBodyJointLocationsFB.nconfidence(address(), value); return this; } - /** Sets the address of the specified {@link XrBodyJointLocationFB.Buffer} to the {@link XrBodyJointLocationsFB#jointLocations} field. */ - public XrBodyJointLocationsFB.Buffer jointLocations(@NativeType("XrBodyJointLocationFB *") XrBodyJointLocationFB.Buffer value) { XrBodyJointLocationsFB.njointLocations(address(), value); return this; } - /** Sets the specified value to the {@link XrBodyJointLocationsFB#skeletonChangedCount} field. */ - public XrBodyJointLocationsFB.Buffer skeletonChangedCount(@NativeType("uint32_t") int value) { XrBodyJointLocationsFB.nskeletonChangedCount(address(), value); return this; } - /** Sets the specified value to the {@link XrBodyJointLocationsFB#time} field. */ - public XrBodyJointLocationsFB.Buffer time(@NativeType("XrTime") long value) { XrBodyJointLocationsFB.ntime(address(), value); return this; } + + /** @return the value of the {@link XrBodyJointLocationsFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrBodyJointLocationsFB.ntype(address()); } + /** @return the value of the {@link XrBodyJointLocationsFB#next} field. */ + @NativeType("void *") + public long next() { return XrBodyJointLocationsFB.nnext(address()); } + /** @return the value of the {@link XrBodyJointLocationsFB#isActive} field. */ + @NativeType("XrBool32") + public boolean isActive() { return XrBodyJointLocationsFB.nisActive(address()) != 0; } + /** @return the value of the {@link XrBodyJointLocationsFB#confidence} field. */ + public float confidence() { return XrBodyJointLocationsFB.nconfidence(address()); } + /** @return the value of the {@link XrBodyJointLocationsFB#jointCount} field. */ + @NativeType("uint32_t") + public int jointCount() { return XrBodyJointLocationsFB.njointCount(address()); } + /** @return a {@link XrBodyJointLocationFB.Buffer} view of the struct array pointed to by the {@link XrBodyJointLocationsFB#jointLocations} field. */ + @NativeType("XrBodyJointLocationFB *") + public XrBodyJointLocationFB.Buffer jointLocations() { return XrBodyJointLocationsFB.njointLocations(address()); } + /** @return the value of the {@link XrBodyJointLocationsFB#skeletonChangedCount} field. */ + @NativeType("uint32_t") + public int skeletonChangedCount() { return XrBodyJointLocationsFB.nskeletonChangedCount(address()); } + /** @return the value of the {@link XrBodyJointLocationsFB#time} field. */ + @NativeType("XrTime") + public long time() { return XrBodyJointLocationsFB.ntime(address()); } + + /** Sets the specified value to the {@link XrBodyJointLocationsFB#type} field. */ + public XrBodyJointLocationsFB.Buffer type(@NativeType("XrStructureType") int value) { XrBodyJointLocationsFB.ntype(address(), value); return this; } + /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_JOINT_LOCATIONS_FB TYPE_BODY_JOINT_LOCATIONS_FB} value to the {@link XrBodyJointLocationsFB#type} field. */ + public XrBodyJointLocationsFB.Buffer type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_JOINT_LOCATIONS_FB); } + /** Sets the specified value to the {@link XrBodyJointLocationsFB#next} field. */ + public XrBodyJointLocationsFB.Buffer next(@NativeType("void *") long value) { XrBodyJointLocationsFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrBodyJointLocationsFB#isActive} field. */ + public XrBodyJointLocationsFB.Buffer isActive(@NativeType("XrBool32") boolean value) { XrBodyJointLocationsFB.nisActive(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link XrBodyJointLocationsFB#confidence} field. */ + public XrBodyJointLocationsFB.Buffer confidence(float value) { XrBodyJointLocationsFB.nconfidence(address(), value); return this; } + /** Sets the address of the specified {@link XrBodyJointLocationFB.Buffer} to the {@link XrBodyJointLocationsFB#jointLocations} field. */ + public XrBodyJointLocationsFB.Buffer jointLocations(@NativeType("XrBodyJointLocationFB *") XrBodyJointLocationFB.Buffer value) { XrBodyJointLocationsFB.njointLocations(address(), value); return this; } + /** Sets the specified value to the {@link XrBodyJointLocationsFB#skeletonChangedCount} field. */ + public XrBodyJointLocationsFB.Buffer skeletonChangedCount(@NativeType("uint32_t") int value) { XrBodyJointLocationsFB.nskeletonChangedCount(address(), value); return this; } + /** Sets the specified value to the {@link XrBodyJointLocationsFB#time} field. */ + public XrBodyJointLocationsFB.Buffer time(@NativeType("XrTime") long value) { XrBodyJointLocationsFB.ntime(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyJointsLocateInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyJointsLocateInfoFB.java index 2a232e9865..b4d26b809e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyJointsLocateInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyJointsLocateInfoFB.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes the information to locate body joints. * @@ -28,7 +28,7 @@ *
      *
    • The {@link FBBodyTracking XR_FB_body_tracking} extension must be enabled prior to using {@link XrBodyJointsLocateInfoFB}
    • *
    • {@code type} must be {@link FBBodyTracking#XR_TYPE_BODY_JOINTS_LOCATE_INFO_FB TYPE_BODY_JOINTS_LOCATE_INFO_FB}
    • - *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • + *
    • {@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
    • *
    * @@ -45,8 +45,8 @@ * XrSpace {@link #baseSpace}; * XrTime {@link #time}; * } - */ -public class XrBodyJointsLocateInfoFB extends Struct implements NativeResource { + */ +public class XrBodyJointsLocateInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,27 +56,27 @@ public class XrBodyJointsLocateInfoFB extends Struct i /** The struct member offsets. */ public static final int - TYPE, - NEXT, - BASESPACE, - TIME; + TYPE, + NEXT, + BASESPACE, + TIME; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - BASESPACE = layout.offsetof(2); - TIME = layout.offsetof(3); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + BASESPACE = layout.offsetof(2); + TIME = layout.offsetof(3); + } protected XrBodyJointsLocateInfoFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -99,42 +99,42 @@ public XrBodyJointsLocateInfoFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** an {@code XrSpace} within which the returned body joint locations will be represented. */ - @NativeType("XrSpace") - public long baseSpace() { return nbaseSpace(address()); } - /** an {@code XrTime} at which to locate the body joints. */ - @NativeType("XrTime") - public long time() { return ntime(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrBodyJointsLocateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_JOINTS_LOCATE_INFO_FB TYPE_BODY_JOINTS_LOCATE_INFO_FB} value to the {@link #type} field. */ - public XrBodyJointsLocateInfoFB type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_JOINTS_LOCATE_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrBodyJointsLocateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #baseSpace} field. */ - public XrBodyJointsLocateInfoFB baseSpace(XrSpace value) { nbaseSpace(address(), value); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrBodyJointsLocateInfoFB time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** an {@code XrSpace} within which the returned body joint locations will be represented. */ + @NativeType("XrSpace") + public long baseSpace() { return nbaseSpace(address()); } + /** an {@code XrTime} at which to locate the body joints. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrBodyJointsLocateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_JOINTS_LOCATE_INFO_FB TYPE_BODY_JOINTS_LOCATE_INFO_FB} value to the {@link #type} field. */ + public XrBodyJointsLocateInfoFB type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_JOINTS_LOCATE_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrBodyJointsLocateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #baseSpace} field. */ + public XrBodyJointsLocateInfoFB baseSpace(XrSpace value) { nbaseSpace(address(), value); return this; } + /** Sets the specified value to the {@link #time} field. */ + public XrBodyJointsLocateInfoFB time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrBodyJointsLocateInfoFB set( - int type, - long next, - XrSpace baseSpace, + int type, + long next, + XrSpace baseSpace, long time - ) { - type(type); - next(next); - baseSpace(baseSpace); - time(time); + ) { + type(type); + next(next); + baseSpace(baseSpace); + time(time); return this; } @@ -263,24 +263,24 @@ public static XrBodyJointsLocateInfoFB.Buffer calloc(int capacity, MemoryStack s } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBodyJointsLocateInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrBodyJointsLocateInfoFB.NEXT); } - /** Unsafe version of {@link #baseSpace}. */ - public static long nbaseSpace(long struct) { return memGetAddress(struct + XrBodyJointsLocateInfoFB.BASESPACE); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrBodyJointsLocateInfoFB.TIME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyJointsLocateInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrBodyJointsLocateInfoFB.NEXT, value); } - /** Unsafe version of {@link #baseSpace(XrSpace) baseSpace}. */ - public static void nbaseSpace(long struct, XrSpace value) { memPutAddress(struct + XrBodyJointsLocateInfoFB.BASESPACE, value.address()); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrBodyJointsLocateInfoFB.TIME, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBodyJointsLocateInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrBodyJointsLocateInfoFB.NEXT); } + /** Unsafe version of {@link #baseSpace}. */ + public static long nbaseSpace(long struct) { return memGetAddress(struct + XrBodyJointsLocateInfoFB.BASESPACE); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrBodyJointsLocateInfoFB.TIME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyJointsLocateInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrBodyJointsLocateInfoFB.NEXT, value); } + /** Unsafe version of {@link #baseSpace(XrSpace) baseSpace}. */ + public static void nbaseSpace(long struct, XrSpace value) { memPutAddress(struct + XrBodyJointsLocateInfoFB.BASESPACE, value.address()); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrBodyJointsLocateInfoFB.TIME, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -289,9 +289,9 @@ public static XrBodyJointsLocateInfoFB.Buffer calloc(int capacity, MemoryStack s */ public static void validate(long struct) { check(memGetAddress(struct + XrBodyJointsLocateInfoFB.BASESPACE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrBodyJointsLocateInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -328,30 +328,30 @@ protected Buffer self() { protected XrBodyJointsLocateInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrBodyJointsLocateInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrBodyJointsLocateInfoFB.ntype(address()); } - /** @return the value of the {@link XrBodyJointsLocateInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrBodyJointsLocateInfoFB.nnext(address()); } - /** @return the value of the {@link XrBodyJointsLocateInfoFB#baseSpace} field. */ - @NativeType("XrSpace") - public long baseSpace() { return XrBodyJointsLocateInfoFB.nbaseSpace(address()); } - /** @return the value of the {@link XrBodyJointsLocateInfoFB#time} field. */ - @NativeType("XrTime") - public long time() { return XrBodyJointsLocateInfoFB.ntime(address()); } - - /** Sets the specified value to the {@link XrBodyJointsLocateInfoFB#type} field. */ - public XrBodyJointsLocateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrBodyJointsLocateInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_JOINTS_LOCATE_INFO_FB TYPE_BODY_JOINTS_LOCATE_INFO_FB} value to the {@link XrBodyJointsLocateInfoFB#type} field. */ - public XrBodyJointsLocateInfoFB.Buffer type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_JOINTS_LOCATE_INFO_FB); } - /** Sets the specified value to the {@link XrBodyJointsLocateInfoFB#next} field. */ - public XrBodyJointsLocateInfoFB.Buffer next(@NativeType("void const *") long value) { XrBodyJointsLocateInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrBodyJointsLocateInfoFB#baseSpace} field. */ - public XrBodyJointsLocateInfoFB.Buffer baseSpace(XrSpace value) { XrBodyJointsLocateInfoFB.nbaseSpace(address(), value); return this; } - /** Sets the specified value to the {@link XrBodyJointsLocateInfoFB#time} field. */ - public XrBodyJointsLocateInfoFB.Buffer time(@NativeType("XrTime") long value) { XrBodyJointsLocateInfoFB.ntime(address(), value); return this; } + + /** @return the value of the {@link XrBodyJointsLocateInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrBodyJointsLocateInfoFB.ntype(address()); } + /** @return the value of the {@link XrBodyJointsLocateInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrBodyJointsLocateInfoFB.nnext(address()); } + /** @return the value of the {@link XrBodyJointsLocateInfoFB#baseSpace} field. */ + @NativeType("XrSpace") + public long baseSpace() { return XrBodyJointsLocateInfoFB.nbaseSpace(address()); } + /** @return the value of the {@link XrBodyJointsLocateInfoFB#time} field. */ + @NativeType("XrTime") + public long time() { return XrBodyJointsLocateInfoFB.ntime(address()); } + + /** Sets the specified value to the {@link XrBodyJointsLocateInfoFB#type} field. */ + public XrBodyJointsLocateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrBodyJointsLocateInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_JOINTS_LOCATE_INFO_FB TYPE_BODY_JOINTS_LOCATE_INFO_FB} value to the {@link XrBodyJointsLocateInfoFB#type} field. */ + public XrBodyJointsLocateInfoFB.Buffer type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_JOINTS_LOCATE_INFO_FB); } + /** Sets the specified value to the {@link XrBodyJointsLocateInfoFB#next} field. */ + public XrBodyJointsLocateInfoFB.Buffer next(@NativeType("void const *") long value) { XrBodyJointsLocateInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrBodyJointsLocateInfoFB#baseSpace} field. */ + public XrBodyJointsLocateInfoFB.Buffer baseSpace(XrSpace value) { XrBodyJointsLocateInfoFB.nbaseSpace(address(), value); return this; } + /** Sets the specified value to the {@link XrBodyJointsLocateInfoFB#time} field. */ + public XrBodyJointsLocateInfoFB.Buffer time(@NativeType("XrTime") long value) { XrBodyJointsLocateInfoFB.ntime(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodySkeletonFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodySkeletonFB.java index 7afa5a65d8..daa5d70e33 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodySkeletonFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodySkeletonFB.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Returns the body skeleton hierarchy. * @@ -30,7 +30,7 @@ *
      *
    • The {@link FBBodyTracking XR_FB_body_tracking} extension must be enabled prior to using {@link XrBodySkeletonFB}
    • *
    • {@code type} must be {@link FBBodyTracking#XR_TYPE_BODY_SKELETON_FB TYPE_BODY_SKELETON_FB}
    • - *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • + *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • *
    • {@code joints} must be a pointer to an array of {@code jointCount} {@link XrBodySkeletonJointFB} structures
    • *
    • The {@code jointCount} parameter must be greater than 0
    • *
    @@ -48,8 +48,8 @@ * uint32_t {@link #jointCount}; * {@link XrBodySkeletonJointFB XrBodySkeletonJointFB} * {@link #joints}; * } - */ -public class XrBodySkeletonFB extends Struct implements NativeResource { + */ +public class XrBodySkeletonFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -59,27 +59,27 @@ public class XrBodySkeletonFB extends Struct implements Native /** The struct member offsets. */ public static final int - TYPE, - NEXT, - JOINTCOUNT, - JOINTS; + TYPE, + NEXT, + JOINTCOUNT, + JOINTS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - JOINTCOUNT = layout.offsetof(2); - JOINTS = layout.offsetof(3); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + JOINTCOUNT = layout.offsetof(2); + JOINTS = layout.offsetof(3); + } protected XrBodySkeletonFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -102,38 +102,38 @@ public XrBodySkeletonFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** an {@code uint32_t} describing the count of elements in {@code joints} array. */ - @NativeType("uint32_t") - public int jointCount() { return njointCount(address()); } - /** an application-allocated array of {@link XrBodySkeletonJointFB} that will be filled with skeleton joint elements. */ - @NativeType("XrBodySkeletonJointFB *") - public XrBodySkeletonJointFB.Buffer joints() { return njoints(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrBodySkeletonFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_SKELETON_FB TYPE_BODY_SKELETON_FB} value to the {@link #type} field. */ - public XrBodySkeletonFB type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_SKELETON_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrBodySkeletonFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the address of the specified {@link XrBodySkeletonJointFB.Buffer} to the {@link #joints} field. */ - public XrBodySkeletonFB joints(@NativeType("XrBodySkeletonJointFB *") XrBodySkeletonJointFB.Buffer value) { njoints(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** an {@code uint32_t} describing the count of elements in {@code joints} array. */ + @NativeType("uint32_t") + public int jointCount() { return njointCount(address()); } + /** an application-allocated array of {@link XrBodySkeletonJointFB} that will be filled with skeleton joint elements. */ + @NativeType("XrBodySkeletonJointFB *") + public XrBodySkeletonJointFB.Buffer joints() { return njoints(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrBodySkeletonFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_SKELETON_FB TYPE_BODY_SKELETON_FB} value to the {@link #type} field. */ + public XrBodySkeletonFB type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_SKELETON_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrBodySkeletonFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the address of the specified {@link XrBodySkeletonJointFB.Buffer} to the {@link #joints} field. */ + public XrBodySkeletonFB joints(@NativeType("XrBodySkeletonJointFB *") XrBodySkeletonJointFB.Buffer value) { njoints(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrBodySkeletonFB set( - int type, - long next, + int type, + long next, XrBodySkeletonJointFB.Buffer joints - ) { - type(type); - next(next); - joints(joints); + ) { + type(type); + next(next); + joints(joints); return this; } @@ -262,24 +262,24 @@ public static XrBodySkeletonFB.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBodySkeletonFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrBodySkeletonFB.NEXT); } - /** Unsafe version of {@link #jointCount}. */ - public static int njointCount(long struct) { return UNSAFE.getInt(null, struct + XrBodySkeletonFB.JOINTCOUNT); } - /** Unsafe version of {@link #joints}. */ - public static XrBodySkeletonJointFB.Buffer njoints(long struct) { return XrBodySkeletonJointFB.create(memGetAddress(struct + XrBodySkeletonFB.JOINTS), njointCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBodySkeletonFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrBodySkeletonFB.NEXT, value); } - /** Sets the specified value to the {@code jointCount} field of the specified {@code struct}. */ - public static void njointCount(long struct, int value) { UNSAFE.putInt(null, struct + XrBodySkeletonFB.JOINTCOUNT, value); } - /** Unsafe version of {@link #joints(XrBodySkeletonJointFB.Buffer) joints}. */ - public static void njoints(long struct, XrBodySkeletonJointFB.Buffer value) { memPutAddress(struct + XrBodySkeletonFB.JOINTS, value.address()); njointCount(struct, value.remaining()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBodySkeletonFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrBodySkeletonFB.NEXT); } + /** Unsafe version of {@link #jointCount}. */ + public static int njointCount(long struct) { return UNSAFE.getInt(null, struct + XrBodySkeletonFB.JOINTCOUNT); } + /** Unsafe version of {@link #joints}. */ + public static XrBodySkeletonJointFB.Buffer njoints(long struct) { return XrBodySkeletonJointFB.create(memGetAddress(struct + XrBodySkeletonFB.JOINTS), njointCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBodySkeletonFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrBodySkeletonFB.NEXT, value); } + /** Sets the specified value to the {@code jointCount} field of the specified {@code struct}. */ + public static void njointCount(long struct, int value) { UNSAFE.putInt(null, struct + XrBodySkeletonFB.JOINTCOUNT, value); } + /** Unsafe version of {@link #joints(XrBodySkeletonJointFB.Buffer) joints}. */ + public static void njoints(long struct, XrBodySkeletonJointFB.Buffer value) { memPutAddress(struct + XrBodySkeletonFB.JOINTS, value.address()); njointCount(struct, value.remaining()); } /** * Validates pointer members that should not be {@code NULL}. @@ -288,9 +288,9 @@ public static XrBodySkeletonFB.Buffer calloc(int capacity, MemoryStack stack) { */ public static void validate(long struct) { check(memGetAddress(struct + XrBodySkeletonFB.JOINTS)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrBodySkeletonFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -327,28 +327,28 @@ protected Buffer self() { protected XrBodySkeletonFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrBodySkeletonFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrBodySkeletonFB.ntype(address()); } - /** @return the value of the {@link XrBodySkeletonFB#next} field. */ - @NativeType("void *") - public long next() { return XrBodySkeletonFB.nnext(address()); } - /** @return the value of the {@link XrBodySkeletonFB#jointCount} field. */ - @NativeType("uint32_t") - public int jointCount() { return XrBodySkeletonFB.njointCount(address()); } - /** @return a {@link XrBodySkeletonJointFB.Buffer} view of the struct array pointed to by the {@link XrBodySkeletonFB#joints} field. */ - @NativeType("XrBodySkeletonJointFB *") - public XrBodySkeletonJointFB.Buffer joints() { return XrBodySkeletonFB.njoints(address()); } - - /** Sets the specified value to the {@link XrBodySkeletonFB#type} field. */ - public XrBodySkeletonFB.Buffer type(@NativeType("XrStructureType") int value) { XrBodySkeletonFB.ntype(address(), value); return this; } - /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_SKELETON_FB TYPE_BODY_SKELETON_FB} value to the {@link XrBodySkeletonFB#type} field. */ - public XrBodySkeletonFB.Buffer type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_SKELETON_FB); } - /** Sets the specified value to the {@link XrBodySkeletonFB#next} field. */ - public XrBodySkeletonFB.Buffer next(@NativeType("void *") long value) { XrBodySkeletonFB.nnext(address(), value); return this; } - /** Sets the address of the specified {@link XrBodySkeletonJointFB.Buffer} to the {@link XrBodySkeletonFB#joints} field. */ - public XrBodySkeletonFB.Buffer joints(@NativeType("XrBodySkeletonJointFB *") XrBodySkeletonJointFB.Buffer value) { XrBodySkeletonFB.njoints(address(), value); return this; } + + /** @return the value of the {@link XrBodySkeletonFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrBodySkeletonFB.ntype(address()); } + /** @return the value of the {@link XrBodySkeletonFB#next} field. */ + @NativeType("void *") + public long next() { return XrBodySkeletonFB.nnext(address()); } + /** @return the value of the {@link XrBodySkeletonFB#jointCount} field. */ + @NativeType("uint32_t") + public int jointCount() { return XrBodySkeletonFB.njointCount(address()); } + /** @return a {@link XrBodySkeletonJointFB.Buffer} view of the struct array pointed to by the {@link XrBodySkeletonFB#joints} field. */ + @NativeType("XrBodySkeletonJointFB *") + public XrBodySkeletonJointFB.Buffer joints() { return XrBodySkeletonFB.njoints(address()); } + + /** Sets the specified value to the {@link XrBodySkeletonFB#type} field. */ + public XrBodySkeletonFB.Buffer type(@NativeType("XrStructureType") int value) { XrBodySkeletonFB.ntype(address(), value); return this; } + /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_SKELETON_FB TYPE_BODY_SKELETON_FB} value to the {@link XrBodySkeletonFB#type} field. */ + public XrBodySkeletonFB.Buffer type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_SKELETON_FB); } + /** Sets the specified value to the {@link XrBodySkeletonFB#next} field. */ + public XrBodySkeletonFB.Buffer next(@NativeType("void *") long value) { XrBodySkeletonFB.nnext(address(), value); return this; } + /** Sets the address of the specified {@link XrBodySkeletonJointFB.Buffer} to the {@link XrBodySkeletonFB#joints} field. */ + public XrBodySkeletonFB.Buffer joints(@NativeType("XrBodySkeletonJointFB *") XrBodySkeletonJointFB.Buffer value) { XrBodySkeletonFB.njoints(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodySkeletonJointFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodySkeletonJointFB.java index 5375f6d6c6..ed3d33ba65 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodySkeletonJointFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodySkeletonJointFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes the location and position of a joint in the skeleton hierarchy. * @@ -36,8 +36,8 @@ * int32_t {@link #parentJoint}; * {@link XrPosef XrPosef} {@link #pose}; * } - */ -public class XrBodySkeletonJointFB extends Struct implements NativeResource { + */ +public class XrBodySkeletonJointFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -47,24 +47,24 @@ public class XrBodySkeletonJointFB extends Struct impleme /** The struct member offsets. */ public static final int - JOINT, - PARENTJOINT, - POSE; + JOINT, + PARENTJOINT, + POSE; static { - Layout layout = __struct( - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(4), __member(XrPosef.SIZEOF, XrPosef.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - JOINT = layout.offsetof(0); - PARENTJOINT = layout.offsetof(1); - POSE = layout.offsetof(2); - } + JOINT = layout.offsetof(0); + PARENTJOINT = layout.offsetof(1); + POSE = layout.offsetof(2); + } protected XrBodySkeletonJointFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -87,34 +87,34 @@ public XrBodySkeletonJointFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** an index of a joint using the corresponding body joint enum (e.g. {@code XrBodyJointFB}). */ - @NativeType("int32_t") - public int joint() { return njoint(address()); } - /** an index of a parent joint of that joint, using the corresponding body joint enum (e.g. {@code XrBodyJointFB}). */ - @NativeType("int32_t") - public int parentJoint() { return nparentJoint(address()); } - /** an {@link XrPosef} defining the position and orientation of the origin of a body joint within the reference frame of the corresponding {@link XrBodyJointsLocateInfoFB}{@code ::baseSpace}. */ - public XrPosef pose() { return npose(address()); } - - /** Sets the specified value to the {@link #joint} field. */ - public XrBodySkeletonJointFB joint(@NativeType("int32_t") int value) { njoint(address(), value); return this; } - /** Sets the specified value to the {@link #parentJoint} field. */ - public XrBodySkeletonJointFB parentJoint(@NativeType("int32_t") int value) { nparentJoint(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ - public XrBodySkeletonJointFB pose(XrPosef value) { npose(address(), value); return this; } - /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrBodySkeletonJointFB pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + + /** an index of a joint using the corresponding body joint enum (e.g. {@code XrBodyJointFB}). */ + @NativeType("int32_t") + public int joint() { return njoint(address()); } + /** an index of a parent joint of that joint, using the corresponding body joint enum (e.g. {@code XrBodyJointFB}). */ + @NativeType("int32_t") + public int parentJoint() { return nparentJoint(address()); } + /** an {@link XrPosef} defining the position and orientation of the origin of a body joint within the reference frame of the corresponding {@link XrBodyJointsLocateInfoFB}{@code ::baseSpace}. */ + public XrPosef pose() { return npose(address()); } + + /** Sets the specified value to the {@link #joint} field. */ + public XrBodySkeletonJointFB joint(@NativeType("int32_t") int value) { njoint(address(), value); return this; } + /** Sets the specified value to the {@link #parentJoint} field. */ + public XrBodySkeletonJointFB parentJoint(@NativeType("int32_t") int value) { nparentJoint(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrBodySkeletonJointFB pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrBodySkeletonJointFB pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } /** Initializes this struct with the specified values. */ public XrBodySkeletonJointFB set( - int joint, - int parentJoint, + int joint, + int parentJoint, XrPosef pose - ) { - joint(joint); - parentJoint(parentJoint); - pose(pose); + ) { + joint(joint); + parentJoint(parentJoint); + pose(pose); return this; } @@ -243,22 +243,22 @@ public static XrBodySkeletonJointFB.Buffer calloc(int capacity, MemoryStack stac } // ----------------------------------- - - /** Unsafe version of {@link #joint}. */ - public static int njoint(long struct) { return UNSAFE.getInt(null, struct + XrBodySkeletonJointFB.JOINT); } - /** Unsafe version of {@link #parentJoint}. */ - public static int nparentJoint(long struct) { return UNSAFE.getInt(null, struct + XrBodySkeletonJointFB.PARENTJOINT); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrBodySkeletonJointFB.POSE); } - - /** Unsafe version of {@link #joint(int) joint}. */ - public static void njoint(long struct, int value) { UNSAFE.putInt(null, struct + XrBodySkeletonJointFB.JOINT, value); } - /** Unsafe version of {@link #parentJoint(int) parentJoint}. */ - public static void nparentJoint(long struct, int value) { UNSAFE.putInt(null, struct + XrBodySkeletonJointFB.PARENTJOINT, value); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrBodySkeletonJointFB.POSE, XrPosef.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #joint}. */ + public static int njoint(long struct) { return UNSAFE.getInt(null, struct + XrBodySkeletonJointFB.JOINT); } + /** Unsafe version of {@link #parentJoint}. */ + public static int nparentJoint(long struct) { return UNSAFE.getInt(null, struct + XrBodySkeletonJointFB.PARENTJOINT); } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrBodySkeletonJointFB.POSE); } + + /** Unsafe version of {@link #joint(int) joint}. */ + public static void njoint(long struct, int value) { UNSAFE.putInt(null, struct + XrBodySkeletonJointFB.JOINT, value); } + /** Unsafe version of {@link #parentJoint(int) parentJoint}. */ + public static void nparentJoint(long struct, int value) { UNSAFE.putInt(null, struct + XrBodySkeletonJointFB.PARENTJOINT, value); } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrBodySkeletonJointFB.POSE, XrPosef.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrBodySkeletonJointFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -295,24 +295,24 @@ protected Buffer self() { protected XrBodySkeletonJointFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrBodySkeletonJointFB#joint} field. */ - @NativeType("int32_t") - public int joint() { return XrBodySkeletonJointFB.njoint(address()); } - /** @return the value of the {@link XrBodySkeletonJointFB#parentJoint} field. */ - @NativeType("int32_t") - public int parentJoint() { return XrBodySkeletonJointFB.nparentJoint(address()); } - /** @return a {@link XrPosef} view of the {@link XrBodySkeletonJointFB#pose} field. */ - public XrPosef pose() { return XrBodySkeletonJointFB.npose(address()); } - - /** Sets the specified value to the {@link XrBodySkeletonJointFB#joint} field. */ - public XrBodySkeletonJointFB.Buffer joint(@NativeType("int32_t") int value) { XrBodySkeletonJointFB.njoint(address(), value); return this; } - /** Sets the specified value to the {@link XrBodySkeletonJointFB#parentJoint} field. */ - public XrBodySkeletonJointFB.Buffer parentJoint(@NativeType("int32_t") int value) { XrBodySkeletonJointFB.nparentJoint(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrBodySkeletonJointFB#pose} field. */ - public XrBodySkeletonJointFB.Buffer pose(XrPosef value) { XrBodySkeletonJointFB.npose(address(), value); return this; } - /** Passes the {@link XrBodySkeletonJointFB#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrBodySkeletonJointFB.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + + /** @return the value of the {@link XrBodySkeletonJointFB#joint} field. */ + @NativeType("int32_t") + public int joint() { return XrBodySkeletonJointFB.njoint(address()); } + /** @return the value of the {@link XrBodySkeletonJointFB#parentJoint} field. */ + @NativeType("int32_t") + public int parentJoint() { return XrBodySkeletonJointFB.nparentJoint(address()); } + /** @return a {@link XrPosef} view of the {@link XrBodySkeletonJointFB#pose} field. */ + public XrPosef pose() { return XrBodySkeletonJointFB.npose(address()); } + + /** Sets the specified value to the {@link XrBodySkeletonJointFB#joint} field. */ + public XrBodySkeletonJointFB.Buffer joint(@NativeType("int32_t") int value) { XrBodySkeletonJointFB.njoint(address(), value); return this; } + /** Sets the specified value to the {@link XrBodySkeletonJointFB#parentJoint} field. */ + public XrBodySkeletonJointFB.Buffer parentJoint(@NativeType("int32_t") int value) { XrBodySkeletonJointFB.nparentJoint(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrBodySkeletonJointFB#pose} field. */ + public XrBodySkeletonJointFB.Buffer pose(XrPosef value) { XrBodySkeletonJointFB.npose(address(), value); return this; } + /** Passes the {@link XrBodySkeletonJointFB#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrBodySkeletonJointFB.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyTrackerCreateInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyTrackerCreateInfoFB.java index 0efe9d4021..d5d40d7a16 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyTrackerCreateInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyTrackerCreateInfoFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Information to create a body joints handle. * @@ -23,7 +23,7 @@ *
      *
    • The {@link FBBodyTracking XR_FB_body_tracking} extension must be enabled prior to using {@link XrBodyTrackerCreateInfoFB}
    • *
    • {@code type} must be {@link FBBodyTracking#XR_TYPE_BODY_TRACKER_CREATE_INFO_FB TYPE_BODY_TRACKER_CREATE_INFO_FB}
    • - *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • + *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • *
    • {@code bodyJointSet} must be a valid {@code XrBodyJointSetFB} value
    • *
    * @@ -39,8 +39,8 @@ * void const * {@link #next}; * XrBodyJointSetFB {@link #bodyJointSet}; * } - */ -public class XrBodyTrackerCreateInfoFB extends Struct implements NativeResource { + */ +public class XrBodyTrackerCreateInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,24 +50,24 @@ public class XrBodyTrackerCreateInfoFB extends Struct /** The struct member offsets. */ public static final int - TYPE, - NEXT, - BODYJOINTSET; + TYPE, + NEXT, + BODYJOINTSET; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - BODYJOINTSET = layout.offsetof(2); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + BODYJOINTSET = layout.offsetof(2); + } protected XrBodyTrackerCreateInfoFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -90,35 +90,35 @@ public XrBodyTrackerCreateInfoFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** an {@code XrBodyJointSetFB} that describes the set of body joints to retrieve. */ - @NativeType("XrBodyJointSetFB") - public int bodyJointSet() { return nbodyJointSet(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrBodyTrackerCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_TRACKER_CREATE_INFO_FB TYPE_BODY_TRACKER_CREATE_INFO_FB} value to the {@link #type} field. */ - public XrBodyTrackerCreateInfoFB type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_TRACKER_CREATE_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrBodyTrackerCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #bodyJointSet} field. */ - public XrBodyTrackerCreateInfoFB bodyJointSet(@NativeType("XrBodyJointSetFB") int value) { nbodyJointSet(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** an {@code XrBodyJointSetFB} that describes the set of body joints to retrieve. */ + @NativeType("XrBodyJointSetFB") + public int bodyJointSet() { return nbodyJointSet(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrBodyTrackerCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_TRACKER_CREATE_INFO_FB TYPE_BODY_TRACKER_CREATE_INFO_FB} value to the {@link #type} field. */ + public XrBodyTrackerCreateInfoFB type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_TRACKER_CREATE_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrBodyTrackerCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #bodyJointSet} field. */ + public XrBodyTrackerCreateInfoFB bodyJointSet(@NativeType("XrBodyJointSetFB") int value) { nbodyJointSet(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrBodyTrackerCreateInfoFB set( - int type, - long next, + int type, + long next, int bodyJointSet - ) { - type(type); - next(next); - bodyJointSet(bodyJointSet); + ) { + type(type); + next(next); + bodyJointSet(bodyJointSet); return this; } @@ -247,22 +247,22 @@ public static XrBodyTrackerCreateInfoFB.Buffer calloc(int capacity, MemoryStack } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBodyTrackerCreateInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrBodyTrackerCreateInfoFB.NEXT); } - /** Unsafe version of {@link #bodyJointSet}. */ - public static int nbodyJointSet(long struct) { return UNSAFE.getInt(null, struct + XrBodyTrackerCreateInfoFB.BODYJOINTSET); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyTrackerCreateInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrBodyTrackerCreateInfoFB.NEXT, value); } - /** Unsafe version of {@link #bodyJointSet(int) bodyJointSet}. */ - public static void nbodyJointSet(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyTrackerCreateInfoFB.BODYJOINTSET, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBodyTrackerCreateInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrBodyTrackerCreateInfoFB.NEXT); } + /** Unsafe version of {@link #bodyJointSet}. */ + public static int nbodyJointSet(long struct) { return UNSAFE.getInt(null, struct + XrBodyTrackerCreateInfoFB.BODYJOINTSET); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyTrackerCreateInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrBodyTrackerCreateInfoFB.NEXT, value); } + /** Unsafe version of {@link #bodyJointSet(int) bodyJointSet}. */ + public static void nbodyJointSet(long struct, int value) { UNSAFE.putInt(null, struct + XrBodyTrackerCreateInfoFB.BODYJOINTSET, value); } + + // ----------------------------------- /** An array of {@link XrBodyTrackerCreateInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -299,25 +299,25 @@ protected Buffer self() { protected XrBodyTrackerCreateInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrBodyTrackerCreateInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrBodyTrackerCreateInfoFB.ntype(address()); } - /** @return the value of the {@link XrBodyTrackerCreateInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrBodyTrackerCreateInfoFB.nnext(address()); } - /** @return the value of the {@link XrBodyTrackerCreateInfoFB#bodyJointSet} field. */ - @NativeType("XrBodyJointSetFB") - public int bodyJointSet() { return XrBodyTrackerCreateInfoFB.nbodyJointSet(address()); } - - /** Sets the specified value to the {@link XrBodyTrackerCreateInfoFB#type} field. */ - public XrBodyTrackerCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrBodyTrackerCreateInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_TRACKER_CREATE_INFO_FB TYPE_BODY_TRACKER_CREATE_INFO_FB} value to the {@link XrBodyTrackerCreateInfoFB#type} field. */ - public XrBodyTrackerCreateInfoFB.Buffer type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_TRACKER_CREATE_INFO_FB); } - /** Sets the specified value to the {@link XrBodyTrackerCreateInfoFB#next} field. */ - public XrBodyTrackerCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrBodyTrackerCreateInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrBodyTrackerCreateInfoFB#bodyJointSet} field. */ - public XrBodyTrackerCreateInfoFB.Buffer bodyJointSet(@NativeType("XrBodyJointSetFB") int value) { XrBodyTrackerCreateInfoFB.nbodyJointSet(address(), value); return this; } + + /** @return the value of the {@link XrBodyTrackerCreateInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrBodyTrackerCreateInfoFB.ntype(address()); } + /** @return the value of the {@link XrBodyTrackerCreateInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrBodyTrackerCreateInfoFB.nnext(address()); } + /** @return the value of the {@link XrBodyTrackerCreateInfoFB#bodyJointSet} field. */ + @NativeType("XrBodyJointSetFB") + public int bodyJointSet() { return XrBodyTrackerCreateInfoFB.nbodyJointSet(address()); } + + /** Sets the specified value to the {@link XrBodyTrackerCreateInfoFB#type} field. */ + public XrBodyTrackerCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrBodyTrackerCreateInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBBodyTracking#XR_TYPE_BODY_TRACKER_CREATE_INFO_FB TYPE_BODY_TRACKER_CREATE_INFO_FB} value to the {@link XrBodyTrackerCreateInfoFB#type} field. */ + public XrBodyTrackerCreateInfoFB.Buffer type$Default() { return type(FBBodyTracking.XR_TYPE_BODY_TRACKER_CREATE_INFO_FB); } + /** Sets the specified value to the {@link XrBodyTrackerCreateInfoFB#next} field. */ + public XrBodyTrackerCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrBodyTrackerCreateInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrBodyTrackerCreateInfoFB#bodyJointSet} field. */ + public XrBodyTrackerCreateInfoFB.Buffer bodyJointSet(@NativeType("XrBodyJointSetFB") int value) { XrBodyTrackerCreateInfoFB.nbodyJointSet(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyTrackerFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyTrackerFB.java index d0f7bc0b71..89bec45592 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyTrackerFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBodyTrackerFB.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrBodyTrackerFB} handle. */ + +/** Wraps an {@code XrBodyTrackerFB} handle. */ public class XrBodyTrackerFB extends DispatchableHandle { private final XrSession session; @@ -26,4 +26,4 @@ public XrSession getSession() { return session; } -} +} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBoundSourcesForActionEnumerateInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBoundSourcesForActionEnumerateInfo.java index d6f206d473..7497bb03ce 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBoundSourcesForActionEnumerateInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBoundSourcesForActionEnumerateInfo.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Information to query the bound input sources for an action. * @@ -23,7 +23,7 @@ * *
      *
    • {@code type} must be {@link XR10#XR_TYPE_BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO TYPE_BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO}
    • - *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • + *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • *
    • {@code action} must be a valid {@code XrAction} handle
    • *
    * @@ -39,8 +39,8 @@ * void const * {@link #next}; * XrAction {@link #action}; * } - */ -public class XrBoundSourcesForActionEnumerateInfo extends Struct implements NativeResource { + */ +public class XrBoundSourcesForActionEnumerateInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,24 +50,24 @@ public class XrBoundSourcesForActionEnumerateInfo extends Struct implements NativeResource { @@ -308,25 +308,25 @@ protected Buffer self() { protected XrBoundSourcesForActionEnumerateInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrBoundSourcesForActionEnumerateInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrBoundSourcesForActionEnumerateInfo.ntype(address()); } - /** @return the value of the {@link XrBoundSourcesForActionEnumerateInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrBoundSourcesForActionEnumerateInfo.nnext(address()); } - /** @return the value of the {@link XrBoundSourcesForActionEnumerateInfo#action} field. */ - @NativeType("XrAction") - public long action() { return XrBoundSourcesForActionEnumerateInfo.naction(address()); } - - /** Sets the specified value to the {@link XrBoundSourcesForActionEnumerateInfo#type} field. */ - public XrBoundSourcesForActionEnumerateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrBoundSourcesForActionEnumerateInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO TYPE_BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO} value to the {@link XrBoundSourcesForActionEnumerateInfo#type} field. */ - public XrBoundSourcesForActionEnumerateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO); } - /** Sets the specified value to the {@link XrBoundSourcesForActionEnumerateInfo#next} field. */ - public XrBoundSourcesForActionEnumerateInfo.Buffer next(@NativeType("void const *") long value) { XrBoundSourcesForActionEnumerateInfo.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrBoundSourcesForActionEnumerateInfo#action} field. */ - public XrBoundSourcesForActionEnumerateInfo.Buffer action(XrAction value) { XrBoundSourcesForActionEnumerateInfo.naction(address(), value); return this; } + + /** @return the value of the {@link XrBoundSourcesForActionEnumerateInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrBoundSourcesForActionEnumerateInfo.ntype(address()); } + /** @return the value of the {@link XrBoundSourcesForActionEnumerateInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrBoundSourcesForActionEnumerateInfo.nnext(address()); } + /** @return the value of the {@link XrBoundSourcesForActionEnumerateInfo#action} field. */ + @NativeType("XrAction") + public long action() { return XrBoundSourcesForActionEnumerateInfo.naction(address()); } + + /** Sets the specified value to the {@link XrBoundSourcesForActionEnumerateInfo#type} field. */ + public XrBoundSourcesForActionEnumerateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrBoundSourcesForActionEnumerateInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO TYPE_BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO} value to the {@link XrBoundSourcesForActionEnumerateInfo#type} field. */ + public XrBoundSourcesForActionEnumerateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_BOUND_SOURCES_FOR_ACTION_ENUMERATE_INFO); } + /** Sets the specified value to the {@link XrBoundSourcesForActionEnumerateInfo#next} field. */ + public XrBoundSourcesForActionEnumerateInfo.Buffer next(@NativeType("void const *") long value) { XrBoundSourcesForActionEnumerateInfo.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrBoundSourcesForActionEnumerateInfo#action} field. */ + public XrBoundSourcesForActionEnumerateInfo.Buffer action(XrAction value) { XrBoundSourcesForActionEnumerateInfo.naction(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBoundary2DFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBoundary2DFB.java index d2cf1f540a..14285c83d4 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBoundary2DFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrBoundary2DFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Provides additional context of a spatial entity representing a room. * @@ -27,7 +27,7 @@ *
      *
    • The {@link FBScene XR_FB_scene} extension must be enabled prior to using {@link XrBoundary2DFB}
    • *
    • {@code type} must be {@link FBScene#XR_TYPE_BOUNDARY_2D_FB TYPE_BOUNDARY_2D_FB}
    • - *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • + *
    • {@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
    • *
    * @@ -45,8 +45,8 @@ * uint32_t {@link #vertexCountOutput}; * {@link XrVector2f XrVector2f} * {@link #vertices}; * } - */ -public class XrBoundary2DFB extends Struct implements NativeResource { + */ +public class XrBoundary2DFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,30 +56,30 @@ public class XrBoundary2DFB extends Struct implements NativeReso /** The struct member offsets. */ public static final int - TYPE, - NEXT, - VERTEXCAPACITYINPUT, - VERTEXCOUNTOUTPUT, - VERTICES; + TYPE, + NEXT, + VERTEXCAPACITYINPUT, + VERTEXCOUNTOUTPUT, + VERTICES; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - VERTEXCAPACITYINPUT = layout.offsetof(2); - VERTEXCOUNTOUTPUT = layout.offsetof(3); - VERTICES = layout.offsetof(4); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + VERTEXCAPACITYINPUT = layout.offsetof(2); + VERTEXCOUNTOUTPUT = layout.offsetof(3); + VERTICES = layout.offsetof(4); + } protected XrBoundary2DFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -102,50 +102,50 @@ public XrBoundary2DFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** the capacity of the {@code vertices} array, in number of vertices, or 0 to indicate a request to retrieve the required capacity. */ - @NativeType("uint32_t") - public int vertexCapacityInput() { return nvertexCapacityInput(address()); } - /** the count of {@link XrVector2f} written, or the required capacity in the case that {@code vertexCapacityInput} is insufficient. */ - @NativeType("uint32_t") - public int vertexCountOutput() { return nvertexCountOutput(address()); } - /** a pointer to an array of {@link XrVector2f}, but can be {@code NULL} if {@code vertexCapacityInput} is 0. */ - @Nullable - @NativeType("XrVector2f *") - public XrVector2f.Buffer vertices() { return nvertices(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrBoundary2DFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBScene#XR_TYPE_BOUNDARY_2D_FB TYPE_BOUNDARY_2D_FB} value to the {@link #type} field. */ - public XrBoundary2DFB type$Default() { return type(FBScene.XR_TYPE_BOUNDARY_2D_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrBoundary2DFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #vertexCapacityInput} field. */ - public XrBoundary2DFB vertexCapacityInput(@NativeType("uint32_t") int value) { nvertexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #vertexCountOutput} field. */ - public XrBoundary2DFB 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 XrBoundary2DFB vertices(@Nullable @NativeType("XrVector2f *") XrVector2f.Buffer value) { nvertices(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the capacity of the {@code vertices} array, in bytes, or 0 to indicate a request to retrieve the required capacity. */ + @NativeType("uint32_t") + public int vertexCapacityInput() { return nvertexCapacityInput(address()); } + /** a pointer to the count of {@link XrVector2f} written, or a pointer to the required capacity in the case that {@code vertexCapacityInput} is insufficient. */ + @NativeType("uint32_t") + public int vertexCountOutput() { return nvertexCountOutput(address()); } + /** a pointer to an array of {@link XrVector2f}, but can be {@code NULL} if {@code vertexCapacityInput} is 0. */ + @Nullable + @NativeType("XrVector2f *") + public XrVector2f.Buffer vertices() { return nvertices(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrBoundary2DFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBScene#XR_TYPE_BOUNDARY_2D_FB TYPE_BOUNDARY_2D_FB} value to the {@link #type} field. */ + public XrBoundary2DFB type$Default() { return type(FBScene.XR_TYPE_BOUNDARY_2D_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrBoundary2DFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #vertexCapacityInput} field. */ + public XrBoundary2DFB vertexCapacityInput(@NativeType("uint32_t") int value) { nvertexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #vertexCountOutput} field. */ + public XrBoundary2DFB 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 XrBoundary2DFB vertices(@Nullable @NativeType("XrVector2f *") XrVector2f.Buffer value) { nvertices(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrBoundary2DFB set( - int type, - long next, - int vertexCapacityInput, - int vertexCountOutput, + int type, + long next, + int vertexCapacityInput, + int vertexCountOutput, @Nullable XrVector2f.Buffer vertices - ) { - type(type); - next(next); - vertexCapacityInput(vertexCapacityInput); - vertexCountOutput(vertexCountOutput); - vertices(vertices); + ) { + type(type); + next(next); + vertexCapacityInput(vertexCapacityInput); + vertexCountOutput(vertexCountOutput); + vertices(vertices); return this; } @@ -274,30 +274,30 @@ public static XrBoundary2DFB.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBoundary2DFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrBoundary2DFB.NEXT); } - /** Unsafe version of {@link #vertexCapacityInput}. */ - public static int nvertexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrBoundary2DFB.VERTEXCAPACITYINPUT); } - /** Unsafe version of {@link #vertexCountOutput}. */ - public static int nvertexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrBoundary2DFB.VERTEXCOUNTOUTPUT); } - /** Unsafe version of {@link #vertices}. */ - @Nullable public static XrVector2f.Buffer nvertices(long struct) { return XrVector2f.createSafe(memGetAddress(struct + XrBoundary2DFB.VERTICES), nvertexCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBoundary2DFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrBoundary2DFB.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 + XrBoundary2DFB.VERTEXCAPACITYINPUT, value); } - /** Unsafe version of {@link #vertexCountOutput(int) vertexCountOutput}. */ - public static void nvertexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrBoundary2DFB.VERTEXCOUNTOUTPUT, value); } - /** Unsafe version of {@link #vertices(XrVector2f.Buffer) vertices}. */ - public static void nvertices(long struct, @Nullable XrVector2f.Buffer value) { memPutAddress(struct + XrBoundary2DFB.VERTICES, memAddressSafe(value)); if (value != null) { nvertexCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrBoundary2DFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrBoundary2DFB.NEXT); } + /** Unsafe version of {@link #vertexCapacityInput}. */ + public static int nvertexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrBoundary2DFB.VERTEXCAPACITYINPUT); } + /** Unsafe version of {@link #vertexCountOutput}. */ + public static int nvertexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrBoundary2DFB.VERTEXCOUNTOUTPUT); } + /** Unsafe version of {@link #vertices}. */ + @Nullable public static XrVector2f.Buffer nvertices(long struct) { return XrVector2f.createSafe(memGetAddress(struct + XrBoundary2DFB.VERTICES), nvertexCapacityInput(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrBoundary2DFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrBoundary2DFB.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 + XrBoundary2DFB.VERTEXCAPACITYINPUT, value); } + /** Unsafe version of {@link #vertexCountOutput(int) vertexCountOutput}. */ + public static void nvertexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrBoundary2DFB.VERTEXCOUNTOUTPUT, value); } + /** Unsafe version of {@link #vertices(XrVector2f.Buffer) vertices}. */ + public static void nvertices(long struct, @Nullable XrVector2f.Buffer value) { memPutAddress(struct + XrBoundary2DFB.VERTICES, memAddressSafe(value)); if (value != null) { nvertexCapacityInput(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrBoundary2DFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -334,36 +334,36 @@ protected Buffer self() { protected XrBoundary2DFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrBoundary2DFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrBoundary2DFB.ntype(address()); } - /** @return the value of the {@link XrBoundary2DFB#next} field. */ - @NativeType("void const *") - public long next() { return XrBoundary2DFB.nnext(address()); } - /** @return the value of the {@link XrBoundary2DFB#vertexCapacityInput} field. */ - @NativeType("uint32_t") - public int vertexCapacityInput() { return XrBoundary2DFB.nvertexCapacityInput(address()); } - /** @return the value of the {@link XrBoundary2DFB#vertexCountOutput} field. */ - @NativeType("uint32_t") - public int vertexCountOutput() { return XrBoundary2DFB.nvertexCountOutput(address()); } - /** @return a {@link XrVector2f.Buffer} view of the struct array pointed to by the {@link XrBoundary2DFB#vertices} field. */ - @Nullable - @NativeType("XrVector2f *") - public XrVector2f.Buffer vertices() { return XrBoundary2DFB.nvertices(address()); } - - /** Sets the specified value to the {@link XrBoundary2DFB#type} field. */ - public XrBoundary2DFB.Buffer type(@NativeType("XrStructureType") int value) { XrBoundary2DFB.ntype(address(), value); return this; } - /** Sets the {@link FBScene#XR_TYPE_BOUNDARY_2D_FB TYPE_BOUNDARY_2D_FB} value to the {@link XrBoundary2DFB#type} field. */ - public XrBoundary2DFB.Buffer type$Default() { return type(FBScene.XR_TYPE_BOUNDARY_2D_FB); } - /** Sets the specified value to the {@link XrBoundary2DFB#next} field. */ - public XrBoundary2DFB.Buffer next(@NativeType("void const *") long value) { XrBoundary2DFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrBoundary2DFB#vertexCapacityInput} field. */ - public XrBoundary2DFB.Buffer vertexCapacityInput(@NativeType("uint32_t") int value) { XrBoundary2DFB.nvertexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrBoundary2DFB#vertexCountOutput} field. */ - public XrBoundary2DFB.Buffer vertexCountOutput(@NativeType("uint32_t") int value) { XrBoundary2DFB.nvertexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrVector2f.Buffer} to the {@link XrBoundary2DFB#vertices} field. */ - public XrBoundary2DFB.Buffer vertices(@Nullable @NativeType("XrVector2f *") XrVector2f.Buffer value) { XrBoundary2DFB.nvertices(address(), value); return this; } + + /** @return the value of the {@link XrBoundary2DFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrBoundary2DFB.ntype(address()); } + /** @return the value of the {@link XrBoundary2DFB#next} field. */ + @NativeType("void const *") + public long next() { return XrBoundary2DFB.nnext(address()); } + /** @return the value of the {@link XrBoundary2DFB#vertexCapacityInput} field. */ + @NativeType("uint32_t") + public int vertexCapacityInput() { return XrBoundary2DFB.nvertexCapacityInput(address()); } + /** @return the value of the {@link XrBoundary2DFB#vertexCountOutput} field. */ + @NativeType("uint32_t") + public int vertexCountOutput() { return XrBoundary2DFB.nvertexCountOutput(address()); } + /** @return a {@link XrVector2f.Buffer} view of the struct array pointed to by the {@link XrBoundary2DFB#vertices} field. */ + @Nullable + @NativeType("XrVector2f *") + public XrVector2f.Buffer vertices() { return XrBoundary2DFB.nvertices(address()); } + + /** Sets the specified value to the {@link XrBoundary2DFB#type} field. */ + public XrBoundary2DFB.Buffer type(@NativeType("XrStructureType") int value) { XrBoundary2DFB.ntype(address(), value); return this; } + /** Sets the {@link FBScene#XR_TYPE_BOUNDARY_2D_FB TYPE_BOUNDARY_2D_FB} value to the {@link XrBoundary2DFB#type} field. */ + public XrBoundary2DFB.Buffer type$Default() { return type(FBScene.XR_TYPE_BOUNDARY_2D_FB); } + /** Sets the specified value to the {@link XrBoundary2DFB#next} field. */ + public XrBoundary2DFB.Buffer next(@NativeType("void const *") long value) { XrBoundary2DFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrBoundary2DFB#vertexCapacityInput} field. */ + public XrBoundary2DFB.Buffer vertexCapacityInput(@NativeType("uint32_t") int value) { XrBoundary2DFB.nvertexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrBoundary2DFB#vertexCountOutput} field. */ + public XrBoundary2DFB.Buffer vertexCountOutput(@NativeType("uint32_t") int value) { XrBoundary2DFB.nvertexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrVector2f.Buffer} to the {@link XrBoundary2DFB#vertices} field. */ + public XrBoundary2DFB.Buffer vertices(@Nullable @NativeType("XrVector2f *") XrVector2f.Buffer value) { XrBoundary2DFB.nvertices(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrColor4f.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrColor4f.java index db506983fb..e1a5f56163 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrColor4f.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrColor4f.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Color Vector. * @@ -37,8 +37,8 @@ * float {@link #b}; * float {@link #a}; * } - */ -public class XrColor4f extends Struct implements NativeResource { + */ +public class XrColor4f extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,27 +48,27 @@ public class XrColor4f extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - R, - G, - B, - A; + R, + G, + B, + A; static { - Layout layout = __struct( - __member(4), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(4), + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - R = layout.offsetof(0); - G = layout.offsetof(1); - B = layout.offsetof(2); - A = layout.offsetof(3); - } + R = layout.offsetof(0); + G = layout.offsetof(1); + B = layout.offsetof(2); + A = layout.offsetof(3); + } protected XrColor4f(long address, @Nullable ByteBuffer container) { super(address, container); @@ -91,36 +91,36 @@ public XrColor4f(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the red component of the color. */ - public float r() { return nr(address()); } - /** the green component of the color. */ - public float g() { return ng(address()); } - /** the blue component of the color. */ - public float b() { return nb(address()); } - /** the alpha component of the color. */ - public float a() { return na(address()); } - - /** Sets the specified value to the {@link #r} field. */ - public XrColor4f r(float value) { nr(address(), value); return this; } - /** Sets the specified value to the {@link #g} field. */ - public XrColor4f g(float value) { ng(address(), value); return this; } - /** Sets the specified value to the {@link #b} field. */ - public XrColor4f b(float value) { nb(address(), value); return this; } - /** Sets the specified value to the {@link #a} field. */ - public XrColor4f a(float value) { na(address(), value); return this; } + + /** the red component of the color. */ + public float r() { return nr(address()); } + /** the green component of the color. */ + public float g() { return ng(address()); } + /** the blue component of the color. */ + public float b() { return nb(address()); } + /** the alpha component of the color. */ + public float a() { return na(address()); } + + /** Sets the specified value to the {@link #r} field. */ + public XrColor4f r(float value) { nr(address(), value); return this; } + /** Sets the specified value to the {@link #g} field. */ + public XrColor4f g(float value) { ng(address(), value); return this; } + /** Sets the specified value to the {@link #b} field. */ + public XrColor4f b(float value) { nb(address(), value); return this; } + /** Sets the specified value to the {@link #a} field. */ + public XrColor4f a(float value) { na(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrColor4f set( - float r, - float g, - float b, + float r, + float g, + float b, float a - ) { - r(r); - g(g); - b(b); - a(a); + ) { + r(r); + g(g); + b(b); + a(a); return this; } @@ -249,26 +249,26 @@ public static XrColor4f.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #r}. */ - public static float nr(long struct) { return UNSAFE.getFloat(null, struct + XrColor4f.R); } - /** Unsafe version of {@link #g}. */ - public static float ng(long struct) { return UNSAFE.getFloat(null, struct + XrColor4f.G); } - /** Unsafe version of {@link #b}. */ - public static float nb(long struct) { return UNSAFE.getFloat(null, struct + XrColor4f.B); } - /** Unsafe version of {@link #a}. */ - public static float na(long struct) { return UNSAFE.getFloat(null, struct + XrColor4f.A); } - - /** Unsafe version of {@link #r(float) r}. */ - public static void nr(long struct, float value) { UNSAFE.putFloat(null, struct + XrColor4f.R, value); } - /** Unsafe version of {@link #g(float) g}. */ - public static void ng(long struct, float value) { UNSAFE.putFloat(null, struct + XrColor4f.G, value); } - /** Unsafe version of {@link #b(float) b}. */ - public static void nb(long struct, float value) { UNSAFE.putFloat(null, struct + XrColor4f.B, value); } - /** Unsafe version of {@link #a(float) a}. */ - public static void na(long struct, float value) { UNSAFE.putFloat(null, struct + XrColor4f.A, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #r}. */ + public static float nr(long struct) { return UNSAFE.getFloat(null, struct + XrColor4f.R); } + /** Unsafe version of {@link #g}. */ + public static float ng(long struct) { return UNSAFE.getFloat(null, struct + XrColor4f.G); } + /** Unsafe version of {@link #b}. */ + public static float nb(long struct) { return UNSAFE.getFloat(null, struct + XrColor4f.B); } + /** Unsafe version of {@link #a}. */ + public static float na(long struct) { return UNSAFE.getFloat(null, struct + XrColor4f.A); } + + /** Unsafe version of {@link #r(float) r}. */ + public static void nr(long struct, float value) { UNSAFE.putFloat(null, struct + XrColor4f.R, value); } + /** Unsafe version of {@link #g(float) g}. */ + public static void ng(long struct, float value) { UNSAFE.putFloat(null, struct + XrColor4f.G, value); } + /** Unsafe version of {@link #b(float) b}. */ + public static void nb(long struct, float value) { UNSAFE.putFloat(null, struct + XrColor4f.B, value); } + /** Unsafe version of {@link #a(float) a}. */ + public static void na(long struct, float value) { UNSAFE.putFloat(null, struct + XrColor4f.A, value); } + + // ----------------------------------- /** An array of {@link XrColor4f} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -305,24 +305,24 @@ protected Buffer self() { protected XrColor4f getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrColor4f#r} field. */ - public float r() { return XrColor4f.nr(address()); } - /** @return the value of the {@link XrColor4f#g} field. */ - public float g() { return XrColor4f.ng(address()); } - /** @return the value of the {@link XrColor4f#b} field. */ - public float b() { return XrColor4f.nb(address()); } - /** @return the value of the {@link XrColor4f#a} field. */ - public float a() { return XrColor4f.na(address()); } - - /** Sets the specified value to the {@link XrColor4f#r} field. */ - public XrColor4f.Buffer r(float value) { XrColor4f.nr(address(), value); return this; } - /** Sets the specified value to the {@link XrColor4f#g} field. */ - public XrColor4f.Buffer g(float value) { XrColor4f.ng(address(), value); return this; } - /** Sets the specified value to the {@link XrColor4f#b} field. */ - public XrColor4f.Buffer b(float value) { XrColor4f.nb(address(), value); return this; } - /** Sets the specified value to the {@link XrColor4f#a} field. */ - public XrColor4f.Buffer a(float value) { XrColor4f.na(address(), value); return this; } + + /** @return the value of the {@link XrColor4f#r} field. */ + public float r() { return XrColor4f.nr(address()); } + /** @return the value of the {@link XrColor4f#g} field. */ + public float g() { return XrColor4f.ng(address()); } + /** @return the value of the {@link XrColor4f#b} field. */ + public float b() { return XrColor4f.nb(address()); } + /** @return the value of the {@link XrColor4f#a} field. */ + public float a() { return XrColor4f.na(address()); } + + /** Sets the specified value to the {@link XrColor4f#r} field. */ + public XrColor4f.Buffer r(float value) { XrColor4f.nr(address(), value); return this; } + /** Sets the specified value to the {@link XrColor4f#g} field. */ + public XrColor4f.Buffer g(float value) { XrColor4f.ng(address(), value); return this; } + /** Sets the specified value to the {@link XrColor4f#b} field. */ + public XrColor4f.Buffer b(float value) { XrColor4f.nb(address(), value); return this; } + /** Sets the specified value to the {@link XrColor4f#a} field. */ + public XrColor4f.Buffer a(float value) { XrColor4f.na(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerAlphaBlendFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerAlphaBlendFB.java index be7a858b62..c3e81d98fa 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerAlphaBlendFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerAlphaBlendFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * specifies blend factors for composition layers. * @@ -29,7 +29,7 @@ *
      *
    • The {@link FBCompositionLayerAlphaBlend XR_FB_composition_layer_alpha_blend} extension must be enabled prior to using {@link XrCompositionLayerAlphaBlendFB}
    • *
    • {@code type} must be {@link FBCompositionLayerAlphaBlend#XR_TYPE_COMPOSITION_LAYER_ALPHA_BLEND_FB TYPE_COMPOSITION_LAYER_ALPHA_BLEND_FB}
    • - *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • + *
    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
    • *
    • {@code srcFactorColor} must be a valid {@code XrBlendFactorFB} value
    • *
    • {@code dstFactorColor} must be a valid {@code XrBlendFactorFB} value
    • *
    • {@code srcFactorAlpha} must be a valid {@code XrBlendFactorFB} value
    • @@ -51,8 +51,8 @@ * XrBlendFactorFB {@link #srcFactorAlpha}; * XrBlendFactorFB {@link #dstFactorAlpha}; * } - */ -public class XrCompositionLayerAlphaBlendFB extends Struct implements NativeResource { + */ +public class XrCompositionLayerAlphaBlendFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -62,33 +62,33 @@ public class XrCompositionLayerAlphaBlendFB extends Struct implements NativeResource { @@ -353,40 +353,40 @@ protected Buffer self() { protected XrCompositionLayerAlphaBlendFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerAlphaBlendFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerAlphaBlendFB.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerAlphaBlendFB#next} field. */ - @NativeType("void *") - public long next() { return XrCompositionLayerAlphaBlendFB.nnext(address()); } - /** @return the value of the {@link XrCompositionLayerAlphaBlendFB#srcFactorColor} field. */ - @NativeType("XrBlendFactorFB") - public int srcFactorColor() { return XrCompositionLayerAlphaBlendFB.nsrcFactorColor(address()); } - /** @return the value of the {@link XrCompositionLayerAlphaBlendFB#dstFactorColor} field. */ - @NativeType("XrBlendFactorFB") - public int dstFactorColor() { return XrCompositionLayerAlphaBlendFB.ndstFactorColor(address()); } - /** @return the value of the {@link XrCompositionLayerAlphaBlendFB#srcFactorAlpha} field. */ - @NativeType("XrBlendFactorFB") - public int srcFactorAlpha() { return XrCompositionLayerAlphaBlendFB.nsrcFactorAlpha(address()); } - /** @return the value of the {@link XrCompositionLayerAlphaBlendFB#dstFactorAlpha} field. */ - @NativeType("XrBlendFactorFB") - public int dstFactorAlpha() { return XrCompositionLayerAlphaBlendFB.ndstFactorAlpha(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerAlphaBlendFB#type} field. */ - public XrCompositionLayerAlphaBlendFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerAlphaBlendFB.ntype(address(), value); return this; } - /** Sets the {@link FBCompositionLayerAlphaBlend#XR_TYPE_COMPOSITION_LAYER_ALPHA_BLEND_FB TYPE_COMPOSITION_LAYER_ALPHA_BLEND_FB} value to the {@link XrCompositionLayerAlphaBlendFB#type} field. */ - public XrCompositionLayerAlphaBlendFB.Buffer type$Default() { return type(FBCompositionLayerAlphaBlend.XR_TYPE_COMPOSITION_LAYER_ALPHA_BLEND_FB); } - /** Sets the specified value to the {@link XrCompositionLayerAlphaBlendFB#next} field. */ - public XrCompositionLayerAlphaBlendFB.Buffer next(@NativeType("void *") long value) { XrCompositionLayerAlphaBlendFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerAlphaBlendFB#srcFactorColor} field. */ - public XrCompositionLayerAlphaBlendFB.Buffer srcFactorColor(@NativeType("XrBlendFactorFB") int value) { XrCompositionLayerAlphaBlendFB.nsrcFactorColor(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerAlphaBlendFB#dstFactorColor} field. */ - public XrCompositionLayerAlphaBlendFB.Buffer dstFactorColor(@NativeType("XrBlendFactorFB") int value) { XrCompositionLayerAlphaBlendFB.ndstFactorColor(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerAlphaBlendFB#srcFactorAlpha} field. */ - public XrCompositionLayerAlphaBlendFB.Buffer srcFactorAlpha(@NativeType("XrBlendFactorFB") int value) { XrCompositionLayerAlphaBlendFB.nsrcFactorAlpha(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerAlphaBlendFB#dstFactorAlpha} field. */ - public XrCompositionLayerAlphaBlendFB.Buffer dstFactorAlpha(@NativeType("XrBlendFactorFB") int value) { XrCompositionLayerAlphaBlendFB.ndstFactorAlpha(address(), value); return this; } + + /** @return the value of the {@link XrCompositionLayerAlphaBlendFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerAlphaBlendFB.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerAlphaBlendFB#next} field. */ + @NativeType("void *") + public long next() { return XrCompositionLayerAlphaBlendFB.nnext(address()); } + /** @return the value of the {@link XrCompositionLayerAlphaBlendFB#srcFactorColor} field. */ + @NativeType("XrBlendFactorFB") + public int srcFactorColor() { return XrCompositionLayerAlphaBlendFB.nsrcFactorColor(address()); } + /** @return the value of the {@link XrCompositionLayerAlphaBlendFB#dstFactorColor} field. */ + @NativeType("XrBlendFactorFB") + public int dstFactorColor() { return XrCompositionLayerAlphaBlendFB.ndstFactorColor(address()); } + /** @return the value of the {@link XrCompositionLayerAlphaBlendFB#srcFactorAlpha} field. */ + @NativeType("XrBlendFactorFB") + public int srcFactorAlpha() { return XrCompositionLayerAlphaBlendFB.nsrcFactorAlpha(address()); } + /** @return the value of the {@link XrCompositionLayerAlphaBlendFB#dstFactorAlpha} field. */ + @NativeType("XrBlendFactorFB") + public int dstFactorAlpha() { return XrCompositionLayerAlphaBlendFB.ndstFactorAlpha(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerAlphaBlendFB#type} field. */ + public XrCompositionLayerAlphaBlendFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerAlphaBlendFB.ntype(address(), value); return this; } + /** Sets the {@link FBCompositionLayerAlphaBlend#XR_TYPE_COMPOSITION_LAYER_ALPHA_BLEND_FB TYPE_COMPOSITION_LAYER_ALPHA_BLEND_FB} value to the {@link XrCompositionLayerAlphaBlendFB#type} field. */ + public XrCompositionLayerAlphaBlendFB.Buffer type$Default() { return type(FBCompositionLayerAlphaBlend.XR_TYPE_COMPOSITION_LAYER_ALPHA_BLEND_FB); } + /** Sets the specified value to the {@link XrCompositionLayerAlphaBlendFB#next} field. */ + public XrCompositionLayerAlphaBlendFB.Buffer next(@NativeType("void *") long value) { XrCompositionLayerAlphaBlendFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerAlphaBlendFB#srcFactorColor} field. */ + public XrCompositionLayerAlphaBlendFB.Buffer srcFactorColor(@NativeType("XrBlendFactorFB") int value) { XrCompositionLayerAlphaBlendFB.nsrcFactorColor(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerAlphaBlendFB#dstFactorColor} field. */ + public XrCompositionLayerAlphaBlendFB.Buffer dstFactorColor(@NativeType("XrBlendFactorFB") int value) { XrCompositionLayerAlphaBlendFB.ndstFactorColor(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerAlphaBlendFB#srcFactorAlpha} field. */ + public XrCompositionLayerAlphaBlendFB.Buffer srcFactorAlpha(@NativeType("XrBlendFactorFB") int value) { XrCompositionLayerAlphaBlendFB.nsrcFactorAlpha(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerAlphaBlendFB#dstFactorAlpha} field. */ + public XrCompositionLayerAlphaBlendFB.Buffer dstFactorAlpha(@NativeType("XrBlendFactorFB") int value) { XrCompositionLayerAlphaBlendFB.ndstFactorAlpha(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerBaseHeader.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerBaseHeader.java index e0fafa479c..f1ffcb9d3b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerBaseHeader.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerBaseHeader.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Composition layer base header. * @@ -27,7 +27,7 @@ * *
        *
      • {@code type} must be one of the following XrStructureType values: {@link KHRCompositionLayerCube#XR_TYPE_COMPOSITION_LAYER_CUBE_KHR TYPE_COMPOSITION_LAYER_CUBE_KHR}, {@link KHRCompositionLayerCylinder#XR_TYPE_COMPOSITION_LAYER_CYLINDER_KHR TYPE_COMPOSITION_LAYER_CYLINDER_KHR}, {@link KHRCompositionLayerEquirect2#XR_TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR}, {@link KHRCompositionLayerEquirect#XR_TYPE_COMPOSITION_LAYER_EQUIRECT_KHR TYPE_COMPOSITION_LAYER_EQUIRECT_KHR}, {@link HTCPassthrough#XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC}, {@link XR10#XR_TYPE_COMPOSITION_LAYER_PROJECTION TYPE_COMPOSITION_LAYER_PROJECTION}, {@link XR10#XR_TYPE_COMPOSITION_LAYER_QUAD TYPE_COMPOSITION_LAYER_QUAD}
      • - *
      • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrCompositionLayerAlphaBlendFB}, {@link XrCompositionLayerColorScaleBiasKHR}, {@link XrCompositionLayerDepthTestFB}, {@link XrCompositionLayerImageLayoutFB}, {@link XrCompositionLayerPassthroughFB}, {@link XrCompositionLayerSecureContentFB}, {@link XrCompositionLayerSettingsFB}
      • + *
      • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrCompositionLayerAlphaBlendFB}, {@link XrCompositionLayerColorScaleBiasKHR}, {@link XrCompositionLayerDepthTestFB}, {@link XrCompositionLayerImageLayoutFB}, {@link XrCompositionLayerPassthroughFB}, {@link XrCompositionLayerSecureContentFB}, {@link XrCompositionLayerSettingsFB}
      • *
      • {@code layerFlags} must be 0 or a valid combination of {@code XrCompositionLayerFlagBits} values
      • *
      • {@code space} must be a valid {@code XrSpace} handle
      • *
      @@ -45,8 +45,8 @@ * XrCompositionLayerFlags {@link #layerFlags}; * XrSpace {@link #space}; * } - */ -public class XrCompositionLayerBaseHeader extends Struct implements NativeResource { + */ +public class XrCompositionLayerBaseHeader extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,27 +56,27 @@ public class XrCompositionLayerBaseHeader extends Struct implements NativeResource { @@ -410,42 +410,42 @@ protected Buffer self() { protected XrCompositionLayerBaseHeader getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerBaseHeader#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerBaseHeader.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerBaseHeader#next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerBaseHeader.nnext(address()); } - /** @return the value of the {@link XrCompositionLayerBaseHeader#layerFlags} field. */ - @NativeType("XrCompositionLayerFlags") - public long layerFlags() { return XrCompositionLayerBaseHeader.nlayerFlags(address()); } - /** @return the value of the {@link XrCompositionLayerBaseHeader#space} field. */ - @NativeType("XrSpace") - public long space() { return XrCompositionLayerBaseHeader.nspace(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerBaseHeader#type} field. */ - public XrCompositionLayerBaseHeader.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerBaseHeader.ntype(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerBaseHeader#next} field. */ - public XrCompositionLayerBaseHeader.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerBaseHeader.nnext(address(), value); return this; } - /** Prepends the specified {@link XrCompositionLayerAlphaBlendFB} value to the {@code next} chain. */ - public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerAlphaBlendFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrCompositionLayerColorScaleBiasKHR} value to the {@code next} chain. */ - public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerColorScaleBiasKHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrCompositionLayerDepthTestFB} value to the {@code next} chain. */ - public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerDepthTestFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrCompositionLayerImageLayoutFB} value to the {@code next} chain. */ - public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerImageLayoutFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrCompositionLayerPassthroughFB} value to the {@code next} chain. */ - public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerPassthroughFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrCompositionLayerSecureContentFB} value to the {@code next} chain. */ - public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerSecureContentFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrCompositionLayerSettingsFB} value to the {@code next} chain. */ - public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerSettingsFB value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrCompositionLayerBaseHeader#layerFlags} field. */ - public XrCompositionLayerBaseHeader.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerBaseHeader.nlayerFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerBaseHeader#space} field. */ - public XrCompositionLayerBaseHeader.Buffer space(XrSpace value) { XrCompositionLayerBaseHeader.nspace(address(), value); return this; } + + /** @return the value of the {@link XrCompositionLayerBaseHeader#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerBaseHeader.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerBaseHeader#next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerBaseHeader.nnext(address()); } + /** @return the value of the {@link XrCompositionLayerBaseHeader#layerFlags} field. */ + @NativeType("XrCompositionLayerFlags") + public long layerFlags() { return XrCompositionLayerBaseHeader.nlayerFlags(address()); } + /** @return the value of the {@link XrCompositionLayerBaseHeader#space} field. */ + @NativeType("XrSpace") + public long space() { return XrCompositionLayerBaseHeader.nspace(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerBaseHeader#type} field. */ + public XrCompositionLayerBaseHeader.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerBaseHeader.ntype(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerBaseHeader#next} field. */ + public XrCompositionLayerBaseHeader.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerBaseHeader.nnext(address(), value); return this; } + /** Prepends the specified {@link XrCompositionLayerAlphaBlendFB} value to the {@code next} chain. */ + public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerAlphaBlendFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrCompositionLayerColorScaleBiasKHR} value to the {@code next} chain. */ + public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerColorScaleBiasKHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrCompositionLayerDepthTestFB} value to the {@code next} chain. */ + public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerDepthTestFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrCompositionLayerImageLayoutFB} value to the {@code next} chain. */ + public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerImageLayoutFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrCompositionLayerPassthroughFB} value to the {@code next} chain. */ + public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerPassthroughFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrCompositionLayerSecureContentFB} value to the {@code next} chain. */ + public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerSecureContentFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrCompositionLayerSettingsFB} value to the {@code next} chain. */ + public XrCompositionLayerBaseHeader.Buffer next(XrCompositionLayerSettingsFB value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrCompositionLayerBaseHeader#layerFlags} field. */ + public XrCompositionLayerBaseHeader.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerBaseHeader.nlayerFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerBaseHeader#space} field. */ + public XrCompositionLayerBaseHeader.Buffer space(XrSpace value) { XrCompositionLayerBaseHeader.nspace(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerColorScaleBiasKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerColorScaleBiasKHR.java index ab70f79fe5..b7525d46d0 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerColorScaleBiasKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerColorScaleBiasKHR.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * defines color scale and bias for layer textures. * @@ -29,7 +29,7 @@ *
        *
      • The {@link KHRCompositionLayerColorScaleBias XR_KHR_composition_layer_color_scale_bias} extension must be enabled prior to using {@link XrCompositionLayerColorScaleBiasKHR}
      • *
      • {@code type} must be {@link KHRCompositionLayerColorScaleBias#XR_TYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR TYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR}
      • - *
      • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
      • + *
      • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
      • *
      * *
      See Also
      @@ -45,8 +45,8 @@ * {@link XrColor4f XrColor4f} {@link #colorScale}; * {@link XrColor4f XrColor4f} {@link #colorBias}; * } - */ -public class XrCompositionLayerColorScaleBiasKHR extends Struct implements NativeResource { + */ +public class XrCompositionLayerColorScaleBiasKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,27 +56,27 @@ public class XrCompositionLayerColorScaleBiasKHR extends Struct consumer) { consumer.accept(colorScale()); return this; } - /** Copies the specified {@link XrColor4f} to the {@link #colorBias} field. */ - public XrCompositionLayerColorScaleBiasKHR colorBias(XrColor4f value) { ncolorBias(address(), value); return this; } - /** Passes the {@link #colorBias} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerColorScaleBiasKHR colorBias(java.util.function.Consumer consumer) { consumer.accept(colorBias()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** an {@link XrColor4f} which will modulate the color sourced from the images. */ + public XrColor4f colorScale() { return ncolorScale(address()); } + /** an {@link XrColor4f} which will offset the color sourced from the images. */ + public XrColor4f colorBias() { return ncolorBias(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrCompositionLayerColorScaleBiasKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHRCompositionLayerColorScaleBias#XR_TYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR TYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR} value to the {@link #type} field. */ + public XrCompositionLayerColorScaleBiasKHR type$Default() { return type(KHRCompositionLayerColorScaleBias.XR_TYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR); } + /** Sets the specified value to the {@link #next} field. */ + public XrCompositionLayerColorScaleBiasKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link XrColor4f} to the {@link #colorScale} field. */ + public XrCompositionLayerColorScaleBiasKHR colorScale(XrColor4f value) { ncolorScale(address(), value); return this; } + /** Passes the {@link #colorScale} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerColorScaleBiasKHR colorScale(java.util.function.Consumer consumer) { consumer.accept(colorScale()); return this; } + /** Copies the specified {@link XrColor4f} to the {@link #colorBias} field. */ + public XrCompositionLayerColorScaleBiasKHR colorBias(XrColor4f value) { ncolorBias(address(), value); return this; } + /** Passes the {@link #colorBias} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerColorScaleBiasKHR colorBias(java.util.function.Consumer consumer) { consumer.accept(colorBias()); return this; } /** Initializes this struct with the specified values. */ public XrCompositionLayerColorScaleBiasKHR set( - int type, - long next, - XrColor4f colorScale, + int type, + long next, + XrColor4f colorScale, XrColor4f colorBias - ) { - type(type); - next(next); - colorScale(colorScale); - colorBias(colorBias); + ) { + type(type); + next(next); + colorScale(colorScale); + colorBias(colorBias); return this; } @@ -265,26 +265,26 @@ public static XrCompositionLayerColorScaleBiasKHR.Buffer calloc(int capacity, Me } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerColorScaleBiasKHR.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerColorScaleBiasKHR.NEXT); } - /** Unsafe version of {@link #colorScale}. */ - public static XrColor4f ncolorScale(long struct) { return XrColor4f.create(struct + XrCompositionLayerColorScaleBiasKHR.COLORSCALE); } - /** Unsafe version of {@link #colorBias}. */ - public static XrColor4f ncolorBias(long struct) { return XrColor4f.create(struct + XrCompositionLayerColorScaleBiasKHR.COLORBIAS); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerColorScaleBiasKHR.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerColorScaleBiasKHR.NEXT, value); } - /** Unsafe version of {@link #colorScale(XrColor4f) colorScale}. */ - public static void ncolorScale(long struct, XrColor4f value) { memCopy(value.address(), struct + XrCompositionLayerColorScaleBiasKHR.COLORSCALE, XrColor4f.SIZEOF); } - /** Unsafe version of {@link #colorBias(XrColor4f) colorBias}. */ - public static void ncolorBias(long struct, XrColor4f value) { memCopy(value.address(), struct + XrCompositionLayerColorScaleBiasKHR.COLORBIAS, XrColor4f.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerColorScaleBiasKHR.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerColorScaleBiasKHR.NEXT); } + /** Unsafe version of {@link #colorScale}. */ + public static XrColor4f ncolorScale(long struct) { return XrColor4f.create(struct + XrCompositionLayerColorScaleBiasKHR.COLORSCALE); } + /** Unsafe version of {@link #colorBias}. */ + public static XrColor4f ncolorBias(long struct) { return XrColor4f.create(struct + XrCompositionLayerColorScaleBiasKHR.COLORBIAS); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerColorScaleBiasKHR.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerColorScaleBiasKHR.NEXT, value); } + /** Unsafe version of {@link #colorScale(XrColor4f) colorScale}. */ + public static void ncolorScale(long struct, XrColor4f value) { memCopy(value.address(), struct + XrCompositionLayerColorScaleBiasKHR.COLORSCALE, XrColor4f.SIZEOF); } + /** Unsafe version of {@link #colorBias(XrColor4f) colorBias}. */ + public static void ncolorBias(long struct, XrColor4f value) { memCopy(value.address(), struct + XrCompositionLayerColorScaleBiasKHR.COLORBIAS, XrColor4f.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrCompositionLayerColorScaleBiasKHR} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -321,32 +321,32 @@ protected Buffer self() { protected XrCompositionLayerColorScaleBiasKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerColorScaleBiasKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerColorScaleBiasKHR.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerColorScaleBiasKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerColorScaleBiasKHR.nnext(address()); } - /** @return a {@link XrColor4f} view of the {@link XrCompositionLayerColorScaleBiasKHR#colorScale} field. */ - public XrColor4f colorScale() { return XrCompositionLayerColorScaleBiasKHR.ncolorScale(address()); } - /** @return a {@link XrColor4f} view of the {@link XrCompositionLayerColorScaleBiasKHR#colorBias} field. */ - public XrColor4f colorBias() { return XrCompositionLayerColorScaleBiasKHR.ncolorBias(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerColorScaleBiasKHR#type} field. */ - public XrCompositionLayerColorScaleBiasKHR.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerColorScaleBiasKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRCompositionLayerColorScaleBias#XR_TYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR TYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR} value to the {@link XrCompositionLayerColorScaleBiasKHR#type} field. */ - public XrCompositionLayerColorScaleBiasKHR.Buffer type$Default() { return type(KHRCompositionLayerColorScaleBias.XR_TYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR); } - /** Sets the specified value to the {@link XrCompositionLayerColorScaleBiasKHR#next} field. */ - public XrCompositionLayerColorScaleBiasKHR.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerColorScaleBiasKHR.nnext(address(), value); return this; } - /** Copies the specified {@link XrColor4f} to the {@link XrCompositionLayerColorScaleBiasKHR#colorScale} field. */ - public XrCompositionLayerColorScaleBiasKHR.Buffer colorScale(XrColor4f value) { XrCompositionLayerColorScaleBiasKHR.ncolorScale(address(), value); return this; } - /** Passes the {@link XrCompositionLayerColorScaleBiasKHR#colorScale} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerColorScaleBiasKHR.Buffer colorScale(java.util.function.Consumer consumer) { consumer.accept(colorScale()); return this; } - /** Copies the specified {@link XrColor4f} to the {@link XrCompositionLayerColorScaleBiasKHR#colorBias} field. */ - public XrCompositionLayerColorScaleBiasKHR.Buffer colorBias(XrColor4f value) { XrCompositionLayerColorScaleBiasKHR.ncolorBias(address(), value); return this; } - /** Passes the {@link XrCompositionLayerColorScaleBiasKHR#colorBias} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerColorScaleBiasKHR.Buffer colorBias(java.util.function.Consumer consumer) { consumer.accept(colorBias()); return this; } + + /** @return the value of the {@link XrCompositionLayerColorScaleBiasKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerColorScaleBiasKHR.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerColorScaleBiasKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerColorScaleBiasKHR.nnext(address()); } + /** @return a {@link XrColor4f} view of the {@link XrCompositionLayerColorScaleBiasKHR#colorScale} field. */ + public XrColor4f colorScale() { return XrCompositionLayerColorScaleBiasKHR.ncolorScale(address()); } + /** @return a {@link XrColor4f} view of the {@link XrCompositionLayerColorScaleBiasKHR#colorBias} field. */ + public XrColor4f colorBias() { return XrCompositionLayerColorScaleBiasKHR.ncolorBias(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerColorScaleBiasKHR#type} field. */ + public XrCompositionLayerColorScaleBiasKHR.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerColorScaleBiasKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRCompositionLayerColorScaleBias#XR_TYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR TYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR} value to the {@link XrCompositionLayerColorScaleBiasKHR#type} field. */ + public XrCompositionLayerColorScaleBiasKHR.Buffer type$Default() { return type(KHRCompositionLayerColorScaleBias.XR_TYPE_COMPOSITION_LAYER_COLOR_SCALE_BIAS_KHR); } + /** Sets the specified value to the {@link XrCompositionLayerColorScaleBiasKHR#next} field. */ + public XrCompositionLayerColorScaleBiasKHR.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerColorScaleBiasKHR.nnext(address(), value); return this; } + /** Copies the specified {@link XrColor4f} to the {@link XrCompositionLayerColorScaleBiasKHR#colorScale} field. */ + public XrCompositionLayerColorScaleBiasKHR.Buffer colorScale(XrColor4f value) { XrCompositionLayerColorScaleBiasKHR.ncolorScale(address(), value); return this; } + /** Passes the {@link XrCompositionLayerColorScaleBiasKHR#colorScale} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerColorScaleBiasKHR.Buffer colorScale(java.util.function.Consumer consumer) { consumer.accept(colorScale()); return this; } + /** Copies the specified {@link XrColor4f} to the {@link XrCompositionLayerColorScaleBiasKHR#colorBias} field. */ + public XrCompositionLayerColorScaleBiasKHR.Buffer colorBias(XrColor4f value) { XrCompositionLayerColorScaleBiasKHR.ncolorBias(address(), value); return this; } + /** Passes the {@link XrCompositionLayerColorScaleBiasKHR#colorBias} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerColorScaleBiasKHR.Buffer colorBias(java.util.function.Consumer consumer) { consumer.accept(colorBias()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerCubeKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerCubeKHR.java index ed55ed5222..f7258e4abe 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerCubeKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerCubeKHR.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Cube map layer composition info. * @@ -28,7 +28,7 @@ *
        *
      • The {@link KHRCompositionLayerCube XR_KHR_composition_layer_cube} extension must be enabled prior to using {@link XrCompositionLayerCubeKHR}
      • *
      • {@code type} must be {@link KHRCompositionLayerCube#XR_TYPE_COMPOSITION_LAYER_CUBE_KHR TYPE_COMPOSITION_LAYER_CUBE_KHR}
      • - *
      • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
      • + *
      • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
      • *
      • {@code layerFlags} must be 0 or a valid combination of {@code XrCompositionLayerFlagBits} values
      • *
      • {@code space} must be a valid {@code XrSpace} handle
      • *
      • {@code eyeVisibility} must be a valid {@code XrEyeVisibility} value
      • @@ -48,13 +48,13 @@ * void const * {@link #next}; * XrCompositionLayerFlags {@link #layerFlags}; * XrSpace {@link #space}; - * XrEyeVisibility {@link #eyeVisibility}; + * XrEyeVisibility eyeVisibility; * XrSwapchain {@link #swapchain}; * uint32_t {@link #imageArrayIndex}; * {@link XrQuaternionf XrQuaternionf} {@link #orientation}; * } - */ -public class XrCompositionLayerCubeKHR extends Struct implements NativeResource { + */ +public class XrCompositionLayerCubeKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -64,39 +64,39 @@ public class XrCompositionLayerCubeKHR extends Struct /** The struct member offsets. */ public static final int - TYPE, - NEXT, - LAYERFLAGS, - SPACE, - EYEVISIBILITY, - SWAPCHAIN, - IMAGEARRAYINDEX, - ORIENTATION; + TYPE, + NEXT, + LAYERFLAGS, + SPACE, + EYEVISIBILITY, + SWAPCHAIN, + IMAGEARRAYINDEX, + ORIENTATION; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), - __member(POINTER_SIZE), - __member(4), - __member(POINTER_SIZE), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), + __member(POINTER_SIZE), + __member(4), + __member(POINTER_SIZE), + __member(4), __member(XrQuaternionf.SIZEOF, XrQuaternionf.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - LAYERFLAGS = layout.offsetof(2); - SPACE = layout.offsetof(3); - EYEVISIBILITY = layout.offsetof(4); - SWAPCHAIN = layout.offsetof(5); - IMAGEARRAYINDEX = layout.offsetof(6); - ORIENTATION = layout.offsetof(7); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + LAYERFLAGS = layout.offsetof(2); + SPACE = layout.offsetof(3); + EYEVISIBILITY = layout.offsetof(4); + SWAPCHAIN = layout.offsetof(5); + IMAGEARRAYINDEX = layout.offsetof(6); + ORIENTATION = layout.offsetof(7); + } protected XrCompositionLayerCubeKHR(long address, @Nullable ByteBuffer container) { super(address, container); @@ -119,71 +119,71 @@ public XrCompositionLayerCubeKHR(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** any flags to apply to this layer. */ - @NativeType("XrCompositionLayerFlags") - public long layerFlags() { return nlayerFlags(address()); } - /** the {@code XrSpace} in which the {@code orientation} of the cube layer is evaluated over time. */ - @NativeType("XrSpace") - public long space() { return nspace(address()); } - /** the eye represented by this layer. */ - @NativeType("XrEyeVisibility") - public int eyeVisibility() { return neyeVisibility(address()); } - /** the swapchain, which must have been created with a {@code faceCount} of 6. */ - @NativeType("XrSwapchain") - public long swapchain() { return nswapchain(address()); } - /** the image array index, with 0 meaning the first or only array element. */ - @NativeType("uint32_t") - public int imageArrayIndex() { return nimageArrayIndex(address()); } - /** the orientation of the environment map in the {@code space}. */ - public XrQuaternionf orientation() { return norientation(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrCompositionLayerCubeKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link KHRCompositionLayerCube#XR_TYPE_COMPOSITION_LAYER_CUBE_KHR TYPE_COMPOSITION_LAYER_CUBE_KHR} value to the {@link #type} field. */ - public XrCompositionLayerCubeKHR type$Default() { return type(KHRCompositionLayerCube.XR_TYPE_COMPOSITION_LAYER_CUBE_KHR); } - /** Sets the specified value to the {@link #next} field. */ - public XrCompositionLayerCubeKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #layerFlags} field. */ - public XrCompositionLayerCubeKHR layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; } - /** Sets the specified value to the {@link #space} field. */ - public XrCompositionLayerCubeKHR space(XrSpace value) { nspace(address(), value); return this; } - /** Sets the specified value to the {@link #eyeVisibility} field. */ - public XrCompositionLayerCubeKHR eyeVisibility(@NativeType("XrEyeVisibility") int value) { neyeVisibility(address(), value); return this; } - /** Sets the specified value to the {@link #swapchain} field. */ - public XrCompositionLayerCubeKHR swapchain(XrSwapchain value) { nswapchain(address(), value); return this; } - /** Sets the specified value to the {@link #imageArrayIndex} field. */ - public XrCompositionLayerCubeKHR imageArrayIndex(@NativeType("uint32_t") int value) { nimageArrayIndex(address(), value); return this; } - /** Copies the specified {@link XrQuaternionf} to the {@link #orientation} field. */ - public XrCompositionLayerCubeKHR orientation(XrQuaternionf value) { norientation(address(), value); return this; } - /** Passes the {@link #orientation} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerCubeKHR orientation(java.util.function.Consumer consumer) { consumer.accept(orientation()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** any flags to apply to this layer. */ + @NativeType("XrCompositionLayerFlags") + public long layerFlags() { return nlayerFlags(address()); } + /** the {@code XrSpace} in which the {@code orientation} of the cube layer is evaluated over time. */ + @NativeType("XrSpace") + public long space() { return nspace(address()); } + /** @return the value of the {@code eyeVisibility} field. */ + @NativeType("XrEyeVisibility") + public int eyeVisibility() { return neyeVisibility(address()); } + /** the swapchain, which must have been created with a {@code faceCount} of 6. */ + @NativeType("XrSwapchain") + public long swapchain() { return nswapchain(address()); } + /** the image array index, with 0 meaning the first or only array element. */ + @NativeType("uint32_t") + public int imageArrayIndex() { return nimageArrayIndex(address()); } + /** the orientation of the environment map in the {@code space}. */ + public XrQuaternionf orientation() { return norientation(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrCompositionLayerCubeKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHRCompositionLayerCube#XR_TYPE_COMPOSITION_LAYER_CUBE_KHR TYPE_COMPOSITION_LAYER_CUBE_KHR} value to the {@link #type} field. */ + public XrCompositionLayerCubeKHR type$Default() { return type(KHRCompositionLayerCube.XR_TYPE_COMPOSITION_LAYER_CUBE_KHR); } + /** Sets the specified value to the {@link #next} field. */ + public XrCompositionLayerCubeKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #layerFlags} field. */ + public XrCompositionLayerCubeKHR layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; } + /** Sets the specified value to the {@link #space} field. */ + public XrCompositionLayerCubeKHR space(XrSpace value) { nspace(address(), value); return this; } + /** Sets the specified value to the {@code eyeVisibility} field. */ + public XrCompositionLayerCubeKHR eyeVisibility(@NativeType("XrEyeVisibility") int value) { neyeVisibility(address(), value); return this; } + /** Sets the specified value to the {@link #swapchain} field. */ + public XrCompositionLayerCubeKHR swapchain(XrSwapchain value) { nswapchain(address(), value); return this; } + /** Sets the specified value to the {@link #imageArrayIndex} field. */ + public XrCompositionLayerCubeKHR imageArrayIndex(@NativeType("uint32_t") int value) { nimageArrayIndex(address(), value); return this; } + /** Copies the specified {@link XrQuaternionf} to the {@link #orientation} field. */ + public XrCompositionLayerCubeKHR orientation(XrQuaternionf value) { norientation(address(), value); return this; } + /** Passes the {@link #orientation} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerCubeKHR orientation(java.util.function.Consumer consumer) { consumer.accept(orientation()); return this; } /** Initializes this struct with the specified values. */ public XrCompositionLayerCubeKHR set( - int type, - long next, - long layerFlags, - XrSpace space, - int eyeVisibility, - XrSwapchain swapchain, - int imageArrayIndex, + int type, + long next, + long layerFlags, + XrSpace space, + int eyeVisibility, + XrSwapchain swapchain, + int imageArrayIndex, XrQuaternionf orientation - ) { - type(type); - next(next); - layerFlags(layerFlags); - space(space); - eyeVisibility(eyeVisibility); - swapchain(swapchain); - imageArrayIndex(imageArrayIndex); - orientation(orientation); + ) { + type(type); + next(next); + layerFlags(layerFlags); + space(space); + eyeVisibility(eyeVisibility); + swapchain(swapchain); + imageArrayIndex(imageArrayIndex); + orientation(orientation); return this; } @@ -322,40 +322,40 @@ public static XrCompositionLayerCubeKHR.Buffer calloc(int capacity, MemoryStack } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerCubeKHR.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerCubeKHR.NEXT); } - /** Unsafe version of {@link #layerFlags}. */ - public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerCubeKHR.LAYERFLAGS); } - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerCubeKHR.SPACE); } - /** Unsafe version of {@link #eyeVisibility}. */ - public static int neyeVisibility(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerCubeKHR.EYEVISIBILITY); } - /** Unsafe version of {@link #swapchain}. */ - public static long nswapchain(long struct) { return memGetAddress(struct + XrCompositionLayerCubeKHR.SWAPCHAIN); } - /** Unsafe version of {@link #imageArrayIndex}. */ - public static int nimageArrayIndex(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerCubeKHR.IMAGEARRAYINDEX); } - /** Unsafe version of {@link #orientation}. */ - public static XrQuaternionf norientation(long struct) { return XrQuaternionf.create(struct + XrCompositionLayerCubeKHR.ORIENTATION); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerCubeKHR.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerCubeKHR.NEXT, value); } - /** Unsafe version of {@link #layerFlags(long) layerFlags}. */ - public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerCubeKHR.LAYERFLAGS, value); } - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerCubeKHR.SPACE, value.address()); } - /** Unsafe version of {@link #eyeVisibility(int) eyeVisibility}. */ - public static void neyeVisibility(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerCubeKHR.EYEVISIBILITY, value); } - /** Unsafe version of {@link #swapchain(XrSwapchain) swapchain}. */ - public static void nswapchain(long struct, XrSwapchain value) { memPutAddress(struct + XrCompositionLayerCubeKHR.SWAPCHAIN, value.address()); } - /** Unsafe version of {@link #imageArrayIndex(int) imageArrayIndex}. */ - public static void nimageArrayIndex(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerCubeKHR.IMAGEARRAYINDEX, value); } - /** Unsafe version of {@link #orientation(XrQuaternionf) orientation}. */ - public static void norientation(long struct, XrQuaternionf value) { memCopy(value.address(), struct + XrCompositionLayerCubeKHR.ORIENTATION, XrQuaternionf.SIZEOF); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerCubeKHR.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerCubeKHR.NEXT); } + /** Unsafe version of {@link #layerFlags}. */ + public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerCubeKHR.LAYERFLAGS); } + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerCubeKHR.SPACE); } + /** Unsafe version of {@link #eyeVisibility}. */ + public static int neyeVisibility(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerCubeKHR.EYEVISIBILITY); } + /** Unsafe version of {@link #swapchain}. */ + public static long nswapchain(long struct) { return memGetAddress(struct + XrCompositionLayerCubeKHR.SWAPCHAIN); } + /** Unsafe version of {@link #imageArrayIndex}. */ + public static int nimageArrayIndex(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerCubeKHR.IMAGEARRAYINDEX); } + /** Unsafe version of {@link #orientation}. */ + public static XrQuaternionf norientation(long struct) { return XrQuaternionf.create(struct + XrCompositionLayerCubeKHR.ORIENTATION); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerCubeKHR.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerCubeKHR.NEXT, value); } + /** Unsafe version of {@link #layerFlags(long) layerFlags}. */ + public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerCubeKHR.LAYERFLAGS, value); } + /** Unsafe version of {@link #space(XrSpace) space}. */ + public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerCubeKHR.SPACE, value.address()); } + /** Unsafe version of {@link #eyeVisibility(int) eyeVisibility}. */ + public static void neyeVisibility(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerCubeKHR.EYEVISIBILITY, value); } + /** Unsafe version of {@link #swapchain(XrSwapchain) swapchain}. */ + public static void nswapchain(long struct, XrSwapchain value) { memPutAddress(struct + XrCompositionLayerCubeKHR.SWAPCHAIN, value.address()); } + /** Unsafe version of {@link #imageArrayIndex(int) imageArrayIndex}. */ + public static void nimageArrayIndex(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerCubeKHR.IMAGEARRAYINDEX, value); } + /** Unsafe version of {@link #orientation(XrQuaternionf) orientation}. */ + public static void norientation(long struct, XrQuaternionf value) { memCopy(value.address(), struct + XrCompositionLayerCubeKHR.ORIENTATION, XrQuaternionf.SIZEOF); } /** * Validates pointer members that should not be {@code NULL}. @@ -365,9 +365,9 @@ public static XrCompositionLayerCubeKHR.Buffer calloc(int capacity, MemoryStack public static void validate(long struct) { check(memGetAddress(struct + XrCompositionLayerCubeKHR.SPACE)); check(memGetAddress(struct + XrCompositionLayerCubeKHR.SWAPCHAIN)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrCompositionLayerCubeKHR} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -404,51 +404,51 @@ protected Buffer self() { protected XrCompositionLayerCubeKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerCubeKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerCubeKHR.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerCubeKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerCubeKHR.nnext(address()); } - /** @return the value of the {@link XrCompositionLayerCubeKHR#layerFlags} field. */ - @NativeType("XrCompositionLayerFlags") - public long layerFlags() { return XrCompositionLayerCubeKHR.nlayerFlags(address()); } - /** @return the value of the {@link XrCompositionLayerCubeKHR#space} field. */ - @NativeType("XrSpace") - public long space() { return XrCompositionLayerCubeKHR.nspace(address()); } - /** @return the value of the {@link XrCompositionLayerCubeKHR#eyeVisibility} field. */ - @NativeType("XrEyeVisibility") - public int eyeVisibility() { return XrCompositionLayerCubeKHR.neyeVisibility(address()); } - /** @return the value of the {@link XrCompositionLayerCubeKHR#swapchain} field. */ - @NativeType("XrSwapchain") - public long swapchain() { return XrCompositionLayerCubeKHR.nswapchain(address()); } - /** @return the value of the {@link XrCompositionLayerCubeKHR#imageArrayIndex} field. */ - @NativeType("uint32_t") - public int imageArrayIndex() { return XrCompositionLayerCubeKHR.nimageArrayIndex(address()); } - /** @return a {@link XrQuaternionf} view of the {@link XrCompositionLayerCubeKHR#orientation} field. */ - public XrQuaternionf orientation() { return XrCompositionLayerCubeKHR.norientation(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerCubeKHR#type} field. */ - public XrCompositionLayerCubeKHR.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerCubeKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRCompositionLayerCube#XR_TYPE_COMPOSITION_LAYER_CUBE_KHR TYPE_COMPOSITION_LAYER_CUBE_KHR} value to the {@link XrCompositionLayerCubeKHR#type} field. */ - public XrCompositionLayerCubeKHR.Buffer type$Default() { return type(KHRCompositionLayerCube.XR_TYPE_COMPOSITION_LAYER_CUBE_KHR); } - /** Sets the specified value to the {@link XrCompositionLayerCubeKHR#next} field. */ - public XrCompositionLayerCubeKHR.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerCubeKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerCubeKHR#layerFlags} field. */ - public XrCompositionLayerCubeKHR.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerCubeKHR.nlayerFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerCubeKHR#space} field. */ - public XrCompositionLayerCubeKHR.Buffer space(XrSpace value) { XrCompositionLayerCubeKHR.nspace(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerCubeKHR#eyeVisibility} field. */ - public XrCompositionLayerCubeKHR.Buffer eyeVisibility(@NativeType("XrEyeVisibility") int value) { XrCompositionLayerCubeKHR.neyeVisibility(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerCubeKHR#swapchain} field. */ - public XrCompositionLayerCubeKHR.Buffer swapchain(XrSwapchain value) { XrCompositionLayerCubeKHR.nswapchain(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerCubeKHR#imageArrayIndex} field. */ - public XrCompositionLayerCubeKHR.Buffer imageArrayIndex(@NativeType("uint32_t") int value) { XrCompositionLayerCubeKHR.nimageArrayIndex(address(), value); return this; } - /** Copies the specified {@link XrQuaternionf} to the {@link XrCompositionLayerCubeKHR#orientation} field. */ - public XrCompositionLayerCubeKHR.Buffer orientation(XrQuaternionf value) { XrCompositionLayerCubeKHR.norientation(address(), value); return this; } - /** Passes the {@link XrCompositionLayerCubeKHR#orientation} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerCubeKHR.Buffer orientation(java.util.function.Consumer consumer) { consumer.accept(orientation()); return this; } + + /** @return the value of the {@link XrCompositionLayerCubeKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerCubeKHR.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerCubeKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerCubeKHR.nnext(address()); } + /** @return the value of the {@link XrCompositionLayerCubeKHR#layerFlags} field. */ + @NativeType("XrCompositionLayerFlags") + public long layerFlags() { return XrCompositionLayerCubeKHR.nlayerFlags(address()); } + /** @return the value of the {@link XrCompositionLayerCubeKHR#space} field. */ + @NativeType("XrSpace") + public long space() { return XrCompositionLayerCubeKHR.nspace(address()); } + /** @return the value of the {@code eyeVisibility} field. */ + @NativeType("XrEyeVisibility") + public int eyeVisibility() { return XrCompositionLayerCubeKHR.neyeVisibility(address()); } + /** @return the value of the {@link XrCompositionLayerCubeKHR#swapchain} field. */ + @NativeType("XrSwapchain") + public long swapchain() { return XrCompositionLayerCubeKHR.nswapchain(address()); } + /** @return the value of the {@link XrCompositionLayerCubeKHR#imageArrayIndex} field. */ + @NativeType("uint32_t") + public int imageArrayIndex() { return XrCompositionLayerCubeKHR.nimageArrayIndex(address()); } + /** @return a {@link XrQuaternionf} view of the {@link XrCompositionLayerCubeKHR#orientation} field. */ + public XrQuaternionf orientation() { return XrCompositionLayerCubeKHR.norientation(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerCubeKHR#type} field. */ + public XrCompositionLayerCubeKHR.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerCubeKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRCompositionLayerCube#XR_TYPE_COMPOSITION_LAYER_CUBE_KHR TYPE_COMPOSITION_LAYER_CUBE_KHR} value to the {@link XrCompositionLayerCubeKHR#type} field. */ + public XrCompositionLayerCubeKHR.Buffer type$Default() { return type(KHRCompositionLayerCube.XR_TYPE_COMPOSITION_LAYER_CUBE_KHR); } + /** Sets the specified value to the {@link XrCompositionLayerCubeKHR#next} field. */ + public XrCompositionLayerCubeKHR.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerCubeKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerCubeKHR#layerFlags} field. */ + public XrCompositionLayerCubeKHR.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerCubeKHR.nlayerFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerCubeKHR#space} field. */ + public XrCompositionLayerCubeKHR.Buffer space(XrSpace value) { XrCompositionLayerCubeKHR.nspace(address(), value); return this; } + /** Sets the specified value to the {@code eyeVisibility} field. */ + public XrCompositionLayerCubeKHR.Buffer eyeVisibility(@NativeType("XrEyeVisibility") int value) { XrCompositionLayerCubeKHR.neyeVisibility(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerCubeKHR#swapchain} field. */ + public XrCompositionLayerCubeKHR.Buffer swapchain(XrSwapchain value) { XrCompositionLayerCubeKHR.nswapchain(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerCubeKHR#imageArrayIndex} field. */ + public XrCompositionLayerCubeKHR.Buffer imageArrayIndex(@NativeType("uint32_t") int value) { XrCompositionLayerCubeKHR.nimageArrayIndex(address(), value); return this; } + /** Copies the specified {@link XrQuaternionf} to the {@link XrCompositionLayerCubeKHR#orientation} field. */ + public XrCompositionLayerCubeKHR.Buffer orientation(XrQuaternionf value) { XrCompositionLayerCubeKHR.norientation(address(), value); return this; } + /** Passes the {@link XrCompositionLayerCubeKHR#orientation} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerCubeKHR.Buffer orientation(java.util.function.Consumer consumer) { consumer.accept(orientation()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerCylinderKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerCylinderKHR.java index 95f8f5336e..15fde50891 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerCylinderKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerCylinderKHR.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Cylindrical layer composition info. * @@ -28,7 +28,7 @@ *
          *
        • The {@link KHRCompositionLayerCylinder XR_KHR_composition_layer_cylinder} extension must be enabled prior to using {@link XrCompositionLayerCylinderKHR}
        • *
        • {@code type} must be {@link KHRCompositionLayerCylinder#XR_TYPE_COMPOSITION_LAYER_CYLINDER_KHR TYPE_COMPOSITION_LAYER_CYLINDER_KHR}
        • - *
        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
        • + *
        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
        • *
        • {@code layerFlags} must be 0 or a valid combination of {@code XrCompositionLayerFlagBits} values
        • *
        • {@code space} must be a valid {@code XrSpace} handle
        • *
        • {@code eyeVisibility} must be a valid {@code XrEyeVisibility} value
        • @@ -47,15 +47,15 @@ * void const * {@link #next}; * XrCompositionLayerFlags {@link #layerFlags}; * XrSpace {@link #space}; - * XrEyeVisibility {@link #eyeVisibility}; + * XrEyeVisibility eyeVisibility; * {@link XrSwapchainSubImage XrSwapchainSubImage} {@link #subImage}; * {@link XrPosef XrPosef} {@link #pose}; * float {@link #radius}; * float {@link #centralAngle}; * float {@link #aspectRatio}; * } - */ -public class XrCompositionLayerCylinderKHR extends Struct implements NativeResource { + */ +public class XrCompositionLayerCylinderKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -65,45 +65,45 @@ public class XrCompositionLayerCylinderKHR extends Structmust have been created with a {@code faceCount} of 1. */ - public XrSwapchainSubImage subImage() { return nsubImage(address()); } - /** an {@link XrPosef} defining the position and orientation of the center point of the view of the cylinder within the reference frame of the {@code space}. */ - public XrPosef pose() { return npose(address()); } - /** the non-negative radius of the cylinder. Values of zero or floating point positive infinity are treated as an infinite cylinder. */ - public float radius() { return nradius(address()); } - /** the angle of the visible section of the cylinder, based at 0 radians, in the range of [0, 2π). It grows symmetrically around the 0 radian angle. */ - public float centralAngle() { return ncentralAngle(address()); } - /** the ratio of the visible cylinder section width / height. The height of the cylinder is given by: (cylinder radius × cylinder angle) / aspectRatio. */ - public float aspectRatio() { return naspectRatio(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrCompositionLayerCylinderKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link KHRCompositionLayerCylinder#XR_TYPE_COMPOSITION_LAYER_CYLINDER_KHR TYPE_COMPOSITION_LAYER_CYLINDER_KHR} value to the {@link #type} field. */ - public XrCompositionLayerCylinderKHR type$Default() { return type(KHRCompositionLayerCylinder.XR_TYPE_COMPOSITION_LAYER_CYLINDER_KHR); } - /** Sets the specified value to the {@link #next} field. */ - public XrCompositionLayerCylinderKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #layerFlags} field. */ - public XrCompositionLayerCylinderKHR layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; } - /** Sets the specified value to the {@link #space} field. */ - public XrCompositionLayerCylinderKHR space(XrSpace value) { nspace(address(), value); return this; } - /** Sets the specified value to the {@link #eyeVisibility} field. */ - public XrCompositionLayerCylinderKHR eyeVisibility(@NativeType("XrEyeVisibility") int value) { neyeVisibility(address(), value); return this; } - /** Copies the specified {@link XrSwapchainSubImage} to the {@link #subImage} field. */ - public XrCompositionLayerCylinderKHR subImage(XrSwapchainSubImage value) { nsubImage(address(), value); return this; } - /** Passes the {@link #subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerCylinderKHR subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } - /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ - public XrCompositionLayerCylinderKHR pose(XrPosef value) { npose(address(), value); return this; } - /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerCylinderKHR pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Sets the specified value to the {@link #radius} field. */ - public XrCompositionLayerCylinderKHR radius(float value) { nradius(address(), value); return this; } - /** Sets the specified value to the {@link #centralAngle} field. */ - public XrCompositionLayerCylinderKHR centralAngle(float value) { ncentralAngle(address(), value); return this; } - /** Sets the specified value to the {@link #aspectRatio} field. */ - public XrCompositionLayerCylinderKHR aspectRatio(float value) { naspectRatio(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** specifies options for the layer. */ + @NativeType("XrCompositionLayerFlags") + public long layerFlags() { return nlayerFlags(address()); } + /** the {@code XrSpace} in which the {@code pose} of the cylinder layer is evaluated over time. */ + @NativeType("XrSpace") + public long space() { return nspace(address()); } + /** @return the value of the {@code eyeVisibility} field. */ + @NativeType("XrEyeVisibility") + public int eyeVisibility() { return neyeVisibility(address()); } + /** identifies the image {@link XrSwapchainSubImage} to use. The swapchain must have been created with a {@code faceCount} of 1. */ + public XrSwapchainSubImage subImage() { return nsubImage(address()); } + /** an {@link XrPosef} defining the position and orientation of the center point of the view of the cylinder within the reference frame of the {@code space}. */ + public XrPosef pose() { return npose(address()); } + /** the non-negative radius of the cylinder. Values of zero or floating point positive infinity are treated as an infinite cylinder. */ + public float radius() { return nradius(address()); } + /** the angle of the visible section of the cylinder, based at 0 radians, in the range of [0, 2π). It grows symmetrically around the 0 radian angle. */ + public float centralAngle() { return ncentralAngle(address()); } + /** the ratio of the visible cylinder section width / height. The height of the cylinder is given by: (cylinder radius × cylinder angle) / aspectRatio. */ + public float aspectRatio() { return naspectRatio(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrCompositionLayerCylinderKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHRCompositionLayerCylinder#XR_TYPE_COMPOSITION_LAYER_CYLINDER_KHR TYPE_COMPOSITION_LAYER_CYLINDER_KHR} value to the {@link #type} field. */ + public XrCompositionLayerCylinderKHR type$Default() { return type(KHRCompositionLayerCylinder.XR_TYPE_COMPOSITION_LAYER_CYLINDER_KHR); } + /** Sets the specified value to the {@link #next} field. */ + public XrCompositionLayerCylinderKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #layerFlags} field. */ + public XrCompositionLayerCylinderKHR layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; } + /** Sets the specified value to the {@link #space} field. */ + public XrCompositionLayerCylinderKHR space(XrSpace value) { nspace(address(), value); return this; } + /** Sets the specified value to the {@code eyeVisibility} field. */ + public XrCompositionLayerCylinderKHR eyeVisibility(@NativeType("XrEyeVisibility") int value) { neyeVisibility(address(), value); return this; } + /** Copies the specified {@link XrSwapchainSubImage} to the {@link #subImage} field. */ + public XrCompositionLayerCylinderKHR subImage(XrSwapchainSubImage value) { nsubImage(address(), value); return this; } + /** Passes the {@link #subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerCylinderKHR subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrCompositionLayerCylinderKHR pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerCylinderKHR pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Sets the specified value to the {@link #radius} field. */ + public XrCompositionLayerCylinderKHR radius(float value) { nradius(address(), value); return this; } + /** Sets the specified value to the {@link #centralAngle} field. */ + public XrCompositionLayerCylinderKHR centralAngle(float value) { ncentralAngle(address(), value); return this; } + /** Sets the specified value to the {@link #aspectRatio} field. */ + public XrCompositionLayerCylinderKHR aspectRatio(float value) { naspectRatio(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrCompositionLayerCylinderKHR set( - int type, - long next, - long layerFlags, - XrSpace space, - int eyeVisibility, - XrSwapchainSubImage subImage, - XrPosef pose, - float radius, - float centralAngle, + int type, + long next, + long layerFlags, + XrSpace space, + int eyeVisibility, + XrSwapchainSubImage subImage, + XrPosef pose, + float radius, + float centralAngle, float aspectRatio - ) { - type(type); - next(next); - layerFlags(layerFlags); - space(space); - eyeVisibility(eyeVisibility); - subImage(subImage); - pose(pose); - radius(radius); - centralAngle(centralAngle); - aspectRatio(aspectRatio); + ) { + type(type); + next(next); + layerFlags(layerFlags); + space(space); + eyeVisibility(eyeVisibility); + subImage(subImage); + pose(pose); + radius(radius); + centralAngle(centralAngle); + aspectRatio(aspectRatio); return this; } @@ -341,48 +341,48 @@ public static XrCompositionLayerCylinderKHR.Buffer calloc(int capacity, MemorySt } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerCylinderKHR.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerCylinderKHR.NEXT); } - /** Unsafe version of {@link #layerFlags}. */ - public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerCylinderKHR.LAYERFLAGS); } - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerCylinderKHR.SPACE); } - /** Unsafe version of {@link #eyeVisibility}. */ - public static int neyeVisibility(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerCylinderKHR.EYEVISIBILITY); } - /** Unsafe version of {@link #subImage}. */ - public static XrSwapchainSubImage nsubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerCylinderKHR.SUBIMAGE); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrCompositionLayerCylinderKHR.POSE); } - /** Unsafe version of {@link #radius}. */ - public static float nradius(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerCylinderKHR.RADIUS); } - /** Unsafe version of {@link #centralAngle}. */ - public static float ncentralAngle(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerCylinderKHR.CENTRALANGLE); } - /** Unsafe version of {@link #aspectRatio}. */ - public static float naspectRatio(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerCylinderKHR.ASPECTRATIO); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerCylinderKHR.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerCylinderKHR.NEXT, value); } - /** Unsafe version of {@link #layerFlags(long) layerFlags}. */ - public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerCylinderKHR.LAYERFLAGS, value); } - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerCylinderKHR.SPACE, value.address()); } - /** Unsafe version of {@link #eyeVisibility(int) eyeVisibility}. */ - public static void neyeVisibility(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerCylinderKHR.EYEVISIBILITY, value); } - /** Unsafe version of {@link #subImage(XrSwapchainSubImage) subImage}. */ - public static void nsubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerCylinderKHR.SUBIMAGE, XrSwapchainSubImage.SIZEOF); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrCompositionLayerCylinderKHR.POSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #radius(float) radius}. */ - public static void nradius(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerCylinderKHR.RADIUS, value); } - /** Unsafe version of {@link #centralAngle(float) centralAngle}. */ - public static void ncentralAngle(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerCylinderKHR.CENTRALANGLE, value); } - /** Unsafe version of {@link #aspectRatio(float) aspectRatio}. */ - public static void naspectRatio(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerCylinderKHR.ASPECTRATIO, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerCylinderKHR.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerCylinderKHR.NEXT); } + /** Unsafe version of {@link #layerFlags}. */ + public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerCylinderKHR.LAYERFLAGS); } + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerCylinderKHR.SPACE); } + /** Unsafe version of {@link #eyeVisibility}. */ + public static int neyeVisibility(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerCylinderKHR.EYEVISIBILITY); } + /** Unsafe version of {@link #subImage}. */ + public static XrSwapchainSubImage nsubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerCylinderKHR.SUBIMAGE); } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrCompositionLayerCylinderKHR.POSE); } + /** Unsafe version of {@link #radius}. */ + public static float nradius(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerCylinderKHR.RADIUS); } + /** Unsafe version of {@link #centralAngle}. */ + public static float ncentralAngle(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerCylinderKHR.CENTRALANGLE); } + /** Unsafe version of {@link #aspectRatio}. */ + public static float naspectRatio(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerCylinderKHR.ASPECTRATIO); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerCylinderKHR.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerCylinderKHR.NEXT, value); } + /** Unsafe version of {@link #layerFlags(long) layerFlags}. */ + public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerCylinderKHR.LAYERFLAGS, value); } + /** Unsafe version of {@link #space(XrSpace) space}. */ + public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerCylinderKHR.SPACE, value.address()); } + /** Unsafe version of {@link #eyeVisibility(int) eyeVisibility}. */ + public static void neyeVisibility(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerCylinderKHR.EYEVISIBILITY, value); } + /** Unsafe version of {@link #subImage(XrSwapchainSubImage) subImage}. */ + public static void nsubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerCylinderKHR.SUBIMAGE, XrSwapchainSubImage.SIZEOF); } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrCompositionLayerCylinderKHR.POSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #radius(float) radius}. */ + public static void nradius(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerCylinderKHR.RADIUS, value); } + /** Unsafe version of {@link #centralAngle(float) centralAngle}. */ + public static void ncentralAngle(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerCylinderKHR.CENTRALANGLE, value); } + /** Unsafe version of {@link #aspectRatio(float) aspectRatio}. */ + public static void naspectRatio(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerCylinderKHR.ASPECTRATIO, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -392,9 +392,9 @@ public static XrCompositionLayerCylinderKHR.Buffer calloc(int capacity, MemorySt public static void validate(long struct) { check(memGetAddress(struct + XrCompositionLayerCylinderKHR.SPACE)); XrSwapchainSubImage.validate(struct + XrCompositionLayerCylinderKHR.SUBIMAGE); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrCompositionLayerCylinderKHR} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -431,59 +431,59 @@ protected Buffer self() { protected XrCompositionLayerCylinderKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerCylinderKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerCylinderKHR.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerCylinderKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerCylinderKHR.nnext(address()); } - /** @return the value of the {@link XrCompositionLayerCylinderKHR#layerFlags} field. */ - @NativeType("XrCompositionLayerFlags") - public long layerFlags() { return XrCompositionLayerCylinderKHR.nlayerFlags(address()); } - /** @return the value of the {@link XrCompositionLayerCylinderKHR#space} field. */ - @NativeType("XrSpace") - public long space() { return XrCompositionLayerCylinderKHR.nspace(address()); } - /** @return the value of the {@link XrCompositionLayerCylinderKHR#eyeVisibility} field. */ - @NativeType("XrEyeVisibility") - public int eyeVisibility() { return XrCompositionLayerCylinderKHR.neyeVisibility(address()); } - /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerCylinderKHR#subImage} field. */ - public XrSwapchainSubImage subImage() { return XrCompositionLayerCylinderKHR.nsubImage(address()); } - /** @return a {@link XrPosef} view of the {@link XrCompositionLayerCylinderKHR#pose} field. */ - public XrPosef pose() { return XrCompositionLayerCylinderKHR.npose(address()); } - /** @return the value of the {@link XrCompositionLayerCylinderKHR#radius} field. */ - public float radius() { return XrCompositionLayerCylinderKHR.nradius(address()); } - /** @return the value of the {@link XrCompositionLayerCylinderKHR#centralAngle} field. */ - public float centralAngle() { return XrCompositionLayerCylinderKHR.ncentralAngle(address()); } - /** @return the value of the {@link XrCompositionLayerCylinderKHR#aspectRatio} field. */ - public float aspectRatio() { return XrCompositionLayerCylinderKHR.naspectRatio(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#type} field. */ - public XrCompositionLayerCylinderKHR.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerCylinderKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRCompositionLayerCylinder#XR_TYPE_COMPOSITION_LAYER_CYLINDER_KHR TYPE_COMPOSITION_LAYER_CYLINDER_KHR} value to the {@link XrCompositionLayerCylinderKHR#type} field. */ - public XrCompositionLayerCylinderKHR.Buffer type$Default() { return type(KHRCompositionLayerCylinder.XR_TYPE_COMPOSITION_LAYER_CYLINDER_KHR); } - /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#next} field. */ - public XrCompositionLayerCylinderKHR.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerCylinderKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#layerFlags} field. */ - public XrCompositionLayerCylinderKHR.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerCylinderKHR.nlayerFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#space} field. */ - public XrCompositionLayerCylinderKHR.Buffer space(XrSpace value) { XrCompositionLayerCylinderKHR.nspace(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#eyeVisibility} field. */ - public XrCompositionLayerCylinderKHR.Buffer eyeVisibility(@NativeType("XrEyeVisibility") int value) { XrCompositionLayerCylinderKHR.neyeVisibility(address(), value); return this; } - /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerCylinderKHR#subImage} field. */ - public XrCompositionLayerCylinderKHR.Buffer subImage(XrSwapchainSubImage value) { XrCompositionLayerCylinderKHR.nsubImage(address(), value); return this; } - /** Passes the {@link XrCompositionLayerCylinderKHR#subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerCylinderKHR.Buffer subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrCompositionLayerCylinderKHR#pose} field. */ - public XrCompositionLayerCylinderKHR.Buffer pose(XrPosef value) { XrCompositionLayerCylinderKHR.npose(address(), value); return this; } - /** Passes the {@link XrCompositionLayerCylinderKHR#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerCylinderKHR.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#radius} field. */ - public XrCompositionLayerCylinderKHR.Buffer radius(float value) { XrCompositionLayerCylinderKHR.nradius(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#centralAngle} field. */ - public XrCompositionLayerCylinderKHR.Buffer centralAngle(float value) { XrCompositionLayerCylinderKHR.ncentralAngle(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#aspectRatio} field. */ - public XrCompositionLayerCylinderKHR.Buffer aspectRatio(float value) { XrCompositionLayerCylinderKHR.naspectRatio(address(), value); return this; } + + /** @return the value of the {@link XrCompositionLayerCylinderKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerCylinderKHR.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerCylinderKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerCylinderKHR.nnext(address()); } + /** @return the value of the {@link XrCompositionLayerCylinderKHR#layerFlags} field. */ + @NativeType("XrCompositionLayerFlags") + public long layerFlags() { return XrCompositionLayerCylinderKHR.nlayerFlags(address()); } + /** @return the value of the {@link XrCompositionLayerCylinderKHR#space} field. */ + @NativeType("XrSpace") + public long space() { return XrCompositionLayerCylinderKHR.nspace(address()); } + /** @return the value of the {@code eyeVisibility} field. */ + @NativeType("XrEyeVisibility") + public int eyeVisibility() { return XrCompositionLayerCylinderKHR.neyeVisibility(address()); } + /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerCylinderKHR#subImage} field. */ + public XrSwapchainSubImage subImage() { return XrCompositionLayerCylinderKHR.nsubImage(address()); } + /** @return a {@link XrPosef} view of the {@link XrCompositionLayerCylinderKHR#pose} field. */ + public XrPosef pose() { return XrCompositionLayerCylinderKHR.npose(address()); } + /** @return the value of the {@link XrCompositionLayerCylinderKHR#radius} field. */ + public float radius() { return XrCompositionLayerCylinderKHR.nradius(address()); } + /** @return the value of the {@link XrCompositionLayerCylinderKHR#centralAngle} field. */ + public float centralAngle() { return XrCompositionLayerCylinderKHR.ncentralAngle(address()); } + /** @return the value of the {@link XrCompositionLayerCylinderKHR#aspectRatio} field. */ + public float aspectRatio() { return XrCompositionLayerCylinderKHR.naspectRatio(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#type} field. */ + public XrCompositionLayerCylinderKHR.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerCylinderKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRCompositionLayerCylinder#XR_TYPE_COMPOSITION_LAYER_CYLINDER_KHR TYPE_COMPOSITION_LAYER_CYLINDER_KHR} value to the {@link XrCompositionLayerCylinderKHR#type} field. */ + public XrCompositionLayerCylinderKHR.Buffer type$Default() { return type(KHRCompositionLayerCylinder.XR_TYPE_COMPOSITION_LAYER_CYLINDER_KHR); } + /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#next} field. */ + public XrCompositionLayerCylinderKHR.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerCylinderKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#layerFlags} field. */ + public XrCompositionLayerCylinderKHR.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerCylinderKHR.nlayerFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#space} field. */ + public XrCompositionLayerCylinderKHR.Buffer space(XrSpace value) { XrCompositionLayerCylinderKHR.nspace(address(), value); return this; } + /** Sets the specified value to the {@code eyeVisibility} field. */ + public XrCompositionLayerCylinderKHR.Buffer eyeVisibility(@NativeType("XrEyeVisibility") int value) { XrCompositionLayerCylinderKHR.neyeVisibility(address(), value); return this; } + /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerCylinderKHR#subImage} field. */ + public XrCompositionLayerCylinderKHR.Buffer subImage(XrSwapchainSubImage value) { XrCompositionLayerCylinderKHR.nsubImage(address(), value); return this; } + /** Passes the {@link XrCompositionLayerCylinderKHR#subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerCylinderKHR.Buffer subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrCompositionLayerCylinderKHR#pose} field. */ + public XrCompositionLayerCylinderKHR.Buffer pose(XrPosef value) { XrCompositionLayerCylinderKHR.npose(address(), value); return this; } + /** Passes the {@link XrCompositionLayerCylinderKHR#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerCylinderKHR.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#radius} field. */ + public XrCompositionLayerCylinderKHR.Buffer radius(float value) { XrCompositionLayerCylinderKHR.nradius(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#centralAngle} field. */ + public XrCompositionLayerCylinderKHR.Buffer centralAngle(float value) { XrCompositionLayerCylinderKHR.ncentralAngle(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerCylinderKHR#aspectRatio} field. */ + public XrCompositionLayerCylinderKHR.Buffer aspectRatio(float value) { XrCompositionLayerCylinderKHR.naspectRatio(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerDepthInfoKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerDepthInfoKHR.java index 9fafc9e41d..5ec1bb8a81 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerDepthInfoKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerDepthInfoKHR.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Depth map layer info. * @@ -43,7 +43,7 @@ *
            *
          • The {@link KHRCompositionLayerDepth XR_KHR_composition_layer_depth} extension must be enabled prior to using {@link XrCompositionLayerDepthInfoKHR}
          • *
          • {@code type} must be {@link KHRCompositionLayerDepth#XR_TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR}
          • - *
          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
          • + *
          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
          • *
          • {@code subImage} must be a valid {@link XrSwapchainSubImage} structure
          • *
          * @@ -63,8 +63,8 @@ * float {@link #nearZ}; * float {@link #farZ}; * } - */ -public class XrCompositionLayerDepthInfoKHR extends Struct implements NativeResource { + */ +public class XrCompositionLayerDepthInfoKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -74,36 +74,36 @@ public class XrCompositionLayerDepthInfoKHR extends Structmust have been created with a {@code faceCount} of 1. */ - public XrSwapchainSubImage subImage() { return nsubImage(address()); } - /** {@code minDepth} and {@code maxDepth} are the window space depths that correspond to the near and far frustum planes, respectively. {@code minDepth} must be less than {@code maxDepth}. {@code minDepth} and {@code maxDepth} must be in the range [0, 1]. */ - public float minDepth() { return nminDepth(address()); } - /** see {@code minDepth} */ - public float maxDepth() { return nmaxDepth(address()); } - /** {@code nearZ} and {@code farZ} are the positive distances in meters to the near and far frustum planes, respectively. {@code nearZ} and {@code farZ} must not be equal. {@code nearZ} and {@code farZ} must be in the range (0, +infinity]. */ - public float nearZ() { return nnearZ(address()); } - /** see {@code nearZ} */ - public float farZ() { return nfarZ(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrCompositionLayerDepthInfoKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link KHRCompositionLayerDepth#XR_TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR} value to the {@link #type} field. */ - public XrCompositionLayerDepthInfoKHR type$Default() { return type(KHRCompositionLayerDepth.XR_TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR); } - /** Sets the specified value to the {@link #next} field. */ - public XrCompositionLayerDepthInfoKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Copies the specified {@link XrSwapchainSubImage} to the {@link #subImage} field. */ - public XrCompositionLayerDepthInfoKHR subImage(XrSwapchainSubImage value) { nsubImage(address(), value); return this; } - /** Passes the {@link #subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerDepthInfoKHR subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } - /** Sets the specified value to the {@link #minDepth} field. */ - public XrCompositionLayerDepthInfoKHR minDepth(float value) { nminDepth(address(), value); return this; } - /** Sets the specified value to the {@link #maxDepth} field. */ - public XrCompositionLayerDepthInfoKHR maxDepth(float value) { nmaxDepth(address(), value); return this; } - /** Sets the specified value to the {@link #nearZ} field. */ - public XrCompositionLayerDepthInfoKHR nearZ(float value) { nnearZ(address(), value); return this; } - /** Sets the specified value to the {@link #farZ} field. */ - public XrCompositionLayerDepthInfoKHR farZ(float value) { nfarZ(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** identifies the depth image {@link XrSwapchainSubImage} to be associated with the color swapchain. The swapchain must have been created with a {@code faceCount} of 1. */ + public XrSwapchainSubImage subImage() { return nsubImage(address()); } + /** {@code minDepth} and {@code maxDepth} are the window space depths that correspond to the near and far frustum planes, respectively. {@code minDepth} must be less than {@code maxDepth}. {@code minDepth} and {@code maxDepth} must be in the range [0, 1]. */ + public float minDepth() { return nminDepth(address()); } + /** see {@code minDepth} */ + public float maxDepth() { return nmaxDepth(address()); } + /** {@code nearZ} and {@code farZ} are the positive distances in meters to the near and far frustum planes, respectively. {@code nearZ} and {@code farZ} must not be equal. {@code nearZ} and {@code farZ} must be in the range (0, +infinity]. */ + public float nearZ() { return nnearZ(address()); } + /** see {@code nearZ} */ + public float farZ() { return nfarZ(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrCompositionLayerDepthInfoKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHRCompositionLayerDepth#XR_TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR} value to the {@link #type} field. */ + public XrCompositionLayerDepthInfoKHR type$Default() { return type(KHRCompositionLayerDepth.XR_TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR); } + /** Sets the specified value to the {@link #next} field. */ + public XrCompositionLayerDepthInfoKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link XrSwapchainSubImage} to the {@link #subImage} field. */ + public XrCompositionLayerDepthInfoKHR subImage(XrSwapchainSubImage value) { nsubImage(address(), value); return this; } + /** Passes the {@link #subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerDepthInfoKHR subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } + /** Sets the specified value to the {@link #minDepth} field. */ + public XrCompositionLayerDepthInfoKHR minDepth(float value) { nminDepth(address(), value); return this; } + /** Sets the specified value to the {@link #maxDepth} field. */ + public XrCompositionLayerDepthInfoKHR maxDepth(float value) { nmaxDepth(address(), value); return this; } + /** Sets the specified value to the {@link #nearZ} field. */ + public XrCompositionLayerDepthInfoKHR nearZ(float value) { nnearZ(address(), value); return this; } + /** Sets the specified value to the {@link #farZ} field. */ + public XrCompositionLayerDepthInfoKHR farZ(float value) { nfarZ(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrCompositionLayerDepthInfoKHR set( - int type, - long next, - XrSwapchainSubImage subImage, - float minDepth, - float maxDepth, - float nearZ, + int type, + long next, + XrSwapchainSubImage subImage, + float minDepth, + float maxDepth, + float nearZ, float farZ - ) { - type(type); - next(next); - subImage(subImage); - minDepth(minDepth); - maxDepth(maxDepth); - nearZ(nearZ); - farZ(farZ); + ) { + type(type); + next(next); + subImage(subImage); + minDepth(minDepth); + maxDepth(maxDepth); + nearZ(nearZ); + farZ(farZ); return this; } @@ -308,36 +308,36 @@ public static XrCompositionLayerDepthInfoKHR.Buffer calloc(int capacity, MemoryS } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerDepthInfoKHR.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerDepthInfoKHR.NEXT); } - /** Unsafe version of {@link #subImage}. */ - public static XrSwapchainSubImage nsubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerDepthInfoKHR.SUBIMAGE); } - /** Unsafe version of {@link #minDepth}. */ - public static float nminDepth(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerDepthInfoKHR.MINDEPTH); } - /** Unsafe version of {@link #maxDepth}. */ - public static float nmaxDepth(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerDepthInfoKHR.MAXDEPTH); } - /** Unsafe version of {@link #nearZ}. */ - public static float nnearZ(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerDepthInfoKHR.NEARZ); } - /** Unsafe version of {@link #farZ}. */ - public static float nfarZ(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerDepthInfoKHR.FARZ); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerDepthInfoKHR.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerDepthInfoKHR.NEXT, value); } - /** Unsafe version of {@link #subImage(XrSwapchainSubImage) subImage}. */ - public static void nsubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerDepthInfoKHR.SUBIMAGE, XrSwapchainSubImage.SIZEOF); } - /** Unsafe version of {@link #minDepth(float) minDepth}. */ - public static void nminDepth(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerDepthInfoKHR.MINDEPTH, value); } - /** Unsafe version of {@link #maxDepth(float) maxDepth}. */ - public static void nmaxDepth(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerDepthInfoKHR.MAXDEPTH, value); } - /** Unsafe version of {@link #nearZ(float) nearZ}. */ - public static void nnearZ(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerDepthInfoKHR.NEARZ, value); } - /** Unsafe version of {@link #farZ(float) farZ}. */ - public static void nfarZ(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerDepthInfoKHR.FARZ, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerDepthInfoKHR.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerDepthInfoKHR.NEXT); } + /** Unsafe version of {@link #subImage}. */ + public static XrSwapchainSubImage nsubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerDepthInfoKHR.SUBIMAGE); } + /** Unsafe version of {@link #minDepth}. */ + public static float nminDepth(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerDepthInfoKHR.MINDEPTH); } + /** Unsafe version of {@link #maxDepth}. */ + public static float nmaxDepth(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerDepthInfoKHR.MAXDEPTH); } + /** Unsafe version of {@link #nearZ}. */ + public static float nnearZ(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerDepthInfoKHR.NEARZ); } + /** Unsafe version of {@link #farZ}. */ + public static float nfarZ(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerDepthInfoKHR.FARZ); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerDepthInfoKHR.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerDepthInfoKHR.NEXT, value); } + /** Unsafe version of {@link #subImage(XrSwapchainSubImage) subImage}. */ + public static void nsubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerDepthInfoKHR.SUBIMAGE, XrSwapchainSubImage.SIZEOF); } + /** Unsafe version of {@link #minDepth(float) minDepth}. */ + public static void nminDepth(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerDepthInfoKHR.MINDEPTH, value); } + /** Unsafe version of {@link #maxDepth(float) maxDepth}. */ + public static void nmaxDepth(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerDepthInfoKHR.MAXDEPTH, value); } + /** Unsafe version of {@link #nearZ(float) nearZ}. */ + public static void nnearZ(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerDepthInfoKHR.NEARZ, value); } + /** Unsafe version of {@link #farZ(float) farZ}. */ + public static void nfarZ(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerDepthInfoKHR.FARZ, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -346,9 +346,9 @@ public static XrCompositionLayerDepthInfoKHR.Buffer calloc(int capacity, MemoryS */ public static void validate(long struct) { XrSwapchainSubImage.validate(struct + XrCompositionLayerDepthInfoKHR.SUBIMAGE); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrCompositionLayerDepthInfoKHR} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -385,42 +385,42 @@ protected Buffer self() { protected XrCompositionLayerDepthInfoKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerDepthInfoKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerDepthInfoKHR.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerDepthInfoKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerDepthInfoKHR.nnext(address()); } - /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerDepthInfoKHR#subImage} field. */ - public XrSwapchainSubImage subImage() { return XrCompositionLayerDepthInfoKHR.nsubImage(address()); } - /** @return the value of the {@link XrCompositionLayerDepthInfoKHR#minDepth} field. */ - public float minDepth() { return XrCompositionLayerDepthInfoKHR.nminDepth(address()); } - /** @return the value of the {@link XrCompositionLayerDepthInfoKHR#maxDepth} field. */ - public float maxDepth() { return XrCompositionLayerDepthInfoKHR.nmaxDepth(address()); } - /** @return the value of the {@link XrCompositionLayerDepthInfoKHR#nearZ} field. */ - public float nearZ() { return XrCompositionLayerDepthInfoKHR.nnearZ(address()); } - /** @return the value of the {@link XrCompositionLayerDepthInfoKHR#farZ} field. */ - public float farZ() { return XrCompositionLayerDepthInfoKHR.nfarZ(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerDepthInfoKHR#type} field. */ - public XrCompositionLayerDepthInfoKHR.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerDepthInfoKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRCompositionLayerDepth#XR_TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR} value to the {@link XrCompositionLayerDepthInfoKHR#type} field. */ - public XrCompositionLayerDepthInfoKHR.Buffer type$Default() { return type(KHRCompositionLayerDepth.XR_TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR); } - /** Sets the specified value to the {@link XrCompositionLayerDepthInfoKHR#next} field. */ - public XrCompositionLayerDepthInfoKHR.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerDepthInfoKHR.nnext(address(), value); return this; } - /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerDepthInfoKHR#subImage} field. */ - public XrCompositionLayerDepthInfoKHR.Buffer subImage(XrSwapchainSubImage value) { XrCompositionLayerDepthInfoKHR.nsubImage(address(), value); return this; } - /** Passes the {@link XrCompositionLayerDepthInfoKHR#subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerDepthInfoKHR.Buffer subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } - /** Sets the specified value to the {@link XrCompositionLayerDepthInfoKHR#minDepth} field. */ - public XrCompositionLayerDepthInfoKHR.Buffer minDepth(float value) { XrCompositionLayerDepthInfoKHR.nminDepth(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerDepthInfoKHR#maxDepth} field. */ - public XrCompositionLayerDepthInfoKHR.Buffer maxDepth(float value) { XrCompositionLayerDepthInfoKHR.nmaxDepth(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerDepthInfoKHR#nearZ} field. */ - public XrCompositionLayerDepthInfoKHR.Buffer nearZ(float value) { XrCompositionLayerDepthInfoKHR.nnearZ(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerDepthInfoKHR#farZ} field. */ - public XrCompositionLayerDepthInfoKHR.Buffer farZ(float value) { XrCompositionLayerDepthInfoKHR.nfarZ(address(), value); return this; } + + /** @return the value of the {@link XrCompositionLayerDepthInfoKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerDepthInfoKHR.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerDepthInfoKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerDepthInfoKHR.nnext(address()); } + /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerDepthInfoKHR#subImage} field. */ + public XrSwapchainSubImage subImage() { return XrCompositionLayerDepthInfoKHR.nsubImage(address()); } + /** @return the value of the {@link XrCompositionLayerDepthInfoKHR#minDepth} field. */ + public float minDepth() { return XrCompositionLayerDepthInfoKHR.nminDepth(address()); } + /** @return the value of the {@link XrCompositionLayerDepthInfoKHR#maxDepth} field. */ + public float maxDepth() { return XrCompositionLayerDepthInfoKHR.nmaxDepth(address()); } + /** @return the value of the {@link XrCompositionLayerDepthInfoKHR#nearZ} field. */ + public float nearZ() { return XrCompositionLayerDepthInfoKHR.nnearZ(address()); } + /** @return the value of the {@link XrCompositionLayerDepthInfoKHR#farZ} field. */ + public float farZ() { return XrCompositionLayerDepthInfoKHR.nfarZ(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerDepthInfoKHR#type} field. */ + public XrCompositionLayerDepthInfoKHR.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerDepthInfoKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRCompositionLayerDepth#XR_TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR} value to the {@link XrCompositionLayerDepthInfoKHR#type} field. */ + public XrCompositionLayerDepthInfoKHR.Buffer type$Default() { return type(KHRCompositionLayerDepth.XR_TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR); } + /** Sets the specified value to the {@link XrCompositionLayerDepthInfoKHR#next} field. */ + public XrCompositionLayerDepthInfoKHR.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerDepthInfoKHR.nnext(address(), value); return this; } + /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerDepthInfoKHR#subImage} field. */ + public XrCompositionLayerDepthInfoKHR.Buffer subImage(XrSwapchainSubImage value) { XrCompositionLayerDepthInfoKHR.nsubImage(address(), value); return this; } + /** Passes the {@link XrCompositionLayerDepthInfoKHR#subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerDepthInfoKHR.Buffer subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } + /** Sets the specified value to the {@link XrCompositionLayerDepthInfoKHR#minDepth} field. */ + public XrCompositionLayerDepthInfoKHR.Buffer minDepth(float value) { XrCompositionLayerDepthInfoKHR.nminDepth(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerDepthInfoKHR#maxDepth} field. */ + public XrCompositionLayerDepthInfoKHR.Buffer maxDepth(float value) { XrCompositionLayerDepthInfoKHR.nmaxDepth(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerDepthInfoKHR#nearZ} field. */ + public XrCompositionLayerDepthInfoKHR.Buffer nearZ(float value) { XrCompositionLayerDepthInfoKHR.nnearZ(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerDepthInfoKHR#farZ} field. */ + public XrCompositionLayerDepthInfoKHR.Buffer farZ(float value) { XrCompositionLayerDepthInfoKHR.nfarZ(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerDepthTestFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerDepthTestFB.java index f4089180bb..a46cfb161b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerDepthTestFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerDepthTestFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * specifies depth test for composition layer. * @@ -27,7 +27,7 @@ *
            *
          • The {@link FBCompositionLayerDepthTest XR_FB_composition_layer_depth_test} extension must be enabled prior to using {@link XrCompositionLayerDepthTestFB}
          • *
          • {@code type} must be {@link FBCompositionLayerDepthTest#XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_FB TYPE_COMPOSITION_LAYER_DEPTH_TEST_FB}
          • - *
          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
          • + *
          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
          • *
          • {@code compareOp} must be a valid {@code XrCompareOpFB} value
          • *
          * @@ -44,8 +44,8 @@ * XrBool32 {@link #depthMask}; * XrCompareOpFB {@link #compareOp}; * } - */ -public class XrCompositionLayerDepthTestFB extends Struct implements NativeResource { + */ +public class XrCompositionLayerDepthTestFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,27 +55,27 @@ public class XrCompositionLayerDepthTestFB extends Struct implements NativeResource { @@ -318,30 +318,30 @@ protected Buffer self() { protected XrCompositionLayerDepthTestFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerDepthTestFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerDepthTestFB.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerDepthTestFB#next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerDepthTestFB.nnext(address()); } - /** @return the value of the {@link XrCompositionLayerDepthTestFB#depthMask} field. */ - @NativeType("XrBool32") - public boolean depthMask() { return XrCompositionLayerDepthTestFB.ndepthMask(address()) != 0; } - /** @return the value of the {@link XrCompositionLayerDepthTestFB#compareOp} field. */ - @NativeType("XrCompareOpFB") - public int compareOp() { return XrCompositionLayerDepthTestFB.ncompareOp(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerDepthTestFB#type} field. */ - public XrCompositionLayerDepthTestFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerDepthTestFB.ntype(address(), value); return this; } - /** Sets the {@link FBCompositionLayerDepthTest#XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_FB TYPE_COMPOSITION_LAYER_DEPTH_TEST_FB} value to the {@link XrCompositionLayerDepthTestFB#type} field. */ - public XrCompositionLayerDepthTestFB.Buffer type$Default() { return type(FBCompositionLayerDepthTest.XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_FB); } - /** Sets the specified value to the {@link XrCompositionLayerDepthTestFB#next} field. */ - public XrCompositionLayerDepthTestFB.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerDepthTestFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerDepthTestFB#depthMask} field. */ - public XrCompositionLayerDepthTestFB.Buffer depthMask(@NativeType("XrBool32") boolean value) { XrCompositionLayerDepthTestFB.ndepthMask(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link XrCompositionLayerDepthTestFB#compareOp} field. */ - public XrCompositionLayerDepthTestFB.Buffer compareOp(@NativeType("XrCompareOpFB") int value) { XrCompositionLayerDepthTestFB.ncompareOp(address(), value); return this; } + + /** @return the value of the {@link XrCompositionLayerDepthTestFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerDepthTestFB.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerDepthTestFB#next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerDepthTestFB.nnext(address()); } + /** @return the value of the {@link XrCompositionLayerDepthTestFB#depthMask} field. */ + @NativeType("XrBool32") + public boolean depthMask() { return XrCompositionLayerDepthTestFB.ndepthMask(address()) != 0; } + /** @return the value of the {@link XrCompositionLayerDepthTestFB#compareOp} field. */ + @NativeType("XrCompareOpFB") + public int compareOp() { return XrCompositionLayerDepthTestFB.ncompareOp(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerDepthTestFB#type} field. */ + public XrCompositionLayerDepthTestFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerDepthTestFB.ntype(address(), value); return this; } + /** Sets the {@link FBCompositionLayerDepthTest#XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_FB TYPE_COMPOSITION_LAYER_DEPTH_TEST_FB} value to the {@link XrCompositionLayerDepthTestFB#type} field. */ + public XrCompositionLayerDepthTestFB.Buffer type$Default() { return type(FBCompositionLayerDepthTest.XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_FB); } + /** Sets the specified value to the {@link XrCompositionLayerDepthTestFB#next} field. */ + public XrCompositionLayerDepthTestFB.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerDepthTestFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerDepthTestFB#depthMask} field. */ + public XrCompositionLayerDepthTestFB.Buffer depthMask(@NativeType("XrBool32") boolean value) { XrCompositionLayerDepthTestFB.ndepthMask(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link XrCompositionLayerDepthTestFB#compareOp} field. */ + public XrCompositionLayerDepthTestFB.Buffer compareOp(@NativeType("XrCompareOpFB") int value) { XrCompositionLayerDepthTestFB.ncompareOp(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerDepthTestVARJO.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerDepthTestVARJO.java index d75fda3a65..ebbe32303b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerDepthTestVARJO.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerDepthTestVARJO.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The structure to be passed when submitting layers to enable depth testing. * @@ -23,7 +23,7 @@ *
            *
          • The {@link VARJOCompositionLayerDepthTest XR_VARJO_composition_layer_depth_test} extension must be enabled prior to using {@link XrCompositionLayerDepthTestVARJO}
          • *
          • {@code type} must be {@link VARJOCompositionLayerDepthTest#XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_VARJO TYPE_COMPOSITION_LAYER_DEPTH_TEST_VARJO}
          • - *
          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
          • + *
          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
          • *
          * *
          See Also
          @@ -39,8 +39,8 @@ * float {@link #depthTestRangeNearZ}; * float {@link #depthTestRangeFarZ}; * } - */ -public class XrCompositionLayerDepthTestVARJO extends Struct implements NativeResource { + */ +public class XrCompositionLayerDepthTestVARJO extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,27 +50,27 @@ public class XrCompositionLayerDepthTestVARJO extends Struct implements NativeResource { @@ -311,28 +311,28 @@ protected Buffer self() { protected XrCompositionLayerDepthTestVARJO getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerDepthTestVARJO#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerDepthTestVARJO.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerDepthTestVARJO#next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerDepthTestVARJO.nnext(address()); } - /** @return the value of the {@link XrCompositionLayerDepthTestVARJO#depthTestRangeNearZ} field. */ - public float depthTestRangeNearZ() { return XrCompositionLayerDepthTestVARJO.ndepthTestRangeNearZ(address()); } - /** @return the value of the {@link XrCompositionLayerDepthTestVARJO#depthTestRangeFarZ} field. */ - public float depthTestRangeFarZ() { return XrCompositionLayerDepthTestVARJO.ndepthTestRangeFarZ(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerDepthTestVARJO#type} field. */ - public XrCompositionLayerDepthTestVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerDepthTestVARJO.ntype(address(), value); return this; } - /** Sets the {@link VARJOCompositionLayerDepthTest#XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_VARJO TYPE_COMPOSITION_LAYER_DEPTH_TEST_VARJO} value to the {@link XrCompositionLayerDepthTestVARJO#type} field. */ - public XrCompositionLayerDepthTestVARJO.Buffer type$Default() { return type(VARJOCompositionLayerDepthTest.XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_VARJO); } - /** Sets the specified value to the {@link XrCompositionLayerDepthTestVARJO#next} field. */ - public XrCompositionLayerDepthTestVARJO.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerDepthTestVARJO.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerDepthTestVARJO#depthTestRangeNearZ} field. */ - public XrCompositionLayerDepthTestVARJO.Buffer depthTestRangeNearZ(float value) { XrCompositionLayerDepthTestVARJO.ndepthTestRangeNearZ(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerDepthTestVARJO#depthTestRangeFarZ} field. */ - public XrCompositionLayerDepthTestVARJO.Buffer depthTestRangeFarZ(float value) { XrCompositionLayerDepthTestVARJO.ndepthTestRangeFarZ(address(), value); return this; } + + /** @return the value of the {@link XrCompositionLayerDepthTestVARJO#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerDepthTestVARJO.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerDepthTestVARJO#next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerDepthTestVARJO.nnext(address()); } + /** @return the value of the {@link XrCompositionLayerDepthTestVARJO#depthTestRangeNearZ} field. */ + public float depthTestRangeNearZ() { return XrCompositionLayerDepthTestVARJO.ndepthTestRangeNearZ(address()); } + /** @return the value of the {@link XrCompositionLayerDepthTestVARJO#depthTestRangeFarZ} field. */ + public float depthTestRangeFarZ() { return XrCompositionLayerDepthTestVARJO.ndepthTestRangeFarZ(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerDepthTestVARJO#type} field. */ + public XrCompositionLayerDepthTestVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerDepthTestVARJO.ntype(address(), value); return this; } + /** Sets the {@link VARJOCompositionLayerDepthTest#XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_VARJO TYPE_COMPOSITION_LAYER_DEPTH_TEST_VARJO} value to the {@link XrCompositionLayerDepthTestVARJO#type} field. */ + public XrCompositionLayerDepthTestVARJO.Buffer type$Default() { return type(VARJOCompositionLayerDepthTest.XR_TYPE_COMPOSITION_LAYER_DEPTH_TEST_VARJO); } + /** Sets the specified value to the {@link XrCompositionLayerDepthTestVARJO#next} field. */ + public XrCompositionLayerDepthTestVARJO.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerDepthTestVARJO.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerDepthTestVARJO#depthTestRangeNearZ} field. */ + public XrCompositionLayerDepthTestVARJO.Buffer depthTestRangeNearZ(float value) { XrCompositionLayerDepthTestVARJO.ndepthTestRangeNearZ(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerDepthTestVARJO#depthTestRangeFarZ} field. */ + public XrCompositionLayerDepthTestVARJO.Buffer depthTestRangeFarZ(float value) { XrCompositionLayerDepthTestVARJO.ndepthTestRangeFarZ(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerEquirect2KHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerEquirect2KHR.java index b0a19a7e41..1f7be11cbe 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerEquirect2KHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerEquirect2KHR.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Equirectangular layer composition info. * @@ -28,7 +28,7 @@ *
            *
          • The {@link KHRCompositionLayerEquirect2 XR_KHR_composition_layer_equirect2} extension must be enabled prior to using {@link XrCompositionLayerEquirect2KHR}
          • *
          • {@code type} must be {@link KHRCompositionLayerEquirect2#XR_TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR}
          • - *
          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
          • + *
          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
          • *
          • {@code layerFlags} must be 0 or a valid combination of {@code XrCompositionLayerFlagBits} values
          • *
          • {@code space} must be a valid {@code XrSpace} handle
          • *
          • {@code eyeVisibility} must be a valid {@code XrEyeVisibility} value
          • @@ -47,7 +47,7 @@ * void const * {@link #next}; * XrCompositionLayerFlags {@link #layerFlags}; * XrSpace {@link #space}; - * XrEyeVisibility {@link #eyeVisibility}; + * XrEyeVisibility eyeVisibility; * {@link XrSwapchainSubImage XrSwapchainSubImage} {@link #subImage}; * {@link XrPosef XrPosef} {@link #pose}; * float {@link #radius}; @@ -55,8 +55,8 @@ * float {@link #upperVerticalAngle}; * float {@link #lowerVerticalAngle}; * } - */ -public class XrCompositionLayerEquirect2KHR extends Struct implements NativeResource { + */ +public class XrCompositionLayerEquirect2KHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -66,48 +66,48 @@ public class XrCompositionLayerEquirect2KHR extends Structmust have been created with a {@code faceCount} of 1. */ - public XrSwapchainSubImage subImage() { return nsubImage(address()); } - /** an {@link XrPosef} defining the position and orientation of the center point of the sphere onto which the equirect image data is mapped, relative to the reference frame of the {@code space}. */ - public XrPosef pose() { return npose(address()); } - /** the non-negative radius of the sphere onto which the equirect image data is mapped. Values of zero or floating point positive infinity are treated as an infinite sphere. */ - public float radius() { return nradius(address()); } - /** defines the visible horizontal angle of the sphere, based at 0 radians, in the range of [0, 2π]. It grows symmetrically around the 0 radian angle. */ - public float centralHorizontalAngle() { return ncentralHorizontalAngle(address()); } - /** defines the upper vertical angle of the visible portion of the sphere, in the range of [-π/2, π/2]. */ - public float upperVerticalAngle() { return nupperVerticalAngle(address()); } - /** defines the lower vertical angle of the visible portion of the sphere, in the range of [-π/2, π/2]. */ - public float lowerVerticalAngle() { return nlowerVerticalAngle(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrCompositionLayerEquirect2KHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link KHRCompositionLayerEquirect2#XR_TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR} value to the {@link #type} field. */ - public XrCompositionLayerEquirect2KHR type$Default() { return type(KHRCompositionLayerEquirect2.XR_TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR); } - /** Sets the specified value to the {@link #next} field. */ - public XrCompositionLayerEquirect2KHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #layerFlags} field. */ - public XrCompositionLayerEquirect2KHR layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; } - /** Sets the specified value to the {@link #space} field. */ - public XrCompositionLayerEquirect2KHR space(XrSpace value) { nspace(address(), value); return this; } - /** Sets the specified value to the {@link #eyeVisibility} field. */ - public XrCompositionLayerEquirect2KHR eyeVisibility(@NativeType("XrEyeVisibility") int value) { neyeVisibility(address(), value); return this; } - /** Copies the specified {@link XrSwapchainSubImage} to the {@link #subImage} field. */ - public XrCompositionLayerEquirect2KHR subImage(XrSwapchainSubImage value) { nsubImage(address(), value); return this; } - /** Passes the {@link #subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerEquirect2KHR subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } - /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ - public XrCompositionLayerEquirect2KHR pose(XrPosef value) { npose(address(), value); return this; } - /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerEquirect2KHR pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Sets the specified value to the {@link #radius} field. */ - public XrCompositionLayerEquirect2KHR radius(float value) { nradius(address(), value); return this; } - /** Sets the specified value to the {@link #centralHorizontalAngle} field. */ - public XrCompositionLayerEquirect2KHR centralHorizontalAngle(float value) { ncentralHorizontalAngle(address(), value); return this; } - /** Sets the specified value to the {@link #upperVerticalAngle} field. */ - public XrCompositionLayerEquirect2KHR upperVerticalAngle(float value) { nupperVerticalAngle(address(), value); return this; } - /** Sets the specified value to the {@link #lowerVerticalAngle} field. */ - public XrCompositionLayerEquirect2KHR lowerVerticalAngle(float value) { nlowerVerticalAngle(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** specifies options for the layer. */ + @NativeType("XrCompositionLayerFlags") + public long layerFlags() { return nlayerFlags(address()); } + /** the {@code XrSpace} in which the {@code pose} of the equirect layer is evaluated over time. */ + @NativeType("XrSpace") + public long space() { return nspace(address()); } + /** @return the value of the {@code eyeVisibility} field. */ + @NativeType("XrEyeVisibility") + public int eyeVisibility() { return neyeVisibility(address()); } + /** identifies the image {@link XrSwapchainSubImage} to use. The swapchain must have been created with a {@code faceCount} of 1. */ + public XrSwapchainSubImage subImage() { return nsubImage(address()); } + /** an {@link XrPosef} defining the position and orientation of the center point of the sphere onto which the equirect image data is mapped, relative to the reference frame of the {@code space}. */ + public XrPosef pose() { return npose(address()); } + /** the non-negative radius of the sphere onto which the equirect image data is mapped. Values of zero or floating point positive infinity are treated as an infinite sphere. */ + public float radius() { return nradius(address()); } + /** defines the visible horizontal angle of the sphere, based at 0 radians, in the range of [0, 2π]. It grows symmetrically around the 0 radian angle. */ + public float centralHorizontalAngle() { return ncentralHorizontalAngle(address()); } + /** defines the upper vertical angle of the visible portion of the sphere, in the range of [-π/2, π/2]. */ + public float upperVerticalAngle() { return nupperVerticalAngle(address()); } + /** defines the lower vertical angle of the visible portion of the sphere, in the range of [-π/2, π/2]. */ + public float lowerVerticalAngle() { return nlowerVerticalAngle(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrCompositionLayerEquirect2KHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHRCompositionLayerEquirect2#XR_TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR} value to the {@link #type} field. */ + public XrCompositionLayerEquirect2KHR type$Default() { return type(KHRCompositionLayerEquirect2.XR_TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR); } + /** Sets the specified value to the {@link #next} field. */ + public XrCompositionLayerEquirect2KHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #layerFlags} field. */ + public XrCompositionLayerEquirect2KHR layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; } + /** Sets the specified value to the {@link #space} field. */ + public XrCompositionLayerEquirect2KHR space(XrSpace value) { nspace(address(), value); return this; } + /** Sets the specified value to the {@code eyeVisibility} field. */ + public XrCompositionLayerEquirect2KHR eyeVisibility(@NativeType("XrEyeVisibility") int value) { neyeVisibility(address(), value); return this; } + /** Copies the specified {@link XrSwapchainSubImage} to the {@link #subImage} field. */ + public XrCompositionLayerEquirect2KHR subImage(XrSwapchainSubImage value) { nsubImage(address(), value); return this; } + /** Passes the {@link #subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerEquirect2KHR subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrCompositionLayerEquirect2KHR pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerEquirect2KHR pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Sets the specified value to the {@link #radius} field. */ + public XrCompositionLayerEquirect2KHR radius(float value) { nradius(address(), value); return this; } + /** Sets the specified value to the {@link #centralHorizontalAngle} field. */ + public XrCompositionLayerEquirect2KHR centralHorizontalAngle(float value) { ncentralHorizontalAngle(address(), value); return this; } + /** Sets the specified value to the {@link #upperVerticalAngle} field. */ + public XrCompositionLayerEquirect2KHR upperVerticalAngle(float value) { nupperVerticalAngle(address(), value); return this; } + /** Sets the specified value to the {@link #lowerVerticalAngle} field. */ + public XrCompositionLayerEquirect2KHR lowerVerticalAngle(float value) { nlowerVerticalAngle(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrCompositionLayerEquirect2KHR set( - int type, - long next, - long layerFlags, - XrSpace space, - int eyeVisibility, - XrSwapchainSubImage subImage, - XrPosef pose, - float radius, - float centralHorizontalAngle, - float upperVerticalAngle, + int type, + long next, + long layerFlags, + XrSpace space, + int eyeVisibility, + XrSwapchainSubImage subImage, + XrPosef pose, + float radius, + float centralHorizontalAngle, + float upperVerticalAngle, float lowerVerticalAngle - ) { - type(type); - next(next); - layerFlags(layerFlags); - space(space); - eyeVisibility(eyeVisibility); - subImage(subImage); - pose(pose); - radius(radius); - centralHorizontalAngle(centralHorizontalAngle); - upperVerticalAngle(upperVerticalAngle); - lowerVerticalAngle(lowerVerticalAngle); + ) { + type(type); + next(next); + layerFlags(layerFlags); + space(space); + eyeVisibility(eyeVisibility); + subImage(subImage); + pose(pose); + radius(radius); + centralHorizontalAngle(centralHorizontalAngle); + upperVerticalAngle(upperVerticalAngle); + lowerVerticalAngle(lowerVerticalAngle); return this; } @@ -351,52 +351,52 @@ public static XrCompositionLayerEquirect2KHR.Buffer calloc(int capacity, MemoryS } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerEquirect2KHR.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerEquirect2KHR.NEXT); } - /** Unsafe version of {@link #layerFlags}. */ - public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerEquirect2KHR.LAYERFLAGS); } - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerEquirect2KHR.SPACE); } - /** Unsafe version of {@link #eyeVisibility}. */ - public static int neyeVisibility(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerEquirect2KHR.EYEVISIBILITY); } - /** Unsafe version of {@link #subImage}. */ - public static XrSwapchainSubImage nsubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerEquirect2KHR.SUBIMAGE); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrCompositionLayerEquirect2KHR.POSE); } - /** Unsafe version of {@link #radius}. */ - public static float nradius(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerEquirect2KHR.RADIUS); } - /** Unsafe version of {@link #centralHorizontalAngle}. */ - public static float ncentralHorizontalAngle(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerEquirect2KHR.CENTRALHORIZONTALANGLE); } - /** Unsafe version of {@link #upperVerticalAngle}. */ - public static float nupperVerticalAngle(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerEquirect2KHR.UPPERVERTICALANGLE); } - /** Unsafe version of {@link #lowerVerticalAngle}. */ - public static float nlowerVerticalAngle(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerEquirect2KHR.LOWERVERTICALANGLE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerEquirect2KHR.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerEquirect2KHR.NEXT, value); } - /** Unsafe version of {@link #layerFlags(long) layerFlags}. */ - public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerEquirect2KHR.LAYERFLAGS, value); } - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerEquirect2KHR.SPACE, value.address()); } - /** Unsafe version of {@link #eyeVisibility(int) eyeVisibility}. */ - public static void neyeVisibility(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerEquirect2KHR.EYEVISIBILITY, value); } - /** Unsafe version of {@link #subImage(XrSwapchainSubImage) subImage}. */ - public static void nsubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerEquirect2KHR.SUBIMAGE, XrSwapchainSubImage.SIZEOF); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrCompositionLayerEquirect2KHR.POSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #radius(float) radius}. */ - public static void nradius(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerEquirect2KHR.RADIUS, value); } - /** Unsafe version of {@link #centralHorizontalAngle(float) centralHorizontalAngle}. */ - public static void ncentralHorizontalAngle(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerEquirect2KHR.CENTRALHORIZONTALANGLE, value); } - /** Unsafe version of {@link #upperVerticalAngle(float) upperVerticalAngle}. */ - public static void nupperVerticalAngle(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerEquirect2KHR.UPPERVERTICALANGLE, value); } - /** Unsafe version of {@link #lowerVerticalAngle(float) lowerVerticalAngle}. */ - public static void nlowerVerticalAngle(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerEquirect2KHR.LOWERVERTICALANGLE, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerEquirect2KHR.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerEquirect2KHR.NEXT); } + /** Unsafe version of {@link #layerFlags}. */ + public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerEquirect2KHR.LAYERFLAGS); } + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerEquirect2KHR.SPACE); } + /** Unsafe version of {@link #eyeVisibility}. */ + public static int neyeVisibility(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerEquirect2KHR.EYEVISIBILITY); } + /** Unsafe version of {@link #subImage}. */ + public static XrSwapchainSubImage nsubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerEquirect2KHR.SUBIMAGE); } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrCompositionLayerEquirect2KHR.POSE); } + /** Unsafe version of {@link #radius}. */ + public static float nradius(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerEquirect2KHR.RADIUS); } + /** Unsafe version of {@link #centralHorizontalAngle}. */ + public static float ncentralHorizontalAngle(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerEquirect2KHR.CENTRALHORIZONTALANGLE); } + /** Unsafe version of {@link #upperVerticalAngle}. */ + public static float nupperVerticalAngle(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerEquirect2KHR.UPPERVERTICALANGLE); } + /** Unsafe version of {@link #lowerVerticalAngle}. */ + public static float nlowerVerticalAngle(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerEquirect2KHR.LOWERVERTICALANGLE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerEquirect2KHR.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerEquirect2KHR.NEXT, value); } + /** Unsafe version of {@link #layerFlags(long) layerFlags}. */ + public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerEquirect2KHR.LAYERFLAGS, value); } + /** Unsafe version of {@link #space(XrSpace) space}. */ + public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerEquirect2KHR.SPACE, value.address()); } + /** Unsafe version of {@link #eyeVisibility(int) eyeVisibility}. */ + public static void neyeVisibility(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerEquirect2KHR.EYEVISIBILITY, value); } + /** Unsafe version of {@link #subImage(XrSwapchainSubImage) subImage}. */ + public static void nsubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerEquirect2KHR.SUBIMAGE, XrSwapchainSubImage.SIZEOF); } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrCompositionLayerEquirect2KHR.POSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #radius(float) radius}. */ + public static void nradius(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerEquirect2KHR.RADIUS, value); } + /** Unsafe version of {@link #centralHorizontalAngle(float) centralHorizontalAngle}. */ + public static void ncentralHorizontalAngle(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerEquirect2KHR.CENTRALHORIZONTALANGLE, value); } + /** Unsafe version of {@link #upperVerticalAngle(float) upperVerticalAngle}. */ + public static void nupperVerticalAngle(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerEquirect2KHR.UPPERVERTICALANGLE, value); } + /** Unsafe version of {@link #lowerVerticalAngle(float) lowerVerticalAngle}. */ + public static void nlowerVerticalAngle(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerEquirect2KHR.LOWERVERTICALANGLE, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -406,9 +406,9 @@ public static XrCompositionLayerEquirect2KHR.Buffer calloc(int capacity, MemoryS public static void validate(long struct) { check(memGetAddress(struct + XrCompositionLayerEquirect2KHR.SPACE)); XrSwapchainSubImage.validate(struct + XrCompositionLayerEquirect2KHR.SUBIMAGE); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrCompositionLayerEquirect2KHR} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -445,63 +445,63 @@ protected Buffer self() { protected XrCompositionLayerEquirect2KHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerEquirect2KHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerEquirect2KHR.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerEquirect2KHR#next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerEquirect2KHR.nnext(address()); } - /** @return the value of the {@link XrCompositionLayerEquirect2KHR#layerFlags} field. */ - @NativeType("XrCompositionLayerFlags") - public long layerFlags() { return XrCompositionLayerEquirect2KHR.nlayerFlags(address()); } - /** @return the value of the {@link XrCompositionLayerEquirect2KHR#space} field. */ - @NativeType("XrSpace") - public long space() { return XrCompositionLayerEquirect2KHR.nspace(address()); } - /** @return the value of the {@link XrCompositionLayerEquirect2KHR#eyeVisibility} field. */ - @NativeType("XrEyeVisibility") - public int eyeVisibility() { return XrCompositionLayerEquirect2KHR.neyeVisibility(address()); } - /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerEquirect2KHR#subImage} field. */ - public XrSwapchainSubImage subImage() { return XrCompositionLayerEquirect2KHR.nsubImage(address()); } - /** @return a {@link XrPosef} view of the {@link XrCompositionLayerEquirect2KHR#pose} field. */ - public XrPosef pose() { return XrCompositionLayerEquirect2KHR.npose(address()); } - /** @return the value of the {@link XrCompositionLayerEquirect2KHR#radius} field. */ - public float radius() { return XrCompositionLayerEquirect2KHR.nradius(address()); } - /** @return the value of the {@link XrCompositionLayerEquirect2KHR#centralHorizontalAngle} field. */ - public float centralHorizontalAngle() { return XrCompositionLayerEquirect2KHR.ncentralHorizontalAngle(address()); } - /** @return the value of the {@link XrCompositionLayerEquirect2KHR#upperVerticalAngle} field. */ - public float upperVerticalAngle() { return XrCompositionLayerEquirect2KHR.nupperVerticalAngle(address()); } - /** @return the value of the {@link XrCompositionLayerEquirect2KHR#lowerVerticalAngle} field. */ - public float lowerVerticalAngle() { return XrCompositionLayerEquirect2KHR.nlowerVerticalAngle(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#type} field. */ - public XrCompositionLayerEquirect2KHR.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerEquirect2KHR.ntype(address(), value); return this; } - /** Sets the {@link KHRCompositionLayerEquirect2#XR_TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR} value to the {@link XrCompositionLayerEquirect2KHR#type} field. */ - public XrCompositionLayerEquirect2KHR.Buffer type$Default() { return type(KHRCompositionLayerEquirect2.XR_TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR); } - /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#next} field. */ - public XrCompositionLayerEquirect2KHR.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerEquirect2KHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#layerFlags} field. */ - public XrCompositionLayerEquirect2KHR.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerEquirect2KHR.nlayerFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#space} field. */ - public XrCompositionLayerEquirect2KHR.Buffer space(XrSpace value) { XrCompositionLayerEquirect2KHR.nspace(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#eyeVisibility} field. */ - public XrCompositionLayerEquirect2KHR.Buffer eyeVisibility(@NativeType("XrEyeVisibility") int value) { XrCompositionLayerEquirect2KHR.neyeVisibility(address(), value); return this; } - /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerEquirect2KHR#subImage} field. */ - public XrCompositionLayerEquirect2KHR.Buffer subImage(XrSwapchainSubImage value) { XrCompositionLayerEquirect2KHR.nsubImage(address(), value); return this; } - /** Passes the {@link XrCompositionLayerEquirect2KHR#subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerEquirect2KHR.Buffer subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrCompositionLayerEquirect2KHR#pose} field. */ - public XrCompositionLayerEquirect2KHR.Buffer pose(XrPosef value) { XrCompositionLayerEquirect2KHR.npose(address(), value); return this; } - /** Passes the {@link XrCompositionLayerEquirect2KHR#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerEquirect2KHR.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#radius} field. */ - public XrCompositionLayerEquirect2KHR.Buffer radius(float value) { XrCompositionLayerEquirect2KHR.nradius(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#centralHorizontalAngle} field. */ - public XrCompositionLayerEquirect2KHR.Buffer centralHorizontalAngle(float value) { XrCompositionLayerEquirect2KHR.ncentralHorizontalAngle(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#upperVerticalAngle} field. */ - public XrCompositionLayerEquirect2KHR.Buffer upperVerticalAngle(float value) { XrCompositionLayerEquirect2KHR.nupperVerticalAngle(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#lowerVerticalAngle} field. */ - public XrCompositionLayerEquirect2KHR.Buffer lowerVerticalAngle(float value) { XrCompositionLayerEquirect2KHR.nlowerVerticalAngle(address(), value); return this; } + + /** @return the value of the {@link XrCompositionLayerEquirect2KHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerEquirect2KHR.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerEquirect2KHR#next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerEquirect2KHR.nnext(address()); } + /** @return the value of the {@link XrCompositionLayerEquirect2KHR#layerFlags} field. */ + @NativeType("XrCompositionLayerFlags") + public long layerFlags() { return XrCompositionLayerEquirect2KHR.nlayerFlags(address()); } + /** @return the value of the {@link XrCompositionLayerEquirect2KHR#space} field. */ + @NativeType("XrSpace") + public long space() { return XrCompositionLayerEquirect2KHR.nspace(address()); } + /** @return the value of the {@code eyeVisibility} field. */ + @NativeType("XrEyeVisibility") + public int eyeVisibility() { return XrCompositionLayerEquirect2KHR.neyeVisibility(address()); } + /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerEquirect2KHR#subImage} field. */ + public XrSwapchainSubImage subImage() { return XrCompositionLayerEquirect2KHR.nsubImage(address()); } + /** @return a {@link XrPosef} view of the {@link XrCompositionLayerEquirect2KHR#pose} field. */ + public XrPosef pose() { return XrCompositionLayerEquirect2KHR.npose(address()); } + /** @return the value of the {@link XrCompositionLayerEquirect2KHR#radius} field. */ + public float radius() { return XrCompositionLayerEquirect2KHR.nradius(address()); } + /** @return the value of the {@link XrCompositionLayerEquirect2KHR#centralHorizontalAngle} field. */ + public float centralHorizontalAngle() { return XrCompositionLayerEquirect2KHR.ncentralHorizontalAngle(address()); } + /** @return the value of the {@link XrCompositionLayerEquirect2KHR#upperVerticalAngle} field. */ + public float upperVerticalAngle() { return XrCompositionLayerEquirect2KHR.nupperVerticalAngle(address()); } + /** @return the value of the {@link XrCompositionLayerEquirect2KHR#lowerVerticalAngle} field. */ + public float lowerVerticalAngle() { return XrCompositionLayerEquirect2KHR.nlowerVerticalAngle(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#type} field. */ + public XrCompositionLayerEquirect2KHR.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerEquirect2KHR.ntype(address(), value); return this; } + /** Sets the {@link KHRCompositionLayerEquirect2#XR_TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR} value to the {@link XrCompositionLayerEquirect2KHR#type} field. */ + public XrCompositionLayerEquirect2KHR.Buffer type$Default() { return type(KHRCompositionLayerEquirect2.XR_TYPE_COMPOSITION_LAYER_EQUIRECT2_KHR); } + /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#next} field. */ + public XrCompositionLayerEquirect2KHR.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerEquirect2KHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#layerFlags} field. */ + public XrCompositionLayerEquirect2KHR.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerEquirect2KHR.nlayerFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#space} field. */ + public XrCompositionLayerEquirect2KHR.Buffer space(XrSpace value) { XrCompositionLayerEquirect2KHR.nspace(address(), value); return this; } + /** Sets the specified value to the {@code eyeVisibility} field. */ + public XrCompositionLayerEquirect2KHR.Buffer eyeVisibility(@NativeType("XrEyeVisibility") int value) { XrCompositionLayerEquirect2KHR.neyeVisibility(address(), value); return this; } + /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerEquirect2KHR#subImage} field. */ + public XrCompositionLayerEquirect2KHR.Buffer subImage(XrSwapchainSubImage value) { XrCompositionLayerEquirect2KHR.nsubImage(address(), value); return this; } + /** Passes the {@link XrCompositionLayerEquirect2KHR#subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerEquirect2KHR.Buffer subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrCompositionLayerEquirect2KHR#pose} field. */ + public XrCompositionLayerEquirect2KHR.Buffer pose(XrPosef value) { XrCompositionLayerEquirect2KHR.npose(address(), value); return this; } + /** Passes the {@link XrCompositionLayerEquirect2KHR#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerEquirect2KHR.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#radius} field. */ + public XrCompositionLayerEquirect2KHR.Buffer radius(float value) { XrCompositionLayerEquirect2KHR.nradius(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#centralHorizontalAngle} field. */ + public XrCompositionLayerEquirect2KHR.Buffer centralHorizontalAngle(float value) { XrCompositionLayerEquirect2KHR.ncentralHorizontalAngle(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#upperVerticalAngle} field. */ + public XrCompositionLayerEquirect2KHR.Buffer upperVerticalAngle(float value) { XrCompositionLayerEquirect2KHR.nupperVerticalAngle(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerEquirect2KHR#lowerVerticalAngle} field. */ + public XrCompositionLayerEquirect2KHR.Buffer lowerVerticalAngle(float value) { XrCompositionLayerEquirect2KHR.nlowerVerticalAngle(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerEquirectKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerEquirectKHR.java index f1de64a4c2..d6ddd5d74e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerEquirectKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerEquirectKHR.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Equirectangular layer composition info. * @@ -28,7 +28,7 @@ *
              *
            • The {@link KHRCompositionLayerEquirect XR_KHR_composition_layer_equirect} extension must be enabled prior to using {@link XrCompositionLayerEquirectKHR}
            • *
            • {@code type} must be {@link KHRCompositionLayerEquirect#XR_TYPE_COMPOSITION_LAYER_EQUIRECT_KHR TYPE_COMPOSITION_LAYER_EQUIRECT_KHR}
            • - *
            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
            • + *
            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
            • *
            • {@code layerFlags} must be 0 or a valid combination of {@code XrCompositionLayerFlagBits} values
            • *
            • {@code space} must be a valid {@code XrSpace} handle
            • *
            • {@code eyeVisibility} must be a valid {@code XrEyeVisibility} value
            • @@ -47,15 +47,15 @@ * void const * {@link #next}; * XrCompositionLayerFlags {@link #layerFlags}; * XrSpace {@link #space}; - * XrEyeVisibility {@link #eyeVisibility}; + * XrEyeVisibility eyeVisibility; * {@link XrSwapchainSubImage XrSwapchainSubImage} {@link #subImage}; * {@link XrPosef XrPosef} {@link #pose}; * float {@link #radius}; * {@link XrVector2f XrVector2f} {@link #scale}; * {@link XrVector2f XrVector2f} {@link #bias}; * } - */ -public class XrCompositionLayerEquirectKHR extends Struct implements NativeResource { + */ +public class XrCompositionLayerEquirectKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -65,45 +65,45 @@ public class XrCompositionLayerEquirectKHR extends Structmust have been created with a {@code faceCount} of 1. */ - public XrSwapchainSubImage subImage() { return nsubImage(address()); } - /** an {@link XrPosef} defining the position and orientation of the center point of the sphere onto which the equirect image data is mapped, relative to the reference frame of the {@code space}. */ - public XrPosef pose() { return npose(address()); } - /** the non-negative radius of the sphere onto which the equirect image data is mapped. Values of zero or floating point positive infinity are treated as an infinite sphere. */ - public float radius() { return nradius(address()); } - /** an {@link XrVector2f} indicating a scale of the texture coordinates after the mapping to 2D. */ - public XrVector2f scale() { return nscale(address()); } - /** an {@link XrVector2f} indicating a bias of the texture coordinates after the mapping to 2D. */ - public XrVector2f bias() { return nbias(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrCompositionLayerEquirectKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link KHRCompositionLayerEquirect#XR_TYPE_COMPOSITION_LAYER_EQUIRECT_KHR TYPE_COMPOSITION_LAYER_EQUIRECT_KHR} value to the {@link #type} field. */ - public XrCompositionLayerEquirectKHR type$Default() { return type(KHRCompositionLayerEquirect.XR_TYPE_COMPOSITION_LAYER_EQUIRECT_KHR); } - /** Sets the specified value to the {@link #next} field. */ - public XrCompositionLayerEquirectKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #layerFlags} field. */ - public XrCompositionLayerEquirectKHR layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; } - /** Sets the specified value to the {@link #space} field. */ - public XrCompositionLayerEquirectKHR space(XrSpace value) { nspace(address(), value); return this; } - /** Sets the specified value to the {@link #eyeVisibility} field. */ - public XrCompositionLayerEquirectKHR eyeVisibility(@NativeType("XrEyeVisibility") int value) { neyeVisibility(address(), value); return this; } - /** Copies the specified {@link XrSwapchainSubImage} to the {@link #subImage} field. */ - public XrCompositionLayerEquirectKHR subImage(XrSwapchainSubImage value) { nsubImage(address(), value); return this; } - /** Passes the {@link #subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerEquirectKHR subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } - /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ - public XrCompositionLayerEquirectKHR pose(XrPosef value) { npose(address(), value); return this; } - /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerEquirectKHR pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Sets the specified value to the {@link #radius} field. */ - public XrCompositionLayerEquirectKHR radius(float value) { nradius(address(), value); return this; } - /** Copies the specified {@link XrVector2f} to the {@link #scale} field. */ - public XrCompositionLayerEquirectKHR scale(XrVector2f value) { nscale(address(), value); return this; } - /** Passes the {@link #scale} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerEquirectKHR scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } - /** Copies the specified {@link XrVector2f} to the {@link #bias} field. */ - public XrCompositionLayerEquirectKHR bias(XrVector2f value) { nbias(address(), value); return this; } - /** Passes the {@link #bias} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerEquirectKHR bias(java.util.function.Consumer consumer) { consumer.accept(bias()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** specifies options for the layer. */ + @NativeType("XrCompositionLayerFlags") + public long layerFlags() { return nlayerFlags(address()); } + /** the {@code XrSpace} in which the {@code pose} of the equirect layer is evaluated over time. */ + @NativeType("XrSpace") + public long space() { return nspace(address()); } + /** @return the value of the {@code eyeVisibility} field. */ + @NativeType("XrEyeVisibility") + public int eyeVisibility() { return neyeVisibility(address()); } + /** identifies the image {@link XrSwapchainSubImage} to use. The swapchain must have been created with a {@code faceCount} of 1. */ + public XrSwapchainSubImage subImage() { return nsubImage(address()); } + /** an {@link XrPosef} defining the position and orientation of the center point of the sphere onto which the equirect image data is mapped, relative to the reference frame of the {@code space}. */ + public XrPosef pose() { return npose(address()); } + /** the non-negative radius of the sphere onto which the equirect image data is mapped. Values of zero or floating point positive infinity are treated as an infinite sphere. */ + public float radius() { return nradius(address()); } + /** an {@link XrVector2f} indicating a scale of the texture coordinates after the mapping to 2D. */ + public XrVector2f scale() { return nscale(address()); } + /** an {@link XrVector2f} indicating a bias of the texture coordinates after the mapping to 2D. */ + public XrVector2f bias() { return nbias(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrCompositionLayerEquirectKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHRCompositionLayerEquirect#XR_TYPE_COMPOSITION_LAYER_EQUIRECT_KHR TYPE_COMPOSITION_LAYER_EQUIRECT_KHR} value to the {@link #type} field. */ + public XrCompositionLayerEquirectKHR type$Default() { return type(KHRCompositionLayerEquirect.XR_TYPE_COMPOSITION_LAYER_EQUIRECT_KHR); } + /** Sets the specified value to the {@link #next} field. */ + public XrCompositionLayerEquirectKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #layerFlags} field. */ + public XrCompositionLayerEquirectKHR layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; } + /** Sets the specified value to the {@link #space} field. */ + public XrCompositionLayerEquirectKHR space(XrSpace value) { nspace(address(), value); return this; } + /** Sets the specified value to the {@code eyeVisibility} field. */ + public XrCompositionLayerEquirectKHR eyeVisibility(@NativeType("XrEyeVisibility") int value) { neyeVisibility(address(), value); return this; } + /** Copies the specified {@link XrSwapchainSubImage} to the {@link #subImage} field. */ + public XrCompositionLayerEquirectKHR subImage(XrSwapchainSubImage value) { nsubImage(address(), value); return this; } + /** Passes the {@link #subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerEquirectKHR subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrCompositionLayerEquirectKHR pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerEquirectKHR pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Sets the specified value to the {@link #radius} field. */ + public XrCompositionLayerEquirectKHR radius(float value) { nradius(address(), value); return this; } + /** Copies the specified {@link XrVector2f} to the {@link #scale} field. */ + public XrCompositionLayerEquirectKHR scale(XrVector2f value) { nscale(address(), value); return this; } + /** Passes the {@link #scale} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerEquirectKHR scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } + /** Copies the specified {@link XrVector2f} to the {@link #bias} field. */ + public XrCompositionLayerEquirectKHR bias(XrVector2f value) { nbias(address(), value); return this; } + /** Passes the {@link #bias} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerEquirectKHR bias(java.util.function.Consumer consumer) { consumer.accept(bias()); return this; } /** Initializes this struct with the specified values. */ public XrCompositionLayerEquirectKHR set( - int type, - long next, - long layerFlags, - XrSpace space, - int eyeVisibility, - XrSwapchainSubImage subImage, - XrPosef pose, - float radius, - XrVector2f scale, + int type, + long next, + long layerFlags, + XrSpace space, + int eyeVisibility, + XrSwapchainSubImage subImage, + XrPosef pose, + float radius, + XrVector2f scale, XrVector2f bias - ) { - type(type); - next(next); - layerFlags(layerFlags); - space(space); - eyeVisibility(eyeVisibility); - subImage(subImage); - pose(pose); - radius(radius); - scale(scale); - bias(bias); + ) { + type(type); + next(next); + layerFlags(layerFlags); + space(space); + eyeVisibility(eyeVisibility); + subImage(subImage); + pose(pose); + radius(radius); + scale(scale); + bias(bias); return this; } @@ -345,48 +345,48 @@ public static XrCompositionLayerEquirectKHR.Buffer calloc(int capacity, MemorySt } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerEquirectKHR.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerEquirectKHR.NEXT); } - /** Unsafe version of {@link #layerFlags}. */ - public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerEquirectKHR.LAYERFLAGS); } - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerEquirectKHR.SPACE); } - /** Unsafe version of {@link #eyeVisibility}. */ - public static int neyeVisibility(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerEquirectKHR.EYEVISIBILITY); } - /** Unsafe version of {@link #subImage}. */ - public static XrSwapchainSubImage nsubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerEquirectKHR.SUBIMAGE); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrCompositionLayerEquirectKHR.POSE); } - /** Unsafe version of {@link #radius}. */ - public static float nradius(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerEquirectKHR.RADIUS); } - /** Unsafe version of {@link #scale}. */ - public static XrVector2f nscale(long struct) { return XrVector2f.create(struct + XrCompositionLayerEquirectKHR.SCALE); } - /** Unsafe version of {@link #bias}. */ - public static XrVector2f nbias(long struct) { return XrVector2f.create(struct + XrCompositionLayerEquirectKHR.BIAS); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerEquirectKHR.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerEquirectKHR.NEXT, value); } - /** Unsafe version of {@link #layerFlags(long) layerFlags}. */ - public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerEquirectKHR.LAYERFLAGS, value); } - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerEquirectKHR.SPACE, value.address()); } - /** Unsafe version of {@link #eyeVisibility(int) eyeVisibility}. */ - public static void neyeVisibility(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerEquirectKHR.EYEVISIBILITY, value); } - /** Unsafe version of {@link #subImage(XrSwapchainSubImage) subImage}. */ - public static void nsubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerEquirectKHR.SUBIMAGE, XrSwapchainSubImage.SIZEOF); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrCompositionLayerEquirectKHR.POSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #radius(float) radius}. */ - public static void nradius(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerEquirectKHR.RADIUS, value); } - /** Unsafe version of {@link #scale(XrVector2f) scale}. */ - public static void nscale(long struct, XrVector2f value) { memCopy(value.address(), struct + XrCompositionLayerEquirectKHR.SCALE, XrVector2f.SIZEOF); } - /** Unsafe version of {@link #bias(XrVector2f) bias}. */ - public static void nbias(long struct, XrVector2f value) { memCopy(value.address(), struct + XrCompositionLayerEquirectKHR.BIAS, XrVector2f.SIZEOF); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerEquirectKHR.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerEquirectKHR.NEXT); } + /** Unsafe version of {@link #layerFlags}. */ + public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerEquirectKHR.LAYERFLAGS); } + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerEquirectKHR.SPACE); } + /** Unsafe version of {@link #eyeVisibility}. */ + public static int neyeVisibility(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerEquirectKHR.EYEVISIBILITY); } + /** Unsafe version of {@link #subImage}. */ + public static XrSwapchainSubImage nsubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerEquirectKHR.SUBIMAGE); } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrCompositionLayerEquirectKHR.POSE); } + /** Unsafe version of {@link #radius}. */ + public static float nradius(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerEquirectKHR.RADIUS); } + /** Unsafe version of {@link #scale}. */ + public static XrVector2f nscale(long struct) { return XrVector2f.create(struct + XrCompositionLayerEquirectKHR.SCALE); } + /** Unsafe version of {@link #bias}. */ + public static XrVector2f nbias(long struct) { return XrVector2f.create(struct + XrCompositionLayerEquirectKHR.BIAS); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerEquirectKHR.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerEquirectKHR.NEXT, value); } + /** Unsafe version of {@link #layerFlags(long) layerFlags}. */ + public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerEquirectKHR.LAYERFLAGS, value); } + /** Unsafe version of {@link #space(XrSpace) space}. */ + public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerEquirectKHR.SPACE, value.address()); } + /** Unsafe version of {@link #eyeVisibility(int) eyeVisibility}. */ + public static void neyeVisibility(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerEquirectKHR.EYEVISIBILITY, value); } + /** Unsafe version of {@link #subImage(XrSwapchainSubImage) subImage}. */ + public static void nsubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerEquirectKHR.SUBIMAGE, XrSwapchainSubImage.SIZEOF); } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrCompositionLayerEquirectKHR.POSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #radius(float) radius}. */ + public static void nradius(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerEquirectKHR.RADIUS, value); } + /** Unsafe version of {@link #scale(XrVector2f) scale}. */ + public static void nscale(long struct, XrVector2f value) { memCopy(value.address(), struct + XrCompositionLayerEquirectKHR.SCALE, XrVector2f.SIZEOF); } + /** Unsafe version of {@link #bias(XrVector2f) bias}. */ + public static void nbias(long struct, XrVector2f value) { memCopy(value.address(), struct + XrCompositionLayerEquirectKHR.BIAS, XrVector2f.SIZEOF); } /** * Validates pointer members that should not be {@code NULL}. @@ -396,9 +396,9 @@ public static XrCompositionLayerEquirectKHR.Buffer calloc(int capacity, MemorySt public static void validate(long struct) { check(memGetAddress(struct + XrCompositionLayerEquirectKHR.SPACE)); XrSwapchainSubImage.validate(struct + XrCompositionLayerEquirectKHR.SUBIMAGE); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrCompositionLayerEquirectKHR} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -435,63 +435,63 @@ protected Buffer self() { protected XrCompositionLayerEquirectKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerEquirectKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerEquirectKHR.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerEquirectKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerEquirectKHR.nnext(address()); } - /** @return the value of the {@link XrCompositionLayerEquirectKHR#layerFlags} field. */ - @NativeType("XrCompositionLayerFlags") - public long layerFlags() { return XrCompositionLayerEquirectKHR.nlayerFlags(address()); } - /** @return the value of the {@link XrCompositionLayerEquirectKHR#space} field. */ - @NativeType("XrSpace") - public long space() { return XrCompositionLayerEquirectKHR.nspace(address()); } - /** @return the value of the {@link XrCompositionLayerEquirectKHR#eyeVisibility} field. */ - @NativeType("XrEyeVisibility") - public int eyeVisibility() { return XrCompositionLayerEquirectKHR.neyeVisibility(address()); } - /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerEquirectKHR#subImage} field. */ - public XrSwapchainSubImage subImage() { return XrCompositionLayerEquirectKHR.nsubImage(address()); } - /** @return a {@link XrPosef} view of the {@link XrCompositionLayerEquirectKHR#pose} field. */ - public XrPosef pose() { return XrCompositionLayerEquirectKHR.npose(address()); } - /** @return the value of the {@link XrCompositionLayerEquirectKHR#radius} field. */ - public float radius() { return XrCompositionLayerEquirectKHR.nradius(address()); } - /** @return a {@link XrVector2f} view of the {@link XrCompositionLayerEquirectKHR#scale} field. */ - public XrVector2f scale() { return XrCompositionLayerEquirectKHR.nscale(address()); } - /** @return a {@link XrVector2f} view of the {@link XrCompositionLayerEquirectKHR#bias} field. */ - public XrVector2f bias() { return XrCompositionLayerEquirectKHR.nbias(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerEquirectKHR#type} field. */ - public XrCompositionLayerEquirectKHR.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerEquirectKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRCompositionLayerEquirect#XR_TYPE_COMPOSITION_LAYER_EQUIRECT_KHR TYPE_COMPOSITION_LAYER_EQUIRECT_KHR} value to the {@link XrCompositionLayerEquirectKHR#type} field. */ - public XrCompositionLayerEquirectKHR.Buffer type$Default() { return type(KHRCompositionLayerEquirect.XR_TYPE_COMPOSITION_LAYER_EQUIRECT_KHR); } - /** Sets the specified value to the {@link XrCompositionLayerEquirectKHR#next} field. */ - public XrCompositionLayerEquirectKHR.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerEquirectKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerEquirectKHR#layerFlags} field. */ - public XrCompositionLayerEquirectKHR.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerEquirectKHR.nlayerFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerEquirectKHR#space} field. */ - public XrCompositionLayerEquirectKHR.Buffer space(XrSpace value) { XrCompositionLayerEquirectKHR.nspace(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerEquirectKHR#eyeVisibility} field. */ - public XrCompositionLayerEquirectKHR.Buffer eyeVisibility(@NativeType("XrEyeVisibility") int value) { XrCompositionLayerEquirectKHR.neyeVisibility(address(), value); return this; } - /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerEquirectKHR#subImage} field. */ - public XrCompositionLayerEquirectKHR.Buffer subImage(XrSwapchainSubImage value) { XrCompositionLayerEquirectKHR.nsubImage(address(), value); return this; } - /** Passes the {@link XrCompositionLayerEquirectKHR#subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerEquirectKHR.Buffer subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrCompositionLayerEquirectKHR#pose} field. */ - public XrCompositionLayerEquirectKHR.Buffer pose(XrPosef value) { XrCompositionLayerEquirectKHR.npose(address(), value); return this; } - /** Passes the {@link XrCompositionLayerEquirectKHR#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerEquirectKHR.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Sets the specified value to the {@link XrCompositionLayerEquirectKHR#radius} field. */ - public XrCompositionLayerEquirectKHR.Buffer radius(float value) { XrCompositionLayerEquirectKHR.nradius(address(), value); return this; } - /** Copies the specified {@link XrVector2f} to the {@link XrCompositionLayerEquirectKHR#scale} field. */ - public XrCompositionLayerEquirectKHR.Buffer scale(XrVector2f value) { XrCompositionLayerEquirectKHR.nscale(address(), value); return this; } - /** Passes the {@link XrCompositionLayerEquirectKHR#scale} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerEquirectKHR.Buffer scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } - /** Copies the specified {@link XrVector2f} to the {@link XrCompositionLayerEquirectKHR#bias} field. */ - public XrCompositionLayerEquirectKHR.Buffer bias(XrVector2f value) { XrCompositionLayerEquirectKHR.nbias(address(), value); return this; } - /** Passes the {@link XrCompositionLayerEquirectKHR#bias} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerEquirectKHR.Buffer bias(java.util.function.Consumer consumer) { consumer.accept(bias()); return this; } + + /** @return the value of the {@link XrCompositionLayerEquirectKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerEquirectKHR.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerEquirectKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerEquirectKHR.nnext(address()); } + /** @return the value of the {@link XrCompositionLayerEquirectKHR#layerFlags} field. */ + @NativeType("XrCompositionLayerFlags") + public long layerFlags() { return XrCompositionLayerEquirectKHR.nlayerFlags(address()); } + /** @return the value of the {@link XrCompositionLayerEquirectKHR#space} field. */ + @NativeType("XrSpace") + public long space() { return XrCompositionLayerEquirectKHR.nspace(address()); } + /** @return the value of the {@code eyeVisibility} field. */ + @NativeType("XrEyeVisibility") + public int eyeVisibility() { return XrCompositionLayerEquirectKHR.neyeVisibility(address()); } + /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerEquirectKHR#subImage} field. */ + public XrSwapchainSubImage subImage() { return XrCompositionLayerEquirectKHR.nsubImage(address()); } + /** @return a {@link XrPosef} view of the {@link XrCompositionLayerEquirectKHR#pose} field. */ + public XrPosef pose() { return XrCompositionLayerEquirectKHR.npose(address()); } + /** @return the value of the {@link XrCompositionLayerEquirectKHR#radius} field. */ + public float radius() { return XrCompositionLayerEquirectKHR.nradius(address()); } + /** @return a {@link XrVector2f} view of the {@link XrCompositionLayerEquirectKHR#scale} field. */ + public XrVector2f scale() { return XrCompositionLayerEquirectKHR.nscale(address()); } + /** @return a {@link XrVector2f} view of the {@link XrCompositionLayerEquirectKHR#bias} field. */ + public XrVector2f bias() { return XrCompositionLayerEquirectKHR.nbias(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerEquirectKHR#type} field. */ + public XrCompositionLayerEquirectKHR.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerEquirectKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRCompositionLayerEquirect#XR_TYPE_COMPOSITION_LAYER_EQUIRECT_KHR TYPE_COMPOSITION_LAYER_EQUIRECT_KHR} value to the {@link XrCompositionLayerEquirectKHR#type} field. */ + public XrCompositionLayerEquirectKHR.Buffer type$Default() { return type(KHRCompositionLayerEquirect.XR_TYPE_COMPOSITION_LAYER_EQUIRECT_KHR); } + /** Sets the specified value to the {@link XrCompositionLayerEquirectKHR#next} field. */ + public XrCompositionLayerEquirectKHR.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerEquirectKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerEquirectKHR#layerFlags} field. */ + public XrCompositionLayerEquirectKHR.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerEquirectKHR.nlayerFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerEquirectKHR#space} field. */ + public XrCompositionLayerEquirectKHR.Buffer space(XrSpace value) { XrCompositionLayerEquirectKHR.nspace(address(), value); return this; } + /** Sets the specified value to the {@code eyeVisibility} field. */ + public XrCompositionLayerEquirectKHR.Buffer eyeVisibility(@NativeType("XrEyeVisibility") int value) { XrCompositionLayerEquirectKHR.neyeVisibility(address(), value); return this; } + /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerEquirectKHR#subImage} field. */ + public XrCompositionLayerEquirectKHR.Buffer subImage(XrSwapchainSubImage value) { XrCompositionLayerEquirectKHR.nsubImage(address(), value); return this; } + /** Passes the {@link XrCompositionLayerEquirectKHR#subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerEquirectKHR.Buffer subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrCompositionLayerEquirectKHR#pose} field. */ + public XrCompositionLayerEquirectKHR.Buffer pose(XrPosef value) { XrCompositionLayerEquirectKHR.npose(address(), value); return this; } + /** Passes the {@link XrCompositionLayerEquirectKHR#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerEquirectKHR.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Sets the specified value to the {@link XrCompositionLayerEquirectKHR#radius} field. */ + public XrCompositionLayerEquirectKHR.Buffer radius(float value) { XrCompositionLayerEquirectKHR.nradius(address(), value); return this; } + /** Copies the specified {@link XrVector2f} to the {@link XrCompositionLayerEquirectKHR#scale} field. */ + public XrCompositionLayerEquirectKHR.Buffer scale(XrVector2f value) { XrCompositionLayerEquirectKHR.nscale(address(), value); return this; } + /** Passes the {@link XrCompositionLayerEquirectKHR#scale} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerEquirectKHR.Buffer scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } + /** Copies the specified {@link XrVector2f} to the {@link XrCompositionLayerEquirectKHR#bias} field. */ + public XrCompositionLayerEquirectKHR.Buffer bias(XrVector2f value) { XrCompositionLayerEquirectKHR.nbias(address(), value); return this; } + /** Passes the {@link XrCompositionLayerEquirectKHR#bias} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerEquirectKHR.Buffer bias(java.util.function.Consumer consumer) { consumer.accept(bias()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerImageLayoutFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerImageLayoutFB.java index 44a4afa199..c9111232c5 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerImageLayoutFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerImageLayoutFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * specifies image layout for composition layers. * @@ -29,7 +29,7 @@ *
                *
              • The {@link FBCompositionLayerImageLayout XR_FB_composition_layer_image_layout} extension must be enabled prior to using {@link XrCompositionLayerImageLayoutFB}
              • *
              • {@code type} must be {@link FBCompositionLayerImageLayout#XR_TYPE_COMPOSITION_LAYER_IMAGE_LAYOUT_FB TYPE_COMPOSITION_LAYER_IMAGE_LAYOUT_FB}
              • - *
              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
              • + *
              • {@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 XrCompositionLayerImageLayoutFlagBitsFB} values
              • *
              * @@ -45,8 +45,8 @@ * void * {@link #next}; * XrCompositionLayerImageLayoutFlagsFB {@link #flags}; * } - */ -public class XrCompositionLayerImageLayoutFB extends Struct implements NativeResource { + */ +public class XrCompositionLayerImageLayoutFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,24 +56,24 @@ public class XrCompositionLayerImageLayoutFB extends Struct implements NativeResource { @@ -305,25 +305,25 @@ protected Buffer self() { protected XrCompositionLayerImageLayoutFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerImageLayoutFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerImageLayoutFB.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerImageLayoutFB#next} field. */ - @NativeType("void *") - public long next() { return XrCompositionLayerImageLayoutFB.nnext(address()); } - /** @return the value of the {@link XrCompositionLayerImageLayoutFB#flags} field. */ - @NativeType("XrCompositionLayerImageLayoutFlagsFB") - public long flags() { return XrCompositionLayerImageLayoutFB.nflags(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerImageLayoutFB#type} field. */ - public XrCompositionLayerImageLayoutFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerImageLayoutFB.ntype(address(), value); return this; } - /** Sets the {@link FBCompositionLayerImageLayout#XR_TYPE_COMPOSITION_LAYER_IMAGE_LAYOUT_FB TYPE_COMPOSITION_LAYER_IMAGE_LAYOUT_FB} value to the {@link XrCompositionLayerImageLayoutFB#type} field. */ - public XrCompositionLayerImageLayoutFB.Buffer type$Default() { return type(FBCompositionLayerImageLayout.XR_TYPE_COMPOSITION_LAYER_IMAGE_LAYOUT_FB); } - /** Sets the specified value to the {@link XrCompositionLayerImageLayoutFB#next} field. */ - public XrCompositionLayerImageLayoutFB.Buffer next(@NativeType("void *") long value) { XrCompositionLayerImageLayoutFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerImageLayoutFB#flags} field. */ - public XrCompositionLayerImageLayoutFB.Buffer flags(@NativeType("XrCompositionLayerImageLayoutFlagsFB") long value) { XrCompositionLayerImageLayoutFB.nflags(address(), value); return this; } + + /** @return the value of the {@link XrCompositionLayerImageLayoutFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerImageLayoutFB.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerImageLayoutFB#next} field. */ + @NativeType("void *") + public long next() { return XrCompositionLayerImageLayoutFB.nnext(address()); } + /** @return the value of the {@link XrCompositionLayerImageLayoutFB#flags} field. */ + @NativeType("XrCompositionLayerImageLayoutFlagsFB") + public long flags() { return XrCompositionLayerImageLayoutFB.nflags(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerImageLayoutFB#type} field. */ + public XrCompositionLayerImageLayoutFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerImageLayoutFB.ntype(address(), value); return this; } + /** Sets the {@link FBCompositionLayerImageLayout#XR_TYPE_COMPOSITION_LAYER_IMAGE_LAYOUT_FB TYPE_COMPOSITION_LAYER_IMAGE_LAYOUT_FB} value to the {@link XrCompositionLayerImageLayoutFB#type} field. */ + public XrCompositionLayerImageLayoutFB.Buffer type$Default() { return type(FBCompositionLayerImageLayout.XR_TYPE_COMPOSITION_LAYER_IMAGE_LAYOUT_FB); } + /** Sets the specified value to the {@link XrCompositionLayerImageLayoutFB#next} field. */ + public XrCompositionLayerImageLayoutFB.Buffer next(@NativeType("void *") long value) { XrCompositionLayerImageLayoutFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerImageLayoutFB#flags} field. */ + public XrCompositionLayerImageLayoutFB.Buffer flags(@NativeType("XrCompositionLayerImageLayoutFlagsFB") long value) { XrCompositionLayerImageLayoutFB.nflags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerPassthroughFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerPassthroughFB.java index 4aa6244a06..0b83d0b4c5 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerPassthroughFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerPassthroughFB.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * A composition layer for passthrough. * @@ -34,7 +34,7 @@ *
                *
              • The {@link FBPassthrough XR_FB_passthrough} extension must be enabled prior to using {@link XrCompositionLayerPassthroughFB}
              • *
              • {@code type} must be {@link FBPassthrough#XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_FB TYPE_COMPOSITION_LAYER_PASSTHROUGH_FB}
              • - *
              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
              • + *
              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
              • *
              • {@code flags} must be a valid combination of {@code XrCompositionLayerFlagBits} values
              • *
              • {@code flags} must not be 0
              • *
              • {@code space} must be a valid {@code XrSpace} handle
              • @@ -56,8 +56,8 @@ * XrSpace space; * XrPassthroughLayerFB layerHandle; * } - */ -public class XrCompositionLayerPassthroughFB extends Struct implements NativeResource { + */ +public class XrCompositionLayerPassthroughFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -67,30 +67,30 @@ public class XrCompositionLayerPassthroughFB extends Struct implements NativeResource { @@ -354,35 +354,35 @@ protected Buffer self() { protected XrCompositionLayerPassthroughFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerPassthroughFB.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerPassthroughFB.nnext(address()); } - /** @return the value of the {@code flags} field. */ - @NativeType("XrCompositionLayerFlags") - public long flags() { return XrCompositionLayerPassthroughFB.nflags(address()); } - /** @return the value of the {@code space} field. */ - @NativeType("XrSpace") - public long space() { return XrCompositionLayerPassthroughFB.nspace(address()); } - /** @return the value of the {@code layerHandle} field. */ - @NativeType("XrPassthroughLayerFB") - public long layerHandle() { return XrCompositionLayerPassthroughFB.nlayerHandle(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrCompositionLayerPassthroughFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerPassthroughFB.ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_FB TYPE_COMPOSITION_LAYER_PASSTHROUGH_FB} value to the {@code type} field. */ - public XrCompositionLayerPassthroughFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_FB); } - /** Sets the specified value to the {@code next} field. */ - public XrCompositionLayerPassthroughFB.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerPassthroughFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@code flags} field. */ - public XrCompositionLayerPassthroughFB.Buffer flags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerPassthroughFB.nflags(address(), value); return this; } - /** Sets the specified value to the {@code space} field. */ - public XrCompositionLayerPassthroughFB.Buffer space(XrSpace value) { XrCompositionLayerPassthroughFB.nspace(address(), value); return this; } - /** Sets the specified value to the {@code layerHandle} field. */ - public XrCompositionLayerPassthroughFB.Buffer layerHandle(XrPassthroughLayerFB value) { XrCompositionLayerPassthroughFB.nlayerHandle(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerPassthroughFB.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerPassthroughFB.nnext(address()); } + /** @return the value of the {@code flags} field. */ + @NativeType("XrCompositionLayerFlags") + public long flags() { return XrCompositionLayerPassthroughFB.nflags(address()); } + /** @return the value of the {@code space} field. */ + @NativeType("XrSpace") + public long space() { return XrCompositionLayerPassthroughFB.nspace(address()); } + /** @return the value of the {@code layerHandle} field. */ + @NativeType("XrPassthroughLayerFB") + public long layerHandle() { return XrCompositionLayerPassthroughFB.nlayerHandle(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrCompositionLayerPassthroughFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerPassthroughFB.ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_FB TYPE_COMPOSITION_LAYER_PASSTHROUGH_FB} value to the {@code type} field. */ + public XrCompositionLayerPassthroughFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrCompositionLayerPassthroughFB.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerPassthroughFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@code flags} field. */ + public XrCompositionLayerPassthroughFB.Buffer flags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerPassthroughFB.nflags(address(), value); return this; } + /** Sets the specified value to the {@code space} field. */ + public XrCompositionLayerPassthroughFB.Buffer space(XrSpace value) { XrCompositionLayerPassthroughFB.nspace(address(), value); return this; } + /** Sets the specified value to the {@code layerHandle} field. */ + public XrCompositionLayerPassthroughFB.Buffer layerHandle(XrPassthroughLayerFB value) { XrCompositionLayerPassthroughFB.nlayerHandle(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerPassthroughHTC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerPassthroughHTC.java index 2088841eec..82ae11b867 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerPassthroughHTC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerPassthroughHTC.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * A composition layer for passthrough. * @@ -30,7 +30,7 @@ *
                  *
                • The {@link HTCPassthrough XR_HTC_passthrough} extension must be enabled prior to using {@link XrCompositionLayerPassthroughHTC}
                • *
                • {@code type} must be {@link HTCPassthrough#XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC}
                • - *
                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrPassthroughMeshTransformInfoHTC}
                • + *
                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrPassthroughMeshTransformInfoHTC}
                • *
                • {@code layerFlags} must be a valid combination of {@code XrCompositionLayerFlagBits} values
                • *
                • {@code layerFlags} must not be 0
                • *
                • {@code space} must be a valid {@code XrSpace} handle
                • @@ -54,8 +54,8 @@ * XrPassthroughHTC {@link #passthrough}; * {@link XrPassthroughColorHTC XrPassthroughColorHTC} {@link #color}; * } - */ -public class XrCompositionLayerPassthroughHTC extends Struct implements NativeResource { + */ +public class XrCompositionLayerPassthroughHTC extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -65,33 +65,33 @@ public class XrCompositionLayerPassthroughHTC extends Structmust be {@link XR10#XR_NULL_HANDLE NULL_HANDLE}. */ - @NativeType("XrSpace") - public long space() { return nspace(address()); } - /** the {@code XrPassthroughHTC} previously created by {@link HTCPassthrough#xrCreatePassthroughHTC CreatePassthroughHTC}. */ - @NativeType("XrPassthroughHTC") - public long passthrough() { return npassthrough(address()); } - /** the {@link XrPassthroughColorHTC} describing the color information with the alpha value of the passthrough layer. */ - public XrPassthroughColorHTC color() { return ncolor(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrCompositionLayerPassthroughHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link HTCPassthrough#XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC} value to the {@link #type} field. */ - public XrCompositionLayerPassthroughHTC type$Default() { return type(HTCPassthrough.XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC); } - /** Sets the specified value to the {@link #next} field. */ - public XrCompositionLayerPassthroughHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrPassthroughMeshTransformInfoHTC} value to the {@code next} chain. */ - public XrCompositionLayerPassthroughHTC next(XrPassthroughMeshTransformInfoHTC value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #layerFlags} field. */ - public XrCompositionLayerPassthroughHTC layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; } - /** Sets the specified value to the {@link #space} field. */ - public XrCompositionLayerPassthroughHTC space(XrSpace value) { nspace(address(), value); return this; } - /** Sets the specified value to the {@link #passthrough} field. */ - public XrCompositionLayerPassthroughHTC passthrough(XrPassthroughHTC value) { npassthrough(address(), value); return this; } - /** Copies the specified {@link XrPassthroughColorHTC} to the {@link #color} field. */ - public XrCompositionLayerPassthroughHTC color(XrPassthroughColorHTC value) { ncolor(address(), value); return this; } - /** Passes the {@link #color} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerPassthroughHTC color(java.util.function.Consumer consumer) { consumer.accept(color()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain, such as {@link XrPassthroughMeshTransformInfoHTC}. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** a bitmask of {@code XrCompositionLayerFlagBits} describing flags to apply to the layer. */ + @NativeType("XrCompositionLayerFlags") + public long layerFlags() { return nlayerFlags(address()); } + /** the {@code XrSpace} that specifies the layer’s space - must be {@link XR10#XR_NULL_HANDLE NULL_HANDLE}. */ + @NativeType("XrSpace") + public long space() { return nspace(address()); } + /** the {@code XrPassthroughHTC} previously created by {@link HTCPassthrough#xrCreatePassthroughHTC CreatePassthroughHTC}. */ + @NativeType("XrPassthroughHTC") + public long passthrough() { return npassthrough(address()); } + /** the {@link XrPassthroughColorHTC} describing the color information with the alpha value of the passthrough layer. */ + public XrPassthroughColorHTC color() { return ncolor(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrCompositionLayerPassthroughHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link HTCPassthrough#XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC} value to the {@link #type} field. */ + public XrCompositionLayerPassthroughHTC type$Default() { return type(HTCPassthrough.XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC); } + /** Sets the specified value to the {@link #next} field. */ + public XrCompositionLayerPassthroughHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrPassthroughMeshTransformInfoHTC} value to the {@code next} chain. */ + public XrCompositionLayerPassthroughHTC next(XrPassthroughMeshTransformInfoHTC value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #layerFlags} field. */ + public XrCompositionLayerPassthroughHTC layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; } + /** Sets the specified value to the {@link #space} field. */ + public XrCompositionLayerPassthroughHTC space(XrSpace value) { nspace(address(), value); return this; } + /** Sets the specified value to the {@link #passthrough} field. */ + public XrCompositionLayerPassthroughHTC passthrough(XrPassthroughHTC value) { npassthrough(address(), value); return this; } + /** Copies the specified {@link XrPassthroughColorHTC} to the {@link #color} field. */ + public XrCompositionLayerPassthroughHTC color(XrPassthroughColorHTC value) { ncolor(address(), value); return this; } + /** Passes the {@link #color} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerPassthroughHTC color(java.util.function.Consumer consumer) { consumer.accept(color()); return this; } /** Initializes this struct with the specified values. */ public XrCompositionLayerPassthroughHTC set( - int type, - long next, - long layerFlags, - XrSpace space, - XrPassthroughHTC passthrough, + int type, + long next, + long layerFlags, + XrSpace space, + XrPassthroughHTC passthrough, XrPassthroughColorHTC color - ) { - type(type); - next(next); - layerFlags(layerFlags); - space(space); - passthrough(passthrough); - color(color); + ) { + type(type); + next(next); + layerFlags(layerFlags); + space(space); + passthrough(passthrough); + color(color); return this; } @@ -305,32 +305,32 @@ public static XrCompositionLayerPassthroughHTC.Buffer calloc(int capacity, Memor } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerPassthroughHTC.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerPassthroughHTC.NEXT); } - /** Unsafe version of {@link #layerFlags}. */ - public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerPassthroughHTC.LAYERFLAGS); } - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerPassthroughHTC.SPACE); } - /** Unsafe version of {@link #passthrough}. */ - public static long npassthrough(long struct) { return memGetAddress(struct + XrCompositionLayerPassthroughHTC.PASSTHROUGH); } - /** Unsafe version of {@link #color}. */ - public static XrPassthroughColorHTC ncolor(long struct) { return XrPassthroughColorHTC.create(struct + XrCompositionLayerPassthroughHTC.COLOR); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerPassthroughHTC.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerPassthroughHTC.NEXT, value); } - /** Unsafe version of {@link #layerFlags(long) layerFlags}. */ - public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerPassthroughHTC.LAYERFLAGS, value); } - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerPassthroughHTC.SPACE, value.address()); } - /** Unsafe version of {@link #passthrough(XrPassthroughHTC) passthrough}. */ - public static void npassthrough(long struct, XrPassthroughHTC value) { memPutAddress(struct + XrCompositionLayerPassthroughHTC.PASSTHROUGH, value.address()); } - /** Unsafe version of {@link #color(XrPassthroughColorHTC) color}. */ - public static void ncolor(long struct, XrPassthroughColorHTC value) { memCopy(value.address(), struct + XrCompositionLayerPassthroughHTC.COLOR, XrPassthroughColorHTC.SIZEOF); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerPassthroughHTC.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerPassthroughHTC.NEXT); } + /** Unsafe version of {@link #layerFlags}. */ + public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerPassthroughHTC.LAYERFLAGS); } + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerPassthroughHTC.SPACE); } + /** Unsafe version of {@link #passthrough}. */ + public static long npassthrough(long struct) { return memGetAddress(struct + XrCompositionLayerPassthroughHTC.PASSTHROUGH); } + /** Unsafe version of {@link #color}. */ + public static XrPassthroughColorHTC ncolor(long struct) { return XrPassthroughColorHTC.create(struct + XrCompositionLayerPassthroughHTC.COLOR); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerPassthroughHTC.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerPassthroughHTC.NEXT, value); } + /** Unsafe version of {@link #layerFlags(long) layerFlags}. */ + public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerPassthroughHTC.LAYERFLAGS, value); } + /** Unsafe version of {@link #space(XrSpace) space}. */ + public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerPassthroughHTC.SPACE, value.address()); } + /** Unsafe version of {@link #passthrough(XrPassthroughHTC) passthrough}. */ + public static void npassthrough(long struct, XrPassthroughHTC value) { memPutAddress(struct + XrCompositionLayerPassthroughHTC.PASSTHROUGH, value.address()); } + /** Unsafe version of {@link #color(XrPassthroughColorHTC) color}. */ + public static void ncolor(long struct, XrPassthroughColorHTC value) { memCopy(value.address(), struct + XrCompositionLayerPassthroughHTC.COLOR, XrPassthroughColorHTC.SIZEOF); } /** * Validates pointer members that should not be {@code NULL}. @@ -340,9 +340,9 @@ public static XrCompositionLayerPassthroughHTC.Buffer calloc(int capacity, Memor public static void validate(long struct) { check(memGetAddress(struct + XrCompositionLayerPassthroughHTC.SPACE)); check(memGetAddress(struct + XrCompositionLayerPassthroughHTC.PASSTHROUGH)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrCompositionLayerPassthroughHTC} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -379,43 +379,43 @@ protected Buffer self() { protected XrCompositionLayerPassthroughHTC getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerPassthroughHTC#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerPassthroughHTC.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerPassthroughHTC#next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerPassthroughHTC.nnext(address()); } - /** @return the value of the {@link XrCompositionLayerPassthroughHTC#layerFlags} field. */ - @NativeType("XrCompositionLayerFlags") - public long layerFlags() { return XrCompositionLayerPassthroughHTC.nlayerFlags(address()); } - /** @return the value of the {@link XrCompositionLayerPassthroughHTC#space} field. */ - @NativeType("XrSpace") - public long space() { return XrCompositionLayerPassthroughHTC.nspace(address()); } - /** @return the value of the {@link XrCompositionLayerPassthroughHTC#passthrough} field. */ - @NativeType("XrPassthroughHTC") - public long passthrough() { return XrCompositionLayerPassthroughHTC.npassthrough(address()); } - /** @return a {@link XrPassthroughColorHTC} view of the {@link XrCompositionLayerPassthroughHTC#color} field. */ - public XrPassthroughColorHTC color() { return XrCompositionLayerPassthroughHTC.ncolor(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerPassthroughHTC#type} field. */ - public XrCompositionLayerPassthroughHTC.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerPassthroughHTC.ntype(address(), value); return this; } - /** Sets the {@link HTCPassthrough#XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC} value to the {@link XrCompositionLayerPassthroughHTC#type} field. */ - public XrCompositionLayerPassthroughHTC.Buffer type$Default() { return type(HTCPassthrough.XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC); } - /** Sets the specified value to the {@link XrCompositionLayerPassthroughHTC#next} field. */ - public XrCompositionLayerPassthroughHTC.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerPassthroughHTC.nnext(address(), value); return this; } - /** Prepends the specified {@link XrPassthroughMeshTransformInfoHTC} value to the {@code next} chain. */ - public XrCompositionLayerPassthroughHTC.Buffer next(XrPassthroughMeshTransformInfoHTC value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrCompositionLayerPassthroughHTC#layerFlags} field. */ - public XrCompositionLayerPassthroughHTC.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerPassthroughHTC.nlayerFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerPassthroughHTC#space} field. */ - public XrCompositionLayerPassthroughHTC.Buffer space(XrSpace value) { XrCompositionLayerPassthroughHTC.nspace(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerPassthroughHTC#passthrough} field. */ - public XrCompositionLayerPassthroughHTC.Buffer passthrough(XrPassthroughHTC value) { XrCompositionLayerPassthroughHTC.npassthrough(address(), value); return this; } - /** Copies the specified {@link XrPassthroughColorHTC} to the {@link XrCompositionLayerPassthroughHTC#color} field. */ - public XrCompositionLayerPassthroughHTC.Buffer color(XrPassthroughColorHTC value) { XrCompositionLayerPassthroughHTC.ncolor(address(), value); return this; } - /** Passes the {@link XrCompositionLayerPassthroughHTC#color} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerPassthroughHTC.Buffer color(java.util.function.Consumer consumer) { consumer.accept(color()); return this; } + + /** @return the value of the {@link XrCompositionLayerPassthroughHTC#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerPassthroughHTC.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerPassthroughHTC#next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerPassthroughHTC.nnext(address()); } + /** @return the value of the {@link XrCompositionLayerPassthroughHTC#layerFlags} field. */ + @NativeType("XrCompositionLayerFlags") + public long layerFlags() { return XrCompositionLayerPassthroughHTC.nlayerFlags(address()); } + /** @return the value of the {@link XrCompositionLayerPassthroughHTC#space} field. */ + @NativeType("XrSpace") + public long space() { return XrCompositionLayerPassthroughHTC.nspace(address()); } + /** @return the value of the {@link XrCompositionLayerPassthroughHTC#passthrough} field. */ + @NativeType("XrPassthroughHTC") + public long passthrough() { return XrCompositionLayerPassthroughHTC.npassthrough(address()); } + /** @return a {@link XrPassthroughColorHTC} view of the {@link XrCompositionLayerPassthroughHTC#color} field. */ + public XrPassthroughColorHTC color() { return XrCompositionLayerPassthroughHTC.ncolor(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerPassthroughHTC#type} field. */ + public XrCompositionLayerPassthroughHTC.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerPassthroughHTC.ntype(address(), value); return this; } + /** Sets the {@link HTCPassthrough#XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC} value to the {@link XrCompositionLayerPassthroughHTC#type} field. */ + public XrCompositionLayerPassthroughHTC.Buffer type$Default() { return type(HTCPassthrough.XR_TYPE_COMPOSITION_LAYER_PASSTHROUGH_HTC); } + /** Sets the specified value to the {@link XrCompositionLayerPassthroughHTC#next} field. */ + public XrCompositionLayerPassthroughHTC.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerPassthroughHTC.nnext(address(), value); return this; } + /** Prepends the specified {@link XrPassthroughMeshTransformInfoHTC} value to the {@code next} chain. */ + public XrCompositionLayerPassthroughHTC.Buffer next(XrPassthroughMeshTransformInfoHTC value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrCompositionLayerPassthroughHTC#layerFlags} field. */ + public XrCompositionLayerPassthroughHTC.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerPassthroughHTC.nlayerFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerPassthroughHTC#space} field. */ + public XrCompositionLayerPassthroughHTC.Buffer space(XrSpace value) { XrCompositionLayerPassthroughHTC.nspace(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerPassthroughHTC#passthrough} field. */ + public XrCompositionLayerPassthroughHTC.Buffer passthrough(XrPassthroughHTC value) { XrCompositionLayerPassthroughHTC.npassthrough(address(), value); return this; } + /** Copies the specified {@link XrPassthroughColorHTC} to the {@link XrCompositionLayerPassthroughHTC#color} field. */ + public XrCompositionLayerPassthroughHTC.Buffer color(XrPassthroughColorHTC value) { XrCompositionLayerPassthroughHTC.ncolor(address(), value); return this; } + /** Passes the {@link XrCompositionLayerPassthroughHTC#color} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerPassthroughHTC.Buffer color(java.util.function.Consumer consumer) { consumer.accept(color()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerProjection.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerProjection.java index 1331477274..d01ebb9bae 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerProjection.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerProjection.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Composition layer for projection. * @@ -30,7 +30,7 @@ * *
                    *
                  • {@code type} must be {@link XR10#XR_TYPE_COMPOSITION_LAYER_PROJECTION TYPE_COMPOSITION_LAYER_PROJECTION}
                  • - *
                  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrCompositionLayerDepthTestVARJO}, {@link XrCompositionLayerReprojectionInfoMSFT}, {@link XrCompositionLayerReprojectionPlaneOverrideMSFT}
                  • + *
                  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrCompositionLayerDepthTestVARJO}, {@link XrCompositionLayerReprojectionInfoMSFT}, {@link XrCompositionLayerReprojectionPlaneOverrideMSFT}
                  • *
                  • {@code layerFlags} must be 0 or a valid combination of {@code XrCompositionLayerFlagBits} values
                  • *
                  • {@code space} must be a valid {@code XrSpace} handle
                  • *
                  • {@code views} must be a pointer to an array of {@code viewCount} valid {@link XrCompositionLayerProjectionView} structures
                  • @@ -52,8 +52,8 @@ * uint32_t {@link #viewCount}; * {@link XrCompositionLayerProjectionView XrCompositionLayerProjectionView} const * {@link #views}; * } - */ -public class XrCompositionLayerProjection extends Struct implements NativeResource { + */ +public class XrCompositionLayerProjection extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -63,33 +63,33 @@ public class XrCompositionLayerProjection extends Structmust be equal to the number of view poses returned by {@link XR10#xrLocateViews LocateViews}. */ - @NativeType("uint32_t") - public int viewCount() { return nviewCount(address()); } - /** the array of type {@link XrCompositionLayerProjectionView} containing each projection layer view. */ - @NativeType("XrCompositionLayerProjectionView const *") - public XrCompositionLayerProjectionView.Buffer views() { return nviews(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrCompositionLayerProjection type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_COMPOSITION_LAYER_PROJECTION TYPE_COMPOSITION_LAYER_PROJECTION} value to the {@link #type} field. */ - public XrCompositionLayerProjection type$Default() { return type(XR10.XR_TYPE_COMPOSITION_LAYER_PROJECTION); } - /** Sets the specified value to the {@link #next} field. */ - public XrCompositionLayerProjection next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrCompositionLayerDepthTestVARJO} value to the {@code next} chain. */ - public XrCompositionLayerProjection next(XrCompositionLayerDepthTestVARJO value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrCompositionLayerReprojectionInfoMSFT} value to the {@code next} chain. */ - public XrCompositionLayerProjection next(XrCompositionLayerReprojectionInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrCompositionLayerReprojectionPlaneOverrideMSFT} value to the {@code next} chain. */ - public XrCompositionLayerProjection next(XrCompositionLayerReprojectionPlaneOverrideMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #layerFlags} field. */ - public XrCompositionLayerProjection layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; } - /** Sets the specified value to the {@link #space} field. */ - public XrCompositionLayerProjection space(XrSpace value) { nspace(address(), value); return this; } - /** Sets the address of the specified {@link XrCompositionLayerProjectionView.Buffer} to the {@link #views} field. */ - public XrCompositionLayerProjection views(@NativeType("XrCompositionLayerProjectionView const *") XrCompositionLayerProjectionView.Buffer value) { nviews(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** a bitmask of {@code XrCompositionLayerFlagBits} describing flags to apply to the layer. */ + @NativeType("XrCompositionLayerFlags") + public long layerFlags() { return nlayerFlags(address()); } + /** the {@code XrSpace} in which the {@code pose} of each {@link XrCompositionLayerProjectionView} is evaluated over time by the compositor. */ + @NativeType("XrSpace") + public long space() { return nspace(address()); } + /** the count of views in the {@code views} array. This must be equal to the number of view poses returned by {@link XR10#xrLocateViews LocateViews}. */ + @NativeType("uint32_t") + public int viewCount() { return nviewCount(address()); } + /** the array of type {@link XrCompositionLayerProjectionView} containing each projection layer view. */ + @NativeType("XrCompositionLayerProjectionView const *") + public XrCompositionLayerProjectionView.Buffer views() { return nviews(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrCompositionLayerProjection type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_COMPOSITION_LAYER_PROJECTION TYPE_COMPOSITION_LAYER_PROJECTION} value to the {@link #type} field. */ + public XrCompositionLayerProjection type$Default() { return type(XR10.XR_TYPE_COMPOSITION_LAYER_PROJECTION); } + /** Sets the specified value to the {@link #next} field. */ + public XrCompositionLayerProjection next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrCompositionLayerDepthTestVARJO} value to the {@code next} chain. */ + public XrCompositionLayerProjection next(XrCompositionLayerDepthTestVARJO value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrCompositionLayerReprojectionInfoMSFT} value to the {@code next} chain. */ + public XrCompositionLayerProjection next(XrCompositionLayerReprojectionInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrCompositionLayerReprojectionPlaneOverrideMSFT} value to the {@code next} chain. */ + public XrCompositionLayerProjection next(XrCompositionLayerReprojectionPlaneOverrideMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #layerFlags} field. */ + public XrCompositionLayerProjection layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; } + /** Sets the specified value to the {@link #space} field. */ + public XrCompositionLayerProjection space(XrSpace value) { nspace(address(), value); return this; } + /** Sets the address of the specified {@link XrCompositionLayerProjectionView.Buffer} to the {@link #views} field. */ + public XrCompositionLayerProjection views(@NativeType("XrCompositionLayerProjectionView const *") XrCompositionLayerProjectionView.Buffer value) { nviews(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrCompositionLayerProjection set( - int type, - long next, - long layerFlags, - XrSpace space, + int type, + long next, + long layerFlags, + XrSpace space, XrCompositionLayerProjectionView.Buffer views - ) { - type(type); - next(next); - layerFlags(layerFlags); - space(space); - views(views); + ) { + type(type); + next(next); + layerFlags(layerFlags); + space(space); + views(views); return this; } @@ -302,32 +302,32 @@ public static XrCompositionLayerProjection.Buffer calloc(int capacity, MemorySta } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerProjection.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerProjection.NEXT); } - /** Unsafe version of {@link #layerFlags}. */ - public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerProjection.LAYERFLAGS); } - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerProjection.SPACE); } - /** Unsafe version of {@link #viewCount}. */ - public static int nviewCount(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerProjection.VIEWCOUNT); } - /** Unsafe version of {@link #views}. */ - public static XrCompositionLayerProjectionView.Buffer nviews(long struct) { return XrCompositionLayerProjectionView.create(memGetAddress(struct + XrCompositionLayerProjection.VIEWS), nviewCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerProjection.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerProjection.NEXT, value); } - /** Unsafe version of {@link #layerFlags(long) layerFlags}. */ - public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerProjection.LAYERFLAGS, value); } - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerProjection.SPACE, value.address()); } - /** Sets the specified value to the {@code viewCount} field of the specified {@code struct}. */ - public static void nviewCount(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerProjection.VIEWCOUNT, value); } - /** Unsafe version of {@link #views(XrCompositionLayerProjectionView.Buffer) views}. */ - public static void nviews(long struct, XrCompositionLayerProjectionView.Buffer value) { memPutAddress(struct + XrCompositionLayerProjection.VIEWS, value.address()); nviewCount(struct, value.remaining()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerProjection.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerProjection.NEXT); } + /** Unsafe version of {@link #layerFlags}. */ + public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerProjection.LAYERFLAGS); } + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerProjection.SPACE); } + /** Unsafe version of {@link #viewCount}. */ + public static int nviewCount(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerProjection.VIEWCOUNT); } + /** Unsafe version of {@link #views}. */ + public static XrCompositionLayerProjectionView.Buffer nviews(long struct) { return XrCompositionLayerProjectionView.create(memGetAddress(struct + XrCompositionLayerProjection.VIEWS), nviewCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerProjection.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerProjection.NEXT, value); } + /** Unsafe version of {@link #layerFlags(long) layerFlags}. */ + public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerProjection.LAYERFLAGS, value); } + /** Unsafe version of {@link #space(XrSpace) space}. */ + public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerProjection.SPACE, value.address()); } + /** Sets the specified value to the {@code viewCount} field of the specified {@code struct}. */ + public static void nviewCount(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerProjection.VIEWCOUNT, value); } + /** Unsafe version of {@link #views(XrCompositionLayerProjectionView.Buffer) views}. */ + public static void nviews(long struct, XrCompositionLayerProjectionView.Buffer value) { memPutAddress(struct + XrCompositionLayerProjection.VIEWS, value.address()); nviewCount(struct, value.remaining()); } /** * Validates pointer members that should not be {@code NULL}. @@ -340,9 +340,9 @@ public static void validate(long struct) { long views = memGetAddress(struct + XrCompositionLayerProjection.VIEWS); check(views); validate(views, viewCount, XrCompositionLayerProjectionView.SIZEOF, XrCompositionLayerProjectionView::validate); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrCompositionLayerProjection} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -379,44 +379,44 @@ protected Buffer self() { protected XrCompositionLayerProjection getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerProjection#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerProjection.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerProjection#next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerProjection.nnext(address()); } - /** @return the value of the {@link XrCompositionLayerProjection#layerFlags} field. */ - @NativeType("XrCompositionLayerFlags") - public long layerFlags() { return XrCompositionLayerProjection.nlayerFlags(address()); } - /** @return the value of the {@link XrCompositionLayerProjection#space} field. */ - @NativeType("XrSpace") - public long space() { return XrCompositionLayerProjection.nspace(address()); } - /** @return the value of the {@link XrCompositionLayerProjection#viewCount} field. */ - @NativeType("uint32_t") - public int viewCount() { return XrCompositionLayerProjection.nviewCount(address()); } - /** @return a {@link XrCompositionLayerProjectionView.Buffer} view of the struct array pointed to by the {@link XrCompositionLayerProjection#views} field. */ - @NativeType("XrCompositionLayerProjectionView const *") - public XrCompositionLayerProjectionView.Buffer views() { return XrCompositionLayerProjection.nviews(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerProjection#type} field. */ - public XrCompositionLayerProjection.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerProjection.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_COMPOSITION_LAYER_PROJECTION TYPE_COMPOSITION_LAYER_PROJECTION} value to the {@link XrCompositionLayerProjection#type} field. */ - public XrCompositionLayerProjection.Buffer type$Default() { return type(XR10.XR_TYPE_COMPOSITION_LAYER_PROJECTION); } - /** Sets the specified value to the {@link XrCompositionLayerProjection#next} field. */ - public XrCompositionLayerProjection.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerProjection.nnext(address(), value); return this; } - /** Prepends the specified {@link XrCompositionLayerDepthTestVARJO} value to the {@code next} chain. */ - public XrCompositionLayerProjection.Buffer next(XrCompositionLayerDepthTestVARJO value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrCompositionLayerReprojectionInfoMSFT} value to the {@code next} chain. */ - public XrCompositionLayerProjection.Buffer next(XrCompositionLayerReprojectionInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrCompositionLayerReprojectionPlaneOverrideMSFT} value to the {@code next} chain. */ - public XrCompositionLayerProjection.Buffer next(XrCompositionLayerReprojectionPlaneOverrideMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrCompositionLayerProjection#layerFlags} field. */ - public XrCompositionLayerProjection.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerProjection.nlayerFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerProjection#space} field. */ - public XrCompositionLayerProjection.Buffer space(XrSpace value) { XrCompositionLayerProjection.nspace(address(), value); return this; } - /** Sets the address of the specified {@link XrCompositionLayerProjectionView.Buffer} to the {@link XrCompositionLayerProjection#views} field. */ - public XrCompositionLayerProjection.Buffer views(@NativeType("XrCompositionLayerProjectionView const *") XrCompositionLayerProjectionView.Buffer value) { XrCompositionLayerProjection.nviews(address(), value); return this; } + + /** @return the value of the {@link XrCompositionLayerProjection#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerProjection.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerProjection#next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerProjection.nnext(address()); } + /** @return the value of the {@link XrCompositionLayerProjection#layerFlags} field. */ + @NativeType("XrCompositionLayerFlags") + public long layerFlags() { return XrCompositionLayerProjection.nlayerFlags(address()); } + /** @return the value of the {@link XrCompositionLayerProjection#space} field. */ + @NativeType("XrSpace") + public long space() { return XrCompositionLayerProjection.nspace(address()); } + /** @return the value of the {@link XrCompositionLayerProjection#viewCount} field. */ + @NativeType("uint32_t") + public int viewCount() { return XrCompositionLayerProjection.nviewCount(address()); } + /** @return a {@link XrCompositionLayerProjectionView.Buffer} view of the struct array pointed to by the {@link XrCompositionLayerProjection#views} field. */ + @NativeType("XrCompositionLayerProjectionView const *") + public XrCompositionLayerProjectionView.Buffer views() { return XrCompositionLayerProjection.nviews(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerProjection#type} field. */ + public XrCompositionLayerProjection.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerProjection.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_COMPOSITION_LAYER_PROJECTION TYPE_COMPOSITION_LAYER_PROJECTION} value to the {@link XrCompositionLayerProjection#type} field. */ + public XrCompositionLayerProjection.Buffer type$Default() { return type(XR10.XR_TYPE_COMPOSITION_LAYER_PROJECTION); } + /** Sets the specified value to the {@link XrCompositionLayerProjection#next} field. */ + public XrCompositionLayerProjection.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerProjection.nnext(address(), value); return this; } + /** Prepends the specified {@link XrCompositionLayerDepthTestVARJO} value to the {@code next} chain. */ + public XrCompositionLayerProjection.Buffer next(XrCompositionLayerDepthTestVARJO value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrCompositionLayerReprojectionInfoMSFT} value to the {@code next} chain. */ + public XrCompositionLayerProjection.Buffer next(XrCompositionLayerReprojectionInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrCompositionLayerReprojectionPlaneOverrideMSFT} value to the {@code next} chain. */ + public XrCompositionLayerProjection.Buffer next(XrCompositionLayerReprojectionPlaneOverrideMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrCompositionLayerProjection#layerFlags} field. */ + public XrCompositionLayerProjection.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerProjection.nlayerFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerProjection#space} field. */ + public XrCompositionLayerProjection.Buffer space(XrSpace value) { XrCompositionLayerProjection.nspace(address(), value); return this; } + /** Sets the address of the specified {@link XrCompositionLayerProjectionView.Buffer} to the {@link XrCompositionLayerProjection#views} field. */ + public XrCompositionLayerProjection.Buffer views(@NativeType("XrCompositionLayerProjectionView const *") XrCompositionLayerProjectionView.Buffer value) { XrCompositionLayerProjection.nviews(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerProjectionView.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerProjectionView.java index 74af6dcafb..1fcc5b194e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerProjectionView.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerProjectionView.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Projection layer element. * @@ -26,7 +26,7 @@ * *
                      *
                    • {@code type} must be {@link XR10#XR_TYPE_COMPOSITION_LAYER_PROJECTION_VIEW TYPE_COMPOSITION_LAYER_PROJECTION_VIEW}
                    • - *
                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrCompositionLayerDepthInfoKHR}, {@link XrCompositionLayerSpaceWarpInfoFB}
                    • + *
                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrCompositionLayerDepthInfoKHR}, {@link XrCompositionLayerSpaceWarpInfoFB}
                    • *
                    • {@code subImage} must be a valid {@link XrSwapchainSubImage} structure
                    • *
                    * @@ -44,8 +44,8 @@ * {@link XrFovf XrFovf} {@link #fov}; * {@link XrSwapchainSubImage XrSwapchainSubImage} {@link #subImage}; * } - */ -public class XrCompositionLayerProjectionView extends Struct implements NativeResource { + */ +public class XrCompositionLayerProjectionView extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,30 +55,30 @@ public class XrCompositionLayerProjectionView extends Structmust have been created with a {@code faceCount} of 1. */ - public XrSwapchainSubImage subImage() { return nsubImage(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrCompositionLayerProjectionView type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_COMPOSITION_LAYER_PROJECTION_VIEW TYPE_COMPOSITION_LAYER_PROJECTION_VIEW} value to the {@link #type} field. */ - public XrCompositionLayerProjectionView type$Default() { return type(XR10.XR_TYPE_COMPOSITION_LAYER_PROJECTION_VIEW); } - /** Sets the specified value to the {@link #next} field. */ - public XrCompositionLayerProjectionView next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrCompositionLayerDepthInfoKHR} value to the {@code next} chain. */ - public XrCompositionLayerProjectionView next(XrCompositionLayerDepthInfoKHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrCompositionLayerSpaceWarpInfoFB} value to the {@code next} chain. */ - public XrCompositionLayerProjectionView next(XrCompositionLayerSpaceWarpInfoFB value) { return this.next(value.next(this.next()).address()); } - /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ - public XrCompositionLayerProjectionView pose(XrPosef value) { npose(address(), value); return this; } - /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerProjectionView pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrFovf} to the {@link #fov} field. */ - public XrCompositionLayerProjectionView fov(XrFovf value) { nfov(address(), value); return this; } - /** Passes the {@link #fov} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerProjectionView fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } - /** Copies the specified {@link XrSwapchainSubImage} to the {@link #subImage} field. */ - public XrCompositionLayerProjectionView subImage(XrSwapchainSubImage value) { nsubImage(address(), value); return this; } - /** Passes the {@link #subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerProjectionView subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** an {@link XrPosef} defining the location and orientation of this projection element in the {@code space} of the corresponding {@link XrCompositionLayerProjectionView}. */ + public XrPosef pose() { return npose(address()); } + /** the {@link XrFovf} for this projection element. */ + public XrFovf fov() { return nfov(address()); } + /** the image layer {@link XrSwapchainSubImage} to use. The swapchain must have been created with a {@code faceCount} of 1. */ + public XrSwapchainSubImage subImage() { return nsubImage(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrCompositionLayerProjectionView type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_COMPOSITION_LAYER_PROJECTION_VIEW TYPE_COMPOSITION_LAYER_PROJECTION_VIEW} value to the {@link #type} field. */ + public XrCompositionLayerProjectionView type$Default() { return type(XR10.XR_TYPE_COMPOSITION_LAYER_PROJECTION_VIEW); } + /** Sets the specified value to the {@link #next} field. */ + public XrCompositionLayerProjectionView next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrCompositionLayerDepthInfoKHR} value to the {@code next} chain. */ + public XrCompositionLayerProjectionView next(XrCompositionLayerDepthInfoKHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrCompositionLayerSpaceWarpInfoFB} value to the {@code next} chain. */ + public XrCompositionLayerProjectionView next(XrCompositionLayerSpaceWarpInfoFB value) { return this.next(value.next(this.next()).address()); } + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrCompositionLayerProjectionView pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerProjectionView pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrFovf} to the {@link #fov} field. */ + public XrCompositionLayerProjectionView fov(XrFovf value) { nfov(address(), value); return this; } + /** Passes the {@link #fov} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerProjectionView fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } + /** Copies the specified {@link XrSwapchainSubImage} to the {@link #subImage} field. */ + public XrCompositionLayerProjectionView subImage(XrSwapchainSubImage value) { nsubImage(address(), value); return this; } + /** Passes the {@link #subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerProjectionView subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } /** Initializes this struct with the specified values. */ public XrCompositionLayerProjectionView set( - int type, - long next, - XrPosef pose, - XrFovf fov, + int type, + long next, + XrPosef pose, + XrFovf fov, XrSwapchainSubImage subImage - ) { - type(type); - next(next); - pose(pose); - fov(fov); - subImage(subImage); + ) { + type(type); + next(next); + pose(pose); + fov(fov); + subImage(subImage); return this; } @@ -279,28 +279,28 @@ public static XrCompositionLayerProjectionView.Buffer calloc(int capacity, Memor } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerProjectionView.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerProjectionView.NEXT); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrCompositionLayerProjectionView.POSE); } - /** Unsafe version of {@link #fov}. */ - public static XrFovf nfov(long struct) { return XrFovf.create(struct + XrCompositionLayerProjectionView.FOV); } - /** Unsafe version of {@link #subImage}. */ - public static XrSwapchainSubImage nsubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerProjectionView.SUBIMAGE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerProjectionView.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerProjectionView.NEXT, value); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrCompositionLayerProjectionView.POSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #fov(XrFovf) fov}. */ - public static void nfov(long struct, XrFovf value) { memCopy(value.address(), struct + XrCompositionLayerProjectionView.FOV, XrFovf.SIZEOF); } - /** Unsafe version of {@link #subImage(XrSwapchainSubImage) subImage}. */ - public static void nsubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerProjectionView.SUBIMAGE, XrSwapchainSubImage.SIZEOF); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerProjectionView.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerProjectionView.NEXT); } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrCompositionLayerProjectionView.POSE); } + /** Unsafe version of {@link #fov}. */ + public static XrFovf nfov(long struct) { return XrFovf.create(struct + XrCompositionLayerProjectionView.FOV); } + /** Unsafe version of {@link #subImage}. */ + public static XrSwapchainSubImage nsubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerProjectionView.SUBIMAGE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerProjectionView.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerProjectionView.NEXT, value); } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrCompositionLayerProjectionView.POSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #fov(XrFovf) fov}. */ + public static void nfov(long struct, XrFovf value) { memCopy(value.address(), struct + XrCompositionLayerProjectionView.FOV, XrFovf.SIZEOF); } + /** Unsafe version of {@link #subImage(XrSwapchainSubImage) subImage}. */ + public static void nsubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerProjectionView.SUBIMAGE, XrSwapchainSubImage.SIZEOF); } /** * Validates pointer members that should not be {@code NULL}. @@ -309,9 +309,9 @@ public static XrCompositionLayerProjectionView.Buffer calloc(int capacity, Memor */ public static void validate(long struct) { XrSwapchainSubImage.validate(struct + XrCompositionLayerProjectionView.SUBIMAGE); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrCompositionLayerProjectionView} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -348,42 +348,42 @@ protected Buffer self() { protected XrCompositionLayerProjectionView getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerProjectionView#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerProjectionView.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerProjectionView#next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerProjectionView.nnext(address()); } - /** @return a {@link XrPosef} view of the {@link XrCompositionLayerProjectionView#pose} field. */ - public XrPosef pose() { return XrCompositionLayerProjectionView.npose(address()); } - /** @return a {@link XrFovf} view of the {@link XrCompositionLayerProjectionView#fov} field. */ - public XrFovf fov() { return XrCompositionLayerProjectionView.nfov(address()); } - /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerProjectionView#subImage} field. */ - public XrSwapchainSubImage subImage() { return XrCompositionLayerProjectionView.nsubImage(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerProjectionView#type} field. */ - public XrCompositionLayerProjectionView.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerProjectionView.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_COMPOSITION_LAYER_PROJECTION_VIEW TYPE_COMPOSITION_LAYER_PROJECTION_VIEW} value to the {@link XrCompositionLayerProjectionView#type} field. */ - public XrCompositionLayerProjectionView.Buffer type$Default() { return type(XR10.XR_TYPE_COMPOSITION_LAYER_PROJECTION_VIEW); } - /** Sets the specified value to the {@link XrCompositionLayerProjectionView#next} field. */ - public XrCompositionLayerProjectionView.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerProjectionView.nnext(address(), value); return this; } - /** Prepends the specified {@link XrCompositionLayerDepthInfoKHR} value to the {@code next} chain. */ - public XrCompositionLayerProjectionView.Buffer next(XrCompositionLayerDepthInfoKHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrCompositionLayerSpaceWarpInfoFB} value to the {@code next} chain. */ - public XrCompositionLayerProjectionView.Buffer next(XrCompositionLayerSpaceWarpInfoFB value) { return this.next(value.next(this.next()).address()); } - /** Copies the specified {@link XrPosef} to the {@link XrCompositionLayerProjectionView#pose} field. */ - public XrCompositionLayerProjectionView.Buffer pose(XrPosef value) { XrCompositionLayerProjectionView.npose(address(), value); return this; } - /** Passes the {@link XrCompositionLayerProjectionView#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerProjectionView.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrFovf} to the {@link XrCompositionLayerProjectionView#fov} field. */ - public XrCompositionLayerProjectionView.Buffer fov(XrFovf value) { XrCompositionLayerProjectionView.nfov(address(), value); return this; } - /** Passes the {@link XrCompositionLayerProjectionView#fov} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerProjectionView.Buffer fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } - /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerProjectionView#subImage} field. */ - public XrCompositionLayerProjectionView.Buffer subImage(XrSwapchainSubImage value) { XrCompositionLayerProjectionView.nsubImage(address(), value); return this; } - /** Passes the {@link XrCompositionLayerProjectionView#subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerProjectionView.Buffer subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } + + /** @return the value of the {@link XrCompositionLayerProjectionView#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerProjectionView.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerProjectionView#next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerProjectionView.nnext(address()); } + /** @return a {@link XrPosef} view of the {@link XrCompositionLayerProjectionView#pose} field. */ + public XrPosef pose() { return XrCompositionLayerProjectionView.npose(address()); } + /** @return a {@link XrFovf} view of the {@link XrCompositionLayerProjectionView#fov} field. */ + public XrFovf fov() { return XrCompositionLayerProjectionView.nfov(address()); } + /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerProjectionView#subImage} field. */ + public XrSwapchainSubImage subImage() { return XrCompositionLayerProjectionView.nsubImage(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerProjectionView#type} field. */ + public XrCompositionLayerProjectionView.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerProjectionView.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_COMPOSITION_LAYER_PROJECTION_VIEW TYPE_COMPOSITION_LAYER_PROJECTION_VIEW} value to the {@link XrCompositionLayerProjectionView#type} field. */ + public XrCompositionLayerProjectionView.Buffer type$Default() { return type(XR10.XR_TYPE_COMPOSITION_LAYER_PROJECTION_VIEW); } + /** Sets the specified value to the {@link XrCompositionLayerProjectionView#next} field. */ + public XrCompositionLayerProjectionView.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerProjectionView.nnext(address(), value); return this; } + /** Prepends the specified {@link XrCompositionLayerDepthInfoKHR} value to the {@code next} chain. */ + public XrCompositionLayerProjectionView.Buffer next(XrCompositionLayerDepthInfoKHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrCompositionLayerSpaceWarpInfoFB} value to the {@code next} chain. */ + public XrCompositionLayerProjectionView.Buffer next(XrCompositionLayerSpaceWarpInfoFB value) { return this.next(value.next(this.next()).address()); } + /** Copies the specified {@link XrPosef} to the {@link XrCompositionLayerProjectionView#pose} field. */ + public XrCompositionLayerProjectionView.Buffer pose(XrPosef value) { XrCompositionLayerProjectionView.npose(address(), value); return this; } + /** Passes the {@link XrCompositionLayerProjectionView#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerProjectionView.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrFovf} to the {@link XrCompositionLayerProjectionView#fov} field. */ + public XrCompositionLayerProjectionView.Buffer fov(XrFovf value) { XrCompositionLayerProjectionView.nfov(address(), value); return this; } + /** Passes the {@link XrCompositionLayerProjectionView#fov} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerProjectionView.Buffer fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } + /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerProjectionView#subImage} field. */ + public XrCompositionLayerProjectionView.Buffer subImage(XrSwapchainSubImage value) { XrCompositionLayerProjectionView.nsubImage(address(), value); return this; } + /** Passes the {@link XrCompositionLayerProjectionView#subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerProjectionView.Buffer subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerQuad.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerQuad.java index 2da97e0799..f8ccdd1c76 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerQuad.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerQuad.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Quad composition layer. * @@ -27,7 +27,7 @@ * *
                      *
                    • {@code type} must be {@link XR10#XR_TYPE_COMPOSITION_LAYER_QUAD TYPE_COMPOSITION_LAYER_QUAD}
                    • - *
                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                    • + *
                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                    • *
                    • {@code layerFlags} must be 0 or a valid combination of {@code XrCompositionLayerFlagBits} values
                    • *
                    • {@code space} must be a valid {@code XrSpace} handle
                    • *
                    • {@code eyeVisibility} must be a valid {@code XrEyeVisibility} value
                    • @@ -51,8 +51,8 @@ * {@link XrPosef XrPosef} {@link #pose}; * {@link XrExtent2Df XrExtent2Df} {@link #size}; * } - */ -public class XrCompositionLayerQuad extends Struct implements NativeResource { + */ +public class XrCompositionLayerQuad extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -62,39 +62,39 @@ public class XrCompositionLayerQuad extends Struct imple /** The struct member offsets. */ public static final int - TYPE, - NEXT, - LAYERFLAGS, - SPACE, - EYEVISIBILITY, - SUBIMAGE, - POSE, - SIZE; + TYPE, + NEXT, + LAYERFLAGS, + SPACE, + EYEVISIBILITY, + SUBIMAGE, + POSE, + SIZE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), - __member(POINTER_SIZE), - __member(4), - __member(XrSwapchainSubImage.SIZEOF, XrSwapchainSubImage.ALIGNOF), - __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), + __member(POINTER_SIZE), + __member(4), + __member(XrSwapchainSubImage.SIZEOF, XrSwapchainSubImage.ALIGNOF), + __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), __member(XrExtent2Df.SIZEOF, XrExtent2Df.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - LAYERFLAGS = layout.offsetof(2); - SPACE = layout.offsetof(3); - EYEVISIBILITY = layout.offsetof(4); - SUBIMAGE = layout.offsetof(5); - POSE = layout.offsetof(6); - SIZE = layout.offsetof(7); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + LAYERFLAGS = layout.offsetof(2); + SPACE = layout.offsetof(3); + EYEVISIBILITY = layout.offsetof(4); + SUBIMAGE = layout.offsetof(5); + POSE = layout.offsetof(6); + SIZE = layout.offsetof(7); + } protected XrCompositionLayerQuad(long address, @Nullable ByteBuffer container) { super(address, container); @@ -117,73 +117,73 @@ public XrCompositionLayerQuad(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** a bitmask of {@code XrCompositionLayerFlagBits} describing flags to apply to the layer. */ - @NativeType("XrCompositionLayerFlags") - public long layerFlags() { return nlayerFlags(address()); } - /** the {@code XrSpace} in which the {@code pose} of the quad layer is evaluated over time. */ - @NativeType("XrSpace") - public long space() { return nspace(address()); } - /** the {@code XrEyeVisibility} for this layer. */ - @NativeType("XrEyeVisibility") - public int eyeVisibility() { return neyeVisibility(address()); } - /** the image layer {@link XrSwapchainSubImage} to use. The swapchain must have been created with a {@code faceCount} of 1. */ - public XrSwapchainSubImage subImage() { return nsubImage(address()); } - /** an {@link XrPosef} defining the position and orientation of the quad in the reference frame of the {@code space}. */ - public XrPosef pose() { return npose(address()); } - /** the width and height of the quad in meters. */ - public XrExtent2Df size() { return nsize(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrCompositionLayerQuad type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_COMPOSITION_LAYER_QUAD TYPE_COMPOSITION_LAYER_QUAD} value to the {@link #type} field. */ - public XrCompositionLayerQuad type$Default() { return type(XR10.XR_TYPE_COMPOSITION_LAYER_QUAD); } - /** Sets the specified value to the {@link #next} field. */ - public XrCompositionLayerQuad next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #layerFlags} field. */ - public XrCompositionLayerQuad layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; } - /** Sets the specified value to the {@link #space} field. */ - public XrCompositionLayerQuad space(XrSpace value) { nspace(address(), value); return this; } - /** Sets the specified value to the {@link #eyeVisibility} field. */ - public XrCompositionLayerQuad eyeVisibility(@NativeType("XrEyeVisibility") int value) { neyeVisibility(address(), value); return this; } - /** Copies the specified {@link XrSwapchainSubImage} to the {@link #subImage} field. */ - public XrCompositionLayerQuad subImage(XrSwapchainSubImage value) { nsubImage(address(), value); return this; } - /** Passes the {@link #subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerQuad subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } - /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ - public XrCompositionLayerQuad pose(XrPosef value) { npose(address(), value); return this; } - /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerQuad pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrExtent2Df} to the {@link #size} field. */ - public XrCompositionLayerQuad size(XrExtent2Df value) { nsize(address(), value); return this; } - /** Passes the {@link #size} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerQuad size(java.util.function.Consumer consumer) { consumer.accept(size()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** a bitmask of {@code XrCompositionLayerFlagBits} describing flags to apply to the layer. */ + @NativeType("XrCompositionLayerFlags") + public long layerFlags() { return nlayerFlags(address()); } + /** the {@code XrSpace} in which the {@code pose} of the quad layer is evaluated over time. */ + @NativeType("XrSpace") + public long space() { return nspace(address()); } + /** the {@code XrEyeVisibility} for this layer. */ + @NativeType("XrEyeVisibility") + public int eyeVisibility() { return neyeVisibility(address()); } + /** the image layer {@link XrSwapchainSubImage} to use. The swapchain must have been created with a {@code faceCount} of 1. */ + public XrSwapchainSubImage subImage() { return nsubImage(address()); } + /** an {@link XrPosef} defining the position and orientation of the quad in the reference frame of the {@code space}. */ + public XrPosef pose() { return npose(address()); } + /** the width and height of the quad in meters. */ + public XrExtent2Df size() { return nsize(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrCompositionLayerQuad type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_COMPOSITION_LAYER_QUAD TYPE_COMPOSITION_LAYER_QUAD} value to the {@link #type} field. */ + public XrCompositionLayerQuad type$Default() { return type(XR10.XR_TYPE_COMPOSITION_LAYER_QUAD); } + /** Sets the specified value to the {@link #next} field. */ + public XrCompositionLayerQuad next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #layerFlags} field. */ + public XrCompositionLayerQuad layerFlags(@NativeType("XrCompositionLayerFlags") long value) { nlayerFlags(address(), value); return this; } + /** Sets the specified value to the {@link #space} field. */ + public XrCompositionLayerQuad space(XrSpace value) { nspace(address(), value); return this; } + /** Sets the specified value to the {@link #eyeVisibility} field. */ + public XrCompositionLayerQuad eyeVisibility(@NativeType("XrEyeVisibility") int value) { neyeVisibility(address(), value); return this; } + /** Copies the specified {@link XrSwapchainSubImage} to the {@link #subImage} field. */ + public XrCompositionLayerQuad subImage(XrSwapchainSubImage value) { nsubImage(address(), value); return this; } + /** Passes the {@link #subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerQuad subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrCompositionLayerQuad pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerQuad pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrExtent2Df} to the {@link #size} field. */ + public XrCompositionLayerQuad size(XrExtent2Df value) { nsize(address(), value); return this; } + /** Passes the {@link #size} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerQuad size(java.util.function.Consumer consumer) { consumer.accept(size()); return this; } /** Initializes this struct with the specified values. */ public XrCompositionLayerQuad set( - int type, - long next, - long layerFlags, - XrSpace space, - int eyeVisibility, - XrSwapchainSubImage subImage, - XrPosef pose, + int type, + long next, + long layerFlags, + XrSpace space, + int eyeVisibility, + XrSwapchainSubImage subImage, + XrPosef pose, XrExtent2Df size - ) { - type(type); - next(next); - layerFlags(layerFlags); - space(space); - eyeVisibility(eyeVisibility); - subImage(subImage); - pose(pose); - size(size); + ) { + type(type); + next(next); + layerFlags(layerFlags); + space(space); + eyeVisibility(eyeVisibility); + subImage(subImage); + pose(pose); + size(size); return this; } @@ -322,40 +322,40 @@ public static XrCompositionLayerQuad.Buffer calloc(int capacity, MemoryStack sta } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerQuad.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerQuad.NEXT); } - /** Unsafe version of {@link #layerFlags}. */ - public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerQuad.LAYERFLAGS); } - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerQuad.SPACE); } - /** Unsafe version of {@link #eyeVisibility}. */ - public static int neyeVisibility(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerQuad.EYEVISIBILITY); } - /** Unsafe version of {@link #subImage}. */ - public static XrSwapchainSubImage nsubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerQuad.SUBIMAGE); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrCompositionLayerQuad.POSE); } - /** Unsafe version of {@link #size}. */ - public static XrExtent2Df nsize(long struct) { return XrExtent2Df.create(struct + XrCompositionLayerQuad.SIZE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerQuad.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerQuad.NEXT, value); } - /** Unsafe version of {@link #layerFlags(long) layerFlags}. */ - public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerQuad.LAYERFLAGS, value); } - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerQuad.SPACE, value.address()); } - /** Unsafe version of {@link #eyeVisibility(int) eyeVisibility}. */ - public static void neyeVisibility(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerQuad.EYEVISIBILITY, value); } - /** Unsafe version of {@link #subImage(XrSwapchainSubImage) subImage}. */ - public static void nsubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerQuad.SUBIMAGE, XrSwapchainSubImage.SIZEOF); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrCompositionLayerQuad.POSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #size(XrExtent2Df) size}. */ - public static void nsize(long struct, XrExtent2Df value) { memCopy(value.address(), struct + XrCompositionLayerQuad.SIZE, XrExtent2Df.SIZEOF); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerQuad.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerQuad.NEXT); } + /** Unsafe version of {@link #layerFlags}. */ + public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerQuad.LAYERFLAGS); } + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrCompositionLayerQuad.SPACE); } + /** Unsafe version of {@link #eyeVisibility}. */ + public static int neyeVisibility(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerQuad.EYEVISIBILITY); } + /** Unsafe version of {@link #subImage}. */ + public static XrSwapchainSubImage nsubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerQuad.SUBIMAGE); } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrCompositionLayerQuad.POSE); } + /** Unsafe version of {@link #size}. */ + public static XrExtent2Df nsize(long struct) { return XrExtent2Df.create(struct + XrCompositionLayerQuad.SIZE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerQuad.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerQuad.NEXT, value); } + /** Unsafe version of {@link #layerFlags(long) layerFlags}. */ + public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerQuad.LAYERFLAGS, value); } + /** Unsafe version of {@link #space(XrSpace) space}. */ + public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrCompositionLayerQuad.SPACE, value.address()); } + /** Unsafe version of {@link #eyeVisibility(int) eyeVisibility}. */ + public static void neyeVisibility(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerQuad.EYEVISIBILITY, value); } + /** Unsafe version of {@link #subImage(XrSwapchainSubImage) subImage}. */ + public static void nsubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerQuad.SUBIMAGE, XrSwapchainSubImage.SIZEOF); } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrCompositionLayerQuad.POSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #size(XrExtent2Df) size}. */ + public static void nsize(long struct, XrExtent2Df value) { memCopy(value.address(), struct + XrCompositionLayerQuad.SIZE, XrExtent2Df.SIZEOF); } /** * Validates pointer members that should not be {@code NULL}. @@ -365,9 +365,9 @@ public static XrCompositionLayerQuad.Buffer calloc(int capacity, MemoryStack sta public static void validate(long struct) { check(memGetAddress(struct + XrCompositionLayerQuad.SPACE)); XrSwapchainSubImage.validate(struct + XrCompositionLayerQuad.SUBIMAGE); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrCompositionLayerQuad} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -404,53 +404,53 @@ protected Buffer self() { protected XrCompositionLayerQuad getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerQuad#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerQuad.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerQuad#next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerQuad.nnext(address()); } - /** @return the value of the {@link XrCompositionLayerQuad#layerFlags} field. */ - @NativeType("XrCompositionLayerFlags") - public long layerFlags() { return XrCompositionLayerQuad.nlayerFlags(address()); } - /** @return the value of the {@link XrCompositionLayerQuad#space} field. */ - @NativeType("XrSpace") - public long space() { return XrCompositionLayerQuad.nspace(address()); } - /** @return the value of the {@link XrCompositionLayerQuad#eyeVisibility} field. */ - @NativeType("XrEyeVisibility") - public int eyeVisibility() { return XrCompositionLayerQuad.neyeVisibility(address()); } - /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerQuad#subImage} field. */ - public XrSwapchainSubImage subImage() { return XrCompositionLayerQuad.nsubImage(address()); } - /** @return a {@link XrPosef} view of the {@link XrCompositionLayerQuad#pose} field. */ - public XrPosef pose() { return XrCompositionLayerQuad.npose(address()); } - /** @return a {@link XrExtent2Df} view of the {@link XrCompositionLayerQuad#size} field. */ - public XrExtent2Df size() { return XrCompositionLayerQuad.nsize(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerQuad#type} field. */ - public XrCompositionLayerQuad.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerQuad.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_COMPOSITION_LAYER_QUAD TYPE_COMPOSITION_LAYER_QUAD} value to the {@link XrCompositionLayerQuad#type} field. */ - public XrCompositionLayerQuad.Buffer type$Default() { return type(XR10.XR_TYPE_COMPOSITION_LAYER_QUAD); } - /** Sets the specified value to the {@link XrCompositionLayerQuad#next} field. */ - public XrCompositionLayerQuad.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerQuad.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerQuad#layerFlags} field. */ - public XrCompositionLayerQuad.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerQuad.nlayerFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerQuad#space} field. */ - public XrCompositionLayerQuad.Buffer space(XrSpace value) { XrCompositionLayerQuad.nspace(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerQuad#eyeVisibility} field. */ - public XrCompositionLayerQuad.Buffer eyeVisibility(@NativeType("XrEyeVisibility") int value) { XrCompositionLayerQuad.neyeVisibility(address(), value); return this; } - /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerQuad#subImage} field. */ - public XrCompositionLayerQuad.Buffer subImage(XrSwapchainSubImage value) { XrCompositionLayerQuad.nsubImage(address(), value); return this; } - /** Passes the {@link XrCompositionLayerQuad#subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerQuad.Buffer subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrCompositionLayerQuad#pose} field. */ - public XrCompositionLayerQuad.Buffer pose(XrPosef value) { XrCompositionLayerQuad.npose(address(), value); return this; } - /** Passes the {@link XrCompositionLayerQuad#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerQuad.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrExtent2Df} to the {@link XrCompositionLayerQuad#size} field. */ - public XrCompositionLayerQuad.Buffer size(XrExtent2Df value) { XrCompositionLayerQuad.nsize(address(), value); return this; } - /** Passes the {@link XrCompositionLayerQuad#size} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerQuad.Buffer size(java.util.function.Consumer consumer) { consumer.accept(size()); return this; } + + /** @return the value of the {@link XrCompositionLayerQuad#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerQuad.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerQuad#next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerQuad.nnext(address()); } + /** @return the value of the {@link XrCompositionLayerQuad#layerFlags} field. */ + @NativeType("XrCompositionLayerFlags") + public long layerFlags() { return XrCompositionLayerQuad.nlayerFlags(address()); } + /** @return the value of the {@link XrCompositionLayerQuad#space} field. */ + @NativeType("XrSpace") + public long space() { return XrCompositionLayerQuad.nspace(address()); } + /** @return the value of the {@link XrCompositionLayerQuad#eyeVisibility} field. */ + @NativeType("XrEyeVisibility") + public int eyeVisibility() { return XrCompositionLayerQuad.neyeVisibility(address()); } + /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerQuad#subImage} field. */ + public XrSwapchainSubImage subImage() { return XrCompositionLayerQuad.nsubImage(address()); } + /** @return a {@link XrPosef} view of the {@link XrCompositionLayerQuad#pose} field. */ + public XrPosef pose() { return XrCompositionLayerQuad.npose(address()); } + /** @return a {@link XrExtent2Df} view of the {@link XrCompositionLayerQuad#size} field. */ + public XrExtent2Df size() { return XrCompositionLayerQuad.nsize(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerQuad#type} field. */ + public XrCompositionLayerQuad.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerQuad.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_COMPOSITION_LAYER_QUAD TYPE_COMPOSITION_LAYER_QUAD} value to the {@link XrCompositionLayerQuad#type} field. */ + public XrCompositionLayerQuad.Buffer type$Default() { return type(XR10.XR_TYPE_COMPOSITION_LAYER_QUAD); } + /** Sets the specified value to the {@link XrCompositionLayerQuad#next} field. */ + public XrCompositionLayerQuad.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerQuad.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerQuad#layerFlags} field. */ + public XrCompositionLayerQuad.Buffer layerFlags(@NativeType("XrCompositionLayerFlags") long value) { XrCompositionLayerQuad.nlayerFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerQuad#space} field. */ + public XrCompositionLayerQuad.Buffer space(XrSpace value) { XrCompositionLayerQuad.nspace(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerQuad#eyeVisibility} field. */ + public XrCompositionLayerQuad.Buffer eyeVisibility(@NativeType("XrEyeVisibility") int value) { XrCompositionLayerQuad.neyeVisibility(address(), value); return this; } + /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerQuad#subImage} field. */ + public XrCompositionLayerQuad.Buffer subImage(XrSwapchainSubImage value) { XrCompositionLayerQuad.nsubImage(address(), value); return this; } + /** Passes the {@link XrCompositionLayerQuad#subImage} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerQuad.Buffer subImage(java.util.function.Consumer consumer) { consumer.accept(subImage()); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrCompositionLayerQuad#pose} field. */ + public XrCompositionLayerQuad.Buffer pose(XrPosef value) { XrCompositionLayerQuad.npose(address(), value); return this; } + /** Passes the {@link XrCompositionLayerQuad#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerQuad.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrExtent2Df} to the {@link XrCompositionLayerQuad#size} field. */ + public XrCompositionLayerQuad.Buffer size(XrExtent2Df value) { XrCompositionLayerQuad.nsize(address(), value); return this; } + /** Passes the {@link XrCompositionLayerQuad#size} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerQuad.Buffer size(java.util.function.Consumer consumer) { consumer.accept(size()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerReprojectionInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerReprojectionInfoMSFT.java index 4f1034bd4f..31ecb368da 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerReprojectionInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerReprojectionInfoMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The information to help reprojection of a projection layer. * @@ -23,7 +23,7 @@ *
                        *
                      • The {@link MSFTCompositionLayerReprojection XR_MSFT_composition_layer_reprojection} extension must be enabled prior to using {@link XrCompositionLayerReprojectionInfoMSFT}
                      • *
                      • {@code type} must be {@link MSFTCompositionLayerReprojection#XR_TYPE_COMPOSITION_LAYER_REPROJECTION_INFO_MSFT TYPE_COMPOSITION_LAYER_REPROJECTION_INFO_MSFT}
                      • - *
                      • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                      • + *
                      • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                      • *
                      • {@code reprojectionMode} must be a valid {@code XrReprojectionModeMSFT} value
                      • *
                      * @@ -43,8 +43,8 @@ * void const * {@link #next}; * XrReprojectionModeMSFT {@link #reprojectionMode}; * } - */ -public class XrCompositionLayerReprojectionInfoMSFT extends Struct implements NativeResource { + */ +public class XrCompositionLayerReprojectionInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,24 +54,24 @@ public class XrCompositionLayerReprojectionInfoMSFT extends Struct implements NativeResource { @@ -303,25 +303,25 @@ protected Buffer self() { protected XrCompositionLayerReprojectionInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerReprojectionInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerReprojectionInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerReprojectionInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerReprojectionInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrCompositionLayerReprojectionInfoMSFT#reprojectionMode} field. */ - @NativeType("XrReprojectionModeMSFT") - public int reprojectionMode() { return XrCompositionLayerReprojectionInfoMSFT.nreprojectionMode(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerReprojectionInfoMSFT#type} field. */ - public XrCompositionLayerReprojectionInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerReprojectionInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTCompositionLayerReprojection#XR_TYPE_COMPOSITION_LAYER_REPROJECTION_INFO_MSFT TYPE_COMPOSITION_LAYER_REPROJECTION_INFO_MSFT} value to the {@link XrCompositionLayerReprojectionInfoMSFT#type} field. */ - public XrCompositionLayerReprojectionInfoMSFT.Buffer type$Default() { return type(MSFTCompositionLayerReprojection.XR_TYPE_COMPOSITION_LAYER_REPROJECTION_INFO_MSFT); } - /** Sets the specified value to the {@link XrCompositionLayerReprojectionInfoMSFT#next} field. */ - public XrCompositionLayerReprojectionInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerReprojectionInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerReprojectionInfoMSFT#reprojectionMode} field. */ - public XrCompositionLayerReprojectionInfoMSFT.Buffer reprojectionMode(@NativeType("XrReprojectionModeMSFT") int value) { XrCompositionLayerReprojectionInfoMSFT.nreprojectionMode(address(), value); return this; } + + /** @return the value of the {@link XrCompositionLayerReprojectionInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerReprojectionInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerReprojectionInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerReprojectionInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrCompositionLayerReprojectionInfoMSFT#reprojectionMode} field. */ + @NativeType("XrReprojectionModeMSFT") + public int reprojectionMode() { return XrCompositionLayerReprojectionInfoMSFT.nreprojectionMode(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerReprojectionInfoMSFT#type} field. */ + public XrCompositionLayerReprojectionInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerReprojectionInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTCompositionLayerReprojection#XR_TYPE_COMPOSITION_LAYER_REPROJECTION_INFO_MSFT TYPE_COMPOSITION_LAYER_REPROJECTION_INFO_MSFT} value to the {@link XrCompositionLayerReprojectionInfoMSFT#type} field. */ + public XrCompositionLayerReprojectionInfoMSFT.Buffer type$Default() { return type(MSFTCompositionLayerReprojection.XR_TYPE_COMPOSITION_LAYER_REPROJECTION_INFO_MSFT); } + /** Sets the specified value to the {@link XrCompositionLayerReprojectionInfoMSFT#next} field. */ + public XrCompositionLayerReprojectionInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerReprojectionInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerReprojectionInfoMSFT#reprojectionMode} field. */ + public XrCompositionLayerReprojectionInfoMSFT.Buffer reprojectionMode(@NativeType("XrReprojectionModeMSFT") int value) { XrCompositionLayerReprojectionInfoMSFT.nreprojectionMode(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerReprojectionPlaneOverrideMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerReprojectionPlaneOverrideMSFT.java index 0a9dea1402..43f153ee54 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerReprojectionPlaneOverrideMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerReprojectionPlaneOverrideMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describe the parameters to override the reprojection plane. * @@ -31,7 +31,7 @@ *
                        *
                      • The {@link MSFTCompositionLayerReprojection XR_MSFT_composition_layer_reprojection} extension must be enabled prior to using {@link XrCompositionLayerReprojectionPlaneOverrideMSFT}
                      • *
                      • {@code type} must be {@link MSFTCompositionLayerReprojection#XR_TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT}
                      • - *
                      • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                      • + *
                      • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                      • *
                      * *
                      See Also
                      @@ -48,8 +48,8 @@ * {@link XrVector3f XrVector3f} {@link #normal}; * {@link XrVector3f XrVector3f} {@link #velocity}; * } - */ -public class XrCompositionLayerReprojectionPlaneOverrideMSFT extends Struct implements NativeResource { + */ +public class XrCompositionLayerReprojectionPlaneOverrideMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -59,30 +59,30 @@ public class XrCompositionLayerReprojectionPlaneOverrideMSFT extends Struct consumer) { consumer.accept(position$()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link #normal} field. */ - public XrCompositionLayerReprojectionPlaneOverrideMSFT normal(XrVector3f value) { nnormal(address(), value); return this; } - /** Passes the {@link #normal} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerReprojectionPlaneOverrideMSFT normal(java.util.function.Consumer consumer) { consumer.accept(normal()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link #velocity} field. */ - public XrCompositionLayerReprojectionPlaneOverrideMSFT velocity(XrVector3f value) { nvelocity(address(), value); return this; } - /** Passes the {@link #velocity} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerReprojectionPlaneOverrideMSFT velocity(java.util.function.Consumer consumer) { consumer.accept(velocity()); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** describes the position of the focus plane represented in the corresponding {@link XrCompositionLayerProjection}{@code ::space}. */ + public XrVector3f position$() { return nposition$(address()); } + /** a unit vector describes the focus plane normal represented in the corresponding {@link XrCompositionLayerProjection}{@code ::space}. */ + public XrVector3f normal() { return nnormal(address()); } + /** a velocity of the position in the corresponding {@link XrCompositionLayerProjection}{@code ::space} measured in meters per second. */ + public XrVector3f velocity() { return nvelocity(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTCompositionLayerReprojection#XR_TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT} value to the {@code type} field. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT type$Default() { return type(MSFTCompositionLayerReprojection.XR_TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT); } + /** Sets the specified value to the {@code next} field. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link XrVector3f} to the {@link #position$} field. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT position$(XrVector3f value) { nposition$(address(), value); return this; } + /** Passes the {@link #position$} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT position$(java.util.function.Consumer consumer) { consumer.accept(position$()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link #normal} field. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT normal(XrVector3f value) { nnormal(address(), value); return this; } + /** Passes the {@link #normal} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT normal(java.util.function.Consumer consumer) { consumer.accept(normal()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link #velocity} field. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT velocity(XrVector3f value) { nvelocity(address(), value); return this; } + /** Passes the {@link #velocity} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT velocity(java.util.function.Consumer consumer) { consumer.accept(velocity()); return this; } /** Initializes this struct with the specified values. */ public XrCompositionLayerReprojectionPlaneOverrideMSFT set( - int type, - long next, - XrVector3f position$, - XrVector3f normal, + int type, + long next, + XrVector3f position$, + XrVector3f normal, XrVector3f velocity - ) { - type(type); - next(next); - position$(position$); - normal(normal); - velocity(velocity); + ) { + type(type); + next(next); + position$(position$); + normal(normal); + velocity(velocity); return this; } @@ -279,30 +279,30 @@ public static XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer calloc(int } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.NEXT); } - /** Unsafe version of {@link #position$}. */ - public static XrVector3f nposition$(long struct) { return XrVector3f.create(struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.POSITION); } - /** Unsafe version of {@link #normal}. */ - public static XrVector3f nnormal(long struct) { return XrVector3f.create(struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.NORMAL); } - /** Unsafe version of {@link #velocity}. */ - public static XrVector3f nvelocity(long struct) { return XrVector3f.create(struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.VELOCITY); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.NEXT, value); } - /** Unsafe version of {@link #position$(XrVector3f) position$}. */ - public static void nposition$(long struct, XrVector3f value) { memCopy(value.address(), struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.POSITION, XrVector3f.SIZEOF); } - /** Unsafe version of {@link #normal(XrVector3f) normal}. */ - public static void nnormal(long struct, XrVector3f value) { memCopy(value.address(), struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.NORMAL, XrVector3f.SIZEOF); } - /** Unsafe version of {@link #velocity(XrVector3f) velocity}. */ - public static void nvelocity(long struct, XrVector3f value) { memCopy(value.address(), struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.VELOCITY, XrVector3f.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.NEXT); } + /** Unsafe version of {@link #position$}. */ + public static XrVector3f nposition$(long struct) { return XrVector3f.create(struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.POSITION); } + /** Unsafe version of {@link #normal}. */ + public static XrVector3f nnormal(long struct) { return XrVector3f.create(struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.NORMAL); } + /** Unsafe version of {@link #velocity}. */ + public static XrVector3f nvelocity(long struct) { return XrVector3f.create(struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.VELOCITY); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.NEXT, value); } + /** Unsafe version of {@link #position$(XrVector3f) position$}. */ + public static void nposition$(long struct, XrVector3f value) { memCopy(value.address(), struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.POSITION, XrVector3f.SIZEOF); } + /** Unsafe version of {@link #normal(XrVector3f) normal}. */ + public static void nnormal(long struct, XrVector3f value) { memCopy(value.address(), struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.NORMAL, XrVector3f.SIZEOF); } + /** Unsafe version of {@link #velocity(XrVector3f) velocity}. */ + public static void nvelocity(long struct, XrVector3f value) { memCopy(value.address(), struct + XrCompositionLayerReprojectionPlaneOverrideMSFT.VELOCITY, XrVector3f.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrCompositionLayerReprojectionPlaneOverrideMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -339,38 +339,38 @@ protected Buffer self() { protected XrCompositionLayerReprojectionPlaneOverrideMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerReprojectionPlaneOverrideMSFT.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerReprojectionPlaneOverrideMSFT.nnext(address()); } - /** @return a {@link XrVector3f} view of the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#position$} field. */ - public XrVector3f position$() { return XrCompositionLayerReprojectionPlaneOverrideMSFT.nposition$(address()); } - /** @return a {@link XrVector3f} view of the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#normal} field. */ - public XrVector3f normal() { return XrCompositionLayerReprojectionPlaneOverrideMSFT.nnormal(address()); } - /** @return a {@link XrVector3f} view of the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#velocity} field. */ - public XrVector3f velocity() { return XrCompositionLayerReprojectionPlaneOverrideMSFT.nvelocity(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerReprojectionPlaneOverrideMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTCompositionLayerReprojection#XR_TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT} value to the {@code type} field. */ - public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer type$Default() { return type(MSFTCompositionLayerReprojection.XR_TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT); } - /** Sets the specified value to the {@code next} field. */ - public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerReprojectionPlaneOverrideMSFT.nnext(address(), value); return this; } - /** Copies the specified {@link XrVector3f} to the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#position$} field. */ - public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer position$(XrVector3f value) { XrCompositionLayerReprojectionPlaneOverrideMSFT.nposition$(address(), value); return this; } - /** Passes the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#position$} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer position$(java.util.function.Consumer consumer) { consumer.accept(position$()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#normal} field. */ - public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer normal(XrVector3f value) { XrCompositionLayerReprojectionPlaneOverrideMSFT.nnormal(address(), value); return this; } - /** Passes the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#normal} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer normal(java.util.function.Consumer consumer) { consumer.accept(normal()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#velocity} field. */ - public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer velocity(XrVector3f value) { XrCompositionLayerReprojectionPlaneOverrideMSFT.nvelocity(address(), value); return this; } - /** Passes the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#velocity} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer velocity(java.util.function.Consumer consumer) { consumer.accept(velocity()); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerReprojectionPlaneOverrideMSFT.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerReprojectionPlaneOverrideMSFT.nnext(address()); } + /** @return a {@link XrVector3f} view of the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#position$} field. */ + public XrVector3f position$() { return XrCompositionLayerReprojectionPlaneOverrideMSFT.nposition$(address()); } + /** @return a {@link XrVector3f} view of the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#normal} field. */ + public XrVector3f normal() { return XrCompositionLayerReprojectionPlaneOverrideMSFT.nnormal(address()); } + /** @return a {@link XrVector3f} view of the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#velocity} field. */ + public XrVector3f velocity() { return XrCompositionLayerReprojectionPlaneOverrideMSFT.nvelocity(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerReprojectionPlaneOverrideMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTCompositionLayerReprojection#XR_TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT} value to the {@code type} field. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer type$Default() { return type(MSFTCompositionLayerReprojection.XR_TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT); } + /** Sets the specified value to the {@code next} field. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerReprojectionPlaneOverrideMSFT.nnext(address(), value); return this; } + /** Copies the specified {@link XrVector3f} to the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#position$} field. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer position$(XrVector3f value) { XrCompositionLayerReprojectionPlaneOverrideMSFT.nposition$(address(), value); return this; } + /** Passes the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#position$} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer position$(java.util.function.Consumer consumer) { consumer.accept(position$()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#normal} field. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer normal(XrVector3f value) { XrCompositionLayerReprojectionPlaneOverrideMSFT.nnormal(address(), value); return this; } + /** Passes the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#normal} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer normal(java.util.function.Consumer consumer) { consumer.accept(normal()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#velocity} field. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer velocity(XrVector3f value) { XrCompositionLayerReprojectionPlaneOverrideMSFT.nvelocity(address(), value); return this; } + /** Passes the {@link XrCompositionLayerReprojectionPlaneOverrideMSFT#velocity} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerReprojectionPlaneOverrideMSFT.Buffer velocity(java.util.function.Consumer consumer) { consumer.accept(velocity()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerSecureContentFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerSecureContentFB.java index 17bbe19e67..2c85be589b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerSecureContentFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerSecureContentFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * specifies secure content mode for composition layers. * @@ -31,7 +31,7 @@ *
                        *
                      • The {@link FBCompositionLayerSecureContent XR_FB_composition_layer_secure_content} extension must be enabled prior to using {@link XrCompositionLayerSecureContentFB}
                      • *
                      • {@code type} must be {@link FBCompositionLayerSecureContent#XR_TYPE_COMPOSITION_LAYER_SECURE_CONTENT_FB TYPE_COMPOSITION_LAYER_SECURE_CONTENT_FB}
                      • - *
                      • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                      • + *
                      • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                      • *
                      • {@code flags} must be a valid combination of {@code XrCompositionLayerSecureContentFlagBitsFB} values
                      • *
                      • {@code flags} must not be 0
                      • *
                      @@ -48,8 +48,8 @@ * void const * {@link #next}; * XrCompositionLayerSecureContentFlagsFB {@link #flags}; * } - */ -public class XrCompositionLayerSecureContentFB extends Struct implements NativeResource { + */ +public class XrCompositionLayerSecureContentFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -59,24 +59,24 @@ public class XrCompositionLayerSecureContentFB extends Struct implements NativeResource { @@ -308,25 +308,25 @@ protected Buffer self() { protected XrCompositionLayerSecureContentFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerSecureContentFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerSecureContentFB.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerSecureContentFB#next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerSecureContentFB.nnext(address()); } - /** @return the value of the {@link XrCompositionLayerSecureContentFB#flags} field. */ - @NativeType("XrCompositionLayerSecureContentFlagsFB") - public long flags() { return XrCompositionLayerSecureContentFB.nflags(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerSecureContentFB#type} field. */ - public XrCompositionLayerSecureContentFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerSecureContentFB.ntype(address(), value); return this; } - /** Sets the {@link FBCompositionLayerSecureContent#XR_TYPE_COMPOSITION_LAYER_SECURE_CONTENT_FB TYPE_COMPOSITION_LAYER_SECURE_CONTENT_FB} value to the {@link XrCompositionLayerSecureContentFB#type} field. */ - public XrCompositionLayerSecureContentFB.Buffer type$Default() { return type(FBCompositionLayerSecureContent.XR_TYPE_COMPOSITION_LAYER_SECURE_CONTENT_FB); } - /** Sets the specified value to the {@link XrCompositionLayerSecureContentFB#next} field. */ - public XrCompositionLayerSecureContentFB.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerSecureContentFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerSecureContentFB#flags} field. */ - public XrCompositionLayerSecureContentFB.Buffer flags(@NativeType("XrCompositionLayerSecureContentFlagsFB") long value) { XrCompositionLayerSecureContentFB.nflags(address(), value); return this; } + + /** @return the value of the {@link XrCompositionLayerSecureContentFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerSecureContentFB.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerSecureContentFB#next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerSecureContentFB.nnext(address()); } + /** @return the value of the {@link XrCompositionLayerSecureContentFB#flags} field. */ + @NativeType("XrCompositionLayerSecureContentFlagsFB") + public long flags() { return XrCompositionLayerSecureContentFB.nflags(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerSecureContentFB#type} field. */ + public XrCompositionLayerSecureContentFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerSecureContentFB.ntype(address(), value); return this; } + /** Sets the {@link FBCompositionLayerSecureContent#XR_TYPE_COMPOSITION_LAYER_SECURE_CONTENT_FB TYPE_COMPOSITION_LAYER_SECURE_CONTENT_FB} value to the {@link XrCompositionLayerSecureContentFB#type} field. */ + public XrCompositionLayerSecureContentFB.Buffer type$Default() { return type(FBCompositionLayerSecureContent.XR_TYPE_COMPOSITION_LAYER_SECURE_CONTENT_FB); } + /** Sets the specified value to the {@link XrCompositionLayerSecureContentFB#next} field. */ + public XrCompositionLayerSecureContentFB.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerSecureContentFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerSecureContentFB#flags} field. */ + public XrCompositionLayerSecureContentFB.Buffer flags(@NativeType("XrCompositionLayerSecureContentFlagsFB") long value) { XrCompositionLayerSecureContentFB.nflags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerSettingsFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerSettingsFB.java index a73b019967..e083e10b7e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerSettingsFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerSettingsFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * specifies processing options for composition layers. * @@ -33,7 +33,7 @@ *
                        *
                      • The {@link FBCompositionLayerSettings XR_FB_composition_layer_settings} extension must be enabled prior to using {@link XrCompositionLayerSettingsFB}
                      • *
                      • {@code type} must be {@link FBCompositionLayerSettings#XR_TYPE_COMPOSITION_LAYER_SETTINGS_FB TYPE_COMPOSITION_LAYER_SETTINGS_FB}
                      • - *
                      • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                      • + *
                      • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                      • *
                      • {@code layerFlags} must be a valid combination of {@code XrCompositionLayerSettingsFlagBitsFB} values
                      • *
                      • {@code layerFlags} must not be 0
                      • *
                      @@ -50,8 +50,8 @@ * void const * {@link #next}; * XrCompositionLayerSettingsFlagsFB layerFlags; * } - */ -public class XrCompositionLayerSettingsFB extends Struct implements NativeResource { + */ +public class XrCompositionLayerSettingsFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -61,24 +61,24 @@ public class XrCompositionLayerSettingsFB extends Struct implements NativeResource { @@ -310,25 +310,25 @@ protected Buffer self() { protected XrCompositionLayerSettingsFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerSettingsFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerSettingsFB.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerSettingsFB#next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerSettingsFB.nnext(address()); } - /** @return the value of the {@code layerFlags} field. */ - @NativeType("XrCompositionLayerSettingsFlagsFB") - public long layerFlags() { return XrCompositionLayerSettingsFB.nlayerFlags(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerSettingsFB#type} field. */ - public XrCompositionLayerSettingsFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerSettingsFB.ntype(address(), value); return this; } - /** Sets the {@link FBCompositionLayerSettings#XR_TYPE_COMPOSITION_LAYER_SETTINGS_FB TYPE_COMPOSITION_LAYER_SETTINGS_FB} value to the {@link XrCompositionLayerSettingsFB#type} field. */ - public XrCompositionLayerSettingsFB.Buffer type$Default() { return type(FBCompositionLayerSettings.XR_TYPE_COMPOSITION_LAYER_SETTINGS_FB); } - /** Sets the specified value to the {@link XrCompositionLayerSettingsFB#next} field. */ - public XrCompositionLayerSettingsFB.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerSettingsFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@code layerFlags} field. */ - public XrCompositionLayerSettingsFB.Buffer layerFlags(@NativeType("XrCompositionLayerSettingsFlagsFB") long value) { XrCompositionLayerSettingsFB.nlayerFlags(address(), value); return this; } + + /** @return the value of the {@link XrCompositionLayerSettingsFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerSettingsFB.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerSettingsFB#next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerSettingsFB.nnext(address()); } + /** @return the value of the {@code layerFlags} field. */ + @NativeType("XrCompositionLayerSettingsFlagsFB") + public long layerFlags() { return XrCompositionLayerSettingsFB.nlayerFlags(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerSettingsFB#type} field. */ + public XrCompositionLayerSettingsFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerSettingsFB.ntype(address(), value); return this; } + /** Sets the {@link FBCompositionLayerSettings#XR_TYPE_COMPOSITION_LAYER_SETTINGS_FB TYPE_COMPOSITION_LAYER_SETTINGS_FB} value to the {@link XrCompositionLayerSettingsFB#type} field. */ + public XrCompositionLayerSettingsFB.Buffer type$Default() { return type(FBCompositionLayerSettings.XR_TYPE_COMPOSITION_LAYER_SETTINGS_FB); } + /** Sets the specified value to the {@link XrCompositionLayerSettingsFB#next} field. */ + public XrCompositionLayerSettingsFB.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerSettingsFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@code layerFlags} field. */ + public XrCompositionLayerSettingsFB.Buffer layerFlags(@NativeType("XrCompositionLayerSettingsFlagsFB") long value) { XrCompositionLayerSettingsFB.nlayerFlags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerSpaceWarpInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerSpaceWarpInfoFB.java index f67ead7b20..7e2dfa80e9 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerSpaceWarpInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCompositionLayerSpaceWarpInfoFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Composition Layer Space Warp structure. * @@ -27,7 +27,7 @@ *
                        *
                      • The {@link FBSpaceWarp XR_FB_space_warp} extension must be enabled prior to using {@link XrCompositionLayerSpaceWarpInfoFB}
                      • *
                      • {@code type} must be {@link FBSpaceWarp#XR_TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB}
                      • - *
                      • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                      • + *
                      • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                      • *
                      • {@code layerFlags} must be 0 or a valid combination of {@code XrCompositionLayerSpaceWarpInfoFlagBitsFB} values
                      • *
                      • {@code motionVectorSubImage} must be a valid {@link XrSwapchainSubImage} structure
                      • *
                      • {@code depthSubImage} must be a valid {@link XrSwapchainSubImage} structure
                      • @@ -52,8 +52,8 @@ * float {@link #nearZ}; * float {@link #farZ}; * } - */ -public class XrCompositionLayerSpaceWarpInfoFB extends Struct implements NativeResource { + */ +public class XrCompositionLayerSpaceWarpInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -63,45 +63,45 @@ public class XrCompositionLayerSpaceWarpInfoFB extends Struct[0.0,1.0]. This is akin to min and max values of OpenGL’s {@code glDepthRange}, but with the requirement here that maxDepth ≥ minDepth. */ - public float minDepth() { return nminDepth(address()); } - /** see {@code minDepth} */ - public float maxDepth() { return nmaxDepth(address()); } - /** the positive distance in meters of the {@code minDepth} value in the depth swapchain. Applications may use a {@code nearZ} that is greater than {@code farZ} to indicate depth values are reversed. {@code nearZ} can be infinite. */ - public float nearZ() { return nnearZ(address()); } - /** the positive distance in meters of the {@code maxDepth} value in the depth swapchain. {@code farZ} can be infinite. */ - public float farZ() { return nfarZ(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrCompositionLayerSpaceWarpInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBSpaceWarp#XR_TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB} value to the {@link #type} field. */ - public XrCompositionLayerSpaceWarpInfoFB type$Default() { return type(FBSpaceWarp.XR_TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrCompositionLayerSpaceWarpInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #layerFlags} field. */ - public XrCompositionLayerSpaceWarpInfoFB layerFlags(@NativeType("XrCompositionLayerSpaceWarpInfoFlagsFB") long value) { nlayerFlags(address(), value); return this; } - /** Copies the specified {@link XrSwapchainSubImage} to the {@link #motionVectorSubImage} field. */ - public XrCompositionLayerSpaceWarpInfoFB motionVectorSubImage(XrSwapchainSubImage value) { nmotionVectorSubImage(address(), value); return this; } - /** Passes the {@link #motionVectorSubImage} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerSpaceWarpInfoFB motionVectorSubImage(java.util.function.Consumer consumer) { consumer.accept(motionVectorSubImage()); return this; } - /** Copies the specified {@link XrPosef} to the {@link #appSpaceDeltaPose} field. */ - public XrCompositionLayerSpaceWarpInfoFB appSpaceDeltaPose(XrPosef value) { nappSpaceDeltaPose(address(), value); return this; } - /** Passes the {@link #appSpaceDeltaPose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerSpaceWarpInfoFB appSpaceDeltaPose(java.util.function.Consumer consumer) { consumer.accept(appSpaceDeltaPose()); return this; } - /** Copies the specified {@link XrSwapchainSubImage} to the {@link #depthSubImage} field. */ - public XrCompositionLayerSpaceWarpInfoFB depthSubImage(XrSwapchainSubImage value) { ndepthSubImage(address(), value); return this; } - /** Passes the {@link #depthSubImage} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerSpaceWarpInfoFB depthSubImage(java.util.function.Consumer consumer) { consumer.accept(depthSubImage()); return this; } - /** Sets the specified value to the {@link #minDepth} field. */ - public XrCompositionLayerSpaceWarpInfoFB minDepth(float value) { nminDepth(address(), value); return this; } - /** Sets the specified value to the {@link #maxDepth} field. */ - public XrCompositionLayerSpaceWarpInfoFB maxDepth(float value) { nmaxDepth(address(), value); return this; } - /** Sets the specified value to the {@link #nearZ} field. */ - public XrCompositionLayerSpaceWarpInfoFB nearZ(float value) { nnearZ(address(), value); return this; } - /** Sets the specified value to the {@link #farZ} field. */ - public XrCompositionLayerSpaceWarpInfoFB farZ(float value) { nfarZ(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** a bitmask of {@code XrCompositionLayerSpaceWarpInfoFlagsFB}. */ + @NativeType("XrCompositionLayerSpaceWarpInfoFlagsFB") + public long layerFlags() { return nlayerFlags(address()); } + /** identifies the motion vector image {@link XrSwapchainSubImage} to be associated with the submitted layer {@link XrCompositionLayerProjection}. */ + public XrSwapchainSubImage motionVectorSubImage() { return nmotionVectorSubImage(address()); } + /** the incremental application-applied transform, if any, since the previous frame that affects the view. When artificial locomotion (scripted movement, teleportation, etc.) happens, the application might transform the whole {@link XrCompositionLayerProjection}::space from one application space pose to another pose between frames. The pose should be identity when there is no {@link XrCompositionLayerProjection}::space transformation in application. */ + public XrPosef appSpaceDeltaPose() { return nappSpaceDeltaPose(address()); } + /** identifies the depth image {@link XrSwapchainSubImage} to be associated with motionVectorSubImage. The swapchain should be created with {@link XR10#XR_SWAPCHAIN_USAGE_SAMPLED_BIT SWAPCHAIN_USAGE_SAMPLED_BIT} | {@link XR10#XR_SWAPCHAIN_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT SWAPCHAIN_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT}. */ + public XrSwapchainSubImage depthSubImage() { return ndepthSubImage(address()); } + /** {@code minDepth} and {@code maxDepth} are the range of depth values the {@code depthSwapchain} could have, in the range of [0.0,1.0]. This is akin to min and max values of OpenGL’s {@code glDepthRange}, but with the requirement here that maxDepth ≥ minDepth. */ + public float minDepth() { return nminDepth(address()); } + /** see {@code minDepth} */ + public float maxDepth() { return nmaxDepth(address()); } + /** the positive distance in meters of the {@code minDepth} value in the depth swapchain. Applications may use a {@code nearZ} that is greater than {@code farZ} to indicate depth values are reversed. {@code nearZ} can be infinite. */ + public float nearZ() { return nnearZ(address()); } + /** the positive distance in meters of the {@code maxDepth} value in the depth swapchain. {@code farZ} can be infinite. */ + public float farZ() { return nfarZ(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrCompositionLayerSpaceWarpInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSpaceWarp#XR_TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB} value to the {@link #type} field. */ + public XrCompositionLayerSpaceWarpInfoFB type$Default() { return type(FBSpaceWarp.XR_TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrCompositionLayerSpaceWarpInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #layerFlags} field. */ + public XrCompositionLayerSpaceWarpInfoFB layerFlags(@NativeType("XrCompositionLayerSpaceWarpInfoFlagsFB") long value) { nlayerFlags(address(), value); return this; } + /** Copies the specified {@link XrSwapchainSubImage} to the {@link #motionVectorSubImage} field. */ + public XrCompositionLayerSpaceWarpInfoFB motionVectorSubImage(XrSwapchainSubImage value) { nmotionVectorSubImage(address(), value); return this; } + /** Passes the {@link #motionVectorSubImage} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerSpaceWarpInfoFB motionVectorSubImage(java.util.function.Consumer consumer) { consumer.accept(motionVectorSubImage()); return this; } + /** Copies the specified {@link XrPosef} to the {@link #appSpaceDeltaPose} field. */ + public XrCompositionLayerSpaceWarpInfoFB appSpaceDeltaPose(XrPosef value) { nappSpaceDeltaPose(address(), value); return this; } + /** Passes the {@link #appSpaceDeltaPose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerSpaceWarpInfoFB appSpaceDeltaPose(java.util.function.Consumer consumer) { consumer.accept(appSpaceDeltaPose()); return this; } + /** Copies the specified {@link XrSwapchainSubImage} to the {@link #depthSubImage} field. */ + public XrCompositionLayerSpaceWarpInfoFB depthSubImage(XrSwapchainSubImage value) { ndepthSubImage(address(), value); return this; } + /** Passes the {@link #depthSubImage} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerSpaceWarpInfoFB depthSubImage(java.util.function.Consumer consumer) { consumer.accept(depthSubImage()); return this; } + /** Sets the specified value to the {@link #minDepth} field. */ + public XrCompositionLayerSpaceWarpInfoFB minDepth(float value) { nminDepth(address(), value); return this; } + /** Sets the specified value to the {@link #maxDepth} field. */ + public XrCompositionLayerSpaceWarpInfoFB maxDepth(float value) { nmaxDepth(address(), value); return this; } + /** Sets the specified value to the {@link #nearZ} field. */ + public XrCompositionLayerSpaceWarpInfoFB nearZ(float value) { nnearZ(address(), value); return this; } + /** Sets the specified value to the {@link #farZ} field. */ + public XrCompositionLayerSpaceWarpInfoFB farZ(float value) { nfarZ(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrCompositionLayerSpaceWarpInfoFB set( - int type, - long next, - long layerFlags, - XrSwapchainSubImage motionVectorSubImage, - XrPosef appSpaceDeltaPose, - XrSwapchainSubImage depthSubImage, - float minDepth, - float maxDepth, - float nearZ, + int type, + long next, + long layerFlags, + XrSwapchainSubImage motionVectorSubImage, + XrPosef appSpaceDeltaPose, + XrSwapchainSubImage depthSubImage, + float minDepth, + float maxDepth, + float nearZ, float farZ - ) { - type(type); - next(next); - layerFlags(layerFlags); - motionVectorSubImage(motionVectorSubImage); - appSpaceDeltaPose(appSpaceDeltaPose); - depthSubImage(depthSubImage); - minDepth(minDepth); - maxDepth(maxDepth); - nearZ(nearZ); - farZ(farZ); + ) { + type(type); + next(next); + layerFlags(layerFlags); + motionVectorSubImage(motionVectorSubImage); + appSpaceDeltaPose(appSpaceDeltaPose); + depthSubImage(depthSubImage); + minDepth(minDepth); + maxDepth(maxDepth); + nearZ(nearZ); + farZ(farZ); return this; } @@ -329,48 +329,48 @@ public static XrCompositionLayerSpaceWarpInfoFB.Buffer calloc(int capacity, Memo } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerSpaceWarpInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerSpaceWarpInfoFB.NEXT); } - /** Unsafe version of {@link #layerFlags}. */ - public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerSpaceWarpInfoFB.LAYERFLAGS); } - /** Unsafe version of {@link #motionVectorSubImage}. */ - public static XrSwapchainSubImage nmotionVectorSubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerSpaceWarpInfoFB.MOTIONVECTORSUBIMAGE); } - /** Unsafe version of {@link #appSpaceDeltaPose}. */ - public static XrPosef nappSpaceDeltaPose(long struct) { return XrPosef.create(struct + XrCompositionLayerSpaceWarpInfoFB.APPSPACEDELTAPOSE); } - /** Unsafe version of {@link #depthSubImage}. */ - public static XrSwapchainSubImage ndepthSubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerSpaceWarpInfoFB.DEPTHSUBIMAGE); } - /** Unsafe version of {@link #minDepth}. */ - public static float nminDepth(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.MINDEPTH); } - /** Unsafe version of {@link #maxDepth}. */ - public static float nmaxDepth(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.MAXDEPTH); } - /** Unsafe version of {@link #nearZ}. */ - public static float nnearZ(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.NEARZ); } - /** Unsafe version of {@link #farZ}. */ - public static float nfarZ(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.FARZ); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerSpaceWarpInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerSpaceWarpInfoFB.NEXT, value); } - /** Unsafe version of {@link #layerFlags(long) layerFlags}. */ - public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerSpaceWarpInfoFB.LAYERFLAGS, value); } - /** Unsafe version of {@link #motionVectorSubImage(XrSwapchainSubImage) motionVectorSubImage}. */ - public static void nmotionVectorSubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerSpaceWarpInfoFB.MOTIONVECTORSUBIMAGE, XrSwapchainSubImage.SIZEOF); } - /** Unsafe version of {@link #appSpaceDeltaPose(XrPosef) appSpaceDeltaPose}. */ - public static void nappSpaceDeltaPose(long struct, XrPosef value) { memCopy(value.address(), struct + XrCompositionLayerSpaceWarpInfoFB.APPSPACEDELTAPOSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #depthSubImage(XrSwapchainSubImage) depthSubImage}. */ - public static void ndepthSubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerSpaceWarpInfoFB.DEPTHSUBIMAGE, XrSwapchainSubImage.SIZEOF); } - /** Unsafe version of {@link #minDepth(float) minDepth}. */ - public static void nminDepth(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.MINDEPTH, value); } - /** Unsafe version of {@link #maxDepth(float) maxDepth}. */ - public static void nmaxDepth(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.MAXDEPTH, value); } - /** Unsafe version of {@link #nearZ(float) nearZ}. */ - public static void nnearZ(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.NEARZ, value); } - /** Unsafe version of {@link #farZ(float) farZ}. */ - public static void nfarZ(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.FARZ, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCompositionLayerSpaceWarpInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrCompositionLayerSpaceWarpInfoFB.NEXT); } + /** Unsafe version of {@link #layerFlags}. */ + public static long nlayerFlags(long struct) { return UNSAFE.getLong(null, struct + XrCompositionLayerSpaceWarpInfoFB.LAYERFLAGS); } + /** Unsafe version of {@link #motionVectorSubImage}. */ + public static XrSwapchainSubImage nmotionVectorSubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerSpaceWarpInfoFB.MOTIONVECTORSUBIMAGE); } + /** Unsafe version of {@link #appSpaceDeltaPose}. */ + public static XrPosef nappSpaceDeltaPose(long struct) { return XrPosef.create(struct + XrCompositionLayerSpaceWarpInfoFB.APPSPACEDELTAPOSE); } + /** Unsafe version of {@link #depthSubImage}. */ + public static XrSwapchainSubImage ndepthSubImage(long struct) { return XrSwapchainSubImage.create(struct + XrCompositionLayerSpaceWarpInfoFB.DEPTHSUBIMAGE); } + /** Unsafe version of {@link #minDepth}. */ + public static float nminDepth(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.MINDEPTH); } + /** Unsafe version of {@link #maxDepth}. */ + public static float nmaxDepth(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.MAXDEPTH); } + /** Unsafe version of {@link #nearZ}. */ + public static float nnearZ(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.NEARZ); } + /** Unsafe version of {@link #farZ}. */ + public static float nfarZ(long struct) { return UNSAFE.getFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.FARZ); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCompositionLayerSpaceWarpInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrCompositionLayerSpaceWarpInfoFB.NEXT, value); } + /** Unsafe version of {@link #layerFlags(long) layerFlags}. */ + public static void nlayerFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrCompositionLayerSpaceWarpInfoFB.LAYERFLAGS, value); } + /** Unsafe version of {@link #motionVectorSubImage(XrSwapchainSubImage) motionVectorSubImage}. */ + public static void nmotionVectorSubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerSpaceWarpInfoFB.MOTIONVECTORSUBIMAGE, XrSwapchainSubImage.SIZEOF); } + /** Unsafe version of {@link #appSpaceDeltaPose(XrPosef) appSpaceDeltaPose}. */ + public static void nappSpaceDeltaPose(long struct, XrPosef value) { memCopy(value.address(), struct + XrCompositionLayerSpaceWarpInfoFB.APPSPACEDELTAPOSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #depthSubImage(XrSwapchainSubImage) depthSubImage}. */ + public static void ndepthSubImage(long struct, XrSwapchainSubImage value) { memCopy(value.address(), struct + XrCompositionLayerSpaceWarpInfoFB.DEPTHSUBIMAGE, XrSwapchainSubImage.SIZEOF); } + /** Unsafe version of {@link #minDepth(float) minDepth}. */ + public static void nminDepth(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.MINDEPTH, value); } + /** Unsafe version of {@link #maxDepth(float) maxDepth}. */ + public static void nmaxDepth(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.MAXDEPTH, value); } + /** Unsafe version of {@link #nearZ(float) nearZ}. */ + public static void nnearZ(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.NEARZ, value); } + /** Unsafe version of {@link #farZ(float) farZ}. */ + public static void nfarZ(long struct, float value) { UNSAFE.putFloat(null, struct + XrCompositionLayerSpaceWarpInfoFB.FARZ, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -380,9 +380,9 @@ public static XrCompositionLayerSpaceWarpInfoFB.Buffer calloc(int capacity, Memo public static void validate(long struct) { XrSwapchainSubImage.validate(struct + XrCompositionLayerSpaceWarpInfoFB.MOTIONVECTORSUBIMAGE); XrSwapchainSubImage.validate(struct + XrCompositionLayerSpaceWarpInfoFB.DEPTHSUBIMAGE); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrCompositionLayerSpaceWarpInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -419,59 +419,59 @@ protected Buffer self() { protected XrCompositionLayerSpaceWarpInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCompositionLayerSpaceWarpInfoFB.ntype(address()); } - /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrCompositionLayerSpaceWarpInfoFB.nnext(address()); } - /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#layerFlags} field. */ - @NativeType("XrCompositionLayerSpaceWarpInfoFlagsFB") - public long layerFlags() { return XrCompositionLayerSpaceWarpInfoFB.nlayerFlags(address()); } - /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerSpaceWarpInfoFB#motionVectorSubImage} field. */ - public XrSwapchainSubImage motionVectorSubImage() { return XrCompositionLayerSpaceWarpInfoFB.nmotionVectorSubImage(address()); } - /** @return a {@link XrPosef} view of the {@link XrCompositionLayerSpaceWarpInfoFB#appSpaceDeltaPose} field. */ - public XrPosef appSpaceDeltaPose() { return XrCompositionLayerSpaceWarpInfoFB.nappSpaceDeltaPose(address()); } - /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerSpaceWarpInfoFB#depthSubImage} field. */ - public XrSwapchainSubImage depthSubImage() { return XrCompositionLayerSpaceWarpInfoFB.ndepthSubImage(address()); } - /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#minDepth} field. */ - public float minDepth() { return XrCompositionLayerSpaceWarpInfoFB.nminDepth(address()); } - /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#maxDepth} field. */ - public float maxDepth() { return XrCompositionLayerSpaceWarpInfoFB.nmaxDepth(address()); } - /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#nearZ} field. */ - public float nearZ() { return XrCompositionLayerSpaceWarpInfoFB.nnearZ(address()); } - /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#farZ} field. */ - public float farZ() { return XrCompositionLayerSpaceWarpInfoFB.nfarZ(address()); } - - /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#type} field. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerSpaceWarpInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpaceWarp#XR_TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB} value to the {@link XrCompositionLayerSpaceWarpInfoFB#type} field. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer type$Default() { return type(FBSpaceWarp.XR_TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB); } - /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#next} field. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerSpaceWarpInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#layerFlags} field. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer layerFlags(@NativeType("XrCompositionLayerSpaceWarpInfoFlagsFB") long value) { XrCompositionLayerSpaceWarpInfoFB.nlayerFlags(address(), value); return this; } - /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerSpaceWarpInfoFB#motionVectorSubImage} field. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer motionVectorSubImage(XrSwapchainSubImage value) { XrCompositionLayerSpaceWarpInfoFB.nmotionVectorSubImage(address(), value); return this; } - /** Passes the {@link XrCompositionLayerSpaceWarpInfoFB#motionVectorSubImage} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer motionVectorSubImage(java.util.function.Consumer consumer) { consumer.accept(motionVectorSubImage()); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrCompositionLayerSpaceWarpInfoFB#appSpaceDeltaPose} field. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer appSpaceDeltaPose(XrPosef value) { XrCompositionLayerSpaceWarpInfoFB.nappSpaceDeltaPose(address(), value); return this; } - /** Passes the {@link XrCompositionLayerSpaceWarpInfoFB#appSpaceDeltaPose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer appSpaceDeltaPose(java.util.function.Consumer consumer) { consumer.accept(appSpaceDeltaPose()); return this; } - /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerSpaceWarpInfoFB#depthSubImage} field. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer depthSubImage(XrSwapchainSubImage value) { XrCompositionLayerSpaceWarpInfoFB.ndepthSubImage(address(), value); return this; } - /** Passes the {@link XrCompositionLayerSpaceWarpInfoFB#depthSubImage} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer depthSubImage(java.util.function.Consumer consumer) { consumer.accept(depthSubImage()); return this; } - /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#minDepth} field. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer minDepth(float value) { XrCompositionLayerSpaceWarpInfoFB.nminDepth(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#maxDepth} field. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer maxDepth(float value) { XrCompositionLayerSpaceWarpInfoFB.nmaxDepth(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#nearZ} field. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer nearZ(float value) { XrCompositionLayerSpaceWarpInfoFB.nnearZ(address(), value); return this; } - /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#farZ} field. */ - public XrCompositionLayerSpaceWarpInfoFB.Buffer farZ(float value) { XrCompositionLayerSpaceWarpInfoFB.nfarZ(address(), value); return this; } + + /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCompositionLayerSpaceWarpInfoFB.ntype(address()); } + /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrCompositionLayerSpaceWarpInfoFB.nnext(address()); } + /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#layerFlags} field. */ + @NativeType("XrCompositionLayerSpaceWarpInfoFlagsFB") + public long layerFlags() { return XrCompositionLayerSpaceWarpInfoFB.nlayerFlags(address()); } + /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerSpaceWarpInfoFB#motionVectorSubImage} field. */ + public XrSwapchainSubImage motionVectorSubImage() { return XrCompositionLayerSpaceWarpInfoFB.nmotionVectorSubImage(address()); } + /** @return a {@link XrPosef} view of the {@link XrCompositionLayerSpaceWarpInfoFB#appSpaceDeltaPose} field. */ + public XrPosef appSpaceDeltaPose() { return XrCompositionLayerSpaceWarpInfoFB.nappSpaceDeltaPose(address()); } + /** @return a {@link XrSwapchainSubImage} view of the {@link XrCompositionLayerSpaceWarpInfoFB#depthSubImage} field. */ + public XrSwapchainSubImage depthSubImage() { return XrCompositionLayerSpaceWarpInfoFB.ndepthSubImage(address()); } + /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#minDepth} field. */ + public float minDepth() { return XrCompositionLayerSpaceWarpInfoFB.nminDepth(address()); } + /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#maxDepth} field. */ + public float maxDepth() { return XrCompositionLayerSpaceWarpInfoFB.nmaxDepth(address()); } + /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#nearZ} field. */ + public float nearZ() { return XrCompositionLayerSpaceWarpInfoFB.nnearZ(address()); } + /** @return the value of the {@link XrCompositionLayerSpaceWarpInfoFB#farZ} field. */ + public float farZ() { return XrCompositionLayerSpaceWarpInfoFB.nfarZ(address()); } + + /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#type} field. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrCompositionLayerSpaceWarpInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpaceWarp#XR_TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB} value to the {@link XrCompositionLayerSpaceWarpInfoFB#type} field. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer type$Default() { return type(FBSpaceWarp.XR_TYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FB); } + /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#next} field. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer next(@NativeType("void const *") long value) { XrCompositionLayerSpaceWarpInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#layerFlags} field. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer layerFlags(@NativeType("XrCompositionLayerSpaceWarpInfoFlagsFB") long value) { XrCompositionLayerSpaceWarpInfoFB.nlayerFlags(address(), value); return this; } + /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerSpaceWarpInfoFB#motionVectorSubImage} field. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer motionVectorSubImage(XrSwapchainSubImage value) { XrCompositionLayerSpaceWarpInfoFB.nmotionVectorSubImage(address(), value); return this; } + /** Passes the {@link XrCompositionLayerSpaceWarpInfoFB#motionVectorSubImage} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer motionVectorSubImage(java.util.function.Consumer consumer) { consumer.accept(motionVectorSubImage()); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrCompositionLayerSpaceWarpInfoFB#appSpaceDeltaPose} field. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer appSpaceDeltaPose(XrPosef value) { XrCompositionLayerSpaceWarpInfoFB.nappSpaceDeltaPose(address(), value); return this; } + /** Passes the {@link XrCompositionLayerSpaceWarpInfoFB#appSpaceDeltaPose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer appSpaceDeltaPose(java.util.function.Consumer consumer) { consumer.accept(appSpaceDeltaPose()); return this; } + /** Copies the specified {@link XrSwapchainSubImage} to the {@link XrCompositionLayerSpaceWarpInfoFB#depthSubImage} field. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer depthSubImage(XrSwapchainSubImage value) { XrCompositionLayerSpaceWarpInfoFB.ndepthSubImage(address(), value); return this; } + /** Passes the {@link XrCompositionLayerSpaceWarpInfoFB#depthSubImage} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer depthSubImage(java.util.function.Consumer consumer) { consumer.accept(depthSubImage()); return this; } + /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#minDepth} field. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer minDepth(float value) { XrCompositionLayerSpaceWarpInfoFB.nminDepth(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#maxDepth} field. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer maxDepth(float value) { XrCompositionLayerSpaceWarpInfoFB.nmaxDepth(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#nearZ} field. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer nearZ(float value) { XrCompositionLayerSpaceWarpInfoFB.nnearZ(address(), value); return this; } + /** Sets the specified value to the {@link XrCompositionLayerSpaceWarpInfoFB#farZ} field. */ + public XrCompositionLayerSpaceWarpInfoFB.Buffer farZ(float value) { XrCompositionLayerSpaceWarpInfoFB.nfarZ(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelKeyStateMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelKeyStateMSFT.java index bc21035e66..0ecaae803b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelKeyStateMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelKeyStateMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The model key state for a controller. * @@ -24,14 +24,12 @@ * *

                        A {@code modelKey} value of {@link MSFTControllerModel#XR_NULL_CONTROLLER_MODEL_KEY_MSFT NULL_CONTROLLER_MODEL_KEY_MSFT}, represents an invalid model key and indicates there is no controller model yet available. The application should keep calling {@link MSFTControllerModel#xrGetControllerModelKeyMSFT GetControllerModelKeyMSFT} because the model may become available at a later point.

                        * - *

                        The returned {@code modelKey} value depends on an active action binding to the corresponding subpathname:/grip/pose of the controller. Therefore, the application must have provided a valid action set containing an action for subpathname:/grip/pose, and have successfully completed an {@link XR10#xrSyncActions SyncActions} call, in order to obtain a valid {@code modelKey}.

                        - * *
                        Valid Usage (Implicit)
                        * *
                          *
                        • The {@link MSFTControllerModel XR_MSFT_controller_model} extension must be enabled prior to using {@link XrControllerModelKeyStateMSFT}
                        • *
                        • {@code type} must be {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_KEY_STATE_MSFT TYPE_CONTROLLER_MODEL_KEY_STATE_MSFT}
                        • - *
                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                        • + *
                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                        • *
                        * *
                        See Also
                        @@ -46,8 +44,8 @@ * void * {@link #next}; * XrControllerModelKeyMSFT {@link #modelKey}; * } - */ -public class XrControllerModelKeyStateMSFT extends Struct implements NativeResource { + */ +public class XrControllerModelKeyStateMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,24 +55,24 @@ public class XrControllerModelKeyStateMSFT extends Struct implements NativeResource { @@ -306,25 +304,25 @@ protected Buffer self() { protected XrControllerModelKeyStateMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrControllerModelKeyStateMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrControllerModelKeyStateMSFT.ntype(address()); } - /** @return the value of the {@link XrControllerModelKeyStateMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrControllerModelKeyStateMSFT.nnext(address()); } - /** @return the value of the {@link XrControllerModelKeyStateMSFT#modelKey} field. */ - @NativeType("XrControllerModelKeyMSFT") - public long modelKey() { return XrControllerModelKeyStateMSFT.nmodelKey(address()); } - - /** Sets the specified value to the {@link XrControllerModelKeyStateMSFT#type} field. */ - public XrControllerModelKeyStateMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrControllerModelKeyStateMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_KEY_STATE_MSFT TYPE_CONTROLLER_MODEL_KEY_STATE_MSFT} value to the {@link XrControllerModelKeyStateMSFT#type} field. */ - public XrControllerModelKeyStateMSFT.Buffer type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_KEY_STATE_MSFT); } - /** Sets the specified value to the {@link XrControllerModelKeyStateMSFT#next} field. */ - public XrControllerModelKeyStateMSFT.Buffer next(@NativeType("void *") long value) { XrControllerModelKeyStateMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrControllerModelKeyStateMSFT#modelKey} field. */ - public XrControllerModelKeyStateMSFT.Buffer modelKey(@NativeType("XrControllerModelKeyMSFT") long value) { XrControllerModelKeyStateMSFT.nmodelKey(address(), value); return this; } + + /** @return the value of the {@link XrControllerModelKeyStateMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrControllerModelKeyStateMSFT.ntype(address()); } + /** @return the value of the {@link XrControllerModelKeyStateMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrControllerModelKeyStateMSFT.nnext(address()); } + /** @return the value of the {@link XrControllerModelKeyStateMSFT#modelKey} field. */ + @NativeType("XrControllerModelKeyMSFT") + public long modelKey() { return XrControllerModelKeyStateMSFT.nmodelKey(address()); } + + /** Sets the specified value to the {@link XrControllerModelKeyStateMSFT#type} field. */ + public XrControllerModelKeyStateMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrControllerModelKeyStateMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_KEY_STATE_MSFT TYPE_CONTROLLER_MODEL_KEY_STATE_MSFT} value to the {@link XrControllerModelKeyStateMSFT#type} field. */ + public XrControllerModelKeyStateMSFT.Buffer type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_KEY_STATE_MSFT); } + /** Sets the specified value to the {@link XrControllerModelKeyStateMSFT#next} field. */ + public XrControllerModelKeyStateMSFT.Buffer next(@NativeType("void *") long value) { XrControllerModelKeyStateMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrControllerModelKeyStateMSFT#modelKey} field. */ + public XrControllerModelKeyStateMSFT.Buffer modelKey(@NativeType("XrControllerModelKeyMSFT") long value) { XrControllerModelKeyStateMSFT.nmodelKey(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelNodePropertiesMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelNodePropertiesMSFT.java index ab940fecb9..306a66e38d 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelNodePropertiesMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelNodePropertiesMSFT.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import static org.lwjgl.openxr.MSFTControllerModel.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.MSFTControllerModel.*; + /** * Describes the controller model node properties. * @@ -34,7 +34,7 @@ *
                          *
                        • The {@link MSFTControllerModel XR_MSFT_controller_model} extension must be enabled prior to using {@link XrControllerModelNodePropertiesMSFT}
                        • *
                        • {@code type} must be {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT}
                        • - *
                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                        • + *
                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                        • *
                        • {@code parentNodeName} must be a null-terminated UTF-8 string whose length is less than or equal to {@link MSFTControllerModel#XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT}
                        • *
                        • {@code nodeName} must be a null-terminated UTF-8 string whose length is less than or equal to {@link MSFTControllerModel#XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT}
                        • *
                        @@ -52,8 +52,8 @@ * char {@link #parentNodeName}[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]; * char {@link #nodeName}[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]; * } - */ -public class XrControllerModelNodePropertiesMSFT extends Struct implements NativeResource { + */ +public class XrControllerModelNodePropertiesMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -63,27 +63,27 @@ public class XrControllerModelNodePropertiesMSFT extends Structmay be empty if it should not be used to locate this node. */ - @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") - public ByteBuffer parentNodeName() { return nparentNodeName(address()); } - /** the name of the parent node in the provided glTF file. The parent name may be empty if it should not be used to locate this node. */ - @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") - public String parentNodeNameString() { return nparentNodeNameString(address()); } - /** the name of this node in the provided glTF file. */ - @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") - public ByteBuffer nodeName() { return nnodeName(address()); } - /** the name of this node in the provided glTF file. */ - @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") - public String nodeNameString() { return nnodeNameString(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrControllerModelNodePropertiesMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT} value to the {@link #type} field. */ - public XrControllerModelNodePropertiesMSFT type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrControllerModelNodePropertiesMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Copies the specified encoded string to the {@link #parentNodeName} field. */ - public XrControllerModelNodePropertiesMSFT parentNodeName(@NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") ByteBuffer value) { nparentNodeName(address(), value); return this; } - /** Copies the specified encoded string to the {@link #nodeName} field. */ - public XrControllerModelNodePropertiesMSFT nodeName(@NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") ByteBuffer value) { nnodeName(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the name of the parent node in the provided glTF file. The parent name may be empty if it should not be used to locate this node. */ + @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") + public ByteBuffer parentNodeName() { return nparentNodeName(address()); } + /** the name of the parent node in the provided glTF file. The parent name may be empty if it should not be used to locate this node. */ + @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") + public String parentNodeNameString() { return nparentNodeNameString(address()); } + /** the name of this node in the provided glTF file. */ + @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") + public ByteBuffer nodeName() { return nnodeName(address()); } + /** the name of this node in the provided glTF file. */ + @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") + public String nodeNameString() { return nnodeNameString(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrControllerModelNodePropertiesMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT} value to the {@link #type} field. */ + public XrControllerModelNodePropertiesMSFT type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrControllerModelNodePropertiesMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Copies the specified encoded string to the {@link #parentNodeName} field. */ + public XrControllerModelNodePropertiesMSFT parentNodeName(@NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") ByteBuffer value) { nparentNodeName(address(), value); return this; } + /** Copies the specified encoded string to the {@link #nodeName} field. */ + public XrControllerModelNodePropertiesMSFT nodeName(@NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") ByteBuffer value) { nnodeName(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrControllerModelNodePropertiesMSFT set( - int type, - long next, - ByteBuffer parentNodeName, + int type, + long next, + ByteBuffer parentNodeName, ByteBuffer nodeName - ) { - type(type); - next(next); - parentNodeName(parentNodeName); - nodeName(nodeName); + ) { + type(type); + next(next); + parentNodeName(parentNodeName); + nodeName(nodeName); return this; } @@ -276,42 +276,42 @@ public static XrControllerModelNodePropertiesMSFT.Buffer calloc(int capacity, Me } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelNodePropertiesMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrControllerModelNodePropertiesMSFT.NEXT); } - /** Unsafe version of {@link #parentNodeName}. */ - public static ByteBuffer nparentNodeName(long struct) { return memByteBuffer(struct + XrControllerModelNodePropertiesMSFT.PARENTNODENAME, XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT); } - /** Unsafe version of {@link #parentNodeNameString}. */ - public static String nparentNodeNameString(long struct) { return memUTF8(struct + XrControllerModelNodePropertiesMSFT.PARENTNODENAME); } - /** Unsafe version of {@link #nodeName}. */ - public static ByteBuffer nnodeName(long struct) { return memByteBuffer(struct + XrControllerModelNodePropertiesMSFT.NODENAME, XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT); } - /** Unsafe version of {@link #nodeNameString}. */ - public static String nnodeNameString(long struct) { return memUTF8(struct + XrControllerModelNodePropertiesMSFT.NODENAME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelNodePropertiesMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrControllerModelNodePropertiesMSFT.NEXT, value); } - /** Unsafe version of {@link #parentNodeName(ByteBuffer) parentNodeName}. */ - public static void nparentNodeName(long struct, ByteBuffer value) { - if (CHECKS) { - checkNT1(value); - checkGT(value, XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT); - } - memCopy(memAddress(value), struct + XrControllerModelNodePropertiesMSFT.PARENTNODENAME, value.remaining()); - } - /** Unsafe version of {@link #nodeName(ByteBuffer) nodeName}. */ - public static void nnodeName(long struct, ByteBuffer value) { - if (CHECKS) { - checkNT1(value); - checkGT(value, XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT); - } - memCopy(memAddress(value), struct + XrControllerModelNodePropertiesMSFT.NODENAME, value.remaining()); - } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelNodePropertiesMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrControllerModelNodePropertiesMSFT.NEXT); } + /** Unsafe version of {@link #parentNodeName}. */ + public static ByteBuffer nparentNodeName(long struct) { return memByteBuffer(struct + XrControllerModelNodePropertiesMSFT.PARENTNODENAME, XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT); } + /** Unsafe version of {@link #parentNodeNameString}. */ + public static String nparentNodeNameString(long struct) { return memUTF8(struct + XrControllerModelNodePropertiesMSFT.PARENTNODENAME); } + /** Unsafe version of {@link #nodeName}. */ + public static ByteBuffer nnodeName(long struct) { return memByteBuffer(struct + XrControllerModelNodePropertiesMSFT.NODENAME, XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT); } + /** Unsafe version of {@link #nodeNameString}. */ + public static String nnodeNameString(long struct) { return memUTF8(struct + XrControllerModelNodePropertiesMSFT.NODENAME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelNodePropertiesMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrControllerModelNodePropertiesMSFT.NEXT, value); } + /** Unsafe version of {@link #parentNodeName(ByteBuffer) parentNodeName}. */ + public static void nparentNodeName(long struct, ByteBuffer value) { + if (CHECKS) { + checkNT1(value); + checkGT(value, XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT); + } + memCopy(memAddress(value), struct + XrControllerModelNodePropertiesMSFT.PARENTNODENAME, value.remaining()); + } + /** Unsafe version of {@link #nodeName(ByteBuffer) nodeName}. */ + public static void nnodeName(long struct, ByteBuffer value) { + if (CHECKS) { + checkNT1(value); + checkGT(value, XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT); + } + memCopy(memAddress(value), struct + XrControllerModelNodePropertiesMSFT.NODENAME, value.remaining()); + } + + // ----------------------------------- /** An array of {@link XrControllerModelNodePropertiesMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -348,36 +348,36 @@ protected Buffer self() { protected XrControllerModelNodePropertiesMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrControllerModelNodePropertiesMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrControllerModelNodePropertiesMSFT.ntype(address()); } - /** @return the value of the {@link XrControllerModelNodePropertiesMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrControllerModelNodePropertiesMSFT.nnext(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrControllerModelNodePropertiesMSFT#parentNodeName} field. */ - @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") - public ByteBuffer parentNodeName() { return XrControllerModelNodePropertiesMSFT.nparentNodeName(address()); } - /** @return the null-terminated string stored in the {@link XrControllerModelNodePropertiesMSFT#parentNodeName} field. */ - @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") - public String parentNodeNameString() { return XrControllerModelNodePropertiesMSFT.nparentNodeNameString(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrControllerModelNodePropertiesMSFT#nodeName} field. */ - @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") - public ByteBuffer nodeName() { return XrControllerModelNodePropertiesMSFT.nnodeName(address()); } - /** @return the null-terminated string stored in the {@link XrControllerModelNodePropertiesMSFT#nodeName} field. */ - @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") - public String nodeNameString() { return XrControllerModelNodePropertiesMSFT.nnodeNameString(address()); } - - /** Sets the specified value to the {@link XrControllerModelNodePropertiesMSFT#type} field. */ - public XrControllerModelNodePropertiesMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrControllerModelNodePropertiesMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT} value to the {@link XrControllerModelNodePropertiesMSFT#type} field. */ - public XrControllerModelNodePropertiesMSFT.Buffer type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT); } - /** Sets the specified value to the {@link XrControllerModelNodePropertiesMSFT#next} field. */ - public XrControllerModelNodePropertiesMSFT.Buffer next(@NativeType("void *") long value) { XrControllerModelNodePropertiesMSFT.nnext(address(), value); return this; } - /** Copies the specified encoded string to the {@link XrControllerModelNodePropertiesMSFT#parentNodeName} field. */ - public XrControllerModelNodePropertiesMSFT.Buffer parentNodeName(@NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") ByteBuffer value) { XrControllerModelNodePropertiesMSFT.nparentNodeName(address(), value); return this; } - /** Copies the specified encoded string to the {@link XrControllerModelNodePropertiesMSFT#nodeName} field. */ - public XrControllerModelNodePropertiesMSFT.Buffer nodeName(@NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") ByteBuffer value) { XrControllerModelNodePropertiesMSFT.nnodeName(address(), value); return this; } + + /** @return the value of the {@link XrControllerModelNodePropertiesMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrControllerModelNodePropertiesMSFT.ntype(address()); } + /** @return the value of the {@link XrControllerModelNodePropertiesMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrControllerModelNodePropertiesMSFT.nnext(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrControllerModelNodePropertiesMSFT#parentNodeName} field. */ + @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") + public ByteBuffer parentNodeName() { return XrControllerModelNodePropertiesMSFT.nparentNodeName(address()); } + /** @return the null-terminated string stored in the {@link XrControllerModelNodePropertiesMSFT#parentNodeName} field. */ + @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") + public String parentNodeNameString() { return XrControllerModelNodePropertiesMSFT.nparentNodeNameString(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrControllerModelNodePropertiesMSFT#nodeName} field. */ + @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") + public ByteBuffer nodeName() { return XrControllerModelNodePropertiesMSFT.nnodeName(address()); } + /** @return the null-terminated string stored in the {@link XrControllerModelNodePropertiesMSFT#nodeName} field. */ + @NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") + public String nodeNameString() { return XrControllerModelNodePropertiesMSFT.nnodeNameString(address()); } + + /** Sets the specified value to the {@link XrControllerModelNodePropertiesMSFT#type} field. */ + public XrControllerModelNodePropertiesMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrControllerModelNodePropertiesMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT} value to the {@link XrControllerModelNodePropertiesMSFT#type} field. */ + public XrControllerModelNodePropertiesMSFT.Buffer type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT); } + /** Sets the specified value to the {@link XrControllerModelNodePropertiesMSFT#next} field. */ + public XrControllerModelNodePropertiesMSFT.Buffer next(@NativeType("void *") long value) { XrControllerModelNodePropertiesMSFT.nnext(address(), value); return this; } + /** Copies the specified encoded string to the {@link XrControllerModelNodePropertiesMSFT#parentNodeName} field. */ + public XrControllerModelNodePropertiesMSFT.Buffer parentNodeName(@NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") ByteBuffer value) { XrControllerModelNodePropertiesMSFT.nparentNodeName(address(), value); return this; } + /** Copies the specified encoded string to the {@link XrControllerModelNodePropertiesMSFT#nodeName} field. */ + public XrControllerModelNodePropertiesMSFT.Buffer nodeName(@NativeType("char[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT]") ByteBuffer value) { XrControllerModelNodePropertiesMSFT.nnodeName(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelNodeStateMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelNodeStateMSFT.java index 407c8633f9..d80885eb8f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelNodeStateMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelNodeStateMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes the state of a node in a controller model. * @@ -29,7 +29,7 @@ *
                          *
                        • The {@link MSFTControllerModel XR_MSFT_controller_model} extension must be enabled prior to using {@link XrControllerModelNodeStateMSFT}
                        • *
                        • {@code type} must be {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT}
                        • - *
                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                        • + *
                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                        • *
                        * *
                        See Also
                        @@ -44,8 +44,8 @@ * void * {@link #next}; * {@link XrPosef XrPosef} {@link #nodePose}; * } - */ -public class XrControllerModelNodeStateMSFT extends Struct implements NativeResource { + */ +public class XrControllerModelNodeStateMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,24 +55,24 @@ public class XrControllerModelNodeStateMSFT extends Struct consumer) { consumer.accept(nodePose()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** an {@link XrPosef} of the node in its parent node space. */ + public XrPosef nodePose() { return nnodePose(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrControllerModelNodeStateMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT} value to the {@link #type} field. */ + public XrControllerModelNodeStateMSFT type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrControllerModelNodeStateMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #nodePose} field. */ + public XrControllerModelNodeStateMSFT nodePose(XrPosef value) { nnodePose(address(), value); return this; } + /** Passes the {@link #nodePose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrControllerModelNodeStateMSFT nodePose(java.util.function.Consumer consumer) { consumer.accept(nodePose()); return this; } /** Initializes this struct with the specified values. */ public XrControllerModelNodeStateMSFT set( - int type, - long next, + int type, + long next, XrPosef nodePose - ) { - type(type); - next(next); - nodePose(nodePose); + ) { + type(type); + next(next); + nodePose(nodePose); return this; } @@ -253,22 +253,22 @@ public static XrControllerModelNodeStateMSFT.Buffer calloc(int capacity, MemoryS } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelNodeStateMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrControllerModelNodeStateMSFT.NEXT); } - /** Unsafe version of {@link #nodePose}. */ - public static XrPosef nnodePose(long struct) { return XrPosef.create(struct + XrControllerModelNodeStateMSFT.NODEPOSE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelNodeStateMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrControllerModelNodeStateMSFT.NEXT, value); } - /** Unsafe version of {@link #nodePose(XrPosef) nodePose}. */ - public static void nnodePose(long struct, XrPosef value) { memCopy(value.address(), struct + XrControllerModelNodeStateMSFT.NODEPOSE, XrPosef.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelNodeStateMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrControllerModelNodeStateMSFT.NEXT); } + /** Unsafe version of {@link #nodePose}. */ + public static XrPosef nnodePose(long struct) { return XrPosef.create(struct + XrControllerModelNodeStateMSFT.NODEPOSE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelNodeStateMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrControllerModelNodeStateMSFT.NEXT, value); } + /** Unsafe version of {@link #nodePose(XrPosef) nodePose}. */ + public static void nnodePose(long struct, XrPosef value) { memCopy(value.address(), struct + XrControllerModelNodeStateMSFT.NODEPOSE, XrPosef.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrControllerModelNodeStateMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -305,26 +305,26 @@ protected Buffer self() { protected XrControllerModelNodeStateMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrControllerModelNodeStateMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrControllerModelNodeStateMSFT.ntype(address()); } - /** @return the value of the {@link XrControllerModelNodeStateMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrControllerModelNodeStateMSFT.nnext(address()); } - /** @return a {@link XrPosef} view of the {@link XrControllerModelNodeStateMSFT#nodePose} field. */ - public XrPosef nodePose() { return XrControllerModelNodeStateMSFT.nnodePose(address()); } - - /** Sets the specified value to the {@link XrControllerModelNodeStateMSFT#type} field. */ - public XrControllerModelNodeStateMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrControllerModelNodeStateMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT} value to the {@link XrControllerModelNodeStateMSFT#type} field. */ - public XrControllerModelNodeStateMSFT.Buffer type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT); } - /** Sets the specified value to the {@link XrControllerModelNodeStateMSFT#next} field. */ - public XrControllerModelNodeStateMSFT.Buffer next(@NativeType("void *") long value) { XrControllerModelNodeStateMSFT.nnext(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrControllerModelNodeStateMSFT#nodePose} field. */ - public XrControllerModelNodeStateMSFT.Buffer nodePose(XrPosef value) { XrControllerModelNodeStateMSFT.nnodePose(address(), value); return this; } - /** Passes the {@link XrControllerModelNodeStateMSFT#nodePose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrControllerModelNodeStateMSFT.Buffer nodePose(java.util.function.Consumer consumer) { consumer.accept(nodePose()); return this; } + + /** @return the value of the {@link XrControllerModelNodeStateMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrControllerModelNodeStateMSFT.ntype(address()); } + /** @return the value of the {@link XrControllerModelNodeStateMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrControllerModelNodeStateMSFT.nnext(address()); } + /** @return a {@link XrPosef} view of the {@link XrControllerModelNodeStateMSFT#nodePose} field. */ + public XrPosef nodePose() { return XrControllerModelNodeStateMSFT.nnodePose(address()); } + + /** Sets the specified value to the {@link XrControllerModelNodeStateMSFT#type} field. */ + public XrControllerModelNodeStateMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrControllerModelNodeStateMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT} value to the {@link XrControllerModelNodeStateMSFT#type} field. */ + public XrControllerModelNodeStateMSFT.Buffer type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_NODE_STATE_MSFT); } + /** Sets the specified value to the {@link XrControllerModelNodeStateMSFT#next} field. */ + public XrControllerModelNodeStateMSFT.Buffer next(@NativeType("void *") long value) { XrControllerModelNodeStateMSFT.nnext(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrControllerModelNodeStateMSFT#nodePose} field. */ + public XrControllerModelNodeStateMSFT.Buffer nodePose(XrPosef value) { XrControllerModelNodeStateMSFT.nnodePose(address(), value); return this; } + /** Passes the {@link XrControllerModelNodeStateMSFT#nodePose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrControllerModelNodeStateMSFT.Buffer nodePose(java.util.function.Consumer consumer) { consumer.accept(nodePose()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelPropertiesMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelPropertiesMSFT.java index 4674e43a1e..4d202719a4 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelPropertiesMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelPropertiesMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes the properties of a controller model. * @@ -23,7 +23,7 @@ *
                          *
                        • The {@link MSFTControllerModel XR_MSFT_controller_model} extension must be enabled prior to using {@link XrControllerModelPropertiesMSFT}
                        • *
                        • {@code type} must be {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT}
                        • - *
                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                        • + *
                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                        • *
                        • If {@code nodeCapacityInput} is not 0, {@code nodeProperties} must be a pointer to an array of {@code nodeCapacityInput} {@link XrControllerModelNodePropertiesMSFT} structures
                        • *
                        * @@ -41,8 +41,8 @@ * uint32_t {@link #nodeCountOutput}; * {@link XrControllerModelNodePropertiesMSFT XrControllerModelNodePropertiesMSFT} * {@link #nodeProperties}; * } - */ -public class XrControllerModelPropertiesMSFT extends Struct implements NativeResource { + */ +public class XrControllerModelPropertiesMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,30 +52,30 @@ public class XrControllerModelPropertiesMSFT extends Structcan be {@code NULL} if {@code nodeCapacityInput} is 0. */ - @Nullable - @NativeType("XrControllerModelNodePropertiesMSFT *") - public XrControllerModelNodePropertiesMSFT.Buffer nodeProperties() { return nnodeProperties(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrControllerModelPropertiesMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT} value to the {@link #type} field. */ - public XrControllerModelPropertiesMSFT type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrControllerModelPropertiesMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #nodeCapacityInput} field. */ - public XrControllerModelPropertiesMSFT nodeCapacityInput(@NativeType("uint32_t") int value) { nnodeCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #nodeCountOutput} field. */ - public XrControllerModelPropertiesMSFT nodeCountOutput(@NativeType("uint32_t") int value) { nnodeCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrControllerModelNodePropertiesMSFT.Buffer} to the {@link #nodeProperties} field. */ - public XrControllerModelPropertiesMSFT nodeProperties(@Nullable @NativeType("XrControllerModelNodePropertiesMSFT *") XrControllerModelNodePropertiesMSFT.Buffer value) { nnodeProperties(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the capacity of the {@code nodeProperties} array, or 0 to indicate a request to retrieve the required capacity. */ + @NativeType("uint32_t") + public int nodeCapacityInput() { return nnodeCapacityInput(address()); } + /** filled in by the runtime with the count of elements in {@code nodeProperties} array, or returns the required capacity in the case that {@code nodeCapacityInput} is insufficient. */ + @NativeType("uint32_t") + public int nodeCountOutput() { return nnodeCountOutput(address()); } + /** a pointer to an application-allocated array that will be filled with the {@link XrControllerModelNodePropertiesMSFT} values. It can be {@code NULL} if {@code nodeCapacityInput} is 0. */ + @Nullable + @NativeType("XrControllerModelNodePropertiesMSFT *") + public XrControllerModelNodePropertiesMSFT.Buffer nodeProperties() { return nnodeProperties(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrControllerModelPropertiesMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT} value to the {@link #type} field. */ + public XrControllerModelPropertiesMSFT type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrControllerModelPropertiesMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #nodeCapacityInput} field. */ + public XrControllerModelPropertiesMSFT nodeCapacityInput(@NativeType("uint32_t") int value) { nnodeCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #nodeCountOutput} field. */ + public XrControllerModelPropertiesMSFT nodeCountOutput(@NativeType("uint32_t") int value) { nnodeCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrControllerModelNodePropertiesMSFT.Buffer} to the {@link #nodeProperties} field. */ + public XrControllerModelPropertiesMSFT nodeProperties(@Nullable @NativeType("XrControllerModelNodePropertiesMSFT *") XrControllerModelNodePropertiesMSFT.Buffer value) { nnodeProperties(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrControllerModelPropertiesMSFT set( - int type, - long next, - int nodeCapacityInput, - int nodeCountOutput, + int type, + long next, + int nodeCapacityInput, + int nodeCountOutput, @Nullable XrControllerModelNodePropertiesMSFT.Buffer nodeProperties - ) { - type(type); - next(next); - nodeCapacityInput(nodeCapacityInput); - nodeCountOutput(nodeCountOutput); - nodeProperties(nodeProperties); + ) { + type(type); + next(next); + nodeCapacityInput(nodeCapacityInput); + nodeCountOutput(nodeCountOutput); + nodeProperties(nodeProperties); return this; } @@ -270,30 +270,30 @@ public static XrControllerModelPropertiesMSFT.Buffer calloc(int capacity, Memory } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelPropertiesMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrControllerModelPropertiesMSFT.NEXT); } - /** Unsafe version of {@link #nodeCapacityInput}. */ - public static int nnodeCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelPropertiesMSFT.NODECAPACITYINPUT); } - /** Unsafe version of {@link #nodeCountOutput}. */ - public static int nnodeCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelPropertiesMSFT.NODECOUNTOUTPUT); } - /** Unsafe version of {@link #nodeProperties}. */ - @Nullable public static XrControllerModelNodePropertiesMSFT.Buffer nnodeProperties(long struct) { return XrControllerModelNodePropertiesMSFT.createSafe(memGetAddress(struct + XrControllerModelPropertiesMSFT.NODEPROPERTIES), nnodeCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelPropertiesMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrControllerModelPropertiesMSFT.NEXT, value); } - /** Sets the specified value to the {@code nodeCapacityInput} field of the specified {@code struct}. */ - public static void nnodeCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelPropertiesMSFT.NODECAPACITYINPUT, value); } - /** Unsafe version of {@link #nodeCountOutput(int) nodeCountOutput}. */ - public static void nnodeCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelPropertiesMSFT.NODECOUNTOUTPUT, value); } - /** Unsafe version of {@link #nodeProperties(XrControllerModelNodePropertiesMSFT.Buffer) nodeProperties}. */ - public static void nnodeProperties(long struct, @Nullable XrControllerModelNodePropertiesMSFT.Buffer value) { memPutAddress(struct + XrControllerModelPropertiesMSFT.NODEPROPERTIES, memAddressSafe(value)); if (value != null) { nnodeCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelPropertiesMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrControllerModelPropertiesMSFT.NEXT); } + /** Unsafe version of {@link #nodeCapacityInput}. */ + public static int nnodeCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelPropertiesMSFT.NODECAPACITYINPUT); } + /** Unsafe version of {@link #nodeCountOutput}. */ + public static int nnodeCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelPropertiesMSFT.NODECOUNTOUTPUT); } + /** Unsafe version of {@link #nodeProperties}. */ + @Nullable public static XrControllerModelNodePropertiesMSFT.Buffer nnodeProperties(long struct) { return XrControllerModelNodePropertiesMSFT.createSafe(memGetAddress(struct + XrControllerModelPropertiesMSFT.NODEPROPERTIES), nnodeCapacityInput(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelPropertiesMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrControllerModelPropertiesMSFT.NEXT, value); } + /** Sets the specified value to the {@code nodeCapacityInput} field of the specified {@code struct}. */ + public static void nnodeCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelPropertiesMSFT.NODECAPACITYINPUT, value); } + /** Unsafe version of {@link #nodeCountOutput(int) nodeCountOutput}. */ + public static void nnodeCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelPropertiesMSFT.NODECOUNTOUTPUT, value); } + /** Unsafe version of {@link #nodeProperties(XrControllerModelNodePropertiesMSFT.Buffer) nodeProperties}. */ + public static void nnodeProperties(long struct, @Nullable XrControllerModelNodePropertiesMSFT.Buffer value) { memPutAddress(struct + XrControllerModelPropertiesMSFT.NODEPROPERTIES, memAddressSafe(value)); if (value != null) { nnodeCapacityInput(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrControllerModelPropertiesMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -330,36 +330,36 @@ protected Buffer self() { protected XrControllerModelPropertiesMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrControllerModelPropertiesMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrControllerModelPropertiesMSFT.ntype(address()); } - /** @return the value of the {@link XrControllerModelPropertiesMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrControllerModelPropertiesMSFT.nnext(address()); } - /** @return the value of the {@link XrControllerModelPropertiesMSFT#nodeCapacityInput} field. */ - @NativeType("uint32_t") - public int nodeCapacityInput() { return XrControllerModelPropertiesMSFT.nnodeCapacityInput(address()); } - /** @return the value of the {@link XrControllerModelPropertiesMSFT#nodeCountOutput} field. */ - @NativeType("uint32_t") - public int nodeCountOutput() { return XrControllerModelPropertiesMSFT.nnodeCountOutput(address()); } - /** @return a {@link XrControllerModelNodePropertiesMSFT.Buffer} view of the struct array pointed to by the {@link XrControllerModelPropertiesMSFT#nodeProperties} field. */ - @Nullable - @NativeType("XrControllerModelNodePropertiesMSFT *") - public XrControllerModelNodePropertiesMSFT.Buffer nodeProperties() { return XrControllerModelPropertiesMSFT.nnodeProperties(address()); } - - /** Sets the specified value to the {@link XrControllerModelPropertiesMSFT#type} field. */ - public XrControllerModelPropertiesMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrControllerModelPropertiesMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT} value to the {@link XrControllerModelPropertiesMSFT#type} field. */ - public XrControllerModelPropertiesMSFT.Buffer type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT); } - /** Sets the specified value to the {@link XrControllerModelPropertiesMSFT#next} field. */ - public XrControllerModelPropertiesMSFT.Buffer next(@NativeType("void *") long value) { XrControllerModelPropertiesMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrControllerModelPropertiesMSFT#nodeCapacityInput} field. */ - public XrControllerModelPropertiesMSFT.Buffer nodeCapacityInput(@NativeType("uint32_t") int value) { XrControllerModelPropertiesMSFT.nnodeCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrControllerModelPropertiesMSFT#nodeCountOutput} field. */ - public XrControllerModelPropertiesMSFT.Buffer nodeCountOutput(@NativeType("uint32_t") int value) { XrControllerModelPropertiesMSFT.nnodeCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrControllerModelNodePropertiesMSFT.Buffer} to the {@link XrControllerModelPropertiesMSFT#nodeProperties} field. */ - public XrControllerModelPropertiesMSFT.Buffer nodeProperties(@Nullable @NativeType("XrControllerModelNodePropertiesMSFT *") XrControllerModelNodePropertiesMSFT.Buffer value) { XrControllerModelPropertiesMSFT.nnodeProperties(address(), value); return this; } + + /** @return the value of the {@link XrControllerModelPropertiesMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrControllerModelPropertiesMSFT.ntype(address()); } + /** @return the value of the {@link XrControllerModelPropertiesMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrControllerModelPropertiesMSFT.nnext(address()); } + /** @return the value of the {@link XrControllerModelPropertiesMSFT#nodeCapacityInput} field. */ + @NativeType("uint32_t") + public int nodeCapacityInput() { return XrControllerModelPropertiesMSFT.nnodeCapacityInput(address()); } + /** @return the value of the {@link XrControllerModelPropertiesMSFT#nodeCountOutput} field. */ + @NativeType("uint32_t") + public int nodeCountOutput() { return XrControllerModelPropertiesMSFT.nnodeCountOutput(address()); } + /** @return a {@link XrControllerModelNodePropertiesMSFT.Buffer} view of the struct array pointed to by the {@link XrControllerModelPropertiesMSFT#nodeProperties} field. */ + @Nullable + @NativeType("XrControllerModelNodePropertiesMSFT *") + public XrControllerModelNodePropertiesMSFT.Buffer nodeProperties() { return XrControllerModelPropertiesMSFT.nnodeProperties(address()); } + + /** Sets the specified value to the {@link XrControllerModelPropertiesMSFT#type} field. */ + public XrControllerModelPropertiesMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrControllerModelPropertiesMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT} value to the {@link XrControllerModelPropertiesMSFT#type} field. */ + public XrControllerModelPropertiesMSFT.Buffer type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_PROPERTIES_MSFT); } + /** Sets the specified value to the {@link XrControllerModelPropertiesMSFT#next} field. */ + public XrControllerModelPropertiesMSFT.Buffer next(@NativeType("void *") long value) { XrControllerModelPropertiesMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrControllerModelPropertiesMSFT#nodeCapacityInput} field. */ + public XrControllerModelPropertiesMSFT.Buffer nodeCapacityInput(@NativeType("uint32_t") int value) { XrControllerModelPropertiesMSFT.nnodeCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrControllerModelPropertiesMSFT#nodeCountOutput} field. */ + public XrControllerModelPropertiesMSFT.Buffer nodeCountOutput(@NativeType("uint32_t") int value) { XrControllerModelPropertiesMSFT.nnodeCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrControllerModelNodePropertiesMSFT.Buffer} to the {@link XrControllerModelPropertiesMSFT#nodeProperties} field. */ + public XrControllerModelPropertiesMSFT.Buffer nodeProperties(@Nullable @NativeType("XrControllerModelNodePropertiesMSFT *") XrControllerModelNodePropertiesMSFT.Buffer value) { XrControllerModelPropertiesMSFT.nnodeProperties(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelStateMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelStateMSFT.java index 3d4a741dc4..8d94c09173 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelStateMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrControllerModelStateMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes the state of a controller model. * @@ -23,7 +23,7 @@ *
                          *
                        • The {@link MSFTControllerModel XR_MSFT_controller_model} extension must be enabled prior to using {@link XrControllerModelStateMSFT}
                        • *
                        • {@code type} must be {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_STATE_MSFT TYPE_CONTROLLER_MODEL_STATE_MSFT}
                        • - *
                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                        • + *
                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                        • *
                        • If {@code nodeCapacityInput} is not 0, {@code nodeStates} must be a pointer to an array of {@code nodeCapacityInput} {@link XrControllerModelNodeStateMSFT} structures
                        • *
                        * @@ -41,8 +41,8 @@ * uint32_t {@link #nodeCountOutput}; * {@link XrControllerModelNodeStateMSFT XrControllerModelNodeStateMSFT} * {@link #nodeStates}; * } - */ -public class XrControllerModelStateMSFT extends Struct implements NativeResource { + */ +public class XrControllerModelStateMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,30 +52,30 @@ public class XrControllerModelStateMSFT extends Structcan be {@code NULL} if {@code sourceCapacityInput} is 0. */ - @Nullable - @NativeType("XrControllerModelNodeStateMSFT *") - public XrControllerModelNodeStateMSFT.Buffer nodeStates() { return nnodeStates(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrControllerModelStateMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_STATE_MSFT TYPE_CONTROLLER_MODEL_STATE_MSFT} value to the {@link #type} field. */ - public XrControllerModelStateMSFT type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_STATE_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrControllerModelStateMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #nodeCapacityInput} field. */ - public XrControllerModelStateMSFT nodeCapacityInput(@NativeType("uint32_t") int value) { nnodeCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #nodeCountOutput} field. */ - public XrControllerModelStateMSFT nodeCountOutput(@NativeType("uint32_t") int value) { nnodeCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrControllerModelNodeStateMSFT.Buffer} to the {@link #nodeStates} field. */ - public XrControllerModelStateMSFT nodeStates(@Nullable @NativeType("XrControllerModelNodeStateMSFT *") XrControllerModelNodeStateMSFT.Buffer value) { nnodeStates(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the capacity of the {@code nodeStates} array, or 0 to indicate a request to retrieve the required capacity. */ + @NativeType("uint32_t") + public int nodeCapacityInput() { return nnodeCapacityInput(address()); } + /** filled in by the runtime with the count of elements in {@code nodeStates} array, or returns the required capacity in the case that {@code nodeCapacityInput} is insufficient. */ + @NativeType("uint32_t") + public int nodeCountOutput() { return nnodeCountOutput(address()); } + /** a pointer to an application-allocated array that will be filled with the {@link XrControllerModelNodeStateMSFT} values. It can be {@code NULL} if {@code sourceCapacityInput} is 0. */ + @Nullable + @NativeType("XrControllerModelNodeStateMSFT *") + public XrControllerModelNodeStateMSFT.Buffer nodeStates() { return nnodeStates(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrControllerModelStateMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_STATE_MSFT TYPE_CONTROLLER_MODEL_STATE_MSFT} value to the {@link #type} field. */ + public XrControllerModelStateMSFT type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_STATE_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrControllerModelStateMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #nodeCapacityInput} field. */ + public XrControllerModelStateMSFT nodeCapacityInput(@NativeType("uint32_t") int value) { nnodeCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #nodeCountOutput} field. */ + public XrControllerModelStateMSFT nodeCountOutput(@NativeType("uint32_t") int value) { nnodeCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrControllerModelNodeStateMSFT.Buffer} to the {@link #nodeStates} field. */ + public XrControllerModelStateMSFT nodeStates(@Nullable @NativeType("XrControllerModelNodeStateMSFT *") XrControllerModelNodeStateMSFT.Buffer value) { nnodeStates(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrControllerModelStateMSFT set( - int type, - long next, - int nodeCapacityInput, - int nodeCountOutput, + int type, + long next, + int nodeCapacityInput, + int nodeCountOutput, @Nullable XrControllerModelNodeStateMSFT.Buffer nodeStates - ) { - type(type); - next(next); - nodeCapacityInput(nodeCapacityInput); - nodeCountOutput(nodeCountOutput); - nodeStates(nodeStates); + ) { + type(type); + next(next); + nodeCapacityInput(nodeCapacityInput); + nodeCountOutput(nodeCountOutput); + nodeStates(nodeStates); return this; } @@ -270,30 +270,30 @@ public static XrControllerModelStateMSFT.Buffer calloc(int capacity, MemoryStack } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelStateMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrControllerModelStateMSFT.NEXT); } - /** Unsafe version of {@link #nodeCapacityInput}. */ - public static int nnodeCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelStateMSFT.NODECAPACITYINPUT); } - /** Unsafe version of {@link #nodeCountOutput}. */ - public static int nnodeCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelStateMSFT.NODECOUNTOUTPUT); } - /** Unsafe version of {@link #nodeStates}. */ - @Nullable public static XrControllerModelNodeStateMSFT.Buffer nnodeStates(long struct) { return XrControllerModelNodeStateMSFT.createSafe(memGetAddress(struct + XrControllerModelStateMSFT.NODESTATES), nnodeCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelStateMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrControllerModelStateMSFT.NEXT, value); } - /** Sets the specified value to the {@code nodeCapacityInput} field of the specified {@code struct}. */ - public static void nnodeCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelStateMSFT.NODECAPACITYINPUT, value); } - /** Unsafe version of {@link #nodeCountOutput(int) nodeCountOutput}. */ - public static void nnodeCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelStateMSFT.NODECOUNTOUTPUT, value); } - /** Unsafe version of {@link #nodeStates(XrControllerModelNodeStateMSFT.Buffer) nodeStates}. */ - public static void nnodeStates(long struct, @Nullable XrControllerModelNodeStateMSFT.Buffer value) { memPutAddress(struct + XrControllerModelStateMSFT.NODESTATES, memAddressSafe(value)); if (value != null) { nnodeCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelStateMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrControllerModelStateMSFT.NEXT); } + /** Unsafe version of {@link #nodeCapacityInput}. */ + public static int nnodeCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelStateMSFT.NODECAPACITYINPUT); } + /** Unsafe version of {@link #nodeCountOutput}. */ + public static int nnodeCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrControllerModelStateMSFT.NODECOUNTOUTPUT); } + /** Unsafe version of {@link #nodeStates}. */ + @Nullable public static XrControllerModelNodeStateMSFT.Buffer nnodeStates(long struct) { return XrControllerModelNodeStateMSFT.createSafe(memGetAddress(struct + XrControllerModelStateMSFT.NODESTATES), nnodeCapacityInput(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelStateMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrControllerModelStateMSFT.NEXT, value); } + /** Sets the specified value to the {@code nodeCapacityInput} field of the specified {@code struct}. */ + public static void nnodeCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelStateMSFT.NODECAPACITYINPUT, value); } + /** Unsafe version of {@link #nodeCountOutput(int) nodeCountOutput}. */ + public static void nnodeCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrControllerModelStateMSFT.NODECOUNTOUTPUT, value); } + /** Unsafe version of {@link #nodeStates(XrControllerModelNodeStateMSFT.Buffer) nodeStates}. */ + public static void nnodeStates(long struct, @Nullable XrControllerModelNodeStateMSFT.Buffer value) { memPutAddress(struct + XrControllerModelStateMSFT.NODESTATES, memAddressSafe(value)); if (value != null) { nnodeCapacityInput(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrControllerModelStateMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -330,36 +330,36 @@ protected Buffer self() { protected XrControllerModelStateMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrControllerModelStateMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrControllerModelStateMSFT.ntype(address()); } - /** @return the value of the {@link XrControllerModelStateMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrControllerModelStateMSFT.nnext(address()); } - /** @return the value of the {@link XrControllerModelStateMSFT#nodeCapacityInput} field. */ - @NativeType("uint32_t") - public int nodeCapacityInput() { return XrControllerModelStateMSFT.nnodeCapacityInput(address()); } - /** @return the value of the {@link XrControllerModelStateMSFT#nodeCountOutput} field. */ - @NativeType("uint32_t") - public int nodeCountOutput() { return XrControllerModelStateMSFT.nnodeCountOutput(address()); } - /** @return a {@link XrControllerModelNodeStateMSFT.Buffer} view of the struct array pointed to by the {@link XrControllerModelStateMSFT#nodeStates} field. */ - @Nullable - @NativeType("XrControllerModelNodeStateMSFT *") - public XrControllerModelNodeStateMSFT.Buffer nodeStates() { return XrControllerModelStateMSFT.nnodeStates(address()); } - - /** Sets the specified value to the {@link XrControllerModelStateMSFT#type} field. */ - public XrControllerModelStateMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrControllerModelStateMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_STATE_MSFT TYPE_CONTROLLER_MODEL_STATE_MSFT} value to the {@link XrControllerModelStateMSFT#type} field. */ - public XrControllerModelStateMSFT.Buffer type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_STATE_MSFT); } - /** Sets the specified value to the {@link XrControllerModelStateMSFT#next} field. */ - public XrControllerModelStateMSFT.Buffer next(@NativeType("void *") long value) { XrControllerModelStateMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrControllerModelStateMSFT#nodeCapacityInput} field. */ - public XrControllerModelStateMSFT.Buffer nodeCapacityInput(@NativeType("uint32_t") int value) { XrControllerModelStateMSFT.nnodeCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrControllerModelStateMSFT#nodeCountOutput} field. */ - public XrControllerModelStateMSFT.Buffer nodeCountOutput(@NativeType("uint32_t") int value) { XrControllerModelStateMSFT.nnodeCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrControllerModelNodeStateMSFT.Buffer} to the {@link XrControllerModelStateMSFT#nodeStates} field. */ - public XrControllerModelStateMSFT.Buffer nodeStates(@Nullable @NativeType("XrControllerModelNodeStateMSFT *") XrControllerModelNodeStateMSFT.Buffer value) { XrControllerModelStateMSFT.nnodeStates(address(), value); return this; } + + /** @return the value of the {@link XrControllerModelStateMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrControllerModelStateMSFT.ntype(address()); } + /** @return the value of the {@link XrControllerModelStateMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrControllerModelStateMSFT.nnext(address()); } + /** @return the value of the {@link XrControllerModelStateMSFT#nodeCapacityInput} field. */ + @NativeType("uint32_t") + public int nodeCapacityInput() { return XrControllerModelStateMSFT.nnodeCapacityInput(address()); } + /** @return the value of the {@link XrControllerModelStateMSFT#nodeCountOutput} field. */ + @NativeType("uint32_t") + public int nodeCountOutput() { return XrControllerModelStateMSFT.nnodeCountOutput(address()); } + /** @return a {@link XrControllerModelNodeStateMSFT.Buffer} view of the struct array pointed to by the {@link XrControllerModelStateMSFT#nodeStates} field. */ + @Nullable + @NativeType("XrControllerModelNodeStateMSFT *") + public XrControllerModelNodeStateMSFT.Buffer nodeStates() { return XrControllerModelStateMSFT.nnodeStates(address()); } + + /** Sets the specified value to the {@link XrControllerModelStateMSFT#type} field. */ + public XrControllerModelStateMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrControllerModelStateMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTControllerModel#XR_TYPE_CONTROLLER_MODEL_STATE_MSFT TYPE_CONTROLLER_MODEL_STATE_MSFT} value to the {@link XrControllerModelStateMSFT#type} field. */ + public XrControllerModelStateMSFT.Buffer type$Default() { return type(MSFTControllerModel.XR_TYPE_CONTROLLER_MODEL_STATE_MSFT); } + /** Sets the specified value to the {@link XrControllerModelStateMSFT#next} field. */ + public XrControllerModelStateMSFT.Buffer next(@NativeType("void *") long value) { XrControllerModelStateMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrControllerModelStateMSFT#nodeCapacityInput} field. */ + public XrControllerModelStateMSFT.Buffer nodeCapacityInput(@NativeType("uint32_t") int value) { XrControllerModelStateMSFT.nnodeCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrControllerModelStateMSFT#nodeCountOutput} field. */ + public XrControllerModelStateMSFT.Buffer nodeCountOutput(@NativeType("uint32_t") int value) { XrControllerModelStateMSFT.nnodeCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrControllerModelNodeStateMSFT.Buffer} to the {@link XrControllerModelStateMSFT#nodeStates} field. */ + public XrControllerModelStateMSFT.Buffer nodeStates(@Nullable @NativeType("XrControllerModelNodeStateMSFT *") XrControllerModelNodeStateMSFT.Buffer value) { XrControllerModelStateMSFT.nnodeStates(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCoordinateSpaceCreateInfoML.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCoordinateSpaceCreateInfoML.java index 812a1dfd95..d093abd804 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCoordinateSpaceCreateInfoML.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrCoordinateSpaceCreateInfoML.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Structure used to create an XrSpace from a cfuid. * @@ -27,7 +27,7 @@ *
                          *
                        • The {@link MLCompat XR_ML_compat} extension must be enabled prior to using {@link XrCoordinateSpaceCreateInfoML}
                        • *
                        • {@code type} must be {@link MLCompat#XR_TYPE_COORDINATE_SPACE_CREATE_INFO_ML TYPE_COORDINATE_SPACE_CREATE_INFO_ML}
                        • - *
                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                        • + *
                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                        • *
                        • {@code cfuid} must be a valid {@code MLCoordinateFrameUID} value
                        • *
                        * @@ -44,8 +44,8 @@ * {@link MLCoordinateFrameUID MLCoordinateFrameUID} {@link #cfuid}; * {@link XrPosef XrPosef} {@link #poseInCoordinateSpace}; * } - */ -public class XrCoordinateSpaceCreateInfoML extends Struct implements NativeResource { + */ +public class XrCoordinateSpaceCreateInfoML extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,27 +55,27 @@ public class XrCoordinateSpaceCreateInfoML extends Struct consumer) { consumer.accept(poseInCoordinateSpace()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the {@code MLCoordinateFrameUID} as generated by the non-OpenXR API in the Magic Leap SDK. */ + public MLCoordinateFrameUID cfuid() { return ncfuid(address()); } + /** an {@link XrPosef} defining the position and orientation of the new space’s origin within the natural reference frame of the {@code cfuid}. */ + public XrPosef poseInCoordinateSpace() { return nposeInCoordinateSpace(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrCoordinateSpaceCreateInfoML type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MLCompat#XR_TYPE_COORDINATE_SPACE_CREATE_INFO_ML TYPE_COORDINATE_SPACE_CREATE_INFO_ML} value to the {@link #type} field. */ + public XrCoordinateSpaceCreateInfoML type$Default() { return type(MLCompat.XR_TYPE_COORDINATE_SPACE_CREATE_INFO_ML); } + /** Sets the specified value to the {@link #next} field. */ + public XrCoordinateSpaceCreateInfoML next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link MLCoordinateFrameUID} to the {@link #cfuid} field. */ + public XrCoordinateSpaceCreateInfoML cfuid(MLCoordinateFrameUID value) { ncfuid(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #poseInCoordinateSpace} field. */ + public XrCoordinateSpaceCreateInfoML poseInCoordinateSpace(XrPosef value) { nposeInCoordinateSpace(address(), value); return this; } + /** Passes the {@link #poseInCoordinateSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCoordinateSpaceCreateInfoML poseInCoordinateSpace(java.util.function.Consumer consumer) { consumer.accept(poseInCoordinateSpace()); return this; } /** Initializes this struct with the specified values. */ public XrCoordinateSpaceCreateInfoML set( - int type, - long next, - MLCoordinateFrameUID cfuid, + int type, + long next, + MLCoordinateFrameUID cfuid, XrPosef poseInCoordinateSpace - ) { - type(type); - next(next); - cfuid(cfuid); - poseInCoordinateSpace(poseInCoordinateSpace); + ) { + type(type); + next(next); + cfuid(cfuid); + poseInCoordinateSpace(poseInCoordinateSpace); return this; } @@ -262,26 +262,26 @@ public static XrCoordinateSpaceCreateInfoML.Buffer calloc(int capacity, MemorySt } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCoordinateSpaceCreateInfoML.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrCoordinateSpaceCreateInfoML.NEXT); } - /** Unsafe version of {@link #cfuid}. */ - public static MLCoordinateFrameUID ncfuid(long struct) { return MLCoordinateFrameUID.create(struct + XrCoordinateSpaceCreateInfoML.CFUID); } - /** Unsafe version of {@link #poseInCoordinateSpace}. */ - public static XrPosef nposeInCoordinateSpace(long struct) { return XrPosef.create(struct + XrCoordinateSpaceCreateInfoML.POSEINCOORDINATESPACE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCoordinateSpaceCreateInfoML.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrCoordinateSpaceCreateInfoML.NEXT, value); } - /** Unsafe version of {@link #cfuid(MLCoordinateFrameUID) cfuid}. */ - public static void ncfuid(long struct, MLCoordinateFrameUID value) { memCopy(value.address(), struct + XrCoordinateSpaceCreateInfoML.CFUID, MLCoordinateFrameUID.SIZEOF); } - /** Unsafe version of {@link #poseInCoordinateSpace(XrPosef) poseInCoordinateSpace}. */ - public static void nposeInCoordinateSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrCoordinateSpaceCreateInfoML.POSEINCOORDINATESPACE, XrPosef.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrCoordinateSpaceCreateInfoML.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrCoordinateSpaceCreateInfoML.NEXT); } + /** Unsafe version of {@link #cfuid}. */ + public static MLCoordinateFrameUID ncfuid(long struct) { return MLCoordinateFrameUID.create(struct + XrCoordinateSpaceCreateInfoML.CFUID); } + /** Unsafe version of {@link #poseInCoordinateSpace}. */ + public static XrPosef nposeInCoordinateSpace(long struct) { return XrPosef.create(struct + XrCoordinateSpaceCreateInfoML.POSEINCOORDINATESPACE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrCoordinateSpaceCreateInfoML.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrCoordinateSpaceCreateInfoML.NEXT, value); } + /** Unsafe version of {@link #cfuid(MLCoordinateFrameUID) cfuid}. */ + public static void ncfuid(long struct, MLCoordinateFrameUID value) { memCopy(value.address(), struct + XrCoordinateSpaceCreateInfoML.CFUID, MLCoordinateFrameUID.SIZEOF); } + /** Unsafe version of {@link #poseInCoordinateSpace(XrPosef) poseInCoordinateSpace}. */ + public static void nposeInCoordinateSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrCoordinateSpaceCreateInfoML.POSEINCOORDINATESPACE, XrPosef.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrCoordinateSpaceCreateInfoML} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -318,30 +318,30 @@ protected Buffer self() { protected XrCoordinateSpaceCreateInfoML getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrCoordinateSpaceCreateInfoML#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrCoordinateSpaceCreateInfoML.ntype(address()); } - /** @return the value of the {@link XrCoordinateSpaceCreateInfoML#next} field. */ - @NativeType("void const *") - public long next() { return XrCoordinateSpaceCreateInfoML.nnext(address()); } - /** @return a {@link MLCoordinateFrameUID} view of the {@link XrCoordinateSpaceCreateInfoML#cfuid} field. */ - public MLCoordinateFrameUID cfuid() { return XrCoordinateSpaceCreateInfoML.ncfuid(address()); } - /** @return a {@link XrPosef} view of the {@link XrCoordinateSpaceCreateInfoML#poseInCoordinateSpace} field. */ - public XrPosef poseInCoordinateSpace() { return XrCoordinateSpaceCreateInfoML.nposeInCoordinateSpace(address()); } - - /** Sets the specified value to the {@link XrCoordinateSpaceCreateInfoML#type} field. */ - public XrCoordinateSpaceCreateInfoML.Buffer type(@NativeType("XrStructureType") int value) { XrCoordinateSpaceCreateInfoML.ntype(address(), value); return this; } - /** Sets the {@link MLCompat#XR_TYPE_COORDINATE_SPACE_CREATE_INFO_ML TYPE_COORDINATE_SPACE_CREATE_INFO_ML} value to the {@link XrCoordinateSpaceCreateInfoML#type} field. */ - public XrCoordinateSpaceCreateInfoML.Buffer type$Default() { return type(MLCompat.XR_TYPE_COORDINATE_SPACE_CREATE_INFO_ML); } - /** Sets the specified value to the {@link XrCoordinateSpaceCreateInfoML#next} field. */ - public XrCoordinateSpaceCreateInfoML.Buffer next(@NativeType("void const *") long value) { XrCoordinateSpaceCreateInfoML.nnext(address(), value); return this; } - /** Copies the specified {@link MLCoordinateFrameUID} to the {@link XrCoordinateSpaceCreateInfoML#cfuid} field. */ - public XrCoordinateSpaceCreateInfoML.Buffer cfuid(MLCoordinateFrameUID value) { XrCoordinateSpaceCreateInfoML.ncfuid(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrCoordinateSpaceCreateInfoML#poseInCoordinateSpace} field. */ - public XrCoordinateSpaceCreateInfoML.Buffer poseInCoordinateSpace(XrPosef value) { XrCoordinateSpaceCreateInfoML.nposeInCoordinateSpace(address(), value); return this; } - /** Passes the {@link XrCoordinateSpaceCreateInfoML#poseInCoordinateSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrCoordinateSpaceCreateInfoML.Buffer poseInCoordinateSpace(java.util.function.Consumer consumer) { consumer.accept(poseInCoordinateSpace()); return this; } + + /** @return the value of the {@link XrCoordinateSpaceCreateInfoML#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrCoordinateSpaceCreateInfoML.ntype(address()); } + /** @return the value of the {@link XrCoordinateSpaceCreateInfoML#next} field. */ + @NativeType("void const *") + public long next() { return XrCoordinateSpaceCreateInfoML.nnext(address()); } + /** @return a {@link MLCoordinateFrameUID} view of the {@link XrCoordinateSpaceCreateInfoML#cfuid} field. */ + public MLCoordinateFrameUID cfuid() { return XrCoordinateSpaceCreateInfoML.ncfuid(address()); } + /** @return a {@link XrPosef} view of the {@link XrCoordinateSpaceCreateInfoML#poseInCoordinateSpace} field. */ + public XrPosef poseInCoordinateSpace() { return XrCoordinateSpaceCreateInfoML.nposeInCoordinateSpace(address()); } + + /** Sets the specified value to the {@link XrCoordinateSpaceCreateInfoML#type} field. */ + public XrCoordinateSpaceCreateInfoML.Buffer type(@NativeType("XrStructureType") int value) { XrCoordinateSpaceCreateInfoML.ntype(address(), value); return this; } + /** Sets the {@link MLCompat#XR_TYPE_COORDINATE_SPACE_CREATE_INFO_ML TYPE_COORDINATE_SPACE_CREATE_INFO_ML} value to the {@link XrCoordinateSpaceCreateInfoML#type} field. */ + public XrCoordinateSpaceCreateInfoML.Buffer type$Default() { return type(MLCompat.XR_TYPE_COORDINATE_SPACE_CREATE_INFO_ML); } + /** Sets the specified value to the {@link XrCoordinateSpaceCreateInfoML#next} field. */ + public XrCoordinateSpaceCreateInfoML.Buffer next(@NativeType("void const *") long value) { XrCoordinateSpaceCreateInfoML.nnext(address(), value); return this; } + /** Copies the specified {@link MLCoordinateFrameUID} to the {@link XrCoordinateSpaceCreateInfoML#cfuid} field. */ + public XrCoordinateSpaceCreateInfoML.Buffer cfuid(MLCoordinateFrameUID value) { XrCoordinateSpaceCreateInfoML.ncfuid(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrCoordinateSpaceCreateInfoML#poseInCoordinateSpace} field. */ + public XrCoordinateSpaceCreateInfoML.Buffer poseInCoordinateSpace(XrPosef value) { XrCoordinateSpaceCreateInfoML.nposeInCoordinateSpace(address(), value); return this; } + /** Passes the {@link XrCoordinateSpaceCreateInfoML#poseInCoordinateSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrCoordinateSpaceCreateInfoML.Buffer poseInCoordinateSpace(java.util.function.Consumer consumer) { consumer.accept(poseInCoordinateSpace()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsLabelEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsLabelEXT.java index 10616bdddc..b6786349e7 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsLabelEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsLabelEXT.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Debug Utils Label. * @@ -24,7 +24,7 @@ *
                          *
                        • The {@link EXTDebugUtils XR_EXT_debug_utils} extension must be enabled prior to using {@link XrDebugUtilsLabelEXT}
                        • *
                        • {@code type} must be {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_LABEL_EXT TYPE_DEBUG_UTILS_LABEL_EXT}
                        • - *
                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                        • + *
                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                        • *
                        • {@code labelName} must be a null-terminated UTF-8 string
                        • *
                        * @@ -40,8 +40,8 @@ * void const * {@link #next}; * char const * {@link #labelName}; * } - */ -public class XrDebugUtilsLabelEXT extends Struct implements NativeResource { + */ +public class XrDebugUtilsLabelEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,24 +51,24 @@ public class XrDebugUtilsLabelEXT extends Struct implement /** The struct member offsets. */ public static final int - TYPE, - NEXT, - LABELNAME; + TYPE, + NEXT, + LABELNAME; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - LABELNAME = layout.offsetof(2); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + LABELNAME = layout.offsetof(2); + } protected XrDebugUtilsLabelEXT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -91,38 +91,38 @@ public XrDebugUtilsLabelEXT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** a {@code NULL} terminated UTF-8 string specifying the label name. */ - @NativeType("char const *") - public ByteBuffer labelName() { return nlabelName(address()); } - /** a {@code NULL} terminated UTF-8 string specifying the label name. */ - @NativeType("char const *") - public String labelNameString() { return nlabelNameString(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrDebugUtilsLabelEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_LABEL_EXT TYPE_DEBUG_UTILS_LABEL_EXT} value to the {@link #type} field. */ - public XrDebugUtilsLabelEXT type$Default() { return type(EXTDebugUtils.XR_TYPE_DEBUG_UTILS_LABEL_EXT); } - /** Sets the specified value to the {@link #next} field. */ - public XrDebugUtilsLabelEXT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the address of the specified encoded string to the {@link #labelName} field. */ - public XrDebugUtilsLabelEXT labelName(@NativeType("char const *") ByteBuffer value) { nlabelName(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** a {@code NULL} terminated UTF-8 string specifying the label name. */ + @NativeType("char const *") + public ByteBuffer labelName() { return nlabelName(address()); } + /** a {@code NULL} terminated UTF-8 string specifying the label name. */ + @NativeType("char const *") + public String labelNameString() { return nlabelNameString(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrDebugUtilsLabelEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_LABEL_EXT TYPE_DEBUG_UTILS_LABEL_EXT} value to the {@link #type} field. */ + public XrDebugUtilsLabelEXT type$Default() { return type(EXTDebugUtils.XR_TYPE_DEBUG_UTILS_LABEL_EXT); } + /** Sets the specified value to the {@link #next} field. */ + public XrDebugUtilsLabelEXT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the address of the specified encoded string to the {@link #labelName} field. */ + public XrDebugUtilsLabelEXT labelName(@NativeType("char const *") ByteBuffer value) { nlabelName(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrDebugUtilsLabelEXT set( - int type, - long next, + int type, + long next, ByteBuffer labelName - ) { - type(type); - next(next); - labelName(labelName); + ) { + type(type); + next(next); + labelName(labelName); return this; } @@ -251,25 +251,25 @@ public static XrDebugUtilsLabelEXT.Buffer calloc(int capacity, MemoryStack stack } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrDebugUtilsLabelEXT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrDebugUtilsLabelEXT.NEXT); } - /** Unsafe version of {@link #labelName}. */ - public static ByteBuffer nlabelName(long struct) { return memByteBufferNT1(memGetAddress(struct + XrDebugUtilsLabelEXT.LABELNAME)); } - /** Unsafe version of {@link #labelNameString}. */ - public static String nlabelNameString(long struct) { return memUTF8(memGetAddress(struct + XrDebugUtilsLabelEXT.LABELNAME)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrDebugUtilsLabelEXT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrDebugUtilsLabelEXT.NEXT, value); } - /** Unsafe version of {@link #labelName(ByteBuffer) labelName}. */ - public static void nlabelName(long struct, ByteBuffer value) { - if (CHECKS) { checkNT1(value); } - memPutAddress(struct + XrDebugUtilsLabelEXT.LABELNAME, memAddress(value)); - } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrDebugUtilsLabelEXT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrDebugUtilsLabelEXT.NEXT); } + /** Unsafe version of {@link #labelName}. */ + public static ByteBuffer nlabelName(long struct) { return memByteBufferNT1(memGetAddress(struct + XrDebugUtilsLabelEXT.LABELNAME)); } + /** Unsafe version of {@link #labelNameString}. */ + public static String nlabelNameString(long struct) { return memUTF8(memGetAddress(struct + XrDebugUtilsLabelEXT.LABELNAME)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrDebugUtilsLabelEXT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrDebugUtilsLabelEXT.NEXT, value); } + /** Unsafe version of {@link #labelName(ByteBuffer) labelName}. */ + public static void nlabelName(long struct, ByteBuffer value) { + if (CHECKS) { checkNT1(value); } + memPutAddress(struct + XrDebugUtilsLabelEXT.LABELNAME, memAddress(value)); + } /** * Validates pointer members that should not be {@code NULL}. @@ -278,9 +278,9 @@ public static void nlabelName(long struct, ByteBuffer value) { */ public static void validate(long struct) { check(memGetAddress(struct + XrDebugUtilsLabelEXT.LABELNAME)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrDebugUtilsLabelEXT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -317,28 +317,28 @@ protected Buffer self() { protected XrDebugUtilsLabelEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrDebugUtilsLabelEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrDebugUtilsLabelEXT.ntype(address()); } - /** @return the value of the {@link XrDebugUtilsLabelEXT#next} field. */ - @NativeType("void const *") - public long next() { return XrDebugUtilsLabelEXT.nnext(address()); } - /** @return a {@link ByteBuffer} view of the null-terminated string pointed to by the {@link XrDebugUtilsLabelEXT#labelName} field. */ - @NativeType("char const *") - public ByteBuffer labelName() { return XrDebugUtilsLabelEXT.nlabelName(address()); } - /** @return the null-terminated string pointed to by the {@link XrDebugUtilsLabelEXT#labelName} field. */ - @NativeType("char const *") - public String labelNameString() { return XrDebugUtilsLabelEXT.nlabelNameString(address()); } - - /** Sets the specified value to the {@link XrDebugUtilsLabelEXT#type} field. */ - public XrDebugUtilsLabelEXT.Buffer type(@NativeType("XrStructureType") int value) { XrDebugUtilsLabelEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_LABEL_EXT TYPE_DEBUG_UTILS_LABEL_EXT} value to the {@link XrDebugUtilsLabelEXT#type} field. */ - public XrDebugUtilsLabelEXT.Buffer type$Default() { return type(EXTDebugUtils.XR_TYPE_DEBUG_UTILS_LABEL_EXT); } - /** Sets the specified value to the {@link XrDebugUtilsLabelEXT#next} field. */ - public XrDebugUtilsLabelEXT.Buffer next(@NativeType("void const *") long value) { XrDebugUtilsLabelEXT.nnext(address(), value); return this; } - /** Sets the address of the specified encoded string to the {@link XrDebugUtilsLabelEXT#labelName} field. */ - public XrDebugUtilsLabelEXT.Buffer labelName(@NativeType("char const *") ByteBuffer value) { XrDebugUtilsLabelEXT.nlabelName(address(), value); return this; } + + /** @return the value of the {@link XrDebugUtilsLabelEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrDebugUtilsLabelEXT.ntype(address()); } + /** @return the value of the {@link XrDebugUtilsLabelEXT#next} field. */ + @NativeType("void const *") + public long next() { return XrDebugUtilsLabelEXT.nnext(address()); } + /** @return a {@link ByteBuffer} view of the null-terminated string pointed to by the {@link XrDebugUtilsLabelEXT#labelName} field. */ + @NativeType("char const *") + public ByteBuffer labelName() { return XrDebugUtilsLabelEXT.nlabelName(address()); } + /** @return the null-terminated string pointed to by the {@link XrDebugUtilsLabelEXT#labelName} field. */ + @NativeType("char const *") + public String labelNameString() { return XrDebugUtilsLabelEXT.nlabelNameString(address()); } + + /** Sets the specified value to the {@link XrDebugUtilsLabelEXT#type} field. */ + public XrDebugUtilsLabelEXT.Buffer type(@NativeType("XrStructureType") int value) { XrDebugUtilsLabelEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_LABEL_EXT TYPE_DEBUG_UTILS_LABEL_EXT} value to the {@link XrDebugUtilsLabelEXT#type} field. */ + public XrDebugUtilsLabelEXT.Buffer type$Default() { return type(EXTDebugUtils.XR_TYPE_DEBUG_UTILS_LABEL_EXT); } + /** Sets the specified value to the {@link XrDebugUtilsLabelEXT#next} field. */ + public XrDebugUtilsLabelEXT.Buffer next(@NativeType("void const *") long value) { XrDebugUtilsLabelEXT.nnext(address(), value); return this; } + /** Sets the address of the specified encoded string to the {@link XrDebugUtilsLabelEXT#labelName} field. */ + public XrDebugUtilsLabelEXT.Buffer labelName(@NativeType("char const *") ByteBuffer value) { XrDebugUtilsLabelEXT.nlabelName(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCallbackDataEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCallbackDataEXT.java index 97da754697..6f65c1088d 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCallbackDataEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCallbackDataEXT.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Debug utils messenger callback data. * @@ -24,7 +24,7 @@ *
                          *
                        • The {@link EXTDebugUtils XR_EXT_debug_utils} extension must be enabled prior to using {@link XrDebugUtilsMessengerCallbackDataEXT}
                        • *
                        • {@code type} must be {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT}
                        • - *
                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                        • + *
                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                        • *
                        • {@code messageId} must be a null-terminated UTF-8 string
                        • *
                        • {@code functionName} must be a null-terminated UTF-8 string
                        • *
                        • {@code message} must be a null-terminated UTF-8 string
                        • @@ -57,8 +57,8 @@ * uint32_t {@link #sessionLabelCount}; * {@link XrDebugUtilsLabelEXT XrDebugUtilsLabelEXT} * {@link #sessionLabels}; * } - */ -public class XrDebugUtilsMessengerCallbackDataEXT extends Struct implements NativeResource { + */ +public class XrDebugUtilsMessengerCallbackDataEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -68,42 +68,42 @@ public class XrDebugUtilsMessengerCallbackDataEXT extends Structmay be {@code NULL} if no unique message identifier is associated with the message. */ - @NativeType("char const *") - public ByteBuffer messageId() { return nmessageId(address()); } - /** a {@code NULL} terminated string that identifies the message in a unique way. If the callback is triggered by a validation layer, this string corresponds the Valid Usage ID (VUID) that can be used to jump to the appropriate location in the OpenXR specification. This value may be {@code NULL} if no unique message identifier is associated with the message. */ - @NativeType("char const *") - public String messageIdString() { return nmessageIdString(address()); } - /** a {@code NULL} terminated string that identifies the OpenXR function that was executing at the time the message callback was triggered. This value may be {@code NULL} in cases where it is difficult to determine the originating OpenXR function. */ - @NativeType("char const *") - public ByteBuffer functionName() { return nfunctionName(address()); } - /** a {@code NULL} terminated string that identifies the OpenXR function that was executing at the time the message callback was triggered. This value may be {@code NULL} in cases where it is difficult to determine the originating OpenXR function. */ - @NativeType("char const *") - public String functionNameString() { return nfunctionNameString(address()); } - /** a {@code NULL} terminated string detailing the trigger conditions. */ - @NativeType("char const *") - public ByteBuffer message() { return nmessage(address()); } - /** a {@code NULL} terminated string detailing the trigger conditions. */ - @NativeType("char const *") - public String messageString() { return nmessageString(address()); } - /** a count of items contained in the {@code objects} array. This may be 0. */ - @NativeType("uint32_t") - public int objectCount() { return nobjectCount(address()); } - /** {@code NULL} or a pointer to an array of {@link XrDebugUtilsObjectNameInfoEXT} objects related to the detected issue. The array is roughly in order of importance, but the 0th element is always guaranteed to be the most important object for this message. */ - @Nullable - @NativeType("XrDebugUtilsObjectNameInfoEXT *") - public XrDebugUtilsObjectNameInfoEXT.Buffer objects() { return nobjects(address()); } - /** a count of items contained in the {@code sessionLabels} array. This may be 0. */ - @NativeType("uint32_t") - public int sessionLabelCount() { return nsessionLabelCount(address()); } - /** {@code NULL} or a pointer to an array of {@link XrDebugUtilsLabelEXT} active in the current {@code XrSession} at the time the callback was triggered. Refer to Session Labels for more information. */ - @Nullable - @NativeType("XrDebugUtilsLabelEXT *") - public XrDebugUtilsLabelEXT.Buffer sessionLabels() { return nsessionLabels(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrDebugUtilsMessengerCallbackDataEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT} value to the {@link #type} field. */ - public XrDebugUtilsMessengerCallbackDataEXT type$Default() { return type(EXTDebugUtils.XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT); } - /** Sets the specified value to the {@link #next} field. */ - public XrDebugUtilsMessengerCallbackDataEXT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the address of the specified encoded string to the {@link #messageId} field. */ - public XrDebugUtilsMessengerCallbackDataEXT messageId(@NativeType("char const *") ByteBuffer value) { nmessageId(address(), value); return this; } - /** Sets the address of the specified encoded string to the {@link #functionName} field. */ - public XrDebugUtilsMessengerCallbackDataEXT functionName(@NativeType("char const *") ByteBuffer value) { nfunctionName(address(), value); return this; } - /** Sets the address of the specified encoded string to the {@link #message} field. */ - public XrDebugUtilsMessengerCallbackDataEXT message(@NativeType("char const *") ByteBuffer value) { nmessage(address(), value); return this; } - /** Sets the specified value to the {@link #objectCount} field. */ - public XrDebugUtilsMessengerCallbackDataEXT objectCount(@NativeType("uint32_t") int value) { nobjectCount(address(), value); return this; } - /** Sets the address of the specified {@link XrDebugUtilsObjectNameInfoEXT.Buffer} to the {@link #objects} field. */ - public XrDebugUtilsMessengerCallbackDataEXT objects(@Nullable @NativeType("XrDebugUtilsObjectNameInfoEXT *") XrDebugUtilsObjectNameInfoEXT.Buffer value) { nobjects(address(), value); return this; } - /** Sets the specified value to the {@link #sessionLabelCount} field. */ - public XrDebugUtilsMessengerCallbackDataEXT sessionLabelCount(@NativeType("uint32_t") int value) { nsessionLabelCount(address(), value); return this; } - /** Sets the address of the specified {@link XrDebugUtilsLabelEXT.Buffer} to the {@link #sessionLabels} field. */ - public XrDebugUtilsMessengerCallbackDataEXT sessionLabels(@Nullable @NativeType("XrDebugUtilsLabelEXT *") XrDebugUtilsLabelEXT.Buffer value) { nsessionLabels(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** a {@code NULL} terminated string that identifies the message in a unique way. If the callback is triggered by a validation layer, this string corresponds the Valid Usage ID (VUID) that can be used to jump to the appropriate location in the OpenXR specification. This value may be {@code NULL} if no unique message identifier is associated with the message. */ + @NativeType("char const *") + public ByteBuffer messageId() { return nmessageId(address()); } + /** a {@code NULL} terminated string that identifies the message in a unique way. If the callback is triggered by a validation layer, this string corresponds the Valid Usage ID (VUID) that can be used to jump to the appropriate location in the OpenXR specification. This value may be {@code NULL} if no unique message identifier is associated with the message. */ + @NativeType("char const *") + public String messageIdString() { return nmessageIdString(address()); } + /** a {@code NULL} terminated string that identifies the OpenXR function that was executing at the time the message callback was triggered. This value may be {@code NULL} in cases where it is difficult to determine the originating OpenXR function. */ + @NativeType("char const *") + public ByteBuffer functionName() { return nfunctionName(address()); } + /** a {@code NULL} terminated string that identifies the OpenXR function that was executing at the time the message callback was triggered. This value may be {@code NULL} in cases where it is difficult to determine the originating OpenXR function. */ + @NativeType("char const *") + public String functionNameString() { return nfunctionNameString(address()); } + /** a {@code NULL} terminated string detailing the trigger conditions. */ + @NativeType("char const *") + public ByteBuffer message() { return nmessage(address()); } + /** a {@code NULL} terminated string detailing the trigger conditions. */ + @NativeType("char const *") + public String messageString() { return nmessageString(address()); } + /** a count of items contained in the {@code objects} array. This may be 0. */ + @NativeType("uint32_t") + public int objectCount() { return nobjectCount(address()); } + /** a pointer to an array of {@link XrDebugUtilsObjectNameInfoEXT} objects related to the detected issue. The array is roughly in order or importance, but the 0th element is always guaranteed to be the most important object for this message. */ + @Nullable + @NativeType("XrDebugUtilsObjectNameInfoEXT *") + public XrDebugUtilsObjectNameInfoEXT.Buffer objects() { return nobjects(address()); } + /** a count of items contained in the {@code sessionLabels} array. This may be 0. */ + @NativeType("uint32_t") + public int sessionLabelCount() { return nsessionLabelCount(address()); } + /** + * a pointer to an array of {@link XrDebugUtilsLabelEXT} objects related to the detected issue. The array is roughly in order or importance, but the 0th element is always guaranteed to be the most important object for this message. + * + *

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

                          + */ + @Nullable + @NativeType("XrDebugUtilsLabelEXT *") + public XrDebugUtilsLabelEXT.Buffer sessionLabels() { return nsessionLabels(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrDebugUtilsMessengerCallbackDataEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT} value to the {@link #type} field. */ + public XrDebugUtilsMessengerCallbackDataEXT type$Default() { return type(EXTDebugUtils.XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT); } + /** Sets the specified value to the {@link #next} field. */ + public XrDebugUtilsMessengerCallbackDataEXT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the address of the specified encoded string to the {@link #messageId} field. */ + public XrDebugUtilsMessengerCallbackDataEXT messageId(@NativeType("char const *") ByteBuffer value) { nmessageId(address(), value); return this; } + /** Sets the address of the specified encoded string to the {@link #functionName} field. */ + public XrDebugUtilsMessengerCallbackDataEXT functionName(@NativeType("char const *") ByteBuffer value) { nfunctionName(address(), value); return this; } + /** Sets the address of the specified encoded string to the {@link #message} field. */ + public XrDebugUtilsMessengerCallbackDataEXT message(@NativeType("char const *") ByteBuffer value) { nmessage(address(), value); return this; } + /** Sets the specified value to the {@link #objectCount} field. */ + public XrDebugUtilsMessengerCallbackDataEXT objectCount(@NativeType("uint32_t") int value) { nobjectCount(address(), value); return this; } + /** Sets the address of the specified {@link XrDebugUtilsObjectNameInfoEXT.Buffer} to the {@link #objects} field. */ + public XrDebugUtilsMessengerCallbackDataEXT objects(@Nullable @NativeType("XrDebugUtilsObjectNameInfoEXT *") XrDebugUtilsObjectNameInfoEXT.Buffer value) { nobjects(address(), value); return this; } + /** Sets the specified value to the {@link #sessionLabelCount} field. */ + public XrDebugUtilsMessengerCallbackDataEXT sessionLabelCount(@NativeType("uint32_t") int value) { nsessionLabelCount(address(), value); return this; } + /** Sets the address of the specified {@link XrDebugUtilsLabelEXT.Buffer} to the {@link #sessionLabels} field. */ + public XrDebugUtilsMessengerCallbackDataEXT sessionLabels(@Nullable @NativeType("XrDebugUtilsLabelEXT *") XrDebugUtilsLabelEXT.Buffer value) { nsessionLabels(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrDebugUtilsMessengerCallbackDataEXT set( - int type, - long next, - ByteBuffer messageId, - ByteBuffer functionName, - ByteBuffer message, - int objectCount, - @Nullable XrDebugUtilsObjectNameInfoEXT.Buffer objects, - int sessionLabelCount, + int type, + long next, + ByteBuffer messageId, + ByteBuffer functionName, + ByteBuffer message, + int objectCount, + @Nullable XrDebugUtilsObjectNameInfoEXT.Buffer objects, + int sessionLabelCount, @Nullable XrDebugUtilsLabelEXT.Buffer sessionLabels - ) { - type(type); - next(next); - messageId(messageId); - functionName(functionName); - message(message); - objectCount(objectCount); - objects(objects); - sessionLabelCount(sessionLabelCount); - sessionLabels(sessionLabels); + ) { + type(type); + next(next); + messageId(messageId); + functionName(functionName); + message(message); + objectCount(objectCount); + objects(objects); + sessionLabelCount(sessionLabelCount); + sessionLabels(sessionLabels); return this; } @@ -336,59 +340,59 @@ public static XrDebugUtilsMessengerCallbackDataEXT.Buffer calloc(int capacity, M } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrDebugUtilsMessengerCallbackDataEXT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.NEXT); } - /** Unsafe version of {@link #messageId}. */ - public static ByteBuffer nmessageId(long struct) { return memByteBufferNT1(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGEID)); } - /** Unsafe version of {@link #messageIdString}. */ - public static String nmessageIdString(long struct) { return memUTF8(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGEID)); } - /** Unsafe version of {@link #functionName}. */ - public static ByteBuffer nfunctionName(long struct) { return memByteBufferNT1(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.FUNCTIONNAME)); } - /** Unsafe version of {@link #functionNameString}. */ - public static String nfunctionNameString(long struct) { return memUTF8(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.FUNCTIONNAME)); } - /** Unsafe version of {@link #message}. */ - public static ByteBuffer nmessage(long struct) { return memByteBufferNT1(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGE)); } - /** Unsafe version of {@link #messageString}. */ - public static String nmessageString(long struct) { return memUTF8(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGE)); } - /** Unsafe version of {@link #objectCount}. */ - public static int nobjectCount(long struct) { return UNSAFE.getInt(null, struct + XrDebugUtilsMessengerCallbackDataEXT.OBJECTCOUNT); } - /** Unsafe version of {@link #objects}. */ - @Nullable public static XrDebugUtilsObjectNameInfoEXT.Buffer nobjects(long struct) { return XrDebugUtilsObjectNameInfoEXT.createSafe(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.OBJECTS), nobjectCount(struct)); } - /** Unsafe version of {@link #sessionLabelCount}. */ - public static int nsessionLabelCount(long struct) { return UNSAFE.getInt(null, struct + XrDebugUtilsMessengerCallbackDataEXT.SESSIONLABELCOUNT); } - /** Unsafe version of {@link #sessionLabels}. */ - @Nullable public static XrDebugUtilsLabelEXT.Buffer nsessionLabels(long struct) { return XrDebugUtilsLabelEXT.createSafe(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.SESSIONLABELS), nsessionLabelCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrDebugUtilsMessengerCallbackDataEXT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.NEXT, value); } - /** Unsafe version of {@link #messageId(ByteBuffer) messageId}. */ - public static void nmessageId(long struct, ByteBuffer value) { - if (CHECKS) { checkNT1(value); } - memPutAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGEID, memAddress(value)); - } - /** Unsafe version of {@link #functionName(ByteBuffer) functionName}. */ - public static void nfunctionName(long struct, ByteBuffer value) { - if (CHECKS) { checkNT1(value); } - memPutAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.FUNCTIONNAME, memAddress(value)); - } - /** Unsafe version of {@link #message(ByteBuffer) message}. */ - public static void nmessage(long struct, ByteBuffer value) { - if (CHECKS) { checkNT1(value); } - memPutAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGE, memAddress(value)); - } - /** Sets the specified value to the {@code objectCount} field of the specified {@code struct}. */ - public static void nobjectCount(long struct, int value) { UNSAFE.putInt(null, struct + XrDebugUtilsMessengerCallbackDataEXT.OBJECTCOUNT, value); } - /** Unsafe version of {@link #objects(XrDebugUtilsObjectNameInfoEXT.Buffer) objects}. */ - public static void nobjects(long struct, @Nullable XrDebugUtilsObjectNameInfoEXT.Buffer value) { memPutAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.OBJECTS, memAddressSafe(value)); if (value != null) { nobjectCount(struct, value.remaining()); } } - /** Sets the specified value to the {@code sessionLabelCount} field of the specified {@code struct}. */ - public static void nsessionLabelCount(long struct, int value) { UNSAFE.putInt(null, struct + XrDebugUtilsMessengerCallbackDataEXT.SESSIONLABELCOUNT, value); } - /** Unsafe version of {@link #sessionLabels(XrDebugUtilsLabelEXT.Buffer) sessionLabels}. */ - public static void nsessionLabels(long struct, @Nullable XrDebugUtilsLabelEXT.Buffer value) { memPutAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.SESSIONLABELS, memAddressSafe(value)); if (value != null) { nsessionLabelCount(struct, value.remaining()); } } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrDebugUtilsMessengerCallbackDataEXT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.NEXT); } + /** Unsafe version of {@link #messageId}. */ + public static ByteBuffer nmessageId(long struct) { return memByteBufferNT1(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGEID)); } + /** Unsafe version of {@link #messageIdString}. */ + public static String nmessageIdString(long struct) { return memUTF8(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGEID)); } + /** Unsafe version of {@link #functionName}. */ + public static ByteBuffer nfunctionName(long struct) { return memByteBufferNT1(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.FUNCTIONNAME)); } + /** Unsafe version of {@link #functionNameString}. */ + public static String nfunctionNameString(long struct) { return memUTF8(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.FUNCTIONNAME)); } + /** Unsafe version of {@link #message}. */ + public static ByteBuffer nmessage(long struct) { return memByteBufferNT1(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGE)); } + /** Unsafe version of {@link #messageString}. */ + public static String nmessageString(long struct) { return memUTF8(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGE)); } + /** Unsafe version of {@link #objectCount}. */ + public static int nobjectCount(long struct) { return UNSAFE.getInt(null, struct + XrDebugUtilsMessengerCallbackDataEXT.OBJECTCOUNT); } + /** Unsafe version of {@link #objects}. */ + @Nullable public static XrDebugUtilsObjectNameInfoEXT.Buffer nobjects(long struct) { return XrDebugUtilsObjectNameInfoEXT.createSafe(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.OBJECTS), nobjectCount(struct)); } + /** Unsafe version of {@link #sessionLabelCount}. */ + public static int nsessionLabelCount(long struct) { return UNSAFE.getInt(null, struct + XrDebugUtilsMessengerCallbackDataEXT.SESSIONLABELCOUNT); } + /** Unsafe version of {@link #sessionLabels}. */ + @Nullable public static XrDebugUtilsLabelEXT.Buffer nsessionLabels(long struct) { return XrDebugUtilsLabelEXT.createSafe(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.SESSIONLABELS), nsessionLabelCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrDebugUtilsMessengerCallbackDataEXT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.NEXT, value); } + /** Unsafe version of {@link #messageId(ByteBuffer) messageId}. */ + public static void nmessageId(long struct, ByteBuffer value) { + if (CHECKS) { checkNT1(value); } + memPutAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGEID, memAddress(value)); + } + /** Unsafe version of {@link #functionName(ByteBuffer) functionName}. */ + public static void nfunctionName(long struct, ByteBuffer value) { + if (CHECKS) { checkNT1(value); } + memPutAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.FUNCTIONNAME, memAddress(value)); + } + /** Unsafe version of {@link #message(ByteBuffer) message}. */ + public static void nmessage(long struct, ByteBuffer value) { + if (CHECKS) { checkNT1(value); } + memPutAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGE, memAddress(value)); + } + /** Sets the specified value to the {@code objectCount} field of the specified {@code struct}. */ + public static void nobjectCount(long struct, int value) { UNSAFE.putInt(null, struct + XrDebugUtilsMessengerCallbackDataEXT.OBJECTCOUNT, value); } + /** Unsafe version of {@link #objects(XrDebugUtilsObjectNameInfoEXT.Buffer) objects}. */ + public static void nobjects(long struct, @Nullable XrDebugUtilsObjectNameInfoEXT.Buffer value) { memPutAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.OBJECTS, memAddressSafe(value)); if (value != null) { nobjectCount(struct, value.remaining()); } } + /** Sets the specified value to the {@code sessionLabelCount} field of the specified {@code struct}. */ + public static void nsessionLabelCount(long struct, int value) { UNSAFE.putInt(null, struct + XrDebugUtilsMessengerCallbackDataEXT.SESSIONLABELCOUNT, value); } + /** Unsafe version of {@link #sessionLabels(XrDebugUtilsLabelEXT.Buffer) sessionLabels}. */ + public static void nsessionLabels(long struct, @Nullable XrDebugUtilsLabelEXT.Buffer value) { memPutAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.SESSIONLABELS, memAddressSafe(value)); if (value != null) { nsessionLabelCount(struct, value.remaining()); } } /** * Validates pointer members that should not be {@code NULL}. @@ -399,9 +403,9 @@ public static void validate(long struct) { check(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGEID)); check(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.FUNCTIONNAME)); check(memGetAddress(struct + XrDebugUtilsMessengerCallbackDataEXT.MESSAGE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrDebugUtilsMessengerCallbackDataEXT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -438,66 +442,66 @@ protected Buffer self() { protected XrDebugUtilsMessengerCallbackDataEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrDebugUtilsMessengerCallbackDataEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrDebugUtilsMessengerCallbackDataEXT.ntype(address()); } - /** @return the value of the {@link XrDebugUtilsMessengerCallbackDataEXT#next} field. */ - @NativeType("void const *") - public long next() { return XrDebugUtilsMessengerCallbackDataEXT.nnext(address()); } - /** @return a {@link ByteBuffer} view of the null-terminated string pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#messageId} field. */ - @NativeType("char const *") - public ByteBuffer messageId() { return XrDebugUtilsMessengerCallbackDataEXT.nmessageId(address()); } - /** @return the null-terminated string pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#messageId} field. */ - @NativeType("char const *") - public String messageIdString() { return XrDebugUtilsMessengerCallbackDataEXT.nmessageIdString(address()); } - /** @return a {@link ByteBuffer} view of the null-terminated string pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#functionName} field. */ - @NativeType("char const *") - public ByteBuffer functionName() { return XrDebugUtilsMessengerCallbackDataEXT.nfunctionName(address()); } - /** @return the null-terminated string pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#functionName} field. */ - @NativeType("char const *") - public String functionNameString() { return XrDebugUtilsMessengerCallbackDataEXT.nfunctionNameString(address()); } - /** @return a {@link ByteBuffer} view of the null-terminated string pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#message} field. */ - @NativeType("char const *") - public ByteBuffer message() { return XrDebugUtilsMessengerCallbackDataEXT.nmessage(address()); } - /** @return the null-terminated string pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#message} field. */ - @NativeType("char const *") - public String messageString() { return XrDebugUtilsMessengerCallbackDataEXT.nmessageString(address()); } - /** @return the value of the {@link XrDebugUtilsMessengerCallbackDataEXT#objectCount} field. */ - @NativeType("uint32_t") - public int objectCount() { return XrDebugUtilsMessengerCallbackDataEXT.nobjectCount(address()); } - /** @return a {@link XrDebugUtilsObjectNameInfoEXT.Buffer} view of the struct array pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#objects} field. */ - @Nullable - @NativeType("XrDebugUtilsObjectNameInfoEXT *") - public XrDebugUtilsObjectNameInfoEXT.Buffer objects() { return XrDebugUtilsMessengerCallbackDataEXT.nobjects(address()); } - /** @return the value of the {@link XrDebugUtilsMessengerCallbackDataEXT#sessionLabelCount} field. */ - @NativeType("uint32_t") - public int sessionLabelCount() { return XrDebugUtilsMessengerCallbackDataEXT.nsessionLabelCount(address()); } - /** @return a {@link XrDebugUtilsLabelEXT.Buffer} view of the struct array pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#sessionLabels} field. */ - @Nullable - @NativeType("XrDebugUtilsLabelEXT *") - public XrDebugUtilsLabelEXT.Buffer sessionLabels() { return XrDebugUtilsMessengerCallbackDataEXT.nsessionLabels(address()); } - - /** Sets the specified value to the {@link XrDebugUtilsMessengerCallbackDataEXT#type} field. */ - public XrDebugUtilsMessengerCallbackDataEXT.Buffer type(@NativeType("XrStructureType") int value) { XrDebugUtilsMessengerCallbackDataEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT} value to the {@link XrDebugUtilsMessengerCallbackDataEXT#type} field. */ - public XrDebugUtilsMessengerCallbackDataEXT.Buffer type$Default() { return type(EXTDebugUtils.XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT); } - /** Sets the specified value to the {@link XrDebugUtilsMessengerCallbackDataEXT#next} field. */ - public XrDebugUtilsMessengerCallbackDataEXT.Buffer next(@NativeType("void const *") long value) { XrDebugUtilsMessengerCallbackDataEXT.nnext(address(), value); return this; } - /** Sets the address of the specified encoded string to the {@link XrDebugUtilsMessengerCallbackDataEXT#messageId} field. */ - public XrDebugUtilsMessengerCallbackDataEXT.Buffer messageId(@NativeType("char const *") ByteBuffer value) { XrDebugUtilsMessengerCallbackDataEXT.nmessageId(address(), value); return this; } - /** Sets the address of the specified encoded string to the {@link XrDebugUtilsMessengerCallbackDataEXT#functionName} field. */ - public XrDebugUtilsMessengerCallbackDataEXT.Buffer functionName(@NativeType("char const *") ByteBuffer value) { XrDebugUtilsMessengerCallbackDataEXT.nfunctionName(address(), value); return this; } - /** Sets the address of the specified encoded string to the {@link XrDebugUtilsMessengerCallbackDataEXT#message} field. */ - public XrDebugUtilsMessengerCallbackDataEXT.Buffer message(@NativeType("char const *") ByteBuffer value) { XrDebugUtilsMessengerCallbackDataEXT.nmessage(address(), value); return this; } - /** Sets the specified value to the {@link XrDebugUtilsMessengerCallbackDataEXT#objectCount} field. */ - public XrDebugUtilsMessengerCallbackDataEXT.Buffer objectCount(@NativeType("uint32_t") int value) { XrDebugUtilsMessengerCallbackDataEXT.nobjectCount(address(), value); return this; } - /** Sets the address of the specified {@link XrDebugUtilsObjectNameInfoEXT.Buffer} to the {@link XrDebugUtilsMessengerCallbackDataEXT#objects} field. */ - public XrDebugUtilsMessengerCallbackDataEXT.Buffer objects(@Nullable @NativeType("XrDebugUtilsObjectNameInfoEXT *") XrDebugUtilsObjectNameInfoEXT.Buffer value) { XrDebugUtilsMessengerCallbackDataEXT.nobjects(address(), value); return this; } - /** Sets the specified value to the {@link XrDebugUtilsMessengerCallbackDataEXT#sessionLabelCount} field. */ - public XrDebugUtilsMessengerCallbackDataEXT.Buffer sessionLabelCount(@NativeType("uint32_t") int value) { XrDebugUtilsMessengerCallbackDataEXT.nsessionLabelCount(address(), value); return this; } - /** Sets the address of the specified {@link XrDebugUtilsLabelEXT.Buffer} to the {@link XrDebugUtilsMessengerCallbackDataEXT#sessionLabels} field. */ - public XrDebugUtilsMessengerCallbackDataEXT.Buffer sessionLabels(@Nullable @NativeType("XrDebugUtilsLabelEXT *") XrDebugUtilsLabelEXT.Buffer value) { XrDebugUtilsMessengerCallbackDataEXT.nsessionLabels(address(), value); return this; } + + /** @return the value of the {@link XrDebugUtilsMessengerCallbackDataEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrDebugUtilsMessengerCallbackDataEXT.ntype(address()); } + /** @return the value of the {@link XrDebugUtilsMessengerCallbackDataEXT#next} field. */ + @NativeType("void const *") + public long next() { return XrDebugUtilsMessengerCallbackDataEXT.nnext(address()); } + /** @return a {@link ByteBuffer} view of the null-terminated string pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#messageId} field. */ + @NativeType("char const *") + public ByteBuffer messageId() { return XrDebugUtilsMessengerCallbackDataEXT.nmessageId(address()); } + /** @return the null-terminated string pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#messageId} field. */ + @NativeType("char const *") + public String messageIdString() { return XrDebugUtilsMessengerCallbackDataEXT.nmessageIdString(address()); } + /** @return a {@link ByteBuffer} view of the null-terminated string pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#functionName} field. */ + @NativeType("char const *") + public ByteBuffer functionName() { return XrDebugUtilsMessengerCallbackDataEXT.nfunctionName(address()); } + /** @return the null-terminated string pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#functionName} field. */ + @NativeType("char const *") + public String functionNameString() { return XrDebugUtilsMessengerCallbackDataEXT.nfunctionNameString(address()); } + /** @return a {@link ByteBuffer} view of the null-terminated string pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#message} field. */ + @NativeType("char const *") + public ByteBuffer message() { return XrDebugUtilsMessengerCallbackDataEXT.nmessage(address()); } + /** @return the null-terminated string pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#message} field. */ + @NativeType("char const *") + public String messageString() { return XrDebugUtilsMessengerCallbackDataEXT.nmessageString(address()); } + /** @return the value of the {@link XrDebugUtilsMessengerCallbackDataEXT#objectCount} field. */ + @NativeType("uint32_t") + public int objectCount() { return XrDebugUtilsMessengerCallbackDataEXT.nobjectCount(address()); } + /** @return a {@link XrDebugUtilsObjectNameInfoEXT.Buffer} view of the struct array pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#objects} field. */ + @Nullable + @NativeType("XrDebugUtilsObjectNameInfoEXT *") + public XrDebugUtilsObjectNameInfoEXT.Buffer objects() { return XrDebugUtilsMessengerCallbackDataEXT.nobjects(address()); } + /** @return the value of the {@link XrDebugUtilsMessengerCallbackDataEXT#sessionLabelCount} field. */ + @NativeType("uint32_t") + public int sessionLabelCount() { return XrDebugUtilsMessengerCallbackDataEXT.nsessionLabelCount(address()); } + /** @return a {@link XrDebugUtilsLabelEXT.Buffer} view of the struct array pointed to by the {@link XrDebugUtilsMessengerCallbackDataEXT#sessionLabels} field. */ + @Nullable + @NativeType("XrDebugUtilsLabelEXT *") + public XrDebugUtilsLabelEXT.Buffer sessionLabels() { return XrDebugUtilsMessengerCallbackDataEXT.nsessionLabels(address()); } + + /** Sets the specified value to the {@link XrDebugUtilsMessengerCallbackDataEXT#type} field. */ + public XrDebugUtilsMessengerCallbackDataEXT.Buffer type(@NativeType("XrStructureType") int value) { XrDebugUtilsMessengerCallbackDataEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT} value to the {@link XrDebugUtilsMessengerCallbackDataEXT#type} field. */ + public XrDebugUtilsMessengerCallbackDataEXT.Buffer type$Default() { return type(EXTDebugUtils.XR_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT); } + /** Sets the specified value to the {@link XrDebugUtilsMessengerCallbackDataEXT#next} field. */ + public XrDebugUtilsMessengerCallbackDataEXT.Buffer next(@NativeType("void const *") long value) { XrDebugUtilsMessengerCallbackDataEXT.nnext(address(), value); return this; } + /** Sets the address of the specified encoded string to the {@link XrDebugUtilsMessengerCallbackDataEXT#messageId} field. */ + public XrDebugUtilsMessengerCallbackDataEXT.Buffer messageId(@NativeType("char const *") ByteBuffer value) { XrDebugUtilsMessengerCallbackDataEXT.nmessageId(address(), value); return this; } + /** Sets the address of the specified encoded string to the {@link XrDebugUtilsMessengerCallbackDataEXT#functionName} field. */ + public XrDebugUtilsMessengerCallbackDataEXT.Buffer functionName(@NativeType("char const *") ByteBuffer value) { XrDebugUtilsMessengerCallbackDataEXT.nfunctionName(address(), value); return this; } + /** Sets the address of the specified encoded string to the {@link XrDebugUtilsMessengerCallbackDataEXT#message} field. */ + public XrDebugUtilsMessengerCallbackDataEXT.Buffer message(@NativeType("char const *") ByteBuffer value) { XrDebugUtilsMessengerCallbackDataEXT.nmessage(address(), value); return this; } + /** Sets the specified value to the {@link XrDebugUtilsMessengerCallbackDataEXT#objectCount} field. */ + public XrDebugUtilsMessengerCallbackDataEXT.Buffer objectCount(@NativeType("uint32_t") int value) { XrDebugUtilsMessengerCallbackDataEXT.nobjectCount(address(), value); return this; } + /** Sets the address of the specified {@link XrDebugUtilsObjectNameInfoEXT.Buffer} to the {@link XrDebugUtilsMessengerCallbackDataEXT#objects} field. */ + public XrDebugUtilsMessengerCallbackDataEXT.Buffer objects(@Nullable @NativeType("XrDebugUtilsObjectNameInfoEXT *") XrDebugUtilsObjectNameInfoEXT.Buffer value) { XrDebugUtilsMessengerCallbackDataEXT.nobjects(address(), value); return this; } + /** Sets the specified value to the {@link XrDebugUtilsMessengerCallbackDataEXT#sessionLabelCount} field. */ + public XrDebugUtilsMessengerCallbackDataEXT.Buffer sessionLabelCount(@NativeType("uint32_t") int value) { XrDebugUtilsMessengerCallbackDataEXT.nsessionLabelCount(address(), value); return this; } + /** Sets the address of the specified {@link XrDebugUtilsLabelEXT.Buffer} to the {@link XrDebugUtilsMessengerCallbackDataEXT#sessionLabels} field. */ + public XrDebugUtilsMessengerCallbackDataEXT.Buffer sessionLabels(@Nullable @NativeType("XrDebugUtilsLabelEXT *") XrDebugUtilsLabelEXT.Buffer value) { XrDebugUtilsMessengerCallbackDataEXT.nsessionLabels(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCallbackEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCallbackEXT.java index 3c0b42d01f..abc766db33 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCallbackEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCallbackEXT.java @@ -4,7 +4,7 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; import org.lwjgl.system.*; @@ -46,8 +46,8 @@ * XrDebugUtilsMessengerCallbackDataEXT const *callbackData, * void *userData * ) - */ -public abstract class XrDebugUtilsMessengerCallbackEXT extends Callback implements XrDebugUtilsMessengerCallbackEXTI { + */ +public abstract class XrDebugUtilsMessengerCallbackEXT extends Callback implements XrDebugUtilsMessengerCallbackEXTI { /** * Creates a {@code XrDebugUtilsMessengerCallbackEXT} instance from the specified function pointer. diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCallbackEXTI.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCallbackEXTI.java index 431a0664a2..04cf86e047 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCallbackEXTI.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCallbackEXTI.java @@ -4,14 +4,14 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -import org.lwjgl.system.*; + +import org.lwjgl.system.*; import org.lwjgl.system.libffi.*; - -import static org.lwjgl.system.APIUtil.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.libffi.LibFFI.*; - + +import static org.lwjgl.system.APIUtil.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.libffi.LibFFI.*; + /** * Type of callback function invoked by the debug utils. * @@ -47,7 +47,7 @@ * XrDebugUtilsMessengerCallbackDataEXT const *callbackData, * void *userData * ) - */ + */ @FunctionalInterface @NativeType("PFN_xrDebugUtilsMessengerCallbackEXT") public interface XrDebugUtilsMessengerCallbackEXTI extends CallbackI { @@ -71,7 +71,7 @@ default void callback(long ret, long args) { ); apiClosureRet(ret, __result); } - + /** * Type of callback function invoked by the debug utils. * diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCreateInfoEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCreateInfoEXT.java index f0c7792681..752322ef1c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCreateInfoEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerCreateInfoEXT.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Debug utils messenger create info. * @@ -30,7 +30,7 @@ *
                            *
                          • The {@link EXTDebugUtils XR_EXT_debug_utils} extension must be enabled prior to using {@link XrDebugUtilsMessengerCreateInfoEXT}
                          • *
                          • {@code type} must be {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT}
                          • - *
                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                          • + *
                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                          • *
                          • {@code messageSeverities} must be a valid combination of {@code XrDebugUtilsMessageSeverityFlagBitsEXT} values
                          • *
                          • {@code messageSeverities} must not be 0
                          • *
                          • {@code messageTypes} must be a valid combination of {@code XrDebugUtilsMessageTypeFlagBitsEXT} values
                          • @@ -65,8 +65,8 @@ * {@link XrDebugUtilsMessengerCallbackEXTI PFN_xrDebugUtilsMessengerCallbackEXT} {@link #userCallback}; * void * {@link #userData}; * } - */ -public class XrDebugUtilsMessengerCreateInfoEXT extends Struct implements NativeResource { + */ +public class XrDebugUtilsMessengerCreateInfoEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -76,33 +76,33 @@ public class XrDebugUtilsMessengerCreateInfoEXT extends Struct implements NativeResource { @@ -376,40 +376,40 @@ protected Buffer self() { protected XrDebugUtilsMessengerCreateInfoEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrDebugUtilsMessengerCreateInfoEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrDebugUtilsMessengerCreateInfoEXT.ntype(address()); } - /** @return the value of the {@link XrDebugUtilsMessengerCreateInfoEXT#next} field. */ - @NativeType("void const *") - public long next() { return XrDebugUtilsMessengerCreateInfoEXT.nnext(address()); } - /** @return the value of the {@link XrDebugUtilsMessengerCreateInfoEXT#messageSeverities} field. */ - @NativeType("XrDebugUtilsMessageSeverityFlagsEXT") - public long messageSeverities() { return XrDebugUtilsMessengerCreateInfoEXT.nmessageSeverities(address()); } - /** @return the value of the {@link XrDebugUtilsMessengerCreateInfoEXT#messageTypes} field. */ - @NativeType("XrDebugUtilsMessageTypeFlagsEXT") - public long messageTypes() { return XrDebugUtilsMessengerCreateInfoEXT.nmessageTypes(address()); } - /** @return the value of the {@link XrDebugUtilsMessengerCreateInfoEXT#userCallback} field. */ - @NativeType("PFN_xrDebugUtilsMessengerCallbackEXT") - public XrDebugUtilsMessengerCallbackEXT userCallback() { return XrDebugUtilsMessengerCreateInfoEXT.nuserCallback(address()); } - /** @return the value of the {@link XrDebugUtilsMessengerCreateInfoEXT#userData} field. */ - @NativeType("void *") - public long userData() { return XrDebugUtilsMessengerCreateInfoEXT.nuserData(address()); } - - /** Sets the specified value to the {@link XrDebugUtilsMessengerCreateInfoEXT#type} field. */ - public XrDebugUtilsMessengerCreateInfoEXT.Buffer type(@NativeType("XrStructureType") int value) { XrDebugUtilsMessengerCreateInfoEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT} value to the {@link XrDebugUtilsMessengerCreateInfoEXT#type} field. */ - public XrDebugUtilsMessengerCreateInfoEXT.Buffer type$Default() { return type(EXTDebugUtils.XR_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT); } - /** Sets the specified value to the {@link XrDebugUtilsMessengerCreateInfoEXT#next} field. */ - public XrDebugUtilsMessengerCreateInfoEXT.Buffer next(@NativeType("void const *") long value) { XrDebugUtilsMessengerCreateInfoEXT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrDebugUtilsMessengerCreateInfoEXT#messageSeverities} field. */ - public XrDebugUtilsMessengerCreateInfoEXT.Buffer messageSeverities(@NativeType("XrDebugUtilsMessageSeverityFlagsEXT") long value) { XrDebugUtilsMessengerCreateInfoEXT.nmessageSeverities(address(), value); return this; } - /** Sets the specified value to the {@link XrDebugUtilsMessengerCreateInfoEXT#messageTypes} field. */ - public XrDebugUtilsMessengerCreateInfoEXT.Buffer messageTypes(@NativeType("XrDebugUtilsMessageTypeFlagsEXT") long value) { XrDebugUtilsMessengerCreateInfoEXT.nmessageTypes(address(), value); return this; } - /** Sets the specified value to the {@link XrDebugUtilsMessengerCreateInfoEXT#userCallback} field. */ - public XrDebugUtilsMessengerCreateInfoEXT.Buffer userCallback(@NativeType("PFN_xrDebugUtilsMessengerCallbackEXT") XrDebugUtilsMessengerCallbackEXTI value) { XrDebugUtilsMessengerCreateInfoEXT.nuserCallback(address(), value); return this; } - /** Sets the specified value to the {@link XrDebugUtilsMessengerCreateInfoEXT#userData} field. */ - public XrDebugUtilsMessengerCreateInfoEXT.Buffer userData(@NativeType("void *") long value) { XrDebugUtilsMessengerCreateInfoEXT.nuserData(address(), value); return this; } + + /** @return the value of the {@link XrDebugUtilsMessengerCreateInfoEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrDebugUtilsMessengerCreateInfoEXT.ntype(address()); } + /** @return the value of the {@link XrDebugUtilsMessengerCreateInfoEXT#next} field. */ + @NativeType("void const *") + public long next() { return XrDebugUtilsMessengerCreateInfoEXT.nnext(address()); } + /** @return the value of the {@link XrDebugUtilsMessengerCreateInfoEXT#messageSeverities} field. */ + @NativeType("XrDebugUtilsMessageSeverityFlagsEXT") + public long messageSeverities() { return XrDebugUtilsMessengerCreateInfoEXT.nmessageSeverities(address()); } + /** @return the value of the {@link XrDebugUtilsMessengerCreateInfoEXT#messageTypes} field. */ + @NativeType("XrDebugUtilsMessageTypeFlagsEXT") + public long messageTypes() { return XrDebugUtilsMessengerCreateInfoEXT.nmessageTypes(address()); } + /** @return the value of the {@link XrDebugUtilsMessengerCreateInfoEXT#userCallback} field. */ + @NativeType("PFN_xrDebugUtilsMessengerCallbackEXT") + public XrDebugUtilsMessengerCallbackEXT userCallback() { return XrDebugUtilsMessengerCreateInfoEXT.nuserCallback(address()); } + /** @return the value of the {@link XrDebugUtilsMessengerCreateInfoEXT#userData} field. */ + @NativeType("void *") + public long userData() { return XrDebugUtilsMessengerCreateInfoEXT.nuserData(address()); } + + /** Sets the specified value to the {@link XrDebugUtilsMessengerCreateInfoEXT#type} field. */ + public XrDebugUtilsMessengerCreateInfoEXT.Buffer type(@NativeType("XrStructureType") int value) { XrDebugUtilsMessengerCreateInfoEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT} value to the {@link XrDebugUtilsMessengerCreateInfoEXT#type} field. */ + public XrDebugUtilsMessengerCreateInfoEXT.Buffer type$Default() { return type(EXTDebugUtils.XR_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT); } + /** Sets the specified value to the {@link XrDebugUtilsMessengerCreateInfoEXT#next} field. */ + public XrDebugUtilsMessengerCreateInfoEXT.Buffer next(@NativeType("void const *") long value) { XrDebugUtilsMessengerCreateInfoEXT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrDebugUtilsMessengerCreateInfoEXT#messageSeverities} field. */ + public XrDebugUtilsMessengerCreateInfoEXT.Buffer messageSeverities(@NativeType("XrDebugUtilsMessageSeverityFlagsEXT") long value) { XrDebugUtilsMessengerCreateInfoEXT.nmessageSeverities(address(), value); return this; } + /** Sets the specified value to the {@link XrDebugUtilsMessengerCreateInfoEXT#messageTypes} field. */ + public XrDebugUtilsMessengerCreateInfoEXT.Buffer messageTypes(@NativeType("XrDebugUtilsMessageTypeFlagsEXT") long value) { XrDebugUtilsMessengerCreateInfoEXT.nmessageTypes(address(), value); return this; } + /** Sets the specified value to the {@link XrDebugUtilsMessengerCreateInfoEXT#userCallback} field. */ + public XrDebugUtilsMessengerCreateInfoEXT.Buffer userCallback(@NativeType("PFN_xrDebugUtilsMessengerCallbackEXT") XrDebugUtilsMessengerCallbackEXTI value) { XrDebugUtilsMessengerCreateInfoEXT.nuserCallback(address(), value); return this; } + /** Sets the specified value to the {@link XrDebugUtilsMessengerCreateInfoEXT#userData} field. */ + public XrDebugUtilsMessengerCreateInfoEXT.Buffer userData(@NativeType("void *") long value) { XrDebugUtilsMessengerCreateInfoEXT.nuserData(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerEXT.java index fe002b02a3..55ea74a1b5 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsMessengerEXT.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrDebugUtilsMessengerEXT} handle. */ + +/** Wraps an {@code XrDebugUtilsMessengerEXT} handle. */ public class XrDebugUtilsMessengerEXT extends DispatchableHandle { private final XrInstance instance; @@ -26,4 +26,4 @@ public XrInstance getInstance() { return instance; } -} +} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsObjectNameInfoEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsObjectNameInfoEXT.java index b25f750895..abfa1b085d 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsObjectNameInfoEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDebugUtilsObjectNameInfoEXT.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Debug utils object name info. * @@ -31,7 +31,7 @@ *
                              *
                            • The {@link EXTDebugUtils XR_EXT_debug_utils} extension must be enabled prior to using {@link XrDebugUtilsObjectNameInfoEXT}
                            • *
                            • {@code type} must be {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • *
                            • {@code objectType} must be a valid {@code XrObjectType} value
                            • *
                            • If {@code objectName} is not {@code NULL}, {@code objectName} must be a null-terminated UTF-8 string
                            • *
                            @@ -50,8 +50,8 @@ * uint64_t {@link #objectHandle}; * char const * {@link #objectName}; * } - */ -public class XrDebugUtilsObjectNameInfoEXT extends Struct implements NativeResource { + */ +public class XrDebugUtilsObjectNameInfoEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -61,30 +61,30 @@ public class XrDebugUtilsObjectNameInfoEXT extends Struct implements NativeResource { @@ -348,40 +348,40 @@ protected Buffer self() { protected XrDebugUtilsObjectNameInfoEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrDebugUtilsObjectNameInfoEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrDebugUtilsObjectNameInfoEXT.ntype(address()); } - /** @return the value of the {@link XrDebugUtilsObjectNameInfoEXT#next} field. */ - @NativeType("void const *") - public long next() { return XrDebugUtilsObjectNameInfoEXT.nnext(address()); } - /** @return the value of the {@link XrDebugUtilsObjectNameInfoEXT#objectType} field. */ - @NativeType("XrObjectType") - public int objectType() { return XrDebugUtilsObjectNameInfoEXT.nobjectType(address()); } - /** @return the value of the {@link XrDebugUtilsObjectNameInfoEXT#objectHandle} field. */ - @NativeType("uint64_t") - public long objectHandle() { return XrDebugUtilsObjectNameInfoEXT.nobjectHandle(address()); } - /** @return a {@link ByteBuffer} view of the null-terminated string pointed to by the {@link XrDebugUtilsObjectNameInfoEXT#objectName} field. */ - @Nullable - @NativeType("char const *") - public ByteBuffer objectName() { return XrDebugUtilsObjectNameInfoEXT.nobjectName(address()); } - /** @return the null-terminated string pointed to by the {@link XrDebugUtilsObjectNameInfoEXT#objectName} field. */ - @Nullable - @NativeType("char const *") - public String objectNameString() { return XrDebugUtilsObjectNameInfoEXT.nobjectNameString(address()); } - - /** Sets the specified value to the {@link XrDebugUtilsObjectNameInfoEXT#type} field. */ - public XrDebugUtilsObjectNameInfoEXT.Buffer type(@NativeType("XrStructureType") int value) { XrDebugUtilsObjectNameInfoEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT} value to the {@link XrDebugUtilsObjectNameInfoEXT#type} field. */ - public XrDebugUtilsObjectNameInfoEXT.Buffer type$Default() { return type(EXTDebugUtils.XR_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT); } - /** Sets the specified value to the {@link XrDebugUtilsObjectNameInfoEXT#next} field. */ - public XrDebugUtilsObjectNameInfoEXT.Buffer next(@NativeType("void const *") long value) { XrDebugUtilsObjectNameInfoEXT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrDebugUtilsObjectNameInfoEXT#objectType} field. */ - public XrDebugUtilsObjectNameInfoEXT.Buffer objectType(@NativeType("XrObjectType") int value) { XrDebugUtilsObjectNameInfoEXT.nobjectType(address(), value); return this; } - /** Sets the specified value to the {@link XrDebugUtilsObjectNameInfoEXT#objectHandle} field. */ - public XrDebugUtilsObjectNameInfoEXT.Buffer objectHandle(@NativeType("uint64_t") long value) { XrDebugUtilsObjectNameInfoEXT.nobjectHandle(address(), value); return this; } - /** Sets the address of the specified encoded string to the {@link XrDebugUtilsObjectNameInfoEXT#objectName} field. */ - public XrDebugUtilsObjectNameInfoEXT.Buffer objectName(@Nullable @NativeType("char const *") ByteBuffer value) { XrDebugUtilsObjectNameInfoEXT.nobjectName(address(), value); return this; } + + /** @return the value of the {@link XrDebugUtilsObjectNameInfoEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrDebugUtilsObjectNameInfoEXT.ntype(address()); } + /** @return the value of the {@link XrDebugUtilsObjectNameInfoEXT#next} field. */ + @NativeType("void const *") + public long next() { return XrDebugUtilsObjectNameInfoEXT.nnext(address()); } + /** @return the value of the {@link XrDebugUtilsObjectNameInfoEXT#objectType} field. */ + @NativeType("XrObjectType") + public int objectType() { return XrDebugUtilsObjectNameInfoEXT.nobjectType(address()); } + /** @return the value of the {@link XrDebugUtilsObjectNameInfoEXT#objectHandle} field. */ + @NativeType("uint64_t") + public long objectHandle() { return XrDebugUtilsObjectNameInfoEXT.nobjectHandle(address()); } + /** @return a {@link ByteBuffer} view of the null-terminated string pointed to by the {@link XrDebugUtilsObjectNameInfoEXT#objectName} field. */ + @Nullable + @NativeType("char const *") + public ByteBuffer objectName() { return XrDebugUtilsObjectNameInfoEXT.nobjectName(address()); } + /** @return the null-terminated string pointed to by the {@link XrDebugUtilsObjectNameInfoEXT#objectName} field. */ + @Nullable + @NativeType("char const *") + public String objectNameString() { return XrDebugUtilsObjectNameInfoEXT.nobjectNameString(address()); } + + /** Sets the specified value to the {@link XrDebugUtilsObjectNameInfoEXT#type} field. */ + public XrDebugUtilsObjectNameInfoEXT.Buffer type(@NativeType("XrStructureType") int value) { XrDebugUtilsObjectNameInfoEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTDebugUtils#XR_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT} value to the {@link XrDebugUtilsObjectNameInfoEXT#type} field. */ + public XrDebugUtilsObjectNameInfoEXT.Buffer type$Default() { return type(EXTDebugUtils.XR_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT); } + /** Sets the specified value to the {@link XrDebugUtilsObjectNameInfoEXT#next} field. */ + public XrDebugUtilsObjectNameInfoEXT.Buffer next(@NativeType("void const *") long value) { XrDebugUtilsObjectNameInfoEXT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrDebugUtilsObjectNameInfoEXT#objectType} field. */ + public XrDebugUtilsObjectNameInfoEXT.Buffer objectType(@NativeType("XrObjectType") int value) { XrDebugUtilsObjectNameInfoEXT.nobjectType(address(), value); return this; } + /** Sets the specified value to the {@link XrDebugUtilsObjectNameInfoEXT#objectHandle} field. */ + public XrDebugUtilsObjectNameInfoEXT.Buffer objectHandle(@NativeType("uint64_t") long value) { XrDebugUtilsObjectNameInfoEXT.nobjectHandle(address(), value); return this; } + /** Sets the address of the specified encoded string to the {@link XrDebugUtilsObjectNameInfoEXT#objectName} field. */ + public XrDebugUtilsObjectNameInfoEXT.Buffer objectName(@Nullable @NativeType("char const *") ByteBuffer value) { XrDebugUtilsObjectNameInfoEXT.nobjectName(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDeserializeSceneFragmentMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDeserializeSceneFragmentMSFT.java index 9be2788ede..8e2ef4b7fc 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDeserializeSceneFragmentMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDeserializeSceneFragmentMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Deserialize Scene Fragment. * @@ -36,8 +36,8 @@ * uint32_t {@link #bufferSize}; * uint8_t const * {@link #buffer}; * } - */ -public class XrDeserializeSceneFragmentMSFT extends Struct implements NativeResource { + */ +public class XrDeserializeSceneFragmentMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -47,21 +47,21 @@ public class XrDeserializeSceneFragmentMSFT extends Struct implements NativeResource { @@ -281,19 +281,19 @@ protected Buffer self() { protected XrDeserializeSceneFragmentMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrDeserializeSceneFragmentMSFT#bufferSize} field. */ - @NativeType("uint32_t") - public int bufferSize() { return XrDeserializeSceneFragmentMSFT.nbufferSize(address()); } - /** @return a {@link ByteBuffer} view of the data pointed to by the {@link XrDeserializeSceneFragmentMSFT#buffer} field. */ - @Nullable - @NativeType("uint8_t const *") - public ByteBuffer buffer() { return XrDeserializeSceneFragmentMSFT.nbuffer(address()); } - - /** Sets the specified value to the {@link XrDeserializeSceneFragmentMSFT#bufferSize} field. */ - public XrDeserializeSceneFragmentMSFT.Buffer bufferSize(@NativeType("uint32_t") int value) { XrDeserializeSceneFragmentMSFT.nbufferSize(address(), value); return this; } - /** Sets the address of the specified {@link ByteBuffer} to the {@link XrDeserializeSceneFragmentMSFT#buffer} field. */ - public XrDeserializeSceneFragmentMSFT.Buffer buffer(@Nullable @NativeType("uint8_t const *") ByteBuffer value) { XrDeserializeSceneFragmentMSFT.nbuffer(address(), value); return this; } + + /** @return the value of the {@link XrDeserializeSceneFragmentMSFT#bufferSize} field. */ + @NativeType("uint32_t") + public int bufferSize() { return XrDeserializeSceneFragmentMSFT.nbufferSize(address()); } + /** @return a {@link ByteBuffer} view of the data pointed to by the {@link XrDeserializeSceneFragmentMSFT#buffer} field. */ + @Nullable + @NativeType("uint8_t const *") + public ByteBuffer buffer() { return XrDeserializeSceneFragmentMSFT.nbuffer(address()); } + + /** Sets the specified value to the {@link XrDeserializeSceneFragmentMSFT#bufferSize} field. */ + public XrDeserializeSceneFragmentMSFT.Buffer bufferSize(@NativeType("uint32_t") int value) { XrDeserializeSceneFragmentMSFT.nbufferSize(address(), value); return this; } + /** Sets the address of the specified {@link ByteBuffer} to the {@link XrDeserializeSceneFragmentMSFT#buffer} field. */ + public XrDeserializeSceneFragmentMSFT.Buffer buffer(@Nullable @NativeType("uint8_t const *") ByteBuffer value) { XrDeserializeSceneFragmentMSFT.nbuffer(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDevicePcmSampleRateGetInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDevicePcmSampleRateGetInfoFB.java index acb3e02d9d..afa202d420 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDevicePcmSampleRateGetInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDevicePcmSampleRateGetInfoFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * See {@link XrDevicePcmSampleRateStateFB}. * @@ -26,8 +26,8 @@ * void * next; * float sampleRate; * } - */ -public class XrDevicePcmSampleRateGetInfoFB extends XrDevicePcmSampleRateStateFB { + */ +public class XrDevicePcmSampleRateGetInfoFB extends XrDevicePcmSampleRateStateFB { protected XrDevicePcmSampleRateGetInfoFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -47,30 +47,30 @@ protected XrDevicePcmSampleRateGetInfoFB create(long address, @Nullable ByteBuff public XrDevicePcmSampleRateGetInfoFB(ByteBuffer container) { super(container); } - - /** Sets the specified value to the {@code type} field. */ - @Override - public XrDevicePcmSampleRateGetInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBHapticPcm#XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB} value to the {@code type} field. */ - @Override - public XrDevicePcmSampleRateGetInfoFB type$Default() { return type(FBHapticPcm.XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB); } - /** Sets the specified value to the {@code next} field. */ - @Override - public XrDevicePcmSampleRateGetInfoFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@code sampleRate} field. */ - @Override - public XrDevicePcmSampleRateGetInfoFB sampleRate(float value) { nsampleRate(address(), value); return this; } + + /** Sets the specified value to the {@code type} field. */ + @Override + public XrDevicePcmSampleRateGetInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBHapticPcm#XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB} value to the {@code type} field. */ + @Override + public XrDevicePcmSampleRateGetInfoFB type$Default() { return type(FBHapticPcm.XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB); } + /** Sets the specified value to the {@code next} field. */ + @Override + public XrDevicePcmSampleRateGetInfoFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@code sampleRate} field. */ + @Override + public XrDevicePcmSampleRateGetInfoFB sampleRate(float value) { nsampleRate(address(), value); return this; } /** Initializes this struct with the specified values. */ @Override public XrDevicePcmSampleRateGetInfoFB set( - int type, - long next, + int type, + long next, float sampleRate - ) { - type(type); - next(next); - sampleRate(sampleRate); + ) { + type(type); + next(next); + sampleRate(sampleRate); return this; } @@ -198,7 +198,7 @@ public static XrDevicePcmSampleRateGetInfoFB.Buffer calloc(int capacity, MemoryS return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrDevicePcmSampleRateGetInfoFB} structs. */ public static class Buffer extends XrDevicePcmSampleRateStateFB.Buffer { @@ -235,19 +235,19 @@ protected Buffer self() { protected XrDevicePcmSampleRateGetInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** Sets the specified value to the {@code type} field. */ - @Override - public XrDevicePcmSampleRateGetInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrDevicePcmSampleRateGetInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBHapticPcm#XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB} value to the {@code type} field. */ - @Override - public XrDevicePcmSampleRateGetInfoFB.Buffer type$Default() { return type(FBHapticPcm.XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB); } - /** Sets the specified value to the {@code next} field. */ - @Override - public XrDevicePcmSampleRateGetInfoFB.Buffer next(@NativeType("void *") long value) { XrDevicePcmSampleRateGetInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@code sampleRate} field. */ - @Override - public XrDevicePcmSampleRateGetInfoFB.Buffer sampleRate(float value) { XrDevicePcmSampleRateGetInfoFB.nsampleRate(address(), value); return this; } + + /** Sets the specified value to the {@code type} field. */ + @Override + public XrDevicePcmSampleRateGetInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrDevicePcmSampleRateGetInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBHapticPcm#XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB} value to the {@code type} field. */ + @Override + public XrDevicePcmSampleRateGetInfoFB.Buffer type$Default() { return type(FBHapticPcm.XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB); } + /** Sets the specified value to the {@code next} field. */ + @Override + public XrDevicePcmSampleRateGetInfoFB.Buffer next(@NativeType("void *") long value) { XrDevicePcmSampleRateGetInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@code sampleRate} field. */ + @Override + public XrDevicePcmSampleRateGetInfoFB.Buffer sampleRate(float value) { XrDevicePcmSampleRateGetInfoFB.nsampleRate(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDevicePcmSampleRateStateFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDevicePcmSampleRateStateFB.java index 9e4e9aade5..c9adfb52bc 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDevicePcmSampleRateStateFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDevicePcmSampleRateStateFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Information about the device sample rate. * @@ -23,7 +23,7 @@ *
                              *
                            • The {@link FBHapticPcm XR_FB_haptic_pcm} extension must be enabled prior to using {@link XrDevicePcmSampleRateStateFB}
                            • *
                            • {@code type} must be {@link FBHapticPcm#XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • *
                            * *
                            See Also
                            @@ -38,8 +38,8 @@ * void * {@link #next}; * float {@link #sampleRate}; * } - */ -public class XrDevicePcmSampleRateStateFB extends Struct implements NativeResource { + */ +public class XrDevicePcmSampleRateStateFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -49,24 +49,24 @@ public class XrDevicePcmSampleRateStateFB extends Struct implements NativeResource { @@ -297,24 +297,24 @@ protected Buffer self() { protected XrDevicePcmSampleRateStateFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrDevicePcmSampleRateStateFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrDevicePcmSampleRateStateFB.ntype(address()); } - /** @return the value of the {@link XrDevicePcmSampleRateStateFB#next} field. */ - @NativeType("void *") - public long next() { return XrDevicePcmSampleRateStateFB.nnext(address()); } - /** @return the value of the {@link XrDevicePcmSampleRateStateFB#sampleRate} field. */ - public float sampleRate() { return XrDevicePcmSampleRateStateFB.nsampleRate(address()); } - - /** Sets the specified value to the {@link XrDevicePcmSampleRateStateFB#type} field. */ - public XrDevicePcmSampleRateStateFB.Buffer type(@NativeType("XrStructureType") int value) { XrDevicePcmSampleRateStateFB.ntype(address(), value); return this; } - /** Sets the {@link FBHapticPcm#XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB} value to the {@link XrDevicePcmSampleRateStateFB#type} field. */ - public XrDevicePcmSampleRateStateFB.Buffer type$Default() { return type(FBHapticPcm.XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB); } - /** Sets the specified value to the {@link XrDevicePcmSampleRateStateFB#next} field. */ - public XrDevicePcmSampleRateStateFB.Buffer next(@NativeType("void *") long value) { XrDevicePcmSampleRateStateFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrDevicePcmSampleRateStateFB#sampleRate} field. */ - public XrDevicePcmSampleRateStateFB.Buffer sampleRate(float value) { XrDevicePcmSampleRateStateFB.nsampleRate(address(), value); return this; } + + /** @return the value of the {@link XrDevicePcmSampleRateStateFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrDevicePcmSampleRateStateFB.ntype(address()); } + /** @return the value of the {@link XrDevicePcmSampleRateStateFB#next} field. */ + @NativeType("void *") + public long next() { return XrDevicePcmSampleRateStateFB.nnext(address()); } + /** @return the value of the {@link XrDevicePcmSampleRateStateFB#sampleRate} field. */ + public float sampleRate() { return XrDevicePcmSampleRateStateFB.nsampleRate(address()); } + + /** Sets the specified value to the {@link XrDevicePcmSampleRateStateFB#type} field. */ + public XrDevicePcmSampleRateStateFB.Buffer type(@NativeType("XrStructureType") int value) { XrDevicePcmSampleRateStateFB.ntype(address(), value); return this; } + /** Sets the {@link FBHapticPcm#XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB} value to the {@link XrDevicePcmSampleRateStateFB#type} field. */ + public XrDevicePcmSampleRateStateFB.Buffer type$Default() { return type(FBHapticPcm.XR_TYPE_DEVICE_PCM_SAMPLE_RATE_STATE_FB); } + /** Sets the specified value to the {@link XrDevicePcmSampleRateStateFB#next} field. */ + public XrDevicePcmSampleRateStateFB.Buffer next(@NativeType("void *") long value) { XrDevicePcmSampleRateStateFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrDevicePcmSampleRateStateFB#sampleRate} field. */ + public XrDevicePcmSampleRateStateFB.Buffer sampleRate(float value) { XrDevicePcmSampleRateStateFB.nsampleRate(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDigitalLensControlALMALENCE.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDigitalLensControlALMALENCE.java index 2c13871877..6ff85a0082 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDigitalLensControlALMALENCE.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrDigitalLensControlALMALENCE.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The digital lens control structure to be passed to change state of DLVR API Layer. * @@ -23,7 +23,7 @@ *
                              *
                            • The {@link ALMALENCEDigitalLensControl XR_ALMALENCE_digital_lens_control} extension must be enabled prior to using {@link XrDigitalLensControlALMALENCE}
                            • *
                            • {@code type} must be {@link ALMALENCEDigitalLensControl#XR_TYPE_DIGITAL_LENS_CONTROL_ALMALENCE TYPE_DIGITAL_LENS_CONTROL_ALMALENCE}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • *
                            • {@code flags} must be a valid combination of {@code XrDigitalLensControlFlagBitsALMALENCE} values
                            • *
                            • {@code flags} must not be 0
                            • *
                            @@ -40,8 +40,8 @@ * void const * {@link #next}; * XrDigitalLensControlFlagsALMALENCE {@link #flags}; * } - */ -public class XrDigitalLensControlALMALENCE extends Struct implements NativeResource { + */ +public class XrDigitalLensControlALMALENCE extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,24 +51,24 @@ public class XrDigitalLensControlALMALENCE extends Struct implements NativeResource { @@ -300,25 +300,25 @@ protected Buffer self() { protected XrDigitalLensControlALMALENCE getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrDigitalLensControlALMALENCE#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrDigitalLensControlALMALENCE.ntype(address()); } - /** @return the value of the {@link XrDigitalLensControlALMALENCE#next} field. */ - @NativeType("void const *") - public long next() { return XrDigitalLensControlALMALENCE.nnext(address()); } - /** @return the value of the {@link XrDigitalLensControlALMALENCE#flags} field. */ - @NativeType("XrDigitalLensControlFlagsALMALENCE") - public long flags() { return XrDigitalLensControlALMALENCE.nflags(address()); } - - /** Sets the specified value to the {@link XrDigitalLensControlALMALENCE#type} field. */ - public XrDigitalLensControlALMALENCE.Buffer type(@NativeType("XrStructureType") int value) { XrDigitalLensControlALMALENCE.ntype(address(), value); return this; } - /** Sets the {@link ALMALENCEDigitalLensControl#XR_TYPE_DIGITAL_LENS_CONTROL_ALMALENCE TYPE_DIGITAL_LENS_CONTROL_ALMALENCE} value to the {@link XrDigitalLensControlALMALENCE#type} field. */ - public XrDigitalLensControlALMALENCE.Buffer type$Default() { return type(ALMALENCEDigitalLensControl.XR_TYPE_DIGITAL_LENS_CONTROL_ALMALENCE); } - /** Sets the specified value to the {@link XrDigitalLensControlALMALENCE#next} field. */ - public XrDigitalLensControlALMALENCE.Buffer next(@NativeType("void const *") long value) { XrDigitalLensControlALMALENCE.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrDigitalLensControlALMALENCE#flags} field. */ - public XrDigitalLensControlALMALENCE.Buffer flags(@NativeType("XrDigitalLensControlFlagsALMALENCE") long value) { XrDigitalLensControlALMALENCE.nflags(address(), value); return this; } + + /** @return the value of the {@link XrDigitalLensControlALMALENCE#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrDigitalLensControlALMALENCE.ntype(address()); } + /** @return the value of the {@link XrDigitalLensControlALMALENCE#next} field. */ + @NativeType("void const *") + public long next() { return XrDigitalLensControlALMALENCE.nnext(address()); } + /** @return the value of the {@link XrDigitalLensControlALMALENCE#flags} field. */ + @NativeType("XrDigitalLensControlFlagsALMALENCE") + public long flags() { return XrDigitalLensControlALMALENCE.nflags(address()); } + + /** Sets the specified value to the {@link XrDigitalLensControlALMALENCE#type} field. */ + public XrDigitalLensControlALMALENCE.Buffer type(@NativeType("XrStructureType") int value) { XrDigitalLensControlALMALENCE.ntype(address(), value); return this; } + /** Sets the {@link ALMALENCEDigitalLensControl#XR_TYPE_DIGITAL_LENS_CONTROL_ALMALENCE TYPE_DIGITAL_LENS_CONTROL_ALMALENCE} value to the {@link XrDigitalLensControlALMALENCE#type} field. */ + public XrDigitalLensControlALMALENCE.Buffer type$Default() { return type(ALMALENCEDigitalLensControl.XR_TYPE_DIGITAL_LENS_CONTROL_ALMALENCE); } + /** Sets the specified value to the {@link XrDigitalLensControlALMALENCE#next} field. */ + public XrDigitalLensControlALMALENCE.Buffer next(@NativeType("void const *") long value) { XrDigitalLensControlALMALENCE.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrDigitalLensControlALMALENCE#flags} field. */ + public XrDigitalLensControlALMALENCE.Buffer flags(@NativeType("XrDigitalLensControlFlagsALMALENCE") long value) { XrDigitalLensControlALMALENCE.nflags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataBaseHeader.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataBaseHeader.java index 5bfe2d857f..ea5a0f0cab 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataBaseHeader.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataBaseHeader.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Base header for an event. * @@ -28,7 +28,7 @@ * *
                              *
                            • {@code type} must be one of the following XrStructureType values: {@link FBDisplayRefreshRate#XR_TYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB TYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB}, {@link XR10#XR_TYPE_EVENT_DATA_EVENTS_LOST TYPE_EVENT_DATA_EVENTS_LOST}, {@link XR10#XR_TYPE_EVENT_DATA_INSTANCE_LOSS_PENDING TYPE_EVENT_DATA_INSTANCE_LOSS_PENDING}, {@link XR10#XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED}, {@link EXTXOverlay#XR_TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX}, {@link VARJOMarkerTracking#XR_TYPE_EVENT_DATA_MARKER_TRACKING_UPDATE_VARJO TYPE_EVENT_DATA_MARKER_TRACKING_UPDATE_VARJO}, {@link EXTPerformanceSettings#XR_TYPE_EVENT_DATA_PERF_SETTINGS_EXT TYPE_EVENT_DATA_PERF_SETTINGS_EXT}, {@link XR10#XR_TYPE_EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDING TYPE_EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDING}, {@link XR10#XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED TYPE_EVENT_DATA_SESSION_STATE_CHANGED}, {@link FBSpatialEntityStorage#XR_TYPE_EVENT_DATA_SPACE_ERASE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_ERASE_COMPLETE_FB}, {@link FBSpatialEntityStorageBatch#XR_TYPE_EVENT_DATA_SPACE_LIST_SAVE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_LIST_SAVE_COMPLETE_FB}, {@link FBSpatialEntityQuery#XR_TYPE_EVENT_DATA_SPACE_QUERY_COMPLETE_FB TYPE_EVENT_DATA_SPACE_QUERY_COMPLETE_FB}, {@link FBSpatialEntityQuery#XR_TYPE_EVENT_DATA_SPACE_QUERY_RESULTS_AVAILABLE_FB TYPE_EVENT_DATA_SPACE_QUERY_RESULTS_AVAILABLE_FB}, {@link FBSpatialEntityStorage#XR_TYPE_EVENT_DATA_SPACE_SAVE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_SAVE_COMPLETE_FB}, {@link FBSpatialEntity#XR_TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB}, {@link FBSpatialEntitySharing#XR_TYPE_EVENT_DATA_SPACE_SHARE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_SHARE_COMPLETE_FB}, {@link FBSpatialEntity#XR_TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB}, {@link KHRVisibilityMask#XR_TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR}, {@link HTCXViveTrackerInteraction#XR_TYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCX TYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCX}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • *
                            * *
                            See Also
                            @@ -42,8 +42,8 @@ * XrStructureType {@link #type}; * void const * {@link #next}; * } - */ -public class XrEventDataBaseHeader extends Struct implements NativeResource { + */ +public class XrEventDataBaseHeader extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,21 +53,21 @@ public class XrEventDataBaseHeader extends Struct impleme /** The struct member offsets. */ public static final int - TYPE, - NEXT; + TYPE, + NEXT; static { - Layout layout = __struct( - __member(4), + Layout layout = __struct( + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + } protected XrEventDataBaseHeader(long address, @Nullable ByteBuffer container) { super(address, container); @@ -90,26 +90,26 @@ public XrEventDataBaseHeader(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. This base structure itself has no associated {@code XrStructureType} value. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrEventDataBaseHeader type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the specified value to the {@link #next} field. */ - public XrEventDataBaseHeader next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. This base structure itself has no associated {@code XrStructureType} value. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrEventDataBaseHeader type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the specified value to the {@link #next} field. */ + public XrEventDataBaseHeader next(@NativeType("void const *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrEventDataBaseHeader set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -428,18 +428,18 @@ public static XrEventDataBaseHeader.Buffer calloc(int capacity, MemoryStack stac } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrEventDataBaseHeader.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrEventDataBaseHeader.NEXT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEventDataBaseHeader.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrEventDataBaseHeader.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrEventDataBaseHeader.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrEventDataBaseHeader.NEXT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEventDataBaseHeader.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrEventDataBaseHeader.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrEventDataBaseHeader} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -476,18 +476,18 @@ protected Buffer self() { protected XrEventDataBaseHeader getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataBaseHeader#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataBaseHeader.ntype(address()); } - /** @return the value of the {@link XrEventDataBaseHeader#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataBaseHeader.nnext(address()); } - - /** Sets the specified value to the {@link XrEventDataBaseHeader#type} field. */ - public XrEventDataBaseHeader.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataBaseHeader.ntype(address(), value); return this; } - /** Sets the specified value to the {@link XrEventDataBaseHeader#next} field. */ - public XrEventDataBaseHeader.Buffer next(@NativeType("void const *") long value) { XrEventDataBaseHeader.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataBaseHeader#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataBaseHeader.ntype(address()); } + /** @return the value of the {@link XrEventDataBaseHeader#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataBaseHeader.nnext(address()); } + + /** Sets the specified value to the {@link XrEventDataBaseHeader#type} field. */ + public XrEventDataBaseHeader.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataBaseHeader.ntype(address(), value); return this; } + /** Sets the specified value to the {@link XrEventDataBaseHeader#next} field. */ + public XrEventDataBaseHeader.Buffer next(@NativeType("void const *") long value) { XrEventDataBaseHeader.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataBuffer.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataBuffer.java index b597ceeac3..eea37aece7 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataBuffer.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataBuffer.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Event buffer. * @@ -23,7 +23,7 @@ * * * *
                            See Also
                            @@ -38,8 +38,8 @@ * void const * {@link #next}; * uint8_t {@link #varying}[4000]; * } - */ -public class XrEventDataBuffer extends Struct implements NativeResource { + */ +public class XrEventDataBuffer extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -49,24 +49,24 @@ public class XrEventDataBuffer extends Struct implements Nati /** The struct member offsets. */ public static final int - TYPE, - NEXT, - VARYING; + TYPE, + NEXT, + VARYING; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __array(1, 4000) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - VARYING = layout.offsetof(2); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + VARYING = layout.offsetof(2); + } protected XrEventDataBuffer(long address, @Nullable ByteBuffer container) { super(address, container); @@ -89,40 +89,40 @@ public XrEventDataBuffer(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** a fixed sized output buffer big enough to hold returned data elements for all specified event data types. */ - @NativeType("uint8_t[4000]") - public ByteBuffer varying() { return nvarying(address()); } - /** a fixed sized output buffer big enough to hold returned data elements for all specified event data types. */ - @NativeType("uint8_t") - public byte varying(int index) { return nvarying(address(), index); } - - /** Sets the specified value to the {@link #type} field. */ - public XrEventDataBuffer type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_BUFFER TYPE_EVENT_DATA_BUFFER} value to the {@link #type} field. */ - public XrEventDataBuffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_BUFFER); } - /** Sets the specified value to the {@link #next} field. */ - public XrEventDataBuffer next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Copies the specified {@link ByteBuffer} to the {@link #varying} field. */ - public XrEventDataBuffer varying(@NativeType("uint8_t[4000]") ByteBuffer value) { nvarying(address(), value); return this; } - /** Sets the specified value at the specified index of the {@link #varying} field. */ - public XrEventDataBuffer varying(int index, @NativeType("uint8_t") byte value) { nvarying(address(), index, value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** a fixed sized output buffer big enough to hold returned data elements for all specified event data types. */ + @NativeType("uint8_t[4000]") + public ByteBuffer varying() { return nvarying(address()); } + /** a fixed sized output buffer big enough to hold returned data elements for all specified event data types. */ + @NativeType("uint8_t") + public byte varying(int index) { return nvarying(address(), index); } + + /** Sets the specified value to the {@link #type} field. */ + public XrEventDataBuffer type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_BUFFER TYPE_EVENT_DATA_BUFFER} value to the {@link #type} field. */ + public XrEventDataBuffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_BUFFER); } + /** Sets the specified value to the {@link #next} field. */ + public XrEventDataBuffer next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link ByteBuffer} to the {@link #varying} field. */ + public XrEventDataBuffer varying(@NativeType("uint8_t[4000]") ByteBuffer value) { nvarying(address(), value); return this; } + /** Sets the specified value at the specified index of the {@link #varying} field. */ + public XrEventDataBuffer varying(int index, @NativeType("uint8_t") byte value) { nvarying(address(), index, value); return this; } /** Initializes this struct with the specified values. */ public XrEventDataBuffer set( - int type, - long next, + int type, + long next, ByteBuffer varying - ) { - type(type); - next(next); - varying(varying); + ) { + type(type); + next(next); + varying(varying); return this; } @@ -251,33 +251,33 @@ public static XrEventDataBuffer.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrEventDataBuffer.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrEventDataBuffer.NEXT); } - /** Unsafe version of {@link #varying}. */ - public static ByteBuffer nvarying(long struct) { return memByteBuffer(struct + XrEventDataBuffer.VARYING, 4000); } - /** Unsafe version of {@link #varying(int) varying}. */ - public static byte nvarying(long struct, int index) { + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrEventDataBuffer.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrEventDataBuffer.NEXT); } + /** Unsafe version of {@link #varying}. */ + public static ByteBuffer nvarying(long struct) { return memByteBuffer(struct + XrEventDataBuffer.VARYING, 4000); } + /** Unsafe version of {@link #varying(int) varying}. */ + public static byte nvarying(long struct, int index) { return UNSAFE.getByte(null, struct + XrEventDataBuffer.VARYING + check(index, 4000) * 1); - } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEventDataBuffer.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrEventDataBuffer.NEXT, value); } - /** Unsafe version of {@link #varying(ByteBuffer) varying}. */ - public static void nvarying(long struct, ByteBuffer value) { - if (CHECKS) { checkGT(value, 4000); } - memCopy(memAddress(value), struct + XrEventDataBuffer.VARYING, value.remaining() * 1); - } - /** Unsafe version of {@link #varying(int, byte) varying}. */ - public static void nvarying(long struct, int index, byte value) { - UNSAFE.putByte(null, struct + XrEventDataBuffer.VARYING + check(index, 4000) * 1, value); - } - - // ----------------------------------- + } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEventDataBuffer.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrEventDataBuffer.NEXT, value); } + /** Unsafe version of {@link #varying(ByteBuffer) varying}. */ + public static void nvarying(long struct, ByteBuffer value) { + if (CHECKS) { checkGT(value, 4000); } + memCopy(memAddress(value), struct + XrEventDataBuffer.VARYING, value.remaining() * 1); + } + /** Unsafe version of {@link #varying(int, byte) varying}. */ + public static void nvarying(long struct, int index, byte value) { + UNSAFE.putByte(null, struct + XrEventDataBuffer.VARYING + check(index, 4000) * 1, value); + } + + // ----------------------------------- /** An array of {@link XrEventDataBuffer} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -314,30 +314,30 @@ protected Buffer self() { protected XrEventDataBuffer getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataBuffer#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataBuffer.ntype(address()); } - /** @return the value of the {@link XrEventDataBuffer#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataBuffer.nnext(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrEventDataBuffer#varying} field. */ - @NativeType("uint8_t[4000]") - public ByteBuffer varying() { return XrEventDataBuffer.nvarying(address()); } - /** @return the value at the specified index of the {@link XrEventDataBuffer#varying} field. */ - @NativeType("uint8_t") - public byte varying(int index) { return XrEventDataBuffer.nvarying(address(), index); } - - /** Sets the specified value to the {@link XrEventDataBuffer#type} field. */ - public XrEventDataBuffer.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataBuffer.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_BUFFER TYPE_EVENT_DATA_BUFFER} value to the {@link XrEventDataBuffer#type} field. */ - public XrEventDataBuffer.Buffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_BUFFER); } - /** Sets the specified value to the {@link XrEventDataBuffer#next} field. */ - public XrEventDataBuffer.Buffer next(@NativeType("void const *") long value) { XrEventDataBuffer.nnext(address(), value); return this; } - /** Copies the specified {@link ByteBuffer} to the {@link XrEventDataBuffer#varying} field. */ - public XrEventDataBuffer.Buffer varying(@NativeType("uint8_t[4000]") ByteBuffer value) { XrEventDataBuffer.nvarying(address(), value); return this; } - /** Sets the specified value at the specified index of the {@link XrEventDataBuffer#varying} field. */ - public XrEventDataBuffer.Buffer varying(int index, @NativeType("uint8_t") byte value) { XrEventDataBuffer.nvarying(address(), index, value); return this; } + + /** @return the value of the {@link XrEventDataBuffer#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataBuffer.ntype(address()); } + /** @return the value of the {@link XrEventDataBuffer#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataBuffer.nnext(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrEventDataBuffer#varying} field. */ + @NativeType("uint8_t[4000]") + public ByteBuffer varying() { return XrEventDataBuffer.nvarying(address()); } + /** @return the value at the specified index of the {@link XrEventDataBuffer#varying} field. */ + @NativeType("uint8_t") + public byte varying(int index) { return XrEventDataBuffer.nvarying(address(), index); } + + /** Sets the specified value to the {@link XrEventDataBuffer#type} field. */ + public XrEventDataBuffer.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataBuffer.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_BUFFER TYPE_EVENT_DATA_BUFFER} value to the {@link XrEventDataBuffer#type} field. */ + public XrEventDataBuffer.Buffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_BUFFER); } + /** Sets the specified value to the {@link XrEventDataBuffer#next} field. */ + public XrEventDataBuffer.Buffer next(@NativeType("void const *") long value) { XrEventDataBuffer.nnext(address(), value); return this; } + /** Copies the specified {@link ByteBuffer} to the {@link XrEventDataBuffer#varying} field. */ + public XrEventDataBuffer.Buffer varying(@NativeType("uint8_t[4000]") ByteBuffer value) { XrEventDataBuffer.nvarying(address(), value); return this; } + /** Sets the specified value at the specified index of the {@link XrEventDataBuffer#varying} field. */ + public XrEventDataBuffer.Buffer varying(int index, @NativeType("uint8_t") byte value) { XrEventDataBuffer.nvarying(address(), index, value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataDisplayRefreshRateChangedFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataDisplayRefreshRateChangedFB.java index d7b4220e9d..54a049b7e7 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataDisplayRefreshRateChangedFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataDisplayRefreshRateChangedFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Event representing display refresh rate change. * @@ -23,7 +23,7 @@ *
                              *
                            • The {@link FBDisplayRefreshRate XR_FB_display_refresh_rate} extension must be enabled prior to using {@link XrEventDataDisplayRefreshRateChangedFB}
                            • *
                            • {@code type} must be {@link FBDisplayRefreshRate#XR_TYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB TYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • *
                            * *
                            See Also
                            @@ -39,8 +39,8 @@ * float {@link #fromDisplayRefreshRate}; * float {@link #toDisplayRefreshRate}; * } - */ -public class XrEventDataDisplayRefreshRateChangedFB extends Struct implements NativeResource { + */ +public class XrEventDataDisplayRefreshRateChangedFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,27 +50,27 @@ public class XrEventDataDisplayRefreshRateChangedFB extends Struct implements NativeResource { @@ -309,24 +309,24 @@ protected Buffer self() { protected XrEventDataDisplayRefreshRateChangedFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataDisplayRefreshRateChangedFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataDisplayRefreshRateChangedFB.ntype(address()); } - /** @return the value of the {@link XrEventDataDisplayRefreshRateChangedFB#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataDisplayRefreshRateChangedFB.nnext(address()); } - /** @return the value of the {@link XrEventDataDisplayRefreshRateChangedFB#fromDisplayRefreshRate} field. */ - public float fromDisplayRefreshRate() { return XrEventDataDisplayRefreshRateChangedFB.nfromDisplayRefreshRate(address()); } - /** @return the value of the {@link XrEventDataDisplayRefreshRateChangedFB#toDisplayRefreshRate} field. */ - public float toDisplayRefreshRate() { return XrEventDataDisplayRefreshRateChangedFB.ntoDisplayRefreshRate(address()); } - - /** Sets the specified value to the {@link XrEventDataDisplayRefreshRateChangedFB#type} field. */ - public XrEventDataDisplayRefreshRateChangedFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataDisplayRefreshRateChangedFB.ntype(address(), value); return this; } - /** Sets the {@link FBDisplayRefreshRate#XR_TYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB TYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB} value to the {@link XrEventDataDisplayRefreshRateChangedFB#type} field. */ - public XrEventDataDisplayRefreshRateChangedFB.Buffer type$Default() { return type(FBDisplayRefreshRate.XR_TYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB); } - /** Sets the specified value to the {@link XrEventDataDisplayRefreshRateChangedFB#next} field. */ - public XrEventDataDisplayRefreshRateChangedFB.Buffer next(@NativeType("void const *") long value) { XrEventDataDisplayRefreshRateChangedFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataDisplayRefreshRateChangedFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataDisplayRefreshRateChangedFB.ntype(address()); } + /** @return the value of the {@link XrEventDataDisplayRefreshRateChangedFB#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataDisplayRefreshRateChangedFB.nnext(address()); } + /** @return the value of the {@link XrEventDataDisplayRefreshRateChangedFB#fromDisplayRefreshRate} field. */ + public float fromDisplayRefreshRate() { return XrEventDataDisplayRefreshRateChangedFB.nfromDisplayRefreshRate(address()); } + /** @return the value of the {@link XrEventDataDisplayRefreshRateChangedFB#toDisplayRefreshRate} field. */ + public float toDisplayRefreshRate() { return XrEventDataDisplayRefreshRateChangedFB.ntoDisplayRefreshRate(address()); } + + /** Sets the specified value to the {@link XrEventDataDisplayRefreshRateChangedFB#type} field. */ + public XrEventDataDisplayRefreshRateChangedFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataDisplayRefreshRateChangedFB.ntype(address(), value); return this; } + /** Sets the {@link FBDisplayRefreshRate#XR_TYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB TYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB} value to the {@link XrEventDataDisplayRefreshRateChangedFB#type} field. */ + public XrEventDataDisplayRefreshRateChangedFB.Buffer type$Default() { return type(FBDisplayRefreshRate.XR_TYPE_EVENT_DATA_DISPLAY_REFRESH_RATE_CHANGED_FB); } + /** Sets the specified value to the {@link XrEventDataDisplayRefreshRateChangedFB#next} field. */ + public XrEventDataDisplayRefreshRateChangedFB.Buffer next(@NativeType("void const *") long value) { XrEventDataDisplayRefreshRateChangedFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataEventsLost.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataEventsLost.java index 6b02fee9bc..a8eefad488 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataEventsLost.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataEventsLost.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Event indicating events were lost. * @@ -26,7 +26,7 @@ * * * *
                            See Also
                            @@ -41,8 +41,8 @@ * void const * {@link #next}; * uint32_t {@link #lostEventCount}; * } - */ -public class XrEventDataEventsLost extends Struct implements NativeResource { + */ +public class XrEventDataEventsLost extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,24 +52,24 @@ public class XrEventDataEventsLost extends Struct impleme /** The struct member offsets. */ public static final int - TYPE, - NEXT, - LOSTEVENTCOUNT; + TYPE, + NEXT, + LOSTEVENTCOUNT; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - LOSTEVENTCOUNT = layout.offsetof(2); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + LOSTEVENTCOUNT = layout.offsetof(2); + } protected XrEventDataEventsLost(long address, @Nullable ByteBuffer container) { super(address, container); @@ -92,31 +92,31 @@ public XrEventDataEventsLost(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** the number of events which have overflowed since the last call to {@link XR10#xrPollEvent PollEvent}. */ - @NativeType("uint32_t") - public int lostEventCount() { return nlostEventCount(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrEventDataEventsLost type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_EVENTS_LOST TYPE_EVENT_DATA_EVENTS_LOST} value to the {@link #type} field. */ - public XrEventDataEventsLost type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_EVENTS_LOST); } - /** Sets the specified value to the {@link #next} field. */ - public XrEventDataEventsLost next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the number of events which have overflowed since the last call to {@link XR10#xrPollEvent PollEvent}. */ + @NativeType("uint32_t") + public int lostEventCount() { return nlostEventCount(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrEventDataEventsLost type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_EVENTS_LOST TYPE_EVENT_DATA_EVENTS_LOST} value to the {@link #type} field. */ + public XrEventDataEventsLost type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_EVENTS_LOST); } + /** Sets the specified value to the {@link #next} field. */ + public XrEventDataEventsLost next(@NativeType("void const *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrEventDataEventsLost set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -255,20 +255,20 @@ public static XrEventDataEventsLost.Buffer calloc(int capacity, MemoryStack stac } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrEventDataEventsLost.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrEventDataEventsLost.NEXT); } - /** Unsafe version of {@link #lostEventCount}. */ - public static int nlostEventCount(long struct) { return UNSAFE.getInt(null, struct + XrEventDataEventsLost.LOSTEVENTCOUNT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEventDataEventsLost.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrEventDataEventsLost.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrEventDataEventsLost.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrEventDataEventsLost.NEXT); } + /** Unsafe version of {@link #lostEventCount}. */ + public static int nlostEventCount(long struct) { return UNSAFE.getInt(null, struct + XrEventDataEventsLost.LOSTEVENTCOUNT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEventDataEventsLost.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrEventDataEventsLost.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrEventDataEventsLost} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -305,23 +305,23 @@ protected Buffer self() { protected XrEventDataEventsLost getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataEventsLost#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataEventsLost.ntype(address()); } - /** @return the value of the {@link XrEventDataEventsLost#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataEventsLost.nnext(address()); } - /** @return the value of the {@link XrEventDataEventsLost#lostEventCount} field. */ - @NativeType("uint32_t") - public int lostEventCount() { return XrEventDataEventsLost.nlostEventCount(address()); } - - /** Sets the specified value to the {@link XrEventDataEventsLost#type} field. */ - public XrEventDataEventsLost.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataEventsLost.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_EVENTS_LOST TYPE_EVENT_DATA_EVENTS_LOST} value to the {@link XrEventDataEventsLost#type} field. */ - public XrEventDataEventsLost.Buffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_EVENTS_LOST); } - /** Sets the specified value to the {@link XrEventDataEventsLost#next} field. */ - public XrEventDataEventsLost.Buffer next(@NativeType("void const *") long value) { XrEventDataEventsLost.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataEventsLost#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataEventsLost.ntype(address()); } + /** @return the value of the {@link XrEventDataEventsLost#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataEventsLost.nnext(address()); } + /** @return the value of the {@link XrEventDataEventsLost#lostEventCount} field. */ + @NativeType("uint32_t") + public int lostEventCount() { return XrEventDataEventsLost.nlostEventCount(address()); } + + /** Sets the specified value to the {@link XrEventDataEventsLost#type} field. */ + public XrEventDataEventsLost.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataEventsLost.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_EVENTS_LOST TYPE_EVENT_DATA_EVENTS_LOST} value to the {@link XrEventDataEventsLost#type} field. */ + public XrEventDataEventsLost.Buffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_EVENTS_LOST); } + /** Sets the specified value to the {@link XrEventDataEventsLost#next} field. */ + public XrEventDataEventsLost.Buffer next(@NativeType("void const *") long value) { XrEventDataEventsLost.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataInstanceLossPending.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataInstanceLossPending.java index 651db62ac4..dc49b0b4f4 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataInstanceLossPending.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataInstanceLossPending.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Event indicating instance loss will occur. * @@ -34,7 +34,7 @@ * * * *
                            See Also
                            @@ -49,8 +49,8 @@ * void const * next; * XrTime lossTime; * } - */ -public class XrEventDataInstanceLossPending extends Struct implements NativeResource { + */ +public class XrEventDataInstanceLossPending extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -60,24 +60,24 @@ public class XrEventDataInstanceLossPending extends Struct implements NativeResource { @@ -313,23 +313,23 @@ protected Buffer self() { protected XrEventDataInstanceLossPending getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataInstanceLossPending.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataInstanceLossPending.nnext(address()); } - /** @return the value of the {@code lossTime} field. */ - @NativeType("XrTime") - public long lossTime() { return XrEventDataInstanceLossPending.nlossTime(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrEventDataInstanceLossPending.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataInstanceLossPending.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_INSTANCE_LOSS_PENDING TYPE_EVENT_DATA_INSTANCE_LOSS_PENDING} value to the {@code type} field. */ - public XrEventDataInstanceLossPending.Buffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_INSTANCE_LOSS_PENDING); } - /** Sets the specified value to the {@code next} field. */ - public XrEventDataInstanceLossPending.Buffer next(@NativeType("void const *") long value) { XrEventDataInstanceLossPending.nnext(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataInstanceLossPending.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataInstanceLossPending.nnext(address()); } + /** @return the value of the {@code lossTime} field. */ + @NativeType("XrTime") + public long lossTime() { return XrEventDataInstanceLossPending.nlossTime(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrEventDataInstanceLossPending.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataInstanceLossPending.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_INSTANCE_LOSS_PENDING TYPE_EVENT_DATA_INSTANCE_LOSS_PENDING} value to the {@code type} field. */ + public XrEventDataInstanceLossPending.Buffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_INSTANCE_LOSS_PENDING); } + /** Sets the specified value to the {@code next} field. */ + public XrEventDataInstanceLossPending.Buffer next(@NativeType("void const *") long value) { XrEventDataInstanceLossPending.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataInteractionProfileChanged.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataInteractionProfileChanged.java index e0ca679c8b..06e1f42184 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataInteractionProfileChanged.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataInteractionProfileChanged.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Notifies the application than the active interaction profile has changed. * @@ -28,7 +28,7 @@ * * * *
                            See Also
                            @@ -43,8 +43,8 @@ * void const * {@link #next}; * XrSession {@link #session}; * } - */ -public class XrEventDataInteractionProfileChanged extends Struct implements NativeResource { + */ +public class XrEventDataInteractionProfileChanged extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,24 +54,24 @@ public class XrEventDataInteractionProfileChanged extends Struct implements NativeResource { @@ -307,23 +307,23 @@ protected Buffer self() { protected XrEventDataInteractionProfileChanged getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataInteractionProfileChanged#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataInteractionProfileChanged.ntype(address()); } - /** @return the value of the {@link XrEventDataInteractionProfileChanged#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataInteractionProfileChanged.nnext(address()); } - /** @return the value of the {@link XrEventDataInteractionProfileChanged#session} field. */ - @NativeType("XrSession") - public long session() { return XrEventDataInteractionProfileChanged.nsession(address()); } - - /** Sets the specified value to the {@link XrEventDataInteractionProfileChanged#type} field. */ - public XrEventDataInteractionProfileChanged.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataInteractionProfileChanged.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED} value to the {@link XrEventDataInteractionProfileChanged#type} field. */ - public XrEventDataInteractionProfileChanged.Buffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED); } - /** Sets the specified value to the {@link XrEventDataInteractionProfileChanged#next} field. */ - public XrEventDataInteractionProfileChanged.Buffer next(@NativeType("void const *") long value) { XrEventDataInteractionProfileChanged.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataInteractionProfileChanged#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataInteractionProfileChanged.ntype(address()); } + /** @return the value of the {@link XrEventDataInteractionProfileChanged#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataInteractionProfileChanged.nnext(address()); } + /** @return the value of the {@link XrEventDataInteractionProfileChanged#session} field. */ + @NativeType("XrSession") + public long session() { return XrEventDataInteractionProfileChanged.nsession(address()); } + + /** Sets the specified value to the {@link XrEventDataInteractionProfileChanged#type} field. */ + public XrEventDataInteractionProfileChanged.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataInteractionProfileChanged.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED} value to the {@link XrEventDataInteractionProfileChanged#type} field. */ + public XrEventDataInteractionProfileChanged.Buffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED); } + /** Sets the specified value to the {@link XrEventDataInteractionProfileChanged#next} field. */ + public XrEventDataInteractionProfileChanged.Buffer next(@NativeType("void const *") long value) { XrEventDataInteractionProfileChanged.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataMainSessionVisibilityChangedEXTX.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataMainSessionVisibilityChangedEXTX.java index 746d37180f..57348c61ed 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataMainSessionVisibilityChangedEXTX.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataMainSessionVisibilityChangedEXTX.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Event representing main session visibility change. * @@ -32,7 +32,7 @@ *
                              *
                            • The {@link EXTXOverlay XR_EXTX_overlay} extension must be enabled prior to using {@link XrEventDataMainSessionVisibilityChangedEXTX}
                            • *
                            • {@code type} must be {@link EXTXOverlay#XR_TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • *
                            * *

                            Layout

                            @@ -44,8 +44,8 @@ * XrBool32 visible; * XrOverlayMainSessionFlagsEXTX flags; * } - */ -public class XrEventDataMainSessionVisibilityChangedEXTX extends Struct implements NativeResource { + */ +public class XrEventDataMainSessionVisibilityChangedEXTX extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,27 +55,27 @@ public class XrEventDataMainSessionVisibilityChangedEXTX extends Struct implements NativeResource { @@ -316,26 +316,26 @@ protected Buffer self() { protected XrEventDataMainSessionVisibilityChangedEXTX getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataMainSessionVisibilityChangedEXTX.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataMainSessionVisibilityChangedEXTX.nnext(address()); } - /** @return the value of the {@code visible} field. */ - @NativeType("XrBool32") - public boolean visible() { return XrEventDataMainSessionVisibilityChangedEXTX.nvisible(address()) != 0; } - /** @return the value of the {@code flags} field. */ - @NativeType("XrOverlayMainSessionFlagsEXTX") - public long flags() { return XrEventDataMainSessionVisibilityChangedEXTX.nflags(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrEventDataMainSessionVisibilityChangedEXTX.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataMainSessionVisibilityChangedEXTX.ntype(address(), value); return this; } - /** Sets the {@link EXTXOverlay#XR_TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX} value to the {@code type} field. */ - public XrEventDataMainSessionVisibilityChangedEXTX.Buffer type$Default() { return type(EXTXOverlay.XR_TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX); } - /** Sets the specified value to the {@code next} field. */ - public XrEventDataMainSessionVisibilityChangedEXTX.Buffer next(@NativeType("void const *") long value) { XrEventDataMainSessionVisibilityChangedEXTX.nnext(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataMainSessionVisibilityChangedEXTX.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataMainSessionVisibilityChangedEXTX.nnext(address()); } + /** @return the value of the {@code visible} field. */ + @NativeType("XrBool32") + public boolean visible() { return XrEventDataMainSessionVisibilityChangedEXTX.nvisible(address()) != 0; } + /** @return the value of the {@code flags} field. */ + @NativeType("XrOverlayMainSessionFlagsEXTX") + public long flags() { return XrEventDataMainSessionVisibilityChangedEXTX.nflags(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrEventDataMainSessionVisibilityChangedEXTX.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataMainSessionVisibilityChangedEXTX.ntype(address(), value); return this; } + /** Sets the {@link EXTXOverlay#XR_TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX} value to the {@code type} field. */ + public XrEventDataMainSessionVisibilityChangedEXTX.Buffer type$Default() { return type(EXTXOverlay.XR_TYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTX); } + /** Sets the specified value to the {@code next} field. */ + public XrEventDataMainSessionVisibilityChangedEXTX.Buffer next(@NativeType("void const *") long value) { XrEventDataMainSessionVisibilityChangedEXTX.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataMarkerTrackingUpdateVARJO.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataMarkerTrackingUpdateVARJO.java index 876843e705..79bd0875fa 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataMarkerTrackingUpdateVARJO.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataMarkerTrackingUpdateVARJO.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Structure representing marker tracking information. * @@ -27,7 +27,7 @@ *
                              *
                            • The {@link VARJOMarkerTracking XR_VARJO_marker_tracking} extension must be enabled prior to using {@link XrEventDataMarkerTrackingUpdateVARJO}
                            • *
                            • {@code type} must be {@link VARJOMarkerTracking#XR_TYPE_EVENT_DATA_MARKER_TRACKING_UPDATE_VARJO TYPE_EVENT_DATA_MARKER_TRACKING_UPDATE_VARJO}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • *
                            * *
                            See Also
                            @@ -45,8 +45,8 @@ * XrBool32 isPredicted; * XrTime {@link #time}; * } - */ -public class XrEventDataMarkerTrackingUpdateVARJO extends Struct implements NativeResource { + */ +public class XrEventDataMarkerTrackingUpdateVARJO extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,33 +56,33 @@ public class XrEventDataMarkerTrackingUpdateVARJO extends Struct implements NativeResource { @@ -333,32 +333,32 @@ protected Buffer self() { protected XrEventDataMarkerTrackingUpdateVARJO getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataMarkerTrackingUpdateVARJO#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataMarkerTrackingUpdateVARJO.ntype(address()); } - /** @return the value of the {@link XrEventDataMarkerTrackingUpdateVARJO#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataMarkerTrackingUpdateVARJO.nnext(address()); } - /** @return the value of the {@link XrEventDataMarkerTrackingUpdateVARJO#markerId} field. */ - @NativeType("uint64_t") - public long markerId() { return XrEventDataMarkerTrackingUpdateVARJO.nmarkerId(address()); } - /** @return the value of the {@link XrEventDataMarkerTrackingUpdateVARJO#isActive} field. */ - @NativeType("XrBool32") - public boolean isActive() { return XrEventDataMarkerTrackingUpdateVARJO.nisActive(address()) != 0; } - /** @return the value of the {@code isPredicted} field. */ - @NativeType("XrBool32") - public boolean isPredicted() { return XrEventDataMarkerTrackingUpdateVARJO.nisPredicted(address()) != 0; } - /** @return the value of the {@link XrEventDataMarkerTrackingUpdateVARJO#time} field. */ - @NativeType("XrTime") - public long time() { return XrEventDataMarkerTrackingUpdateVARJO.ntime(address()); } - - /** Sets the specified value to the {@link XrEventDataMarkerTrackingUpdateVARJO#type} field. */ - public XrEventDataMarkerTrackingUpdateVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataMarkerTrackingUpdateVARJO.ntype(address(), value); return this; } - /** Sets the {@link VARJOMarkerTracking#XR_TYPE_EVENT_DATA_MARKER_TRACKING_UPDATE_VARJO TYPE_EVENT_DATA_MARKER_TRACKING_UPDATE_VARJO} value to the {@link XrEventDataMarkerTrackingUpdateVARJO#type} field. */ - public XrEventDataMarkerTrackingUpdateVARJO.Buffer type$Default() { return type(VARJOMarkerTracking.XR_TYPE_EVENT_DATA_MARKER_TRACKING_UPDATE_VARJO); } - /** Sets the specified value to the {@link XrEventDataMarkerTrackingUpdateVARJO#next} field. */ - public XrEventDataMarkerTrackingUpdateVARJO.Buffer next(@NativeType("void const *") long value) { XrEventDataMarkerTrackingUpdateVARJO.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataMarkerTrackingUpdateVARJO#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataMarkerTrackingUpdateVARJO.ntype(address()); } + /** @return the value of the {@link XrEventDataMarkerTrackingUpdateVARJO#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataMarkerTrackingUpdateVARJO.nnext(address()); } + /** @return the value of the {@link XrEventDataMarkerTrackingUpdateVARJO#markerId} field. */ + @NativeType("uint64_t") + public long markerId() { return XrEventDataMarkerTrackingUpdateVARJO.nmarkerId(address()); } + /** @return the value of the {@link XrEventDataMarkerTrackingUpdateVARJO#isActive} field. */ + @NativeType("XrBool32") + public boolean isActive() { return XrEventDataMarkerTrackingUpdateVARJO.nisActive(address()) != 0; } + /** @return the value of the {@code isPredicted} field. */ + @NativeType("XrBool32") + public boolean isPredicted() { return XrEventDataMarkerTrackingUpdateVARJO.nisPredicted(address()) != 0; } + /** @return the value of the {@link XrEventDataMarkerTrackingUpdateVARJO#time} field. */ + @NativeType("XrTime") + public long time() { return XrEventDataMarkerTrackingUpdateVARJO.ntime(address()); } + + /** Sets the specified value to the {@link XrEventDataMarkerTrackingUpdateVARJO#type} field. */ + public XrEventDataMarkerTrackingUpdateVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataMarkerTrackingUpdateVARJO.ntype(address(), value); return this; } + /** Sets the {@link VARJOMarkerTracking#XR_TYPE_EVENT_DATA_MARKER_TRACKING_UPDATE_VARJO TYPE_EVENT_DATA_MARKER_TRACKING_UPDATE_VARJO} value to the {@link XrEventDataMarkerTrackingUpdateVARJO#type} field. */ + public XrEventDataMarkerTrackingUpdateVARJO.Buffer type$Default() { return type(VARJOMarkerTracking.XR_TYPE_EVENT_DATA_MARKER_TRACKING_UPDATE_VARJO); } + /** Sets the specified value to the {@link XrEventDataMarkerTrackingUpdateVARJO#next} field. */ + public XrEventDataMarkerTrackingUpdateVARJO.Buffer next(@NativeType("void const *") long value) { XrEventDataMarkerTrackingUpdateVARJO.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataPassthroughStateChangedFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataPassthroughStateChangedFB.java index 3a95b217dc..fa123546c2 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataPassthroughStateChangedFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataPassthroughStateChangedFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * An event for passthrough state changes. * @@ -31,7 +31,7 @@ *
                              *
                            • The {@link FBPassthrough XR_FB_passthrough} extension must be enabled prior to using {@link XrEventDataPassthroughStateChangedFB}
                            • *
                            • {@code type} must be {@link FBPassthrough#XR_TYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB TYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • *
                            • {@code flags} must be a valid combination of {@code XrPassthroughStateChangedFlagBitsFB} values
                            • *
                            • {@code flags} must not be 0
                            • *
                            @@ -44,8 +44,8 @@ * void const * next; * XrPassthroughStateChangedFlagsFB flags; * } - */ -public class XrEventDataPassthroughStateChangedFB extends Struct implements NativeResource { + */ +public class XrEventDataPassthroughStateChangedFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,24 +55,24 @@ public class XrEventDataPassthroughStateChangedFB extends Struct implements NativeResource { @@ -304,25 +304,25 @@ protected Buffer self() { protected XrEventDataPassthroughStateChangedFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataPassthroughStateChangedFB.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataPassthroughStateChangedFB.nnext(address()); } - /** @return the value of the {@code flags} field. */ - @NativeType("XrPassthroughStateChangedFlagsFB") - public long flags() { return XrEventDataPassthroughStateChangedFB.nflags(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrEventDataPassthroughStateChangedFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataPassthroughStateChangedFB.ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB TYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB} value to the {@code type} field. */ - public XrEventDataPassthroughStateChangedFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB); } - /** Sets the specified value to the {@code next} field. */ - public XrEventDataPassthroughStateChangedFB.Buffer next(@NativeType("void const *") long value) { XrEventDataPassthroughStateChangedFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@code flags} field. */ - public XrEventDataPassthroughStateChangedFB.Buffer flags(@NativeType("XrPassthroughStateChangedFlagsFB") long value) { XrEventDataPassthroughStateChangedFB.nflags(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataPassthroughStateChangedFB.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataPassthroughStateChangedFB.nnext(address()); } + /** @return the value of the {@code flags} field. */ + @NativeType("XrPassthroughStateChangedFlagsFB") + public long flags() { return XrEventDataPassthroughStateChangedFB.nflags(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrEventDataPassthroughStateChangedFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataPassthroughStateChangedFB.ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB TYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB} value to the {@code type} field. */ + public XrEventDataPassthroughStateChangedFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrEventDataPassthroughStateChangedFB.Buffer next(@NativeType("void const *") long value) { XrEventDataPassthroughStateChangedFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@code flags} field. */ + public XrEventDataPassthroughStateChangedFB.Buffer flags(@NativeType("XrPassthroughStateChangedFlagsFB") long value) { XrEventDataPassthroughStateChangedFB.nflags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataPerfSettingsEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataPerfSettingsEXT.java index b027b4f7cf..d1ee46a07b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataPerfSettingsEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataPerfSettingsEXT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * XrEventDataPerfSettingsEXT. * @@ -23,7 +23,7 @@ *
                              *
                            • The {@link EXTPerformanceSettings XR_EXT_performance_settings} extension must be enabled prior to using {@link XrEventDataPerfSettingsEXT}
                            • *
                            • {@code type} must be {@link EXTPerformanceSettings#XR_TYPE_EVENT_DATA_PERF_SETTINGS_EXT TYPE_EVENT_DATA_PERF_SETTINGS_EXT}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • *
                            * *

                            Layout

                            @@ -37,8 +37,8 @@ * XrPerfSettingsNotificationLevelEXT {@link #fromLevel}; * XrPerfSettingsNotificationLevelEXT {@link #toLevel}; * } - */ -public class XrEventDataPerfSettingsEXT extends Struct implements NativeResource { + */ +public class XrEventDataPerfSettingsEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,33 +48,33 @@ public class XrEventDataPerfSettingsEXT extends Struct implements NativeResource { @@ -325,32 +325,32 @@ protected Buffer self() { protected XrEventDataPerfSettingsEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataPerfSettingsEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataPerfSettingsEXT.ntype(address()); } - /** @return the value of the {@link XrEventDataPerfSettingsEXT#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataPerfSettingsEXT.nnext(address()); } - /** @return the value of the {@link XrEventDataPerfSettingsEXT#domain} field. */ - @NativeType("XrPerfSettingsDomainEXT") - public int domain() { return XrEventDataPerfSettingsEXT.ndomain(address()); } - /** @return the value of the {@link XrEventDataPerfSettingsEXT#subDomain} field. */ - @NativeType("XrPerfSettingsSubDomainEXT") - public int subDomain() { return XrEventDataPerfSettingsEXT.nsubDomain(address()); } - /** @return the value of the {@link XrEventDataPerfSettingsEXT#fromLevel} field. */ - @NativeType("XrPerfSettingsNotificationLevelEXT") - public int fromLevel() { return XrEventDataPerfSettingsEXT.nfromLevel(address()); } - /** @return the value of the {@link XrEventDataPerfSettingsEXT#toLevel} field. */ - @NativeType("XrPerfSettingsNotificationLevelEXT") - public int toLevel() { return XrEventDataPerfSettingsEXT.ntoLevel(address()); } - - /** Sets the specified value to the {@link XrEventDataPerfSettingsEXT#type} field. */ - public XrEventDataPerfSettingsEXT.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataPerfSettingsEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTPerformanceSettings#XR_TYPE_EVENT_DATA_PERF_SETTINGS_EXT TYPE_EVENT_DATA_PERF_SETTINGS_EXT} value to the {@link XrEventDataPerfSettingsEXT#type} field. */ - public XrEventDataPerfSettingsEXT.Buffer type$Default() { return type(EXTPerformanceSettings.XR_TYPE_EVENT_DATA_PERF_SETTINGS_EXT); } - /** Sets the specified value to the {@link XrEventDataPerfSettingsEXT#next} field. */ - public XrEventDataPerfSettingsEXT.Buffer next(@NativeType("void const *") long value) { XrEventDataPerfSettingsEXT.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataPerfSettingsEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataPerfSettingsEXT.ntype(address()); } + /** @return the value of the {@link XrEventDataPerfSettingsEXT#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataPerfSettingsEXT.nnext(address()); } + /** @return the value of the {@link XrEventDataPerfSettingsEXT#domain} field. */ + @NativeType("XrPerfSettingsDomainEXT") + public int domain() { return XrEventDataPerfSettingsEXT.ndomain(address()); } + /** @return the value of the {@link XrEventDataPerfSettingsEXT#subDomain} field. */ + @NativeType("XrPerfSettingsSubDomainEXT") + public int subDomain() { return XrEventDataPerfSettingsEXT.nsubDomain(address()); } + /** @return the value of the {@link XrEventDataPerfSettingsEXT#fromLevel} field. */ + @NativeType("XrPerfSettingsNotificationLevelEXT") + public int fromLevel() { return XrEventDataPerfSettingsEXT.nfromLevel(address()); } + /** @return the value of the {@link XrEventDataPerfSettingsEXT#toLevel} field. */ + @NativeType("XrPerfSettingsNotificationLevelEXT") + public int toLevel() { return XrEventDataPerfSettingsEXT.ntoLevel(address()); } + + /** Sets the specified value to the {@link XrEventDataPerfSettingsEXT#type} field. */ + public XrEventDataPerfSettingsEXT.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataPerfSettingsEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTPerformanceSettings#XR_TYPE_EVENT_DATA_PERF_SETTINGS_EXT TYPE_EVENT_DATA_PERF_SETTINGS_EXT} value to the {@link XrEventDataPerfSettingsEXT#type} field. */ + public XrEventDataPerfSettingsEXT.Buffer type$Default() { return type(EXTPerformanceSettings.XR_TYPE_EVENT_DATA_PERF_SETTINGS_EXT); } + /** Sets the specified value to the {@link XrEventDataPerfSettingsEXT#next} field. */ + public XrEventDataPerfSettingsEXT.Buffer next(@NativeType("void const *") long value) { XrEventDataPerfSettingsEXT.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataReferenceSpaceChangePending.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataReferenceSpaceChangePending.java index a89d2e7960..ea463082e5 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataReferenceSpaceChangePending.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataReferenceSpaceChangePending.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Notifies the application that a reference space is changing. * @@ -22,7 +22,7 @@ * * * *
                            See Also
                            @@ -41,8 +41,8 @@ * XrBool32 {@link #poseValid}; * {@link XrPosef XrPosef} {@link #poseInPreviousSpace}; * } - */ -public class XrEventDataReferenceSpaceChangePending extends Struct implements NativeResource { + */ +public class XrEventDataReferenceSpaceChangePending extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,36 +52,36 @@ public class XrEventDataReferenceSpaceChangePending extends Struct implements NativeResource { @@ -336,34 +336,34 @@ protected Buffer self() { protected XrEventDataReferenceSpaceChangePending getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataReferenceSpaceChangePending#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataReferenceSpaceChangePending.ntype(address()); } - /** @return the value of the {@link XrEventDataReferenceSpaceChangePending#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataReferenceSpaceChangePending.nnext(address()); } - /** @return the value of the {@link XrEventDataReferenceSpaceChangePending#session} field. */ - @NativeType("XrSession") - public long session() { return XrEventDataReferenceSpaceChangePending.nsession(address()); } - /** @return the value of the {@link XrEventDataReferenceSpaceChangePending#referenceSpaceType} field. */ - @NativeType("XrReferenceSpaceType") - public int referenceSpaceType() { return XrEventDataReferenceSpaceChangePending.nreferenceSpaceType(address()); } - /** @return the value of the {@link XrEventDataReferenceSpaceChangePending#changeTime} field. */ - @NativeType("XrTime") - public long changeTime() { return XrEventDataReferenceSpaceChangePending.nchangeTime(address()); } - /** @return the value of the {@link XrEventDataReferenceSpaceChangePending#poseValid} field. */ - @NativeType("XrBool32") - public boolean poseValid() { return XrEventDataReferenceSpaceChangePending.nposeValid(address()) != 0; } - /** @return a {@link XrPosef} view of the {@link XrEventDataReferenceSpaceChangePending#poseInPreviousSpace} field. */ - public XrPosef poseInPreviousSpace() { return XrEventDataReferenceSpaceChangePending.nposeInPreviousSpace(address()); } - - /** Sets the specified value to the {@link XrEventDataReferenceSpaceChangePending#type} field. */ - public XrEventDataReferenceSpaceChangePending.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataReferenceSpaceChangePending.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDING TYPE_EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDING} value to the {@link XrEventDataReferenceSpaceChangePending#type} field. */ - public XrEventDataReferenceSpaceChangePending.Buffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDING); } - /** Sets the specified value to the {@link XrEventDataReferenceSpaceChangePending#next} field. */ - public XrEventDataReferenceSpaceChangePending.Buffer next(@NativeType("void const *") long value) { XrEventDataReferenceSpaceChangePending.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataReferenceSpaceChangePending#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataReferenceSpaceChangePending.ntype(address()); } + /** @return the value of the {@link XrEventDataReferenceSpaceChangePending#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataReferenceSpaceChangePending.nnext(address()); } + /** @return the value of the {@link XrEventDataReferenceSpaceChangePending#session} field. */ + @NativeType("XrSession") + public long session() { return XrEventDataReferenceSpaceChangePending.nsession(address()); } + /** @return the value of the {@link XrEventDataReferenceSpaceChangePending#referenceSpaceType} field. */ + @NativeType("XrReferenceSpaceType") + public int referenceSpaceType() { return XrEventDataReferenceSpaceChangePending.nreferenceSpaceType(address()); } + /** @return the value of the {@link XrEventDataReferenceSpaceChangePending#changeTime} field. */ + @NativeType("XrTime") + public long changeTime() { return XrEventDataReferenceSpaceChangePending.nchangeTime(address()); } + /** @return the value of the {@link XrEventDataReferenceSpaceChangePending#poseValid} field. */ + @NativeType("XrBool32") + public boolean poseValid() { return XrEventDataReferenceSpaceChangePending.nposeValid(address()) != 0; } + /** @return a {@link XrPosef} view of the {@link XrEventDataReferenceSpaceChangePending#poseInPreviousSpace} field. */ + public XrPosef poseInPreviousSpace() { return XrEventDataReferenceSpaceChangePending.nposeInPreviousSpace(address()); } + + /** Sets the specified value to the {@link XrEventDataReferenceSpaceChangePending#type} field. */ + public XrEventDataReferenceSpaceChangePending.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataReferenceSpaceChangePending.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDING TYPE_EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDING} value to the {@link XrEventDataReferenceSpaceChangePending#type} field. */ + public XrEventDataReferenceSpaceChangePending.Buffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDING); } + /** Sets the specified value to the {@link XrEventDataReferenceSpaceChangePending#next} field. */ + public XrEventDataReferenceSpaceChangePending.Buffer next(@NativeType("void const *") long value) { XrEventDataReferenceSpaceChangePending.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSceneCaptureCompleteFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSceneCaptureCompleteFB.java index bad3f1baed..4ce64534f7 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSceneCaptureCompleteFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSceneCaptureCompleteFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Event which occurs after a scene capture operation completes. * @@ -27,7 +27,7 @@ *
                              *
                            • The {@link FBSceneCapture XR_FB_scene_capture} extension must be enabled prior to using {@link XrEventDataSceneCaptureCompleteFB}
                            • *
                            • {@code type} must be {@link FBSceneCapture#XR_TYPE_EVENT_DATA_SCENE_CAPTURE_COMPLETE_FB TYPE_EVENT_DATA_SCENE_CAPTURE_COMPLETE_FB}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • *
                            • {@code result} must be a valid {@code XrResult} value
                            • *
                            * @@ -40,8 +40,8 @@ * XrAsyncRequestIdFB {@link #requestId}; * XrResult {@link #result}; * } - */ -public class XrEventDataSceneCaptureCompleteFB extends Struct implements NativeResource { + */ +public class XrEventDataSceneCaptureCompleteFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,27 +51,27 @@ public class XrEventDataSceneCaptureCompleteFB extends Struct implements NativeResource { @@ -314,30 +314,30 @@ protected Buffer self() { protected XrEventDataSceneCaptureCompleteFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataSceneCaptureCompleteFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataSceneCaptureCompleteFB.ntype(address()); } - /** @return the value of the {@link XrEventDataSceneCaptureCompleteFB#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataSceneCaptureCompleteFB.nnext(address()); } - /** @return the value of the {@link XrEventDataSceneCaptureCompleteFB#requestId} field. */ - @NativeType("XrAsyncRequestIdFB") - public long requestId() { return XrEventDataSceneCaptureCompleteFB.nrequestId(address()); } - /** @return the value of the {@link XrEventDataSceneCaptureCompleteFB#result} field. */ - @NativeType("XrResult") - public int result() { return XrEventDataSceneCaptureCompleteFB.nresult(address()); } - - /** Sets the specified value to the {@link XrEventDataSceneCaptureCompleteFB#type} field. */ - public XrEventDataSceneCaptureCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSceneCaptureCompleteFB.ntype(address(), value); return this; } - /** Sets the {@link FBSceneCapture#XR_TYPE_EVENT_DATA_SCENE_CAPTURE_COMPLETE_FB TYPE_EVENT_DATA_SCENE_CAPTURE_COMPLETE_FB} value to the {@link XrEventDataSceneCaptureCompleteFB#type} field. */ - public XrEventDataSceneCaptureCompleteFB.Buffer type$Default() { return type(FBSceneCapture.XR_TYPE_EVENT_DATA_SCENE_CAPTURE_COMPLETE_FB); } - /** Sets the specified value to the {@link XrEventDataSceneCaptureCompleteFB#next} field. */ - public XrEventDataSceneCaptureCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSceneCaptureCompleteFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrEventDataSceneCaptureCompleteFB#requestId} field. */ - public XrEventDataSceneCaptureCompleteFB.Buffer requestId(@NativeType("XrAsyncRequestIdFB") long value) { XrEventDataSceneCaptureCompleteFB.nrequestId(address(), value); return this; } - /** Sets the specified value to the {@link XrEventDataSceneCaptureCompleteFB#result} field. */ - public XrEventDataSceneCaptureCompleteFB.Buffer result(@NativeType("XrResult") int value) { XrEventDataSceneCaptureCompleteFB.nresult(address(), value); return this; } + + /** @return the value of the {@link XrEventDataSceneCaptureCompleteFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataSceneCaptureCompleteFB.ntype(address()); } + /** @return the value of the {@link XrEventDataSceneCaptureCompleteFB#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataSceneCaptureCompleteFB.nnext(address()); } + /** @return the value of the {@link XrEventDataSceneCaptureCompleteFB#requestId} field. */ + @NativeType("XrAsyncRequestIdFB") + public long requestId() { return XrEventDataSceneCaptureCompleteFB.nrequestId(address()); } + /** @return the value of the {@link XrEventDataSceneCaptureCompleteFB#result} field. */ + @NativeType("XrResult") + public int result() { return XrEventDataSceneCaptureCompleteFB.nresult(address()); } + + /** Sets the specified value to the {@link XrEventDataSceneCaptureCompleteFB#type} field. */ + public XrEventDataSceneCaptureCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSceneCaptureCompleteFB.ntype(address(), value); return this; } + /** Sets the {@link FBSceneCapture#XR_TYPE_EVENT_DATA_SCENE_CAPTURE_COMPLETE_FB TYPE_EVENT_DATA_SCENE_CAPTURE_COMPLETE_FB} value to the {@link XrEventDataSceneCaptureCompleteFB#type} field. */ + public XrEventDataSceneCaptureCompleteFB.Buffer type$Default() { return type(FBSceneCapture.XR_TYPE_EVENT_DATA_SCENE_CAPTURE_COMPLETE_FB); } + /** Sets the specified value to the {@link XrEventDataSceneCaptureCompleteFB#next} field. */ + public XrEventDataSceneCaptureCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSceneCaptureCompleteFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrEventDataSceneCaptureCompleteFB#requestId} field. */ + public XrEventDataSceneCaptureCompleteFB.Buffer requestId(@NativeType("XrAsyncRequestIdFB") long value) { XrEventDataSceneCaptureCompleteFB.nrequestId(address(), value); return this; } + /** Sets the specified value to the {@link XrEventDataSceneCaptureCompleteFB#result} field. */ + public XrEventDataSceneCaptureCompleteFB.Buffer result(@NativeType("XrResult") int value) { XrEventDataSceneCaptureCompleteFB.nresult(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSessionStateChanged.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSessionStateChanged.java index 5109368beb..ef87b71039 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSessionStateChanged.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSessionStateChanged.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Event indicating session state changed. * @@ -26,7 +26,7 @@ * * * *
                            See Also
                            @@ -43,8 +43,8 @@ * XrSessionState {@link #state}; * XrTime {@link #time}; * } - */ -public class XrEventDataSessionStateChanged extends Struct implements NativeResource { + */ +public class XrEventDataSessionStateChanged extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,30 +54,30 @@ public class XrEventDataSessionStateChanged extends Struct implements NativeResource { @@ -323,29 +323,29 @@ protected Buffer self() { protected XrEventDataSessionStateChanged getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataSessionStateChanged#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataSessionStateChanged.ntype(address()); } - /** @return the value of the {@link XrEventDataSessionStateChanged#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataSessionStateChanged.nnext(address()); } - /** @return the value of the {@link XrEventDataSessionStateChanged#session} field. */ - @NativeType("XrSession") - public long session() { return XrEventDataSessionStateChanged.nsession(address()); } - /** @return the value of the {@link XrEventDataSessionStateChanged#state} field. */ - @NativeType("XrSessionState") - public int state() { return XrEventDataSessionStateChanged.nstate(address()); } - /** @return the value of the {@link XrEventDataSessionStateChanged#time} field. */ - @NativeType("XrTime") - public long time() { return XrEventDataSessionStateChanged.ntime(address()); } - - /** Sets the specified value to the {@link XrEventDataSessionStateChanged#type} field. */ - public XrEventDataSessionStateChanged.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSessionStateChanged.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED TYPE_EVENT_DATA_SESSION_STATE_CHANGED} value to the {@link XrEventDataSessionStateChanged#type} field. */ - public XrEventDataSessionStateChanged.Buffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED); } - /** Sets the specified value to the {@link XrEventDataSessionStateChanged#next} field. */ - public XrEventDataSessionStateChanged.Buffer next(@NativeType("void const *") long value) { XrEventDataSessionStateChanged.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataSessionStateChanged#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataSessionStateChanged.ntype(address()); } + /** @return the value of the {@link XrEventDataSessionStateChanged#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataSessionStateChanged.nnext(address()); } + /** @return the value of the {@link XrEventDataSessionStateChanged#session} field. */ + @NativeType("XrSession") + public long session() { return XrEventDataSessionStateChanged.nsession(address()); } + /** @return the value of the {@link XrEventDataSessionStateChanged#state} field. */ + @NativeType("XrSessionState") + public int state() { return XrEventDataSessionStateChanged.nstate(address()); } + /** @return the value of the {@link XrEventDataSessionStateChanged#time} field. */ + @NativeType("XrTime") + public long time() { return XrEventDataSessionStateChanged.ntime(address()); } + + /** Sets the specified value to the {@link XrEventDataSessionStateChanged#type} field. */ + public XrEventDataSessionStateChanged.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSessionStateChanged.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED TYPE_EVENT_DATA_SESSION_STATE_CHANGED} value to the {@link XrEventDataSessionStateChanged#type} field. */ + public XrEventDataSessionStateChanged.Buffer type$Default() { return type(XR10.XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED); } + /** Sets the specified value to the {@link XrEventDataSessionStateChanged#next} field. */ + public XrEventDataSessionStateChanged.Buffer next(@NativeType("void const *") long value) { XrEventDataSessionStateChanged.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceEraseCompleteFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceEraseCompleteFB.java index 03ba83b5e0..f9f4723ac5 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceEraseCompleteFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceEraseCompleteFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes the result of a save operation. * @@ -27,7 +27,7 @@ *
                              *
                            • The {@link FBSpatialEntityStorage XR_FB_spatial_entity_storage} extension must be enabled prior to using {@link XrEventDataSpaceEraseCompleteFB}
                            • *
                            • {@code type} must be {@link FBSpatialEntityStorage#XR_TYPE_EVENT_DATA_SPACE_ERASE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_ERASE_COMPLETE_FB}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • *
                            * *
                            See Also
                            @@ -46,8 +46,8 @@ * {@link XrUuidEXT XrUuidEXT} {@link #uuid}; * XrSpaceStorageLocationFB {@link #location}; * } - */ -public class XrEventDataSpaceEraseCompleteFB extends Struct implements NativeResource { + */ +public class XrEventDataSpaceEraseCompleteFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,36 +57,36 @@ public class XrEventDataSpaceEraseCompleteFB extends Struct implements NativeResource { @@ -341,34 +341,34 @@ protected Buffer self() { protected XrEventDataSpaceEraseCompleteFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataSpaceEraseCompleteFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataSpaceEraseCompleteFB.ntype(address()); } - /** @return the value of the {@link XrEventDataSpaceEraseCompleteFB#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataSpaceEraseCompleteFB.nnext(address()); } - /** @return the value of the {@link XrEventDataSpaceEraseCompleteFB#requestId} field. */ - @NativeType("XrAsyncRequestIdFB") - public long requestId() { return XrEventDataSpaceEraseCompleteFB.nrequestId(address()); } - /** @return the value of the {@link XrEventDataSpaceEraseCompleteFB#result} field. */ - @NativeType("XrResult") - public int result() { return XrEventDataSpaceEraseCompleteFB.nresult(address()); } - /** @return the value of the {@link XrEventDataSpaceEraseCompleteFB#space} field. */ - @NativeType("XrSpace") - public long space() { return XrEventDataSpaceEraseCompleteFB.nspace(address()); } - /** @return a {@link XrUuidEXT} view of the {@link XrEventDataSpaceEraseCompleteFB#uuid} field. */ - public XrUuidEXT uuid() { return XrEventDataSpaceEraseCompleteFB.nuuid(address()); } - /** @return the value of the {@link XrEventDataSpaceEraseCompleteFB#location} field. */ - @NativeType("XrSpaceStorageLocationFB") - public int location() { return XrEventDataSpaceEraseCompleteFB.nlocation(address()); } - - /** Sets the specified value to the {@link XrEventDataSpaceEraseCompleteFB#type} field. */ - public XrEventDataSpaceEraseCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceEraseCompleteFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityStorage#XR_TYPE_EVENT_DATA_SPACE_ERASE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_ERASE_COMPLETE_FB} value to the {@link XrEventDataSpaceEraseCompleteFB#type} field. */ - public XrEventDataSpaceEraseCompleteFB.Buffer type$Default() { return type(FBSpatialEntityStorage.XR_TYPE_EVENT_DATA_SPACE_ERASE_COMPLETE_FB); } - /** Sets the specified value to the {@link XrEventDataSpaceEraseCompleteFB#next} field. */ - public XrEventDataSpaceEraseCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceEraseCompleteFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataSpaceEraseCompleteFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataSpaceEraseCompleteFB.ntype(address()); } + /** @return the value of the {@link XrEventDataSpaceEraseCompleteFB#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataSpaceEraseCompleteFB.nnext(address()); } + /** @return the value of the {@link XrEventDataSpaceEraseCompleteFB#requestId} field. */ + @NativeType("XrAsyncRequestIdFB") + public long requestId() { return XrEventDataSpaceEraseCompleteFB.nrequestId(address()); } + /** @return the value of the {@link XrEventDataSpaceEraseCompleteFB#result} field. */ + @NativeType("XrResult") + public int result() { return XrEventDataSpaceEraseCompleteFB.nresult(address()); } + /** @return the value of the {@link XrEventDataSpaceEraseCompleteFB#space} field. */ + @NativeType("XrSpace") + public long space() { return XrEventDataSpaceEraseCompleteFB.nspace(address()); } + /** @return a {@link XrUuidEXT} view of the {@link XrEventDataSpaceEraseCompleteFB#uuid} field. */ + public XrUuidEXT uuid() { return XrEventDataSpaceEraseCompleteFB.nuuid(address()); } + /** @return the value of the {@link XrEventDataSpaceEraseCompleteFB#location} field. */ + @NativeType("XrSpaceStorageLocationFB") + public int location() { return XrEventDataSpaceEraseCompleteFB.nlocation(address()); } + + /** Sets the specified value to the {@link XrEventDataSpaceEraseCompleteFB#type} field. */ + public XrEventDataSpaceEraseCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceEraseCompleteFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityStorage#XR_TYPE_EVENT_DATA_SPACE_ERASE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_ERASE_COMPLETE_FB} value to the {@link XrEventDataSpaceEraseCompleteFB#type} field. */ + public XrEventDataSpaceEraseCompleteFB.Buffer type$Default() { return type(FBSpatialEntityStorage.XR_TYPE_EVENT_DATA_SPACE_ERASE_COMPLETE_FB); } + /** Sets the specified value to the {@link XrEventDataSpaceEraseCompleteFB#next} field. */ + public XrEventDataSpaceEraseCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceEraseCompleteFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceListSaveCompleteFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceListSaveCompleteFB.java index 635983f9a7..bbc12182fe 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceListSaveCompleteFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceListSaveCompleteFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes the completion of a save list operation. * @@ -45,7 +45,7 @@ *
                              *
                            • The {@link FBSpatialEntityStorageBatch XR_FB_spatial_entity_storage_batch} extension must be enabled prior to using {@link XrEventDataSpaceListSaveCompleteFB}
                            • *
                            • {@code type} must be {@link FBSpatialEntityStorageBatch#XR_TYPE_EVENT_DATA_SPACE_LIST_SAVE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_LIST_SAVE_COMPLETE_FB}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • *
                            * *

                            Layout

                            @@ -57,8 +57,8 @@ * XrAsyncRequestIdFB {@link #requestId}; * XrResult {@link #result}; * } - */ -public class XrEventDataSpaceListSaveCompleteFB extends Struct implements NativeResource { + */ +public class XrEventDataSpaceListSaveCompleteFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -68,27 +68,27 @@ public class XrEventDataSpaceListSaveCompleteFB extends Struct implements NativeResource { @@ -329,26 +329,26 @@ protected Buffer self() { protected XrEventDataSpaceListSaveCompleteFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataSpaceListSaveCompleteFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataSpaceListSaveCompleteFB.ntype(address()); } - /** @return the value of the {@link XrEventDataSpaceListSaveCompleteFB#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataSpaceListSaveCompleteFB.nnext(address()); } - /** @return the value of the {@link XrEventDataSpaceListSaveCompleteFB#requestId} field. */ - @NativeType("XrAsyncRequestIdFB") - public long requestId() { return XrEventDataSpaceListSaveCompleteFB.nrequestId(address()); } - /** @return the value of the {@link XrEventDataSpaceListSaveCompleteFB#result} field. */ - @NativeType("XrResult") - public int result() { return XrEventDataSpaceListSaveCompleteFB.nresult(address()); } - - /** Sets the specified value to the {@link XrEventDataSpaceListSaveCompleteFB#type} field. */ - public XrEventDataSpaceListSaveCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceListSaveCompleteFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityStorageBatch#XR_TYPE_EVENT_DATA_SPACE_LIST_SAVE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_LIST_SAVE_COMPLETE_FB} value to the {@link XrEventDataSpaceListSaveCompleteFB#type} field. */ - public XrEventDataSpaceListSaveCompleteFB.Buffer type$Default() { return type(FBSpatialEntityStorageBatch.XR_TYPE_EVENT_DATA_SPACE_LIST_SAVE_COMPLETE_FB); } - /** Sets the specified value to the {@link XrEventDataSpaceListSaveCompleteFB#next} field. */ - public XrEventDataSpaceListSaveCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceListSaveCompleteFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataSpaceListSaveCompleteFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataSpaceListSaveCompleteFB.ntype(address()); } + /** @return the value of the {@link XrEventDataSpaceListSaveCompleteFB#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataSpaceListSaveCompleteFB.nnext(address()); } + /** @return the value of the {@link XrEventDataSpaceListSaveCompleteFB#requestId} field. */ + @NativeType("XrAsyncRequestIdFB") + public long requestId() { return XrEventDataSpaceListSaveCompleteFB.nrequestId(address()); } + /** @return the value of the {@link XrEventDataSpaceListSaveCompleteFB#result} field. */ + @NativeType("XrResult") + public int result() { return XrEventDataSpaceListSaveCompleteFB.nresult(address()); } + + /** Sets the specified value to the {@link XrEventDataSpaceListSaveCompleteFB#type} field. */ + public XrEventDataSpaceListSaveCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceListSaveCompleteFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityStorageBatch#XR_TYPE_EVENT_DATA_SPACE_LIST_SAVE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_LIST_SAVE_COMPLETE_FB} value to the {@link XrEventDataSpaceListSaveCompleteFB#type} field. */ + public XrEventDataSpaceListSaveCompleteFB.Buffer type$Default() { return type(FBSpatialEntityStorageBatch.XR_TYPE_EVENT_DATA_SPACE_LIST_SAVE_COMPLETE_FB); } + /** Sets the specified value to the {@link XrEventDataSpaceListSaveCompleteFB#next} field. */ + public XrEventDataSpaceListSaveCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceListSaveCompleteFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceQueryCompleteFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceQueryCompleteFB.java index 58d3273259..6468c6386e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceQueryCompleteFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceQueryCompleteFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Event indicating a query has finished. * @@ -27,7 +27,7 @@ *
                              *
                            • The {@link FBSpatialEntityQuery XR_FB_spatial_entity_query} extension must be enabled prior to using {@link XrEventDataSpaceQueryCompleteFB}
                            • *
                            • {@code type} must be {@link FBSpatialEntityQuery#XR_TYPE_EVENT_DATA_SPACE_QUERY_COMPLETE_FB TYPE_EVENT_DATA_SPACE_QUERY_COMPLETE_FB}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • *
                            * *

                            Layout

                            @@ -39,8 +39,8 @@ * XrAsyncRequestIdFB {@link #requestId}; * XrResult {@link #result}; * } - */ -public class XrEventDataSpaceQueryCompleteFB extends Struct implements NativeResource { + */ +public class XrEventDataSpaceQueryCompleteFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,27 +50,27 @@ public class XrEventDataSpaceQueryCompleteFB extends Struct implements NativeResource { @@ -311,26 +311,26 @@ protected Buffer self() { protected XrEventDataSpaceQueryCompleteFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataSpaceQueryCompleteFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataSpaceQueryCompleteFB.ntype(address()); } - /** @return the value of the {@link XrEventDataSpaceQueryCompleteFB#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataSpaceQueryCompleteFB.nnext(address()); } - /** @return the value of the {@link XrEventDataSpaceQueryCompleteFB#requestId} field. */ - @NativeType("XrAsyncRequestIdFB") - public long requestId() { return XrEventDataSpaceQueryCompleteFB.nrequestId(address()); } - /** @return the value of the {@link XrEventDataSpaceQueryCompleteFB#result} field. */ - @NativeType("XrResult") - public int result() { return XrEventDataSpaceQueryCompleteFB.nresult(address()); } - - /** Sets the specified value to the {@link XrEventDataSpaceQueryCompleteFB#type} field. */ - public XrEventDataSpaceQueryCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceQueryCompleteFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_EVENT_DATA_SPACE_QUERY_COMPLETE_FB TYPE_EVENT_DATA_SPACE_QUERY_COMPLETE_FB} value to the {@link XrEventDataSpaceQueryCompleteFB#type} field. */ - public XrEventDataSpaceQueryCompleteFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_EVENT_DATA_SPACE_QUERY_COMPLETE_FB); } - /** Sets the specified value to the {@link XrEventDataSpaceQueryCompleteFB#next} field. */ - public XrEventDataSpaceQueryCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceQueryCompleteFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataSpaceQueryCompleteFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataSpaceQueryCompleteFB.ntype(address()); } + /** @return the value of the {@link XrEventDataSpaceQueryCompleteFB#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataSpaceQueryCompleteFB.nnext(address()); } + /** @return the value of the {@link XrEventDataSpaceQueryCompleteFB#requestId} field. */ + @NativeType("XrAsyncRequestIdFB") + public long requestId() { return XrEventDataSpaceQueryCompleteFB.nrequestId(address()); } + /** @return the value of the {@link XrEventDataSpaceQueryCompleteFB#result} field. */ + @NativeType("XrResult") + public int result() { return XrEventDataSpaceQueryCompleteFB.nresult(address()); } + + /** Sets the specified value to the {@link XrEventDataSpaceQueryCompleteFB#type} field. */ + public XrEventDataSpaceQueryCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceQueryCompleteFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_EVENT_DATA_SPACE_QUERY_COMPLETE_FB TYPE_EVENT_DATA_SPACE_QUERY_COMPLETE_FB} value to the {@link XrEventDataSpaceQueryCompleteFB#type} field. */ + public XrEventDataSpaceQueryCompleteFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_EVENT_DATA_SPACE_QUERY_COMPLETE_FB); } + /** Sets the specified value to the {@link XrEventDataSpaceQueryCompleteFB#next} field. */ + public XrEventDataSpaceQueryCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceQueryCompleteFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceQueryResultsAvailableFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceQueryResultsAvailableFB.java index 3d6e31127f..261301f96b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceQueryResultsAvailableFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceQueryResultsAvailableFB.java @@ -4,30 +4,30 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Event indicating a query has produced results. * *
                            Description
                            * - *

                            It indicates a query request has produced some number of results. If a query yields results this event must be delivered before the {@link XrEventDataSpaceQueryCompleteFB} event is delivered. Call {@link FBSpatialEntityQuery#xrRetrieveSpaceQueryResultsFB RetrieveSpaceQueryResultsFB} to retrieve those results.

                            + *

                            It indicates a query request has produced some number of results. If a query yields results this event must be delivered before the {@link XrEventDataSpaceQueryCompleteFB} event is delivered. Call {@link FBSpatialEntityQuery#xrQuerySpacesFB QuerySpacesFB} to retrieve those results.

                            * *
                            Valid Usage (Implicit)
                            * *
                              *
                            • The {@link FBSpatialEntityQuery XR_FB_spatial_entity_query} extension must be enabled prior to using {@link XrEventDataSpaceQueryResultsAvailableFB}
                            • *
                            • {@code type} must be {@link FBSpatialEntityQuery#XR_TYPE_EVENT_DATA_SPACE_QUERY_RESULTS_AVAILABLE_FB TYPE_EVENT_DATA_SPACE_QUERY_RESULTS_AVAILABLE_FB}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • *
                            * *

                            Layout

                            @@ -38,8 +38,8 @@ * void const * {@link #next}; * XrAsyncRequestIdFB {@link #requestId}; * } - */ -public class XrEventDataSpaceQueryResultsAvailableFB extends Struct implements NativeResource { + */ +public class XrEventDataSpaceQueryResultsAvailableFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -49,24 +49,24 @@ public class XrEventDataSpaceQueryResultsAvailableFB extends Struct implements NativeResource { @@ -302,23 +302,23 @@ protected Buffer self() { protected XrEventDataSpaceQueryResultsAvailableFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataSpaceQueryResultsAvailableFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataSpaceQueryResultsAvailableFB.ntype(address()); } - /** @return the value of the {@link XrEventDataSpaceQueryResultsAvailableFB#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataSpaceQueryResultsAvailableFB.nnext(address()); } - /** @return the value of the {@link XrEventDataSpaceQueryResultsAvailableFB#requestId} field. */ - @NativeType("XrAsyncRequestIdFB") - public long requestId() { return XrEventDataSpaceQueryResultsAvailableFB.nrequestId(address()); } - - /** Sets the specified value to the {@link XrEventDataSpaceQueryResultsAvailableFB#type} field. */ - public XrEventDataSpaceQueryResultsAvailableFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceQueryResultsAvailableFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_EVENT_DATA_SPACE_QUERY_RESULTS_AVAILABLE_FB TYPE_EVENT_DATA_SPACE_QUERY_RESULTS_AVAILABLE_FB} value to the {@link XrEventDataSpaceQueryResultsAvailableFB#type} field. */ - public XrEventDataSpaceQueryResultsAvailableFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_EVENT_DATA_SPACE_QUERY_RESULTS_AVAILABLE_FB); } - /** Sets the specified value to the {@link XrEventDataSpaceQueryResultsAvailableFB#next} field. */ - public XrEventDataSpaceQueryResultsAvailableFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceQueryResultsAvailableFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataSpaceQueryResultsAvailableFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataSpaceQueryResultsAvailableFB.ntype(address()); } + /** @return the value of the {@link XrEventDataSpaceQueryResultsAvailableFB#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataSpaceQueryResultsAvailableFB.nnext(address()); } + /** @return the value of the {@link XrEventDataSpaceQueryResultsAvailableFB#requestId} field. */ + @NativeType("XrAsyncRequestIdFB") + public long requestId() { return XrEventDataSpaceQueryResultsAvailableFB.nrequestId(address()); } + + /** Sets the specified value to the {@link XrEventDataSpaceQueryResultsAvailableFB#type} field. */ + public XrEventDataSpaceQueryResultsAvailableFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceQueryResultsAvailableFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_EVENT_DATA_SPACE_QUERY_RESULTS_AVAILABLE_FB TYPE_EVENT_DATA_SPACE_QUERY_RESULTS_AVAILABLE_FB} value to the {@link XrEventDataSpaceQueryResultsAvailableFB#type} field. */ + public XrEventDataSpaceQueryResultsAvailableFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_EVENT_DATA_SPACE_QUERY_RESULTS_AVAILABLE_FB); } + /** Sets the specified value to the {@link XrEventDataSpaceQueryResultsAvailableFB#next} field. */ + public XrEventDataSpaceQueryResultsAvailableFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceQueryResultsAvailableFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceSaveCompleteFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceSaveCompleteFB.java index 025b8c6765..4d2f36fd16 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceSaveCompleteFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceSaveCompleteFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes the result of a save operation. * @@ -27,7 +27,7 @@ *
                              *
                            • The {@link FBSpatialEntityStorage XR_FB_spatial_entity_storage} extension must be enabled prior to using {@link XrEventDataSpaceSaveCompleteFB}
                            • *
                            • {@code type} must be {@link FBSpatialEntityStorage#XR_TYPE_EVENT_DATA_SPACE_SAVE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_SAVE_COMPLETE_FB}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • *
                            * *
                            See Also
                            @@ -46,8 +46,8 @@ * {@link XrUuidEXT XrUuidEXT} {@link #uuid}; * XrSpaceStorageLocationFB {@link #location}; * } - */ -public class XrEventDataSpaceSaveCompleteFB extends Struct implements NativeResource { + */ +public class XrEventDataSpaceSaveCompleteFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,36 +57,36 @@ public class XrEventDataSpaceSaveCompleteFB extends Struct implements NativeResource { @@ -341,34 +341,34 @@ protected Buffer self() { protected XrEventDataSpaceSaveCompleteFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataSpaceSaveCompleteFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataSpaceSaveCompleteFB.ntype(address()); } - /** @return the value of the {@link XrEventDataSpaceSaveCompleteFB#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataSpaceSaveCompleteFB.nnext(address()); } - /** @return the value of the {@link XrEventDataSpaceSaveCompleteFB#requestId} field. */ - @NativeType("XrAsyncRequestIdFB") - public long requestId() { return XrEventDataSpaceSaveCompleteFB.nrequestId(address()); } - /** @return the value of the {@link XrEventDataSpaceSaveCompleteFB#result} field. */ - @NativeType("XrResult") - public int result() { return XrEventDataSpaceSaveCompleteFB.nresult(address()); } - /** @return the value of the {@link XrEventDataSpaceSaveCompleteFB#space} field. */ - @NativeType("XrSpace") - public long space() { return XrEventDataSpaceSaveCompleteFB.nspace(address()); } - /** @return a {@link XrUuidEXT} view of the {@link XrEventDataSpaceSaveCompleteFB#uuid} field. */ - public XrUuidEXT uuid() { return XrEventDataSpaceSaveCompleteFB.nuuid(address()); } - /** @return the value of the {@link XrEventDataSpaceSaveCompleteFB#location} field. */ - @NativeType("XrSpaceStorageLocationFB") - public int location() { return XrEventDataSpaceSaveCompleteFB.nlocation(address()); } - - /** Sets the specified value to the {@link XrEventDataSpaceSaveCompleteFB#type} field. */ - public XrEventDataSpaceSaveCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceSaveCompleteFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityStorage#XR_TYPE_EVENT_DATA_SPACE_SAVE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_SAVE_COMPLETE_FB} value to the {@link XrEventDataSpaceSaveCompleteFB#type} field. */ - public XrEventDataSpaceSaveCompleteFB.Buffer type$Default() { return type(FBSpatialEntityStorage.XR_TYPE_EVENT_DATA_SPACE_SAVE_COMPLETE_FB); } - /** Sets the specified value to the {@link XrEventDataSpaceSaveCompleteFB#next} field. */ - public XrEventDataSpaceSaveCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceSaveCompleteFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataSpaceSaveCompleteFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataSpaceSaveCompleteFB.ntype(address()); } + /** @return the value of the {@link XrEventDataSpaceSaveCompleteFB#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataSpaceSaveCompleteFB.nnext(address()); } + /** @return the value of the {@link XrEventDataSpaceSaveCompleteFB#requestId} field. */ + @NativeType("XrAsyncRequestIdFB") + public long requestId() { return XrEventDataSpaceSaveCompleteFB.nrequestId(address()); } + /** @return the value of the {@link XrEventDataSpaceSaveCompleteFB#result} field. */ + @NativeType("XrResult") + public int result() { return XrEventDataSpaceSaveCompleteFB.nresult(address()); } + /** @return the value of the {@link XrEventDataSpaceSaveCompleteFB#space} field. */ + @NativeType("XrSpace") + public long space() { return XrEventDataSpaceSaveCompleteFB.nspace(address()); } + /** @return a {@link XrUuidEXT} view of the {@link XrEventDataSpaceSaveCompleteFB#uuid} field. */ + public XrUuidEXT uuid() { return XrEventDataSpaceSaveCompleteFB.nuuid(address()); } + /** @return the value of the {@link XrEventDataSpaceSaveCompleteFB#location} field. */ + @NativeType("XrSpaceStorageLocationFB") + public int location() { return XrEventDataSpaceSaveCompleteFB.nlocation(address()); } + + /** Sets the specified value to the {@link XrEventDataSpaceSaveCompleteFB#type} field. */ + public XrEventDataSpaceSaveCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceSaveCompleteFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityStorage#XR_TYPE_EVENT_DATA_SPACE_SAVE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_SAVE_COMPLETE_FB} value to the {@link XrEventDataSpaceSaveCompleteFB#type} field. */ + public XrEventDataSpaceSaveCompleteFB.Buffer type$Default() { return type(FBSpatialEntityStorage.XR_TYPE_EVENT_DATA_SPACE_SAVE_COMPLETE_FB); } + /** Sets the specified value to the {@link XrEventDataSpaceSaveCompleteFB#next} field. */ + public XrEventDataSpaceSaveCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceSaveCompleteFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceSetStatusCompleteFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceSetStatusCompleteFB.java index 56d6888444..5fb48920c1 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceSetStatusCompleteFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceSetStatusCompleteFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Result of request to enable or disable a component. * @@ -27,7 +27,7 @@ *
                              *
                            • The {@link FBSpatialEntity XR_FB_spatial_entity} extension must be enabled prior to using {@link XrEventDataSpaceSetStatusCompleteFB}
                            • *
                            • {@code type} must be {@link FBSpatialEntity#XR_TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • *
                            * *
                            See Also
                            @@ -47,8 +47,8 @@ * XrSpaceComponentTypeFB {@link #componentType}; * XrBool32 {@link #enabled}; * } - */ -public class XrEventDataSpaceSetStatusCompleteFB extends Struct implements NativeResource { + */ +public class XrEventDataSpaceSetStatusCompleteFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -58,39 +58,39 @@ public class XrEventDataSpaceSetStatusCompleteFB extends Struct implements NativeResource { @@ -350,37 +350,37 @@ protected Buffer self() { protected XrEventDataSpaceSetStatusCompleteFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataSpaceSetStatusCompleteFB.ntype(address()); } - /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataSpaceSetStatusCompleteFB.nnext(address()); } - /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#requestId} field. */ - @NativeType("XrAsyncRequestIdFB") - public long requestId() { return XrEventDataSpaceSetStatusCompleteFB.nrequestId(address()); } - /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#result} field. */ - @NativeType("XrResult") - public int result() { return XrEventDataSpaceSetStatusCompleteFB.nresult(address()); } - /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#space} field. */ - @NativeType("XrSpace") - public long space() { return XrEventDataSpaceSetStatusCompleteFB.nspace(address()); } - /** @return a {@link XrUuidEXT} view of the {@link XrEventDataSpaceSetStatusCompleteFB#uuid} field. */ - public XrUuidEXT uuid() { return XrEventDataSpaceSetStatusCompleteFB.nuuid(address()); } - /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#componentType} field. */ - @NativeType("XrSpaceComponentTypeFB") - public int componentType() { return XrEventDataSpaceSetStatusCompleteFB.ncomponentType(address()); } - /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#enabled} field. */ - @NativeType("XrBool32") - public boolean enabled() { return XrEventDataSpaceSetStatusCompleteFB.nenabled(address()) != 0; } - - /** Sets the specified value to the {@link XrEventDataSpaceSetStatusCompleteFB#type} field. */ - public XrEventDataSpaceSetStatusCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceSetStatusCompleteFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntity#XR_TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB} value to the {@link XrEventDataSpaceSetStatusCompleteFB#type} field. */ - public XrEventDataSpaceSetStatusCompleteFB.Buffer type$Default() { return type(FBSpatialEntity.XR_TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB); } - /** Sets the specified value to the {@link XrEventDataSpaceSetStatusCompleteFB#next} field. */ - public XrEventDataSpaceSetStatusCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceSetStatusCompleteFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataSpaceSetStatusCompleteFB.ntype(address()); } + /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataSpaceSetStatusCompleteFB.nnext(address()); } + /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#requestId} field. */ + @NativeType("XrAsyncRequestIdFB") + public long requestId() { return XrEventDataSpaceSetStatusCompleteFB.nrequestId(address()); } + /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#result} field. */ + @NativeType("XrResult") + public int result() { return XrEventDataSpaceSetStatusCompleteFB.nresult(address()); } + /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#space} field. */ + @NativeType("XrSpace") + public long space() { return XrEventDataSpaceSetStatusCompleteFB.nspace(address()); } + /** @return a {@link XrUuidEXT} view of the {@link XrEventDataSpaceSetStatusCompleteFB#uuid} field. */ + public XrUuidEXT uuid() { return XrEventDataSpaceSetStatusCompleteFB.nuuid(address()); } + /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#componentType} field. */ + @NativeType("XrSpaceComponentTypeFB") + public int componentType() { return XrEventDataSpaceSetStatusCompleteFB.ncomponentType(address()); } + /** @return the value of the {@link XrEventDataSpaceSetStatusCompleteFB#enabled} field. */ + @NativeType("XrBool32") + public boolean enabled() { return XrEventDataSpaceSetStatusCompleteFB.nenabled(address()) != 0; } + + /** Sets the specified value to the {@link XrEventDataSpaceSetStatusCompleteFB#type} field. */ + public XrEventDataSpaceSetStatusCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceSetStatusCompleteFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntity#XR_TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB} value to the {@link XrEventDataSpaceSetStatusCompleteFB#type} field. */ + public XrEventDataSpaceSetStatusCompleteFB.Buffer type$Default() { return type(FBSpatialEntity.XR_TYPE_EVENT_DATA_SPACE_SET_STATUS_COMPLETE_FB); } + /** Sets the specified value to the {@link XrEventDataSpaceSetStatusCompleteFB#next} field. */ + public XrEventDataSpaceSetStatusCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceSetStatusCompleteFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceShareCompleteFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceShareCompleteFB.java index f0f750640d..4a018c87c0 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceShareCompleteFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpaceShareCompleteFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Completion of request to share one or more spatial entities. * @@ -45,7 +45,7 @@ *
                              *
                            • The {@link FBSpatialEntitySharing XR_FB_spatial_entity_sharing} extension must be enabled prior to using {@link XrEventDataSpaceShareCompleteFB}
                            • *
                            • {@code type} must be {@link FBSpatialEntitySharing#XR_TYPE_EVENT_DATA_SPACE_SHARE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_SHARE_COMPLETE_FB}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • *
                            * *

                            Layout

                            @@ -57,8 +57,8 @@ * XrAsyncRequestIdFB {@link #requestId}; * XrResult {@link #result}; * } - */ -public class XrEventDataSpaceShareCompleteFB extends Struct implements NativeResource { + */ +public class XrEventDataSpaceShareCompleteFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -68,27 +68,27 @@ public class XrEventDataSpaceShareCompleteFB extends Struct implements NativeResource { @@ -329,26 +329,26 @@ protected Buffer self() { protected XrEventDataSpaceShareCompleteFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataSpaceShareCompleteFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataSpaceShareCompleteFB.ntype(address()); } - /** @return the value of the {@link XrEventDataSpaceShareCompleteFB#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataSpaceShareCompleteFB.nnext(address()); } - /** @return the value of the {@link XrEventDataSpaceShareCompleteFB#requestId} field. */ - @NativeType("XrAsyncRequestIdFB") - public long requestId() { return XrEventDataSpaceShareCompleteFB.nrequestId(address()); } - /** @return the value of the {@link XrEventDataSpaceShareCompleteFB#result} field. */ - @NativeType("XrResult") - public int result() { return XrEventDataSpaceShareCompleteFB.nresult(address()); } - - /** Sets the specified value to the {@link XrEventDataSpaceShareCompleteFB#type} field. */ - public XrEventDataSpaceShareCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceShareCompleteFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntitySharing#XR_TYPE_EVENT_DATA_SPACE_SHARE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_SHARE_COMPLETE_FB} value to the {@link XrEventDataSpaceShareCompleteFB#type} field. */ - public XrEventDataSpaceShareCompleteFB.Buffer type$Default() { return type(FBSpatialEntitySharing.XR_TYPE_EVENT_DATA_SPACE_SHARE_COMPLETE_FB); } - /** Sets the specified value to the {@link XrEventDataSpaceShareCompleteFB#next} field. */ - public XrEventDataSpaceShareCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceShareCompleteFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataSpaceShareCompleteFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataSpaceShareCompleteFB.ntype(address()); } + /** @return the value of the {@link XrEventDataSpaceShareCompleteFB#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataSpaceShareCompleteFB.nnext(address()); } + /** @return the value of the {@link XrEventDataSpaceShareCompleteFB#requestId} field. */ + @NativeType("XrAsyncRequestIdFB") + public long requestId() { return XrEventDataSpaceShareCompleteFB.nrequestId(address()); } + /** @return the value of the {@link XrEventDataSpaceShareCompleteFB#result} field. */ + @NativeType("XrResult") + public int result() { return XrEventDataSpaceShareCompleteFB.nresult(address()); } + + /** Sets the specified value to the {@link XrEventDataSpaceShareCompleteFB#type} field. */ + public XrEventDataSpaceShareCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpaceShareCompleteFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntitySharing#XR_TYPE_EVENT_DATA_SPACE_SHARE_COMPLETE_FB TYPE_EVENT_DATA_SPACE_SHARE_COMPLETE_FB} value to the {@link XrEventDataSpaceShareCompleteFB#type} field. */ + public XrEventDataSpaceShareCompleteFB.Buffer type$Default() { return type(FBSpatialEntitySharing.XR_TYPE_EVENT_DATA_SPACE_SHARE_COMPLETE_FB); } + /** Sets the specified value to the {@link XrEventDataSpaceShareCompleteFB#next} field. */ + public XrEventDataSpaceShareCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpaceShareCompleteFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpatialAnchorCreateCompleteFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpatialAnchorCreateCompleteFB.java index 0bba7aa9c3..ef8b3a720c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpatialAnchorCreateCompleteFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataSpatialAnchorCreateCompleteFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Result of request to create a new spatial anchor. * @@ -27,7 +27,7 @@ *
                              *
                            • The {@link FBSpatialEntity XR_FB_spatial_entity} extension must be enabled prior to using {@link XrEventDataSpatialAnchorCreateCompleteFB}
                            • *
                            • {@code type} must be {@link FBSpatialEntity#XR_TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • *
                            * *
                            See Also
                            @@ -45,8 +45,8 @@ * XrSpace {@link #space}; * {@link XrUuidEXT XrUuidEXT} {@link #uuid}; * } - */ -public class XrEventDataSpatialAnchorCreateCompleteFB extends Struct implements NativeResource { + */ +public class XrEventDataSpatialAnchorCreateCompleteFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,33 +56,33 @@ public class XrEventDataSpatialAnchorCreateCompleteFB extends Struct implements NativeResource { @@ -332,31 +332,31 @@ protected Buffer self() { protected XrEventDataSpatialAnchorCreateCompleteFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataSpatialAnchorCreateCompleteFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataSpatialAnchorCreateCompleteFB.ntype(address()); } - /** @return the value of the {@link XrEventDataSpatialAnchorCreateCompleteFB#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataSpatialAnchorCreateCompleteFB.nnext(address()); } - /** @return the value of the {@link XrEventDataSpatialAnchorCreateCompleteFB#requestId} field. */ - @NativeType("XrAsyncRequestIdFB") - public long requestId() { return XrEventDataSpatialAnchorCreateCompleteFB.nrequestId(address()); } - /** @return the value of the {@link XrEventDataSpatialAnchorCreateCompleteFB#result} field. */ - @NativeType("XrResult") - public int result() { return XrEventDataSpatialAnchorCreateCompleteFB.nresult(address()); } - /** @return the value of the {@link XrEventDataSpatialAnchorCreateCompleteFB#space} field. */ - @NativeType("XrSpace") - public long space() { return XrEventDataSpatialAnchorCreateCompleteFB.nspace(address()); } - /** @return a {@link XrUuidEXT} view of the {@link XrEventDataSpatialAnchorCreateCompleteFB#uuid} field. */ - public XrUuidEXT uuid() { return XrEventDataSpatialAnchorCreateCompleteFB.nuuid(address()); } - - /** Sets the specified value to the {@link XrEventDataSpatialAnchorCreateCompleteFB#type} field. */ - public XrEventDataSpatialAnchorCreateCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpatialAnchorCreateCompleteFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntity#XR_TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB} value to the {@link XrEventDataSpatialAnchorCreateCompleteFB#type} field. */ - public XrEventDataSpatialAnchorCreateCompleteFB.Buffer type$Default() { return type(FBSpatialEntity.XR_TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB); } - /** Sets the specified value to the {@link XrEventDataSpatialAnchorCreateCompleteFB#next} field. */ - public XrEventDataSpatialAnchorCreateCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpatialAnchorCreateCompleteFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataSpatialAnchorCreateCompleteFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataSpatialAnchorCreateCompleteFB.ntype(address()); } + /** @return the value of the {@link XrEventDataSpatialAnchorCreateCompleteFB#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataSpatialAnchorCreateCompleteFB.nnext(address()); } + /** @return the value of the {@link XrEventDataSpatialAnchorCreateCompleteFB#requestId} field. */ + @NativeType("XrAsyncRequestIdFB") + public long requestId() { return XrEventDataSpatialAnchorCreateCompleteFB.nrequestId(address()); } + /** @return the value of the {@link XrEventDataSpatialAnchorCreateCompleteFB#result} field. */ + @NativeType("XrResult") + public int result() { return XrEventDataSpatialAnchorCreateCompleteFB.nresult(address()); } + /** @return the value of the {@link XrEventDataSpatialAnchorCreateCompleteFB#space} field. */ + @NativeType("XrSpace") + public long space() { return XrEventDataSpatialAnchorCreateCompleteFB.nspace(address()); } + /** @return a {@link XrUuidEXT} view of the {@link XrEventDataSpatialAnchorCreateCompleteFB#uuid} field. */ + public XrUuidEXT uuid() { return XrEventDataSpatialAnchorCreateCompleteFB.nuuid(address()); } + + /** Sets the specified value to the {@link XrEventDataSpatialAnchorCreateCompleteFB#type} field. */ + public XrEventDataSpatialAnchorCreateCompleteFB.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataSpatialAnchorCreateCompleteFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntity#XR_TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB} value to the {@link XrEventDataSpatialAnchorCreateCompleteFB#type} field. */ + public XrEventDataSpatialAnchorCreateCompleteFB.Buffer type$Default() { return type(FBSpatialEntity.XR_TYPE_EVENT_DATA_SPATIAL_ANCHOR_CREATE_COMPLETE_FB); } + /** Sets the specified value to the {@link XrEventDataSpatialAnchorCreateCompleteFB#next} field. */ + public XrEventDataSpatialAnchorCreateCompleteFB.Buffer next(@NativeType("void const *") long value) { XrEventDataSpatialAnchorCreateCompleteFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVisibilityMaskChangedKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVisibilityMaskChangedKHR.java index 65649eb0b5..01a9c93e9b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVisibilityMaskChangedKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataVisibilityMaskChangedKHR.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Visibility Mask. * @@ -23,7 +23,7 @@ *
                              *
                            • The {@link KHRVisibilityMask XR_KHR_visibility_mask} extension must be enabled prior to using {@link XrEventDataVisibilityMaskChangedKHR}
                            • *
                            • {@code type} must be {@link KHRVisibilityMask#XR_TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • *
                            * *

                            Layout

                            @@ -36,8 +36,8 @@ * XrViewConfigurationType {@link #viewConfigurationType}; * uint32_t {@link #viewIndex}; * } - */ -public class XrEventDataVisibilityMaskChangedKHR extends Struct implements NativeResource { + */ +public class XrEventDataVisibilityMaskChangedKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -47,30 +47,30 @@ public class XrEventDataVisibilityMaskChangedKHR extends Struct implements NativeResource { @@ -316,29 +316,29 @@ protected Buffer self() { protected XrEventDataVisibilityMaskChangedKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataVisibilityMaskChangedKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataVisibilityMaskChangedKHR.ntype(address()); } - /** @return the value of the {@link XrEventDataVisibilityMaskChangedKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataVisibilityMaskChangedKHR.nnext(address()); } - /** @return the value of the {@link XrEventDataVisibilityMaskChangedKHR#session} field. */ - @NativeType("XrSession") - public long session() { return XrEventDataVisibilityMaskChangedKHR.nsession(address()); } - /** @return the value of the {@link XrEventDataVisibilityMaskChangedKHR#viewConfigurationType} field. */ - @NativeType("XrViewConfigurationType") - public int viewConfigurationType() { return XrEventDataVisibilityMaskChangedKHR.nviewConfigurationType(address()); } - /** @return the value of the {@link XrEventDataVisibilityMaskChangedKHR#viewIndex} field. */ - @NativeType("uint32_t") - public int viewIndex() { return XrEventDataVisibilityMaskChangedKHR.nviewIndex(address()); } - - /** Sets the specified value to the {@link XrEventDataVisibilityMaskChangedKHR#type} field. */ - public XrEventDataVisibilityMaskChangedKHR.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataVisibilityMaskChangedKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRVisibilityMask#XR_TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR} value to the {@link XrEventDataVisibilityMaskChangedKHR#type} field. */ - public XrEventDataVisibilityMaskChangedKHR.Buffer type$Default() { return type(KHRVisibilityMask.XR_TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR); } - /** Sets the specified value to the {@link XrEventDataVisibilityMaskChangedKHR#next} field. */ - public XrEventDataVisibilityMaskChangedKHR.Buffer next(@NativeType("void const *") long value) { XrEventDataVisibilityMaskChangedKHR.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataVisibilityMaskChangedKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataVisibilityMaskChangedKHR.ntype(address()); } + /** @return the value of the {@link XrEventDataVisibilityMaskChangedKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataVisibilityMaskChangedKHR.nnext(address()); } + /** @return the value of the {@link XrEventDataVisibilityMaskChangedKHR#session} field. */ + @NativeType("XrSession") + public long session() { return XrEventDataVisibilityMaskChangedKHR.nsession(address()); } + /** @return the value of the {@link XrEventDataVisibilityMaskChangedKHR#viewConfigurationType} field. */ + @NativeType("XrViewConfigurationType") + public int viewConfigurationType() { return XrEventDataVisibilityMaskChangedKHR.nviewConfigurationType(address()); } + /** @return the value of the {@link XrEventDataVisibilityMaskChangedKHR#viewIndex} field. */ + @NativeType("uint32_t") + public int viewIndex() { return XrEventDataVisibilityMaskChangedKHR.nviewIndex(address()); } + + /** Sets the specified value to the {@link XrEventDataVisibilityMaskChangedKHR#type} field. */ + public XrEventDataVisibilityMaskChangedKHR.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataVisibilityMaskChangedKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRVisibilityMask#XR_TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR} value to the {@link XrEventDataVisibilityMaskChangedKHR#type} field. */ + public XrEventDataVisibilityMaskChangedKHR.Buffer type$Default() { return type(KHRVisibilityMask.XR_TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR); } + /** Sets the specified value to the {@link XrEventDataVisibilityMaskChangedKHR#next} field. */ + public XrEventDataVisibilityMaskChangedKHR.Buffer next(@NativeType("void const *") long value) { XrEventDataVisibilityMaskChangedKHR.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataViveTrackerConnectedHTCX.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataViveTrackerConnectedHTCX.java index a232aede07..5a180fa37e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataViveTrackerConnectedHTCX.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEventDataViveTrackerConnectedHTCX.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Event representing a new VIVE tracker connected. * @@ -27,7 +27,7 @@ *
                              *
                            • The {@link HTCXViveTrackerInteraction XR_HTCX_vive_tracker_interaction} extension must be enabled prior to using {@link XrEventDataViveTrackerConnectedHTCX}
                            • *
                            • {@code type} must be {@link HTCXViveTrackerInteraction#XR_TYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCX TYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCX}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • *
                            * *
                            See Also
                            @@ -42,8 +42,8 @@ * void const * {@link #next}; * {@link XrViveTrackerPathsHTCX XrViveTrackerPathsHTCX} * {@link #paths}; * } - */ -public class XrEventDataViveTrackerConnectedHTCX extends Struct implements NativeResource { + */ +public class XrEventDataViveTrackerConnectedHTCX extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,24 +53,24 @@ public class XrEventDataViveTrackerConnectedHTCX extends Struct implements NativeResource { @@ -306,23 +306,23 @@ protected Buffer self() { protected XrEventDataViveTrackerConnectedHTCX getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEventDataViveTrackerConnectedHTCX#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEventDataViveTrackerConnectedHTCX.ntype(address()); } - /** @return the value of the {@link XrEventDataViveTrackerConnectedHTCX#next} field. */ - @NativeType("void const *") - public long next() { return XrEventDataViveTrackerConnectedHTCX.nnext(address()); } - /** @return a {@link XrViveTrackerPathsHTCX} view of the struct pointed to by the {@link XrEventDataViveTrackerConnectedHTCX#paths} field. */ - @NativeType("XrViveTrackerPathsHTCX *") - public XrViveTrackerPathsHTCX paths() { return XrEventDataViveTrackerConnectedHTCX.npaths(address()); } - - /** Sets the specified value to the {@link XrEventDataViveTrackerConnectedHTCX#type} field. */ - public XrEventDataViveTrackerConnectedHTCX.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataViveTrackerConnectedHTCX.ntype(address(), value); return this; } - /** Sets the {@link HTCXViveTrackerInteraction#XR_TYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCX TYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCX} value to the {@link XrEventDataViveTrackerConnectedHTCX#type} field. */ - public XrEventDataViveTrackerConnectedHTCX.Buffer type$Default() { return type(HTCXViveTrackerInteraction.XR_TYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCX); } - /** Sets the specified value to the {@link XrEventDataViveTrackerConnectedHTCX#next} field. */ - public XrEventDataViveTrackerConnectedHTCX.Buffer next(@NativeType("void const *") long value) { XrEventDataViveTrackerConnectedHTCX.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEventDataViveTrackerConnectedHTCX#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEventDataViveTrackerConnectedHTCX.ntype(address()); } + /** @return the value of the {@link XrEventDataViveTrackerConnectedHTCX#next} field. */ + @NativeType("void const *") + public long next() { return XrEventDataViveTrackerConnectedHTCX.nnext(address()); } + /** @return a {@link XrViveTrackerPathsHTCX} view of the struct pointed to by the {@link XrEventDataViveTrackerConnectedHTCX#paths} field. */ + @NativeType("XrViveTrackerPathsHTCX *") + public XrViveTrackerPathsHTCX paths() { return XrEventDataViveTrackerConnectedHTCX.npaths(address()); } + + /** Sets the specified value to the {@link XrEventDataViveTrackerConnectedHTCX#type} field. */ + public XrEventDataViveTrackerConnectedHTCX.Buffer type(@NativeType("XrStructureType") int value) { XrEventDataViveTrackerConnectedHTCX.ntype(address(), value); return this; } + /** Sets the {@link HTCXViveTrackerInteraction#XR_TYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCX TYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCX} value to the {@link XrEventDataViveTrackerConnectedHTCX#type} field. */ + public XrEventDataViveTrackerConnectedHTCX.Buffer type$Default() { return type(HTCXViveTrackerInteraction.XR_TYPE_EVENT_DATA_VIVE_TRACKER_CONNECTED_HTCX); } + /** Sets the specified value to the {@link XrEventDataViveTrackerConnectedHTCX#next} field. */ + public XrEventDataViveTrackerConnectedHTCX.Buffer next(@NativeType("void const *") long value) { XrEventDataViveTrackerConnectedHTCX.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtensionProperties.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtensionProperties.java index ae51a193fb..907553d472 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtensionProperties.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtensionProperties.java @@ -4,19 +4,19 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import static org.lwjgl.openxr.XR10.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.XR10.*; + /** * Returns properties of available instance extensions. * @@ -24,7 +24,7 @@ * * * *
                            See Also
                            @@ -40,8 +40,8 @@ * char {@link #extensionName}[XR_MAX_EXTENSION_NAME_SIZE]; * uint32_t {@link #extensionVersion}; * } - */ -public class XrExtensionProperties extends Struct implements NativeResource { + */ +public class XrExtensionProperties extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,27 +51,27 @@ public class XrExtensionProperties extends Struct impleme /** The struct member offsets. */ public static final int - TYPE, - NEXT, - EXTENSIONNAME, - EXTENSIONVERSION; + TYPE, + NEXT, + EXTENSIONNAME, + EXTENSIONVERSION; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __array(1, XR_MAX_EXTENSION_NAME_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __array(1, XR_MAX_EXTENSION_NAME_SIZE), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - EXTENSIONNAME = layout.offsetof(2); - EXTENSIONVERSION = layout.offsetof(3); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + EXTENSIONNAME = layout.offsetof(2); + EXTENSIONVERSION = layout.offsetof(3); + } protected XrExtensionProperties(long address, @Nullable ByteBuffer container) { super(address, container); @@ -94,37 +94,37 @@ public XrExtensionProperties(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** a {@code NULL} terminated string specifying the name of the extension. */ - @NativeType("char[XR_MAX_EXTENSION_NAME_SIZE]") - public ByteBuffer extensionName() { return nextensionName(address()); } - /** a {@code NULL} terminated string specifying the name of the extension. */ - @NativeType("char[XR_MAX_EXTENSION_NAME_SIZE]") - public String extensionNameString() { return nextensionNameString(address()); } - /** the version of this extension. It is an integer, incremented with backward compatible changes. */ - @NativeType("uint32_t") - public int extensionVersion() { return nextensionVersion(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrExtensionProperties type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_EXTENSION_PROPERTIES TYPE_EXTENSION_PROPERTIES} value to the {@link #type} field. */ - public XrExtensionProperties type$Default() { return type(XR10.XR_TYPE_EXTENSION_PROPERTIES); } - /** Sets the specified value to the {@link #next} field. */ - public XrExtensionProperties next(@NativeType("void *") long value) { nnext(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** a {@code NULL} terminated string specifying the name of the extension. */ + @NativeType("char[XR_MAX_EXTENSION_NAME_SIZE]") + public ByteBuffer extensionName() { return nextensionName(address()); } + /** a {@code NULL} terminated string specifying the name of the extension. */ + @NativeType("char[XR_MAX_EXTENSION_NAME_SIZE]") + public String extensionNameString() { return nextensionNameString(address()); } + /** the version of this extension. It is an integer, incremented with backward compatible changes. */ + @NativeType("uint32_t") + public int extensionVersion() { return nextensionVersion(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrExtensionProperties type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_EXTENSION_PROPERTIES TYPE_EXTENSION_PROPERTIES} value to the {@link #type} field. */ + public XrExtensionProperties type$Default() { return type(XR10.XR_TYPE_EXTENSION_PROPERTIES); } + /** Sets the specified value to the {@link #next} field. */ + public XrExtensionProperties next(@NativeType("void *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrExtensionProperties set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -253,24 +253,24 @@ public static XrExtensionProperties.Buffer calloc(int capacity, MemoryStack stac } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrExtensionProperties.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrExtensionProperties.NEXT); } - /** Unsafe version of {@link #extensionName}. */ - public static ByteBuffer nextensionName(long struct) { return memByteBuffer(struct + XrExtensionProperties.EXTENSIONNAME, XR_MAX_EXTENSION_NAME_SIZE); } - /** Unsafe version of {@link #extensionNameString}. */ - public static String nextensionNameString(long struct) { return memUTF8(struct + XrExtensionProperties.EXTENSIONNAME); } - /** Unsafe version of {@link #extensionVersion}. */ - public static int nextensionVersion(long struct) { return UNSAFE.getInt(null, struct + XrExtensionProperties.EXTENSIONVERSION); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrExtensionProperties.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrExtensionProperties.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrExtensionProperties.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrExtensionProperties.NEXT); } + /** Unsafe version of {@link #extensionName}. */ + public static ByteBuffer nextensionName(long struct) { return memByteBuffer(struct + XrExtensionProperties.EXTENSIONNAME, XR_MAX_EXTENSION_NAME_SIZE); } + /** Unsafe version of {@link #extensionNameString}. */ + public static String nextensionNameString(long struct) { return memUTF8(struct + XrExtensionProperties.EXTENSIONNAME); } + /** Unsafe version of {@link #extensionVersion}. */ + public static int nextensionVersion(long struct) { return UNSAFE.getInt(null, struct + XrExtensionProperties.EXTENSIONVERSION); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrExtensionProperties.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrExtensionProperties.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrExtensionProperties} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -307,29 +307,29 @@ protected Buffer self() { protected XrExtensionProperties getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrExtensionProperties#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrExtensionProperties.ntype(address()); } - /** @return the value of the {@link XrExtensionProperties#next} field. */ - @NativeType("void *") - public long next() { return XrExtensionProperties.nnext(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrExtensionProperties#extensionName} field. */ - @NativeType("char[XR_MAX_EXTENSION_NAME_SIZE]") - public ByteBuffer extensionName() { return XrExtensionProperties.nextensionName(address()); } - /** @return the null-terminated string stored in the {@link XrExtensionProperties#extensionName} field. */ - @NativeType("char[XR_MAX_EXTENSION_NAME_SIZE]") - public String extensionNameString() { return XrExtensionProperties.nextensionNameString(address()); } - /** @return the value of the {@link XrExtensionProperties#extensionVersion} field. */ - @NativeType("uint32_t") - public int extensionVersion() { return XrExtensionProperties.nextensionVersion(address()); } - - /** Sets the specified value to the {@link XrExtensionProperties#type} field. */ - public XrExtensionProperties.Buffer type(@NativeType("XrStructureType") int value) { XrExtensionProperties.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_EXTENSION_PROPERTIES TYPE_EXTENSION_PROPERTIES} value to the {@link XrExtensionProperties#type} field. */ - public XrExtensionProperties.Buffer type$Default() { return type(XR10.XR_TYPE_EXTENSION_PROPERTIES); } - /** Sets the specified value to the {@link XrExtensionProperties#next} field. */ - public XrExtensionProperties.Buffer next(@NativeType("void *") long value) { XrExtensionProperties.nnext(address(), value); return this; } + + /** @return the value of the {@link XrExtensionProperties#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrExtensionProperties.ntype(address()); } + /** @return the value of the {@link XrExtensionProperties#next} field. */ + @NativeType("void *") + public long next() { return XrExtensionProperties.nnext(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrExtensionProperties#extensionName} field. */ + @NativeType("char[XR_MAX_EXTENSION_NAME_SIZE]") + public ByteBuffer extensionName() { return XrExtensionProperties.nextensionName(address()); } + /** @return the null-terminated string stored in the {@link XrExtensionProperties#extensionName} field. */ + @NativeType("char[XR_MAX_EXTENSION_NAME_SIZE]") + public String extensionNameString() { return XrExtensionProperties.nextensionNameString(address()); } + /** @return the value of the {@link XrExtensionProperties#extensionVersion} field. */ + @NativeType("uint32_t") + public int extensionVersion() { return XrExtensionProperties.nextensionVersion(address()); } + + /** Sets the specified value to the {@link XrExtensionProperties#type} field. */ + public XrExtensionProperties.Buffer type(@NativeType("XrStructureType") int value) { XrExtensionProperties.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_EXTENSION_PROPERTIES TYPE_EXTENSION_PROPERTIES} value to the {@link XrExtensionProperties#type} field. */ + public XrExtensionProperties.Buffer type$Default() { return type(XR10.XR_TYPE_EXTENSION_PROPERTIES); } + /** Sets the specified value to the {@link XrExtensionProperties#next} field. */ + public XrExtensionProperties.Buffer next(@NativeType("void *") long value) { XrExtensionProperties.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtent2Df.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtent2Df.java index 741210e556..62f4fd208c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtent2Df.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtent2Df.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Extent in two dimensions. * @@ -26,7 +26,7 @@ * *
                            See Also
                            * - *

                            {@link XrCompositionLayerQuad}, {@link XrOffset2Df}, {@link XrPlaneDetectorLocationEXT}, {@link XrRect2Df}, {@link XrScenePlaneMSFT}, {@link VARJOMarkerTracking#xrGetMarkerSizeVARJO GetMarkerSizeVARJO}, {@link XR10#xrGetReferenceSpaceBoundsRect GetReferenceSpaceBoundsRect}

                            + *

                            {@link XrCompositionLayerQuad}, {@link XrOffset2Df}, {@link XrRect2Df}, {@link XrScenePlaneMSFT}, {@link VARJOMarkerTracking#xrGetMarkerSizeVARJO GetMarkerSizeVARJO}, {@link XR10#xrGetReferenceSpaceBoundsRect GetReferenceSpaceBoundsRect}

                            * *

                            Layout

                            * @@ -35,8 +35,8 @@ * float {@link #width}; * float {@link #height}; * } - */ -public class XrExtent2Df extends Struct implements NativeResource { + */ +public class XrExtent2Df extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -46,21 +46,21 @@ public class XrExtent2Df extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - WIDTH, - HEIGHT; + WIDTH, + HEIGHT; static { - Layout layout = __struct( - __member(4), + Layout layout = __struct( + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - WIDTH = layout.offsetof(0); - HEIGHT = layout.offsetof(1); - } + WIDTH = layout.offsetof(0); + HEIGHT = layout.offsetof(1); + } protected XrExtent2Df(long address, @Nullable ByteBuffer container) { super(address, container); @@ -83,24 +83,24 @@ public XrExtent2Df(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the floating-point width of the extent. */ - public float width() { return nwidth(address()); } - /** the floating-point height of the extent. */ - public float height() { return nheight(address()); } - - /** Sets the specified value to the {@link #width} field. */ - public XrExtent2Df width(float value) { nwidth(address(), value); return this; } - /** Sets the specified value to the {@link #height} field. */ - public XrExtent2Df height(float value) { nheight(address(), value); return this; } + + /** the floating-point width of the extent. */ + public float width() { return nwidth(address()); } + /** the floating-point height of the extent. */ + public float height() { return nheight(address()); } + + /** Sets the specified value to the {@link #width} field. */ + public XrExtent2Df width(float value) { nwidth(address(), value); return this; } + /** Sets the specified value to the {@link #height} field. */ + public XrExtent2Df height(float value) { nheight(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrExtent2Df set( - float width, + float width, float height - ) { - width(width); - height(height); + ) { + width(width); + height(height); return this; } @@ -229,18 +229,18 @@ public static XrExtent2Df.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #width}. */ - public static float nwidth(long struct) { return UNSAFE.getFloat(null, struct + XrExtent2Df.WIDTH); } - /** Unsafe version of {@link #height}. */ - public static float nheight(long struct) { return UNSAFE.getFloat(null, struct + XrExtent2Df.HEIGHT); } - - /** Unsafe version of {@link #width(float) width}. */ - public static void nwidth(long struct, float value) { UNSAFE.putFloat(null, struct + XrExtent2Df.WIDTH, value); } - /** Unsafe version of {@link #height(float) height}. */ - public static void nheight(long struct, float value) { UNSAFE.putFloat(null, struct + XrExtent2Df.HEIGHT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #width}. */ + public static float nwidth(long struct) { return UNSAFE.getFloat(null, struct + XrExtent2Df.WIDTH); } + /** Unsafe version of {@link #height}. */ + public static float nheight(long struct) { return UNSAFE.getFloat(null, struct + XrExtent2Df.HEIGHT); } + + /** Unsafe version of {@link #width(float) width}. */ + public static void nwidth(long struct, float value) { UNSAFE.putFloat(null, struct + XrExtent2Df.WIDTH, value); } + /** Unsafe version of {@link #height(float) height}. */ + public static void nheight(long struct, float value) { UNSAFE.putFloat(null, struct + XrExtent2Df.HEIGHT, value); } + + // ----------------------------------- /** An array of {@link XrExtent2Df} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -277,16 +277,16 @@ protected Buffer self() { protected XrExtent2Df getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrExtent2Df#width} field. */ - public float width() { return XrExtent2Df.nwidth(address()); } - /** @return the value of the {@link XrExtent2Df#height} field. */ - public float height() { return XrExtent2Df.nheight(address()); } - - /** Sets the specified value to the {@link XrExtent2Df#width} field. */ - public XrExtent2Df.Buffer width(float value) { XrExtent2Df.nwidth(address(), value); return this; } - /** Sets the specified value to the {@link XrExtent2Df#height} field. */ - public XrExtent2Df.Buffer height(float value) { XrExtent2Df.nheight(address(), value); return this; } + + /** @return the value of the {@link XrExtent2Df#width} field. */ + public float width() { return XrExtent2Df.nwidth(address()); } + /** @return the value of the {@link XrExtent2Df#height} field. */ + public float height() { return XrExtent2Df.nheight(address()); } + + /** Sets the specified value to the {@link XrExtent2Df#width} field. */ + public XrExtent2Df.Buffer width(float value) { XrExtent2Df.nwidth(address(), value); return this; } + /** Sets the specified value to the {@link XrExtent2Df#height} field. */ + public XrExtent2Df.Buffer height(float value) { XrExtent2Df.nheight(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtent2Di.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtent2Di.java index a135b8e721..2aab5e4d93 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtent2Di.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtent2Di.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Extent in two dimensions. * @@ -35,8 +35,8 @@ * int32_t {@link #width}; * int32_t {@link #height}; * } - */ -public class XrExtent2Di extends Struct implements NativeResource { + */ +public class XrExtent2Di extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -46,21 +46,21 @@ public class XrExtent2Di extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - WIDTH, - HEIGHT; + WIDTH, + HEIGHT; static { - Layout layout = __struct( - __member(4), + Layout layout = __struct( + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - WIDTH = layout.offsetof(0); - HEIGHT = layout.offsetof(1); - } + WIDTH = layout.offsetof(0); + HEIGHT = layout.offsetof(1); + } protected XrExtent2Di(long address, @Nullable ByteBuffer container) { super(address, container); @@ -83,26 +83,26 @@ public XrExtent2Di(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the integer width of the extent. */ - @NativeType("int32_t") - public int width() { return nwidth(address()); } - /** the integer height of the extent. */ - @NativeType("int32_t") - public int height() { return nheight(address()); } - - /** Sets the specified value to the {@link #width} field. */ - public XrExtent2Di width(@NativeType("int32_t") int value) { nwidth(address(), value); return this; } - /** Sets the specified value to the {@link #height} field. */ - public XrExtent2Di height(@NativeType("int32_t") int value) { nheight(address(), value); return this; } + + /** the integer width of the extent. */ + @NativeType("int32_t") + public int width() { return nwidth(address()); } + /** the integer height of the extent. */ + @NativeType("int32_t") + public int height() { return nheight(address()); } + + /** Sets the specified value to the {@link #width} field. */ + public XrExtent2Di width(@NativeType("int32_t") int value) { nwidth(address(), value); return this; } + /** Sets the specified value to the {@link #height} field. */ + public XrExtent2Di height(@NativeType("int32_t") int value) { nheight(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrExtent2Di set( - int width, + int width, int height - ) { - width(width); - height(height); + ) { + width(width); + height(height); return this; } @@ -231,18 +231,18 @@ public static XrExtent2Di.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #width}. */ - public static int nwidth(long struct) { return UNSAFE.getInt(null, struct + XrExtent2Di.WIDTH); } - /** Unsafe version of {@link #height}. */ - public static int nheight(long struct) { return UNSAFE.getInt(null, struct + XrExtent2Di.HEIGHT); } - - /** Unsafe version of {@link #width(int) width}. */ - public static void nwidth(long struct, int value) { UNSAFE.putInt(null, struct + XrExtent2Di.WIDTH, value); } - /** Unsafe version of {@link #height(int) height}. */ - public static void nheight(long struct, int value) { UNSAFE.putInt(null, struct + XrExtent2Di.HEIGHT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #width}. */ + public static int nwidth(long struct) { return UNSAFE.getInt(null, struct + XrExtent2Di.WIDTH); } + /** Unsafe version of {@link #height}. */ + public static int nheight(long struct) { return UNSAFE.getInt(null, struct + XrExtent2Di.HEIGHT); } + + /** Unsafe version of {@link #width(int) width}. */ + public static void nwidth(long struct, int value) { UNSAFE.putInt(null, struct + XrExtent2Di.WIDTH, value); } + /** Unsafe version of {@link #height(int) height}. */ + public static void nheight(long struct, int value) { UNSAFE.putInt(null, struct + XrExtent2Di.HEIGHT, value); } + + // ----------------------------------- /** An array of {@link XrExtent2Di} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -279,18 +279,18 @@ protected Buffer self() { protected XrExtent2Di getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrExtent2Di#width} field. */ - @NativeType("int32_t") - public int width() { return XrExtent2Di.nwidth(address()); } - /** @return the value of the {@link XrExtent2Di#height} field. */ - @NativeType("int32_t") - public int height() { return XrExtent2Di.nheight(address()); } - - /** Sets the specified value to the {@link XrExtent2Di#width} field. */ - public XrExtent2Di.Buffer width(@NativeType("int32_t") int value) { XrExtent2Di.nwidth(address(), value); return this; } - /** Sets the specified value to the {@link XrExtent2Di#height} field. */ - public XrExtent2Di.Buffer height(@NativeType("int32_t") int value) { XrExtent2Di.nheight(address(), value); return this; } + + /** @return the value of the {@link XrExtent2Di#width} field. */ + @NativeType("int32_t") + public int width() { return XrExtent2Di.nwidth(address()); } + /** @return the value of the {@link XrExtent2Di#height} field. */ + @NativeType("int32_t") + public int height() { return XrExtent2Di.nheight(address()); } + + /** Sets the specified value to the {@link XrExtent2Di#width} field. */ + public XrExtent2Di.Buffer width(@NativeType("int32_t") int value) { XrExtent2Di.nwidth(address(), value); return this; } + /** Sets the specified value to the {@link XrExtent2Di#height} field. */ + public XrExtent2Di.Buffer height(@NativeType("int32_t") int value) { XrExtent2Di.nheight(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtent3DfFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtent3DfFB.java index 97f9a019e0..5838d30859 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtent3DfFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExtent3DfFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Represents a rectangular prism. * @@ -40,8 +40,8 @@ * float {@link #height}; * float {@link #depth}; * } - */ -public class XrExtent3DfFB extends Struct implements NativeResource { + */ +public class XrExtent3DfFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,24 +51,24 @@ public class XrExtent3DfFB extends Struct implements NativeResour /** The struct member offsets. */ public static final int - WIDTH, - HEIGHT, - DEPTH; + WIDTH, + HEIGHT, + DEPTH; static { - Layout layout = __struct( - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - WIDTH = layout.offsetof(0); - HEIGHT = layout.offsetof(1); - DEPTH = layout.offsetof(2); - } + WIDTH = layout.offsetof(0); + HEIGHT = layout.offsetof(1); + DEPTH = layout.offsetof(2); + } protected XrExtent3DfFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -91,30 +91,30 @@ public XrExtent3DfFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the floating-point width of the extent. */ - public float width() { return nwidth(address()); } - /** the floating-point height of the extent. */ - public float height() { return nheight(address()); } - /** the floating-point depth of the extent. */ - public float depth() { return ndepth(address()); } - - /** Sets the specified value to the {@link #width} field. */ - public XrExtent3DfFB width(float value) { nwidth(address(), value); return this; } - /** Sets the specified value to the {@link #height} field. */ - public XrExtent3DfFB height(float value) { nheight(address(), value); return this; } - /** Sets the specified value to the {@link #depth} field. */ - public XrExtent3DfFB depth(float value) { ndepth(address(), value); return this; } + + /** the floating-point width of the extent. */ + public float width() { return nwidth(address()); } + /** the floating-point height of the extent. */ + public float height() { return nheight(address()); } + /** the floating-point depth of the extent. */ + public float depth() { return ndepth(address()); } + + /** Sets the specified value to the {@link #width} field. */ + public XrExtent3DfFB width(float value) { nwidth(address(), value); return this; } + /** Sets the specified value to the {@link #height} field. */ + public XrExtent3DfFB height(float value) { nheight(address(), value); return this; } + /** Sets the specified value to the {@link #depth} field. */ + public XrExtent3DfFB depth(float value) { ndepth(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrExtent3DfFB set( - float width, - float height, + float width, + float height, float depth - ) { - width(width); - height(height); - depth(depth); + ) { + width(width); + height(height); + depth(depth); return this; } @@ -243,22 +243,22 @@ public static XrExtent3DfFB.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #width}. */ - public static float nwidth(long struct) { return UNSAFE.getFloat(null, struct + XrExtent3DfFB.WIDTH); } - /** Unsafe version of {@link #height}. */ - public static float nheight(long struct) { return UNSAFE.getFloat(null, struct + XrExtent3DfFB.HEIGHT); } - /** Unsafe version of {@link #depth}. */ - public static float ndepth(long struct) { return UNSAFE.getFloat(null, struct + XrExtent3DfFB.DEPTH); } - - /** Unsafe version of {@link #width(float) width}. */ - public static void nwidth(long struct, float value) { UNSAFE.putFloat(null, struct + XrExtent3DfFB.WIDTH, value); } - /** Unsafe version of {@link #height(float) height}. */ - public static void nheight(long struct, float value) { UNSAFE.putFloat(null, struct + XrExtent3DfFB.HEIGHT, value); } - /** Unsafe version of {@link #depth(float) depth}. */ - public static void ndepth(long struct, float value) { UNSAFE.putFloat(null, struct + XrExtent3DfFB.DEPTH, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #width}. */ + public static float nwidth(long struct) { return UNSAFE.getFloat(null, struct + XrExtent3DfFB.WIDTH); } + /** Unsafe version of {@link #height}. */ + public static float nheight(long struct) { return UNSAFE.getFloat(null, struct + XrExtent3DfFB.HEIGHT); } + /** Unsafe version of {@link #depth}. */ + public static float ndepth(long struct) { return UNSAFE.getFloat(null, struct + XrExtent3DfFB.DEPTH); } + + /** Unsafe version of {@link #width(float) width}. */ + public static void nwidth(long struct, float value) { UNSAFE.putFloat(null, struct + XrExtent3DfFB.WIDTH, value); } + /** Unsafe version of {@link #height(float) height}. */ + public static void nheight(long struct, float value) { UNSAFE.putFloat(null, struct + XrExtent3DfFB.HEIGHT, value); } + /** Unsafe version of {@link #depth(float) depth}. */ + public static void ndepth(long struct, float value) { UNSAFE.putFloat(null, struct + XrExtent3DfFB.DEPTH, value); } + + // ----------------------------------- /** An array of {@link XrExtent3DfFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -295,20 +295,20 @@ protected Buffer self() { protected XrExtent3DfFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrExtent3DfFB#width} field. */ - public float width() { return XrExtent3DfFB.nwidth(address()); } - /** @return the value of the {@link XrExtent3DfFB#height} field. */ - public float height() { return XrExtent3DfFB.nheight(address()); } - /** @return the value of the {@link XrExtent3DfFB#depth} field. */ - public float depth() { return XrExtent3DfFB.ndepth(address()); } - - /** Sets the specified value to the {@link XrExtent3DfFB#width} field. */ - public XrExtent3DfFB.Buffer width(float value) { XrExtent3DfFB.nwidth(address(), value); return this; } - /** Sets the specified value to the {@link XrExtent3DfFB#height} field. */ - public XrExtent3DfFB.Buffer height(float value) { XrExtent3DfFB.nheight(address(), value); return this; } - /** Sets the specified value to the {@link XrExtent3DfFB#depth} field. */ - public XrExtent3DfFB.Buffer depth(float value) { XrExtent3DfFB.ndepth(address(), value); return this; } + + /** @return the value of the {@link XrExtent3DfFB#width} field. */ + public float width() { return XrExtent3DfFB.nwidth(address()); } + /** @return the value of the {@link XrExtent3DfFB#height} field. */ + public float height() { return XrExtent3DfFB.nheight(address()); } + /** @return the value of the {@link XrExtent3DfFB#depth} field. */ + public float depth() { return XrExtent3DfFB.ndepth(address()); } + + /** Sets the specified value to the {@link XrExtent3DfFB#width} field. */ + public XrExtent3DfFB.Buffer width(float value) { XrExtent3DfFB.nwidth(address(), value); return this; } + /** Sets the specified value to the {@link XrExtent3DfFB#height} field. */ + public XrExtent3DfFB.Buffer height(float value) { XrExtent3DfFB.nheight(address(), value); return this; } + /** Sets the specified value to the {@link XrExtent3DfFB#depth} field. */ + public XrExtent3DfFB.Buffer depth(float value) { XrExtent3DfFB.ndepth(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExternalCameraExtrinsicsOCULUS.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExternalCameraExtrinsicsOCULUS.java index ee45666d33..1de60e6ab2 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExternalCameraExtrinsicsOCULUS.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExternalCameraExtrinsicsOCULUS.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Camera extrinsics state. * @@ -39,8 +39,8 @@ * XrExternalCameraAttachedToDeviceOCULUS {@link #attachedToDevice}; * {@link XrPosef XrPosef} {@link #relativePose}; * } - */ -public class XrExternalCameraExtrinsicsOCULUS extends Struct implements NativeResource { + */ +public class XrExternalCameraExtrinsicsOCULUS extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,27 +50,27 @@ public class XrExternalCameraExtrinsicsOCULUS extends Struct consumer) { consumer.accept(relativePose()); return this; } + + /** the {@code XrTime} when this camera’s extrinsics last changed. */ + @NativeType("XrTime") + public long lastChangeTime() { return nlastChangeTime(address()); } + /** the {@code XrExternalCameraStatusFlagsOCULUS} for this camera’s status. */ + @NativeType("XrExternalCameraStatusFlagsOCULUS") + public long cameraStatusFlags() { return ncameraStatusFlags(address()); } + /** the {@code XrExternalCameraAttachedToDeviceOCULUS} for the device this camera is attached to */ + @NativeType("XrExternalCameraAttachedToDeviceOCULUS") + public int attachedToDevice() { return nattachedToDevice(address()); } + /** the {@link XrPosef} for offset of the camera from the device that the camera is attached to */ + public XrPosef relativePose() { return nrelativePose(address()); } + + /** Sets the specified value to the {@link #lastChangeTime} field. */ + public XrExternalCameraExtrinsicsOCULUS lastChangeTime(@NativeType("XrTime") long value) { nlastChangeTime(address(), value); return this; } + /** Sets the specified value to the {@link #cameraStatusFlags} field. */ + public XrExternalCameraExtrinsicsOCULUS cameraStatusFlags(@NativeType("XrExternalCameraStatusFlagsOCULUS") long value) { ncameraStatusFlags(address(), value); return this; } + /** Sets the specified value to the {@link #attachedToDevice} field. */ + public XrExternalCameraExtrinsicsOCULUS attachedToDevice(@NativeType("XrExternalCameraAttachedToDeviceOCULUS") int value) { nattachedToDevice(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #relativePose} field. */ + public XrExternalCameraExtrinsicsOCULUS relativePose(XrPosef value) { nrelativePose(address(), value); return this; } + /** Passes the {@link #relativePose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrExternalCameraExtrinsicsOCULUS relativePose(java.util.function.Consumer consumer) { consumer.accept(relativePose()); return this; } /** Initializes this struct with the specified values. */ public XrExternalCameraExtrinsicsOCULUS set( - long lastChangeTime, - long cameraStatusFlags, - int attachedToDevice, + long lastChangeTime, + long cameraStatusFlags, + int attachedToDevice, XrPosef relativePose - ) { - lastChangeTime(lastChangeTime); - cameraStatusFlags(cameraStatusFlags); - attachedToDevice(attachedToDevice); - relativePose(relativePose); + ) { + lastChangeTime(lastChangeTime); + cameraStatusFlags(cameraStatusFlags); + attachedToDevice(attachedToDevice); + relativePose(relativePose); return this; } @@ -256,26 +256,26 @@ public static XrExternalCameraExtrinsicsOCULUS.Buffer calloc(int capacity, Memor } // ----------------------------------- - - /** Unsafe version of {@link #lastChangeTime}. */ - public static long nlastChangeTime(long struct) { return UNSAFE.getLong(null, struct + XrExternalCameraExtrinsicsOCULUS.LASTCHANGETIME); } - /** Unsafe version of {@link #cameraStatusFlags}. */ - public static long ncameraStatusFlags(long struct) { return UNSAFE.getLong(null, struct + XrExternalCameraExtrinsicsOCULUS.CAMERASTATUSFLAGS); } - /** Unsafe version of {@link #attachedToDevice}. */ - public static int nattachedToDevice(long struct) { return UNSAFE.getInt(null, struct + XrExternalCameraExtrinsicsOCULUS.ATTACHEDTODEVICE); } - /** Unsafe version of {@link #relativePose}. */ - public static XrPosef nrelativePose(long struct) { return XrPosef.create(struct + XrExternalCameraExtrinsicsOCULUS.RELATIVEPOSE); } - - /** Unsafe version of {@link #lastChangeTime(long) lastChangeTime}. */ - public static void nlastChangeTime(long struct, long value) { UNSAFE.putLong(null, struct + XrExternalCameraExtrinsicsOCULUS.LASTCHANGETIME, value); } - /** Unsafe version of {@link #cameraStatusFlags(long) cameraStatusFlags}. */ - public static void ncameraStatusFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrExternalCameraExtrinsicsOCULUS.CAMERASTATUSFLAGS, value); } - /** Unsafe version of {@link #attachedToDevice(int) attachedToDevice}. */ - public static void nattachedToDevice(long struct, int value) { UNSAFE.putInt(null, struct + XrExternalCameraExtrinsicsOCULUS.ATTACHEDTODEVICE, value); } - /** Unsafe version of {@link #relativePose(XrPosef) relativePose}. */ - public static void nrelativePose(long struct, XrPosef value) { memCopy(value.address(), struct + XrExternalCameraExtrinsicsOCULUS.RELATIVEPOSE, XrPosef.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #lastChangeTime}. */ + public static long nlastChangeTime(long struct) { return UNSAFE.getLong(null, struct + XrExternalCameraExtrinsicsOCULUS.LASTCHANGETIME); } + /** Unsafe version of {@link #cameraStatusFlags}. */ + public static long ncameraStatusFlags(long struct) { return UNSAFE.getLong(null, struct + XrExternalCameraExtrinsicsOCULUS.CAMERASTATUSFLAGS); } + /** Unsafe version of {@link #attachedToDevice}. */ + public static int nattachedToDevice(long struct) { return UNSAFE.getInt(null, struct + XrExternalCameraExtrinsicsOCULUS.ATTACHEDTODEVICE); } + /** Unsafe version of {@link #relativePose}. */ + public static XrPosef nrelativePose(long struct) { return XrPosef.create(struct + XrExternalCameraExtrinsicsOCULUS.RELATIVEPOSE); } + + /** Unsafe version of {@link #lastChangeTime(long) lastChangeTime}. */ + public static void nlastChangeTime(long struct, long value) { UNSAFE.putLong(null, struct + XrExternalCameraExtrinsicsOCULUS.LASTCHANGETIME, value); } + /** Unsafe version of {@link #cameraStatusFlags(long) cameraStatusFlags}. */ + public static void ncameraStatusFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrExternalCameraExtrinsicsOCULUS.CAMERASTATUSFLAGS, value); } + /** Unsafe version of {@link #attachedToDevice(int) attachedToDevice}. */ + public static void nattachedToDevice(long struct, int value) { UNSAFE.putInt(null, struct + XrExternalCameraExtrinsicsOCULUS.ATTACHEDTODEVICE, value); } + /** Unsafe version of {@link #relativePose(XrPosef) relativePose}. */ + public static void nrelativePose(long struct, XrPosef value) { memCopy(value.address(), struct + XrExternalCameraExtrinsicsOCULUS.RELATIVEPOSE, XrPosef.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrExternalCameraExtrinsicsOCULUS} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -312,29 +312,29 @@ protected Buffer self() { protected XrExternalCameraExtrinsicsOCULUS getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrExternalCameraExtrinsicsOCULUS#lastChangeTime} field. */ - @NativeType("XrTime") - public long lastChangeTime() { return XrExternalCameraExtrinsicsOCULUS.nlastChangeTime(address()); } - /** @return the value of the {@link XrExternalCameraExtrinsicsOCULUS#cameraStatusFlags} field. */ - @NativeType("XrExternalCameraStatusFlagsOCULUS") - public long cameraStatusFlags() { return XrExternalCameraExtrinsicsOCULUS.ncameraStatusFlags(address()); } - /** @return the value of the {@link XrExternalCameraExtrinsicsOCULUS#attachedToDevice} field. */ - @NativeType("XrExternalCameraAttachedToDeviceOCULUS") - public int attachedToDevice() { return XrExternalCameraExtrinsicsOCULUS.nattachedToDevice(address()); } - /** @return a {@link XrPosef} view of the {@link XrExternalCameraExtrinsicsOCULUS#relativePose} field. */ - public XrPosef relativePose() { return XrExternalCameraExtrinsicsOCULUS.nrelativePose(address()); } - - /** Sets the specified value to the {@link XrExternalCameraExtrinsicsOCULUS#lastChangeTime} field. */ - public XrExternalCameraExtrinsicsOCULUS.Buffer lastChangeTime(@NativeType("XrTime") long value) { XrExternalCameraExtrinsicsOCULUS.nlastChangeTime(address(), value); return this; } - /** Sets the specified value to the {@link XrExternalCameraExtrinsicsOCULUS#cameraStatusFlags} field. */ - public XrExternalCameraExtrinsicsOCULUS.Buffer cameraStatusFlags(@NativeType("XrExternalCameraStatusFlagsOCULUS") long value) { XrExternalCameraExtrinsicsOCULUS.ncameraStatusFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrExternalCameraExtrinsicsOCULUS#attachedToDevice} field. */ - public XrExternalCameraExtrinsicsOCULUS.Buffer attachedToDevice(@NativeType("XrExternalCameraAttachedToDeviceOCULUS") int value) { XrExternalCameraExtrinsicsOCULUS.nattachedToDevice(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrExternalCameraExtrinsicsOCULUS#relativePose} field. */ - public XrExternalCameraExtrinsicsOCULUS.Buffer relativePose(XrPosef value) { XrExternalCameraExtrinsicsOCULUS.nrelativePose(address(), value); return this; } - /** Passes the {@link XrExternalCameraExtrinsicsOCULUS#relativePose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrExternalCameraExtrinsicsOCULUS.Buffer relativePose(java.util.function.Consumer consumer) { consumer.accept(relativePose()); return this; } + + /** @return the value of the {@link XrExternalCameraExtrinsicsOCULUS#lastChangeTime} field. */ + @NativeType("XrTime") + public long lastChangeTime() { return XrExternalCameraExtrinsicsOCULUS.nlastChangeTime(address()); } + /** @return the value of the {@link XrExternalCameraExtrinsicsOCULUS#cameraStatusFlags} field. */ + @NativeType("XrExternalCameraStatusFlagsOCULUS") + public long cameraStatusFlags() { return XrExternalCameraExtrinsicsOCULUS.ncameraStatusFlags(address()); } + /** @return the value of the {@link XrExternalCameraExtrinsicsOCULUS#attachedToDevice} field. */ + @NativeType("XrExternalCameraAttachedToDeviceOCULUS") + public int attachedToDevice() { return XrExternalCameraExtrinsicsOCULUS.nattachedToDevice(address()); } + /** @return a {@link XrPosef} view of the {@link XrExternalCameraExtrinsicsOCULUS#relativePose} field. */ + public XrPosef relativePose() { return XrExternalCameraExtrinsicsOCULUS.nrelativePose(address()); } + + /** Sets the specified value to the {@link XrExternalCameraExtrinsicsOCULUS#lastChangeTime} field. */ + public XrExternalCameraExtrinsicsOCULUS.Buffer lastChangeTime(@NativeType("XrTime") long value) { XrExternalCameraExtrinsicsOCULUS.nlastChangeTime(address(), value); return this; } + /** Sets the specified value to the {@link XrExternalCameraExtrinsicsOCULUS#cameraStatusFlags} field. */ + public XrExternalCameraExtrinsicsOCULUS.Buffer cameraStatusFlags(@NativeType("XrExternalCameraStatusFlagsOCULUS") long value) { XrExternalCameraExtrinsicsOCULUS.ncameraStatusFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrExternalCameraExtrinsicsOCULUS#attachedToDevice} field. */ + public XrExternalCameraExtrinsicsOCULUS.Buffer attachedToDevice(@NativeType("XrExternalCameraAttachedToDeviceOCULUS") int value) { XrExternalCameraExtrinsicsOCULUS.nattachedToDevice(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrExternalCameraExtrinsicsOCULUS#relativePose} field. */ + public XrExternalCameraExtrinsicsOCULUS.Buffer relativePose(XrPosef value) { XrExternalCameraExtrinsicsOCULUS.nrelativePose(address(), value); return this; } + /** Passes the {@link XrExternalCameraExtrinsicsOCULUS#relativePose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrExternalCameraExtrinsicsOCULUS.Buffer relativePose(java.util.function.Consumer consumer) { consumer.accept(relativePose()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExternalCameraIntrinsicsOCULUS.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExternalCameraIntrinsicsOCULUS.java index 8cde49c28e..6931abfe1e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExternalCameraIntrinsicsOCULUS.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExternalCameraIntrinsicsOCULUS.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Camera intrintics state. * @@ -38,8 +38,8 @@ * float {@link #virtualFarPlaneDistance}; * {@link XrExtent2Di XrExtent2Di} {@link #imageSensorPixelResolution}; * } - */ -public class XrExternalCameraIntrinsicsOCULUS extends Struct implements NativeResource { + */ +public class XrExternalCameraIntrinsicsOCULUS extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -49,30 +49,30 @@ public class XrExternalCameraIntrinsicsOCULUS extends Struct consumer) { consumer.accept(fov()); return this; } - /** Sets the specified value to the {@link #virtualNearPlaneDistance} field. */ - public XrExternalCameraIntrinsicsOCULUS virtualNearPlaneDistance(float value) { nvirtualNearPlaneDistance(address(), value); return this; } - /** Sets the specified value to the {@link #virtualFarPlaneDistance} field. */ - public XrExternalCameraIntrinsicsOCULUS virtualFarPlaneDistance(float value) { nvirtualFarPlaneDistance(address(), value); return this; } - /** Copies the specified {@link XrExtent2Di} to the {@link #imageSensorPixelResolution} field. */ - public XrExternalCameraIntrinsicsOCULUS imageSensorPixelResolution(XrExtent2Di value) { nimageSensorPixelResolution(address(), value); return this; } - /** Passes the {@link #imageSensorPixelResolution} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrExternalCameraIntrinsicsOCULUS imageSensorPixelResolution(java.util.function.Consumer consumer) { consumer.accept(imageSensorPixelResolution()); return this; } + + /** the {@code XrTime} when this camera’s intrinsics last changed. */ + @NativeType("XrTime") + public long lastChangeTime() { return nlastChangeTime(address()); } + /** the {@link XrFovf} for this camera’s viewport. */ + public XrFovf fov() { return nfov(address()); } + /** the near plane distance of the virtual camera used to match the external camera */ + public float virtualNearPlaneDistance() { return nvirtualNearPlaneDistance(address()); } + /** the far plane distance of the virtual camera used to match the external camera */ + public float virtualFarPlaneDistance() { return nvirtualFarPlaneDistance(address()); } + /** the {@link XrExtent2Di} specifying the camera’s resolution (in pixels). */ + public XrExtent2Di imageSensorPixelResolution() { return nimageSensorPixelResolution(address()); } + + /** Sets the specified value to the {@link #lastChangeTime} field. */ + public XrExternalCameraIntrinsicsOCULUS lastChangeTime(@NativeType("XrTime") long value) { nlastChangeTime(address(), value); return this; } + /** Copies the specified {@link XrFovf} to the {@link #fov} field. */ + public XrExternalCameraIntrinsicsOCULUS fov(XrFovf value) { nfov(address(), value); return this; } + /** Passes the {@link #fov} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrExternalCameraIntrinsicsOCULUS fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } + /** Sets the specified value to the {@link #virtualNearPlaneDistance} field. */ + public XrExternalCameraIntrinsicsOCULUS virtualNearPlaneDistance(float value) { nvirtualNearPlaneDistance(address(), value); return this; } + /** Sets the specified value to the {@link #virtualFarPlaneDistance} field. */ + public XrExternalCameraIntrinsicsOCULUS virtualFarPlaneDistance(float value) { nvirtualFarPlaneDistance(address(), value); return this; } + /** Copies the specified {@link XrExtent2Di} to the {@link #imageSensorPixelResolution} field. */ + public XrExternalCameraIntrinsicsOCULUS imageSensorPixelResolution(XrExtent2Di value) { nimageSensorPixelResolution(address(), value); return this; } + /** Passes the {@link #imageSensorPixelResolution} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrExternalCameraIntrinsicsOCULUS imageSensorPixelResolution(java.util.function.Consumer consumer) { consumer.accept(imageSensorPixelResolution()); return this; } /** Initializes this struct with the specified values. */ public XrExternalCameraIntrinsicsOCULUS set( - long lastChangeTime, - XrFovf fov, - float virtualNearPlaneDistance, - float virtualFarPlaneDistance, + long lastChangeTime, + XrFovf fov, + float virtualNearPlaneDistance, + float virtualFarPlaneDistance, XrExtent2Di imageSensorPixelResolution - ) { - lastChangeTime(lastChangeTime); - fov(fov); - virtualNearPlaneDistance(virtualNearPlaneDistance); - virtualFarPlaneDistance(virtualFarPlaneDistance); - imageSensorPixelResolution(imageSensorPixelResolution); + ) { + lastChangeTime(lastChangeTime); + fov(fov); + virtualNearPlaneDistance(virtualNearPlaneDistance); + virtualFarPlaneDistance(virtualFarPlaneDistance); + imageSensorPixelResolution(imageSensorPixelResolution); return this; } @@ -264,30 +264,30 @@ public static XrExternalCameraIntrinsicsOCULUS.Buffer calloc(int capacity, Memor } // ----------------------------------- - - /** Unsafe version of {@link #lastChangeTime}. */ - public static long nlastChangeTime(long struct) { return UNSAFE.getLong(null, struct + XrExternalCameraIntrinsicsOCULUS.LASTCHANGETIME); } - /** Unsafe version of {@link #fov}. */ - public static XrFovf nfov(long struct) { return XrFovf.create(struct + XrExternalCameraIntrinsicsOCULUS.FOV); } - /** Unsafe version of {@link #virtualNearPlaneDistance}. */ - public static float nvirtualNearPlaneDistance(long struct) { return UNSAFE.getFloat(null, struct + XrExternalCameraIntrinsicsOCULUS.VIRTUALNEARPLANEDISTANCE); } - /** Unsafe version of {@link #virtualFarPlaneDistance}. */ - public static float nvirtualFarPlaneDistance(long struct) { return UNSAFE.getFloat(null, struct + XrExternalCameraIntrinsicsOCULUS.VIRTUALFARPLANEDISTANCE); } - /** Unsafe version of {@link #imageSensorPixelResolution}. */ - public static XrExtent2Di nimageSensorPixelResolution(long struct) { return XrExtent2Di.create(struct + XrExternalCameraIntrinsicsOCULUS.IMAGESENSORPIXELRESOLUTION); } - - /** Unsafe version of {@link #lastChangeTime(long) lastChangeTime}. */ - public static void nlastChangeTime(long struct, long value) { UNSAFE.putLong(null, struct + XrExternalCameraIntrinsicsOCULUS.LASTCHANGETIME, value); } - /** Unsafe version of {@link #fov(XrFovf) fov}. */ - public static void nfov(long struct, XrFovf value) { memCopy(value.address(), struct + XrExternalCameraIntrinsicsOCULUS.FOV, XrFovf.SIZEOF); } - /** Unsafe version of {@link #virtualNearPlaneDistance(float) virtualNearPlaneDistance}. */ - public static void nvirtualNearPlaneDistance(long struct, float value) { UNSAFE.putFloat(null, struct + XrExternalCameraIntrinsicsOCULUS.VIRTUALNEARPLANEDISTANCE, value); } - /** Unsafe version of {@link #virtualFarPlaneDistance(float) virtualFarPlaneDistance}. */ - public static void nvirtualFarPlaneDistance(long struct, float value) { UNSAFE.putFloat(null, struct + XrExternalCameraIntrinsicsOCULUS.VIRTUALFARPLANEDISTANCE, value); } - /** Unsafe version of {@link #imageSensorPixelResolution(XrExtent2Di) imageSensorPixelResolution}. */ - public static void nimageSensorPixelResolution(long struct, XrExtent2Di value) { memCopy(value.address(), struct + XrExternalCameraIntrinsicsOCULUS.IMAGESENSORPIXELRESOLUTION, XrExtent2Di.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #lastChangeTime}. */ + public static long nlastChangeTime(long struct) { return UNSAFE.getLong(null, struct + XrExternalCameraIntrinsicsOCULUS.LASTCHANGETIME); } + /** Unsafe version of {@link #fov}. */ + public static XrFovf nfov(long struct) { return XrFovf.create(struct + XrExternalCameraIntrinsicsOCULUS.FOV); } + /** Unsafe version of {@link #virtualNearPlaneDistance}. */ + public static float nvirtualNearPlaneDistance(long struct) { return UNSAFE.getFloat(null, struct + XrExternalCameraIntrinsicsOCULUS.VIRTUALNEARPLANEDISTANCE); } + /** Unsafe version of {@link #virtualFarPlaneDistance}. */ + public static float nvirtualFarPlaneDistance(long struct) { return UNSAFE.getFloat(null, struct + XrExternalCameraIntrinsicsOCULUS.VIRTUALFARPLANEDISTANCE); } + /** Unsafe version of {@link #imageSensorPixelResolution}. */ + public static XrExtent2Di nimageSensorPixelResolution(long struct) { return XrExtent2Di.create(struct + XrExternalCameraIntrinsicsOCULUS.IMAGESENSORPIXELRESOLUTION); } + + /** Unsafe version of {@link #lastChangeTime(long) lastChangeTime}. */ + public static void nlastChangeTime(long struct, long value) { UNSAFE.putLong(null, struct + XrExternalCameraIntrinsicsOCULUS.LASTCHANGETIME, value); } + /** Unsafe version of {@link #fov(XrFovf) fov}. */ + public static void nfov(long struct, XrFovf value) { memCopy(value.address(), struct + XrExternalCameraIntrinsicsOCULUS.FOV, XrFovf.SIZEOF); } + /** Unsafe version of {@link #virtualNearPlaneDistance(float) virtualNearPlaneDistance}. */ + public static void nvirtualNearPlaneDistance(long struct, float value) { UNSAFE.putFloat(null, struct + XrExternalCameraIntrinsicsOCULUS.VIRTUALNEARPLANEDISTANCE, value); } + /** Unsafe version of {@link #virtualFarPlaneDistance(float) virtualFarPlaneDistance}. */ + public static void nvirtualFarPlaneDistance(long struct, float value) { UNSAFE.putFloat(null, struct + XrExternalCameraIntrinsicsOCULUS.VIRTUALFARPLANEDISTANCE, value); } + /** Unsafe version of {@link #imageSensorPixelResolution(XrExtent2Di) imageSensorPixelResolution}. */ + public static void nimageSensorPixelResolution(long struct, XrExtent2Di value) { memCopy(value.address(), struct + XrExternalCameraIntrinsicsOCULUS.IMAGESENSORPIXELRESOLUTION, XrExtent2Di.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrExternalCameraIntrinsicsOCULUS} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -324,33 +324,33 @@ protected Buffer self() { protected XrExternalCameraIntrinsicsOCULUS getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrExternalCameraIntrinsicsOCULUS#lastChangeTime} field. */ - @NativeType("XrTime") - public long lastChangeTime() { return XrExternalCameraIntrinsicsOCULUS.nlastChangeTime(address()); } - /** @return a {@link XrFovf} view of the {@link XrExternalCameraIntrinsicsOCULUS#fov} field. */ - public XrFovf fov() { return XrExternalCameraIntrinsicsOCULUS.nfov(address()); } - /** @return the value of the {@link XrExternalCameraIntrinsicsOCULUS#virtualNearPlaneDistance} field. */ - public float virtualNearPlaneDistance() { return XrExternalCameraIntrinsicsOCULUS.nvirtualNearPlaneDistance(address()); } - /** @return the value of the {@link XrExternalCameraIntrinsicsOCULUS#virtualFarPlaneDistance} field. */ - public float virtualFarPlaneDistance() { return XrExternalCameraIntrinsicsOCULUS.nvirtualFarPlaneDistance(address()); } - /** @return a {@link XrExtent2Di} view of the {@link XrExternalCameraIntrinsicsOCULUS#imageSensorPixelResolution} field. */ - public XrExtent2Di imageSensorPixelResolution() { return XrExternalCameraIntrinsicsOCULUS.nimageSensorPixelResolution(address()); } - - /** Sets the specified value to the {@link XrExternalCameraIntrinsicsOCULUS#lastChangeTime} field. */ - public XrExternalCameraIntrinsicsOCULUS.Buffer lastChangeTime(@NativeType("XrTime") long value) { XrExternalCameraIntrinsicsOCULUS.nlastChangeTime(address(), value); return this; } - /** Copies the specified {@link XrFovf} to the {@link XrExternalCameraIntrinsicsOCULUS#fov} field. */ - public XrExternalCameraIntrinsicsOCULUS.Buffer fov(XrFovf value) { XrExternalCameraIntrinsicsOCULUS.nfov(address(), value); return this; } - /** Passes the {@link XrExternalCameraIntrinsicsOCULUS#fov} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrExternalCameraIntrinsicsOCULUS.Buffer fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } - /** Sets the specified value to the {@link XrExternalCameraIntrinsicsOCULUS#virtualNearPlaneDistance} field. */ - public XrExternalCameraIntrinsicsOCULUS.Buffer virtualNearPlaneDistance(float value) { XrExternalCameraIntrinsicsOCULUS.nvirtualNearPlaneDistance(address(), value); return this; } - /** Sets the specified value to the {@link XrExternalCameraIntrinsicsOCULUS#virtualFarPlaneDistance} field. */ - public XrExternalCameraIntrinsicsOCULUS.Buffer virtualFarPlaneDistance(float value) { XrExternalCameraIntrinsicsOCULUS.nvirtualFarPlaneDistance(address(), value); return this; } - /** Copies the specified {@link XrExtent2Di} to the {@link XrExternalCameraIntrinsicsOCULUS#imageSensorPixelResolution} field. */ - public XrExternalCameraIntrinsicsOCULUS.Buffer imageSensorPixelResolution(XrExtent2Di value) { XrExternalCameraIntrinsicsOCULUS.nimageSensorPixelResolution(address(), value); return this; } - /** Passes the {@link XrExternalCameraIntrinsicsOCULUS#imageSensorPixelResolution} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrExternalCameraIntrinsicsOCULUS.Buffer imageSensorPixelResolution(java.util.function.Consumer consumer) { consumer.accept(imageSensorPixelResolution()); return this; } + + /** @return the value of the {@link XrExternalCameraIntrinsicsOCULUS#lastChangeTime} field. */ + @NativeType("XrTime") + public long lastChangeTime() { return XrExternalCameraIntrinsicsOCULUS.nlastChangeTime(address()); } + /** @return a {@link XrFovf} view of the {@link XrExternalCameraIntrinsicsOCULUS#fov} field. */ + public XrFovf fov() { return XrExternalCameraIntrinsicsOCULUS.nfov(address()); } + /** @return the value of the {@link XrExternalCameraIntrinsicsOCULUS#virtualNearPlaneDistance} field. */ + public float virtualNearPlaneDistance() { return XrExternalCameraIntrinsicsOCULUS.nvirtualNearPlaneDistance(address()); } + /** @return the value of the {@link XrExternalCameraIntrinsicsOCULUS#virtualFarPlaneDistance} field. */ + public float virtualFarPlaneDistance() { return XrExternalCameraIntrinsicsOCULUS.nvirtualFarPlaneDistance(address()); } + /** @return a {@link XrExtent2Di} view of the {@link XrExternalCameraIntrinsicsOCULUS#imageSensorPixelResolution} field. */ + public XrExtent2Di imageSensorPixelResolution() { return XrExternalCameraIntrinsicsOCULUS.nimageSensorPixelResolution(address()); } + + /** Sets the specified value to the {@link XrExternalCameraIntrinsicsOCULUS#lastChangeTime} field. */ + public XrExternalCameraIntrinsicsOCULUS.Buffer lastChangeTime(@NativeType("XrTime") long value) { XrExternalCameraIntrinsicsOCULUS.nlastChangeTime(address(), value); return this; } + /** Copies the specified {@link XrFovf} to the {@link XrExternalCameraIntrinsicsOCULUS#fov} field. */ + public XrExternalCameraIntrinsicsOCULUS.Buffer fov(XrFovf value) { XrExternalCameraIntrinsicsOCULUS.nfov(address(), value); return this; } + /** Passes the {@link XrExternalCameraIntrinsicsOCULUS#fov} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrExternalCameraIntrinsicsOCULUS.Buffer fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } + /** Sets the specified value to the {@link XrExternalCameraIntrinsicsOCULUS#virtualNearPlaneDistance} field. */ + public XrExternalCameraIntrinsicsOCULUS.Buffer virtualNearPlaneDistance(float value) { XrExternalCameraIntrinsicsOCULUS.nvirtualNearPlaneDistance(address(), value); return this; } + /** Sets the specified value to the {@link XrExternalCameraIntrinsicsOCULUS#virtualFarPlaneDistance} field. */ + public XrExternalCameraIntrinsicsOCULUS.Buffer virtualFarPlaneDistance(float value) { XrExternalCameraIntrinsicsOCULUS.nvirtualFarPlaneDistance(address(), value); return this; } + /** Copies the specified {@link XrExtent2Di} to the {@link XrExternalCameraIntrinsicsOCULUS#imageSensorPixelResolution} field. */ + public XrExternalCameraIntrinsicsOCULUS.Buffer imageSensorPixelResolution(XrExtent2Di value) { XrExternalCameraIntrinsicsOCULUS.nimageSensorPixelResolution(address(), value); return this; } + /** Passes the {@link XrExternalCameraIntrinsicsOCULUS#imageSensorPixelResolution} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrExternalCameraIntrinsicsOCULUS.Buffer imageSensorPixelResolution(java.util.function.Consumer consumer) { consumer.accept(imageSensorPixelResolution()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExternalCameraOCULUS.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExternalCameraOCULUS.java index e0162e6ada..e67ef11555 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExternalCameraOCULUS.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrExternalCameraOCULUS.java @@ -4,19 +4,19 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import static org.lwjgl.openxr.OCULUSExternalCamera.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.OCULUSExternalCamera.*; + /** * Camera intrintics state. * @@ -25,7 +25,7 @@ *
                              *
                            • The {@link OCULUSExternalCamera XR_OCULUS_external_camera} extension must be enabled prior to using {@link XrExternalCameraOCULUS}
                            • *
                            • {@code type} must be {@link OCULUSExternalCamera#XR_TYPE_EXTERNAL_CAMERA_OCULUS TYPE_EXTERNAL_CAMERA_OCULUS}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • *
                            * *
                            See Also
                            @@ -42,8 +42,8 @@ * {@link XrExternalCameraIntrinsicsOCULUS XrExternalCameraIntrinsicsOCULUS} {@link #intrinsics}; * {@link XrExternalCameraExtrinsicsOCULUS XrExternalCameraExtrinsicsOCULUS} {@link #extrinsics}; * } - */ -public class XrExternalCameraOCULUS extends Struct implements NativeResource { + */ +public class XrExternalCameraOCULUS extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,30 +53,30 @@ public class XrExternalCameraOCULUS extends Struct imple /** The struct member offsets. */ public static final int - TYPE, - NEXT, - NAME, - INTRINSICS, - EXTRINSICS; + TYPE, + NEXT, + NAME, + INTRINSICS, + EXTRINSICS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __array(1, XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS), - __member(XrExternalCameraIntrinsicsOCULUS.SIZEOF, XrExternalCameraIntrinsicsOCULUS.ALIGNOF), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __array(1, XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS), + __member(XrExternalCameraIntrinsicsOCULUS.SIZEOF, XrExternalCameraIntrinsicsOCULUS.ALIGNOF), __member(XrExternalCameraExtrinsicsOCULUS.SIZEOF, XrExternalCameraExtrinsicsOCULUS.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - NAME = layout.offsetof(2); - INTRINSICS = layout.offsetof(3); - EXTRINSICS = layout.offsetof(4); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + NAME = layout.offsetof(2); + INTRINSICS = layout.offsetof(3); + EXTRINSICS = layout.offsetof(4); + } protected XrExternalCameraOCULUS(long address, @Nullable ByteBuffer container) { super(address, container); @@ -99,38 +99,38 @@ public XrExternalCameraOCULUS(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** a null-terminated UTF-8 string containing a camera identifier: VID (vendor ID), PID (product ID), and serial number */ - @NativeType("char[XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS]") - public ByteBuffer name() { return nname(address()); } - /** a null-terminated UTF-8 string containing a camera identifier: VID (vendor ID), PID (product ID), and serial number */ - @NativeType("char[XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS]") - public String nameString() { return nnameString(address()); } - /** the {@link XrExternalCameraIntrinsicsOCULUS} for the camera */ - public XrExternalCameraIntrinsicsOCULUS intrinsics() { return nintrinsics(address()); } - /** the {@link XrExternalCameraExtrinsicsOCULUS} for the camera */ - public XrExternalCameraExtrinsicsOCULUS extrinsics() { return nextrinsics(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrExternalCameraOCULUS type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link OCULUSExternalCamera#XR_TYPE_EXTERNAL_CAMERA_OCULUS TYPE_EXTERNAL_CAMERA_OCULUS} value to the {@link #type} field. */ - public XrExternalCameraOCULUS type$Default() { return type(OCULUSExternalCamera.XR_TYPE_EXTERNAL_CAMERA_OCULUS); } - /** Sets the specified value to the {@link #next} field. */ - public XrExternalCameraOCULUS next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** a null-terminated UTF-8 string containing a camera identifier: VID (vendor ID), PID (product ID), and serial number */ + @NativeType("char[XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS]") + public ByteBuffer name() { return nname(address()); } + /** a null-terminated UTF-8 string containing a camera identifier: VID (vendor ID), PID (product ID), and serial number */ + @NativeType("char[XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS]") + public String nameString() { return nnameString(address()); } + /** the {@link XrExternalCameraIntrinsicsOCULUS} for the camera */ + public XrExternalCameraIntrinsicsOCULUS intrinsics() { return nintrinsics(address()); } + /** the {@link XrExternalCameraExtrinsicsOCULUS} for the camera */ + public XrExternalCameraExtrinsicsOCULUS extrinsics() { return nextrinsics(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrExternalCameraOCULUS type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link OCULUSExternalCamera#XR_TYPE_EXTERNAL_CAMERA_OCULUS TYPE_EXTERNAL_CAMERA_OCULUS} value to the {@link #type} field. */ + public XrExternalCameraOCULUS type$Default() { return type(OCULUSExternalCamera.XR_TYPE_EXTERNAL_CAMERA_OCULUS); } + /** Sets the specified value to the {@link #next} field. */ + public XrExternalCameraOCULUS next(@NativeType("void const *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrExternalCameraOCULUS set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -259,26 +259,26 @@ public static XrExternalCameraOCULUS.Buffer calloc(int capacity, MemoryStack sta } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrExternalCameraOCULUS.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrExternalCameraOCULUS.NEXT); } - /** Unsafe version of {@link #name}. */ - public static ByteBuffer nname(long struct) { return memByteBuffer(struct + XrExternalCameraOCULUS.NAME, XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS); } - /** Unsafe version of {@link #nameString}. */ - public static String nnameString(long struct) { return memUTF8(struct + XrExternalCameraOCULUS.NAME); } - /** Unsafe version of {@link #intrinsics}. */ - public static XrExternalCameraIntrinsicsOCULUS nintrinsics(long struct) { return XrExternalCameraIntrinsicsOCULUS.create(struct + XrExternalCameraOCULUS.INTRINSICS); } - /** Unsafe version of {@link #extrinsics}. */ - public static XrExternalCameraExtrinsicsOCULUS nextrinsics(long struct) { return XrExternalCameraExtrinsicsOCULUS.create(struct + XrExternalCameraOCULUS.EXTRINSICS); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrExternalCameraOCULUS.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrExternalCameraOCULUS.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrExternalCameraOCULUS.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrExternalCameraOCULUS.NEXT); } + /** Unsafe version of {@link #name}. */ + public static ByteBuffer nname(long struct) { return memByteBuffer(struct + XrExternalCameraOCULUS.NAME, XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS); } + /** Unsafe version of {@link #nameString}. */ + public static String nnameString(long struct) { return memUTF8(struct + XrExternalCameraOCULUS.NAME); } + /** Unsafe version of {@link #intrinsics}. */ + public static XrExternalCameraIntrinsicsOCULUS nintrinsics(long struct) { return XrExternalCameraIntrinsicsOCULUS.create(struct + XrExternalCameraOCULUS.INTRINSICS); } + /** Unsafe version of {@link #extrinsics}. */ + public static XrExternalCameraExtrinsicsOCULUS nextrinsics(long struct) { return XrExternalCameraExtrinsicsOCULUS.create(struct + XrExternalCameraOCULUS.EXTRINSICS); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrExternalCameraOCULUS.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrExternalCameraOCULUS.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrExternalCameraOCULUS} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -315,30 +315,30 @@ protected Buffer self() { protected XrExternalCameraOCULUS getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrExternalCameraOCULUS#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrExternalCameraOCULUS.ntype(address()); } - /** @return the value of the {@link XrExternalCameraOCULUS#next} field. */ - @NativeType("void const *") - public long next() { return XrExternalCameraOCULUS.nnext(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrExternalCameraOCULUS#name} field. */ - @NativeType("char[XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS]") - public ByteBuffer name() { return XrExternalCameraOCULUS.nname(address()); } - /** @return the null-terminated string stored in the {@link XrExternalCameraOCULUS#name} field. */ - @NativeType("char[XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS]") - public String nameString() { return XrExternalCameraOCULUS.nnameString(address()); } - /** @return a {@link XrExternalCameraIntrinsicsOCULUS} view of the {@link XrExternalCameraOCULUS#intrinsics} field. */ - public XrExternalCameraIntrinsicsOCULUS intrinsics() { return XrExternalCameraOCULUS.nintrinsics(address()); } - /** @return a {@link XrExternalCameraExtrinsicsOCULUS} view of the {@link XrExternalCameraOCULUS#extrinsics} field. */ - public XrExternalCameraExtrinsicsOCULUS extrinsics() { return XrExternalCameraOCULUS.nextrinsics(address()); } - - /** Sets the specified value to the {@link XrExternalCameraOCULUS#type} field. */ - public XrExternalCameraOCULUS.Buffer type(@NativeType("XrStructureType") int value) { XrExternalCameraOCULUS.ntype(address(), value); return this; } - /** Sets the {@link OCULUSExternalCamera#XR_TYPE_EXTERNAL_CAMERA_OCULUS TYPE_EXTERNAL_CAMERA_OCULUS} value to the {@link XrExternalCameraOCULUS#type} field. */ - public XrExternalCameraOCULUS.Buffer type$Default() { return type(OCULUSExternalCamera.XR_TYPE_EXTERNAL_CAMERA_OCULUS); } - /** Sets the specified value to the {@link XrExternalCameraOCULUS#next} field. */ - public XrExternalCameraOCULUS.Buffer next(@NativeType("void const *") long value) { XrExternalCameraOCULUS.nnext(address(), value); return this; } + + /** @return the value of the {@link XrExternalCameraOCULUS#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrExternalCameraOCULUS.ntype(address()); } + /** @return the value of the {@link XrExternalCameraOCULUS#next} field. */ + @NativeType("void const *") + public long next() { return XrExternalCameraOCULUS.nnext(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrExternalCameraOCULUS#name} field. */ + @NativeType("char[XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS]") + public ByteBuffer name() { return XrExternalCameraOCULUS.nname(address()); } + /** @return the null-terminated string stored in the {@link XrExternalCameraOCULUS#name} field. */ + @NativeType("char[XR_MAX_EXTERNAL_CAMERA_NAME_SIZE_OCULUS]") + public String nameString() { return XrExternalCameraOCULUS.nnameString(address()); } + /** @return a {@link XrExternalCameraIntrinsicsOCULUS} view of the {@link XrExternalCameraOCULUS#intrinsics} field. */ + public XrExternalCameraIntrinsicsOCULUS intrinsics() { return XrExternalCameraOCULUS.nintrinsics(address()); } + /** @return a {@link XrExternalCameraExtrinsicsOCULUS} view of the {@link XrExternalCameraOCULUS#extrinsics} field. */ + public XrExternalCameraExtrinsicsOCULUS extrinsics() { return XrExternalCameraOCULUS.nextrinsics(address()); } + + /** Sets the specified value to the {@link XrExternalCameraOCULUS#type} field. */ + public XrExternalCameraOCULUS.Buffer type(@NativeType("XrStructureType") int value) { XrExternalCameraOCULUS.ntype(address(), value); return this; } + /** Sets the {@link OCULUSExternalCamera#XR_TYPE_EXTERNAL_CAMERA_OCULUS TYPE_EXTERNAL_CAMERA_OCULUS} value to the {@link XrExternalCameraOCULUS#type} field. */ + public XrExternalCameraOCULUS.Buffer type$Default() { return type(OCULUSExternalCamera.XR_TYPE_EXTERNAL_CAMERA_OCULUS); } + /** Sets the specified value to the {@link XrExternalCameraOCULUS#next} field. */ + public XrExternalCameraOCULUS.Buffer next(@NativeType("void const *") long value) { XrExternalCameraOCULUS.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazeFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazeFB.java index 826f8641ad..9a03be8eba 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazeFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazeFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes the eye gaze direction. * @@ -44,8 +44,8 @@ * {@link XrPosef XrPosef} {@link #gazePose}; * float {@link #gazeConfidence}; * } - */ -public class XrEyeGazeFB extends Struct implements NativeResource { + */ +public class XrEyeGazeFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,24 +55,24 @@ public class XrEyeGazeFB extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - ISVALID, - GAZEPOSE, - GAZECONFIDENCE; + ISVALID, + GAZEPOSE, + GAZECONFIDENCE; static { - Layout layout = __struct( - __member(4), - __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), + Layout layout = __struct( + __member(4), + __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - ISVALID = layout.offsetof(0); - GAZEPOSE = layout.offsetof(1); - GAZECONFIDENCE = layout.offsetof(2); - } + ISVALID = layout.offsetof(0); + GAZEPOSE = layout.offsetof(1); + GAZECONFIDENCE = layout.offsetof(2); + } protected XrEyeGazeFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -95,33 +95,33 @@ public XrEyeGazeFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** an {@code XrBool32} indicating if the returned gazePose is valid. Callers should check the validity of pose prior to use. */ - @NativeType("XrBool32") - public boolean isValid() { return nisValid(address()) != 0; } - /** an {@link XrPosef} describing the position and orientation of the user’s eye. The pose is represented in the coordinate system provided by {@link XrEyeGazesInfoFB}{@code ::baseSpace}. */ - public XrPosef gazePose() { return ngazePose(address()); } - /** a {@code float} value between 0 and 1 that represents the confidence for eye pose. A value of 0 represents no confidence in the pose returned, and a value of 1 means maximum confidence in the returned eye pose. */ - public float gazeConfidence() { return ngazeConfidence(address()); } - - /** Sets the specified value to the {@link #isValid} field. */ - public XrEyeGazeFB isValid(@NativeType("XrBool32") boolean value) { nisValid(address(), value ? 1 : 0); return this; } - /** Copies the specified {@link XrPosef} to the {@link #gazePose} field. */ - public XrEyeGazeFB gazePose(XrPosef value) { ngazePose(address(), value); return this; } - /** Passes the {@link #gazePose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrEyeGazeFB gazePose(java.util.function.Consumer consumer) { consumer.accept(gazePose()); return this; } - /** Sets the specified value to the {@link #gazeConfidence} field. */ - public XrEyeGazeFB gazeConfidence(float value) { ngazeConfidence(address(), value); return this; } + + /** an {@code XrBool32} indicating if the returned gazePose is valid. Callers should check the validity of pose prior to use. */ + @NativeType("XrBool32") + public boolean isValid() { return nisValid(address()) != 0; } + /** an {@link XrPosef} describing the position and orientation of the user’s eye. The pose is represented in the coordinate system provided by {@link XrEyeGazesInfoFB}{@code ::baseSpace}. */ + public XrPosef gazePose() { return ngazePose(address()); } + /** a {@code float} value between 0 and 1 that represents the confidence for eye pose. A value of 0 represents no confidence in the pose returned, and a value of 1 means maximum confidence in the returned eye pose. */ + public float gazeConfidence() { return ngazeConfidence(address()); } + + /** Sets the specified value to the {@link #isValid} field. */ + public XrEyeGazeFB isValid(@NativeType("XrBool32") boolean value) { nisValid(address(), value ? 1 : 0); return this; } + /** Copies the specified {@link XrPosef} to the {@link #gazePose} field. */ + public XrEyeGazeFB gazePose(XrPosef value) { ngazePose(address(), value); return this; } + /** Passes the {@link #gazePose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrEyeGazeFB gazePose(java.util.function.Consumer consumer) { consumer.accept(gazePose()); return this; } + /** Sets the specified value to the {@link #gazeConfidence} field. */ + public XrEyeGazeFB gazeConfidence(float value) { ngazeConfidence(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrEyeGazeFB set( - boolean isValid, - XrPosef gazePose, + boolean isValid, + XrPosef gazePose, float gazeConfidence - ) { - isValid(isValid); - gazePose(gazePose); - gazeConfidence(gazeConfidence); + ) { + isValid(isValid); + gazePose(gazePose); + gazeConfidence(gazeConfidence); return this; } @@ -250,22 +250,22 @@ public static XrEyeGazeFB.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #isValid}. */ - public static int nisValid(long struct) { return UNSAFE.getInt(null, struct + XrEyeGazeFB.ISVALID); } - /** Unsafe version of {@link #gazePose}. */ - public static XrPosef ngazePose(long struct) { return XrPosef.create(struct + XrEyeGazeFB.GAZEPOSE); } - /** Unsafe version of {@link #gazeConfidence}. */ - public static float ngazeConfidence(long struct) { return UNSAFE.getFloat(null, struct + XrEyeGazeFB.GAZECONFIDENCE); } - - /** Unsafe version of {@link #isValid(boolean) isValid}. */ - public static void nisValid(long struct, int value) { UNSAFE.putInt(null, struct + XrEyeGazeFB.ISVALID, value); } - /** Unsafe version of {@link #gazePose(XrPosef) gazePose}. */ - public static void ngazePose(long struct, XrPosef value) { memCopy(value.address(), struct + XrEyeGazeFB.GAZEPOSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #gazeConfidence(float) gazeConfidence}. */ - public static void ngazeConfidence(long struct, float value) { UNSAFE.putFloat(null, struct + XrEyeGazeFB.GAZECONFIDENCE, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #isValid}. */ + public static int nisValid(long struct) { return UNSAFE.getInt(null, struct + XrEyeGazeFB.ISVALID); } + /** Unsafe version of {@link #gazePose}. */ + public static XrPosef ngazePose(long struct) { return XrPosef.create(struct + XrEyeGazeFB.GAZEPOSE); } + /** Unsafe version of {@link #gazeConfidence}. */ + public static float ngazeConfidence(long struct) { return UNSAFE.getFloat(null, struct + XrEyeGazeFB.GAZECONFIDENCE); } + + /** Unsafe version of {@link #isValid(boolean) isValid}. */ + public static void nisValid(long struct, int value) { UNSAFE.putInt(null, struct + XrEyeGazeFB.ISVALID, value); } + /** Unsafe version of {@link #gazePose(XrPosef) gazePose}. */ + public static void ngazePose(long struct, XrPosef value) { memCopy(value.address(), struct + XrEyeGazeFB.GAZEPOSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #gazeConfidence(float) gazeConfidence}. */ + public static void ngazeConfidence(long struct, float value) { UNSAFE.putFloat(null, struct + XrEyeGazeFB.GAZECONFIDENCE, value); } + + // ----------------------------------- /** An array of {@link XrEyeGazeFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -302,23 +302,23 @@ protected Buffer self() { protected XrEyeGazeFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEyeGazeFB#isValid} field. */ - @NativeType("XrBool32") - public boolean isValid() { return XrEyeGazeFB.nisValid(address()) != 0; } - /** @return a {@link XrPosef} view of the {@link XrEyeGazeFB#gazePose} field. */ - public XrPosef gazePose() { return XrEyeGazeFB.ngazePose(address()); } - /** @return the value of the {@link XrEyeGazeFB#gazeConfidence} field. */ - public float gazeConfidence() { return XrEyeGazeFB.ngazeConfidence(address()); } - - /** Sets the specified value to the {@link XrEyeGazeFB#isValid} field. */ - public XrEyeGazeFB.Buffer isValid(@NativeType("XrBool32") boolean value) { XrEyeGazeFB.nisValid(address(), value ? 1 : 0); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrEyeGazeFB#gazePose} field. */ - public XrEyeGazeFB.Buffer gazePose(XrPosef value) { XrEyeGazeFB.ngazePose(address(), value); return this; } - /** Passes the {@link XrEyeGazeFB#gazePose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrEyeGazeFB.Buffer gazePose(java.util.function.Consumer consumer) { consumer.accept(gazePose()); return this; } - /** Sets the specified value to the {@link XrEyeGazeFB#gazeConfidence} field. */ - public XrEyeGazeFB.Buffer gazeConfidence(float value) { XrEyeGazeFB.ngazeConfidence(address(), value); return this; } + + /** @return the value of the {@link XrEyeGazeFB#isValid} field. */ + @NativeType("XrBool32") + public boolean isValid() { return XrEyeGazeFB.nisValid(address()) != 0; } + /** @return a {@link XrPosef} view of the {@link XrEyeGazeFB#gazePose} field. */ + public XrPosef gazePose() { return XrEyeGazeFB.ngazePose(address()); } + /** @return the value of the {@link XrEyeGazeFB#gazeConfidence} field. */ + public float gazeConfidence() { return XrEyeGazeFB.ngazeConfidence(address()); } + + /** Sets the specified value to the {@link XrEyeGazeFB#isValid} field. */ + public XrEyeGazeFB.Buffer isValid(@NativeType("XrBool32") boolean value) { XrEyeGazeFB.nisValid(address(), value ? 1 : 0); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrEyeGazeFB#gazePose} field. */ + public XrEyeGazeFB.Buffer gazePose(XrPosef value) { XrEyeGazeFB.ngazePose(address(), value); return this; } + /** Passes the {@link XrEyeGazeFB#gazePose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrEyeGazeFB.Buffer gazePose(java.util.function.Consumer consumer) { consumer.accept(gazePose()); return this; } + /** Sets the specified value to the {@link XrEyeGazeFB#gazeConfidence} field. */ + public XrEyeGazeFB.Buffer gazeConfidence(float value) { XrEyeGazeFB.ngazeConfidence(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazeSampleTimeEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazeSampleTimeEXT.java index 040b9cb813..2c04430c03 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazeSampleTimeEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazeSampleTimeEXT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Eye gaze sample time structure. * @@ -23,7 +23,7 @@ *
                              *
                            • The {@link EXTEyeGazeInteraction XR_EXT_eye_gaze_interaction} extension must be enabled prior to using {@link XrEyeGazeSampleTimeEXT}
                            • *
                            • {@code type} must be {@link EXTEyeGazeInteraction#XR_TYPE_EYE_GAZE_SAMPLE_TIME_EXT TYPE_EYE_GAZE_SAMPLE_TIME_EXT}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • *
                            * *

                            Layout

                            @@ -34,8 +34,8 @@ * void * {@link #next}; * XrTime {@link #time}; * } - */ -public class XrEyeGazeSampleTimeEXT extends Struct implements NativeResource { + */ +public class XrEyeGazeSampleTimeEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -45,24 +45,24 @@ public class XrEyeGazeSampleTimeEXT extends Struct imple /** The struct member offsets. */ public static final int - TYPE, - NEXT, - TIME; + TYPE, + NEXT, + TIME; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - TIME = layout.offsetof(2); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + TIME = layout.offsetof(2); + } protected XrEyeGazeSampleTimeEXT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -85,35 +85,35 @@ public XrEyeGazeSampleTimeEXT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** when in time the eye gaze pose is expressed. */ - @NativeType("XrTime") - public long time() { return ntime(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrEyeGazeSampleTimeEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link EXTEyeGazeInteraction#XR_TYPE_EYE_GAZE_SAMPLE_TIME_EXT TYPE_EYE_GAZE_SAMPLE_TIME_EXT} value to the {@link #type} field. */ - public XrEyeGazeSampleTimeEXT type$Default() { return type(EXTEyeGazeInteraction.XR_TYPE_EYE_GAZE_SAMPLE_TIME_EXT); } - /** Sets the specified value to the {@link #next} field. */ - public XrEyeGazeSampleTimeEXT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrEyeGazeSampleTimeEXT time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** when in time the eye gaze pose is expressed. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrEyeGazeSampleTimeEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link EXTEyeGazeInteraction#XR_TYPE_EYE_GAZE_SAMPLE_TIME_EXT TYPE_EYE_GAZE_SAMPLE_TIME_EXT} value to the {@link #type} field. */ + public XrEyeGazeSampleTimeEXT type$Default() { return type(EXTEyeGazeInteraction.XR_TYPE_EYE_GAZE_SAMPLE_TIME_EXT); } + /** Sets the specified value to the {@link #next} field. */ + public XrEyeGazeSampleTimeEXT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #time} field. */ + public XrEyeGazeSampleTimeEXT time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrEyeGazeSampleTimeEXT set( - int type, - long next, + int type, + long next, long time - ) { - type(type); - next(next); - time(time); + ) { + type(type); + next(next); + time(time); return this; } @@ -242,22 +242,22 @@ public static XrEyeGazeSampleTimeEXT.Buffer calloc(int capacity, MemoryStack sta } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrEyeGazeSampleTimeEXT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrEyeGazeSampleTimeEXT.NEXT); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrEyeGazeSampleTimeEXT.TIME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEyeGazeSampleTimeEXT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrEyeGazeSampleTimeEXT.NEXT, value); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrEyeGazeSampleTimeEXT.TIME, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrEyeGazeSampleTimeEXT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrEyeGazeSampleTimeEXT.NEXT); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrEyeGazeSampleTimeEXT.TIME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEyeGazeSampleTimeEXT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrEyeGazeSampleTimeEXT.NEXT, value); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrEyeGazeSampleTimeEXT.TIME, value); } + + // ----------------------------------- /** An array of {@link XrEyeGazeSampleTimeEXT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -294,25 +294,25 @@ protected Buffer self() { protected XrEyeGazeSampleTimeEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEyeGazeSampleTimeEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEyeGazeSampleTimeEXT.ntype(address()); } - /** @return the value of the {@link XrEyeGazeSampleTimeEXT#next} field. */ - @NativeType("void *") - public long next() { return XrEyeGazeSampleTimeEXT.nnext(address()); } - /** @return the value of the {@link XrEyeGazeSampleTimeEXT#time} field. */ - @NativeType("XrTime") - public long time() { return XrEyeGazeSampleTimeEXT.ntime(address()); } - - /** Sets the specified value to the {@link XrEyeGazeSampleTimeEXT#type} field. */ - public XrEyeGazeSampleTimeEXT.Buffer type(@NativeType("XrStructureType") int value) { XrEyeGazeSampleTimeEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTEyeGazeInteraction#XR_TYPE_EYE_GAZE_SAMPLE_TIME_EXT TYPE_EYE_GAZE_SAMPLE_TIME_EXT} value to the {@link XrEyeGazeSampleTimeEXT#type} field. */ - public XrEyeGazeSampleTimeEXT.Buffer type$Default() { return type(EXTEyeGazeInteraction.XR_TYPE_EYE_GAZE_SAMPLE_TIME_EXT); } - /** Sets the specified value to the {@link XrEyeGazeSampleTimeEXT#next} field. */ - public XrEyeGazeSampleTimeEXT.Buffer next(@NativeType("void *") long value) { XrEyeGazeSampleTimeEXT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrEyeGazeSampleTimeEXT#time} field. */ - public XrEyeGazeSampleTimeEXT.Buffer time(@NativeType("XrTime") long value) { XrEyeGazeSampleTimeEXT.ntime(address(), value); return this; } + + /** @return the value of the {@link XrEyeGazeSampleTimeEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEyeGazeSampleTimeEXT.ntype(address()); } + /** @return the value of the {@link XrEyeGazeSampleTimeEXT#next} field. */ + @NativeType("void *") + public long next() { return XrEyeGazeSampleTimeEXT.nnext(address()); } + /** @return the value of the {@link XrEyeGazeSampleTimeEXT#time} field. */ + @NativeType("XrTime") + public long time() { return XrEyeGazeSampleTimeEXT.ntime(address()); } + + /** Sets the specified value to the {@link XrEyeGazeSampleTimeEXT#type} field. */ + public XrEyeGazeSampleTimeEXT.Buffer type(@NativeType("XrStructureType") int value) { XrEyeGazeSampleTimeEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTEyeGazeInteraction#XR_TYPE_EYE_GAZE_SAMPLE_TIME_EXT TYPE_EYE_GAZE_SAMPLE_TIME_EXT} value to the {@link XrEyeGazeSampleTimeEXT#type} field. */ + public XrEyeGazeSampleTimeEXT.Buffer type$Default() { return type(EXTEyeGazeInteraction.XR_TYPE_EYE_GAZE_SAMPLE_TIME_EXT); } + /** Sets the specified value to the {@link XrEyeGazeSampleTimeEXT#next} field. */ + public XrEyeGazeSampleTimeEXT.Buffer next(@NativeType("void *") long value) { XrEyeGazeSampleTimeEXT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrEyeGazeSampleTimeEXT#time} field. */ + public XrEyeGazeSampleTimeEXT.Buffer time(@NativeType("XrTime") long value) { XrEyeGazeSampleTimeEXT.ntime(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazesFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazesFB.java index 40f4776119..6c30dbb03c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazesFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazesFB.java @@ -4,20 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import static org.lwjgl.openxr.FBEyeTrackingSocial.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Returns the eye gaze directions. * @@ -26,7 +23,7 @@ *
                              *
                            • The {@link FBEyeTrackingSocial XR_FB_eye_tracking_social} extension must be enabled prior to using {@link XrEyeGazesFB}
                            • *
                            • {@code type} must be {@link FBEyeTrackingSocial#XR_TYPE_EYE_GAZES_FB TYPE_EYE_GAZES_FB}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • *
                            • Any given element of {@code gaze} must be a valid {@link XrEyeGazeFB} structure
                            • *
                            * @@ -40,11 +37,11 @@ * struct XrEyeGazesFB { * XrStructureType {@link #type}; * void * {@link #next}; - * {@link XrEyeGazeFB XrEyeGazeFB} {@link #gaze}[XR_EYE_POSITION_COUNT_FB]; + * {@link XrEyeGazeFB XrEyeGazeFB} {@link #gaze}; * XrTime {@link #time}; * } - */ -public class XrEyeGazesFB extends Struct implements NativeResource { + */ +public class XrEyeGazesFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,27 +51,27 @@ public class XrEyeGazesFB extends Struct implements NativeResource /** The struct member offsets. */ public static final int - TYPE, - NEXT, - GAZE, - TIME; + TYPE, + NEXT, + GAZE, + TIME; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __array(XrEyeGazeFB.SIZEOF, XrEyeGazeFB.ALIGNOF, XR_EYE_POSITION_COUNT_FB), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(XrEyeGazeFB.SIZEOF, XrEyeGazeFB.ALIGNOF), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - GAZE = layout.offsetof(2); - TIME = layout.offsetof(3); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + GAZE = layout.offsetof(2); + TIME = layout.offsetof(3); + } protected XrEyeGazesFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -97,50 +94,43 @@ public XrEyeGazesFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** an array of {@link XrEyeGazeFB} receiving the returned eye gaze directions. */ - @NativeType("XrEyeGazeFB[XR_EYE_POSITION_COUNT_FB]") - public XrEyeGazeFB.Buffer gaze() { return ngaze(address()); } - /** an array of {@link XrEyeGazeFB} receiving the returned eye gaze directions. */ - public XrEyeGazeFB gaze(int index) { return ngaze(address(), index); } - /** an {@code XrTime} time at which the returned eye gaze is tracked or extrapolated to. Equals the time for which the eye gaze was requested if the interpolation at the time was successful. */ - @NativeType("XrTime") - public long time() { return ntime(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrEyeGazesFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_EYE_GAZES_FB TYPE_EYE_GAZES_FB} value to the {@link #type} field. */ - public XrEyeGazesFB type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_EYE_GAZES_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrEyeGazesFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Copies the specified {@link XrEyeGazeFB.Buffer} to the {@link #gaze} field. */ - public XrEyeGazesFB gaze(@NativeType("XrEyeGazeFB[XR_EYE_POSITION_COUNT_FB]") XrEyeGazeFB.Buffer value) { ngaze(address(), value); return this; } - /** Copies the specified {@link XrEyeGazeFB} at the specified index of the {@link #gaze} field. */ - public XrEyeGazesFB gaze(int index, XrEyeGazeFB value) { ngaze(address(), index, value); return this; } - /** Passes the {@link #gaze} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrEyeGazesFB gaze(java.util.function.Consumer consumer) { consumer.accept(gaze()); return this; } - /** Passes the element at {@code index} of the {@link #gaze} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrEyeGazesFB gaze(int index, java.util.function.Consumer consumer) { consumer.accept(gaze(index)); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrEyeGazesFB time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** an array of {@link XrEyeGazeFB} receiving the returned eye gaze directions. */ + public XrEyeGazeFB gaze() { return ngaze(address()); } + /** an {@code XrTime} time at which the returned eye gaze is tracked or extrapolated to. Equals the time for which the eye gaze was requested if the interpolation at the time was successful. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrEyeGazesFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_EYE_GAZES_FB TYPE_EYE_GAZES_FB} value to the {@link #type} field. */ + public XrEyeGazesFB type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_EYE_GAZES_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrEyeGazesFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link XrEyeGazeFB} to the {@link #gaze} field. */ + public XrEyeGazesFB gaze(XrEyeGazeFB value) { ngaze(address(), value); return this; } + /** Passes the {@link #gaze} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrEyeGazesFB gaze(java.util.function.Consumer consumer) { consumer.accept(gaze()); return this; } + /** Sets the specified value to the {@link #time} field. */ + public XrEyeGazesFB time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrEyeGazesFB set( - int type, - long next, - XrEyeGazeFB.Buffer gaze, + int type, + long next, + XrEyeGazeFB gaze, long time - ) { - type(type); - next(next); - gaze(gaze); - time(time); + ) { + type(type); + next(next); + gaze(gaze); + time(time); return this; } @@ -269,37 +259,26 @@ public static XrEyeGazesFB.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrEyeGazesFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrEyeGazesFB.NEXT); } - /** Unsafe version of {@link #gaze}. */ - public static XrEyeGazeFB.Buffer ngaze(long struct) { return XrEyeGazeFB.create(struct + XrEyeGazesFB.GAZE, XR_EYE_POSITION_COUNT_FB); } - /** Unsafe version of {@link #gaze(int) gaze}. */ - public static XrEyeGazeFB ngaze(long struct, int index) { - return XrEyeGazeFB.create(struct + XrEyeGazesFB.GAZE + check(index, XR_EYE_POSITION_COUNT_FB) * XrEyeGazeFB.SIZEOF); - } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrEyeGazesFB.TIME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEyeGazesFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrEyeGazesFB.NEXT, value); } - /** Unsafe version of {@link #gaze(XrEyeGazeFB.Buffer) gaze}. */ - public static void ngaze(long struct, XrEyeGazeFB.Buffer value) { - if (CHECKS) { checkGT(value, XR_EYE_POSITION_COUNT_FB); } - memCopy(value.address(), struct + XrEyeGazesFB.GAZE, value.remaining() * XrEyeGazeFB.SIZEOF); - } - /** Unsafe version of {@link #gaze(int, XrEyeGazeFB) gaze}. */ - public static void ngaze(long struct, int index, XrEyeGazeFB value) { - memCopy(value.address(), struct + XrEyeGazesFB.GAZE + check(index, XR_EYE_POSITION_COUNT_FB) * XrEyeGazeFB.SIZEOF, XrEyeGazeFB.SIZEOF); - } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrEyeGazesFB.TIME, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrEyeGazesFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrEyeGazesFB.NEXT); } + /** Unsafe version of {@link #gaze}. */ + public static XrEyeGazeFB ngaze(long struct) { return XrEyeGazeFB.create(struct + XrEyeGazesFB.GAZE); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrEyeGazesFB.TIME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEyeGazesFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrEyeGazesFB.NEXT, value); } + /** Unsafe version of {@link #gaze(XrEyeGazeFB) gaze}. */ + public static void ngaze(long struct, XrEyeGazeFB value) { memCopy(value.address(), struct + XrEyeGazesFB.GAZE, XrEyeGazeFB.SIZEOF); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrEyeGazesFB.TIME, value); } + + // ----------------------------------- /** An array of {@link XrEyeGazesFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -336,38 +315,31 @@ protected Buffer self() { protected XrEyeGazesFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEyeGazesFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEyeGazesFB.ntype(address()); } - /** @return the value of the {@link XrEyeGazesFB#next} field. */ - @NativeType("void *") - public long next() { return XrEyeGazesFB.nnext(address()); } - /** @return a {@link XrEyeGazeFB}.Buffer view of the {@link XrEyeGazesFB#gaze} field. */ - @NativeType("XrEyeGazeFB[XR_EYE_POSITION_COUNT_FB]") - public XrEyeGazeFB.Buffer gaze() { return XrEyeGazesFB.ngaze(address()); } - /** @return a {@link XrEyeGazeFB} view of the struct at the specified index of the {@link XrEyeGazesFB#gaze} field. */ - public XrEyeGazeFB gaze(int index) { return XrEyeGazesFB.ngaze(address(), index); } - /** @return the value of the {@link XrEyeGazesFB#time} field. */ - @NativeType("XrTime") - public long time() { return XrEyeGazesFB.ntime(address()); } - - /** Sets the specified value to the {@link XrEyeGazesFB#type} field. */ - public XrEyeGazesFB.Buffer type(@NativeType("XrStructureType") int value) { XrEyeGazesFB.ntype(address(), value); return this; } - /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_EYE_GAZES_FB TYPE_EYE_GAZES_FB} value to the {@link XrEyeGazesFB#type} field. */ - public XrEyeGazesFB.Buffer type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_EYE_GAZES_FB); } - /** Sets the specified value to the {@link XrEyeGazesFB#next} field. */ - public XrEyeGazesFB.Buffer next(@NativeType("void *") long value) { XrEyeGazesFB.nnext(address(), value); return this; } - /** Copies the specified {@link XrEyeGazeFB.Buffer} to the {@link XrEyeGazesFB#gaze} field. */ - public XrEyeGazesFB.Buffer gaze(@NativeType("XrEyeGazeFB[XR_EYE_POSITION_COUNT_FB]") XrEyeGazeFB.Buffer value) { XrEyeGazesFB.ngaze(address(), value); return this; } - /** Copies the specified {@link XrEyeGazeFB} at the specified index of the {@link XrEyeGazesFB#gaze} field. */ - public XrEyeGazesFB.Buffer gaze(int index, XrEyeGazeFB value) { XrEyeGazesFB.ngaze(address(), index, value); return this; } - /** Passes the {@link XrEyeGazesFB#gaze} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrEyeGazesFB.Buffer gaze(java.util.function.Consumer consumer) { consumer.accept(gaze()); return this; } - /** Passes the element at {@code index} of the {@link XrEyeGazesFB#gaze} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrEyeGazesFB.Buffer gaze(int index, java.util.function.Consumer consumer) { consumer.accept(gaze(index)); return this; } - /** Sets the specified value to the {@link XrEyeGazesFB#time} field. */ - public XrEyeGazesFB.Buffer time(@NativeType("XrTime") long value) { XrEyeGazesFB.ntime(address(), value); return this; } + + /** @return the value of the {@link XrEyeGazesFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEyeGazesFB.ntype(address()); } + /** @return the value of the {@link XrEyeGazesFB#next} field. */ + @NativeType("void *") + public long next() { return XrEyeGazesFB.nnext(address()); } + /** @return a {@link XrEyeGazeFB} view of the {@link XrEyeGazesFB#gaze} field. */ + public XrEyeGazeFB gaze() { return XrEyeGazesFB.ngaze(address()); } + /** @return the value of the {@link XrEyeGazesFB#time} field. */ + @NativeType("XrTime") + public long time() { return XrEyeGazesFB.ntime(address()); } + + /** Sets the specified value to the {@link XrEyeGazesFB#type} field. */ + public XrEyeGazesFB.Buffer type(@NativeType("XrStructureType") int value) { XrEyeGazesFB.ntype(address(), value); return this; } + /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_EYE_GAZES_FB TYPE_EYE_GAZES_FB} value to the {@link XrEyeGazesFB#type} field. */ + public XrEyeGazesFB.Buffer type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_EYE_GAZES_FB); } + /** Sets the specified value to the {@link XrEyeGazesFB#next} field. */ + public XrEyeGazesFB.Buffer next(@NativeType("void *") long value) { XrEyeGazesFB.nnext(address(), value); return this; } + /** Copies the specified {@link XrEyeGazeFB} to the {@link XrEyeGazesFB#gaze} field. */ + public XrEyeGazesFB.Buffer gaze(XrEyeGazeFB value) { XrEyeGazesFB.ngaze(address(), value); return this; } + /** Passes the {@link XrEyeGazesFB#gaze} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrEyeGazesFB.Buffer gaze(java.util.function.Consumer consumer) { consumer.accept(gaze()); return this; } + /** Sets the specified value to the {@link XrEyeGazesFB#time} field. */ + public XrEyeGazesFB.Buffer time(@NativeType("XrTime") long value) { XrEyeGazesFB.ntime(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazesInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazesInfoFB.java index 55230796de..3d302195b9 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazesInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeGazesInfoFB.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes the information to get eye gaze. * @@ -28,7 +28,7 @@ *
                              *
                            • The {@link FBEyeTrackingSocial XR_FB_eye_tracking_social} extension must be enabled prior to using {@link XrEyeGazesInfoFB}
                            • *
                            • {@code type} must be {@link FBEyeTrackingSocial#XR_TYPE_EYE_GAZES_INFO_FB TYPE_EYE_GAZES_INFO_FB}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@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
                            • *
                            * @@ -45,8 +45,8 @@ * XrSpace {@link #baseSpace}; * XrTime {@link #time}; * } - */ -public class XrEyeGazesInfoFB extends Struct implements NativeResource { + */ +public class XrEyeGazesInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,27 +56,27 @@ public class XrEyeGazesInfoFB extends Struct implements Native /** The struct member offsets. */ public static final int - TYPE, - NEXT, - BASESPACE, - TIME; + TYPE, + NEXT, + BASESPACE, + TIME; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - BASESPACE = layout.offsetof(2); - TIME = layout.offsetof(3); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + BASESPACE = layout.offsetof(2); + TIME = layout.offsetof(3); + } protected XrEyeGazesInfoFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -99,42 +99,42 @@ public XrEyeGazesInfoFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** an {@code XrSpace} within which the returned eye poses will be represented. */ - @NativeType("XrSpace") - public long baseSpace() { return nbaseSpace(address()); } - /** an {@code XrTime} at which the eye gaze information is requested. */ - @NativeType("XrTime") - public long time() { return ntime(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrEyeGazesInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_EYE_GAZES_INFO_FB TYPE_EYE_GAZES_INFO_FB} value to the {@link #type} field. */ - public XrEyeGazesInfoFB type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_EYE_GAZES_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrEyeGazesInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #baseSpace} field. */ - public XrEyeGazesInfoFB baseSpace(XrSpace value) { nbaseSpace(address(), value); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrEyeGazesInfoFB time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** an {@code XrSpace} within which the returned eye poses will be represented. */ + @NativeType("XrSpace") + public long baseSpace() { return nbaseSpace(address()); } + /** an {@code XrTime} at which the eye gaze information is requested. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrEyeGazesInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_EYE_GAZES_INFO_FB TYPE_EYE_GAZES_INFO_FB} value to the {@link #type} field. */ + public XrEyeGazesInfoFB type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_EYE_GAZES_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrEyeGazesInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #baseSpace} field. */ + public XrEyeGazesInfoFB baseSpace(XrSpace value) { nbaseSpace(address(), value); return this; } + /** Sets the specified value to the {@link #time} field. */ + public XrEyeGazesInfoFB time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrEyeGazesInfoFB set( - int type, - long next, - XrSpace baseSpace, + int type, + long next, + XrSpace baseSpace, long time - ) { - type(type); - next(next); - baseSpace(baseSpace); - time(time); + ) { + type(type); + next(next); + baseSpace(baseSpace); + time(time); return this; } @@ -263,24 +263,24 @@ public static XrEyeGazesInfoFB.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrEyeGazesInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrEyeGazesInfoFB.NEXT); } - /** Unsafe version of {@link #baseSpace}. */ - public static long nbaseSpace(long struct) { return memGetAddress(struct + XrEyeGazesInfoFB.BASESPACE); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrEyeGazesInfoFB.TIME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEyeGazesInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrEyeGazesInfoFB.NEXT, value); } - /** Unsafe version of {@link #baseSpace(XrSpace) baseSpace}. */ - public static void nbaseSpace(long struct, XrSpace value) { memPutAddress(struct + XrEyeGazesInfoFB.BASESPACE, value.address()); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrEyeGazesInfoFB.TIME, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrEyeGazesInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrEyeGazesInfoFB.NEXT); } + /** Unsafe version of {@link #baseSpace}. */ + public static long nbaseSpace(long struct) { return memGetAddress(struct + XrEyeGazesInfoFB.BASESPACE); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrEyeGazesInfoFB.TIME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEyeGazesInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrEyeGazesInfoFB.NEXT, value); } + /** Unsafe version of {@link #baseSpace(XrSpace) baseSpace}. */ + public static void nbaseSpace(long struct, XrSpace value) { memPutAddress(struct + XrEyeGazesInfoFB.BASESPACE, value.address()); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrEyeGazesInfoFB.TIME, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -289,9 +289,9 @@ public static XrEyeGazesInfoFB.Buffer calloc(int capacity, MemoryStack stack) { */ public static void validate(long struct) { check(memGetAddress(struct + XrEyeGazesInfoFB.BASESPACE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrEyeGazesInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -328,30 +328,30 @@ protected Buffer self() { protected XrEyeGazesInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEyeGazesInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEyeGazesInfoFB.ntype(address()); } - /** @return the value of the {@link XrEyeGazesInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrEyeGazesInfoFB.nnext(address()); } - /** @return the value of the {@link XrEyeGazesInfoFB#baseSpace} field. */ - @NativeType("XrSpace") - public long baseSpace() { return XrEyeGazesInfoFB.nbaseSpace(address()); } - /** @return the value of the {@link XrEyeGazesInfoFB#time} field. */ - @NativeType("XrTime") - public long time() { return XrEyeGazesInfoFB.ntime(address()); } - - /** Sets the specified value to the {@link XrEyeGazesInfoFB#type} field. */ - public XrEyeGazesInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrEyeGazesInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_EYE_GAZES_INFO_FB TYPE_EYE_GAZES_INFO_FB} value to the {@link XrEyeGazesInfoFB#type} field. */ - public XrEyeGazesInfoFB.Buffer type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_EYE_GAZES_INFO_FB); } - /** Sets the specified value to the {@link XrEyeGazesInfoFB#next} field. */ - public XrEyeGazesInfoFB.Buffer next(@NativeType("void const *") long value) { XrEyeGazesInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrEyeGazesInfoFB#baseSpace} field. */ - public XrEyeGazesInfoFB.Buffer baseSpace(XrSpace value) { XrEyeGazesInfoFB.nbaseSpace(address(), value); return this; } - /** Sets the specified value to the {@link XrEyeGazesInfoFB#time} field. */ - public XrEyeGazesInfoFB.Buffer time(@NativeType("XrTime") long value) { XrEyeGazesInfoFB.ntime(address(), value); return this; } + + /** @return the value of the {@link XrEyeGazesInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEyeGazesInfoFB.ntype(address()); } + /** @return the value of the {@link XrEyeGazesInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrEyeGazesInfoFB.nnext(address()); } + /** @return the value of the {@link XrEyeGazesInfoFB#baseSpace} field. */ + @NativeType("XrSpace") + public long baseSpace() { return XrEyeGazesInfoFB.nbaseSpace(address()); } + /** @return the value of the {@link XrEyeGazesInfoFB#time} field. */ + @NativeType("XrTime") + public long time() { return XrEyeGazesInfoFB.ntime(address()); } + + /** Sets the specified value to the {@link XrEyeGazesInfoFB#type} field. */ + public XrEyeGazesInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrEyeGazesInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_EYE_GAZES_INFO_FB TYPE_EYE_GAZES_INFO_FB} value to the {@link XrEyeGazesInfoFB#type} field. */ + public XrEyeGazesInfoFB.Buffer type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_EYE_GAZES_INFO_FB); } + /** Sets the specified value to the {@link XrEyeGazesInfoFB#next} field. */ + public XrEyeGazesInfoFB.Buffer next(@NativeType("void const *") long value) { XrEyeGazesInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrEyeGazesInfoFB#baseSpace} field. */ + public XrEyeGazesInfoFB.Buffer baseSpace(XrSpace value) { XrEyeGazesInfoFB.nbaseSpace(address(), value); return this; } + /** Sets the specified value to the {@link XrEyeGazesInfoFB#time} field. */ + public XrEyeGazesInfoFB.Buffer time(@NativeType("XrTime") long value) { XrEyeGazesInfoFB.ntime(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeTrackerCreateInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeTrackerCreateInfoFB.java index b2dfce11ff..8c4fda0b9c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeTrackerCreateInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeTrackerCreateInfoFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Information to create an eye gaze handle. * @@ -27,7 +27,7 @@ *
                              *
                            • The {@link FBEyeTrackingSocial XR_FB_eye_tracking_social} extension must be enabled prior to using {@link XrEyeTrackerCreateInfoFB}
                            • *
                            • {@code type} must be {@link FBEyeTrackingSocial#XR_TYPE_EYE_TRACKER_CREATE_INFO_FB TYPE_EYE_TRACKER_CREATE_INFO_FB}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • *
                            * *
                            See Also
                            @@ -41,8 +41,8 @@ * XrStructureType {@link #type}; * void const * {@link #next}; * } - */ -public class XrEyeTrackerCreateInfoFB extends Struct implements NativeResource { + */ +public class XrEyeTrackerCreateInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,21 +52,21 @@ public class XrEyeTrackerCreateInfoFB extends Struct i /** The struct member offsets. */ public static final int - TYPE, - NEXT; + TYPE, + NEXT; static { - Layout layout = __struct( - __member(4), + Layout layout = __struct( + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + } protected XrEyeTrackerCreateInfoFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -89,28 +89,28 @@ public XrEyeTrackerCreateInfoFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrEyeTrackerCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_EYE_TRACKER_CREATE_INFO_FB TYPE_EYE_TRACKER_CREATE_INFO_FB} value to the {@link #type} field. */ - public XrEyeTrackerCreateInfoFB type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_EYE_TRACKER_CREATE_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrEyeTrackerCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrEyeTrackerCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_EYE_TRACKER_CREATE_INFO_FB TYPE_EYE_TRACKER_CREATE_INFO_FB} value to the {@link #type} field. */ + public XrEyeTrackerCreateInfoFB type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_EYE_TRACKER_CREATE_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrEyeTrackerCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrEyeTrackerCreateInfoFB set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -239,18 +239,18 @@ public static XrEyeTrackerCreateInfoFB.Buffer calloc(int capacity, MemoryStack s } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrEyeTrackerCreateInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrEyeTrackerCreateInfoFB.NEXT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEyeTrackerCreateInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrEyeTrackerCreateInfoFB.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrEyeTrackerCreateInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrEyeTrackerCreateInfoFB.NEXT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrEyeTrackerCreateInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrEyeTrackerCreateInfoFB.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrEyeTrackerCreateInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -287,20 +287,20 @@ protected Buffer self() { protected XrEyeTrackerCreateInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrEyeTrackerCreateInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrEyeTrackerCreateInfoFB.ntype(address()); } - /** @return the value of the {@link XrEyeTrackerCreateInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrEyeTrackerCreateInfoFB.nnext(address()); } - - /** Sets the specified value to the {@link XrEyeTrackerCreateInfoFB#type} field. */ - public XrEyeTrackerCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrEyeTrackerCreateInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_EYE_TRACKER_CREATE_INFO_FB TYPE_EYE_TRACKER_CREATE_INFO_FB} value to the {@link XrEyeTrackerCreateInfoFB#type} field. */ - public XrEyeTrackerCreateInfoFB.Buffer type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_EYE_TRACKER_CREATE_INFO_FB); } - /** Sets the specified value to the {@link XrEyeTrackerCreateInfoFB#next} field. */ - public XrEyeTrackerCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrEyeTrackerCreateInfoFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrEyeTrackerCreateInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrEyeTrackerCreateInfoFB.ntype(address()); } + /** @return the value of the {@link XrEyeTrackerCreateInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrEyeTrackerCreateInfoFB.nnext(address()); } + + /** Sets the specified value to the {@link XrEyeTrackerCreateInfoFB#type} field. */ + public XrEyeTrackerCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrEyeTrackerCreateInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_EYE_TRACKER_CREATE_INFO_FB TYPE_EYE_TRACKER_CREATE_INFO_FB} value to the {@link XrEyeTrackerCreateInfoFB#type} field. */ + public XrEyeTrackerCreateInfoFB.Buffer type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_EYE_TRACKER_CREATE_INFO_FB); } + /** Sets the specified value to the {@link XrEyeTrackerCreateInfoFB#next} field. */ + public XrEyeTrackerCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrEyeTrackerCreateInfoFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeTrackerFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeTrackerFB.java index 51b4539993..31949295da 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeTrackerFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrEyeTrackerFB.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrEyeTrackerFB} handle. */ + +/** Wraps an {@code XrEyeTrackerFB} handle. */ public class XrEyeTrackerFB extends DispatchableHandle { private final XrSession session; @@ -26,4 +26,4 @@ public XrSession getSession() { return session; } -} +} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceExpressionInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceExpressionInfoFB.java index 8387d1f05b..c1860394eb 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceExpressionInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceExpressionInfoFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes the information to obtain facial expression. * @@ -27,7 +27,7 @@ *
                              *
                            • The {@link FBFaceTracking XR_FB_face_tracking} extension must be enabled prior to using {@link XrFaceExpressionInfoFB}
                            • *
                            • {@code type} must be {@link FBFaceTracking#XR_TYPE_FACE_EXPRESSION_INFO_FB TYPE_FACE_EXPRESSION_INFO_FB}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • *
                            * *
                            See Also
                            @@ -42,8 +42,8 @@ * void const * {@link #next}; * XrTime {@link #time}; * } - */ -public class XrFaceExpressionInfoFB extends Struct implements NativeResource { + */ +public class XrFaceExpressionInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,24 +53,24 @@ public class XrFaceExpressionInfoFB extends Struct imple /** The struct member offsets. */ public static final int - TYPE, - NEXT, - TIME; + TYPE, + NEXT, + TIME; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - TIME = layout.offsetof(2); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + TIME = layout.offsetof(2); + } protected XrFaceExpressionInfoFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -93,35 +93,35 @@ public XrFaceExpressionInfoFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** an {@code XrTime} at which the facial expression weights are requested. */ - @NativeType("XrTime") - public long time() { return ntime(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrFaceExpressionInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBFaceTracking#XR_TYPE_FACE_EXPRESSION_INFO_FB TYPE_FACE_EXPRESSION_INFO_FB} value to the {@link #type} field. */ - public XrFaceExpressionInfoFB type$Default() { return type(FBFaceTracking.XR_TYPE_FACE_EXPRESSION_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrFaceExpressionInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrFaceExpressionInfoFB time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** an {@code XrTime} at which the facial expression weights are requested. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrFaceExpressionInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBFaceTracking#XR_TYPE_FACE_EXPRESSION_INFO_FB TYPE_FACE_EXPRESSION_INFO_FB} value to the {@link #type} field. */ + public XrFaceExpressionInfoFB type$Default() { return type(FBFaceTracking.XR_TYPE_FACE_EXPRESSION_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrFaceExpressionInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #time} field. */ + public XrFaceExpressionInfoFB time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrFaceExpressionInfoFB set( - int type, - long next, + int type, + long next, long time - ) { - type(type); - next(next); - time(time); + ) { + type(type); + next(next); + time(time); return this; } @@ -250,22 +250,22 @@ public static XrFaceExpressionInfoFB.Buffer calloc(int capacity, MemoryStack sta } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFaceExpressionInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrFaceExpressionInfoFB.NEXT); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrFaceExpressionInfoFB.TIME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceExpressionInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrFaceExpressionInfoFB.NEXT, value); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrFaceExpressionInfoFB.TIME, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFaceExpressionInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrFaceExpressionInfoFB.NEXT); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrFaceExpressionInfoFB.TIME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceExpressionInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrFaceExpressionInfoFB.NEXT, value); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrFaceExpressionInfoFB.TIME, value); } + + // ----------------------------------- /** An array of {@link XrFaceExpressionInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -302,25 +302,25 @@ protected Buffer self() { protected XrFaceExpressionInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFaceExpressionInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFaceExpressionInfoFB.ntype(address()); } - /** @return the value of the {@link XrFaceExpressionInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrFaceExpressionInfoFB.nnext(address()); } - /** @return the value of the {@link XrFaceExpressionInfoFB#time} field. */ - @NativeType("XrTime") - public long time() { return XrFaceExpressionInfoFB.ntime(address()); } - - /** Sets the specified value to the {@link XrFaceExpressionInfoFB#type} field. */ - public XrFaceExpressionInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrFaceExpressionInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBFaceTracking#XR_TYPE_FACE_EXPRESSION_INFO_FB TYPE_FACE_EXPRESSION_INFO_FB} value to the {@link XrFaceExpressionInfoFB#type} field. */ - public XrFaceExpressionInfoFB.Buffer type$Default() { return type(FBFaceTracking.XR_TYPE_FACE_EXPRESSION_INFO_FB); } - /** Sets the specified value to the {@link XrFaceExpressionInfoFB#next} field. */ - public XrFaceExpressionInfoFB.Buffer next(@NativeType("void const *") long value) { XrFaceExpressionInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrFaceExpressionInfoFB#time} field. */ - public XrFaceExpressionInfoFB.Buffer time(@NativeType("XrTime") long value) { XrFaceExpressionInfoFB.ntime(address(), value); return this; } + + /** @return the value of the {@link XrFaceExpressionInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFaceExpressionInfoFB.ntype(address()); } + /** @return the value of the {@link XrFaceExpressionInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrFaceExpressionInfoFB.nnext(address()); } + /** @return the value of the {@link XrFaceExpressionInfoFB#time} field. */ + @NativeType("XrTime") + public long time() { return XrFaceExpressionInfoFB.ntime(address()); } + + /** Sets the specified value to the {@link XrFaceExpressionInfoFB#type} field. */ + public XrFaceExpressionInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrFaceExpressionInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBFaceTracking#XR_TYPE_FACE_EXPRESSION_INFO_FB TYPE_FACE_EXPRESSION_INFO_FB} value to the {@link XrFaceExpressionInfoFB#type} field. */ + public XrFaceExpressionInfoFB.Buffer type$Default() { return type(FBFaceTracking.XR_TYPE_FACE_EXPRESSION_INFO_FB); } + /** Sets the specified value to the {@link XrFaceExpressionInfoFB#next} field. */ + public XrFaceExpressionInfoFB.Buffer next(@NativeType("void const *") long value) { XrFaceExpressionInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrFaceExpressionInfoFB#time} field. */ + public XrFaceExpressionInfoFB.Buffer time(@NativeType("XrTime") long value) { XrFaceExpressionInfoFB.ntime(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceExpressionStatusFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceExpressionStatusFB.java index cd1d927607..ab41ace5bc 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceExpressionStatusFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceExpressionStatusFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes the status of facial expression weights. * @@ -43,8 +43,8 @@ * XrBool32 {@link #isValid}; * XrBool32 {@link #isEyeFollowingBlendshapesValid}; * } - */ -public class XrFaceExpressionStatusFB extends Struct implements NativeResource { + */ +public class XrFaceExpressionStatusFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,21 +54,21 @@ public class XrFaceExpressionStatusFB extends Struct i /** The struct member offsets. */ public static final int - ISVALID, - ISEYEFOLLOWINGBLENDSHAPESVALID; + ISVALID, + ISEYEFOLLOWINGBLENDSHAPESVALID; static { - Layout layout = __struct( - __member(4), + Layout layout = __struct( + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - ISVALID = layout.offsetof(0); - ISEYEFOLLOWINGBLENDSHAPESVALID = layout.offsetof(1); - } + ISVALID = layout.offsetof(0); + ISEYEFOLLOWINGBLENDSHAPESVALID = layout.offsetof(1); + } protected XrFaceExpressionStatusFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -91,26 +91,26 @@ public XrFaceExpressionStatusFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** an {@code XrBool32} which indicates that the tracked expression weights are valid. */ - @NativeType("XrBool32") - public boolean isValid() { return nisValid(address()) != 0; } - /** an {@code XrBool32} which indicates if the 8 expression weights with prefix {@code XR_FACE_EXPRESSION_EYES_LOOK_*} are valid. */ - @NativeType("XrBool32") - public boolean isEyeFollowingBlendshapesValid() { return nisEyeFollowingBlendshapesValid(address()) != 0; } - - /** Sets the specified value to the {@link #isValid} field. */ - public XrFaceExpressionStatusFB isValid(@NativeType("XrBool32") boolean value) { nisValid(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link #isEyeFollowingBlendshapesValid} field. */ - public XrFaceExpressionStatusFB isEyeFollowingBlendshapesValid(@NativeType("XrBool32") boolean value) { nisEyeFollowingBlendshapesValid(address(), value ? 1 : 0); return this; } + + /** an {@code XrBool32} which indicates that the tracked expression weights are valid. */ + @NativeType("XrBool32") + public boolean isValid() { return nisValid(address()) != 0; } + /** an {@code XrBool32} which indicates if the 8 expression weights with prefix {@code XR_FACE_EXPRESSION_EYES_LOOK_*} are valid. */ + @NativeType("XrBool32") + public boolean isEyeFollowingBlendshapesValid() { return nisEyeFollowingBlendshapesValid(address()) != 0; } + + /** Sets the specified value to the {@link #isValid} field. */ + public XrFaceExpressionStatusFB isValid(@NativeType("XrBool32") boolean value) { nisValid(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link #isEyeFollowingBlendshapesValid} field. */ + public XrFaceExpressionStatusFB isEyeFollowingBlendshapesValid(@NativeType("XrBool32") boolean value) { nisEyeFollowingBlendshapesValid(address(), value ? 1 : 0); return this; } /** Initializes this struct with the specified values. */ public XrFaceExpressionStatusFB set( - boolean isValid, + boolean isValid, boolean isEyeFollowingBlendshapesValid - ) { - isValid(isValid); - isEyeFollowingBlendshapesValid(isEyeFollowingBlendshapesValid); + ) { + isValid(isValid); + isEyeFollowingBlendshapesValid(isEyeFollowingBlendshapesValid); return this; } @@ -239,18 +239,18 @@ public static XrFaceExpressionStatusFB.Buffer calloc(int capacity, MemoryStack s } // ----------------------------------- - - /** Unsafe version of {@link #isValid}. */ - public static int nisValid(long struct) { return UNSAFE.getInt(null, struct + XrFaceExpressionStatusFB.ISVALID); } - /** Unsafe version of {@link #isEyeFollowingBlendshapesValid}. */ - public static int nisEyeFollowingBlendshapesValid(long struct) { return UNSAFE.getInt(null, struct + XrFaceExpressionStatusFB.ISEYEFOLLOWINGBLENDSHAPESVALID); } - - /** Unsafe version of {@link #isValid(boolean) isValid}. */ - public static void nisValid(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceExpressionStatusFB.ISVALID, value); } - /** Unsafe version of {@link #isEyeFollowingBlendshapesValid(boolean) isEyeFollowingBlendshapesValid}. */ - public static void nisEyeFollowingBlendshapesValid(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceExpressionStatusFB.ISEYEFOLLOWINGBLENDSHAPESVALID, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #isValid}. */ + public static int nisValid(long struct) { return UNSAFE.getInt(null, struct + XrFaceExpressionStatusFB.ISVALID); } + /** Unsafe version of {@link #isEyeFollowingBlendshapesValid}. */ + public static int nisEyeFollowingBlendshapesValid(long struct) { return UNSAFE.getInt(null, struct + XrFaceExpressionStatusFB.ISEYEFOLLOWINGBLENDSHAPESVALID); } + + /** Unsafe version of {@link #isValid(boolean) isValid}. */ + public static void nisValid(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceExpressionStatusFB.ISVALID, value); } + /** Unsafe version of {@link #isEyeFollowingBlendshapesValid(boolean) isEyeFollowingBlendshapesValid}. */ + public static void nisEyeFollowingBlendshapesValid(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceExpressionStatusFB.ISEYEFOLLOWINGBLENDSHAPESVALID, value); } + + // ----------------------------------- /** An array of {@link XrFaceExpressionStatusFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -287,18 +287,18 @@ protected Buffer self() { protected XrFaceExpressionStatusFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFaceExpressionStatusFB#isValid} field. */ - @NativeType("XrBool32") - public boolean isValid() { return XrFaceExpressionStatusFB.nisValid(address()) != 0; } - /** @return the value of the {@link XrFaceExpressionStatusFB#isEyeFollowingBlendshapesValid} field. */ - @NativeType("XrBool32") - public boolean isEyeFollowingBlendshapesValid() { return XrFaceExpressionStatusFB.nisEyeFollowingBlendshapesValid(address()) != 0; } - - /** Sets the specified value to the {@link XrFaceExpressionStatusFB#isValid} field. */ - public XrFaceExpressionStatusFB.Buffer isValid(@NativeType("XrBool32") boolean value) { XrFaceExpressionStatusFB.nisValid(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link XrFaceExpressionStatusFB#isEyeFollowingBlendshapesValid} field. */ - public XrFaceExpressionStatusFB.Buffer isEyeFollowingBlendshapesValid(@NativeType("XrBool32") boolean value) { XrFaceExpressionStatusFB.nisEyeFollowingBlendshapesValid(address(), value ? 1 : 0); return this; } + + /** @return the value of the {@link XrFaceExpressionStatusFB#isValid} field. */ + @NativeType("XrBool32") + public boolean isValid() { return XrFaceExpressionStatusFB.nisValid(address()) != 0; } + /** @return the value of the {@link XrFaceExpressionStatusFB#isEyeFollowingBlendshapesValid} field. */ + @NativeType("XrBool32") + public boolean isEyeFollowingBlendshapesValid() { return XrFaceExpressionStatusFB.nisEyeFollowingBlendshapesValid(address()) != 0; } + + /** Sets the specified value to the {@link XrFaceExpressionStatusFB#isValid} field. */ + public XrFaceExpressionStatusFB.Buffer isValid(@NativeType("XrBool32") boolean value) { XrFaceExpressionStatusFB.nisValid(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link XrFaceExpressionStatusFB#isEyeFollowingBlendshapesValid} field. */ + public XrFaceExpressionStatusFB.Buffer isEyeFollowingBlendshapesValid(@NativeType("XrBool32") boolean value) { XrFaceExpressionStatusFB.nisEyeFollowingBlendshapesValid(address(), value ? 1 : 0); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceExpressionWeightsFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceExpressionWeightsFB.java index 6694f2ab4a..bba884fd00 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceExpressionWeightsFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceExpressionWeightsFB.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Returns the facial expression. * @@ -36,7 +36,7 @@ *
                              *
                            • The {@link FBFaceTracking XR_FB_face_tracking} extension must be enabled prior to using {@link XrFaceExpressionWeightsFB}
                            • *
                            • {@code type} must be {@link FBFaceTracking#XR_TYPE_FACE_EXPRESSION_WEIGHTS_FB TYPE_FACE_EXPRESSION_WEIGHTS_FB}
                            • - *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • + *
                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                            • *
                            • {@code weights} must be a pointer to an array of {@code weightCount} {@code float} values
                            • *
                            • {@code confidences} must be a pointer to an array of {@code confidenceCount} {@code float} values
                            • *
                            • {@code status} must be a valid {@link XrFaceExpressionStatusFB} structure
                            • @@ -61,8 +61,8 @@ * {@link XrFaceExpressionStatusFB XrFaceExpressionStatusFB} {@link #status}; * XrTime {@link #time}; * } - */ -public class XrFaceExpressionWeightsFB extends Struct implements NativeResource { + */ +public class XrFaceExpressionWeightsFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -72,39 +72,39 @@ public class XrFaceExpressionWeightsFB extends Struct /** The struct member offsets. */ public static final int - TYPE, - NEXT, - WEIGHTCOUNT, - WEIGHTS, - CONFIDENCECOUNT, - CONFIDENCES, - STATUS, - TIME; + TYPE, + NEXT, + WEIGHTCOUNT, + WEIGHTS, + CONFIDENCECOUNT, + CONFIDENCES, + STATUS, + TIME; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(POINTER_SIZE), - __member(XrFaceExpressionStatusFB.SIZEOF, XrFaceExpressionStatusFB.ALIGNOF), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(POINTER_SIZE), + __member(XrFaceExpressionStatusFB.SIZEOF, XrFaceExpressionStatusFB.ALIGNOF), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - WEIGHTCOUNT = layout.offsetof(2); - WEIGHTS = layout.offsetof(3); - CONFIDENCECOUNT = layout.offsetof(4); - CONFIDENCES = layout.offsetof(5); - STATUS = layout.offsetof(6); - TIME = layout.offsetof(7); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + WEIGHTCOUNT = layout.offsetof(2); + WEIGHTS = layout.offsetof(3); + CONFIDENCECOUNT = layout.offsetof(4); + CONFIDENCES = layout.offsetof(5); + STATUS = layout.offsetof(6); + TIME = layout.offsetof(7); + } protected XrFaceExpressionWeightsFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -127,63 +127,63 @@ public XrFaceExpressionWeightsFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** a {@code uint32_t} describing the count of elements in {@code weights} array. */ - @NativeType("uint32_t") - public int weightCount() { return nweightCount(address()); } - /** a pointer to an application-allocated array of {@code float} that will be filled with weights of facial expression blend shapes. */ - @NativeType("float *") - public FloatBuffer weights() { return nweights(address()); } - /** a {@code uint32_t} describing the count of elements in {@code confidences} array. */ - @NativeType("uint32_t") - public int confidenceCount() { return nconfidenceCount(address()); } - /** a pointer to an application-allocated array of {@code float} that will be filled with confidence of tracking specific parts of a face. */ - @NativeType("float *") - public FloatBuffer confidences() { return nconfidences(address()); } - /** the {@link XrFaceExpressionStatusFB} of validity status of the expression weights. */ - public XrFaceExpressionStatusFB status() { return nstatus(address()); } - /** an {@code XrTime} time at which the returned expression weights are tracked or extrapolated to. Equals the time at which the expression weights were requested if the extrapolating at the time was successful. */ - @NativeType("XrTime") - public long time() { return ntime(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrFaceExpressionWeightsFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBFaceTracking#XR_TYPE_FACE_EXPRESSION_WEIGHTS_FB TYPE_FACE_EXPRESSION_WEIGHTS_FB} value to the {@link #type} field. */ - public XrFaceExpressionWeightsFB type$Default() { return type(FBFaceTracking.XR_TYPE_FACE_EXPRESSION_WEIGHTS_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrFaceExpressionWeightsFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the address of the specified {@link FloatBuffer} to the {@link #weights} field. */ - public XrFaceExpressionWeightsFB weights(@NativeType("float *") FloatBuffer value) { nweights(address(), value); return this; } - /** Sets the address of the specified {@link FloatBuffer} to the {@link #confidences} field. */ - public XrFaceExpressionWeightsFB confidences(@NativeType("float *") FloatBuffer value) { nconfidences(address(), value); return this; } - /** Copies the specified {@link XrFaceExpressionStatusFB} to the {@link #status} field. */ - public XrFaceExpressionWeightsFB status(XrFaceExpressionStatusFB value) { nstatus(address(), value); return this; } - /** Passes the {@link #status} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrFaceExpressionWeightsFB status(java.util.function.Consumer consumer) { consumer.accept(status()); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrFaceExpressionWeightsFB time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** a {@code uint32_t} describing the count of elements in {@code weights} array. */ + @NativeType("uint32_t") + public int weightCount() { return nweightCount(address()); } + /** a pointer to an application-allocated array of {@code float} that will be filled with weights of facial expression blend shapes. */ + @NativeType("float *") + public FloatBuffer weights() { return nweights(address()); } + /** a {@code uint32_t} describing the count of elements in {@code confidences} array. */ + @NativeType("uint32_t") + public int confidenceCount() { return nconfidenceCount(address()); } + /** a pointer to an application-allocated array of {@code float} that will be filled with confidence of tracking specific parts of a face. */ + @NativeType("float *") + public FloatBuffer confidences() { return nconfidences(address()); } + /** the {@link XrFaceExpressionStatusFB} of validity status of the expression weights. */ + public XrFaceExpressionStatusFB status() { return nstatus(address()); } + /** an {@code XrTime} time at which the returned expression weights are tracked or extrapolated to. Equals the time at which the expression weights were requested if the extrapolating at the time was successful. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrFaceExpressionWeightsFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBFaceTracking#XR_TYPE_FACE_EXPRESSION_WEIGHTS_FB TYPE_FACE_EXPRESSION_WEIGHTS_FB} value to the {@link #type} field. */ + public XrFaceExpressionWeightsFB type$Default() { return type(FBFaceTracking.XR_TYPE_FACE_EXPRESSION_WEIGHTS_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrFaceExpressionWeightsFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the address of the specified {@link FloatBuffer} to the {@link #weights} field. */ + public XrFaceExpressionWeightsFB weights(@NativeType("float *") FloatBuffer value) { nweights(address(), value); return this; } + /** Sets the address of the specified {@link FloatBuffer} to the {@link #confidences} field. */ + public XrFaceExpressionWeightsFB confidences(@NativeType("float *") FloatBuffer value) { nconfidences(address(), value); return this; } + /** Copies the specified {@link XrFaceExpressionStatusFB} to the {@link #status} field. */ + public XrFaceExpressionWeightsFB status(XrFaceExpressionStatusFB value) { nstatus(address(), value); return this; } + /** Passes the {@link #status} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrFaceExpressionWeightsFB status(java.util.function.Consumer consumer) { consumer.accept(status()); return this; } + /** Sets the specified value to the {@link #time} field. */ + public XrFaceExpressionWeightsFB time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrFaceExpressionWeightsFB set( - int type, - long next, - FloatBuffer weights, - FloatBuffer confidences, - XrFaceExpressionStatusFB status, + int type, + long next, + FloatBuffer weights, + FloatBuffer confidences, + XrFaceExpressionStatusFB status, long time - ) { - type(type); - next(next); - weights(weights); - confidences(confidences); - status(status); - time(time); + ) { + type(type); + next(next); + weights(weights); + confidences(confidences); + status(status); + time(time); return this; } @@ -312,40 +312,40 @@ public static XrFaceExpressionWeightsFB.Buffer calloc(int capacity, MemoryStack } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFaceExpressionWeightsFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrFaceExpressionWeightsFB.NEXT); } - /** Unsafe version of {@link #weightCount}. */ - public static int nweightCount(long struct) { return UNSAFE.getInt(null, struct + XrFaceExpressionWeightsFB.WEIGHTCOUNT); } - /** Unsafe version of {@link #weights() weights}. */ - public static FloatBuffer nweights(long struct) { return memFloatBuffer(memGetAddress(struct + XrFaceExpressionWeightsFB.WEIGHTS), nweightCount(struct)); } - /** Unsafe version of {@link #confidenceCount}. */ - public static int nconfidenceCount(long struct) { return UNSAFE.getInt(null, struct + XrFaceExpressionWeightsFB.CONFIDENCECOUNT); } - /** Unsafe version of {@link #confidences() confidences}. */ - public static FloatBuffer nconfidences(long struct) { return memFloatBuffer(memGetAddress(struct + XrFaceExpressionWeightsFB.CONFIDENCES), nconfidenceCount(struct)); } - /** Unsafe version of {@link #status}. */ - public static XrFaceExpressionStatusFB nstatus(long struct) { return XrFaceExpressionStatusFB.create(struct + XrFaceExpressionWeightsFB.STATUS); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrFaceExpressionWeightsFB.TIME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceExpressionWeightsFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrFaceExpressionWeightsFB.NEXT, value); } - /** Sets the specified value to the {@code weightCount} field of the specified {@code struct}. */ - public static void nweightCount(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceExpressionWeightsFB.WEIGHTCOUNT, value); } - /** Unsafe version of {@link #weights(FloatBuffer) weights}. */ - public static void nweights(long struct, FloatBuffer value) { memPutAddress(struct + XrFaceExpressionWeightsFB.WEIGHTS, memAddress(value)); nweightCount(struct, value.remaining()); } - /** Sets the specified value to the {@code confidenceCount} field of the specified {@code struct}. */ - public static void nconfidenceCount(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceExpressionWeightsFB.CONFIDENCECOUNT, value); } - /** Unsafe version of {@link #confidences(FloatBuffer) confidences}. */ - public static void nconfidences(long struct, FloatBuffer value) { memPutAddress(struct + XrFaceExpressionWeightsFB.CONFIDENCES, memAddress(value)); nconfidenceCount(struct, value.remaining()); } - /** Unsafe version of {@link #status(XrFaceExpressionStatusFB) status}. */ - public static void nstatus(long struct, XrFaceExpressionStatusFB value) { memCopy(value.address(), struct + XrFaceExpressionWeightsFB.STATUS, XrFaceExpressionStatusFB.SIZEOF); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrFaceExpressionWeightsFB.TIME, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFaceExpressionWeightsFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrFaceExpressionWeightsFB.NEXT); } + /** Unsafe version of {@link #weightCount}. */ + public static int nweightCount(long struct) { return UNSAFE.getInt(null, struct + XrFaceExpressionWeightsFB.WEIGHTCOUNT); } + /** Unsafe version of {@link #weights() weights}. */ + public static FloatBuffer nweights(long struct) { return memFloatBuffer(memGetAddress(struct + XrFaceExpressionWeightsFB.WEIGHTS), nweightCount(struct)); } + /** Unsafe version of {@link #confidenceCount}. */ + public static int nconfidenceCount(long struct) { return UNSAFE.getInt(null, struct + XrFaceExpressionWeightsFB.CONFIDENCECOUNT); } + /** Unsafe version of {@link #confidences() confidences}. */ + public static FloatBuffer nconfidences(long struct) { return memFloatBuffer(memGetAddress(struct + XrFaceExpressionWeightsFB.CONFIDENCES), nconfidenceCount(struct)); } + /** Unsafe version of {@link #status}. */ + public static XrFaceExpressionStatusFB nstatus(long struct) { return XrFaceExpressionStatusFB.create(struct + XrFaceExpressionWeightsFB.STATUS); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrFaceExpressionWeightsFB.TIME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceExpressionWeightsFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrFaceExpressionWeightsFB.NEXT, value); } + /** Sets the specified value to the {@code weightCount} field of the specified {@code struct}. */ + public static void nweightCount(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceExpressionWeightsFB.WEIGHTCOUNT, value); } + /** Unsafe version of {@link #weights(FloatBuffer) weights}. */ + public static void nweights(long struct, FloatBuffer value) { memPutAddress(struct + XrFaceExpressionWeightsFB.WEIGHTS, memAddress(value)); nweightCount(struct, value.remaining()); } + /** Sets the specified value to the {@code confidenceCount} field of the specified {@code struct}. */ + public static void nconfidenceCount(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceExpressionWeightsFB.CONFIDENCECOUNT, value); } + /** Unsafe version of {@link #confidences(FloatBuffer) confidences}. */ + public static void nconfidences(long struct, FloatBuffer value) { memPutAddress(struct + XrFaceExpressionWeightsFB.CONFIDENCES, memAddress(value)); nconfidenceCount(struct, value.remaining()); } + /** Unsafe version of {@link #status(XrFaceExpressionStatusFB) status}. */ + public static void nstatus(long struct, XrFaceExpressionStatusFB value) { memCopy(value.address(), struct + XrFaceExpressionWeightsFB.STATUS, XrFaceExpressionStatusFB.SIZEOF); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrFaceExpressionWeightsFB.TIME, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -355,9 +355,9 @@ public static XrFaceExpressionWeightsFB.Buffer calloc(int capacity, MemoryStack public static void validate(long struct) { check(memGetAddress(struct + XrFaceExpressionWeightsFB.WEIGHTS)); check(memGetAddress(struct + XrFaceExpressionWeightsFB.CONFIDENCES)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrFaceExpressionWeightsFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -394,47 +394,47 @@ protected Buffer self() { protected XrFaceExpressionWeightsFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFaceExpressionWeightsFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFaceExpressionWeightsFB.ntype(address()); } - /** @return the value of the {@link XrFaceExpressionWeightsFB#next} field. */ - @NativeType("void *") - public long next() { return XrFaceExpressionWeightsFB.nnext(address()); } - /** @return the value of the {@link XrFaceExpressionWeightsFB#weightCount} field. */ - @NativeType("uint32_t") - public int weightCount() { return XrFaceExpressionWeightsFB.nweightCount(address()); } - /** @return a {@link FloatBuffer} view of the data pointed to by the {@link XrFaceExpressionWeightsFB#weights} field. */ - @NativeType("float *") - public FloatBuffer weights() { return XrFaceExpressionWeightsFB.nweights(address()); } - /** @return the value of the {@link XrFaceExpressionWeightsFB#confidenceCount} field. */ - @NativeType("uint32_t") - public int confidenceCount() { return XrFaceExpressionWeightsFB.nconfidenceCount(address()); } - /** @return a {@link FloatBuffer} view of the data pointed to by the {@link XrFaceExpressionWeightsFB#confidences} field. */ - @NativeType("float *") - public FloatBuffer confidences() { return XrFaceExpressionWeightsFB.nconfidences(address()); } - /** @return a {@link XrFaceExpressionStatusFB} view of the {@link XrFaceExpressionWeightsFB#status} field. */ - public XrFaceExpressionStatusFB status() { return XrFaceExpressionWeightsFB.nstatus(address()); } - /** @return the value of the {@link XrFaceExpressionWeightsFB#time} field. */ - @NativeType("XrTime") - public long time() { return XrFaceExpressionWeightsFB.ntime(address()); } - - /** Sets the specified value to the {@link XrFaceExpressionWeightsFB#type} field. */ - public XrFaceExpressionWeightsFB.Buffer type(@NativeType("XrStructureType") int value) { XrFaceExpressionWeightsFB.ntype(address(), value); return this; } - /** Sets the {@link FBFaceTracking#XR_TYPE_FACE_EXPRESSION_WEIGHTS_FB TYPE_FACE_EXPRESSION_WEIGHTS_FB} value to the {@link XrFaceExpressionWeightsFB#type} field. */ - public XrFaceExpressionWeightsFB.Buffer type$Default() { return type(FBFaceTracking.XR_TYPE_FACE_EXPRESSION_WEIGHTS_FB); } - /** Sets the specified value to the {@link XrFaceExpressionWeightsFB#next} field. */ - public XrFaceExpressionWeightsFB.Buffer next(@NativeType("void *") long value) { XrFaceExpressionWeightsFB.nnext(address(), value); return this; } - /** Sets the address of the specified {@link FloatBuffer} to the {@link XrFaceExpressionWeightsFB#weights} field. */ - public XrFaceExpressionWeightsFB.Buffer weights(@NativeType("float *") FloatBuffer value) { XrFaceExpressionWeightsFB.nweights(address(), value); return this; } - /** Sets the address of the specified {@link FloatBuffer} to the {@link XrFaceExpressionWeightsFB#confidences} field. */ - public XrFaceExpressionWeightsFB.Buffer confidences(@NativeType("float *") FloatBuffer value) { XrFaceExpressionWeightsFB.nconfidences(address(), value); return this; } - /** Copies the specified {@link XrFaceExpressionStatusFB} to the {@link XrFaceExpressionWeightsFB#status} field. */ - public XrFaceExpressionWeightsFB.Buffer status(XrFaceExpressionStatusFB value) { XrFaceExpressionWeightsFB.nstatus(address(), value); return this; } - /** Passes the {@link XrFaceExpressionWeightsFB#status} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrFaceExpressionWeightsFB.Buffer status(java.util.function.Consumer consumer) { consumer.accept(status()); return this; } - /** Sets the specified value to the {@link XrFaceExpressionWeightsFB#time} field. */ - public XrFaceExpressionWeightsFB.Buffer time(@NativeType("XrTime") long value) { XrFaceExpressionWeightsFB.ntime(address(), value); return this; } + + /** @return the value of the {@link XrFaceExpressionWeightsFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFaceExpressionWeightsFB.ntype(address()); } + /** @return the value of the {@link XrFaceExpressionWeightsFB#next} field. */ + @NativeType("void *") + public long next() { return XrFaceExpressionWeightsFB.nnext(address()); } + /** @return the value of the {@link XrFaceExpressionWeightsFB#weightCount} field. */ + @NativeType("uint32_t") + public int weightCount() { return XrFaceExpressionWeightsFB.nweightCount(address()); } + /** @return a {@link FloatBuffer} view of the data pointed to by the {@link XrFaceExpressionWeightsFB#weights} field. */ + @NativeType("float *") + public FloatBuffer weights() { return XrFaceExpressionWeightsFB.nweights(address()); } + /** @return the value of the {@link XrFaceExpressionWeightsFB#confidenceCount} field. */ + @NativeType("uint32_t") + public int confidenceCount() { return XrFaceExpressionWeightsFB.nconfidenceCount(address()); } + /** @return a {@link FloatBuffer} view of the data pointed to by the {@link XrFaceExpressionWeightsFB#confidences} field. */ + @NativeType("float *") + public FloatBuffer confidences() { return XrFaceExpressionWeightsFB.nconfidences(address()); } + /** @return a {@link XrFaceExpressionStatusFB} view of the {@link XrFaceExpressionWeightsFB#status} field. */ + public XrFaceExpressionStatusFB status() { return XrFaceExpressionWeightsFB.nstatus(address()); } + /** @return the value of the {@link XrFaceExpressionWeightsFB#time} field. */ + @NativeType("XrTime") + public long time() { return XrFaceExpressionWeightsFB.ntime(address()); } + + /** Sets the specified value to the {@link XrFaceExpressionWeightsFB#type} field. */ + public XrFaceExpressionWeightsFB.Buffer type(@NativeType("XrStructureType") int value) { XrFaceExpressionWeightsFB.ntype(address(), value); return this; } + /** Sets the {@link FBFaceTracking#XR_TYPE_FACE_EXPRESSION_WEIGHTS_FB TYPE_FACE_EXPRESSION_WEIGHTS_FB} value to the {@link XrFaceExpressionWeightsFB#type} field. */ + public XrFaceExpressionWeightsFB.Buffer type$Default() { return type(FBFaceTracking.XR_TYPE_FACE_EXPRESSION_WEIGHTS_FB); } + /** Sets the specified value to the {@link XrFaceExpressionWeightsFB#next} field. */ + public XrFaceExpressionWeightsFB.Buffer next(@NativeType("void *") long value) { XrFaceExpressionWeightsFB.nnext(address(), value); return this; } + /** Sets the address of the specified {@link FloatBuffer} to the {@link XrFaceExpressionWeightsFB#weights} field. */ + public XrFaceExpressionWeightsFB.Buffer weights(@NativeType("float *") FloatBuffer value) { XrFaceExpressionWeightsFB.nweights(address(), value); return this; } + /** Sets the address of the specified {@link FloatBuffer} to the {@link XrFaceExpressionWeightsFB#confidences} field. */ + public XrFaceExpressionWeightsFB.Buffer confidences(@NativeType("float *") FloatBuffer value) { XrFaceExpressionWeightsFB.nconfidences(address(), value); return this; } + /** Copies the specified {@link XrFaceExpressionStatusFB} to the {@link XrFaceExpressionWeightsFB#status} field. */ + public XrFaceExpressionWeightsFB.Buffer status(XrFaceExpressionStatusFB value) { XrFaceExpressionWeightsFB.nstatus(address(), value); return this; } + /** Passes the {@link XrFaceExpressionWeightsFB#status} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrFaceExpressionWeightsFB.Buffer status(java.util.function.Consumer consumer) { consumer.accept(status()); return this; } + /** Sets the specified value to the {@link XrFaceExpressionWeightsFB#time} field. */ + public XrFaceExpressionWeightsFB.Buffer time(@NativeType("XrTime") long value) { XrFaceExpressionWeightsFB.ntime(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceTrackerCreateInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceTrackerCreateInfoFB.java index 768c6d5e04..f295f25cce 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceTrackerCreateInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceTrackerCreateInfoFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Information to create a facial expression handle. * @@ -27,7 +27,7 @@ *
                                *
                              • The {@link FBFaceTracking XR_FB_face_tracking} extension must be enabled prior to using {@link XrFaceTrackerCreateInfoFB}
                              • *
                              • {@code type} must be {@link FBFaceTracking#XR_TYPE_FACE_TRACKER_CREATE_INFO_FB TYPE_FACE_TRACKER_CREATE_INFO_FB}
                              • - *
                              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                              • + *
                              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                              • *
                              • {@code faceExpressionSet} must be a valid {@code XrFaceExpressionSetFB} value
                              • *
                              * @@ -43,8 +43,8 @@ * void const * {@link #next}; * XrFaceExpressionSetFB {@link #faceExpressionSet}; * } - */ -public class XrFaceTrackerCreateInfoFB extends Struct implements NativeResource { + */ +public class XrFaceTrackerCreateInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,24 +54,24 @@ public class XrFaceTrackerCreateInfoFB extends Struct /** The struct member offsets. */ public static final int - TYPE, - NEXT, - FACEEXPRESSIONSET; + TYPE, + NEXT, + FACEEXPRESSIONSET; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - FACEEXPRESSIONSET = layout.offsetof(2); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + FACEEXPRESSIONSET = layout.offsetof(2); + } protected XrFaceTrackerCreateInfoFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -94,35 +94,35 @@ public XrFaceTrackerCreateInfoFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** an {@code XrFaceExpressionSetFB} that describe the set of blend shapes to retrieve. */ - @NativeType("XrFaceExpressionSetFB") - public int faceExpressionSet() { return nfaceExpressionSet(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrFaceTrackerCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBFaceTracking#XR_TYPE_FACE_TRACKER_CREATE_INFO_FB TYPE_FACE_TRACKER_CREATE_INFO_FB} value to the {@link #type} field. */ - public XrFaceTrackerCreateInfoFB type$Default() { return type(FBFaceTracking.XR_TYPE_FACE_TRACKER_CREATE_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrFaceTrackerCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #faceExpressionSet} field. */ - public XrFaceTrackerCreateInfoFB faceExpressionSet(@NativeType("XrFaceExpressionSetFB") int value) { nfaceExpressionSet(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** an {@code XrFaceExpressionSetFB} that describe the set of blend shapes to retrieve. */ + @NativeType("XrFaceExpressionSetFB") + public int faceExpressionSet() { return nfaceExpressionSet(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrFaceTrackerCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBFaceTracking#XR_TYPE_FACE_TRACKER_CREATE_INFO_FB TYPE_FACE_TRACKER_CREATE_INFO_FB} value to the {@link #type} field. */ + public XrFaceTrackerCreateInfoFB type$Default() { return type(FBFaceTracking.XR_TYPE_FACE_TRACKER_CREATE_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrFaceTrackerCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #faceExpressionSet} field. */ + public XrFaceTrackerCreateInfoFB faceExpressionSet(@NativeType("XrFaceExpressionSetFB") int value) { nfaceExpressionSet(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrFaceTrackerCreateInfoFB set( - int type, - long next, + int type, + long next, int faceExpressionSet - ) { - type(type); - next(next); - faceExpressionSet(faceExpressionSet); + ) { + type(type); + next(next); + faceExpressionSet(faceExpressionSet); return this; } @@ -251,22 +251,22 @@ public static XrFaceTrackerCreateInfoFB.Buffer calloc(int capacity, MemoryStack } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFaceTrackerCreateInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrFaceTrackerCreateInfoFB.NEXT); } - /** Unsafe version of {@link #faceExpressionSet}. */ - public static int nfaceExpressionSet(long struct) { return UNSAFE.getInt(null, struct + XrFaceTrackerCreateInfoFB.FACEEXPRESSIONSET); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceTrackerCreateInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrFaceTrackerCreateInfoFB.NEXT, value); } - /** Unsafe version of {@link #faceExpressionSet(int) faceExpressionSet}. */ - public static void nfaceExpressionSet(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceTrackerCreateInfoFB.FACEEXPRESSIONSET, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFaceTrackerCreateInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrFaceTrackerCreateInfoFB.NEXT); } + /** Unsafe version of {@link #faceExpressionSet}. */ + public static int nfaceExpressionSet(long struct) { return UNSAFE.getInt(null, struct + XrFaceTrackerCreateInfoFB.FACEEXPRESSIONSET); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceTrackerCreateInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrFaceTrackerCreateInfoFB.NEXT, value); } + /** Unsafe version of {@link #faceExpressionSet(int) faceExpressionSet}. */ + public static void nfaceExpressionSet(long struct, int value) { UNSAFE.putInt(null, struct + XrFaceTrackerCreateInfoFB.FACEEXPRESSIONSET, value); } + + // ----------------------------------- /** An array of {@link XrFaceTrackerCreateInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -303,25 +303,25 @@ protected Buffer self() { protected XrFaceTrackerCreateInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFaceTrackerCreateInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFaceTrackerCreateInfoFB.ntype(address()); } - /** @return the value of the {@link XrFaceTrackerCreateInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrFaceTrackerCreateInfoFB.nnext(address()); } - /** @return the value of the {@link XrFaceTrackerCreateInfoFB#faceExpressionSet} field. */ - @NativeType("XrFaceExpressionSetFB") - public int faceExpressionSet() { return XrFaceTrackerCreateInfoFB.nfaceExpressionSet(address()); } - - /** Sets the specified value to the {@link XrFaceTrackerCreateInfoFB#type} field. */ - public XrFaceTrackerCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrFaceTrackerCreateInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBFaceTracking#XR_TYPE_FACE_TRACKER_CREATE_INFO_FB TYPE_FACE_TRACKER_CREATE_INFO_FB} value to the {@link XrFaceTrackerCreateInfoFB#type} field. */ - public XrFaceTrackerCreateInfoFB.Buffer type$Default() { return type(FBFaceTracking.XR_TYPE_FACE_TRACKER_CREATE_INFO_FB); } - /** Sets the specified value to the {@link XrFaceTrackerCreateInfoFB#next} field. */ - public XrFaceTrackerCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrFaceTrackerCreateInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrFaceTrackerCreateInfoFB#faceExpressionSet} field. */ - public XrFaceTrackerCreateInfoFB.Buffer faceExpressionSet(@NativeType("XrFaceExpressionSetFB") int value) { XrFaceTrackerCreateInfoFB.nfaceExpressionSet(address(), value); return this; } + + /** @return the value of the {@link XrFaceTrackerCreateInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFaceTrackerCreateInfoFB.ntype(address()); } + /** @return the value of the {@link XrFaceTrackerCreateInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrFaceTrackerCreateInfoFB.nnext(address()); } + /** @return the value of the {@link XrFaceTrackerCreateInfoFB#faceExpressionSet} field. */ + @NativeType("XrFaceExpressionSetFB") + public int faceExpressionSet() { return XrFaceTrackerCreateInfoFB.nfaceExpressionSet(address()); } + + /** Sets the specified value to the {@link XrFaceTrackerCreateInfoFB#type} field. */ + public XrFaceTrackerCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrFaceTrackerCreateInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBFaceTracking#XR_TYPE_FACE_TRACKER_CREATE_INFO_FB TYPE_FACE_TRACKER_CREATE_INFO_FB} value to the {@link XrFaceTrackerCreateInfoFB#type} field. */ + public XrFaceTrackerCreateInfoFB.Buffer type$Default() { return type(FBFaceTracking.XR_TYPE_FACE_TRACKER_CREATE_INFO_FB); } + /** Sets the specified value to the {@link XrFaceTrackerCreateInfoFB#next} field. */ + public XrFaceTrackerCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrFaceTrackerCreateInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrFaceTrackerCreateInfoFB#faceExpressionSet} field. */ + public XrFaceTrackerCreateInfoFB.Buffer faceExpressionSet(@NativeType("XrFaceExpressionSetFB") int value) { XrFaceTrackerCreateInfoFB.nfaceExpressionSet(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceTrackerFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceTrackerFB.java index bc21d83c0e..2395a7fbc7 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceTrackerFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFaceTrackerFB.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrFaceTrackerFB} handle. */ + +/** Wraps an {@code XrFaceTrackerFB} handle. */ public class XrFaceTrackerFB extends DispatchableHandle { private final XrSession session; @@ -26,4 +26,4 @@ public XrSession getSession() { return session; } -} +} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFacialExpressionsHTC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFacialExpressionsHTC.java index f5fd77c2c4..32950ee05f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFacialExpressionsHTC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFacialExpressionsHTC.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Returns the expression data. * @@ -40,7 +40,7 @@ *
                                *
                              • The {@link HTCFacialTracking XR_HTC_facial_tracking} extension must be enabled prior to using {@link XrFacialExpressionsHTC}
                              • *
                              • {@code type} must be {@link HTCFacialTracking#XR_TYPE_FACIAL_EXPRESSIONS_HTC TYPE_FACIAL_EXPRESSIONS_HTC}
                              • - *
                              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                              • + *
                              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                              • *
                              • {@code expressionWeightings} must be a pointer to a {@code float} value
                              • *
                              * @@ -59,8 +59,8 @@ * uint32_t {@link #expressionCount}; * float * {@link #expressionWeightings}; * } - */ -public class XrFacialExpressionsHTC extends Struct implements NativeResource { + */ +public class XrFacialExpressionsHTC extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -70,33 +70,33 @@ public class XrFacialExpressionsHTC extends Struct imple /** The struct member offsets. */ public static final int - TYPE, - NEXT, - ISACTIVE, - SAMPLETIME, - EXPRESSIONCOUNT, - EXPRESSIONWEIGHTINGS; + TYPE, + NEXT, + ISACTIVE, + SAMPLETIME, + EXPRESSIONCOUNT, + EXPRESSIONWEIGHTINGS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(8), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(8), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - ISACTIVE = layout.offsetof(2); - SAMPLETIME = layout.offsetof(3); - EXPRESSIONCOUNT = layout.offsetof(4); - EXPRESSIONWEIGHTINGS = layout.offsetof(5); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + ISACTIVE = layout.offsetof(2); + SAMPLETIME = layout.offsetof(3); + EXPRESSIONCOUNT = layout.offsetof(4); + EXPRESSIONWEIGHTINGS = layout.offsetof(5); + } protected XrFacialExpressionsHTC(long address, @Nullable ByteBuffer container) { super(address, container); @@ -119,60 +119,60 @@ public XrFacialExpressionsHTC(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** an {@code XrBool32} indicating if the facial tracker is active. */ - @NativeType("XrBool32") - public boolean isActive() { return nisActive(address()) != 0; } - /** when in time the expression is expressed. */ - @NativeType("XrTime") - public long sampleTime() { return nsampleTime(address()); } - /** a {@code uint32_t} describing the count of elements in {@code expressionWeightings} array. */ - @NativeType("uint32_t") - public int expressionCount() { return nexpressionCount(address()); } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** an {@code XrBool32} indicating if the facial tracker is active. */ + @NativeType("XrBool32") + public boolean isActive() { return nisActive(address()) != 0; } + /** when in time the expression is expressed. */ + @NativeType("XrTime") + public long sampleTime() { return nsampleTime(address()); } + /** a {@code uint32_t} describing the count of elements in {@code expressionWeightings} array. */ + @NativeType("uint32_t") + public int expressionCount() { return nexpressionCount(address()); } /** * @param capacity the number of elements in the returned buffer * * @return a {@code float} array filled in by the runtime, specifying the weightings for each blend shape. - */ - @NativeType("float *") - public FloatBuffer expressionWeightings(int capacity) { return nexpressionWeightings(address(), capacity); } - - /** Sets the specified value to the {@link #type} field. */ - public XrFacialExpressionsHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link HTCFacialTracking#XR_TYPE_FACIAL_EXPRESSIONS_HTC TYPE_FACIAL_EXPRESSIONS_HTC} value to the {@link #type} field. */ - public XrFacialExpressionsHTC type$Default() { return type(HTCFacialTracking.XR_TYPE_FACIAL_EXPRESSIONS_HTC); } - /** Sets the specified value to the {@link #next} field. */ - public XrFacialExpressionsHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #isActive} field. */ - public XrFacialExpressionsHTC isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link #sampleTime} field. */ - public XrFacialExpressionsHTC sampleTime(@NativeType("XrTime") long value) { nsampleTime(address(), value); return this; } - /** Sets the specified value to the {@link #expressionCount} field. */ - public XrFacialExpressionsHTC expressionCount(@NativeType("uint32_t") int value) { nexpressionCount(address(), value); return this; } - /** Sets the address of the specified {@link FloatBuffer} to the {@link #expressionWeightings} field. */ - public XrFacialExpressionsHTC expressionWeightings(@NativeType("float *") FloatBuffer value) { nexpressionWeightings(address(), value); return this; } + */ + @NativeType("float *") + public FloatBuffer expressionWeightings(int capacity) { return nexpressionWeightings(address(), capacity); } + + /** Sets the specified value to the {@link #type} field. */ + public XrFacialExpressionsHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link HTCFacialTracking#XR_TYPE_FACIAL_EXPRESSIONS_HTC TYPE_FACIAL_EXPRESSIONS_HTC} value to the {@link #type} field. */ + public XrFacialExpressionsHTC type$Default() { return type(HTCFacialTracking.XR_TYPE_FACIAL_EXPRESSIONS_HTC); } + /** Sets the specified value to the {@link #next} field. */ + public XrFacialExpressionsHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #isActive} field. */ + public XrFacialExpressionsHTC isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link #sampleTime} field. */ + public XrFacialExpressionsHTC sampleTime(@NativeType("XrTime") long value) { nsampleTime(address(), value); return this; } + /** Sets the specified value to the {@link #expressionCount} field. */ + public XrFacialExpressionsHTC expressionCount(@NativeType("uint32_t") int value) { nexpressionCount(address(), value); return this; } + /** Sets the address of the specified {@link FloatBuffer} to the {@link #expressionWeightings} field. */ + public XrFacialExpressionsHTC expressionWeightings(@NativeType("float *") FloatBuffer value) { nexpressionWeightings(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrFacialExpressionsHTC set( - int type, - long next, - boolean isActive, - long sampleTime, - int expressionCount, + int type, + long next, + boolean isActive, + long sampleTime, + int expressionCount, FloatBuffer expressionWeightings - ) { - type(type); - next(next); - isActive(isActive); - sampleTime(sampleTime); - expressionCount(expressionCount); - expressionWeightings(expressionWeightings); + ) { + type(type); + next(next); + isActive(isActive); + sampleTime(sampleTime); + expressionCount(expressionCount); + expressionWeightings(expressionWeightings); return this; } @@ -301,32 +301,32 @@ public static XrFacialExpressionsHTC.Buffer calloc(int capacity, MemoryStack sta } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFacialExpressionsHTC.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrFacialExpressionsHTC.NEXT); } - /** Unsafe version of {@link #isActive}. */ - public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrFacialExpressionsHTC.ISACTIVE); } - /** Unsafe version of {@link #sampleTime}. */ - public static long nsampleTime(long struct) { return UNSAFE.getLong(null, struct + XrFacialExpressionsHTC.SAMPLETIME); } - /** Unsafe version of {@link #expressionCount}. */ - public static int nexpressionCount(long struct) { return UNSAFE.getInt(null, struct + XrFacialExpressionsHTC.EXPRESSIONCOUNT); } - /** Unsafe version of {@link #expressionWeightings(int) expressionWeightings}. */ - public static FloatBuffer nexpressionWeightings(long struct, int capacity) { return memFloatBuffer(memGetAddress(struct + XrFacialExpressionsHTC.EXPRESSIONWEIGHTINGS), capacity); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFacialExpressionsHTC.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrFacialExpressionsHTC.NEXT, value); } - /** Unsafe version of {@link #isActive(boolean) isActive}. */ - public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrFacialExpressionsHTC.ISACTIVE, value); } - /** Unsafe version of {@link #sampleTime(long) sampleTime}. */ - public static void nsampleTime(long struct, long value) { UNSAFE.putLong(null, struct + XrFacialExpressionsHTC.SAMPLETIME, value); } - /** Unsafe version of {@link #expressionCount(int) expressionCount}. */ - public static void nexpressionCount(long struct, int value) { UNSAFE.putInt(null, struct + XrFacialExpressionsHTC.EXPRESSIONCOUNT, value); } - /** Unsafe version of {@link #expressionWeightings(FloatBuffer) expressionWeightings}. */ - public static void nexpressionWeightings(long struct, FloatBuffer value) { memPutAddress(struct + XrFacialExpressionsHTC.EXPRESSIONWEIGHTINGS, memAddress(value)); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFacialExpressionsHTC.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrFacialExpressionsHTC.NEXT); } + /** Unsafe version of {@link #isActive}. */ + public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrFacialExpressionsHTC.ISACTIVE); } + /** Unsafe version of {@link #sampleTime}. */ + public static long nsampleTime(long struct) { return UNSAFE.getLong(null, struct + XrFacialExpressionsHTC.SAMPLETIME); } + /** Unsafe version of {@link #expressionCount}. */ + public static int nexpressionCount(long struct) { return UNSAFE.getInt(null, struct + XrFacialExpressionsHTC.EXPRESSIONCOUNT); } + /** Unsafe version of {@link #expressionWeightings(int) expressionWeightings}. */ + public static FloatBuffer nexpressionWeightings(long struct, int capacity) { return memFloatBuffer(memGetAddress(struct + XrFacialExpressionsHTC.EXPRESSIONWEIGHTINGS), capacity); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFacialExpressionsHTC.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrFacialExpressionsHTC.NEXT, value); } + /** Unsafe version of {@link #isActive(boolean) isActive}. */ + public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrFacialExpressionsHTC.ISACTIVE, value); } + /** Unsafe version of {@link #sampleTime(long) sampleTime}. */ + public static void nsampleTime(long struct, long value) { UNSAFE.putLong(null, struct + XrFacialExpressionsHTC.SAMPLETIME, value); } + /** Unsafe version of {@link #expressionCount(int) expressionCount}. */ + public static void nexpressionCount(long struct, int value) { UNSAFE.putInt(null, struct + XrFacialExpressionsHTC.EXPRESSIONCOUNT, value); } + /** Unsafe version of {@link #expressionWeightings(FloatBuffer) expressionWeightings}. */ + public static void nexpressionWeightings(long struct, FloatBuffer value) { memPutAddress(struct + XrFacialExpressionsHTC.EXPRESSIONWEIGHTINGS, memAddress(value)); } /** * Validates pointer members that should not be {@code NULL}. @@ -335,9 +335,9 @@ public static XrFacialExpressionsHTC.Buffer calloc(int capacity, MemoryStack sta */ public static void validate(long struct) { check(memGetAddress(struct + XrFacialExpressionsHTC.EXPRESSIONWEIGHTINGS)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrFacialExpressionsHTC} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -374,44 +374,44 @@ protected Buffer self() { protected XrFacialExpressionsHTC getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFacialExpressionsHTC#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFacialExpressionsHTC.ntype(address()); } - /** @return the value of the {@link XrFacialExpressionsHTC#next} field. */ - @NativeType("void const *") - public long next() { return XrFacialExpressionsHTC.nnext(address()); } - /** @return the value of the {@link XrFacialExpressionsHTC#isActive} field. */ - @NativeType("XrBool32") - public boolean isActive() { return XrFacialExpressionsHTC.nisActive(address()) != 0; } - /** @return the value of the {@link XrFacialExpressionsHTC#sampleTime} field. */ - @NativeType("XrTime") - public long sampleTime() { return XrFacialExpressionsHTC.nsampleTime(address()); } - /** @return the value of the {@link XrFacialExpressionsHTC#expressionCount} field. */ - @NativeType("uint32_t") - public int expressionCount() { return XrFacialExpressionsHTC.nexpressionCount(address()); } + + /** @return the value of the {@link XrFacialExpressionsHTC#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFacialExpressionsHTC.ntype(address()); } + /** @return the value of the {@link XrFacialExpressionsHTC#next} field. */ + @NativeType("void const *") + public long next() { return XrFacialExpressionsHTC.nnext(address()); } + /** @return the value of the {@link XrFacialExpressionsHTC#isActive} field. */ + @NativeType("XrBool32") + public boolean isActive() { return XrFacialExpressionsHTC.nisActive(address()) != 0; } + /** @return the value of the {@link XrFacialExpressionsHTC#sampleTime} field. */ + @NativeType("XrTime") + public long sampleTime() { return XrFacialExpressionsHTC.nsampleTime(address()); } + /** @return the value of the {@link XrFacialExpressionsHTC#expressionCount} field. */ + @NativeType("uint32_t") + public int expressionCount() { return XrFacialExpressionsHTC.nexpressionCount(address()); } /** * @return a {@link FloatBuffer} view of the data pointed to by the {@link XrFacialExpressionsHTC#expressionWeightings} field. * * @param capacity the number of elements in the returned buffer - */ - @NativeType("float *") - public FloatBuffer expressionWeightings(int capacity) { return XrFacialExpressionsHTC.nexpressionWeightings(address(), capacity); } - - /** Sets the specified value to the {@link XrFacialExpressionsHTC#type} field. */ - public XrFacialExpressionsHTC.Buffer type(@NativeType("XrStructureType") int value) { XrFacialExpressionsHTC.ntype(address(), value); return this; } - /** Sets the {@link HTCFacialTracking#XR_TYPE_FACIAL_EXPRESSIONS_HTC TYPE_FACIAL_EXPRESSIONS_HTC} value to the {@link XrFacialExpressionsHTC#type} field. */ - public XrFacialExpressionsHTC.Buffer type$Default() { return type(HTCFacialTracking.XR_TYPE_FACIAL_EXPRESSIONS_HTC); } - /** Sets the specified value to the {@link XrFacialExpressionsHTC#next} field. */ - public XrFacialExpressionsHTC.Buffer next(@NativeType("void const *") long value) { XrFacialExpressionsHTC.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrFacialExpressionsHTC#isActive} field. */ - public XrFacialExpressionsHTC.Buffer isActive(@NativeType("XrBool32") boolean value) { XrFacialExpressionsHTC.nisActive(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link XrFacialExpressionsHTC#sampleTime} field. */ - public XrFacialExpressionsHTC.Buffer sampleTime(@NativeType("XrTime") long value) { XrFacialExpressionsHTC.nsampleTime(address(), value); return this; } - /** Sets the specified value to the {@link XrFacialExpressionsHTC#expressionCount} field. */ - public XrFacialExpressionsHTC.Buffer expressionCount(@NativeType("uint32_t") int value) { XrFacialExpressionsHTC.nexpressionCount(address(), value); return this; } - /** Sets the address of the specified {@link FloatBuffer} to the {@link XrFacialExpressionsHTC#expressionWeightings} field. */ - public XrFacialExpressionsHTC.Buffer expressionWeightings(@NativeType("float *") FloatBuffer value) { XrFacialExpressionsHTC.nexpressionWeightings(address(), value); return this; } + */ + @NativeType("float *") + public FloatBuffer expressionWeightings(int capacity) { return XrFacialExpressionsHTC.nexpressionWeightings(address(), capacity); } + + /** Sets the specified value to the {@link XrFacialExpressionsHTC#type} field. */ + public XrFacialExpressionsHTC.Buffer type(@NativeType("XrStructureType") int value) { XrFacialExpressionsHTC.ntype(address(), value); return this; } + /** Sets the {@link HTCFacialTracking#XR_TYPE_FACIAL_EXPRESSIONS_HTC TYPE_FACIAL_EXPRESSIONS_HTC} value to the {@link XrFacialExpressionsHTC#type} field. */ + public XrFacialExpressionsHTC.Buffer type$Default() { return type(HTCFacialTracking.XR_TYPE_FACIAL_EXPRESSIONS_HTC); } + /** Sets the specified value to the {@link XrFacialExpressionsHTC#next} field. */ + public XrFacialExpressionsHTC.Buffer next(@NativeType("void const *") long value) { XrFacialExpressionsHTC.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrFacialExpressionsHTC#isActive} field. */ + public XrFacialExpressionsHTC.Buffer isActive(@NativeType("XrBool32") boolean value) { XrFacialExpressionsHTC.nisActive(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link XrFacialExpressionsHTC#sampleTime} field. */ + public XrFacialExpressionsHTC.Buffer sampleTime(@NativeType("XrTime") long value) { XrFacialExpressionsHTC.nsampleTime(address(), value); return this; } + /** Sets the specified value to the {@link XrFacialExpressionsHTC#expressionCount} field. */ + public XrFacialExpressionsHTC.Buffer expressionCount(@NativeType("uint32_t") int value) { XrFacialExpressionsHTC.nexpressionCount(address(), value); return this; } + /** Sets the address of the specified {@link FloatBuffer} to the {@link XrFacialExpressionsHTC#expressionWeightings} field. */ + public XrFacialExpressionsHTC.Buffer expressionWeightings(@NativeType("float *") FloatBuffer value) { XrFacialExpressionsHTC.nexpressionWeightings(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFacialTrackerCreateInfoHTC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFacialTrackerCreateInfoHTC.java index eb0dd1ab37..e2fa4e23a2 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFacialTrackerCreateInfoHTC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFacialTrackerCreateInfoHTC.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Information to create a facial tracker handle. * @@ -27,7 +27,7 @@ *
                                *
                              • The {@link HTCFacialTracking XR_HTC_facial_tracking} extension must be enabled prior to using {@link XrFacialTrackerCreateInfoHTC}
                              • *
                              • {@code type} must be {@link HTCFacialTracking#XR_TYPE_FACIAL_TRACKER_CREATE_INFO_HTC TYPE_FACIAL_TRACKER_CREATE_INFO_HTC}
                              • - *
                              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                              • + *
                              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                              • *
                              • {@code facialTrackingType} must be a valid {@code XrFacialTrackingTypeHTC} value
                              • *
                              * @@ -43,8 +43,8 @@ * void const * {@link #next}; * XrFacialTrackingTypeHTC {@link #facialTrackingType}; * } - */ -public class XrFacialTrackerCreateInfoHTC extends Struct implements NativeResource { + */ +public class XrFacialTrackerCreateInfoHTC extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,24 +54,24 @@ public class XrFacialTrackerCreateInfoHTC extends Struct implements NativeResource { @@ -303,25 +303,25 @@ protected Buffer self() { protected XrFacialTrackerCreateInfoHTC getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFacialTrackerCreateInfoHTC#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFacialTrackerCreateInfoHTC.ntype(address()); } - /** @return the value of the {@link XrFacialTrackerCreateInfoHTC#next} field. */ - @NativeType("void const *") - public long next() { return XrFacialTrackerCreateInfoHTC.nnext(address()); } - /** @return the value of the {@link XrFacialTrackerCreateInfoHTC#facialTrackingType} field. */ - @NativeType("XrFacialTrackingTypeHTC") - public int facialTrackingType() { return XrFacialTrackerCreateInfoHTC.nfacialTrackingType(address()); } - - /** Sets the specified value to the {@link XrFacialTrackerCreateInfoHTC#type} field. */ - public XrFacialTrackerCreateInfoHTC.Buffer type(@NativeType("XrStructureType") int value) { XrFacialTrackerCreateInfoHTC.ntype(address(), value); return this; } - /** Sets the {@link HTCFacialTracking#XR_TYPE_FACIAL_TRACKER_CREATE_INFO_HTC TYPE_FACIAL_TRACKER_CREATE_INFO_HTC} value to the {@link XrFacialTrackerCreateInfoHTC#type} field. */ - public XrFacialTrackerCreateInfoHTC.Buffer type$Default() { return type(HTCFacialTracking.XR_TYPE_FACIAL_TRACKER_CREATE_INFO_HTC); } - /** Sets the specified value to the {@link XrFacialTrackerCreateInfoHTC#next} field. */ - public XrFacialTrackerCreateInfoHTC.Buffer next(@NativeType("void const *") long value) { XrFacialTrackerCreateInfoHTC.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrFacialTrackerCreateInfoHTC#facialTrackingType} field. */ - public XrFacialTrackerCreateInfoHTC.Buffer facialTrackingType(@NativeType("XrFacialTrackingTypeHTC") int value) { XrFacialTrackerCreateInfoHTC.nfacialTrackingType(address(), value); return this; } + + /** @return the value of the {@link XrFacialTrackerCreateInfoHTC#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFacialTrackerCreateInfoHTC.ntype(address()); } + /** @return the value of the {@link XrFacialTrackerCreateInfoHTC#next} field. */ + @NativeType("void const *") + public long next() { return XrFacialTrackerCreateInfoHTC.nnext(address()); } + /** @return the value of the {@link XrFacialTrackerCreateInfoHTC#facialTrackingType} field. */ + @NativeType("XrFacialTrackingTypeHTC") + public int facialTrackingType() { return XrFacialTrackerCreateInfoHTC.nfacialTrackingType(address()); } + + /** Sets the specified value to the {@link XrFacialTrackerCreateInfoHTC#type} field. */ + public XrFacialTrackerCreateInfoHTC.Buffer type(@NativeType("XrStructureType") int value) { XrFacialTrackerCreateInfoHTC.ntype(address(), value); return this; } + /** Sets the {@link HTCFacialTracking#XR_TYPE_FACIAL_TRACKER_CREATE_INFO_HTC TYPE_FACIAL_TRACKER_CREATE_INFO_HTC} value to the {@link XrFacialTrackerCreateInfoHTC#type} field. */ + public XrFacialTrackerCreateInfoHTC.Buffer type$Default() { return type(HTCFacialTracking.XR_TYPE_FACIAL_TRACKER_CREATE_INFO_HTC); } + /** Sets the specified value to the {@link XrFacialTrackerCreateInfoHTC#next} field. */ + public XrFacialTrackerCreateInfoHTC.Buffer next(@NativeType("void const *") long value) { XrFacialTrackerCreateInfoHTC.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrFacialTrackerCreateInfoHTC#facialTrackingType} field. */ + public XrFacialTrackerCreateInfoHTC.Buffer facialTrackingType(@NativeType("XrFacialTrackingTypeHTC") int value) { XrFacialTrackerCreateInfoHTC.nfacialTrackingType(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFacialTrackerHTC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFacialTrackerHTC.java index 80c3c7709e..0cb007e121 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFacialTrackerHTC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFacialTrackerHTC.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrFacialTrackerHTC} handle. */ + +/** Wraps an {@code XrFacialTrackerHTC} handle. */ public class XrFacialTrackerHTC extends DispatchableHandle { private final XrSession session; @@ -26,4 +26,4 @@ public XrSession getSession() { return session; } -} +} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrForceFeedbackCurlApplyLocationMNDX.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrForceFeedbackCurlApplyLocationMNDX.java index 6d1d404609..c3f3584e9a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrForceFeedbackCurlApplyLocationMNDX.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrForceFeedbackCurlApplyLocationMNDX.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Structure representing and containing information on how to apply force feedback to a single location. * @@ -40,8 +40,8 @@ * XrForceFeedbackCurlLocationMNDX {@link #location}; * float {@link #value}; * } - */ -public class XrForceFeedbackCurlApplyLocationMNDX extends Struct implements NativeResource { + */ +public class XrForceFeedbackCurlApplyLocationMNDX extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,21 +51,21 @@ public class XrForceFeedbackCurlApplyLocationMNDX extends Struct implements NativeResource { @@ -283,17 +283,17 @@ protected Buffer self() { protected XrForceFeedbackCurlApplyLocationMNDX getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrForceFeedbackCurlApplyLocationMNDX#location} field. */ - @NativeType("XrForceFeedbackCurlLocationMNDX") - public int location() { return XrForceFeedbackCurlApplyLocationMNDX.nlocation(address()); } - /** @return the value of the {@link XrForceFeedbackCurlApplyLocationMNDX#value} field. */ - public float value() { return XrForceFeedbackCurlApplyLocationMNDX.nvalue(address()); } - - /** Sets the specified value to the {@link XrForceFeedbackCurlApplyLocationMNDX#location} field. */ - public XrForceFeedbackCurlApplyLocationMNDX.Buffer location(@NativeType("XrForceFeedbackCurlLocationMNDX") int value) { XrForceFeedbackCurlApplyLocationMNDX.nlocation(address(), value); return this; } - /** Sets the specified value to the {@link XrForceFeedbackCurlApplyLocationMNDX#value} field. */ - public XrForceFeedbackCurlApplyLocationMNDX.Buffer value(float value) { XrForceFeedbackCurlApplyLocationMNDX.nvalue(address(), value); return this; } + + /** @return the value of the {@link XrForceFeedbackCurlApplyLocationMNDX#location} field. */ + @NativeType("XrForceFeedbackCurlLocationMNDX") + public int location() { return XrForceFeedbackCurlApplyLocationMNDX.nlocation(address()); } + /** @return the value of the {@link XrForceFeedbackCurlApplyLocationMNDX#value} field. */ + public float value() { return XrForceFeedbackCurlApplyLocationMNDX.nvalue(address()); } + + /** Sets the specified value to the {@link XrForceFeedbackCurlApplyLocationMNDX#location} field. */ + public XrForceFeedbackCurlApplyLocationMNDX.Buffer location(@NativeType("XrForceFeedbackCurlLocationMNDX") int value) { XrForceFeedbackCurlApplyLocationMNDX.nlocation(address(), value); return this; } + /** Sets the specified value to the {@link XrForceFeedbackCurlApplyLocationMNDX#value} field. */ + public XrForceFeedbackCurlApplyLocationMNDX.Buffer value(float value) { XrForceFeedbackCurlApplyLocationMNDX.nvalue(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrForceFeedbackCurlApplyLocationsMNDX.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrForceFeedbackCurlApplyLocationsMNDX.java index f7893b9c59..5f803415c8 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrForceFeedbackCurlApplyLocationsMNDX.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrForceFeedbackCurlApplyLocationsMNDX.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Structure representing an array of locations to apply force feedback to. * @@ -28,7 +28,7 @@ *
                                *
                              • The {@link MNDXForceFeedbackCurl XR_MNDX_force_feedback_curl} extension must be enabled prior to using {@link XrForceFeedbackCurlApplyLocationsMNDX}
                              • *
                              • {@code type} must be {@link MNDXForceFeedbackCurl#XR_TYPE_FORCE_FEEDBACK_CURL_APPLY_LOCATIONS_MNDX TYPE_FORCE_FEEDBACK_CURL_APPLY_LOCATIONS_MNDX}
                              • - *
                              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                              • + *
                              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                              • *
                              • {@code locations} must be a pointer to an array of {@code locationCount} {@link XrForceFeedbackCurlApplyLocationMNDX} structures
                              • *
                              • The {@code locationCount} parameter must be greater than 0
                              • *
                              @@ -46,8 +46,8 @@ * uint32_t {@link #locationCount}; * {@link XrForceFeedbackCurlApplyLocationMNDX XrForceFeedbackCurlApplyLocationMNDX} * {@link #locations}; * } - */ -public class XrForceFeedbackCurlApplyLocationsMNDX extends Struct implements NativeResource { + */ +public class XrForceFeedbackCurlApplyLocationsMNDX extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,27 +57,27 @@ public class XrForceFeedbackCurlApplyLocationsMNDX extends Struct implements NativeResource { @@ -325,28 +325,28 @@ protected Buffer self() { protected XrForceFeedbackCurlApplyLocationsMNDX getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrForceFeedbackCurlApplyLocationsMNDX#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrForceFeedbackCurlApplyLocationsMNDX.ntype(address()); } - /** @return the value of the {@link XrForceFeedbackCurlApplyLocationsMNDX#next} field. */ - @NativeType("void const *") - public long next() { return XrForceFeedbackCurlApplyLocationsMNDX.nnext(address()); } - /** @return the value of the {@link XrForceFeedbackCurlApplyLocationsMNDX#locationCount} field. */ - @NativeType("uint32_t") - public int locationCount() { return XrForceFeedbackCurlApplyLocationsMNDX.nlocationCount(address()); } - /** @return a {@link XrForceFeedbackCurlApplyLocationMNDX.Buffer} view of the struct array pointed to by the {@link XrForceFeedbackCurlApplyLocationsMNDX#locations} field. */ - @NativeType("XrForceFeedbackCurlApplyLocationMNDX *") - public XrForceFeedbackCurlApplyLocationMNDX.Buffer locations() { return XrForceFeedbackCurlApplyLocationsMNDX.nlocations(address()); } - - /** Sets the specified value to the {@link XrForceFeedbackCurlApplyLocationsMNDX#type} field. */ - public XrForceFeedbackCurlApplyLocationsMNDX.Buffer type(@NativeType("XrStructureType") int value) { XrForceFeedbackCurlApplyLocationsMNDX.ntype(address(), value); return this; } - /** Sets the {@link MNDXForceFeedbackCurl#XR_TYPE_FORCE_FEEDBACK_CURL_APPLY_LOCATIONS_MNDX TYPE_FORCE_FEEDBACK_CURL_APPLY_LOCATIONS_MNDX} value to the {@link XrForceFeedbackCurlApplyLocationsMNDX#type} field. */ - public XrForceFeedbackCurlApplyLocationsMNDX.Buffer type$Default() { return type(MNDXForceFeedbackCurl.XR_TYPE_FORCE_FEEDBACK_CURL_APPLY_LOCATIONS_MNDX); } - /** Sets the specified value to the {@link XrForceFeedbackCurlApplyLocationsMNDX#next} field. */ - public XrForceFeedbackCurlApplyLocationsMNDX.Buffer next(@NativeType("void const *") long value) { XrForceFeedbackCurlApplyLocationsMNDX.nnext(address(), value); return this; } - /** Sets the address of the specified {@link XrForceFeedbackCurlApplyLocationMNDX.Buffer} to the {@link XrForceFeedbackCurlApplyLocationsMNDX#locations} field. */ - public XrForceFeedbackCurlApplyLocationsMNDX.Buffer locations(@NativeType("XrForceFeedbackCurlApplyLocationMNDX *") XrForceFeedbackCurlApplyLocationMNDX.Buffer value) { XrForceFeedbackCurlApplyLocationsMNDX.nlocations(address(), value); return this; } + + /** @return the value of the {@link XrForceFeedbackCurlApplyLocationsMNDX#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrForceFeedbackCurlApplyLocationsMNDX.ntype(address()); } + /** @return the value of the {@link XrForceFeedbackCurlApplyLocationsMNDX#next} field. */ + @NativeType("void const *") + public long next() { return XrForceFeedbackCurlApplyLocationsMNDX.nnext(address()); } + /** @return the value of the {@link XrForceFeedbackCurlApplyLocationsMNDX#locationCount} field. */ + @NativeType("uint32_t") + public int locationCount() { return XrForceFeedbackCurlApplyLocationsMNDX.nlocationCount(address()); } + /** @return a {@link XrForceFeedbackCurlApplyLocationMNDX.Buffer} view of the struct array pointed to by the {@link XrForceFeedbackCurlApplyLocationsMNDX#locations} field. */ + @NativeType("XrForceFeedbackCurlApplyLocationMNDX *") + public XrForceFeedbackCurlApplyLocationMNDX.Buffer locations() { return XrForceFeedbackCurlApplyLocationsMNDX.nlocations(address()); } + + /** Sets the specified value to the {@link XrForceFeedbackCurlApplyLocationsMNDX#type} field. */ + public XrForceFeedbackCurlApplyLocationsMNDX.Buffer type(@NativeType("XrStructureType") int value) { XrForceFeedbackCurlApplyLocationsMNDX.ntype(address(), value); return this; } + /** Sets the {@link MNDXForceFeedbackCurl#XR_TYPE_FORCE_FEEDBACK_CURL_APPLY_LOCATIONS_MNDX TYPE_FORCE_FEEDBACK_CURL_APPLY_LOCATIONS_MNDX} value to the {@link XrForceFeedbackCurlApplyLocationsMNDX#type} field. */ + public XrForceFeedbackCurlApplyLocationsMNDX.Buffer type$Default() { return type(MNDXForceFeedbackCurl.XR_TYPE_FORCE_FEEDBACK_CURL_APPLY_LOCATIONS_MNDX); } + /** Sets the specified value to the {@link XrForceFeedbackCurlApplyLocationsMNDX#next} field. */ + public XrForceFeedbackCurlApplyLocationsMNDX.Buffer next(@NativeType("void const *") long value) { XrForceFeedbackCurlApplyLocationsMNDX.nnext(address(), value); return this; } + /** Sets the address of the specified {@link XrForceFeedbackCurlApplyLocationMNDX.Buffer} to the {@link XrForceFeedbackCurlApplyLocationsMNDX#locations} field. */ + public XrForceFeedbackCurlApplyLocationsMNDX.Buffer locations(@NativeType("XrForceFeedbackCurlApplyLocationMNDX *") XrForceFeedbackCurlApplyLocationMNDX.Buffer value) { XrForceFeedbackCurlApplyLocationsMNDX.nlocations(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveatedViewConfigurationViewVARJO.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveatedViewConfigurationViewVARJO.java index d405e0af64..61c60a203d 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveatedViewConfigurationViewVARJO.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveatedViewConfigurationViewVARJO.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Foveated view configuration views. * @@ -23,7 +23,7 @@ *
                                *
                              • The {@link VARJOFoveatedRendering XR_VARJO_foveated_rendering} extension must be enabled prior to using {@link XrFoveatedViewConfigurationViewVARJO}
                              • *
                              • {@code type} must be {@link VARJOFoveatedRendering#XR_TYPE_FOVEATED_VIEW_CONFIGURATION_VIEW_VARJO TYPE_FOVEATED_VIEW_CONFIGURATION_VIEW_VARJO}
                              • - *
                              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                              • + *
                              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                              • *
                              * *

                              For example:

                              @@ -70,8 +70,8 @@ * void * {@link #next}; * XrBool32 {@link #foveatedRenderingActive}; * } - */ -public class XrFoveatedViewConfigurationViewVARJO extends Struct implements NativeResource { + */ +public class XrFoveatedViewConfigurationViewVARJO extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -81,24 +81,24 @@ public class XrFoveatedViewConfigurationViewVARJO extends Struct implements NativeResource { @@ -330,25 +330,25 @@ protected Buffer self() { protected XrFoveatedViewConfigurationViewVARJO getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFoveatedViewConfigurationViewVARJO#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFoveatedViewConfigurationViewVARJO.ntype(address()); } - /** @return the value of the {@link XrFoveatedViewConfigurationViewVARJO#next} field. */ - @NativeType("void *") - public long next() { return XrFoveatedViewConfigurationViewVARJO.nnext(address()); } - /** @return the value of the {@link XrFoveatedViewConfigurationViewVARJO#foveatedRenderingActive} field. */ - @NativeType("XrBool32") - public boolean foveatedRenderingActive() { return XrFoveatedViewConfigurationViewVARJO.nfoveatedRenderingActive(address()) != 0; } - - /** Sets the specified value to the {@link XrFoveatedViewConfigurationViewVARJO#type} field. */ - public XrFoveatedViewConfigurationViewVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrFoveatedViewConfigurationViewVARJO.ntype(address(), value); return this; } - /** Sets the {@link VARJOFoveatedRendering#XR_TYPE_FOVEATED_VIEW_CONFIGURATION_VIEW_VARJO TYPE_FOVEATED_VIEW_CONFIGURATION_VIEW_VARJO} value to the {@link XrFoveatedViewConfigurationViewVARJO#type} field. */ - public XrFoveatedViewConfigurationViewVARJO.Buffer type$Default() { return type(VARJOFoveatedRendering.XR_TYPE_FOVEATED_VIEW_CONFIGURATION_VIEW_VARJO); } - /** Sets the specified value to the {@link XrFoveatedViewConfigurationViewVARJO#next} field. */ - public XrFoveatedViewConfigurationViewVARJO.Buffer next(@NativeType("void *") long value) { XrFoveatedViewConfigurationViewVARJO.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrFoveatedViewConfigurationViewVARJO#foveatedRenderingActive} field. */ - public XrFoveatedViewConfigurationViewVARJO.Buffer foveatedRenderingActive(@NativeType("XrBool32") boolean value) { XrFoveatedViewConfigurationViewVARJO.nfoveatedRenderingActive(address(), value ? 1 : 0); return this; } + + /** @return the value of the {@link XrFoveatedViewConfigurationViewVARJO#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFoveatedViewConfigurationViewVARJO.ntype(address()); } + /** @return the value of the {@link XrFoveatedViewConfigurationViewVARJO#next} field. */ + @NativeType("void *") + public long next() { return XrFoveatedViewConfigurationViewVARJO.nnext(address()); } + /** @return the value of the {@link XrFoveatedViewConfigurationViewVARJO#foveatedRenderingActive} field. */ + @NativeType("XrBool32") + public boolean foveatedRenderingActive() { return XrFoveatedViewConfigurationViewVARJO.nfoveatedRenderingActive(address()) != 0; } + + /** Sets the specified value to the {@link XrFoveatedViewConfigurationViewVARJO#type} field. */ + public XrFoveatedViewConfigurationViewVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrFoveatedViewConfigurationViewVARJO.ntype(address(), value); return this; } + /** Sets the {@link VARJOFoveatedRendering#XR_TYPE_FOVEATED_VIEW_CONFIGURATION_VIEW_VARJO TYPE_FOVEATED_VIEW_CONFIGURATION_VIEW_VARJO} value to the {@link XrFoveatedViewConfigurationViewVARJO#type} field. */ + public XrFoveatedViewConfigurationViewVARJO.Buffer type$Default() { return type(VARJOFoveatedRendering.XR_TYPE_FOVEATED_VIEW_CONFIGURATION_VIEW_VARJO); } + /** Sets the specified value to the {@link XrFoveatedViewConfigurationViewVARJO#next} field. */ + public XrFoveatedViewConfigurationViewVARJO.Buffer next(@NativeType("void *") long value) { XrFoveatedViewConfigurationViewVARJO.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrFoveatedViewConfigurationViewVARJO#foveatedRenderingActive} field. */ + public XrFoveatedViewConfigurationViewVARJO.Buffer foveatedRenderingActive(@NativeType("XrBool32") boolean value) { XrFoveatedViewConfigurationViewVARJO.nfoveatedRenderingActive(address(), value ? 1 : 0); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationApplyInfoHTC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationApplyInfoHTC.java index d3691ad795..9a2c11e419 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationApplyInfoHTC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationApplyInfoHTC.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Information for foveation applying. * @@ -41,7 +41,7 @@ *
                                *
                              • The {@link HTCFoveation XR_HTC_foveation} extension must be enabled prior to using {@link XrFoveationApplyInfoHTC}
                              • *
                              • {@code type} must be {@link HTCFoveation#XR_TYPE_FOVEATION_APPLY_INFO_HTC TYPE_FOVEATION_APPLY_INFO_HTC}
                              • - *
                              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrFoveationCustomModeInfoHTC}, {@link XrFoveationDynamicModeInfoHTC}
                              • + *
                              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrFoveationCustomModeInfoHTC}, {@link XrFoveationDynamicModeInfoHTC}
                              • *
                              • {@code mode} must be a valid {@code XrFoveationModeHTC} value
                              • *
                              • {@code subImages} must be a pointer to an array of {@code subImageCount} {@link XrSwapchainSubImage} structures
                              • *
                              • The {@code subImageCount} parameter must be greater than 0
                              • @@ -61,8 +61,8 @@ * uint32_t {@link #subImageCount}; * {@link XrSwapchainSubImage XrSwapchainSubImage} * {@link #subImages}; * } - */ -public class XrFoveationApplyInfoHTC extends Struct implements NativeResource { + */ +public class XrFoveationApplyInfoHTC extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -72,30 +72,30 @@ public class XrFoveationApplyInfoHTC extends Struct imp /** The struct member offsets. */ public static final int - TYPE, - NEXT, - MODE, - SUBIMAGECOUNT, - SUBIMAGES; + TYPE, + NEXT, + MODE, + SUBIMAGECOUNT, + SUBIMAGES; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - MODE = layout.offsetof(2); - SUBIMAGECOUNT = layout.offsetof(3); - SUBIMAGES = layout.offsetof(4); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + MODE = layout.offsetof(2); + SUBIMAGECOUNT = layout.offsetof(3); + SUBIMAGES = layout.offsetof(4); + } protected XrFoveationApplyInfoHTC(long address, @Nullable ByteBuffer container) { super(address, container); @@ -118,49 +118,49 @@ public XrFoveationApplyInfoHTC(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** an {@code XrFoveationModeHTC} enum describing the foveation mode. */ - @NativeType("XrFoveationModeHTC") - public int mode() { return nmode(address()); } - /** the count of {@code subImages} in the {@code subImages} array. This must be equal to the number of view poses returned by {@link XR10#xrLocateViews LocateViews}. */ - @NativeType("uint32_t") - public int subImageCount() { return nsubImageCount(address()); } - /** an array of {@link XrSwapchainSubImage} to apply foveated rendering. */ - @NativeType("XrSwapchainSubImage *") - public XrSwapchainSubImage.Buffer subImages() { return nsubImages(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrFoveationApplyInfoHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link HTCFoveation#XR_TYPE_FOVEATION_APPLY_INFO_HTC TYPE_FOVEATION_APPLY_INFO_HTC} value to the {@link #type} field. */ - public XrFoveationApplyInfoHTC type$Default() { return type(HTCFoveation.XR_TYPE_FOVEATION_APPLY_INFO_HTC); } - /** Sets the specified value to the {@link #next} field. */ - public XrFoveationApplyInfoHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrFoveationCustomModeInfoHTC} value to the {@code next} chain. */ - public XrFoveationApplyInfoHTC next(XrFoveationCustomModeInfoHTC value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrFoveationDynamicModeInfoHTC} value to the {@code next} chain. */ - public XrFoveationApplyInfoHTC next(XrFoveationDynamicModeInfoHTC value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #mode} field. */ - public XrFoveationApplyInfoHTC mode(@NativeType("XrFoveationModeHTC") int value) { nmode(address(), value); return this; } - /** Sets the address of the specified {@link XrSwapchainSubImage.Buffer} to the {@link #subImages} field. */ - public XrFoveationApplyInfoHTC subImages(@NativeType("XrSwapchainSubImage *") XrSwapchainSubImage.Buffer value) { nsubImages(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** an {@code XrFoveationModeHTC} enum describing the foveation mode. */ + @NativeType("XrFoveationModeHTC") + public int mode() { return nmode(address()); } + /** the count of {@code subImages} in the {@code subImages} array. This must be equal to the number of view poses returned by {@link XR10#xrLocateViews LocateViews}. */ + @NativeType("uint32_t") + public int subImageCount() { return nsubImageCount(address()); } + /** an array of {@link XrSwapchainSubImage} to apply foveated rendering. */ + @NativeType("XrSwapchainSubImage *") + public XrSwapchainSubImage.Buffer subImages() { return nsubImages(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrFoveationApplyInfoHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link HTCFoveation#XR_TYPE_FOVEATION_APPLY_INFO_HTC TYPE_FOVEATION_APPLY_INFO_HTC} value to the {@link #type} field. */ + public XrFoveationApplyInfoHTC type$Default() { return type(HTCFoveation.XR_TYPE_FOVEATION_APPLY_INFO_HTC); } + /** Sets the specified value to the {@link #next} field. */ + public XrFoveationApplyInfoHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrFoveationCustomModeInfoHTC} value to the {@code next} chain. */ + public XrFoveationApplyInfoHTC next(XrFoveationCustomModeInfoHTC value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrFoveationDynamicModeInfoHTC} value to the {@code next} chain. */ + public XrFoveationApplyInfoHTC next(XrFoveationDynamicModeInfoHTC value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #mode} field. */ + public XrFoveationApplyInfoHTC mode(@NativeType("XrFoveationModeHTC") int value) { nmode(address(), value); return this; } + /** Sets the address of the specified {@link XrSwapchainSubImage.Buffer} to the {@link #subImages} field. */ + public XrFoveationApplyInfoHTC subImages(@NativeType("XrSwapchainSubImage *") XrSwapchainSubImage.Buffer value) { nsubImages(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrFoveationApplyInfoHTC set( - int type, - long next, - int mode, + int type, + long next, + int mode, XrSwapchainSubImage.Buffer subImages - ) { - type(type); - next(next); - mode(mode); - subImages(subImages); + ) { + type(type); + next(next); + mode(mode); + subImages(subImages); return this; } @@ -289,28 +289,28 @@ public static XrFoveationApplyInfoHTC.Buffer calloc(int capacity, MemoryStack st } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFoveationApplyInfoHTC.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrFoveationApplyInfoHTC.NEXT); } - /** Unsafe version of {@link #mode}. */ - public static int nmode(long struct) { return UNSAFE.getInt(null, struct + XrFoveationApplyInfoHTC.MODE); } - /** Unsafe version of {@link #subImageCount}. */ - public static int nsubImageCount(long struct) { return UNSAFE.getInt(null, struct + XrFoveationApplyInfoHTC.SUBIMAGECOUNT); } - /** Unsafe version of {@link #subImages}. */ - public static XrSwapchainSubImage.Buffer nsubImages(long struct) { return XrSwapchainSubImage.create(memGetAddress(struct + XrFoveationApplyInfoHTC.SUBIMAGES), nsubImageCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationApplyInfoHTC.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrFoveationApplyInfoHTC.NEXT, value); } - /** Unsafe version of {@link #mode(int) mode}. */ - public static void nmode(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationApplyInfoHTC.MODE, value); } - /** Sets the specified value to the {@code subImageCount} field of the specified {@code struct}. */ - public static void nsubImageCount(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationApplyInfoHTC.SUBIMAGECOUNT, value); } - /** Unsafe version of {@link #subImages(XrSwapchainSubImage.Buffer) subImages}. */ - public static void nsubImages(long struct, XrSwapchainSubImage.Buffer value) { memPutAddress(struct + XrFoveationApplyInfoHTC.SUBIMAGES, value.address()); nsubImageCount(struct, value.remaining()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFoveationApplyInfoHTC.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrFoveationApplyInfoHTC.NEXT); } + /** Unsafe version of {@link #mode}. */ + public static int nmode(long struct) { return UNSAFE.getInt(null, struct + XrFoveationApplyInfoHTC.MODE); } + /** Unsafe version of {@link #subImageCount}. */ + public static int nsubImageCount(long struct) { return UNSAFE.getInt(null, struct + XrFoveationApplyInfoHTC.SUBIMAGECOUNT); } + /** Unsafe version of {@link #subImages}. */ + public static XrSwapchainSubImage.Buffer nsubImages(long struct) { return XrSwapchainSubImage.create(memGetAddress(struct + XrFoveationApplyInfoHTC.SUBIMAGES), nsubImageCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationApplyInfoHTC.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrFoveationApplyInfoHTC.NEXT, value); } + /** Unsafe version of {@link #mode(int) mode}. */ + public static void nmode(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationApplyInfoHTC.MODE, value); } + /** Sets the specified value to the {@code subImageCount} field of the specified {@code struct}. */ + public static void nsubImageCount(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationApplyInfoHTC.SUBIMAGECOUNT, value); } + /** Unsafe version of {@link #subImages(XrSwapchainSubImage.Buffer) subImages}. */ + public static void nsubImages(long struct, XrSwapchainSubImage.Buffer value) { memPutAddress(struct + XrFoveationApplyInfoHTC.SUBIMAGES, value.address()); nsubImageCount(struct, value.remaining()); } /** * Validates pointer members that should not be {@code NULL}. @@ -322,9 +322,9 @@ public static void validate(long struct) { long subImages = memGetAddress(struct + XrFoveationApplyInfoHTC.SUBIMAGES); check(subImages); validate(subImages, subImageCount, XrSwapchainSubImage.SIZEOF, XrSwapchainSubImage::validate); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrFoveationApplyInfoHTC} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -361,37 +361,37 @@ protected Buffer self() { protected XrFoveationApplyInfoHTC getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFoveationApplyInfoHTC#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFoveationApplyInfoHTC.ntype(address()); } - /** @return the value of the {@link XrFoveationApplyInfoHTC#next} field. */ - @NativeType("void const *") - public long next() { return XrFoveationApplyInfoHTC.nnext(address()); } - /** @return the value of the {@link XrFoveationApplyInfoHTC#mode} field. */ - @NativeType("XrFoveationModeHTC") - public int mode() { return XrFoveationApplyInfoHTC.nmode(address()); } - /** @return the value of the {@link XrFoveationApplyInfoHTC#subImageCount} field. */ - @NativeType("uint32_t") - public int subImageCount() { return XrFoveationApplyInfoHTC.nsubImageCount(address()); } - /** @return a {@link XrSwapchainSubImage.Buffer} view of the struct array pointed to by the {@link XrFoveationApplyInfoHTC#subImages} field. */ - @NativeType("XrSwapchainSubImage *") - public XrSwapchainSubImage.Buffer subImages() { return XrFoveationApplyInfoHTC.nsubImages(address()); } - - /** Sets the specified value to the {@link XrFoveationApplyInfoHTC#type} field. */ - public XrFoveationApplyInfoHTC.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationApplyInfoHTC.ntype(address(), value); return this; } - /** Sets the {@link HTCFoveation#XR_TYPE_FOVEATION_APPLY_INFO_HTC TYPE_FOVEATION_APPLY_INFO_HTC} value to the {@link XrFoveationApplyInfoHTC#type} field. */ - public XrFoveationApplyInfoHTC.Buffer type$Default() { return type(HTCFoveation.XR_TYPE_FOVEATION_APPLY_INFO_HTC); } - /** Sets the specified value to the {@link XrFoveationApplyInfoHTC#next} field. */ - public XrFoveationApplyInfoHTC.Buffer next(@NativeType("void const *") long value) { XrFoveationApplyInfoHTC.nnext(address(), value); return this; } - /** Prepends the specified {@link XrFoveationCustomModeInfoHTC} value to the {@code next} chain. */ - public XrFoveationApplyInfoHTC.Buffer next(XrFoveationCustomModeInfoHTC value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrFoveationDynamicModeInfoHTC} value to the {@code next} chain. */ - public XrFoveationApplyInfoHTC.Buffer next(XrFoveationDynamicModeInfoHTC value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrFoveationApplyInfoHTC#mode} field. */ - public XrFoveationApplyInfoHTC.Buffer mode(@NativeType("XrFoveationModeHTC") int value) { XrFoveationApplyInfoHTC.nmode(address(), value); return this; } - /** Sets the address of the specified {@link XrSwapchainSubImage.Buffer} to the {@link XrFoveationApplyInfoHTC#subImages} field. */ - public XrFoveationApplyInfoHTC.Buffer subImages(@NativeType("XrSwapchainSubImage *") XrSwapchainSubImage.Buffer value) { XrFoveationApplyInfoHTC.nsubImages(address(), value); return this; } + + /** @return the value of the {@link XrFoveationApplyInfoHTC#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFoveationApplyInfoHTC.ntype(address()); } + /** @return the value of the {@link XrFoveationApplyInfoHTC#next} field. */ + @NativeType("void const *") + public long next() { return XrFoveationApplyInfoHTC.nnext(address()); } + /** @return the value of the {@link XrFoveationApplyInfoHTC#mode} field. */ + @NativeType("XrFoveationModeHTC") + public int mode() { return XrFoveationApplyInfoHTC.nmode(address()); } + /** @return the value of the {@link XrFoveationApplyInfoHTC#subImageCount} field. */ + @NativeType("uint32_t") + public int subImageCount() { return XrFoveationApplyInfoHTC.nsubImageCount(address()); } + /** @return a {@link XrSwapchainSubImage.Buffer} view of the struct array pointed to by the {@link XrFoveationApplyInfoHTC#subImages} field. */ + @NativeType("XrSwapchainSubImage *") + public XrSwapchainSubImage.Buffer subImages() { return XrFoveationApplyInfoHTC.nsubImages(address()); } + + /** Sets the specified value to the {@link XrFoveationApplyInfoHTC#type} field. */ + public XrFoveationApplyInfoHTC.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationApplyInfoHTC.ntype(address(), value); return this; } + /** Sets the {@link HTCFoveation#XR_TYPE_FOVEATION_APPLY_INFO_HTC TYPE_FOVEATION_APPLY_INFO_HTC} value to the {@link XrFoveationApplyInfoHTC#type} field. */ + public XrFoveationApplyInfoHTC.Buffer type$Default() { return type(HTCFoveation.XR_TYPE_FOVEATION_APPLY_INFO_HTC); } + /** Sets the specified value to the {@link XrFoveationApplyInfoHTC#next} field. */ + public XrFoveationApplyInfoHTC.Buffer next(@NativeType("void const *") long value) { XrFoveationApplyInfoHTC.nnext(address(), value); return this; } + /** Prepends the specified {@link XrFoveationCustomModeInfoHTC} value to the {@code next} chain. */ + public XrFoveationApplyInfoHTC.Buffer next(XrFoveationCustomModeInfoHTC value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrFoveationDynamicModeInfoHTC} value to the {@code next} chain. */ + public XrFoveationApplyInfoHTC.Buffer next(XrFoveationDynamicModeInfoHTC value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrFoveationApplyInfoHTC#mode} field. */ + public XrFoveationApplyInfoHTC.Buffer mode(@NativeType("XrFoveationModeHTC") int value) { XrFoveationApplyInfoHTC.nmode(address(), value); return this; } + /** Sets the address of the specified {@link XrSwapchainSubImage.Buffer} to the {@link XrFoveationApplyInfoHTC#subImages} field. */ + public XrFoveationApplyInfoHTC.Buffer subImages(@NativeType("XrSwapchainSubImage *") XrSwapchainSubImage.Buffer value) { XrFoveationApplyInfoHTC.nsubImages(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationConfigurationHTC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationConfigurationHTC.java index 075f35b429..0b9c4c274c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationConfigurationHTC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationConfigurationHTC.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Configuration of foveation. * @@ -37,8 +37,8 @@ * float {@link #clearFovDegree}; * {@link XrVector2f XrVector2f} {@link #focalCenterOffset}; * } - */ -public class XrFoveationConfigurationHTC extends Struct implements NativeResource { + */ +public class XrFoveationConfigurationHTC extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,24 +48,24 @@ public class XrFoveationConfigurationHTC extends Structmust be specified in degree, and must be in the range [0, 180]. */ - public float clearFovDegree() { return nclearFovDegree(address()); } - /** the desired center offset of the field of view in NDC(normalized device coordinates) space. The x and y of {@code focalCenterOffset} must be in the range [-1, 1]. */ - public XrVector2f focalCenterOffset() { return nfocalCenterOffset(address()); } - - /** Sets the specified value to the {@link #level} field. */ - public XrFoveationConfigurationHTC level(@NativeType("XrFoveationLevelHTC") int value) { nlevel(address(), value); return this; } - /** Sets the specified value to the {@link #clearFovDegree} field. */ - public XrFoveationConfigurationHTC clearFovDegree(float value) { nclearFovDegree(address(), value); return this; } - /** Copies the specified {@link XrVector2f} to the {@link #focalCenterOffset} field. */ - public XrFoveationConfigurationHTC focalCenterOffset(XrVector2f value) { nfocalCenterOffset(address(), value); return this; } - /** Passes the {@link #focalCenterOffset} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrFoveationConfigurationHTC focalCenterOffset(java.util.function.Consumer consumer) { consumer.accept(focalCenterOffset()); return this; } + + /** the pixel density drop level of periphery area specified by {@code XrFoveationLevelHTC} . */ + @NativeType("XrFoveationLevelHTC") + public int level() { return nlevel(address()); } + /** the value indicating the total horizontal and vertical field angle with the original pixel density level. {@code clearFovDegree} must be specified in degree, and must be in the range [0, 180]. */ + public float clearFovDegree() { return nclearFovDegree(address()); } + /** the desired center offset of the field of view in NDC(normalized device coordinates) space. The x and y of {@code focalCenterOffset} must be in the range [-1, 1]. */ + public XrVector2f focalCenterOffset() { return nfocalCenterOffset(address()); } + + /** Sets the specified value to the {@link #level} field. */ + public XrFoveationConfigurationHTC level(@NativeType("XrFoveationLevelHTC") int value) { nlevel(address(), value); return this; } + /** Sets the specified value to the {@link #clearFovDegree} field. */ + public XrFoveationConfigurationHTC clearFovDegree(float value) { nclearFovDegree(address(), value); return this; } + /** Copies the specified {@link XrVector2f} to the {@link #focalCenterOffset} field. */ + public XrFoveationConfigurationHTC focalCenterOffset(XrVector2f value) { nfocalCenterOffset(address(), value); return this; } + /** Passes the {@link #focalCenterOffset} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrFoveationConfigurationHTC focalCenterOffset(java.util.function.Consumer consumer) { consumer.accept(focalCenterOffset()); return this; } /** Initializes this struct with the specified values. */ public XrFoveationConfigurationHTC set( - int level, - float clearFovDegree, + int level, + float clearFovDegree, XrVector2f focalCenterOffset - ) { - level(level); - clearFovDegree(clearFovDegree); - focalCenterOffset(focalCenterOffset); + ) { + level(level); + clearFovDegree(clearFovDegree); + focalCenterOffset(focalCenterOffset); return this; } @@ -243,22 +243,22 @@ public static XrFoveationConfigurationHTC.Buffer calloc(int capacity, MemoryStac } // ----------------------------------- - - /** Unsafe version of {@link #level}. */ - public static int nlevel(long struct) { return UNSAFE.getInt(null, struct + XrFoveationConfigurationHTC.LEVEL); } - /** Unsafe version of {@link #clearFovDegree}. */ - public static float nclearFovDegree(long struct) { return UNSAFE.getFloat(null, struct + XrFoveationConfigurationHTC.CLEARFOVDEGREE); } - /** Unsafe version of {@link #focalCenterOffset}. */ - public static XrVector2f nfocalCenterOffset(long struct) { return XrVector2f.create(struct + XrFoveationConfigurationHTC.FOCALCENTEROFFSET); } - - /** Unsafe version of {@link #level(int) level}. */ - public static void nlevel(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationConfigurationHTC.LEVEL, value); } - /** Unsafe version of {@link #clearFovDegree(float) clearFovDegree}. */ - public static void nclearFovDegree(long struct, float value) { UNSAFE.putFloat(null, struct + XrFoveationConfigurationHTC.CLEARFOVDEGREE, value); } - /** Unsafe version of {@link #focalCenterOffset(XrVector2f) focalCenterOffset}. */ - public static void nfocalCenterOffset(long struct, XrVector2f value) { memCopy(value.address(), struct + XrFoveationConfigurationHTC.FOCALCENTEROFFSET, XrVector2f.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #level}. */ + public static int nlevel(long struct) { return UNSAFE.getInt(null, struct + XrFoveationConfigurationHTC.LEVEL); } + /** Unsafe version of {@link #clearFovDegree}. */ + public static float nclearFovDegree(long struct) { return UNSAFE.getFloat(null, struct + XrFoveationConfigurationHTC.CLEARFOVDEGREE); } + /** Unsafe version of {@link #focalCenterOffset}. */ + public static XrVector2f nfocalCenterOffset(long struct) { return XrVector2f.create(struct + XrFoveationConfigurationHTC.FOCALCENTEROFFSET); } + + /** Unsafe version of {@link #level(int) level}. */ + public static void nlevel(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationConfigurationHTC.LEVEL, value); } + /** Unsafe version of {@link #clearFovDegree(float) clearFovDegree}. */ + public static void nclearFovDegree(long struct, float value) { UNSAFE.putFloat(null, struct + XrFoveationConfigurationHTC.CLEARFOVDEGREE, value); } + /** Unsafe version of {@link #focalCenterOffset(XrVector2f) focalCenterOffset}. */ + public static void nfocalCenterOffset(long struct, XrVector2f value) { memCopy(value.address(), struct + XrFoveationConfigurationHTC.FOCALCENTEROFFSET, XrVector2f.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrFoveationConfigurationHTC} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -295,23 +295,23 @@ protected Buffer self() { protected XrFoveationConfigurationHTC getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFoveationConfigurationHTC#level} field. */ - @NativeType("XrFoveationLevelHTC") - public int level() { return XrFoveationConfigurationHTC.nlevel(address()); } - /** @return the value of the {@link XrFoveationConfigurationHTC#clearFovDegree} field. */ - public float clearFovDegree() { return XrFoveationConfigurationHTC.nclearFovDegree(address()); } - /** @return a {@link XrVector2f} view of the {@link XrFoveationConfigurationHTC#focalCenterOffset} field. */ - public XrVector2f focalCenterOffset() { return XrFoveationConfigurationHTC.nfocalCenterOffset(address()); } - - /** Sets the specified value to the {@link XrFoveationConfigurationHTC#level} field. */ - public XrFoveationConfigurationHTC.Buffer level(@NativeType("XrFoveationLevelHTC") int value) { XrFoveationConfigurationHTC.nlevel(address(), value); return this; } - /** Sets the specified value to the {@link XrFoveationConfigurationHTC#clearFovDegree} field. */ - public XrFoveationConfigurationHTC.Buffer clearFovDegree(float value) { XrFoveationConfigurationHTC.nclearFovDegree(address(), value); return this; } - /** Copies the specified {@link XrVector2f} to the {@link XrFoveationConfigurationHTC#focalCenterOffset} field. */ - public XrFoveationConfigurationHTC.Buffer focalCenterOffset(XrVector2f value) { XrFoveationConfigurationHTC.nfocalCenterOffset(address(), value); return this; } - /** Passes the {@link XrFoveationConfigurationHTC#focalCenterOffset} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrFoveationConfigurationHTC.Buffer focalCenterOffset(java.util.function.Consumer consumer) { consumer.accept(focalCenterOffset()); return this; } + + /** @return the value of the {@link XrFoveationConfigurationHTC#level} field. */ + @NativeType("XrFoveationLevelHTC") + public int level() { return XrFoveationConfigurationHTC.nlevel(address()); } + /** @return the value of the {@link XrFoveationConfigurationHTC#clearFovDegree} field. */ + public float clearFovDegree() { return XrFoveationConfigurationHTC.nclearFovDegree(address()); } + /** @return a {@link XrVector2f} view of the {@link XrFoveationConfigurationHTC#focalCenterOffset} field. */ + public XrVector2f focalCenterOffset() { return XrFoveationConfigurationHTC.nfocalCenterOffset(address()); } + + /** Sets the specified value to the {@link XrFoveationConfigurationHTC#level} field. */ + public XrFoveationConfigurationHTC.Buffer level(@NativeType("XrFoveationLevelHTC") int value) { XrFoveationConfigurationHTC.nlevel(address(), value); return this; } + /** Sets the specified value to the {@link XrFoveationConfigurationHTC#clearFovDegree} field. */ + public XrFoveationConfigurationHTC.Buffer clearFovDegree(float value) { XrFoveationConfigurationHTC.nclearFovDegree(address(), value); return this; } + /** Copies the specified {@link XrVector2f} to the {@link XrFoveationConfigurationHTC#focalCenterOffset} field. */ + public XrFoveationConfigurationHTC.Buffer focalCenterOffset(XrVector2f value) { XrFoveationConfigurationHTC.nfocalCenterOffset(address(), value); return this; } + /** Passes the {@link XrFoveationConfigurationHTC#focalCenterOffset} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrFoveationConfigurationHTC.Buffer focalCenterOffset(java.util.function.Consumer consumer) { consumer.accept(focalCenterOffset()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationCustomModeInfoHTC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationCustomModeInfoHTC.java index 81f561c30e..349aed4c7c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationCustomModeInfoHTC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationCustomModeInfoHTC.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Configuration for custom mode. * @@ -28,7 +28,7 @@ *
                                  *
                                • The {@link HTCFoveation XR_HTC_foveation} extension must be enabled prior to using {@link XrFoveationCustomModeInfoHTC}
                                • *
                                • {@code type} must be {@link HTCFoveation#XR_TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC}
                                • - *
                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                • + *
                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                • *
                                • {@code configs} must be a pointer to an array of {@code configCount} valid {@link XrFoveationConfigurationHTC} structures
                                • *
                                • The {@code configCount} parameter must be greater than 0
                                • *
                                @@ -46,8 +46,8 @@ * uint32_t {@link #configCount}; * {@link XrFoveationConfigurationHTC XrFoveationConfigurationHTC} const * {@link #configs}; * } - */ -public class XrFoveationCustomModeInfoHTC extends Struct implements NativeResource { + */ +public class XrFoveationCustomModeInfoHTC extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,27 +57,27 @@ public class XrFoveationCustomModeInfoHTC extends Structmust be the number of views. */ - @NativeType("uint32_t") - public int configCount() { return nconfigCount(address()); } - /** an array of {@link XrFoveationConfigurationHTC} structure contains the custom foveation settings for the corresponding views. */ - @NativeType("XrFoveationConfigurationHTC const *") - public XrFoveationConfigurationHTC.Buffer configs() { return nconfigs(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrFoveationCustomModeInfoHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link HTCFoveation#XR_TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC} value to the {@link #type} field. */ - public XrFoveationCustomModeInfoHTC type$Default() { return type(HTCFoveation.XR_TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC); } - /** Sets the specified value to the {@link #next} field. */ - public XrFoveationCustomModeInfoHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the address of the specified {@link XrFoveationConfigurationHTC.Buffer} to the {@link #configs} field. */ - public XrFoveationCustomModeInfoHTC configs(@NativeType("XrFoveationConfigurationHTC const *") XrFoveationConfigurationHTC.Buffer value) { nconfigs(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** a {@code uint32_t} describing the count of elements in the {@code configs} array, which must be the number of views. */ + @NativeType("uint32_t") + public int configCount() { return nconfigCount(address()); } + /** an array of {@link XrFoveationConfigurationHTC} structure contains the custom foveation settings for the corresponding views. */ + @NativeType("XrFoveationConfigurationHTC const *") + public XrFoveationConfigurationHTC.Buffer configs() { return nconfigs(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrFoveationCustomModeInfoHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link HTCFoveation#XR_TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC} value to the {@link #type} field. */ + public XrFoveationCustomModeInfoHTC type$Default() { return type(HTCFoveation.XR_TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC); } + /** Sets the specified value to the {@link #next} field. */ + public XrFoveationCustomModeInfoHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the address of the specified {@link XrFoveationConfigurationHTC.Buffer} to the {@link #configs} field. */ + public XrFoveationCustomModeInfoHTC configs(@NativeType("XrFoveationConfigurationHTC const *") XrFoveationConfigurationHTC.Buffer value) { nconfigs(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrFoveationCustomModeInfoHTC set( - int type, - long next, + int type, + long next, XrFoveationConfigurationHTC.Buffer configs - ) { - type(type); - next(next); - configs(configs); + ) { + type(type); + next(next); + configs(configs); return this; } @@ -260,24 +260,24 @@ public static XrFoveationCustomModeInfoHTC.Buffer calloc(int capacity, MemorySta } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFoveationCustomModeInfoHTC.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrFoveationCustomModeInfoHTC.NEXT); } - /** Unsafe version of {@link #configCount}. */ - public static int nconfigCount(long struct) { return UNSAFE.getInt(null, struct + XrFoveationCustomModeInfoHTC.CONFIGCOUNT); } - /** Unsafe version of {@link #configs}. */ - public static XrFoveationConfigurationHTC.Buffer nconfigs(long struct) { return XrFoveationConfigurationHTC.create(memGetAddress(struct + XrFoveationCustomModeInfoHTC.CONFIGS), nconfigCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationCustomModeInfoHTC.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrFoveationCustomModeInfoHTC.NEXT, value); } - /** Sets the specified value to the {@code configCount} field of the specified {@code struct}. */ - public static void nconfigCount(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationCustomModeInfoHTC.CONFIGCOUNT, value); } - /** Unsafe version of {@link #configs(XrFoveationConfigurationHTC.Buffer) configs}. */ - public static void nconfigs(long struct, XrFoveationConfigurationHTC.Buffer value) { memPutAddress(struct + XrFoveationCustomModeInfoHTC.CONFIGS, value.address()); nconfigCount(struct, value.remaining()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFoveationCustomModeInfoHTC.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrFoveationCustomModeInfoHTC.NEXT); } + /** Unsafe version of {@link #configCount}. */ + public static int nconfigCount(long struct) { return UNSAFE.getInt(null, struct + XrFoveationCustomModeInfoHTC.CONFIGCOUNT); } + /** Unsafe version of {@link #configs}. */ + public static XrFoveationConfigurationHTC.Buffer nconfigs(long struct) { return XrFoveationConfigurationHTC.create(memGetAddress(struct + XrFoveationCustomModeInfoHTC.CONFIGS), nconfigCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationCustomModeInfoHTC.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrFoveationCustomModeInfoHTC.NEXT, value); } + /** Sets the specified value to the {@code configCount} field of the specified {@code struct}. */ + public static void nconfigCount(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationCustomModeInfoHTC.CONFIGCOUNT, value); } + /** Unsafe version of {@link #configs(XrFoveationConfigurationHTC.Buffer) configs}. */ + public static void nconfigs(long struct, XrFoveationConfigurationHTC.Buffer value) { memPutAddress(struct + XrFoveationCustomModeInfoHTC.CONFIGS, value.address()); nconfigCount(struct, value.remaining()); } /** * Validates pointer members that should not be {@code NULL}. @@ -286,9 +286,9 @@ public static XrFoveationCustomModeInfoHTC.Buffer calloc(int capacity, MemorySta */ public static void validate(long struct) { check(memGetAddress(struct + XrFoveationCustomModeInfoHTC.CONFIGS)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrFoveationCustomModeInfoHTC} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -325,28 +325,28 @@ protected Buffer self() { protected XrFoveationCustomModeInfoHTC getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFoveationCustomModeInfoHTC#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFoveationCustomModeInfoHTC.ntype(address()); } - /** @return the value of the {@link XrFoveationCustomModeInfoHTC#next} field. */ - @NativeType("void const *") - public long next() { return XrFoveationCustomModeInfoHTC.nnext(address()); } - /** @return the value of the {@link XrFoveationCustomModeInfoHTC#configCount} field. */ - @NativeType("uint32_t") - public int configCount() { return XrFoveationCustomModeInfoHTC.nconfigCount(address()); } - /** @return a {@link XrFoveationConfigurationHTC.Buffer} view of the struct array pointed to by the {@link XrFoveationCustomModeInfoHTC#configs} field. */ - @NativeType("XrFoveationConfigurationHTC const *") - public XrFoveationConfigurationHTC.Buffer configs() { return XrFoveationCustomModeInfoHTC.nconfigs(address()); } - - /** Sets the specified value to the {@link XrFoveationCustomModeInfoHTC#type} field. */ - public XrFoveationCustomModeInfoHTC.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationCustomModeInfoHTC.ntype(address(), value); return this; } - /** Sets the {@link HTCFoveation#XR_TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC} value to the {@link XrFoveationCustomModeInfoHTC#type} field. */ - public XrFoveationCustomModeInfoHTC.Buffer type$Default() { return type(HTCFoveation.XR_TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC); } - /** Sets the specified value to the {@link XrFoveationCustomModeInfoHTC#next} field. */ - public XrFoveationCustomModeInfoHTC.Buffer next(@NativeType("void const *") long value) { XrFoveationCustomModeInfoHTC.nnext(address(), value); return this; } - /** Sets the address of the specified {@link XrFoveationConfigurationHTC.Buffer} to the {@link XrFoveationCustomModeInfoHTC#configs} field. */ - public XrFoveationCustomModeInfoHTC.Buffer configs(@NativeType("XrFoveationConfigurationHTC const *") XrFoveationConfigurationHTC.Buffer value) { XrFoveationCustomModeInfoHTC.nconfigs(address(), value); return this; } + + /** @return the value of the {@link XrFoveationCustomModeInfoHTC#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFoveationCustomModeInfoHTC.ntype(address()); } + /** @return the value of the {@link XrFoveationCustomModeInfoHTC#next} field. */ + @NativeType("void const *") + public long next() { return XrFoveationCustomModeInfoHTC.nnext(address()); } + /** @return the value of the {@link XrFoveationCustomModeInfoHTC#configCount} field. */ + @NativeType("uint32_t") + public int configCount() { return XrFoveationCustomModeInfoHTC.nconfigCount(address()); } + /** @return a {@link XrFoveationConfigurationHTC.Buffer} view of the struct array pointed to by the {@link XrFoveationCustomModeInfoHTC#configs} field. */ + @NativeType("XrFoveationConfigurationHTC const *") + public XrFoveationConfigurationHTC.Buffer configs() { return XrFoveationCustomModeInfoHTC.nconfigs(address()); } + + /** Sets the specified value to the {@link XrFoveationCustomModeInfoHTC#type} field. */ + public XrFoveationCustomModeInfoHTC.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationCustomModeInfoHTC.ntype(address(), value); return this; } + /** Sets the {@link HTCFoveation#XR_TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC} value to the {@link XrFoveationCustomModeInfoHTC#type} field. */ + public XrFoveationCustomModeInfoHTC.Buffer type$Default() { return type(HTCFoveation.XR_TYPE_FOVEATION_CUSTOM_MODE_INFO_HTC); } + /** Sets the specified value to the {@link XrFoveationCustomModeInfoHTC#next} field. */ + public XrFoveationCustomModeInfoHTC.Buffer next(@NativeType("void const *") long value) { XrFoveationCustomModeInfoHTC.nnext(address(), value); return this; } + /** Sets the address of the specified {@link XrFoveationConfigurationHTC.Buffer} to the {@link XrFoveationCustomModeInfoHTC#configs} field. */ + public XrFoveationCustomModeInfoHTC.Buffer configs(@NativeType("XrFoveationConfigurationHTC const *") XrFoveationConfigurationHTC.Buffer value) { XrFoveationCustomModeInfoHTC.nconfigs(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationDynamicModeInfoHTC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationDynamicModeInfoHTC.java index 556821b8f3..c02842ef55 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationDynamicModeInfoHTC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationDynamicModeInfoHTC.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Configuration for dynamic mode. * @@ -27,7 +27,7 @@ *
                                  *
                                • The {@link HTCFoveation XR_HTC_foveation} extension must be enabled prior to using {@link XrFoveationDynamicModeInfoHTC}
                                • *
                                • {@code type} must be {@link HTCFoveation#XR_TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC}
                                • - *
                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                • + *
                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                • *
                                • {@code dynamicFlags} must be 0 or a valid combination of {@code XrFoveationDynamicFlagBitsHTC} values
                                • *
                                * @@ -39,8 +39,8 @@ * void const * {@link #next}; * XrFoveationDynamicFlagsHTC {@link #dynamicFlags}; * } - */ -public class XrFoveationDynamicModeInfoHTC extends Struct implements NativeResource { + */ +public class XrFoveationDynamicModeInfoHTC extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,24 +50,24 @@ public class XrFoveationDynamicModeInfoHTC extends Structmay be changed during dynamic mode. */ - @NativeType("XrFoveationDynamicFlagsHTC") - public long dynamicFlags() { return ndynamicFlags(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrFoveationDynamicModeInfoHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link HTCFoveation#XR_TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC} value to the {@link #type} field. */ - public XrFoveationDynamicModeInfoHTC type$Default() { return type(HTCFoveation.XR_TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC); } - /** Sets the specified value to the {@link #next} field. */ - public XrFoveationDynamicModeInfoHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #dynamicFlags} field. */ - public XrFoveationDynamicModeInfoHTC dynamicFlags(@NativeType("XrFoveationDynamicFlagsHTC") long value) { ndynamicFlags(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** a bitmask of {@code XrFoveationDynamicFlagBitsHTC} indicated which item may be changed during dynamic mode. */ + @NativeType("XrFoveationDynamicFlagsHTC") + public long dynamicFlags() { return ndynamicFlags(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrFoveationDynamicModeInfoHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link HTCFoveation#XR_TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC} value to the {@link #type} field. */ + public XrFoveationDynamicModeInfoHTC type$Default() { return type(HTCFoveation.XR_TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC); } + /** Sets the specified value to the {@link #next} field. */ + public XrFoveationDynamicModeInfoHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #dynamicFlags} field. */ + public XrFoveationDynamicModeInfoHTC dynamicFlags(@NativeType("XrFoveationDynamicFlagsHTC") long value) { ndynamicFlags(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrFoveationDynamicModeInfoHTC set( - int type, - long next, + int type, + long next, long dynamicFlags - ) { - type(type); - next(next); - dynamicFlags(dynamicFlags); + ) { + type(type); + next(next); + dynamicFlags(dynamicFlags); return this; } @@ -247,22 +247,22 @@ public static XrFoveationDynamicModeInfoHTC.Buffer calloc(int capacity, MemorySt } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFoveationDynamicModeInfoHTC.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrFoveationDynamicModeInfoHTC.NEXT); } - /** Unsafe version of {@link #dynamicFlags}. */ - public static long ndynamicFlags(long struct) { return UNSAFE.getLong(null, struct + XrFoveationDynamicModeInfoHTC.DYNAMICFLAGS); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationDynamicModeInfoHTC.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrFoveationDynamicModeInfoHTC.NEXT, value); } - /** Unsafe version of {@link #dynamicFlags(long) dynamicFlags}. */ - public static void ndynamicFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrFoveationDynamicModeInfoHTC.DYNAMICFLAGS, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFoveationDynamicModeInfoHTC.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrFoveationDynamicModeInfoHTC.NEXT); } + /** Unsafe version of {@link #dynamicFlags}. */ + public static long ndynamicFlags(long struct) { return UNSAFE.getLong(null, struct + XrFoveationDynamicModeInfoHTC.DYNAMICFLAGS); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFoveationDynamicModeInfoHTC.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrFoveationDynamicModeInfoHTC.NEXT, value); } + /** Unsafe version of {@link #dynamicFlags(long) dynamicFlags}. */ + public static void ndynamicFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrFoveationDynamicModeInfoHTC.DYNAMICFLAGS, value); } + + // ----------------------------------- /** An array of {@link XrFoveationDynamicModeInfoHTC} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -299,25 +299,25 @@ protected Buffer self() { protected XrFoveationDynamicModeInfoHTC getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFoveationDynamicModeInfoHTC#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFoveationDynamicModeInfoHTC.ntype(address()); } - /** @return the value of the {@link XrFoveationDynamicModeInfoHTC#next} field. */ - @NativeType("void const *") - public long next() { return XrFoveationDynamicModeInfoHTC.nnext(address()); } - /** @return the value of the {@link XrFoveationDynamicModeInfoHTC#dynamicFlags} field. */ - @NativeType("XrFoveationDynamicFlagsHTC") - public long dynamicFlags() { return XrFoveationDynamicModeInfoHTC.ndynamicFlags(address()); } - - /** Sets the specified value to the {@link XrFoveationDynamicModeInfoHTC#type} field. */ - public XrFoveationDynamicModeInfoHTC.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationDynamicModeInfoHTC.ntype(address(), value); return this; } - /** Sets the {@link HTCFoveation#XR_TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC} value to the {@link XrFoveationDynamicModeInfoHTC#type} field. */ - public XrFoveationDynamicModeInfoHTC.Buffer type$Default() { return type(HTCFoveation.XR_TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC); } - /** Sets the specified value to the {@link XrFoveationDynamicModeInfoHTC#next} field. */ - public XrFoveationDynamicModeInfoHTC.Buffer next(@NativeType("void const *") long value) { XrFoveationDynamicModeInfoHTC.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrFoveationDynamicModeInfoHTC#dynamicFlags} field. */ - public XrFoveationDynamicModeInfoHTC.Buffer dynamicFlags(@NativeType("XrFoveationDynamicFlagsHTC") long value) { XrFoveationDynamicModeInfoHTC.ndynamicFlags(address(), value); return this; } + + /** @return the value of the {@link XrFoveationDynamicModeInfoHTC#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFoveationDynamicModeInfoHTC.ntype(address()); } + /** @return the value of the {@link XrFoveationDynamicModeInfoHTC#next} field. */ + @NativeType("void const *") + public long next() { return XrFoveationDynamicModeInfoHTC.nnext(address()); } + /** @return the value of the {@link XrFoveationDynamicModeInfoHTC#dynamicFlags} field. */ + @NativeType("XrFoveationDynamicFlagsHTC") + public long dynamicFlags() { return XrFoveationDynamicModeInfoHTC.ndynamicFlags(address()); } + + /** Sets the specified value to the {@link XrFoveationDynamicModeInfoHTC#type} field. */ + public XrFoveationDynamicModeInfoHTC.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationDynamicModeInfoHTC.ntype(address(), value); return this; } + /** Sets the {@link HTCFoveation#XR_TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC} value to the {@link XrFoveationDynamicModeInfoHTC#type} field. */ + public XrFoveationDynamicModeInfoHTC.Buffer type$Default() { return type(HTCFoveation.XR_TYPE_FOVEATION_DYNAMIC_MODE_INFO_HTC); } + /** Sets the specified value to the {@link XrFoveationDynamicModeInfoHTC#next} field. */ + public XrFoveationDynamicModeInfoHTC.Buffer next(@NativeType("void const *") long value) { XrFoveationDynamicModeInfoHTC.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrFoveationDynamicModeInfoHTC#dynamicFlags} field. */ + public XrFoveationDynamicModeInfoHTC.Buffer dynamicFlags(@NativeType("XrFoveationDynamicFlagsHTC") long value) { XrFoveationDynamicModeInfoHTC.ndynamicFlags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationEyeTrackedProfileCreateInfoMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationEyeTrackedProfileCreateInfoMETA.java index 98d1c90ecb..663f92f028 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationEyeTrackedProfileCreateInfoMETA.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationEyeTrackedProfileCreateInfoMETA.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The information to create a eye tracked foveation profile. * @@ -27,7 +27,7 @@ *
                                  *
                                • The {@link METAFoveationEyeTracked XR_META_foveation_eye_tracked} extension must be enabled prior to using {@link XrFoveationEyeTrackedProfileCreateInfoMETA}
                                • *
                                • {@code type} must be {@link METAFoveationEyeTracked#XR_TYPE_FOVEATION_EYE_TRACKED_PROFILE_CREATE_INFO_META TYPE_FOVEATION_EYE_TRACKED_PROFILE_CREATE_INFO_META}
                                • - *
                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                • + *
                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                • *
                                • {@code flags} must be 0
                                • *
                                * @@ -39,8 +39,8 @@ * void const * {@link #next}; * XrFoveationEyeTrackedProfileCreateFlagsMETA {@link #flags}; * } - */ -public class XrFoveationEyeTrackedProfileCreateInfoMETA extends Struct implements NativeResource { + */ +public class XrFoveationEyeTrackedProfileCreateInfoMETA extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,24 +50,24 @@ public class XrFoveationEyeTrackedProfileCreateInfoMETA extends Struct implements NativeResource { @@ -299,25 +299,25 @@ protected Buffer self() { protected XrFoveationEyeTrackedProfileCreateInfoMETA getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFoveationEyeTrackedProfileCreateInfoMETA.ntype(address()); } - /** @return the value of the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#next} field. */ - @NativeType("void const *") - public long next() { return XrFoveationEyeTrackedProfileCreateInfoMETA.nnext(address()); } - /** @return the value of the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#flags} field. */ - @NativeType("XrFoveationEyeTrackedProfileCreateFlagsMETA") - public long flags() { return XrFoveationEyeTrackedProfileCreateInfoMETA.nflags(address()); } - - /** Sets the specified value to the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#type} field. */ - public XrFoveationEyeTrackedProfileCreateInfoMETA.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationEyeTrackedProfileCreateInfoMETA.ntype(address(), value); return this; } - /** Sets the {@link METAFoveationEyeTracked#XR_TYPE_FOVEATION_EYE_TRACKED_PROFILE_CREATE_INFO_META TYPE_FOVEATION_EYE_TRACKED_PROFILE_CREATE_INFO_META} value to the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#type} field. */ - public XrFoveationEyeTrackedProfileCreateInfoMETA.Buffer type$Default() { return type(METAFoveationEyeTracked.XR_TYPE_FOVEATION_EYE_TRACKED_PROFILE_CREATE_INFO_META); } - /** Sets the specified value to the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#next} field. */ - public XrFoveationEyeTrackedProfileCreateInfoMETA.Buffer next(@NativeType("void const *") long value) { XrFoveationEyeTrackedProfileCreateInfoMETA.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#flags} field. */ - public XrFoveationEyeTrackedProfileCreateInfoMETA.Buffer flags(@NativeType("XrFoveationEyeTrackedProfileCreateFlagsMETA") long value) { XrFoveationEyeTrackedProfileCreateInfoMETA.nflags(address(), value); return this; } + + /** @return the value of the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFoveationEyeTrackedProfileCreateInfoMETA.ntype(address()); } + /** @return the value of the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#next} field. */ + @NativeType("void const *") + public long next() { return XrFoveationEyeTrackedProfileCreateInfoMETA.nnext(address()); } + /** @return the value of the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#flags} field. */ + @NativeType("XrFoveationEyeTrackedProfileCreateFlagsMETA") + public long flags() { return XrFoveationEyeTrackedProfileCreateInfoMETA.nflags(address()); } + + /** Sets the specified value to the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#type} field. */ + public XrFoveationEyeTrackedProfileCreateInfoMETA.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationEyeTrackedProfileCreateInfoMETA.ntype(address(), value); return this; } + /** Sets the {@link METAFoveationEyeTracked#XR_TYPE_FOVEATION_EYE_TRACKED_PROFILE_CREATE_INFO_META TYPE_FOVEATION_EYE_TRACKED_PROFILE_CREATE_INFO_META} value to the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#type} field. */ + public XrFoveationEyeTrackedProfileCreateInfoMETA.Buffer type$Default() { return type(METAFoveationEyeTracked.XR_TYPE_FOVEATION_EYE_TRACKED_PROFILE_CREATE_INFO_META); } + /** Sets the specified value to the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#next} field. */ + public XrFoveationEyeTrackedProfileCreateInfoMETA.Buffer next(@NativeType("void const *") long value) { XrFoveationEyeTrackedProfileCreateInfoMETA.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrFoveationEyeTrackedProfileCreateInfoMETA#flags} field. */ + public XrFoveationEyeTrackedProfileCreateInfoMETA.Buffer flags(@NativeType("XrFoveationEyeTrackedProfileCreateFlagsMETA") long value) { XrFoveationEyeTrackedProfileCreateInfoMETA.nflags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationEyeTrackedStateMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationEyeTrackedStateMETA.java index e5c07554fc..03d5b9ecf8 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationEyeTrackedStateMETA.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationEyeTrackedStateMETA.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import static org.lwjgl.openxr.METAFoveationEyeTracked.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.METAFoveationEyeTracked.*; + /** * Foveation data returned from the runtime. * @@ -30,7 +30,7 @@ *
                                  *
                                • The {@link METAFoveationEyeTracked XR_META_foveation_eye_tracked} extension must be enabled prior to using {@link XrFoveationEyeTrackedStateMETA}
                                • *
                                • {@code type} must be {@link METAFoveationEyeTracked#XR_TYPE_FOVEATION_EYE_TRACKED_STATE_META TYPE_FOVEATION_EYE_TRACKED_STATE_META}
                                • - *
                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                • + *
                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                • *
                                * *
                                See Also
                                @@ -46,8 +46,8 @@ * {@link XrVector2f XrVector2f} {@link #foveationCenter}[XR_FOVEATION_CENTER_SIZE_META]; * XrFoveationEyeTrackedStateFlagsMETA {@link #flags}; * } - */ -public class XrFoveationEyeTrackedStateMETA extends Struct implements NativeResource { + */ +public class XrFoveationEyeTrackedStateMETA extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,27 +57,27 @@ public class XrFoveationEyeTrackedStateMETA extends Struct implements NativeResource { @@ -314,28 +314,28 @@ protected Buffer self() { protected XrFoveationEyeTrackedStateMETA getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFoveationEyeTrackedStateMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFoveationEyeTrackedStateMETA.ntype(address()); } - /** @return the value of the {@link XrFoveationEyeTrackedStateMETA#next} field. */ - @NativeType("void *") - public long next() { return XrFoveationEyeTrackedStateMETA.nnext(address()); } - /** @return a {@link XrVector2f}.Buffer view of the {@link XrFoveationEyeTrackedStateMETA#foveationCenter} field. */ - @NativeType("XrVector2f[XR_FOVEATION_CENTER_SIZE_META]") - public XrVector2f.Buffer foveationCenter() { return XrFoveationEyeTrackedStateMETA.nfoveationCenter(address()); } - /** @return a {@link XrVector2f} view of the struct at the specified index of the {@link XrFoveationEyeTrackedStateMETA#foveationCenter} field. */ - public XrVector2f foveationCenter(int index) { return XrFoveationEyeTrackedStateMETA.nfoveationCenter(address(), index); } - /** @return the value of the {@link XrFoveationEyeTrackedStateMETA#flags} field. */ - @NativeType("XrFoveationEyeTrackedStateFlagsMETA") - public long flags() { return XrFoveationEyeTrackedStateMETA.nflags(address()); } - - /** Sets the specified value to the {@link XrFoveationEyeTrackedStateMETA#type} field. */ - public XrFoveationEyeTrackedStateMETA.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationEyeTrackedStateMETA.ntype(address(), value); return this; } - /** Sets the {@link METAFoveationEyeTracked#XR_TYPE_FOVEATION_EYE_TRACKED_STATE_META TYPE_FOVEATION_EYE_TRACKED_STATE_META} value to the {@link XrFoveationEyeTrackedStateMETA#type} field. */ - public XrFoveationEyeTrackedStateMETA.Buffer type$Default() { return type(METAFoveationEyeTracked.XR_TYPE_FOVEATION_EYE_TRACKED_STATE_META); } - /** Sets the specified value to the {@link XrFoveationEyeTrackedStateMETA#next} field. */ - public XrFoveationEyeTrackedStateMETA.Buffer next(@NativeType("void *") long value) { XrFoveationEyeTrackedStateMETA.nnext(address(), value); return this; } + + /** @return the value of the {@link XrFoveationEyeTrackedStateMETA#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFoveationEyeTrackedStateMETA.ntype(address()); } + /** @return the value of the {@link XrFoveationEyeTrackedStateMETA#next} field. */ + @NativeType("void *") + public long next() { return XrFoveationEyeTrackedStateMETA.nnext(address()); } + /** @return a {@link XrVector2f}.Buffer view of the {@link XrFoveationEyeTrackedStateMETA#foveationCenter} field. */ + @NativeType("XrVector2f[XR_FOVEATION_CENTER_SIZE_META]") + public XrVector2f.Buffer foveationCenter() { return XrFoveationEyeTrackedStateMETA.nfoveationCenter(address()); } + /** @return a {@link XrVector2f} view of the struct at the specified index of the {@link XrFoveationEyeTrackedStateMETA#foveationCenter} field. */ + public XrVector2f foveationCenter(int index) { return XrFoveationEyeTrackedStateMETA.nfoveationCenter(address(), index); } + /** @return the value of the {@link XrFoveationEyeTrackedStateMETA#flags} field. */ + @NativeType("XrFoveationEyeTrackedStateFlagsMETA") + public long flags() { return XrFoveationEyeTrackedStateMETA.nflags(address()); } + + /** Sets the specified value to the {@link XrFoveationEyeTrackedStateMETA#type} field. */ + public XrFoveationEyeTrackedStateMETA.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationEyeTrackedStateMETA.ntype(address(), value); return this; } + /** Sets the {@link METAFoveationEyeTracked#XR_TYPE_FOVEATION_EYE_TRACKED_STATE_META TYPE_FOVEATION_EYE_TRACKED_STATE_META} value to the {@link XrFoveationEyeTrackedStateMETA#type} field. */ + public XrFoveationEyeTrackedStateMETA.Buffer type$Default() { return type(METAFoveationEyeTracked.XR_TYPE_FOVEATION_EYE_TRACKED_STATE_META); } + /** Sets the specified value to the {@link XrFoveationEyeTrackedStateMETA#next} field. */ + public XrFoveationEyeTrackedStateMETA.Buffer next(@NativeType("void *") long value) { XrFoveationEyeTrackedStateMETA.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationLevelProfileCreateInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationLevelProfileCreateInfoFB.java index a0173f076e..fb12b2482f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationLevelProfileCreateInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationLevelProfileCreateInfoFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The information to create a foveation profile for foveation levels. * @@ -23,7 +23,7 @@ *
                                  *
                                • The {@link FBFoveationConfiguration XR_FB_foveation_configuration} extension must be enabled prior to using {@link XrFoveationLevelProfileCreateInfoFB}
                                • *
                                • {@code type} must be {@link FBFoveationConfiguration#XR_TYPE_FOVEATION_LEVEL_PROFILE_CREATE_INFO_FB TYPE_FOVEATION_LEVEL_PROFILE_CREATE_INFO_FB}
                                • - *
                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrFoveationEyeTrackedProfileCreateInfoMETA}
                                • + *
                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrFoveationEyeTrackedProfileCreateInfoMETA}
                                • *
                                • {@code level} must be a valid {@code XrFoveationLevelFB} value
                                • *
                                • {@code dynamic} must be a valid {@code XrFoveationDynamicFB} value
                                • *
                                @@ -38,8 +38,8 @@ * float {@link #verticalOffset}; * XrFoveationDynamicFB {@link #dynamic}; * } - */ -public class XrFoveationLevelProfileCreateInfoFB extends Struct implements NativeResource { + */ +public class XrFoveationLevelProfileCreateInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -49,30 +49,30 @@ public class XrFoveationLevelProfileCreateInfoFB extends Struct implements NativeResource { @@ -327,36 +327,36 @@ protected Buffer self() { protected XrFoveationLevelProfileCreateInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFoveationLevelProfileCreateInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFoveationLevelProfileCreateInfoFB.ntype(address()); } - /** @return the value of the {@link XrFoveationLevelProfileCreateInfoFB#next} field. */ - @NativeType("void *") - public long next() { return XrFoveationLevelProfileCreateInfoFB.nnext(address()); } - /** @return the value of the {@link XrFoveationLevelProfileCreateInfoFB#level} field. */ - @NativeType("XrFoveationLevelFB") - public int level() { return XrFoveationLevelProfileCreateInfoFB.nlevel(address()); } - /** @return the value of the {@link XrFoveationLevelProfileCreateInfoFB#verticalOffset} field. */ - public float verticalOffset() { return XrFoveationLevelProfileCreateInfoFB.nverticalOffset(address()); } - /** @return the value of the {@link XrFoveationLevelProfileCreateInfoFB#dynamic} field. */ - @NativeType("XrFoveationDynamicFB") - public int dynamic() { return XrFoveationLevelProfileCreateInfoFB.ndynamic(address()); } - - /** Sets the specified value to the {@link XrFoveationLevelProfileCreateInfoFB#type} field. */ - public XrFoveationLevelProfileCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationLevelProfileCreateInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBFoveationConfiguration#XR_TYPE_FOVEATION_LEVEL_PROFILE_CREATE_INFO_FB TYPE_FOVEATION_LEVEL_PROFILE_CREATE_INFO_FB} value to the {@link XrFoveationLevelProfileCreateInfoFB#type} field. */ - public XrFoveationLevelProfileCreateInfoFB.Buffer type$Default() { return type(FBFoveationConfiguration.XR_TYPE_FOVEATION_LEVEL_PROFILE_CREATE_INFO_FB); } - /** Sets the specified value to the {@link XrFoveationLevelProfileCreateInfoFB#next} field. */ - public XrFoveationLevelProfileCreateInfoFB.Buffer next(@NativeType("void *") long value) { XrFoveationLevelProfileCreateInfoFB.nnext(address(), value); return this; } - /** Prepends the specified {@link XrFoveationEyeTrackedProfileCreateInfoMETA} value to the {@code next} chain. */ - public XrFoveationLevelProfileCreateInfoFB.Buffer next(XrFoveationEyeTrackedProfileCreateInfoMETA value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrFoveationLevelProfileCreateInfoFB#level} field. */ - public XrFoveationLevelProfileCreateInfoFB.Buffer level(@NativeType("XrFoveationLevelFB") int value) { XrFoveationLevelProfileCreateInfoFB.nlevel(address(), value); return this; } - /** Sets the specified value to the {@link XrFoveationLevelProfileCreateInfoFB#verticalOffset} field. */ - public XrFoveationLevelProfileCreateInfoFB.Buffer verticalOffset(float value) { XrFoveationLevelProfileCreateInfoFB.nverticalOffset(address(), value); return this; } - /** Sets the specified value to the {@link XrFoveationLevelProfileCreateInfoFB#dynamic} field. */ - public XrFoveationLevelProfileCreateInfoFB.Buffer dynamic(@NativeType("XrFoveationDynamicFB") int value) { XrFoveationLevelProfileCreateInfoFB.ndynamic(address(), value); return this; } + + /** @return the value of the {@link XrFoveationLevelProfileCreateInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFoveationLevelProfileCreateInfoFB.ntype(address()); } + /** @return the value of the {@link XrFoveationLevelProfileCreateInfoFB#next} field. */ + @NativeType("void *") + public long next() { return XrFoveationLevelProfileCreateInfoFB.nnext(address()); } + /** @return the value of the {@link XrFoveationLevelProfileCreateInfoFB#level} field. */ + @NativeType("XrFoveationLevelFB") + public int level() { return XrFoveationLevelProfileCreateInfoFB.nlevel(address()); } + /** @return the value of the {@link XrFoveationLevelProfileCreateInfoFB#verticalOffset} field. */ + public float verticalOffset() { return XrFoveationLevelProfileCreateInfoFB.nverticalOffset(address()); } + /** @return the value of the {@link XrFoveationLevelProfileCreateInfoFB#dynamic} field. */ + @NativeType("XrFoveationDynamicFB") + public int dynamic() { return XrFoveationLevelProfileCreateInfoFB.ndynamic(address()); } + + /** Sets the specified value to the {@link XrFoveationLevelProfileCreateInfoFB#type} field. */ + public XrFoveationLevelProfileCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationLevelProfileCreateInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBFoveationConfiguration#XR_TYPE_FOVEATION_LEVEL_PROFILE_CREATE_INFO_FB TYPE_FOVEATION_LEVEL_PROFILE_CREATE_INFO_FB} value to the {@link XrFoveationLevelProfileCreateInfoFB#type} field. */ + public XrFoveationLevelProfileCreateInfoFB.Buffer type$Default() { return type(FBFoveationConfiguration.XR_TYPE_FOVEATION_LEVEL_PROFILE_CREATE_INFO_FB); } + /** Sets the specified value to the {@link XrFoveationLevelProfileCreateInfoFB#next} field. */ + public XrFoveationLevelProfileCreateInfoFB.Buffer next(@NativeType("void *") long value) { XrFoveationLevelProfileCreateInfoFB.nnext(address(), value); return this; } + /** Prepends the specified {@link XrFoveationEyeTrackedProfileCreateInfoMETA} value to the {@code next} chain. */ + public XrFoveationLevelProfileCreateInfoFB.Buffer next(XrFoveationEyeTrackedProfileCreateInfoMETA value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrFoveationLevelProfileCreateInfoFB#level} field. */ + public XrFoveationLevelProfileCreateInfoFB.Buffer level(@NativeType("XrFoveationLevelFB") int value) { XrFoveationLevelProfileCreateInfoFB.nlevel(address(), value); return this; } + /** Sets the specified value to the {@link XrFoveationLevelProfileCreateInfoFB#verticalOffset} field. */ + public XrFoveationLevelProfileCreateInfoFB.Buffer verticalOffset(float value) { XrFoveationLevelProfileCreateInfoFB.nverticalOffset(address(), value); return this; } + /** Sets the specified value to the {@link XrFoveationLevelProfileCreateInfoFB#dynamic} field. */ + public XrFoveationLevelProfileCreateInfoFB.Buffer dynamic(@NativeType("XrFoveationDynamicFB") int value) { XrFoveationLevelProfileCreateInfoFB.ndynamic(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationProfileCreateInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationProfileCreateInfoFB.java index 6f27b7d667..aaf522bd4a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationProfileCreateInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationProfileCreateInfoFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The information to create a foveation profile. * @@ -23,7 +23,7 @@ *
                                  *
                                • The {@link FBFoveation XR_FB_foveation} extension must be enabled prior to using {@link XrFoveationProfileCreateInfoFB}
                                • *
                                • {@code type} must be {@link FBFoveation#XR_TYPE_FOVEATION_PROFILE_CREATE_INFO_FB TYPE_FOVEATION_PROFILE_CREATE_INFO_FB}
                                • - *
                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrFoveationLevelProfileCreateInfoFB}
                                • + *
                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrFoveationLevelProfileCreateInfoFB}
                                • *
                                * *
                                See Also
                                @@ -37,8 +37,8 @@ * XrStructureType {@link #type}; * void * {@link #next}; * } - */ -public class XrFoveationProfileCreateInfoFB extends Struct implements NativeResource { + */ +public class XrFoveationProfileCreateInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,21 +48,21 @@ public class XrFoveationProfileCreateInfoFB extends Struct implements NativeResource { @@ -285,22 +285,22 @@ protected Buffer self() { protected XrFoveationProfileCreateInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFoveationProfileCreateInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFoveationProfileCreateInfoFB.ntype(address()); } - /** @return the value of the {@link XrFoveationProfileCreateInfoFB#next} field. */ - @NativeType("void *") - public long next() { return XrFoveationProfileCreateInfoFB.nnext(address()); } - - /** Sets the specified value to the {@link XrFoveationProfileCreateInfoFB#type} field. */ - public XrFoveationProfileCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationProfileCreateInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBFoveation#XR_TYPE_FOVEATION_PROFILE_CREATE_INFO_FB TYPE_FOVEATION_PROFILE_CREATE_INFO_FB} value to the {@link XrFoveationProfileCreateInfoFB#type} field. */ - public XrFoveationProfileCreateInfoFB.Buffer type$Default() { return type(FBFoveation.XR_TYPE_FOVEATION_PROFILE_CREATE_INFO_FB); } - /** Sets the specified value to the {@link XrFoveationProfileCreateInfoFB#next} field. */ - public XrFoveationProfileCreateInfoFB.Buffer next(@NativeType("void *") long value) { XrFoveationProfileCreateInfoFB.nnext(address(), value); return this; } - /** Prepends the specified {@link XrFoveationLevelProfileCreateInfoFB} value to the {@code next} chain. */ - public XrFoveationProfileCreateInfoFB.Buffer next(XrFoveationLevelProfileCreateInfoFB value) { return this.next(value.next(this.next()).address()); } + + /** @return the value of the {@link XrFoveationProfileCreateInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFoveationProfileCreateInfoFB.ntype(address()); } + /** @return the value of the {@link XrFoveationProfileCreateInfoFB#next} field. */ + @NativeType("void *") + public long next() { return XrFoveationProfileCreateInfoFB.nnext(address()); } + + /** Sets the specified value to the {@link XrFoveationProfileCreateInfoFB#type} field. */ + public XrFoveationProfileCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrFoveationProfileCreateInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBFoveation#XR_TYPE_FOVEATION_PROFILE_CREATE_INFO_FB TYPE_FOVEATION_PROFILE_CREATE_INFO_FB} value to the {@link XrFoveationProfileCreateInfoFB#type} field. */ + public XrFoveationProfileCreateInfoFB.Buffer type$Default() { return type(FBFoveation.XR_TYPE_FOVEATION_PROFILE_CREATE_INFO_FB); } + /** Sets the specified value to the {@link XrFoveationProfileCreateInfoFB#next} field. */ + public XrFoveationProfileCreateInfoFB.Buffer next(@NativeType("void *") long value) { XrFoveationProfileCreateInfoFB.nnext(address(), value); return this; } + /** Prepends the specified {@link XrFoveationLevelProfileCreateInfoFB} value to the {@code next} chain. */ + public XrFoveationProfileCreateInfoFB.Buffer next(XrFoveationLevelProfileCreateInfoFB value) { return this.next(value.next(this.next()).address()); } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationProfileFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationProfileFB.java index 97cf8064e9..7014ada328 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationProfileFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFoveationProfileFB.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrFoveationProfileFB} handle. */ + +/** Wraps an {@code XrFoveationProfileFB} handle. */ public class XrFoveationProfileFB extends DispatchableHandle { private final XrSession session; @@ -26,4 +26,4 @@ public XrSession getSession() { return session; } -} +} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFovf.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFovf.java index 6776010cb7..f521e9c3e7 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFovf.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFovf.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Field of view. * @@ -39,8 +39,8 @@ * float {@link #angleUp}; * float {@link #angleDown}; * } - */ -public class XrFovf extends Struct implements NativeResource { + */ +public class XrFovf extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,27 +50,27 @@ public class XrFovf extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - ANGLELEFT, - ANGLERIGHT, - ANGLEUP, - ANGLEDOWN; + ANGLELEFT, + ANGLERIGHT, + ANGLEUP, + ANGLEDOWN; static { - Layout layout = __struct( - __member(4), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(4), + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - ANGLELEFT = layout.offsetof(0); - ANGLERIGHT = layout.offsetof(1); - ANGLEUP = layout.offsetof(2); - ANGLEDOWN = layout.offsetof(3); - } + ANGLELEFT = layout.offsetof(0); + ANGLERIGHT = layout.offsetof(1); + ANGLEUP = layout.offsetof(2); + ANGLEDOWN = layout.offsetof(3); + } protected XrFovf(long address, @Nullable ByteBuffer container) { super(address, container); @@ -93,36 +93,36 @@ public XrFovf(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the angle of the left side of the field of view. For a symmetric field of view this value is negative. */ - public float angleLeft() { return nangleLeft(address()); } - /** the angle of the right side of the field of view. */ - public float angleRight() { return nangleRight(address()); } - /** the angle of the top part of the field of view. */ - public float angleUp() { return nangleUp(address()); } - /** the angle of the bottom part of the field of view. For a symmetric field of view this value is negative. */ - public float angleDown() { return nangleDown(address()); } - - /** Sets the specified value to the {@link #angleLeft} field. */ - public XrFovf angleLeft(float value) { nangleLeft(address(), value); return this; } - /** Sets the specified value to the {@link #angleRight} field. */ - public XrFovf angleRight(float value) { nangleRight(address(), value); return this; } - /** Sets the specified value to the {@link #angleUp} field. */ - public XrFovf angleUp(float value) { nangleUp(address(), value); return this; } - /** Sets the specified value to the {@link #angleDown} field. */ - public XrFovf angleDown(float value) { nangleDown(address(), value); return this; } + + /** the angle of the left side of the field of view. For a symmetric field of view this value is negative. */ + public float angleLeft() { return nangleLeft(address()); } + /** the angle of the right side of the field of view. */ + public float angleRight() { return nangleRight(address()); } + /** the angle of the top part of the field of view. */ + public float angleUp() { return nangleUp(address()); } + /** the angle of the bottom part of the field of view. For a symmetric field of view this value is negative. */ + public float angleDown() { return nangleDown(address()); } + + /** Sets the specified value to the {@link #angleLeft} field. */ + public XrFovf angleLeft(float value) { nangleLeft(address(), value); return this; } + /** Sets the specified value to the {@link #angleRight} field. */ + public XrFovf angleRight(float value) { nangleRight(address(), value); return this; } + /** Sets the specified value to the {@link #angleUp} field. */ + public XrFovf angleUp(float value) { nangleUp(address(), value); return this; } + /** Sets the specified value to the {@link #angleDown} field. */ + public XrFovf angleDown(float value) { nangleDown(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrFovf set( - float angleLeft, - float angleRight, - float angleUp, + float angleLeft, + float angleRight, + float angleUp, float angleDown - ) { - angleLeft(angleLeft); - angleRight(angleRight); - angleUp(angleUp); - angleDown(angleDown); + ) { + angleLeft(angleLeft); + angleRight(angleRight); + angleUp(angleUp); + angleDown(angleDown); return this; } @@ -251,26 +251,26 @@ public static XrFovf.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #angleLeft}. */ - public static float nangleLeft(long struct) { return UNSAFE.getFloat(null, struct + XrFovf.ANGLELEFT); } - /** Unsafe version of {@link #angleRight}. */ - public static float nangleRight(long struct) { return UNSAFE.getFloat(null, struct + XrFovf.ANGLERIGHT); } - /** Unsafe version of {@link #angleUp}. */ - public static float nangleUp(long struct) { return UNSAFE.getFloat(null, struct + XrFovf.ANGLEUP); } - /** Unsafe version of {@link #angleDown}. */ - public static float nangleDown(long struct) { return UNSAFE.getFloat(null, struct + XrFovf.ANGLEDOWN); } - - /** Unsafe version of {@link #angleLeft(float) angleLeft}. */ - public static void nangleLeft(long struct, float value) { UNSAFE.putFloat(null, struct + XrFovf.ANGLELEFT, value); } - /** Unsafe version of {@link #angleRight(float) angleRight}. */ - public static void nangleRight(long struct, float value) { UNSAFE.putFloat(null, struct + XrFovf.ANGLERIGHT, value); } - /** Unsafe version of {@link #angleUp(float) angleUp}. */ - public static void nangleUp(long struct, float value) { UNSAFE.putFloat(null, struct + XrFovf.ANGLEUP, value); } - /** Unsafe version of {@link #angleDown(float) angleDown}. */ - public static void nangleDown(long struct, float value) { UNSAFE.putFloat(null, struct + XrFovf.ANGLEDOWN, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #angleLeft}. */ + public static float nangleLeft(long struct) { return UNSAFE.getFloat(null, struct + XrFovf.ANGLELEFT); } + /** Unsafe version of {@link #angleRight}. */ + public static float nangleRight(long struct) { return UNSAFE.getFloat(null, struct + XrFovf.ANGLERIGHT); } + /** Unsafe version of {@link #angleUp}. */ + public static float nangleUp(long struct) { return UNSAFE.getFloat(null, struct + XrFovf.ANGLEUP); } + /** Unsafe version of {@link #angleDown}. */ + public static float nangleDown(long struct) { return UNSAFE.getFloat(null, struct + XrFovf.ANGLEDOWN); } + + /** Unsafe version of {@link #angleLeft(float) angleLeft}. */ + public static void nangleLeft(long struct, float value) { UNSAFE.putFloat(null, struct + XrFovf.ANGLELEFT, value); } + /** Unsafe version of {@link #angleRight(float) angleRight}. */ + public static void nangleRight(long struct, float value) { UNSAFE.putFloat(null, struct + XrFovf.ANGLERIGHT, value); } + /** Unsafe version of {@link #angleUp(float) angleUp}. */ + public static void nangleUp(long struct, float value) { UNSAFE.putFloat(null, struct + XrFovf.ANGLEUP, value); } + /** Unsafe version of {@link #angleDown(float) angleDown}. */ + public static void nangleDown(long struct, float value) { UNSAFE.putFloat(null, struct + XrFovf.ANGLEDOWN, value); } + + // ----------------------------------- /** An array of {@link XrFovf} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -307,24 +307,24 @@ protected Buffer self() { protected XrFovf getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFovf#angleLeft} field. */ - public float angleLeft() { return XrFovf.nangleLeft(address()); } - /** @return the value of the {@link XrFovf#angleRight} field. */ - public float angleRight() { return XrFovf.nangleRight(address()); } - /** @return the value of the {@link XrFovf#angleUp} field. */ - public float angleUp() { return XrFovf.nangleUp(address()); } - /** @return the value of the {@link XrFovf#angleDown} field. */ - public float angleDown() { return XrFovf.nangleDown(address()); } - - /** Sets the specified value to the {@link XrFovf#angleLeft} field. */ - public XrFovf.Buffer angleLeft(float value) { XrFovf.nangleLeft(address(), value); return this; } - /** Sets the specified value to the {@link XrFovf#angleRight} field. */ - public XrFovf.Buffer angleRight(float value) { XrFovf.nangleRight(address(), value); return this; } - /** Sets the specified value to the {@link XrFovf#angleUp} field. */ - public XrFovf.Buffer angleUp(float value) { XrFovf.nangleUp(address(), value); return this; } - /** Sets the specified value to the {@link XrFovf#angleDown} field. */ - public XrFovf.Buffer angleDown(float value) { XrFovf.nangleDown(address(), value); return this; } + + /** @return the value of the {@link XrFovf#angleLeft} field. */ + public float angleLeft() { return XrFovf.nangleLeft(address()); } + /** @return the value of the {@link XrFovf#angleRight} field. */ + public float angleRight() { return XrFovf.nangleRight(address()); } + /** @return the value of the {@link XrFovf#angleUp} field. */ + public float angleUp() { return XrFovf.nangleUp(address()); } + /** @return the value of the {@link XrFovf#angleDown} field. */ + public float angleDown() { return XrFovf.nangleDown(address()); } + + /** Sets the specified value to the {@link XrFovf#angleLeft} field. */ + public XrFovf.Buffer angleLeft(float value) { XrFovf.nangleLeft(address(), value); return this; } + /** Sets the specified value to the {@link XrFovf#angleRight} field. */ + public XrFovf.Buffer angleRight(float value) { XrFovf.nangleRight(address(), value); return this; } + /** Sets the specified value to the {@link XrFovf#angleUp} field. */ + public XrFovf.Buffer angleUp(float value) { XrFovf.nangleUp(address(), value); return this; } + /** Sets the specified value to the {@link XrFovf#angleDown} field. */ + public XrFovf.Buffer angleDown(float value) { XrFovf.nangleDown(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameBeginInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameBeginInfo.java index b5ef6d0a2b..7b2d103f57 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameBeginInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameBeginInfo.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Begin frame information. * @@ -26,7 +26,7 @@ * * * *
                                See Also
                                @@ -40,8 +40,8 @@ * XrStructureType {@link #type}; * void const * {@link #next}; * } - */ -public class XrFrameBeginInfo extends Struct implements NativeResource { + */ +public class XrFrameBeginInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,21 +51,21 @@ public class XrFrameBeginInfo extends Struct implements Native /** The struct member offsets. */ public static final int - TYPE, - NEXT; + TYPE, + NEXT; static { - Layout layout = __struct( - __member(4), + Layout layout = __struct( + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + } protected XrFrameBeginInfo(long address, @Nullable ByteBuffer container) { super(address, container); @@ -88,28 +88,28 @@ public XrFrameBeginInfo(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrFrameBeginInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_FRAME_BEGIN_INFO TYPE_FRAME_BEGIN_INFO} value to the {@link #type} field. */ - public XrFrameBeginInfo type$Default() { return type(XR10.XR_TYPE_FRAME_BEGIN_INFO); } - /** Sets the specified value to the {@link #next} field. */ - public XrFrameBeginInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrFrameBeginInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_FRAME_BEGIN_INFO TYPE_FRAME_BEGIN_INFO} value to the {@link #type} field. */ + public XrFrameBeginInfo type$Default() { return type(XR10.XR_TYPE_FRAME_BEGIN_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrFrameBeginInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrFrameBeginInfo set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -238,18 +238,18 @@ public static XrFrameBeginInfo.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFrameBeginInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrFrameBeginInfo.NEXT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameBeginInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrFrameBeginInfo.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFrameBeginInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrFrameBeginInfo.NEXT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameBeginInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrFrameBeginInfo.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrFrameBeginInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -286,20 +286,20 @@ protected Buffer self() { protected XrFrameBeginInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFrameBeginInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFrameBeginInfo.ntype(address()); } - /** @return the value of the {@link XrFrameBeginInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrFrameBeginInfo.nnext(address()); } - - /** Sets the specified value to the {@link XrFrameBeginInfo#type} field. */ - public XrFrameBeginInfo.Buffer type(@NativeType("XrStructureType") int value) { XrFrameBeginInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_FRAME_BEGIN_INFO TYPE_FRAME_BEGIN_INFO} value to the {@link XrFrameBeginInfo#type} field. */ - public XrFrameBeginInfo.Buffer type$Default() { return type(XR10.XR_TYPE_FRAME_BEGIN_INFO); } - /** Sets the specified value to the {@link XrFrameBeginInfo#next} field. */ - public XrFrameBeginInfo.Buffer next(@NativeType("void const *") long value) { XrFrameBeginInfo.nnext(address(), value); return this; } + + /** @return the value of the {@link XrFrameBeginInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFrameBeginInfo.ntype(address()); } + /** @return the value of the {@link XrFrameBeginInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrFrameBeginInfo.nnext(address()); } + + /** Sets the specified value to the {@link XrFrameBeginInfo#type} field. */ + public XrFrameBeginInfo.Buffer type(@NativeType("XrStructureType") int value) { XrFrameBeginInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_FRAME_BEGIN_INFO TYPE_FRAME_BEGIN_INFO} value to the {@link XrFrameBeginInfo#type} field. */ + public XrFrameBeginInfo.Buffer type$Default() { return type(XR10.XR_TYPE_FRAME_BEGIN_INFO); } + /** Sets the specified value to the {@link XrFrameBeginInfo#next} field. */ + public XrFrameBeginInfo.Buffer next(@NativeType("void const *") long value) { XrFrameBeginInfo.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameEndInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameEndInfo.java index f8ec666035..b4b564e6ec 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameEndInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameEndInfo.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * End frame information. * @@ -22,7 +22,7 @@ * *
                                  *
                                • {@code type} must be {@link XR10#XR_TYPE_FRAME_END_INFO TYPE_FRAME_END_INFO}
                                • - *
                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrFrameEndInfoML}, {@link XrGlobalDimmerFrameEndInfoML}, {@link XrLocalDimmingFrameEndInfoMETA}, {@link XrSecondaryViewConfigurationFrameEndInfoMSFT}
                                • + *
                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrFrameEndInfoML}, {@link XrGlobalDimmerFrameEndInfoML}, {@link XrLocalDimmingFrameEndInfoMETA}, {@link XrSecondaryViewConfigurationFrameEndInfoMSFT}
                                • *
                                • {@code environmentBlendMode} must be a valid {@code XrEnvironmentBlendMode} value
                                • *
                                • If {@code layerCount} is not 0, {@code layers} must be a pointer to an array of {@code layerCount} valid {@link XrCompositionLayerBaseHeader}-based structures. See also: {@link XrCompositionLayerCubeKHR}, {@link XrCompositionLayerCylinderKHR}, {@link XrCompositionLayerEquirect2KHR}, {@link XrCompositionLayerEquirectKHR}, {@link XrCompositionLayerPassthroughHTC}, {@link XrCompositionLayerProjection}, {@link XrCompositionLayerQuad}
                                • *
                                @@ -42,8 +42,8 @@ * uint32_t {@link #layerCount}; * {@link XrCompositionLayerBaseHeader XrCompositionLayerBaseHeader} const * const * {@link #layers}; * } - */ -public class XrFrameEndInfo extends Struct implements NativeResource { + */ +public class XrFrameEndInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,33 +53,33 @@ public class XrFrameEndInfo extends Struct implements NativeReso /** The struct member offsets. */ public static final int - TYPE, - NEXT, - DISPLAYTIME, - ENVIRONMENTBLENDMODE, - LAYERCOUNT, - LAYERS; + TYPE, + NEXT, + DISPLAYTIME, + ENVIRONMENTBLENDMODE, + LAYERCOUNT, + LAYERS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), + __member(4), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - DISPLAYTIME = layout.offsetof(2); - ENVIRONMENTBLENDMODE = layout.offsetof(3); - LAYERCOUNT = layout.offsetof(4); - LAYERS = layout.offsetof(5); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + DISPLAYTIME = layout.offsetof(2); + ENVIRONMENTBLENDMODE = layout.offsetof(3); + LAYERCOUNT = layout.offsetof(4); + LAYERS = layout.offsetof(5); + } protected XrFrameEndInfo(long address, @Nullable ByteBuffer container) { super(address, container); @@ -102,65 +102,65 @@ public XrFrameEndInfo(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** the {@code XrTime} at which this frame should be displayed. */ - @NativeType("XrTime") - public long displayTime() { return ndisplayTime(address()); } - /** the {@code XrEnvironmentBlendMode} value representing the desired environment blend mode for this frame. */ - @NativeType("XrEnvironmentBlendMode") - public int environmentBlendMode() { return nenvironmentBlendMode(address()); } - /** the number of composition layers in this frame. The maximum supported layer count is identified by {@link XrSystemGraphicsProperties}::maxLayerCount. If layerCount is greater than the maximum supported layer count then {@link XR10#XR_ERROR_LAYER_LIMIT_EXCEEDED ERROR_LAYER_LIMIT_EXCEEDED} must be returned. */ - @NativeType("uint32_t") - public int layerCount() { return nlayerCount(address()); } - /** a pointer to an array of {@link XrCompositionLayerBaseHeader} pointers. */ - @Nullable - @NativeType("XrCompositionLayerBaseHeader const * const *") - public PointerBuffer layers() { return nlayers(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrFrameEndInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_FRAME_END_INFO TYPE_FRAME_END_INFO} value to the {@link #type} field. */ - public XrFrameEndInfo type$Default() { return type(XR10.XR_TYPE_FRAME_END_INFO); } - /** Sets the specified value to the {@link #next} field. */ - public XrFrameEndInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrFrameEndInfoML} value to the {@code next} chain. */ - public XrFrameEndInfo next(XrFrameEndInfoML value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGlobalDimmerFrameEndInfoML} value to the {@code next} chain. */ - public XrFrameEndInfo next(XrGlobalDimmerFrameEndInfoML value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrLocalDimmingFrameEndInfoMETA} value to the {@code next} chain. */ - public XrFrameEndInfo next(XrLocalDimmingFrameEndInfoMETA value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSecondaryViewConfigurationFrameEndInfoMSFT} value to the {@code next} chain. */ - public XrFrameEndInfo next(XrSecondaryViewConfigurationFrameEndInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #displayTime} field. */ - public XrFrameEndInfo displayTime(@NativeType("XrTime") long value) { ndisplayTime(address(), value); return this; } - /** Sets the specified value to the {@link #environmentBlendMode} field. */ - public XrFrameEndInfo environmentBlendMode(@NativeType("XrEnvironmentBlendMode") int value) { nenvironmentBlendMode(address(), value); return this; } - /** Sets the specified value to the {@link #layerCount} field. */ - public XrFrameEndInfo layerCount(@NativeType("uint32_t") int value) { nlayerCount(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@link #layers} field. */ - public XrFrameEndInfo layers(@Nullable @NativeType("XrCompositionLayerBaseHeader const * const *") PointerBuffer value) { nlayers(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the {@code XrTime} at which this frame should be displayed. */ + @NativeType("XrTime") + public long displayTime() { return ndisplayTime(address()); } + /** the {@code XrEnvironmentBlendMode} value representing the desired environment blend mode for this frame. */ + @NativeType("XrEnvironmentBlendMode") + public int environmentBlendMode() { return nenvironmentBlendMode(address()); } + /** the number of composition layers in this frame. The maximum supported layer count is identified by {@link XrSystemGraphicsProperties}::maxLayerCount. If layerCount is greater than the maximum supported layer count then {@link XR10#XR_ERROR_LAYER_LIMIT_EXCEEDED ERROR_LAYER_LIMIT_EXCEEDED} must be returned. */ + @NativeType("uint32_t") + public int layerCount() { return nlayerCount(address()); } + /** a pointer to an array of {@link XrCompositionLayerBaseHeader} pointers. */ + @Nullable + @NativeType("XrCompositionLayerBaseHeader const * const *") + public PointerBuffer layers() { return nlayers(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrFrameEndInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_FRAME_END_INFO TYPE_FRAME_END_INFO} value to the {@link #type} field. */ + public XrFrameEndInfo type$Default() { return type(XR10.XR_TYPE_FRAME_END_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrFrameEndInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrFrameEndInfoML} value to the {@code next} chain. */ + public XrFrameEndInfo next(XrFrameEndInfoML value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGlobalDimmerFrameEndInfoML} value to the {@code next} chain. */ + public XrFrameEndInfo next(XrGlobalDimmerFrameEndInfoML value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrLocalDimmingFrameEndInfoMETA} value to the {@code next} chain. */ + public XrFrameEndInfo next(XrLocalDimmingFrameEndInfoMETA value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSecondaryViewConfigurationFrameEndInfoMSFT} value to the {@code next} chain. */ + public XrFrameEndInfo next(XrSecondaryViewConfigurationFrameEndInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #displayTime} field. */ + public XrFrameEndInfo displayTime(@NativeType("XrTime") long value) { ndisplayTime(address(), value); return this; } + /** Sets the specified value to the {@link #environmentBlendMode} field. */ + public XrFrameEndInfo environmentBlendMode(@NativeType("XrEnvironmentBlendMode") int value) { nenvironmentBlendMode(address(), value); return this; } + /** Sets the specified value to the {@link #layerCount} field. */ + public XrFrameEndInfo layerCount(@NativeType("uint32_t") int value) { nlayerCount(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@link #layers} field. */ + public XrFrameEndInfo layers(@Nullable @NativeType("XrCompositionLayerBaseHeader const * const *") PointerBuffer value) { nlayers(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrFrameEndInfo set( - int type, - long next, - long displayTime, - int environmentBlendMode, - int layerCount, + int type, + long next, + long displayTime, + int environmentBlendMode, + int layerCount, @Nullable PointerBuffer layers - ) { - type(type); - next(next); - displayTime(displayTime); - environmentBlendMode(environmentBlendMode); - layerCount(layerCount); - layers(layers); + ) { + type(type); + next(next); + displayTime(displayTime); + environmentBlendMode(environmentBlendMode); + layerCount(layerCount); + layers(layers); return this; } @@ -289,34 +289,34 @@ public static XrFrameEndInfo.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFrameEndInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrFrameEndInfo.NEXT); } - /** Unsafe version of {@link #displayTime}. */ - public static long ndisplayTime(long struct) { return UNSAFE.getLong(null, struct + XrFrameEndInfo.DISPLAYTIME); } - /** Unsafe version of {@link #environmentBlendMode}. */ - public static int nenvironmentBlendMode(long struct) { return UNSAFE.getInt(null, struct + XrFrameEndInfo.ENVIRONMENTBLENDMODE); } - /** Unsafe version of {@link #layerCount}. */ - public static int nlayerCount(long struct) { return UNSAFE.getInt(null, struct + XrFrameEndInfo.LAYERCOUNT); } - /** Unsafe version of {@link #layers() layers}. */ - @Nullable public static PointerBuffer nlayers(long struct) { return memPointerBufferSafe(memGetAddress(struct + XrFrameEndInfo.LAYERS), nlayerCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameEndInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrFrameEndInfo.NEXT, value); } - /** Unsafe version of {@link #displayTime(long) displayTime}. */ - public static void ndisplayTime(long struct, long value) { UNSAFE.putLong(null, struct + XrFrameEndInfo.DISPLAYTIME, value); } - /** Unsafe version of {@link #environmentBlendMode(int) environmentBlendMode}. */ - public static void nenvironmentBlendMode(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameEndInfo.ENVIRONMENTBLENDMODE, value); } - /** Sets the specified value to the {@code layerCount} field of the specified {@code struct}. */ - public static void nlayerCount(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameEndInfo.LAYERCOUNT, value); } - /** Unsafe version of {@link #layers(PointerBuffer) layers}. */ - public static void nlayers(long struct, @Nullable PointerBuffer value) { memPutAddress(struct + XrFrameEndInfo.LAYERS, memAddressSafe(value)); if (value != null) { nlayerCount(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFrameEndInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrFrameEndInfo.NEXT); } + /** Unsafe version of {@link #displayTime}. */ + public static long ndisplayTime(long struct) { return UNSAFE.getLong(null, struct + XrFrameEndInfo.DISPLAYTIME); } + /** Unsafe version of {@link #environmentBlendMode}. */ + public static int nenvironmentBlendMode(long struct) { return UNSAFE.getInt(null, struct + XrFrameEndInfo.ENVIRONMENTBLENDMODE); } + /** Unsafe version of {@link #layerCount}. */ + public static int nlayerCount(long struct) { return UNSAFE.getInt(null, struct + XrFrameEndInfo.LAYERCOUNT); } + /** Unsafe version of {@link #layers() layers}. */ + @Nullable public static PointerBuffer nlayers(long struct) { return memPointerBufferSafe(memGetAddress(struct + XrFrameEndInfo.LAYERS), nlayerCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameEndInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrFrameEndInfo.NEXT, value); } + /** Unsafe version of {@link #displayTime(long) displayTime}. */ + public static void ndisplayTime(long struct, long value) { UNSAFE.putLong(null, struct + XrFrameEndInfo.DISPLAYTIME, value); } + /** Unsafe version of {@link #environmentBlendMode(int) environmentBlendMode}. */ + public static void nenvironmentBlendMode(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameEndInfo.ENVIRONMENTBLENDMODE, value); } + /** Sets the specified value to the {@code layerCount} field of the specified {@code struct}. */ + public static void nlayerCount(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameEndInfo.LAYERCOUNT, value); } + /** Unsafe version of {@link #layers(PointerBuffer) layers}. */ + public static void nlayers(long struct, @Nullable PointerBuffer value) { memPutAddress(struct + XrFrameEndInfo.LAYERS, memAddressSafe(value)); if (value != null) { nlayerCount(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrFrameEndInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -353,49 +353,49 @@ protected Buffer self() { protected XrFrameEndInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFrameEndInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFrameEndInfo.ntype(address()); } - /** @return the value of the {@link XrFrameEndInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrFrameEndInfo.nnext(address()); } - /** @return the value of the {@link XrFrameEndInfo#displayTime} field. */ - @NativeType("XrTime") - public long displayTime() { return XrFrameEndInfo.ndisplayTime(address()); } - /** @return the value of the {@link XrFrameEndInfo#environmentBlendMode} field. */ - @NativeType("XrEnvironmentBlendMode") - public int environmentBlendMode() { return XrFrameEndInfo.nenvironmentBlendMode(address()); } - /** @return the value of the {@link XrFrameEndInfo#layerCount} field. */ - @NativeType("uint32_t") - public int layerCount() { return XrFrameEndInfo.nlayerCount(address()); } - /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrFrameEndInfo#layers} field. */ - @Nullable - @NativeType("XrCompositionLayerBaseHeader const * const *") - public PointerBuffer layers() { return XrFrameEndInfo.nlayers(address()); } - - /** Sets the specified value to the {@link XrFrameEndInfo#type} field. */ - public XrFrameEndInfo.Buffer type(@NativeType("XrStructureType") int value) { XrFrameEndInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_FRAME_END_INFO TYPE_FRAME_END_INFO} value to the {@link XrFrameEndInfo#type} field. */ - public XrFrameEndInfo.Buffer type$Default() { return type(XR10.XR_TYPE_FRAME_END_INFO); } - /** Sets the specified value to the {@link XrFrameEndInfo#next} field. */ - public XrFrameEndInfo.Buffer next(@NativeType("void const *") long value) { XrFrameEndInfo.nnext(address(), value); return this; } - /** Prepends the specified {@link XrFrameEndInfoML} value to the {@code next} chain. */ - public XrFrameEndInfo.Buffer next(XrFrameEndInfoML value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGlobalDimmerFrameEndInfoML} value to the {@code next} chain. */ - public XrFrameEndInfo.Buffer next(XrGlobalDimmerFrameEndInfoML value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrLocalDimmingFrameEndInfoMETA} value to the {@code next} chain. */ - public XrFrameEndInfo.Buffer next(XrLocalDimmingFrameEndInfoMETA value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSecondaryViewConfigurationFrameEndInfoMSFT} value to the {@code next} chain. */ - public XrFrameEndInfo.Buffer next(XrSecondaryViewConfigurationFrameEndInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrFrameEndInfo#displayTime} field. */ - public XrFrameEndInfo.Buffer displayTime(@NativeType("XrTime") long value) { XrFrameEndInfo.ndisplayTime(address(), value); return this; } - /** Sets the specified value to the {@link XrFrameEndInfo#environmentBlendMode} field. */ - public XrFrameEndInfo.Buffer environmentBlendMode(@NativeType("XrEnvironmentBlendMode") int value) { XrFrameEndInfo.nenvironmentBlendMode(address(), value); return this; } - /** Sets the specified value to the {@link XrFrameEndInfo#layerCount} field. */ - public XrFrameEndInfo.Buffer layerCount(@NativeType("uint32_t") int value) { XrFrameEndInfo.nlayerCount(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@link XrFrameEndInfo#layers} field. */ - public XrFrameEndInfo.Buffer layers(@Nullable @NativeType("XrCompositionLayerBaseHeader const * const *") PointerBuffer value) { XrFrameEndInfo.nlayers(address(), value); return this; } + + /** @return the value of the {@link XrFrameEndInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFrameEndInfo.ntype(address()); } + /** @return the value of the {@link XrFrameEndInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrFrameEndInfo.nnext(address()); } + /** @return the value of the {@link XrFrameEndInfo#displayTime} field. */ + @NativeType("XrTime") + public long displayTime() { return XrFrameEndInfo.ndisplayTime(address()); } + /** @return the value of the {@link XrFrameEndInfo#environmentBlendMode} field. */ + @NativeType("XrEnvironmentBlendMode") + public int environmentBlendMode() { return XrFrameEndInfo.nenvironmentBlendMode(address()); } + /** @return the value of the {@link XrFrameEndInfo#layerCount} field. */ + @NativeType("uint32_t") + public int layerCount() { return XrFrameEndInfo.nlayerCount(address()); } + /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrFrameEndInfo#layers} field. */ + @Nullable + @NativeType("XrCompositionLayerBaseHeader const * const *") + public PointerBuffer layers() { return XrFrameEndInfo.nlayers(address()); } + + /** Sets the specified value to the {@link XrFrameEndInfo#type} field. */ + public XrFrameEndInfo.Buffer type(@NativeType("XrStructureType") int value) { XrFrameEndInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_FRAME_END_INFO TYPE_FRAME_END_INFO} value to the {@link XrFrameEndInfo#type} field. */ + public XrFrameEndInfo.Buffer type$Default() { return type(XR10.XR_TYPE_FRAME_END_INFO); } + /** Sets the specified value to the {@link XrFrameEndInfo#next} field. */ + public XrFrameEndInfo.Buffer next(@NativeType("void const *") long value) { XrFrameEndInfo.nnext(address(), value); return this; } + /** Prepends the specified {@link XrFrameEndInfoML} value to the {@code next} chain. */ + public XrFrameEndInfo.Buffer next(XrFrameEndInfoML value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGlobalDimmerFrameEndInfoML} value to the {@code next} chain. */ + public XrFrameEndInfo.Buffer next(XrGlobalDimmerFrameEndInfoML value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrLocalDimmingFrameEndInfoMETA} value to the {@code next} chain. */ + public XrFrameEndInfo.Buffer next(XrLocalDimmingFrameEndInfoMETA value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSecondaryViewConfigurationFrameEndInfoMSFT} value to the {@code next} chain. */ + public XrFrameEndInfo.Buffer next(XrSecondaryViewConfigurationFrameEndInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrFrameEndInfo#displayTime} field. */ + public XrFrameEndInfo.Buffer displayTime(@NativeType("XrTime") long value) { XrFrameEndInfo.ndisplayTime(address(), value); return this; } + /** Sets the specified value to the {@link XrFrameEndInfo#environmentBlendMode} field. */ + public XrFrameEndInfo.Buffer environmentBlendMode(@NativeType("XrEnvironmentBlendMode") int value) { XrFrameEndInfo.nenvironmentBlendMode(address(), value); return this; } + /** Sets the specified value to the {@link XrFrameEndInfo#layerCount} field. */ + public XrFrameEndInfo.Buffer layerCount(@NativeType("uint32_t") int value) { XrFrameEndInfo.nlayerCount(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@link XrFrameEndInfo#layers} field. */ + public XrFrameEndInfo.Buffer layers(@Nullable @NativeType("XrCompositionLayerBaseHeader const * const *") PointerBuffer value) { XrFrameEndInfo.nlayers(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameEndInfoML.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameEndInfoML.java index 59dba93478..281f834f08 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameEndInfoML.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameEndInfoML.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Per frame configuration parameters. * @@ -23,7 +23,7 @@ *
                                  *
                                • The {@link MLFrameEndInfo XR_ML_frame_end_info} extension must be enabled prior to using {@link XrFrameEndInfoML}
                                • *
                                • {@code type} must be {@link MLFrameEndInfo#XR_TYPE_FRAME_END_INFO_ML TYPE_FRAME_END_INFO_ML}
                                • - *
                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                • + *
                                • {@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 XrFrameEndInfoFlagBitsML} values
                                • *
                                * @@ -36,8 +36,8 @@ * float {@link #focusDistance}; * XrFrameEndInfoFlagsML {@link #flags}; * } - */ -public class XrFrameEndInfoML extends Struct implements NativeResource { + */ +public class XrFrameEndInfoML extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -47,27 +47,27 @@ public class XrFrameEndInfoML extends Struct implements Native /** The struct member offsets. */ public static final int - TYPE, - NEXT, - FOCUSDISTANCE, - FLAGS; + TYPE, + NEXT, + FOCUSDISTANCE, + FLAGS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - FOCUSDISTANCE = layout.offsetof(2); - FLAGS = layout.offsetof(3); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + FOCUSDISTANCE = layout.offsetof(2); + FLAGS = layout.offsetof(3); + } protected XrFrameEndInfoML(long address, @Nullable ByteBuffer container) { super(address, container); @@ -90,41 +90,41 @@ public XrFrameEndInfoML(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** the distance, in meters, to defined focus point for the client content. The focus distance is interpreted as the positive distance to the client-determined object of interest (relative to the forward vector of the Lightwear). */ - public float focusDistance() { return nfocusDistance(address()); } - /** a bitmask of {@code XrFrameEndInfoFlagsML} */ - @NativeType("XrFrameEndInfoFlagsML") - public long flags() { return nflags(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrFrameEndInfoML type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MLFrameEndInfo#XR_TYPE_FRAME_END_INFO_ML TYPE_FRAME_END_INFO_ML} value to the {@link #type} field. */ - public XrFrameEndInfoML type$Default() { return type(MLFrameEndInfo.XR_TYPE_FRAME_END_INFO_ML); } - /** Sets the specified value to the {@link #next} field. */ - public XrFrameEndInfoML next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #focusDistance} field. */ - public XrFrameEndInfoML focusDistance(float value) { nfocusDistance(address(), value); return this; } - /** Sets the specified value to the {@link #flags} field. */ - public XrFrameEndInfoML flags(@NativeType("XrFrameEndInfoFlagsML") long value) { nflags(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the distance, in meters, to defined focus point for the client content. The focus distance is interpreted as the positive distance to the client-determined object of interest (relative to the forward vector of the Lightwear). */ + public float focusDistance() { return nfocusDistance(address()); } + /** a bitmask of {@code XrFrameEndInfoFlagsML} */ + @NativeType("XrFrameEndInfoFlagsML") + public long flags() { return nflags(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrFrameEndInfoML type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MLFrameEndInfo#XR_TYPE_FRAME_END_INFO_ML TYPE_FRAME_END_INFO_ML} value to the {@link #type} field. */ + public XrFrameEndInfoML type$Default() { return type(MLFrameEndInfo.XR_TYPE_FRAME_END_INFO_ML); } + /** Sets the specified value to the {@link #next} field. */ + public XrFrameEndInfoML next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #focusDistance} field. */ + public XrFrameEndInfoML focusDistance(float value) { nfocusDistance(address(), value); return this; } + /** Sets the specified value to the {@link #flags} field. */ + public XrFrameEndInfoML flags(@NativeType("XrFrameEndInfoFlagsML") long value) { nflags(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrFrameEndInfoML set( - int type, - long next, - float focusDistance, + int type, + long next, + float focusDistance, long flags - ) { - type(type); - next(next); - focusDistance(focusDistance); - flags(flags); + ) { + type(type); + next(next); + focusDistance(focusDistance); + flags(flags); return this; } @@ -253,26 +253,26 @@ public static XrFrameEndInfoML.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFrameEndInfoML.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrFrameEndInfoML.NEXT); } - /** Unsafe version of {@link #focusDistance}. */ - public static float nfocusDistance(long struct) { return UNSAFE.getFloat(null, struct + XrFrameEndInfoML.FOCUSDISTANCE); } - /** Unsafe version of {@link #flags}. */ - public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrFrameEndInfoML.FLAGS); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameEndInfoML.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrFrameEndInfoML.NEXT, value); } - /** Unsafe version of {@link #focusDistance(float) focusDistance}. */ - public static void nfocusDistance(long struct, float value) { UNSAFE.putFloat(null, struct + XrFrameEndInfoML.FOCUSDISTANCE, value); } - /** Unsafe version of {@link #flags(long) flags}. */ - public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrFrameEndInfoML.FLAGS, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFrameEndInfoML.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrFrameEndInfoML.NEXT); } + /** Unsafe version of {@link #focusDistance}. */ + public static float nfocusDistance(long struct) { return UNSAFE.getFloat(null, struct + XrFrameEndInfoML.FOCUSDISTANCE); } + /** Unsafe version of {@link #flags}. */ + public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrFrameEndInfoML.FLAGS); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameEndInfoML.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrFrameEndInfoML.NEXT, value); } + /** Unsafe version of {@link #focusDistance(float) focusDistance}. */ + public static void nfocusDistance(long struct, float value) { UNSAFE.putFloat(null, struct + XrFrameEndInfoML.FOCUSDISTANCE, value); } + /** Unsafe version of {@link #flags(long) flags}. */ + public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrFrameEndInfoML.FLAGS, value); } + + // ----------------------------------- /** An array of {@link XrFrameEndInfoML} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -309,29 +309,29 @@ protected Buffer self() { protected XrFrameEndInfoML getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFrameEndInfoML#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFrameEndInfoML.ntype(address()); } - /** @return the value of the {@link XrFrameEndInfoML#next} field. */ - @NativeType("void const *") - public long next() { return XrFrameEndInfoML.nnext(address()); } - /** @return the value of the {@link XrFrameEndInfoML#focusDistance} field. */ - public float focusDistance() { return XrFrameEndInfoML.nfocusDistance(address()); } - /** @return the value of the {@link XrFrameEndInfoML#flags} field. */ - @NativeType("XrFrameEndInfoFlagsML") - public long flags() { return XrFrameEndInfoML.nflags(address()); } - - /** Sets the specified value to the {@link XrFrameEndInfoML#type} field. */ - public XrFrameEndInfoML.Buffer type(@NativeType("XrStructureType") int value) { XrFrameEndInfoML.ntype(address(), value); return this; } - /** Sets the {@link MLFrameEndInfo#XR_TYPE_FRAME_END_INFO_ML TYPE_FRAME_END_INFO_ML} value to the {@link XrFrameEndInfoML#type} field. */ - public XrFrameEndInfoML.Buffer type$Default() { return type(MLFrameEndInfo.XR_TYPE_FRAME_END_INFO_ML); } - /** Sets the specified value to the {@link XrFrameEndInfoML#next} field. */ - public XrFrameEndInfoML.Buffer next(@NativeType("void const *") long value) { XrFrameEndInfoML.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrFrameEndInfoML#focusDistance} field. */ - public XrFrameEndInfoML.Buffer focusDistance(float value) { XrFrameEndInfoML.nfocusDistance(address(), value); return this; } - /** Sets the specified value to the {@link XrFrameEndInfoML#flags} field. */ - public XrFrameEndInfoML.Buffer flags(@NativeType("XrFrameEndInfoFlagsML") long value) { XrFrameEndInfoML.nflags(address(), value); return this; } + + /** @return the value of the {@link XrFrameEndInfoML#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFrameEndInfoML.ntype(address()); } + /** @return the value of the {@link XrFrameEndInfoML#next} field. */ + @NativeType("void const *") + public long next() { return XrFrameEndInfoML.nnext(address()); } + /** @return the value of the {@link XrFrameEndInfoML#focusDistance} field. */ + public float focusDistance() { return XrFrameEndInfoML.nfocusDistance(address()); } + /** @return the value of the {@link XrFrameEndInfoML#flags} field. */ + @NativeType("XrFrameEndInfoFlagsML") + public long flags() { return XrFrameEndInfoML.nflags(address()); } + + /** Sets the specified value to the {@link XrFrameEndInfoML#type} field. */ + public XrFrameEndInfoML.Buffer type(@NativeType("XrStructureType") int value) { XrFrameEndInfoML.ntype(address(), value); return this; } + /** Sets the {@link MLFrameEndInfo#XR_TYPE_FRAME_END_INFO_ML TYPE_FRAME_END_INFO_ML} value to the {@link XrFrameEndInfoML#type} field. */ + public XrFrameEndInfoML.Buffer type$Default() { return type(MLFrameEndInfo.XR_TYPE_FRAME_END_INFO_ML); } + /** Sets the specified value to the {@link XrFrameEndInfoML#next} field. */ + public XrFrameEndInfoML.Buffer next(@NativeType("void const *") long value) { XrFrameEndInfoML.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrFrameEndInfoML#focusDistance} field. */ + public XrFrameEndInfoML.Buffer focusDistance(float value) { XrFrameEndInfoML.nfocusDistance(address(), value); return this; } + /** Sets the specified value to the {@link XrFrameEndInfoML#flags} field. */ + public XrFrameEndInfoML.Buffer flags(@NativeType("XrFrameEndInfoFlagsML") long value) { XrFrameEndInfoML.nflags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameState.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameState.java index 06cdc8d764..10f553ee6f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameState.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameState.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Frame prediction structure. * @@ -22,13 +22,13 @@ * *

                                {@link XrFrameState} describes the time at which the next frame will be displayed to the user. {@code predictedDisplayTime} must refer to the midpoint of the interval during which the frame is displayed. The runtime may report a different {@code predictedDisplayPeriod} from the hardware’s refresh cycle.

                                * - *

                                For any frame where {@code shouldRender} is {@link XR10#XR_FALSE FALSE}, the application should avoid heavy GPU work for that frame, for example by not rendering its layers. This typically happens when the application is transitioning into or out of a running session, or when some system UI is fully covering the application at the moment. As long as the session is running, the application should keep running the frame loop to maintain the frame synchronization to the runtime, even if this requires calling {@link XR10#xrEndFrame EndFrame} with all layers omitted.

                                + *

                                For any frame where {@code shouldRender} is {@link XR10#XR_FALSE FALSE}, the application should avoid heavy GPU work for that frame, for example by not rendering its layers. This typically happens when the application is transitioning into or out of a running session, or when some system UI is fully covering the application at the moment. As long as the session is running, the application should keep running the frame loop to maintain the frame synchronization to the runtime, even if this requires calling {@link XR10#xrEndFrame EndFrame} with all layers omitted.

                                * *
                                Valid Usage (Implicit)
                                * *
                                  *
                                • {@code type} must be {@link XR10#XR_TYPE_FRAME_STATE TYPE_FRAME_STATE}
                                • - *
                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrSecondaryViewConfigurationFrameStateMSFT}
                                • + *
                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrSecondaryViewConfigurationFrameStateMSFT}
                                • *
                                * *
                                See Also
                                @@ -45,8 +45,8 @@ * XrDuration {@link #predictedDisplayPeriod}; * XrBool32 {@link #shouldRender}; * } - */ -public class XrFrameState extends Struct implements NativeResource { + */ +public class XrFrameState extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,30 +56,30 @@ public class XrFrameState extends Struct implements NativeResource /** The struct member offsets. */ public static final int - TYPE, - NEXT, - PREDICTEDDISPLAYTIME, - PREDICTEDDISPLAYPERIOD, - SHOULDRENDER; + TYPE, + NEXT, + PREDICTEDDISPLAYTIME, + PREDICTEDDISPLAYPERIOD, + SHOULDRENDER; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), - __member(8), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), + __member(8), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - PREDICTEDDISPLAYTIME = layout.offsetof(2); - PREDICTEDDISPLAYPERIOD = layout.offsetof(3); - SHOULDRENDER = layout.offsetof(4); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + PREDICTEDDISPLAYTIME = layout.offsetof(2); + PREDICTEDDISPLAYPERIOD = layout.offsetof(3); + SHOULDRENDER = layout.offsetof(4); + } protected XrFrameState(long address, @Nullable ByteBuffer container) { super(address, container); @@ -102,51 +102,51 @@ public XrFrameState(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** the anticipated display {@code XrTime} for the next application-generated frame. */ - @NativeType("XrTime") - public long predictedDisplayTime() { return npredictedDisplayTime(address()); } - /** the {@code XrDuration} of the display period for the next application-generated frame, for use in predicting display times beyond the next one. */ - @NativeType("XrDuration") - public long predictedDisplayPeriod() { return npredictedDisplayPeriod(address()); } - /** {@link XR10#XR_TRUE TRUE} if the application should render its layers as normal and submit them to {@link XR10#xrEndFrame EndFrame}. When this value is {@link XR10#XR_FALSE FALSE}, the application should avoid heavy GPU work where possible, for example by skipping layer rendering and then omitting those layers when calling {@link XR10#xrEndFrame EndFrame}. */ - @NativeType("XrBool32") - public boolean shouldRender() { return nshouldRender(address()) != 0; } - - /** Sets the specified value to the {@link #type} field. */ - public XrFrameState type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_FRAME_STATE TYPE_FRAME_STATE} value to the {@link #type} field. */ - public XrFrameState type$Default() { return type(XR10.XR_TYPE_FRAME_STATE); } - /** Sets the specified value to the {@link #next} field. */ - public XrFrameState next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrSecondaryViewConfigurationFrameStateMSFT} value to the {@code next} chain. */ - public XrFrameState next(XrSecondaryViewConfigurationFrameStateMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #predictedDisplayTime} field. */ - public XrFrameState predictedDisplayTime(@NativeType("XrTime") long value) { npredictedDisplayTime(address(), value); return this; } - /** Sets the specified value to the {@link #predictedDisplayPeriod} field. */ - public XrFrameState predictedDisplayPeriod(@NativeType("XrDuration") long value) { npredictedDisplayPeriod(address(), value); return this; } - /** Sets the specified value to the {@link #shouldRender} field. */ - public XrFrameState shouldRender(@NativeType("XrBool32") boolean value) { nshouldRender(address(), value ? 1 : 0); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the anticipated display {@code XrTime} for the next application-generated frame. */ + @NativeType("XrTime") + public long predictedDisplayTime() { return npredictedDisplayTime(address()); } + /** the {@code XrDuration} of the display period for the next application-generated frame, for use in predicting display times beyond the next one. */ + @NativeType("XrDuration") + public long predictedDisplayPeriod() { return npredictedDisplayPeriod(address()); } + /** {@link XR10#XR_TRUE TRUE} if the application should render its layers as normal and submit them to {@link XR10#xrEndFrame EndFrame}. When this value is {@link XR10#XR_FALSE FALSE}, the application should avoid heavy GPU work where possible, for example by skipping layer rendering and then omitting those layers when calling {@link XR10#xrEndFrame EndFrame}. */ + @NativeType("XrBool32") + public boolean shouldRender() { return nshouldRender(address()) != 0; } + + /** Sets the specified value to the {@link #type} field. */ + public XrFrameState type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_FRAME_STATE TYPE_FRAME_STATE} value to the {@link #type} field. */ + public XrFrameState type$Default() { return type(XR10.XR_TYPE_FRAME_STATE); } + /** Sets the specified value to the {@link #next} field. */ + public XrFrameState next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrSecondaryViewConfigurationFrameStateMSFT} value to the {@code next} chain. */ + public XrFrameState next(XrSecondaryViewConfigurationFrameStateMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #predictedDisplayTime} field. */ + public XrFrameState predictedDisplayTime(@NativeType("XrTime") long value) { npredictedDisplayTime(address(), value); return this; } + /** Sets the specified value to the {@link #predictedDisplayPeriod} field. */ + public XrFrameState predictedDisplayPeriod(@NativeType("XrDuration") long value) { npredictedDisplayPeriod(address(), value); return this; } + /** Sets the specified value to the {@link #shouldRender} field. */ + public XrFrameState shouldRender(@NativeType("XrBool32") boolean value) { nshouldRender(address(), value ? 1 : 0); return this; } /** Initializes this struct with the specified values. */ public XrFrameState set( - int type, - long next, - long predictedDisplayTime, - long predictedDisplayPeriod, + int type, + long next, + long predictedDisplayTime, + long predictedDisplayPeriod, boolean shouldRender - ) { - type(type); - next(next); - predictedDisplayTime(predictedDisplayTime); - predictedDisplayPeriod(predictedDisplayPeriod); - shouldRender(shouldRender); + ) { + type(type); + next(next); + predictedDisplayTime(predictedDisplayTime); + predictedDisplayPeriod(predictedDisplayPeriod); + shouldRender(shouldRender); return this; } @@ -275,30 +275,30 @@ public static XrFrameState.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFrameState.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrFrameState.NEXT); } - /** Unsafe version of {@link #predictedDisplayTime}. */ - public static long npredictedDisplayTime(long struct) { return UNSAFE.getLong(null, struct + XrFrameState.PREDICTEDDISPLAYTIME); } - /** Unsafe version of {@link #predictedDisplayPeriod}. */ - public static long npredictedDisplayPeriod(long struct) { return UNSAFE.getLong(null, struct + XrFrameState.PREDICTEDDISPLAYPERIOD); } - /** Unsafe version of {@link #shouldRender}. */ - public static int nshouldRender(long struct) { return UNSAFE.getInt(null, struct + XrFrameState.SHOULDRENDER); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameState.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrFrameState.NEXT, value); } - /** Unsafe version of {@link #predictedDisplayTime(long) predictedDisplayTime}. */ - public static void npredictedDisplayTime(long struct, long value) { UNSAFE.putLong(null, struct + XrFrameState.PREDICTEDDISPLAYTIME, value); } - /** Unsafe version of {@link #predictedDisplayPeriod(long) predictedDisplayPeriod}. */ - public static void npredictedDisplayPeriod(long struct, long value) { UNSAFE.putLong(null, struct + XrFrameState.PREDICTEDDISPLAYPERIOD, value); } - /** Unsafe version of {@link #shouldRender(boolean) shouldRender}. */ - public static void nshouldRender(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameState.SHOULDRENDER, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFrameState.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrFrameState.NEXT); } + /** Unsafe version of {@link #predictedDisplayTime}. */ + public static long npredictedDisplayTime(long struct) { return UNSAFE.getLong(null, struct + XrFrameState.PREDICTEDDISPLAYTIME); } + /** Unsafe version of {@link #predictedDisplayPeriod}. */ + public static long npredictedDisplayPeriod(long struct) { return UNSAFE.getLong(null, struct + XrFrameState.PREDICTEDDISPLAYPERIOD); } + /** Unsafe version of {@link #shouldRender}. */ + public static int nshouldRender(long struct) { return UNSAFE.getInt(null, struct + XrFrameState.SHOULDRENDER); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameState.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrFrameState.NEXT, value); } + /** Unsafe version of {@link #predictedDisplayTime(long) predictedDisplayTime}. */ + public static void npredictedDisplayTime(long struct, long value) { UNSAFE.putLong(null, struct + XrFrameState.PREDICTEDDISPLAYTIME, value); } + /** Unsafe version of {@link #predictedDisplayPeriod(long) predictedDisplayPeriod}. */ + public static void npredictedDisplayPeriod(long struct, long value) { UNSAFE.putLong(null, struct + XrFrameState.PREDICTEDDISPLAYPERIOD, value); } + /** Unsafe version of {@link #shouldRender(boolean) shouldRender}. */ + public static void nshouldRender(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameState.SHOULDRENDER, value); } + + // ----------------------------------- /** An array of {@link XrFrameState} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -335,37 +335,37 @@ protected Buffer self() { protected XrFrameState getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFrameState#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFrameState.ntype(address()); } - /** @return the value of the {@link XrFrameState#next} field. */ - @NativeType("void *") - public long next() { return XrFrameState.nnext(address()); } - /** @return the value of the {@link XrFrameState#predictedDisplayTime} field. */ - @NativeType("XrTime") - public long predictedDisplayTime() { return XrFrameState.npredictedDisplayTime(address()); } - /** @return the value of the {@link XrFrameState#predictedDisplayPeriod} field. */ - @NativeType("XrDuration") - public long predictedDisplayPeriod() { return XrFrameState.npredictedDisplayPeriod(address()); } - /** @return the value of the {@link XrFrameState#shouldRender} field. */ - @NativeType("XrBool32") - public boolean shouldRender() { return XrFrameState.nshouldRender(address()) != 0; } - - /** Sets the specified value to the {@link XrFrameState#type} field. */ - public XrFrameState.Buffer type(@NativeType("XrStructureType") int value) { XrFrameState.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_FRAME_STATE TYPE_FRAME_STATE} value to the {@link XrFrameState#type} field. */ - public XrFrameState.Buffer type$Default() { return type(XR10.XR_TYPE_FRAME_STATE); } - /** Sets the specified value to the {@link XrFrameState#next} field. */ - public XrFrameState.Buffer next(@NativeType("void *") long value) { XrFrameState.nnext(address(), value); return this; } - /** Prepends the specified {@link XrSecondaryViewConfigurationFrameStateMSFT} value to the {@code next} chain. */ - public XrFrameState.Buffer next(XrSecondaryViewConfigurationFrameStateMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrFrameState#predictedDisplayTime} field. */ - public XrFrameState.Buffer predictedDisplayTime(@NativeType("XrTime") long value) { XrFrameState.npredictedDisplayTime(address(), value); return this; } - /** Sets the specified value to the {@link XrFrameState#predictedDisplayPeriod} field. */ - public XrFrameState.Buffer predictedDisplayPeriod(@NativeType("XrDuration") long value) { XrFrameState.npredictedDisplayPeriod(address(), value); return this; } - /** Sets the specified value to the {@link XrFrameState#shouldRender} field. */ - public XrFrameState.Buffer shouldRender(@NativeType("XrBool32") boolean value) { XrFrameState.nshouldRender(address(), value ? 1 : 0); return this; } + + /** @return the value of the {@link XrFrameState#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFrameState.ntype(address()); } + /** @return the value of the {@link XrFrameState#next} field. */ + @NativeType("void *") + public long next() { return XrFrameState.nnext(address()); } + /** @return the value of the {@link XrFrameState#predictedDisplayTime} field. */ + @NativeType("XrTime") + public long predictedDisplayTime() { return XrFrameState.npredictedDisplayTime(address()); } + /** @return the value of the {@link XrFrameState#predictedDisplayPeriod} field. */ + @NativeType("XrDuration") + public long predictedDisplayPeriod() { return XrFrameState.npredictedDisplayPeriod(address()); } + /** @return the value of the {@link XrFrameState#shouldRender} field. */ + @NativeType("XrBool32") + public boolean shouldRender() { return XrFrameState.nshouldRender(address()) != 0; } + + /** Sets the specified value to the {@link XrFrameState#type} field. */ + public XrFrameState.Buffer type(@NativeType("XrStructureType") int value) { XrFrameState.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_FRAME_STATE TYPE_FRAME_STATE} value to the {@link XrFrameState#type} field. */ + public XrFrameState.Buffer type$Default() { return type(XR10.XR_TYPE_FRAME_STATE); } + /** Sets the specified value to the {@link XrFrameState#next} field. */ + public XrFrameState.Buffer next(@NativeType("void *") long value) { XrFrameState.nnext(address(), value); return this; } + /** Prepends the specified {@link XrSecondaryViewConfigurationFrameStateMSFT} value to the {@code next} chain. */ + public XrFrameState.Buffer next(XrSecondaryViewConfigurationFrameStateMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrFrameState#predictedDisplayTime} field. */ + public XrFrameState.Buffer predictedDisplayTime(@NativeType("XrTime") long value) { XrFrameState.npredictedDisplayTime(address(), value); return this; } + /** Sets the specified value to the {@link XrFrameState#predictedDisplayPeriod} field. */ + public XrFrameState.Buffer predictedDisplayPeriod(@NativeType("XrDuration") long value) { XrFrameState.npredictedDisplayPeriod(address(), value); return this; } + /** Sets the specified value to the {@link XrFrameState#shouldRender} field. */ + public XrFrameState.Buffer shouldRender(@NativeType("XrBool32") boolean value) { XrFrameState.nshouldRender(address(), value ? 1 : 0); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameWaitInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameWaitInfo.java index ff3400fad3..2442e65921 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameWaitInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrFrameWaitInfo.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Wait frame information structure. * @@ -26,7 +26,7 @@ * * * *
                                See Also
                                @@ -40,8 +40,8 @@ * XrStructureType {@link #type}; * void const * {@link #next}; * } - */ -public class XrFrameWaitInfo extends Struct implements NativeResource { + */ +public class XrFrameWaitInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,21 +51,21 @@ public class XrFrameWaitInfo extends Struct implements NativeRe /** The struct member offsets. */ public static final int - TYPE, - NEXT; + TYPE, + NEXT; static { - Layout layout = __struct( - __member(4), + Layout layout = __struct( + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + } protected XrFrameWaitInfo(long address, @Nullable ByteBuffer container) { super(address, container); @@ -88,28 +88,28 @@ public XrFrameWaitInfo(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrFrameWaitInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_FRAME_WAIT_INFO TYPE_FRAME_WAIT_INFO} value to the {@link #type} field. */ - public XrFrameWaitInfo type$Default() { return type(XR10.XR_TYPE_FRAME_WAIT_INFO); } - /** Sets the specified value to the {@link #next} field. */ - public XrFrameWaitInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrFrameWaitInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_FRAME_WAIT_INFO TYPE_FRAME_WAIT_INFO} value to the {@link #type} field. */ + public XrFrameWaitInfo type$Default() { return type(XR10.XR_TYPE_FRAME_WAIT_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrFrameWaitInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrFrameWaitInfo set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -238,18 +238,18 @@ public static XrFrameWaitInfo.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFrameWaitInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrFrameWaitInfo.NEXT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameWaitInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrFrameWaitInfo.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrFrameWaitInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrFrameWaitInfo.NEXT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrFrameWaitInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrFrameWaitInfo.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrFrameWaitInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -286,20 +286,20 @@ protected Buffer self() { protected XrFrameWaitInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrFrameWaitInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrFrameWaitInfo.ntype(address()); } - /** @return the value of the {@link XrFrameWaitInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrFrameWaitInfo.nnext(address()); } - - /** Sets the specified value to the {@link XrFrameWaitInfo#type} field. */ - public XrFrameWaitInfo.Buffer type(@NativeType("XrStructureType") int value) { XrFrameWaitInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_FRAME_WAIT_INFO TYPE_FRAME_WAIT_INFO} value to the {@link XrFrameWaitInfo#type} field. */ - public XrFrameWaitInfo.Buffer type$Default() { return type(XR10.XR_TYPE_FRAME_WAIT_INFO); } - /** Sets the specified value to the {@link XrFrameWaitInfo#next} field. */ - public XrFrameWaitInfo.Buffer next(@NativeType("void const *") long value) { XrFrameWaitInfo.nnext(address(), value); return this; } + + /** @return the value of the {@link XrFrameWaitInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrFrameWaitInfo.ntype(address()); } + /** @return the value of the {@link XrFrameWaitInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrFrameWaitInfo.nnext(address()); } + + /** Sets the specified value to the {@link XrFrameWaitInfo#type} field. */ + public XrFrameWaitInfo.Buffer type(@NativeType("XrStructureType") int value) { XrFrameWaitInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_FRAME_WAIT_INFO TYPE_FRAME_WAIT_INFO} value to the {@link XrFrameWaitInfo#type} field. */ + public XrFrameWaitInfo.Buffer type$Default() { return type(XR10.XR_TYPE_FRAME_WAIT_INFO); } + /** Sets the specified value to the {@link XrFrameWaitInfo#next} field. */ + public XrFrameWaitInfo.Buffer next(@NativeType("void const *") long value) { XrFrameWaitInfo.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGeometryInstanceCreateInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGeometryInstanceCreateInfoFB.java index c0d6d7e002..721984f188 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGeometryInstanceCreateInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGeometryInstanceCreateInfoFB.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * A create structure for geometry instance. * @@ -36,7 +36,7 @@ *
                                  *
                                • The {@link FBPassthrough XR_FB_passthrough} extension must be enabled prior to using {@link XrGeometryInstanceCreateInfoFB}
                                • *
                                • {@code type} must be {@link FBPassthrough#XR_TYPE_GEOMETRY_INSTANCE_CREATE_INFO_FB TYPE_GEOMETRY_INSTANCE_CREATE_INFO_FB}
                                • - *
                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                • + *
                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                • *
                                • {@code layer} must be a valid {@code XrPassthroughLayerFB} handle
                                • *
                                • {@code mesh} must be a valid {@code XrTriangleMeshFB} handle
                                • *
                                • {@code baseSpace} must be a valid {@code XrSpace} handle
                                • @@ -59,8 +59,8 @@ * {@link XrPosef XrPosef} pose; * {@link XrVector3f XrVector3f} scale; * } - */ -public class XrGeometryInstanceCreateInfoFB extends Struct implements NativeResource { + */ +public class XrGeometryInstanceCreateInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -70,36 +70,36 @@ public class XrGeometryInstanceCreateInfoFB extends Struct consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrVector3f} to the {@code scale} field. */ - public XrGeometryInstanceCreateInfoFB scale(XrVector3f value) { nscale(address(), value); return this; } - /** Passes the {@code scale} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrGeometryInstanceCreateInfoFB scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** @return the value of the {@code layer} field. */ + @NativeType("XrPassthroughLayerFB") + public long layer() { return nlayer(address()); } + /** @return the value of the {@code mesh} field. */ + @NativeType("XrTriangleMeshFB") + public long mesh() { return nmesh(address()); } + /** @return the value of the {@code baseSpace} field. */ + @NativeType("XrSpace") + public long baseSpace() { return nbaseSpace(address()); } + /** @return a {@link XrPosef} view of the {@code pose} field. */ + public XrPosef pose() { return npose(address()); } + /** @return a {@link XrVector3f} view of the {@code scale} field. */ + public XrVector3f scale() { return nscale(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrGeometryInstanceCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_GEOMETRY_INSTANCE_CREATE_INFO_FB TYPE_GEOMETRY_INSTANCE_CREATE_INFO_FB} value to the {@code type} field. */ + public XrGeometryInstanceCreateInfoFB type$Default() { return type(FBPassthrough.XR_TYPE_GEOMETRY_INSTANCE_CREATE_INFO_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrGeometryInstanceCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@code layer} field. */ + public XrGeometryInstanceCreateInfoFB layer(XrPassthroughLayerFB value) { nlayer(address(), value); return this; } + /** Sets the specified value to the {@code mesh} field. */ + public XrGeometryInstanceCreateInfoFB mesh(XrTriangleMeshFB value) { nmesh(address(), value); return this; } + /** Sets the specified value to the {@code baseSpace} field. */ + public XrGeometryInstanceCreateInfoFB baseSpace(XrSpace value) { nbaseSpace(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@code pose} field. */ + public XrGeometryInstanceCreateInfoFB pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@code pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrGeometryInstanceCreateInfoFB pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrVector3f} to the {@code scale} field. */ + public XrGeometryInstanceCreateInfoFB scale(XrVector3f value) { nscale(address(), value); return this; } + /** Passes the {@code scale} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrGeometryInstanceCreateInfoFB scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } /** Initializes this struct with the specified values. */ public XrGeometryInstanceCreateInfoFB set( - int type, - long next, - XrPassthroughLayerFB layer, - XrTriangleMeshFB mesh, - XrSpace baseSpace, - XrPosef pose, + int type, + long next, + XrPassthroughLayerFB layer, + XrTriangleMeshFB mesh, + XrSpace baseSpace, + XrPosef pose, XrVector3f scale - ) { - type(type); - next(next); - layer(layer); - mesh(mesh); - baseSpace(baseSpace); - pose(pose); - scale(scale); + ) { + type(type); + next(next); + layer(layer); + mesh(mesh); + baseSpace(baseSpace); + pose(pose); + scale(scale); return this; } @@ -309,36 +309,36 @@ public static XrGeometryInstanceCreateInfoFB.Buffer calloc(int capacity, MemoryS } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrGeometryInstanceCreateInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrGeometryInstanceCreateInfoFB.NEXT); } - /** Unsafe version of {@link #layer}. */ - public static long nlayer(long struct) { return memGetAddress(struct + XrGeometryInstanceCreateInfoFB.LAYER); } - /** Unsafe version of {@link #mesh}. */ - public static long nmesh(long struct) { return memGetAddress(struct + XrGeometryInstanceCreateInfoFB.MESH); } - /** Unsafe version of {@link #baseSpace}. */ - public static long nbaseSpace(long struct) { return memGetAddress(struct + XrGeometryInstanceCreateInfoFB.BASESPACE); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrGeometryInstanceCreateInfoFB.POSE); } - /** Unsafe version of {@link #scale}. */ - public static XrVector3f nscale(long struct) { return XrVector3f.create(struct + XrGeometryInstanceCreateInfoFB.SCALE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrGeometryInstanceCreateInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrGeometryInstanceCreateInfoFB.NEXT, value); } - /** Unsafe version of {@link #layer(XrPassthroughLayerFB) layer}. */ - public static void nlayer(long struct, XrPassthroughLayerFB value) { memPutAddress(struct + XrGeometryInstanceCreateInfoFB.LAYER, value.address()); } - /** Unsafe version of {@link #mesh(XrTriangleMeshFB) mesh}. */ - public static void nmesh(long struct, XrTriangleMeshFB value) { memPutAddress(struct + XrGeometryInstanceCreateInfoFB.MESH, value.address()); } - /** Unsafe version of {@link #baseSpace(XrSpace) baseSpace}. */ - public static void nbaseSpace(long struct, XrSpace value) { memPutAddress(struct + XrGeometryInstanceCreateInfoFB.BASESPACE, value.address()); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrGeometryInstanceCreateInfoFB.POSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #scale(XrVector3f) scale}. */ - public static void nscale(long struct, XrVector3f value) { memCopy(value.address(), struct + XrGeometryInstanceCreateInfoFB.SCALE, XrVector3f.SIZEOF); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrGeometryInstanceCreateInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrGeometryInstanceCreateInfoFB.NEXT); } + /** Unsafe version of {@link #layer}. */ + public static long nlayer(long struct) { return memGetAddress(struct + XrGeometryInstanceCreateInfoFB.LAYER); } + /** Unsafe version of {@link #mesh}. */ + public static long nmesh(long struct) { return memGetAddress(struct + XrGeometryInstanceCreateInfoFB.MESH); } + /** Unsafe version of {@link #baseSpace}. */ + public static long nbaseSpace(long struct) { return memGetAddress(struct + XrGeometryInstanceCreateInfoFB.BASESPACE); } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrGeometryInstanceCreateInfoFB.POSE); } + /** Unsafe version of {@link #scale}. */ + public static XrVector3f nscale(long struct) { return XrVector3f.create(struct + XrGeometryInstanceCreateInfoFB.SCALE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrGeometryInstanceCreateInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrGeometryInstanceCreateInfoFB.NEXT, value); } + /** Unsafe version of {@link #layer(XrPassthroughLayerFB) layer}. */ + public static void nlayer(long struct, XrPassthroughLayerFB value) { memPutAddress(struct + XrGeometryInstanceCreateInfoFB.LAYER, value.address()); } + /** Unsafe version of {@link #mesh(XrTriangleMeshFB) mesh}. */ + public static void nmesh(long struct, XrTriangleMeshFB value) { memPutAddress(struct + XrGeometryInstanceCreateInfoFB.MESH, value.address()); } + /** Unsafe version of {@link #baseSpace(XrSpace) baseSpace}. */ + public static void nbaseSpace(long struct, XrSpace value) { memPutAddress(struct + XrGeometryInstanceCreateInfoFB.BASESPACE, value.address()); } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrGeometryInstanceCreateInfoFB.POSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #scale(XrVector3f) scale}. */ + public static void nscale(long struct, XrVector3f value) { memCopy(value.address(), struct + XrGeometryInstanceCreateInfoFB.SCALE, XrVector3f.SIZEOF); } /** * Validates pointer members that should not be {@code NULL}. @@ -349,9 +349,9 @@ public static void validate(long struct) { check(memGetAddress(struct + XrGeometryInstanceCreateInfoFB.LAYER)); check(memGetAddress(struct + XrGeometryInstanceCreateInfoFB.MESH)); check(memGetAddress(struct + XrGeometryInstanceCreateInfoFB.BASESPACE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrGeometryInstanceCreateInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -388,47 +388,47 @@ protected Buffer self() { protected XrGeometryInstanceCreateInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrGeometryInstanceCreateInfoFB.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrGeometryInstanceCreateInfoFB.nnext(address()); } - /** @return the value of the {@code layer} field. */ - @NativeType("XrPassthroughLayerFB") - public long layer() { return XrGeometryInstanceCreateInfoFB.nlayer(address()); } - /** @return the value of the {@code mesh} field. */ - @NativeType("XrTriangleMeshFB") - public long mesh() { return XrGeometryInstanceCreateInfoFB.nmesh(address()); } - /** @return the value of the {@code baseSpace} field. */ - @NativeType("XrSpace") - public long baseSpace() { return XrGeometryInstanceCreateInfoFB.nbaseSpace(address()); } - /** @return a {@link XrPosef} view of the {@code pose} field. */ - public XrPosef pose() { return XrGeometryInstanceCreateInfoFB.npose(address()); } - /** @return a {@link XrVector3f} view of the {@code scale} field. */ - public XrVector3f scale() { return XrGeometryInstanceCreateInfoFB.nscale(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrGeometryInstanceCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrGeometryInstanceCreateInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_GEOMETRY_INSTANCE_CREATE_INFO_FB TYPE_GEOMETRY_INSTANCE_CREATE_INFO_FB} value to the {@code type} field. */ - public XrGeometryInstanceCreateInfoFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_GEOMETRY_INSTANCE_CREATE_INFO_FB); } - /** Sets the specified value to the {@code next} field. */ - public XrGeometryInstanceCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrGeometryInstanceCreateInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@code layer} field. */ - public XrGeometryInstanceCreateInfoFB.Buffer layer(XrPassthroughLayerFB value) { XrGeometryInstanceCreateInfoFB.nlayer(address(), value); return this; } - /** Sets the specified value to the {@code mesh} field. */ - public XrGeometryInstanceCreateInfoFB.Buffer mesh(XrTriangleMeshFB value) { XrGeometryInstanceCreateInfoFB.nmesh(address(), value); return this; } - /** Sets the specified value to the {@code baseSpace} field. */ - public XrGeometryInstanceCreateInfoFB.Buffer baseSpace(XrSpace value) { XrGeometryInstanceCreateInfoFB.nbaseSpace(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@code pose} field. */ - public XrGeometryInstanceCreateInfoFB.Buffer pose(XrPosef value) { XrGeometryInstanceCreateInfoFB.npose(address(), value); return this; } - /** Passes the {@code pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrGeometryInstanceCreateInfoFB.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrVector3f} to the {@code scale} field. */ - public XrGeometryInstanceCreateInfoFB.Buffer scale(XrVector3f value) { XrGeometryInstanceCreateInfoFB.nscale(address(), value); return this; } - /** Passes the {@code scale} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrGeometryInstanceCreateInfoFB.Buffer scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrGeometryInstanceCreateInfoFB.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrGeometryInstanceCreateInfoFB.nnext(address()); } + /** @return the value of the {@code layer} field. */ + @NativeType("XrPassthroughLayerFB") + public long layer() { return XrGeometryInstanceCreateInfoFB.nlayer(address()); } + /** @return the value of the {@code mesh} field. */ + @NativeType("XrTriangleMeshFB") + public long mesh() { return XrGeometryInstanceCreateInfoFB.nmesh(address()); } + /** @return the value of the {@code baseSpace} field. */ + @NativeType("XrSpace") + public long baseSpace() { return XrGeometryInstanceCreateInfoFB.nbaseSpace(address()); } + /** @return a {@link XrPosef} view of the {@code pose} field. */ + public XrPosef pose() { return XrGeometryInstanceCreateInfoFB.npose(address()); } + /** @return a {@link XrVector3f} view of the {@code scale} field. */ + public XrVector3f scale() { return XrGeometryInstanceCreateInfoFB.nscale(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrGeometryInstanceCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrGeometryInstanceCreateInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_GEOMETRY_INSTANCE_CREATE_INFO_FB TYPE_GEOMETRY_INSTANCE_CREATE_INFO_FB} value to the {@code type} field. */ + public XrGeometryInstanceCreateInfoFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_GEOMETRY_INSTANCE_CREATE_INFO_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrGeometryInstanceCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrGeometryInstanceCreateInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@code layer} field. */ + public XrGeometryInstanceCreateInfoFB.Buffer layer(XrPassthroughLayerFB value) { XrGeometryInstanceCreateInfoFB.nlayer(address(), value); return this; } + /** Sets the specified value to the {@code mesh} field. */ + public XrGeometryInstanceCreateInfoFB.Buffer mesh(XrTriangleMeshFB value) { XrGeometryInstanceCreateInfoFB.nmesh(address(), value); return this; } + /** Sets the specified value to the {@code baseSpace} field. */ + public XrGeometryInstanceCreateInfoFB.Buffer baseSpace(XrSpace value) { XrGeometryInstanceCreateInfoFB.nbaseSpace(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@code pose} field. */ + public XrGeometryInstanceCreateInfoFB.Buffer pose(XrPosef value) { XrGeometryInstanceCreateInfoFB.npose(address(), value); return this; } + /** Passes the {@code pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrGeometryInstanceCreateInfoFB.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrVector3f} to the {@code scale} field. */ + public XrGeometryInstanceCreateInfoFB.Buffer scale(XrVector3f value) { XrGeometryInstanceCreateInfoFB.nscale(address(), value); return this; } + /** Passes the {@code scale} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrGeometryInstanceCreateInfoFB.Buffer scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGeometryInstanceFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGeometryInstanceFB.java index fb3f61bf4b..44d5c05e11 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGeometryInstanceFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGeometryInstanceFB.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrGeometryInstanceFB} handle. */ + +/** Wraps an {@code XrGeometryInstanceFB} handle. */ public class XrGeometryInstanceFB extends DispatchableHandle { private final XrSession session; @@ -26,4 +26,4 @@ public XrSession getSession() { return session; } -} +} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGeometryInstanceTransformFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGeometryInstanceTransformFB.java index c5bfe8042b..657648547b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGeometryInstanceTransformFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGeometryInstanceTransformFB.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * A geometry transformation. * @@ -35,7 +35,7 @@ *
                                    *
                                  • The {@link FBPassthrough XR_FB_passthrough} extension must be enabled prior to using {@link XrGeometryInstanceTransformFB}
                                  • *
                                  • {@code type} must be {@link FBPassthrough#XR_TYPE_GEOMETRY_INSTANCE_TRANSFORM_FB TYPE_GEOMETRY_INSTANCE_TRANSFORM_FB}
                                  • - *
                                  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                  • + *
                                  • {@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
                                  • *
                                  * @@ -54,8 +54,8 @@ * {@link XrPosef XrPosef} pose; * {@link XrVector3f XrVector3f} scale; * } - */ -public class XrGeometryInstanceTransformFB extends Struct implements NativeResource { + */ +public class XrGeometryInstanceTransformFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -65,33 +65,33 @@ public class XrGeometryInstanceTransformFB extends Struct consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrVector3f} to the {@code scale} field. */ - public XrGeometryInstanceTransformFB scale(XrVector3f value) { nscale(address(), value); return this; } - /** Passes the {@code scale} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrGeometryInstanceTransformFB scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** @return the value of the {@code baseSpace} field. */ + @NativeType("XrSpace") + public long baseSpace() { return nbaseSpace(address()); } + /** @return the value of the {@code time} field. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + /** @return a {@link XrPosef} view of the {@code pose} field. */ + public XrPosef pose() { return npose(address()); } + /** @return a {@link XrVector3f} view of the {@code scale} field. */ + public XrVector3f scale() { return nscale(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrGeometryInstanceTransformFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_GEOMETRY_INSTANCE_TRANSFORM_FB TYPE_GEOMETRY_INSTANCE_TRANSFORM_FB} value to the {@code type} field. */ + public XrGeometryInstanceTransformFB type$Default() { return type(FBPassthrough.XR_TYPE_GEOMETRY_INSTANCE_TRANSFORM_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrGeometryInstanceTransformFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@code baseSpace} field. */ + public XrGeometryInstanceTransformFB baseSpace(XrSpace value) { nbaseSpace(address(), value); return this; } + /** Sets the specified value to the {@code time} field. */ + public XrGeometryInstanceTransformFB time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@code pose} field. */ + public XrGeometryInstanceTransformFB pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@code pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrGeometryInstanceTransformFB pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrVector3f} to the {@code scale} field. */ + public XrGeometryInstanceTransformFB scale(XrVector3f value) { nscale(address(), value); return this; } + /** Passes the {@code scale} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrGeometryInstanceTransformFB scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } /** Initializes this struct with the specified values. */ public XrGeometryInstanceTransformFB set( - int type, - long next, - XrSpace baseSpace, - long time, - XrPosef pose, + int type, + long next, + XrSpace baseSpace, + long time, + XrPosef pose, XrVector3f scale - ) { - type(type); - next(next); - baseSpace(baseSpace); - time(time); - pose(pose); - scale(scale); + ) { + type(type); + next(next); + baseSpace(baseSpace); + time(time); + pose(pose); + scale(scale); return this; } @@ -294,32 +294,32 @@ public static XrGeometryInstanceTransformFB.Buffer calloc(int capacity, MemorySt } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrGeometryInstanceTransformFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrGeometryInstanceTransformFB.NEXT); } - /** Unsafe version of {@link #baseSpace}. */ - public static long nbaseSpace(long struct) { return memGetAddress(struct + XrGeometryInstanceTransformFB.BASESPACE); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrGeometryInstanceTransformFB.TIME); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrGeometryInstanceTransformFB.POSE); } - /** Unsafe version of {@link #scale}. */ - public static XrVector3f nscale(long struct) { return XrVector3f.create(struct + XrGeometryInstanceTransformFB.SCALE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrGeometryInstanceTransformFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrGeometryInstanceTransformFB.NEXT, value); } - /** Unsafe version of {@link #baseSpace(XrSpace) baseSpace}. */ - public static void nbaseSpace(long struct, XrSpace value) { memPutAddress(struct + XrGeometryInstanceTransformFB.BASESPACE, value.address()); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrGeometryInstanceTransformFB.TIME, value); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrGeometryInstanceTransformFB.POSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #scale(XrVector3f) scale}. */ - public static void nscale(long struct, XrVector3f value) { memCopy(value.address(), struct + XrGeometryInstanceTransformFB.SCALE, XrVector3f.SIZEOF); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrGeometryInstanceTransformFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrGeometryInstanceTransformFB.NEXT); } + /** Unsafe version of {@link #baseSpace}. */ + public static long nbaseSpace(long struct) { return memGetAddress(struct + XrGeometryInstanceTransformFB.BASESPACE); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrGeometryInstanceTransformFB.TIME); } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrGeometryInstanceTransformFB.POSE); } + /** Unsafe version of {@link #scale}. */ + public static XrVector3f nscale(long struct) { return XrVector3f.create(struct + XrGeometryInstanceTransformFB.SCALE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrGeometryInstanceTransformFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrGeometryInstanceTransformFB.NEXT, value); } + /** Unsafe version of {@link #baseSpace(XrSpace) baseSpace}. */ + public static void nbaseSpace(long struct, XrSpace value) { memPutAddress(struct + XrGeometryInstanceTransformFB.BASESPACE, value.address()); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrGeometryInstanceTransformFB.TIME, value); } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrGeometryInstanceTransformFB.POSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #scale(XrVector3f) scale}. */ + public static void nscale(long struct, XrVector3f value) { memCopy(value.address(), struct + XrGeometryInstanceTransformFB.SCALE, XrVector3f.SIZEOF); } /** * Validates pointer members that should not be {@code NULL}. @@ -328,9 +328,9 @@ public static XrGeometryInstanceTransformFB.Buffer calloc(int capacity, MemorySt */ public static void validate(long struct) { check(memGetAddress(struct + XrGeometryInstanceTransformFB.BASESPACE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrGeometryInstanceTransformFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -367,42 +367,42 @@ protected Buffer self() { protected XrGeometryInstanceTransformFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrGeometryInstanceTransformFB.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrGeometryInstanceTransformFB.nnext(address()); } - /** @return the value of the {@code baseSpace} field. */ - @NativeType("XrSpace") - public long baseSpace() { return XrGeometryInstanceTransformFB.nbaseSpace(address()); } - /** @return the value of the {@code time} field. */ - @NativeType("XrTime") - public long time() { return XrGeometryInstanceTransformFB.ntime(address()); } - /** @return a {@link XrPosef} view of the {@code pose} field. */ - public XrPosef pose() { return XrGeometryInstanceTransformFB.npose(address()); } - /** @return a {@link XrVector3f} view of the {@code scale} field. */ - public XrVector3f scale() { return XrGeometryInstanceTransformFB.nscale(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrGeometryInstanceTransformFB.Buffer type(@NativeType("XrStructureType") int value) { XrGeometryInstanceTransformFB.ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_GEOMETRY_INSTANCE_TRANSFORM_FB TYPE_GEOMETRY_INSTANCE_TRANSFORM_FB} value to the {@code type} field. */ - public XrGeometryInstanceTransformFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_GEOMETRY_INSTANCE_TRANSFORM_FB); } - /** Sets the specified value to the {@code next} field. */ - public XrGeometryInstanceTransformFB.Buffer next(@NativeType("void const *") long value) { XrGeometryInstanceTransformFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@code baseSpace} field. */ - public XrGeometryInstanceTransformFB.Buffer baseSpace(XrSpace value) { XrGeometryInstanceTransformFB.nbaseSpace(address(), value); return this; } - /** Sets the specified value to the {@code time} field. */ - public XrGeometryInstanceTransformFB.Buffer time(@NativeType("XrTime") long value) { XrGeometryInstanceTransformFB.ntime(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@code pose} field. */ - public XrGeometryInstanceTransformFB.Buffer pose(XrPosef value) { XrGeometryInstanceTransformFB.npose(address(), value); return this; } - /** Passes the {@code pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrGeometryInstanceTransformFB.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrVector3f} to the {@code scale} field. */ - public XrGeometryInstanceTransformFB.Buffer scale(XrVector3f value) { XrGeometryInstanceTransformFB.nscale(address(), value); return this; } - /** Passes the {@code scale} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrGeometryInstanceTransformFB.Buffer scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrGeometryInstanceTransformFB.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrGeometryInstanceTransformFB.nnext(address()); } + /** @return the value of the {@code baseSpace} field. */ + @NativeType("XrSpace") + public long baseSpace() { return XrGeometryInstanceTransformFB.nbaseSpace(address()); } + /** @return the value of the {@code time} field. */ + @NativeType("XrTime") + public long time() { return XrGeometryInstanceTransformFB.ntime(address()); } + /** @return a {@link XrPosef} view of the {@code pose} field. */ + public XrPosef pose() { return XrGeometryInstanceTransformFB.npose(address()); } + /** @return a {@link XrVector3f} view of the {@code scale} field. */ + public XrVector3f scale() { return XrGeometryInstanceTransformFB.nscale(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrGeometryInstanceTransformFB.Buffer type(@NativeType("XrStructureType") int value) { XrGeometryInstanceTransformFB.ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_GEOMETRY_INSTANCE_TRANSFORM_FB TYPE_GEOMETRY_INSTANCE_TRANSFORM_FB} value to the {@code type} field. */ + public XrGeometryInstanceTransformFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_GEOMETRY_INSTANCE_TRANSFORM_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrGeometryInstanceTransformFB.Buffer next(@NativeType("void const *") long value) { XrGeometryInstanceTransformFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@code baseSpace} field. */ + public XrGeometryInstanceTransformFB.Buffer baseSpace(XrSpace value) { XrGeometryInstanceTransformFB.nbaseSpace(address(), value); return this; } + /** Sets the specified value to the {@code time} field. */ + public XrGeometryInstanceTransformFB.Buffer time(@NativeType("XrTime") long value) { XrGeometryInstanceTransformFB.ntime(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@code pose} field. */ + public XrGeometryInstanceTransformFB.Buffer pose(XrPosef value) { XrGeometryInstanceTransformFB.npose(address(), value); return this; } + /** Passes the {@code pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrGeometryInstanceTransformFB.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrVector3f} to the {@code scale} field. */ + public XrGeometryInstanceTransformFB.Buffer scale(XrVector3f value) { XrGeometryInstanceTransformFB.nscale(address(), value); return this; } + /** Passes the {@code scale} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrGeometryInstanceTransformFB.Buffer scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGlobalDimmerFrameEndInfoML.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGlobalDimmerFrameEndInfoML.java index 9be216847f..edd5032d97 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGlobalDimmerFrameEndInfoML.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGlobalDimmerFrameEndInfoML.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Global Dimmer End Frame Information. * @@ -23,7 +23,7 @@ *
                                    *
                                  • The {@link MLGlobalDimmer XR_ML_global_dimmer} extension must be enabled prior to using {@link XrGlobalDimmerFrameEndInfoML}
                                  • *
                                  • {@code type} must be {@link MLGlobalDimmer#XR_TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML}
                                  • - *
                                  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                  • + *
                                  • {@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 XrGlobalDimmerFrameEndInfoFlagBitsML} values
                                  • *
                                  * @@ -36,8 +36,8 @@ * float {@link #dimmerValue}; * XrGlobalDimmerFrameEndInfoFlagsML {@link #flags}; * } - */ -public class XrGlobalDimmerFrameEndInfoML extends Struct implements NativeResource { + */ +public class XrGlobalDimmerFrameEndInfoML extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -47,27 +47,27 @@ public class XrGlobalDimmerFrameEndInfoML extends Structmay adjust the dimmerValue used during composition at the runtime’s discretion. This may be done for user safety, display performance, or other reasons. Values outside of the range are silently clamped. */ - public float dimmerValue() { return ndimmerValue(address()); } - /** a bitmask of {@code XrGlobalDimmerFrameEndInfoFlagsML} */ - @NativeType("XrGlobalDimmerFrameEndInfoFlagsML") - public long flags() { return nflags(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrGlobalDimmerFrameEndInfoML type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MLGlobalDimmer#XR_TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML} value to the {@link #type} field. */ - public XrGlobalDimmerFrameEndInfoML type$Default() { return type(MLGlobalDimmer.XR_TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML); } - /** Sets the specified value to the {@link #next} field. */ - public XrGlobalDimmerFrameEndInfoML next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #dimmerValue} field. */ - public XrGlobalDimmerFrameEndInfoML dimmerValue(float value) { ndimmerValue(address(), value); return this; } - /** Sets the specified value to the {@link #flags} field. */ - public XrGlobalDimmerFrameEndInfoML flags(@NativeType("XrGlobalDimmerFrameEndInfoFlagsML") long value) { nflags(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** a value between 0.0 (transparent) and 1.0 (opaque). The runtime may adjust the dimmerValue used during composition at the runtime’s discretion. This may be done for user safety, display performance, or other reasons. Values outside of the range are silently clamped. */ + public float dimmerValue() { return ndimmerValue(address()); } + /** a bitmask of {@code XrGlobalDimmerFrameEndInfoFlagsML} */ + @NativeType("XrGlobalDimmerFrameEndInfoFlagsML") + public long flags() { return nflags(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrGlobalDimmerFrameEndInfoML type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MLGlobalDimmer#XR_TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML} value to the {@link #type} field. */ + public XrGlobalDimmerFrameEndInfoML type$Default() { return type(MLGlobalDimmer.XR_TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML); } + /** Sets the specified value to the {@link #next} field. */ + public XrGlobalDimmerFrameEndInfoML next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #dimmerValue} field. */ + public XrGlobalDimmerFrameEndInfoML dimmerValue(float value) { ndimmerValue(address(), value); return this; } + /** Sets the specified value to the {@link #flags} field. */ + public XrGlobalDimmerFrameEndInfoML flags(@NativeType("XrGlobalDimmerFrameEndInfoFlagsML") long value) { nflags(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrGlobalDimmerFrameEndInfoML set( - int type, - long next, - float dimmerValue, + int type, + long next, + float dimmerValue, long flags - ) { - type(type); - next(next); - dimmerValue(dimmerValue); - flags(flags); + ) { + type(type); + next(next); + dimmerValue(dimmerValue); + flags(flags); return this; } @@ -253,26 +253,26 @@ public static XrGlobalDimmerFrameEndInfoML.Buffer calloc(int capacity, MemorySta } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrGlobalDimmerFrameEndInfoML.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrGlobalDimmerFrameEndInfoML.NEXT); } - /** Unsafe version of {@link #dimmerValue}. */ - public static float ndimmerValue(long struct) { return UNSAFE.getFloat(null, struct + XrGlobalDimmerFrameEndInfoML.DIMMERVALUE); } - /** Unsafe version of {@link #flags}. */ - public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrGlobalDimmerFrameEndInfoML.FLAGS); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrGlobalDimmerFrameEndInfoML.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrGlobalDimmerFrameEndInfoML.NEXT, value); } - /** Unsafe version of {@link #dimmerValue(float) dimmerValue}. */ - public static void ndimmerValue(long struct, float value) { UNSAFE.putFloat(null, struct + XrGlobalDimmerFrameEndInfoML.DIMMERVALUE, value); } - /** Unsafe version of {@link #flags(long) flags}. */ - public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrGlobalDimmerFrameEndInfoML.FLAGS, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrGlobalDimmerFrameEndInfoML.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrGlobalDimmerFrameEndInfoML.NEXT); } + /** Unsafe version of {@link #dimmerValue}. */ + public static float ndimmerValue(long struct) { return UNSAFE.getFloat(null, struct + XrGlobalDimmerFrameEndInfoML.DIMMERVALUE); } + /** Unsafe version of {@link #flags}. */ + public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrGlobalDimmerFrameEndInfoML.FLAGS); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrGlobalDimmerFrameEndInfoML.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrGlobalDimmerFrameEndInfoML.NEXT, value); } + /** Unsafe version of {@link #dimmerValue(float) dimmerValue}. */ + public static void ndimmerValue(long struct, float value) { UNSAFE.putFloat(null, struct + XrGlobalDimmerFrameEndInfoML.DIMMERVALUE, value); } + /** Unsafe version of {@link #flags(long) flags}. */ + public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrGlobalDimmerFrameEndInfoML.FLAGS, value); } + + // ----------------------------------- /** An array of {@link XrGlobalDimmerFrameEndInfoML} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -309,29 +309,29 @@ protected Buffer self() { protected XrGlobalDimmerFrameEndInfoML getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrGlobalDimmerFrameEndInfoML#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrGlobalDimmerFrameEndInfoML.ntype(address()); } - /** @return the value of the {@link XrGlobalDimmerFrameEndInfoML#next} field. */ - @NativeType("void const *") - public long next() { return XrGlobalDimmerFrameEndInfoML.nnext(address()); } - /** @return the value of the {@link XrGlobalDimmerFrameEndInfoML#dimmerValue} field. */ - public float dimmerValue() { return XrGlobalDimmerFrameEndInfoML.ndimmerValue(address()); } - /** @return the value of the {@link XrGlobalDimmerFrameEndInfoML#flags} field. */ - @NativeType("XrGlobalDimmerFrameEndInfoFlagsML") - public long flags() { return XrGlobalDimmerFrameEndInfoML.nflags(address()); } - - /** Sets the specified value to the {@link XrGlobalDimmerFrameEndInfoML#type} field. */ - public XrGlobalDimmerFrameEndInfoML.Buffer type(@NativeType("XrStructureType") int value) { XrGlobalDimmerFrameEndInfoML.ntype(address(), value); return this; } - /** Sets the {@link MLGlobalDimmer#XR_TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML} value to the {@link XrGlobalDimmerFrameEndInfoML#type} field. */ - public XrGlobalDimmerFrameEndInfoML.Buffer type$Default() { return type(MLGlobalDimmer.XR_TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML); } - /** Sets the specified value to the {@link XrGlobalDimmerFrameEndInfoML#next} field. */ - public XrGlobalDimmerFrameEndInfoML.Buffer next(@NativeType("void const *") long value) { XrGlobalDimmerFrameEndInfoML.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrGlobalDimmerFrameEndInfoML#dimmerValue} field. */ - public XrGlobalDimmerFrameEndInfoML.Buffer dimmerValue(float value) { XrGlobalDimmerFrameEndInfoML.ndimmerValue(address(), value); return this; } - /** Sets the specified value to the {@link XrGlobalDimmerFrameEndInfoML#flags} field. */ - public XrGlobalDimmerFrameEndInfoML.Buffer flags(@NativeType("XrGlobalDimmerFrameEndInfoFlagsML") long value) { XrGlobalDimmerFrameEndInfoML.nflags(address(), value); return this; } + + /** @return the value of the {@link XrGlobalDimmerFrameEndInfoML#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrGlobalDimmerFrameEndInfoML.ntype(address()); } + /** @return the value of the {@link XrGlobalDimmerFrameEndInfoML#next} field. */ + @NativeType("void const *") + public long next() { return XrGlobalDimmerFrameEndInfoML.nnext(address()); } + /** @return the value of the {@link XrGlobalDimmerFrameEndInfoML#dimmerValue} field. */ + public float dimmerValue() { return XrGlobalDimmerFrameEndInfoML.ndimmerValue(address()); } + /** @return the value of the {@link XrGlobalDimmerFrameEndInfoML#flags} field. */ + @NativeType("XrGlobalDimmerFrameEndInfoFlagsML") + public long flags() { return XrGlobalDimmerFrameEndInfoML.nflags(address()); } + + /** Sets the specified value to the {@link XrGlobalDimmerFrameEndInfoML#type} field. */ + public XrGlobalDimmerFrameEndInfoML.Buffer type(@NativeType("XrStructureType") int value) { XrGlobalDimmerFrameEndInfoML.ntype(address(), value); return this; } + /** Sets the {@link MLGlobalDimmer#XR_TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML} value to the {@link XrGlobalDimmerFrameEndInfoML#type} field. */ + public XrGlobalDimmerFrameEndInfoML.Buffer type$Default() { return type(MLGlobalDimmer.XR_TYPE_GLOBAL_DIMMER_FRAME_END_INFO_ML); } + /** Sets the specified value to the {@link XrGlobalDimmerFrameEndInfoML#next} field. */ + public XrGlobalDimmerFrameEndInfoML.Buffer next(@NativeType("void const *") long value) { XrGlobalDimmerFrameEndInfoML.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrGlobalDimmerFrameEndInfoML#dimmerValue} field. */ + public XrGlobalDimmerFrameEndInfoML.Buffer dimmerValue(float value) { XrGlobalDimmerFrameEndInfoML.ndimmerValue(address(), value); return this; } + /** Sets the specified value to the {@link XrGlobalDimmerFrameEndInfoML#flags} field. */ + public XrGlobalDimmerFrameEndInfoML.Buffer flags(@NativeType("XrGlobalDimmerFrameEndInfoFlagsML") long value) { XrGlobalDimmerFrameEndInfoML.nflags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingEGLMNDX.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingEGLMNDX.java index d8b28150b0..f17c903075 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingEGLMNDX.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingEGLMNDX.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import org.lwjgl.egl.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.egl.*; + /** * The graphics binding structure to be passed at session creation to EGL. * @@ -32,8 +32,8 @@ *
                                    *
                                  • The {@link MNDXEGLEnable XR_MNDX_egl_enable} extension must be enabled prior to using {@link XrGraphicsBindingEGLMNDX}
                                  • *
                                  • {@code type} must be {@link MNDXEGLEnable#XR_TYPE_GRAPHICS_BINDING_EGL_MNDX TYPE_GRAPHICS_BINDING_EGL_MNDX}
                                  • - *
                                  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                  • - *
                                  • {@code getProcAddress} must be a valid {@code PFN_xrEglGetProcAddressMNDX} value
                                  • + *
                                  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                  • + *
                                  • {@code getProcAddress} must be a valid {@code PFNEGLGETPROCADDRESSPROC} value
                                  • *
                                  • {@code display} must be a valid {@code EGLDisplay} value
                                  • *
                                  • {@code config} must be a valid {@code EGLConfig} value
                                  • *
                                  • {@code context} must be a valid {@code EGLContext} value
                                  • @@ -49,13 +49,12 @@ * struct XrGraphicsBindingEGLMNDX { * XrStructureType {@link #type}; * void const * {@link #next}; - * PFN_xrEglGetProcAddressMNDX {@link #getProcAddress}; * EGLDisplay {@link #display}; * EGLConfig {@link #config}; * EGLContext {@link #context}; * } - */ -public class XrGraphicsBindingEGLMNDX extends Struct implements NativeResource { + */ +public class XrGraphicsBindingEGLMNDX extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -65,33 +64,30 @@ public class XrGraphicsBindingEGLMNDX extends Struct i /** The struct member offsets. */ public static final int - TYPE, - NEXT, - GETPROCADDRESS, - DISPLAY, - CONFIG, - CONTEXT; + TYPE, + NEXT, + DISPLAY, + CONFIG, + CONTEXT; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(POINTER_SIZE), - __member(POINTER_SIZE), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(POINTER_SIZE), + __member(POINTER_SIZE), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - GETPROCADDRESS = layout.offsetof(2); - DISPLAY = layout.offsetof(3); - CONFIG = layout.offsetof(4); - CONTEXT = layout.offsetof(5); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + DISPLAY = layout.offsetof(2); + CONFIG = layout.offsetof(3); + CONTEXT = layout.offsetof(4); + } protected XrGraphicsBindingEGLMNDX(long address, @Nullable ByteBuffer container) { super(address, container); @@ -114,56 +110,49 @@ public XrGraphicsBindingEGLMNDX(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** a valid function pointer to {@code eglGetProcAddress}. */ - @NativeType("PFN_xrEglGetProcAddressMNDX") - public long getProcAddress() { return ngetProcAddress(address()); } - /** a valid EGL {@code EGLDisplay}. */ - @NativeType("EGLDisplay") - public long display() { return ndisplay(address()); } - /** a valid EGL {@code EGLConfig}. */ - @NativeType("EGLConfig") - public long config() { return nconfig(address()); } - /** a valid EGL {@code EGLContext}. */ - @NativeType("EGLContext") - public long context() { return ncontext(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrGraphicsBindingEGLMNDX type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MNDXEGLEnable#XR_TYPE_GRAPHICS_BINDING_EGL_MNDX TYPE_GRAPHICS_BINDING_EGL_MNDX} value to the {@link #type} field. */ - public XrGraphicsBindingEGLMNDX type$Default() { return type(MNDXEGLEnable.XR_TYPE_GRAPHICS_BINDING_EGL_MNDX); } - /** Sets the specified value to the {@link #next} field. */ - public XrGraphicsBindingEGLMNDX next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #getProcAddress} field. */ - public XrGraphicsBindingEGLMNDX getProcAddress(@NativeType("PFN_xrEglGetProcAddressMNDX") long value) { ngetProcAddress(address(), value); return this; } - /** Sets the specified value to the {@link #display} field. */ - public XrGraphicsBindingEGLMNDX display(@NativeType("EGLDisplay") long value) { ndisplay(address(), value); return this; } - /** Sets the specified value to the {@link #config} field. */ - public XrGraphicsBindingEGLMNDX config(@NativeType("EGLConfig") long value) { nconfig(address(), value); return this; } - /** Sets the specified value to the {@link #context} field. */ - public XrGraphicsBindingEGLMNDX context(@NativeType("EGLContext") long value) { ncontext(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** a valid EGL {@code EGLDisplay}. */ + @NativeType("EGLDisplay") + public long display() { return ndisplay(address()); } + /** a valid EGL {@code EGLConfig}. */ + @NativeType("EGLConfig") + public long config() { return nconfig(address()); } + /** a valid EGL {@code EGLContext}. */ + @NativeType("EGLContext") + public long context() { return ncontext(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrGraphicsBindingEGLMNDX type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MNDXEGLEnable#XR_TYPE_GRAPHICS_BINDING_EGL_MNDX TYPE_GRAPHICS_BINDING_EGL_MNDX} value to the {@link #type} field. */ + public XrGraphicsBindingEGLMNDX type$Default() { return type(MNDXEGLEnable.XR_TYPE_GRAPHICS_BINDING_EGL_MNDX); } + /** Sets the specified value to the {@link #next} field. */ + public XrGraphicsBindingEGLMNDX next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #display} field. */ + public XrGraphicsBindingEGLMNDX display(@NativeType("EGLDisplay") long value) { ndisplay(address(), value); return this; } + /** Sets the specified value to the {@link #config} field. */ + public XrGraphicsBindingEGLMNDX config(@NativeType("EGLConfig") long value) { nconfig(address(), value); return this; } + /** Sets the specified value to the {@link #context} field. */ + public XrGraphicsBindingEGLMNDX context(@NativeType("EGLContext") long value) { ncontext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrGraphicsBindingEGLMNDX set( - int type, - long next, - long getProcAddress, - long display, - long config, + int type, + long next, + long display, + long config, long context - ) { - type(type); - next(next); - getProcAddress(getProcAddress); - display(display); - config(config); - context(context); + ) { + type(type); + next(next); + display(display); + config(config); + context(context); return this; } @@ -292,32 +281,28 @@ public static XrGraphicsBindingEGLMNDX.Buffer calloc(int capacity, MemoryStack s } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrGraphicsBindingEGLMNDX.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrGraphicsBindingEGLMNDX.NEXT); } - /** Unsafe version of {@link #getProcAddress}. */ - public static long ngetProcAddress(long struct) { return memGetAddress(struct + XrGraphicsBindingEGLMNDX.GETPROCADDRESS); } - /** Unsafe version of {@link #display}. */ - public static long ndisplay(long struct) { return memGetAddress(struct + XrGraphicsBindingEGLMNDX.DISPLAY); } - /** Unsafe version of {@link #config}. */ - public static long nconfig(long struct) { return memGetAddress(struct + XrGraphicsBindingEGLMNDX.CONFIG); } - /** Unsafe version of {@link #context}. */ - public static long ncontext(long struct) { return memGetAddress(struct + XrGraphicsBindingEGLMNDX.CONTEXT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrGraphicsBindingEGLMNDX.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrGraphicsBindingEGLMNDX.NEXT, value); } - /** Unsafe version of {@link #getProcAddress(long) getProcAddress}. */ - public static void ngetProcAddress(long struct, long value) { memPutAddress(struct + XrGraphicsBindingEGLMNDX.GETPROCADDRESS, check(value)); } - /** Unsafe version of {@link #display(long) display}. */ - public static void ndisplay(long struct, long value) { memPutAddress(struct + XrGraphicsBindingEGLMNDX.DISPLAY, check(value)); } - /** Unsafe version of {@link #config(long) config}. */ - public static void nconfig(long struct, long value) { memPutAddress(struct + XrGraphicsBindingEGLMNDX.CONFIG, check(value)); } - /** Unsafe version of {@link #context(long) context}. */ - public static void ncontext(long struct, long value) { memPutAddress(struct + XrGraphicsBindingEGLMNDX.CONTEXT, check(value)); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrGraphicsBindingEGLMNDX.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrGraphicsBindingEGLMNDX.NEXT); } + /** Unsafe version of {@link #display}. */ + public static long ndisplay(long struct) { return memGetAddress(struct + XrGraphicsBindingEGLMNDX.DISPLAY); } + /** Unsafe version of {@link #config}. */ + public static long nconfig(long struct) { return memGetAddress(struct + XrGraphicsBindingEGLMNDX.CONFIG); } + /** Unsafe version of {@link #context}. */ + public static long ncontext(long struct) { return memGetAddress(struct + XrGraphicsBindingEGLMNDX.CONTEXT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrGraphicsBindingEGLMNDX.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrGraphicsBindingEGLMNDX.NEXT, value); } + /** Unsafe version of {@link #display(long) display}. */ + public static void ndisplay(long struct, long value) { memPutAddress(struct + XrGraphicsBindingEGLMNDX.DISPLAY, check(value)); } + /** Unsafe version of {@link #config(long) config}. */ + public static void nconfig(long struct, long value) { memPutAddress(struct + XrGraphicsBindingEGLMNDX.CONFIG, check(value)); } + /** Unsafe version of {@link #context(long) context}. */ + public static void ncontext(long struct, long value) { memPutAddress(struct + XrGraphicsBindingEGLMNDX.CONTEXT, check(value)); } /** * Validates pointer members that should not be {@code NULL}. @@ -325,13 +310,12 @@ public static XrGraphicsBindingEGLMNDX.Buffer calloc(int capacity, MemoryStack s * @param struct the struct to validate */ public static void validate(long struct) { - check(memGetAddress(struct + XrGraphicsBindingEGLMNDX.GETPROCADDRESS)); check(memGetAddress(struct + XrGraphicsBindingEGLMNDX.DISPLAY)); check(memGetAddress(struct + XrGraphicsBindingEGLMNDX.CONFIG)); check(memGetAddress(struct + XrGraphicsBindingEGLMNDX.CONTEXT)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrGraphicsBindingEGLMNDX} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -368,40 +352,35 @@ protected Buffer self() { protected XrGraphicsBindingEGLMNDX getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrGraphicsBindingEGLMNDX#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrGraphicsBindingEGLMNDX.ntype(address()); } - /** @return the value of the {@link XrGraphicsBindingEGLMNDX#next} field. */ - @NativeType("void const *") - public long next() { return XrGraphicsBindingEGLMNDX.nnext(address()); } - /** @return the value of the {@link XrGraphicsBindingEGLMNDX#getProcAddress} field. */ - @NativeType("PFN_xrEglGetProcAddressMNDX") - public long getProcAddress() { return XrGraphicsBindingEGLMNDX.ngetProcAddress(address()); } - /** @return the value of the {@link XrGraphicsBindingEGLMNDX#display} field. */ - @NativeType("EGLDisplay") - public long display() { return XrGraphicsBindingEGLMNDX.ndisplay(address()); } - /** @return the value of the {@link XrGraphicsBindingEGLMNDX#config} field. */ - @NativeType("EGLConfig") - public long config() { return XrGraphicsBindingEGLMNDX.nconfig(address()); } - /** @return the value of the {@link XrGraphicsBindingEGLMNDX#context} field. */ - @NativeType("EGLContext") - public long context() { return XrGraphicsBindingEGLMNDX.ncontext(address()); } - - /** Sets the specified value to the {@link XrGraphicsBindingEGLMNDX#type} field. */ - public XrGraphicsBindingEGLMNDX.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingEGLMNDX.ntype(address(), value); return this; } - /** Sets the {@link MNDXEGLEnable#XR_TYPE_GRAPHICS_BINDING_EGL_MNDX TYPE_GRAPHICS_BINDING_EGL_MNDX} value to the {@link XrGraphicsBindingEGLMNDX#type} field. */ - public XrGraphicsBindingEGLMNDX.Buffer type$Default() { return type(MNDXEGLEnable.XR_TYPE_GRAPHICS_BINDING_EGL_MNDX); } - /** Sets the specified value to the {@link XrGraphicsBindingEGLMNDX#next} field. */ - public XrGraphicsBindingEGLMNDX.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingEGLMNDX.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingEGLMNDX#getProcAddress} field. */ - public XrGraphicsBindingEGLMNDX.Buffer getProcAddress(@NativeType("PFN_xrEglGetProcAddressMNDX") long value) { XrGraphicsBindingEGLMNDX.ngetProcAddress(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingEGLMNDX#display} field. */ - public XrGraphicsBindingEGLMNDX.Buffer display(@NativeType("EGLDisplay") long value) { XrGraphicsBindingEGLMNDX.ndisplay(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingEGLMNDX#config} field. */ - public XrGraphicsBindingEGLMNDX.Buffer config(@NativeType("EGLConfig") long value) { XrGraphicsBindingEGLMNDX.nconfig(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingEGLMNDX#context} field. */ - public XrGraphicsBindingEGLMNDX.Buffer context(@NativeType("EGLContext") long value) { XrGraphicsBindingEGLMNDX.ncontext(address(), value); return this; } + + /** @return the value of the {@link XrGraphicsBindingEGLMNDX#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrGraphicsBindingEGLMNDX.ntype(address()); } + /** @return the value of the {@link XrGraphicsBindingEGLMNDX#next} field. */ + @NativeType("void const *") + public long next() { return XrGraphicsBindingEGLMNDX.nnext(address()); } + /** @return the value of the {@link XrGraphicsBindingEGLMNDX#display} field. */ + @NativeType("EGLDisplay") + public long display() { return XrGraphicsBindingEGLMNDX.ndisplay(address()); } + /** @return the value of the {@link XrGraphicsBindingEGLMNDX#config} field. */ + @NativeType("EGLConfig") + public long config() { return XrGraphicsBindingEGLMNDX.nconfig(address()); } + /** @return the value of the {@link XrGraphicsBindingEGLMNDX#context} field. */ + @NativeType("EGLContext") + public long context() { return XrGraphicsBindingEGLMNDX.ncontext(address()); } + + /** Sets the specified value to the {@link XrGraphicsBindingEGLMNDX#type} field. */ + public XrGraphicsBindingEGLMNDX.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingEGLMNDX.ntype(address(), value); return this; } + /** Sets the {@link MNDXEGLEnable#XR_TYPE_GRAPHICS_BINDING_EGL_MNDX TYPE_GRAPHICS_BINDING_EGL_MNDX} value to the {@link XrGraphicsBindingEGLMNDX#type} field. */ + public XrGraphicsBindingEGLMNDX.Buffer type$Default() { return type(MNDXEGLEnable.XR_TYPE_GRAPHICS_BINDING_EGL_MNDX); } + /** Sets the specified value to the {@link XrGraphicsBindingEGLMNDX#next} field. */ + public XrGraphicsBindingEGLMNDX.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingEGLMNDX.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingEGLMNDX#display} field. */ + public XrGraphicsBindingEGLMNDX.Buffer display(@NativeType("EGLDisplay") long value) { XrGraphicsBindingEGLMNDX.ndisplay(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingEGLMNDX#config} field. */ + public XrGraphicsBindingEGLMNDX.Buffer config(@NativeType("EGLConfig") long value) { XrGraphicsBindingEGLMNDX.nconfig(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingEGLMNDX#context} field. */ + public XrGraphicsBindingEGLMNDX.Buffer context(@NativeType("EGLContext") long value) { XrGraphicsBindingEGLMNDX.ncontext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLESAndroidKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLESAndroidKHR.java new file mode 100644 index 0000000000..f011a6fb95 --- /dev/null +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLESAndroidKHR.java @@ -0,0 +1,386 @@ +/* + * 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 org.lwjgl.egl.*; + +/** + * The graphics binding structure to be passed at session creation to use OpenGL ES on Android. + * + *
                                    Description
                                    + * + *

                                    When creating an OpenGL ES-backed {@code XrSession} on Android, the application will provide a pointer to an {@link XrGraphicsBindingOpenGLESAndroidKHR} structure in the {@code next} chain of the {@link XrSessionCreateInfo}.

                                    + * + *

                                    The required window system configuration define to expose this structure type is USE_PLATFORM_ANDROID.

                                    + * + *
                                    Valid Usage (Implicit)
                                    + * + *
                                      + *
                                    • The {@link KHROpenGLESEnable XR_KHR_opengl_es_enable} extension must be enabled prior to using {@link XrGraphicsBindingOpenGLESAndroidKHR}
                                    • + *
                                    • {@code type} must be {@link KHROpenGLESEnable#XR_TYPE_GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR TYPE_GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR}
                                    • + *
                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                    • + *
                                    • {@code display} must be a valid {@code EGLDisplay} value
                                    • + *
                                    • {@code config} must be a valid {@code EGLConfig} value
                                    • + *
                                    • {@code context} must be a valid {@code EGLContext} value
                                    • + *
                                    + * + *
                                    See Also
                                    + * + *

                                    {@link XR10#xrCreateSession CreateSession}

                                    + * + *

                                    Layout

                                    + * + *
                                    
                                    + * struct XrGraphicsBindingOpenGLESAndroidKHR {
                                    + *     XrStructureType {@link #type};
                                    + *     void const * {@link #next};
                                    + *     EGLDisplay {@link #display};
                                    + *     EGLConfig {@link #config};
                                    + *     EGLContext {@link #context};
                                    + * }
                                    + */ +public class XrGraphicsBindingOpenGLESAndroidKHR 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, + DISPLAY, + CONFIG, + CONTEXT; + + static { + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(POINTER_SIZE), + __member(POINTER_SIZE), + __member(POINTER_SIZE) + ); + + SIZEOF = layout.getSize(); + ALIGNOF = layout.getAlignment(); + + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + DISPLAY = layout.offsetof(2); + CONFIG = layout.offsetof(3); + CONTEXT = layout.offsetof(4); + } + + protected XrGraphicsBindingOpenGLESAndroidKHR(long address, @Nullable ByteBuffer container) { + super(address, container); + } + + @Override + protected XrGraphicsBindingOpenGLESAndroidKHR create(long address, @Nullable ByteBuffer container) { + return new XrGraphicsBindingOpenGLESAndroidKHR(address, container); + } + + /** + * Creates a {@code XrGraphicsBindingOpenGLESAndroidKHR} 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 XrGraphicsBindingOpenGLESAndroidKHR(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 valid Android OpenGL ES {@code EGLDisplay}. */ + @NativeType("EGLDisplay") + public long display() { return ndisplay(address()); } + /** a valid Android OpenGL ES {@code EGLConfig}. */ + @NativeType("EGLConfig") + public long config() { return nconfig(address()); } + /** a valid Android OpenGL ES {@code EGLContext}. */ + @NativeType("EGLContext") + public long context() { return ncontext(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrGraphicsBindingOpenGLESAndroidKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHROpenGLESEnable#XR_TYPE_GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR TYPE_GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR} value to the {@link #type} field. */ + public XrGraphicsBindingOpenGLESAndroidKHR type$Default() { return type(KHROpenGLESEnable.XR_TYPE_GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR); } + /** Sets the specified value to the {@link #next} field. */ + public XrGraphicsBindingOpenGLESAndroidKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #display} field. */ + public XrGraphicsBindingOpenGLESAndroidKHR display(@NativeType("EGLDisplay") long value) { ndisplay(address(), value); return this; } + /** Sets the specified value to the {@link #config} field. */ + public XrGraphicsBindingOpenGLESAndroidKHR config(@NativeType("EGLConfig") long value) { nconfig(address(), value); return this; } + /** Sets the specified value to the {@link #context} field. */ + public XrGraphicsBindingOpenGLESAndroidKHR context(@NativeType("EGLContext") long value) { ncontext(address(), value); return this; } + + /** Initializes this struct with the specified values. */ + public XrGraphicsBindingOpenGLESAndroidKHR set( + int type, + long next, + long display, + long config, + long context + ) { + type(type); + next(next); + display(display); + config(config); + context(context); + + return this; + } + + /** + * Copies the specified struct data to this struct. + * + * @param src the source struct + * + * @return this struct + */ + public XrGraphicsBindingOpenGLESAndroidKHR set(XrGraphicsBindingOpenGLESAndroidKHR src) { + memCopy(src.address(), address(), SIZEOF); + return this; + } + + // ----------------------------------- + + /** Returns a new {@code XrGraphicsBindingOpenGLESAndroidKHR} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ + public static XrGraphicsBindingOpenGLESAndroidKHR malloc() { + return new XrGraphicsBindingOpenGLESAndroidKHR(nmemAllocChecked(SIZEOF), null); + } + + /** Returns a new {@code XrGraphicsBindingOpenGLESAndroidKHR} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ + public static XrGraphicsBindingOpenGLESAndroidKHR calloc() { + return new XrGraphicsBindingOpenGLESAndroidKHR(nmemCallocChecked(1, SIZEOF), null); + } + + /** Returns a new {@code XrGraphicsBindingOpenGLESAndroidKHR} instance allocated with {@link BufferUtils}. */ + public static XrGraphicsBindingOpenGLESAndroidKHR create() { + ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); + return new XrGraphicsBindingOpenGLESAndroidKHR(memAddress(container), container); + } + + /** Returns a new {@code XrGraphicsBindingOpenGLESAndroidKHR} instance for the specified memory address. */ + public static XrGraphicsBindingOpenGLESAndroidKHR create(long address) { + return new XrGraphicsBindingOpenGLESAndroidKHR(address, null); + } + + /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ + @Nullable + public static XrGraphicsBindingOpenGLESAndroidKHR createSafe(long address) { + return address == NULL ? null : new XrGraphicsBindingOpenGLESAndroidKHR(address, null); + } + + /** + * Returns a new {@link XrGraphicsBindingOpenGLESAndroidKHR.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. + * + * @param capacity the buffer capacity + */ + public static XrGraphicsBindingOpenGLESAndroidKHR.Buffer malloc(int capacity) { + return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + } + + /** + * Returns a new {@link XrGraphicsBindingOpenGLESAndroidKHR.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. + * + * @param capacity the buffer capacity + */ + public static XrGraphicsBindingOpenGLESAndroidKHR.Buffer calloc(int capacity) { + return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + } + + /** + * Returns a new {@link XrGraphicsBindingOpenGLESAndroidKHR.Buffer} instance allocated with {@link BufferUtils}. + * + * @param capacity the buffer capacity + */ + public static XrGraphicsBindingOpenGLESAndroidKHR.Buffer create(int capacity) { + ByteBuffer container = __create(capacity, SIZEOF); + return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); + } + + /** + * Create a {@link XrGraphicsBindingOpenGLESAndroidKHR.Buffer} instance at the specified memory. + * + * @param address the memory address + * @param capacity the buffer capacity + */ + public static XrGraphicsBindingOpenGLESAndroidKHR.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 XrGraphicsBindingOpenGLESAndroidKHR.Buffer createSafe(long address, int capacity) { + return address == NULL ? null : new Buffer(address, capacity); + } + + /** + * Returns a new {@code XrGraphicsBindingOpenGLESAndroidKHR} instance allocated on the specified {@link MemoryStack}. + * + * @param stack the stack from which to allocate + */ + public static XrGraphicsBindingOpenGLESAndroidKHR malloc(MemoryStack stack) { + return new XrGraphicsBindingOpenGLESAndroidKHR(stack.nmalloc(ALIGNOF, SIZEOF), null); + } + + /** + * Returns a new {@code XrGraphicsBindingOpenGLESAndroidKHR} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. + * + * @param stack the stack from which to allocate + */ + public static XrGraphicsBindingOpenGLESAndroidKHR calloc(MemoryStack stack) { + return new XrGraphicsBindingOpenGLESAndroidKHR(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + } + + /** + * Returns a new {@link XrGraphicsBindingOpenGLESAndroidKHR.Buffer} instance allocated on the specified {@link MemoryStack}. + * + * @param stack the stack from which to allocate + * @param capacity the buffer capacity + */ + public static XrGraphicsBindingOpenGLESAndroidKHR.Buffer malloc(int capacity, MemoryStack stack) { + return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); + } + + /** + * Returns a new {@link XrGraphicsBindingOpenGLESAndroidKHR.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 XrGraphicsBindingOpenGLESAndroidKHR.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 + XrGraphicsBindingOpenGLESAndroidKHR.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrGraphicsBindingOpenGLESAndroidKHR.NEXT); } + /** Unsafe version of {@link #display}. */ + public static long ndisplay(long struct) { return memGetAddress(struct + XrGraphicsBindingOpenGLESAndroidKHR.DISPLAY); } + /** Unsafe version of {@link #config}. */ + public static long nconfig(long struct) { return memGetAddress(struct + XrGraphicsBindingOpenGLESAndroidKHR.CONFIG); } + /** Unsafe version of {@link #context}. */ + public static long ncontext(long struct) { return memGetAddress(struct + XrGraphicsBindingOpenGLESAndroidKHR.CONTEXT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrGraphicsBindingOpenGLESAndroidKHR.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrGraphicsBindingOpenGLESAndroidKHR.NEXT, value); } + /** Unsafe version of {@link #display(long) display}. */ + public static void ndisplay(long struct, long value) { memPutAddress(struct + XrGraphicsBindingOpenGLESAndroidKHR.DISPLAY, check(value)); } + /** Unsafe version of {@link #config(long) config}. */ + public static void nconfig(long struct, long value) { memPutAddress(struct + XrGraphicsBindingOpenGLESAndroidKHR.CONFIG, check(value)); } + /** Unsafe version of {@link #context(long) context}. */ + public static void ncontext(long struct, long value) { memPutAddress(struct + XrGraphicsBindingOpenGLESAndroidKHR.CONTEXT, check(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 + XrGraphicsBindingOpenGLESAndroidKHR.DISPLAY)); + check(memGetAddress(struct + XrGraphicsBindingOpenGLESAndroidKHR.CONFIG)); + check(memGetAddress(struct + XrGraphicsBindingOpenGLESAndroidKHR.CONTEXT)); + } + + // ----------------------------------- + + /** An array of {@link XrGraphicsBindingOpenGLESAndroidKHR} structs. */ + public static class Buffer extends StructBuffer implements NativeResource { + + private static final XrGraphicsBindingOpenGLESAndroidKHR ELEMENT_FACTORY = XrGraphicsBindingOpenGLESAndroidKHR.create(-1L); + + /** + * Creates a new {@code XrGraphicsBindingOpenGLESAndroidKHR.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 XrGraphicsBindingOpenGLESAndroidKHR#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 XrGraphicsBindingOpenGLESAndroidKHR getElementFactory() { + return ELEMENT_FACTORY; + } + + /** @return the value of the {@link XrGraphicsBindingOpenGLESAndroidKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrGraphicsBindingOpenGLESAndroidKHR.ntype(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLESAndroidKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrGraphicsBindingOpenGLESAndroidKHR.nnext(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLESAndroidKHR#display} field. */ + @NativeType("EGLDisplay") + public long display() { return XrGraphicsBindingOpenGLESAndroidKHR.ndisplay(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLESAndroidKHR#config} field. */ + @NativeType("EGLConfig") + public long config() { return XrGraphicsBindingOpenGLESAndroidKHR.nconfig(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLESAndroidKHR#context} field. */ + @NativeType("EGLContext") + public long context() { return XrGraphicsBindingOpenGLESAndroidKHR.ncontext(address()); } + + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLESAndroidKHR#type} field. */ + public XrGraphicsBindingOpenGLESAndroidKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingOpenGLESAndroidKHR.ntype(address(), value); return this; } + /** Sets the {@link KHROpenGLESEnable#XR_TYPE_GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR TYPE_GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR} value to the {@link XrGraphicsBindingOpenGLESAndroidKHR#type} field. */ + public XrGraphicsBindingOpenGLESAndroidKHR.Buffer type$Default() { return type(KHROpenGLESEnable.XR_TYPE_GRAPHICS_BINDING_OPENGL_ES_ANDROID_KHR); } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLESAndroidKHR#next} field. */ + public XrGraphicsBindingOpenGLESAndroidKHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingOpenGLESAndroidKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLESAndroidKHR#display} field. */ + public XrGraphicsBindingOpenGLESAndroidKHR.Buffer display(@NativeType("EGLDisplay") long value) { XrGraphicsBindingOpenGLESAndroidKHR.ndisplay(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLESAndroidKHR#config} field. */ + public XrGraphicsBindingOpenGLESAndroidKHR.Buffer config(@NativeType("EGLConfig") long value) { XrGraphicsBindingOpenGLESAndroidKHR.nconfig(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLESAndroidKHR#context} field. */ + public XrGraphicsBindingOpenGLESAndroidKHR.Buffer context(@NativeType("EGLContext") long value) { XrGraphicsBindingOpenGLESAndroidKHR.ncontext(address(), value); return this; } + + } + +} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLWaylandKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLWaylandKHR.java index a07bf96aa5..d080e80ed8 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLWaylandKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLWaylandKHR.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The graphics binding structure to be passed at session creation to use OpenGL on Wayland. * @@ -30,7 +30,7 @@ *
                                      *
                                    • The {@link KHROpenGLEnable XR_KHR_opengl_enable} extension must be enabled prior to using {@link XrGraphicsBindingOpenGLWaylandKHR}
                                    • *
                                    • {@code type} must be {@link KHROpenGLEnable#XR_TYPE_GRAPHICS_BINDING_OPENGL_WAYLAND_KHR TYPE_GRAPHICS_BINDING_OPENGL_WAYLAND_KHR}
                                    • - *
                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                    • + *
                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                    • *
                                    • {@code display} must be a pointer to a {@code wl_display} value
                                    • *
                                    * @@ -46,8 +46,8 @@ * void const * {@link #next}; * struct wl_display * {@link #display}; * } - */ -public class XrGraphicsBindingOpenGLWaylandKHR extends Struct implements NativeResource { + */ +public class XrGraphicsBindingOpenGLWaylandKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,24 +57,24 @@ public class XrGraphicsBindingOpenGLWaylandKHR extends Struct implements NativeResource { @@ -315,25 +315,25 @@ protected Buffer self() { protected XrGraphicsBindingOpenGLWaylandKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrGraphicsBindingOpenGLWaylandKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrGraphicsBindingOpenGLWaylandKHR.ntype(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLWaylandKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrGraphicsBindingOpenGLWaylandKHR.nnext(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLWaylandKHR#display} field. */ - @NativeType("struct wl_display *") - public long display() { return XrGraphicsBindingOpenGLWaylandKHR.ndisplay(address()); } - - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWaylandKHR#type} field. */ - public XrGraphicsBindingOpenGLWaylandKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingOpenGLWaylandKHR.ntype(address(), value); return this; } - /** Sets the {@link KHROpenGLEnable#XR_TYPE_GRAPHICS_BINDING_OPENGL_WAYLAND_KHR TYPE_GRAPHICS_BINDING_OPENGL_WAYLAND_KHR} value to the {@link XrGraphicsBindingOpenGLWaylandKHR#type} field. */ - public XrGraphicsBindingOpenGLWaylandKHR.Buffer type$Default() { return type(KHROpenGLEnable.XR_TYPE_GRAPHICS_BINDING_OPENGL_WAYLAND_KHR); } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWaylandKHR#next} field. */ - public XrGraphicsBindingOpenGLWaylandKHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingOpenGLWaylandKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWaylandKHR#display} field. */ - public XrGraphicsBindingOpenGLWaylandKHR.Buffer display(@NativeType("struct wl_display *") long value) { XrGraphicsBindingOpenGLWaylandKHR.ndisplay(address(), value); return this; } + + /** @return the value of the {@link XrGraphicsBindingOpenGLWaylandKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrGraphicsBindingOpenGLWaylandKHR.ntype(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLWaylandKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrGraphicsBindingOpenGLWaylandKHR.nnext(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLWaylandKHR#display} field. */ + @NativeType("struct wl_display *") + public long display() { return XrGraphicsBindingOpenGLWaylandKHR.ndisplay(address()); } + + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWaylandKHR#type} field. */ + public XrGraphicsBindingOpenGLWaylandKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingOpenGLWaylandKHR.ntype(address(), value); return this; } + /** Sets the {@link KHROpenGLEnable#XR_TYPE_GRAPHICS_BINDING_OPENGL_WAYLAND_KHR TYPE_GRAPHICS_BINDING_OPENGL_WAYLAND_KHR} value to the {@link XrGraphicsBindingOpenGLWaylandKHR#type} field. */ + public XrGraphicsBindingOpenGLWaylandKHR.Buffer type$Default() { return type(KHROpenGLEnable.XR_TYPE_GRAPHICS_BINDING_OPENGL_WAYLAND_KHR); } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWaylandKHR#next} field. */ + public XrGraphicsBindingOpenGLWaylandKHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingOpenGLWaylandKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWaylandKHR#display} field. */ + public XrGraphicsBindingOpenGLWaylandKHR.Buffer display(@NativeType("struct wl_display *") long value) { XrGraphicsBindingOpenGLWaylandKHR.ndisplay(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLWin32KHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLWin32KHR.java index 58d8a5db6b..362f97f5be 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLWin32KHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLWin32KHR.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import org.lwjgl.system.windows.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.system.windows.*; + /** * The graphics binding structure to be passed at session creation to use OpenGL on Windows. * @@ -32,7 +32,7 @@ *
                                      *
                                    • The {@link KHROpenGLEnable XR_KHR_opengl_enable} extension must be enabled prior to using {@link XrGraphicsBindingOpenGLWin32KHR}
                                    • *
                                    • {@code type} must be {@link KHROpenGLEnable#XR_TYPE_GRAPHICS_BINDING_OPENGL_WIN32_KHR TYPE_GRAPHICS_BINDING_OPENGL_WIN32_KHR}
                                    • - *
                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                    • + *
                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                    • *
                                    • {@code hDC} must be a valid {@code HDC} value
                                    • *
                                    • {@code hGLRC} must be a valid {@code HGLRC} value
                                    • *
                                    @@ -50,8 +50,8 @@ * HDC {@link #hDC}; * HGLRC {@link #hGLRC}; * } - */ -public class XrGraphicsBindingOpenGLWin32KHR extends Struct implements NativeResource { + */ +public class XrGraphicsBindingOpenGLWin32KHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -61,27 +61,27 @@ public class XrGraphicsBindingOpenGLWin32KHR extends Struct implements NativeResource { @@ -334,30 +334,30 @@ protected Buffer self() { protected XrGraphicsBindingOpenGLWin32KHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrGraphicsBindingOpenGLWin32KHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrGraphicsBindingOpenGLWin32KHR.ntype(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLWin32KHR#next} field. */ - @NativeType("void const *") - public long next() { return XrGraphicsBindingOpenGLWin32KHR.nnext(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLWin32KHR#hDC} field. */ - @NativeType("HDC") - public long hDC() { return XrGraphicsBindingOpenGLWin32KHR.nhDC(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLWin32KHR#hGLRC} field. */ - @NativeType("HGLRC") - public long hGLRC() { return XrGraphicsBindingOpenGLWin32KHR.nhGLRC(address()); } - - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWin32KHR#type} field. */ - public XrGraphicsBindingOpenGLWin32KHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingOpenGLWin32KHR.ntype(address(), value); return this; } - /** Sets the {@link KHROpenGLEnable#XR_TYPE_GRAPHICS_BINDING_OPENGL_WIN32_KHR TYPE_GRAPHICS_BINDING_OPENGL_WIN32_KHR} value to the {@link XrGraphicsBindingOpenGLWin32KHR#type} field. */ - public XrGraphicsBindingOpenGLWin32KHR.Buffer type$Default() { return type(KHROpenGLEnable.XR_TYPE_GRAPHICS_BINDING_OPENGL_WIN32_KHR); } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWin32KHR#next} field. */ - public XrGraphicsBindingOpenGLWin32KHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingOpenGLWin32KHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWin32KHR#hDC} field. */ - public XrGraphicsBindingOpenGLWin32KHR.Buffer hDC(@NativeType("HDC") long value) { XrGraphicsBindingOpenGLWin32KHR.nhDC(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWin32KHR#hGLRC} field. */ - public XrGraphicsBindingOpenGLWin32KHR.Buffer hGLRC(@NativeType("HGLRC") long value) { XrGraphicsBindingOpenGLWin32KHR.nhGLRC(address(), value); return this; } + + /** @return the value of the {@link XrGraphicsBindingOpenGLWin32KHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrGraphicsBindingOpenGLWin32KHR.ntype(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLWin32KHR#next} field. */ + @NativeType("void const *") + public long next() { return XrGraphicsBindingOpenGLWin32KHR.nnext(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLWin32KHR#hDC} field. */ + @NativeType("HDC") + public long hDC() { return XrGraphicsBindingOpenGLWin32KHR.nhDC(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLWin32KHR#hGLRC} field. */ + @NativeType("HGLRC") + public long hGLRC() { return XrGraphicsBindingOpenGLWin32KHR.nhGLRC(address()); } + + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWin32KHR#type} field. */ + public XrGraphicsBindingOpenGLWin32KHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingOpenGLWin32KHR.ntype(address(), value); return this; } + /** Sets the {@link KHROpenGLEnable#XR_TYPE_GRAPHICS_BINDING_OPENGL_WIN32_KHR TYPE_GRAPHICS_BINDING_OPENGL_WIN32_KHR} value to the {@link XrGraphicsBindingOpenGLWin32KHR#type} field. */ + public XrGraphicsBindingOpenGLWin32KHR.Buffer type$Default() { return type(KHROpenGLEnable.XR_TYPE_GRAPHICS_BINDING_OPENGL_WIN32_KHR); } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWin32KHR#next} field. */ + public XrGraphicsBindingOpenGLWin32KHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingOpenGLWin32KHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWin32KHR#hDC} field. */ + public XrGraphicsBindingOpenGLWin32KHR.Buffer hDC(@NativeType("HDC") long value) { XrGraphicsBindingOpenGLWin32KHR.nhDC(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLWin32KHR#hGLRC} field. */ + public XrGraphicsBindingOpenGLWin32KHR.Buffer hGLRC(@NativeType("HGLRC") long value) { XrGraphicsBindingOpenGLWin32KHR.nhGLRC(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLXcbKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLXcbKHR.java index b377758d4a..4b34288629 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLXcbKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLXcbKHR.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The graphics binding structure to be passed at session creation to use OpenGL on X11 via XCB. * @@ -30,7 +30,7 @@ *
                                      *
                                    • The {@link KHROpenGLEnable XR_KHR_opengl_enable} extension must be enabled prior to using {@link XrGraphicsBindingOpenGLXcbKHR}
                                    • *
                                    • {@code type} must be {@link KHROpenGLEnable#XR_TYPE_GRAPHICS_BINDING_OPENGL_XCB_KHR TYPE_GRAPHICS_BINDING_OPENGL_XCB_KHR}
                                    • - *
                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                    • + *
                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                    • *
                                    • {@code connection} must be a pointer to an {@code xcb_connection_t} value
                                    • *
                                    • {@code fbconfigid} must be a valid {@code xcb_glx_fbconfig_t} value
                                    • *
                                    • {@code visualid} must be a valid {@code xcb_visualid_t} value
                                    • @@ -55,8 +55,8 @@ * xcb_glx_drawable_t {@link #glxDrawable}; * xcb_glx_context_t {@link #glxContext}; * } - */ -public class XrGraphicsBindingOpenGLXcbKHR extends Struct implements NativeResource { + */ +public class XrGraphicsBindingOpenGLXcbKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -66,39 +66,39 @@ public class XrGraphicsBindingOpenGLXcbKHR extends Struct implements NativeResource { @@ -394,50 +394,50 @@ protected Buffer self() { protected XrGraphicsBindingOpenGLXcbKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrGraphicsBindingOpenGLXcbKHR.ntype(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrGraphicsBindingOpenGLXcbKHR.nnext(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#connection} field. */ - @NativeType("xcb_connection_t *") - public long connection() { return XrGraphicsBindingOpenGLXcbKHR.nconnection(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#screenNumber} field. */ - @NativeType("uint32_t") - public int screenNumber() { return XrGraphicsBindingOpenGLXcbKHR.nscreenNumber(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#fbconfigid} field. */ - @NativeType("xcb_glx_fbconfig_t") - public int fbconfigid() { return XrGraphicsBindingOpenGLXcbKHR.nfbconfigid(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#visualid} field. */ - @NativeType("xcb_visualid_t") - public int visualid() { return XrGraphicsBindingOpenGLXcbKHR.nvisualid(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#glxDrawable} field. */ - @NativeType("xcb_glx_drawable_t") - public int glxDrawable() { return XrGraphicsBindingOpenGLXcbKHR.nglxDrawable(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#glxContext} field. */ - @NativeType("xcb_glx_context_t") - public int glxContext() { return XrGraphicsBindingOpenGLXcbKHR.nglxContext(address()); } - - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#type} field. */ - public XrGraphicsBindingOpenGLXcbKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingOpenGLXcbKHR.ntype(address(), value); return this; } - /** Sets the {@link KHROpenGLEnable#XR_TYPE_GRAPHICS_BINDING_OPENGL_XCB_KHR TYPE_GRAPHICS_BINDING_OPENGL_XCB_KHR} value to the {@link XrGraphicsBindingOpenGLXcbKHR#type} field. */ - public XrGraphicsBindingOpenGLXcbKHR.Buffer type$Default() { return type(KHROpenGLEnable.XR_TYPE_GRAPHICS_BINDING_OPENGL_XCB_KHR); } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#next} field. */ - public XrGraphicsBindingOpenGLXcbKHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingOpenGLXcbKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#connection} field. */ - public XrGraphicsBindingOpenGLXcbKHR.Buffer connection(@NativeType("xcb_connection_t *") long value) { XrGraphicsBindingOpenGLXcbKHR.nconnection(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#screenNumber} field. */ - public XrGraphicsBindingOpenGLXcbKHR.Buffer screenNumber(@NativeType("uint32_t") int value) { XrGraphicsBindingOpenGLXcbKHR.nscreenNumber(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#fbconfigid} field. */ - public XrGraphicsBindingOpenGLXcbKHR.Buffer fbconfigid(@NativeType("xcb_glx_fbconfig_t") int value) { XrGraphicsBindingOpenGLXcbKHR.nfbconfigid(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#visualid} field. */ - public XrGraphicsBindingOpenGLXcbKHR.Buffer visualid(@NativeType("xcb_visualid_t") int value) { XrGraphicsBindingOpenGLXcbKHR.nvisualid(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#glxDrawable} field. */ - public XrGraphicsBindingOpenGLXcbKHR.Buffer glxDrawable(@NativeType("xcb_glx_drawable_t") int value) { XrGraphicsBindingOpenGLXcbKHR.nglxDrawable(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#glxContext} field. */ - public XrGraphicsBindingOpenGLXcbKHR.Buffer glxContext(@NativeType("xcb_glx_context_t") int value) { XrGraphicsBindingOpenGLXcbKHR.nglxContext(address(), value); return this; } + + /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrGraphicsBindingOpenGLXcbKHR.ntype(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrGraphicsBindingOpenGLXcbKHR.nnext(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#connection} field. */ + @NativeType("xcb_connection_t *") + public long connection() { return XrGraphicsBindingOpenGLXcbKHR.nconnection(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#screenNumber} field. */ + @NativeType("uint32_t") + public int screenNumber() { return XrGraphicsBindingOpenGLXcbKHR.nscreenNumber(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#fbconfigid} field. */ + @NativeType("xcb_glx_fbconfig_t") + public int fbconfigid() { return XrGraphicsBindingOpenGLXcbKHR.nfbconfigid(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#visualid} field. */ + @NativeType("xcb_visualid_t") + public int visualid() { return XrGraphicsBindingOpenGLXcbKHR.nvisualid(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#glxDrawable} field. */ + @NativeType("xcb_glx_drawable_t") + public int glxDrawable() { return XrGraphicsBindingOpenGLXcbKHR.nglxDrawable(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLXcbKHR#glxContext} field. */ + @NativeType("xcb_glx_context_t") + public int glxContext() { return XrGraphicsBindingOpenGLXcbKHR.nglxContext(address()); } + + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#type} field. */ + public XrGraphicsBindingOpenGLXcbKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingOpenGLXcbKHR.ntype(address(), value); return this; } + /** Sets the {@link KHROpenGLEnable#XR_TYPE_GRAPHICS_BINDING_OPENGL_XCB_KHR TYPE_GRAPHICS_BINDING_OPENGL_XCB_KHR} value to the {@link XrGraphicsBindingOpenGLXcbKHR#type} field. */ + public XrGraphicsBindingOpenGLXcbKHR.Buffer type$Default() { return type(KHROpenGLEnable.XR_TYPE_GRAPHICS_BINDING_OPENGL_XCB_KHR); } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#next} field. */ + public XrGraphicsBindingOpenGLXcbKHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingOpenGLXcbKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#connection} field. */ + public XrGraphicsBindingOpenGLXcbKHR.Buffer connection(@NativeType("xcb_connection_t *") long value) { XrGraphicsBindingOpenGLXcbKHR.nconnection(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#screenNumber} field. */ + public XrGraphicsBindingOpenGLXcbKHR.Buffer screenNumber(@NativeType("uint32_t") int value) { XrGraphicsBindingOpenGLXcbKHR.nscreenNumber(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#fbconfigid} field. */ + public XrGraphicsBindingOpenGLXcbKHR.Buffer fbconfigid(@NativeType("xcb_glx_fbconfig_t") int value) { XrGraphicsBindingOpenGLXcbKHR.nfbconfigid(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#visualid} field. */ + public XrGraphicsBindingOpenGLXcbKHR.Buffer visualid(@NativeType("xcb_visualid_t") int value) { XrGraphicsBindingOpenGLXcbKHR.nvisualid(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#glxDrawable} field. */ + public XrGraphicsBindingOpenGLXcbKHR.Buffer glxDrawable(@NativeType("xcb_glx_drawable_t") int value) { XrGraphicsBindingOpenGLXcbKHR.nglxDrawable(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXcbKHR#glxContext} field. */ + public XrGraphicsBindingOpenGLXcbKHR.Buffer glxContext(@NativeType("xcb_glx_context_t") int value) { XrGraphicsBindingOpenGLXcbKHR.nglxContext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLXlibKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLXlibKHR.java index 760070686f..36bb9434e2 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLXlibKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingOpenGLXlibKHR.java @@ -4,21 +4,21 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import org.lwjgl.system.linux.*; -import org.lwjgl.opengl.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.system.linux.*; +import org.lwjgl.opengl.*; + /** * The graphics binding structure to be passed at session creation to use OpenGL on X11 via Xlib. * @@ -33,7 +33,7 @@ *
                                        *
                                      • The {@link KHROpenGLEnable XR_KHR_opengl_enable} extension must be enabled prior to using {@link XrGraphicsBindingOpenGLXlibKHR}
                                      • *
                                      • {@code type} must be {@link KHROpenGLEnable#XR_TYPE_GRAPHICS_BINDING_OPENGL_XLIB_KHR TYPE_GRAPHICS_BINDING_OPENGL_XLIB_KHR}
                                      • - *
                                      • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                      • + *
                                      • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                      • *
                                      • {@code xDisplay} must be a pointer to a {@code Display} value
                                      • *
                                      • {@code glxFBConfig} must be a valid {@code GLXFBConfig} value
                                      • *
                                      • {@code glxDrawable} must be a valid {@code GLXDrawable} value
                                      • @@ -56,8 +56,8 @@ * GLXDrawable {@link #glxDrawable}; * GLXContext {@link #glxContext}; * } - */ -public class XrGraphicsBindingOpenGLXlibKHR extends Struct implements NativeResource { + */ +public class XrGraphicsBindingOpenGLXlibKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -67,36 +67,36 @@ public class XrGraphicsBindingOpenGLXlibKHR extends Struct implements NativeResource { @@ -384,45 +384,45 @@ protected Buffer self() { protected XrGraphicsBindingOpenGLXlibKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrGraphicsBindingOpenGLXlibKHR.ntype(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrGraphicsBindingOpenGLXlibKHR.nnext(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#xDisplay} field. */ - @NativeType("Display *") - public long xDisplay() { return XrGraphicsBindingOpenGLXlibKHR.nxDisplay(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#visualid} field. */ - @NativeType("uint32_t") - public int visualid() { return XrGraphicsBindingOpenGLXlibKHR.nvisualid(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#glxFBConfig} field. */ - @NativeType("GLXFBConfig") - public long glxFBConfig() { return XrGraphicsBindingOpenGLXlibKHR.nglxFBConfig(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#glxDrawable} field. */ - @NativeType("GLXDrawable") - public long glxDrawable() { return XrGraphicsBindingOpenGLXlibKHR.nglxDrawable(address()); } - /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#glxContext} field. */ - @NativeType("GLXContext") - public long glxContext() { return XrGraphicsBindingOpenGLXlibKHR.nglxContext(address()); } - - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#type} field. */ - public XrGraphicsBindingOpenGLXlibKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingOpenGLXlibKHR.ntype(address(), value); return this; } - /** Sets the {@link KHROpenGLEnable#XR_TYPE_GRAPHICS_BINDING_OPENGL_XLIB_KHR TYPE_GRAPHICS_BINDING_OPENGL_XLIB_KHR} value to the {@link XrGraphicsBindingOpenGLXlibKHR#type} field. */ - public XrGraphicsBindingOpenGLXlibKHR.Buffer type$Default() { return type(KHROpenGLEnable.XR_TYPE_GRAPHICS_BINDING_OPENGL_XLIB_KHR); } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#next} field. */ - public XrGraphicsBindingOpenGLXlibKHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingOpenGLXlibKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#xDisplay} field. */ - public XrGraphicsBindingOpenGLXlibKHR.Buffer xDisplay(@NativeType("Display *") long value) { XrGraphicsBindingOpenGLXlibKHR.nxDisplay(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#visualid} field. */ - public XrGraphicsBindingOpenGLXlibKHR.Buffer visualid(@NativeType("uint32_t") int value) { XrGraphicsBindingOpenGLXlibKHR.nvisualid(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#glxFBConfig} field. */ - public XrGraphicsBindingOpenGLXlibKHR.Buffer glxFBConfig(@NativeType("GLXFBConfig") long value) { XrGraphicsBindingOpenGLXlibKHR.nglxFBConfig(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#glxDrawable} field. */ - public XrGraphicsBindingOpenGLXlibKHR.Buffer glxDrawable(@NativeType("GLXDrawable") long value) { XrGraphicsBindingOpenGLXlibKHR.nglxDrawable(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#glxContext} field. */ - public XrGraphicsBindingOpenGLXlibKHR.Buffer glxContext(@NativeType("GLXContext") long value) { XrGraphicsBindingOpenGLXlibKHR.nglxContext(address(), value); return this; } + + /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrGraphicsBindingOpenGLXlibKHR.ntype(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrGraphicsBindingOpenGLXlibKHR.nnext(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#xDisplay} field. */ + @NativeType("Display *") + public long xDisplay() { return XrGraphicsBindingOpenGLXlibKHR.nxDisplay(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#visualid} field. */ + @NativeType("uint32_t") + public int visualid() { return XrGraphicsBindingOpenGLXlibKHR.nvisualid(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#glxFBConfig} field. */ + @NativeType("GLXFBConfig") + public long glxFBConfig() { return XrGraphicsBindingOpenGLXlibKHR.nglxFBConfig(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#glxDrawable} field. */ + @NativeType("GLXDrawable") + public long glxDrawable() { return XrGraphicsBindingOpenGLXlibKHR.nglxDrawable(address()); } + /** @return the value of the {@link XrGraphicsBindingOpenGLXlibKHR#glxContext} field. */ + @NativeType("GLXContext") + public long glxContext() { return XrGraphicsBindingOpenGLXlibKHR.nglxContext(address()); } + + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#type} field. */ + public XrGraphicsBindingOpenGLXlibKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingOpenGLXlibKHR.ntype(address(), value); return this; } + /** Sets the {@link KHROpenGLEnable#XR_TYPE_GRAPHICS_BINDING_OPENGL_XLIB_KHR TYPE_GRAPHICS_BINDING_OPENGL_XLIB_KHR} value to the {@link XrGraphicsBindingOpenGLXlibKHR#type} field. */ + public XrGraphicsBindingOpenGLXlibKHR.Buffer type$Default() { return type(KHROpenGLEnable.XR_TYPE_GRAPHICS_BINDING_OPENGL_XLIB_KHR); } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#next} field. */ + public XrGraphicsBindingOpenGLXlibKHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingOpenGLXlibKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#xDisplay} field. */ + public XrGraphicsBindingOpenGLXlibKHR.Buffer xDisplay(@NativeType("Display *") long value) { XrGraphicsBindingOpenGLXlibKHR.nxDisplay(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#visualid} field. */ + public XrGraphicsBindingOpenGLXlibKHR.Buffer visualid(@NativeType("uint32_t") int value) { XrGraphicsBindingOpenGLXlibKHR.nvisualid(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#glxFBConfig} field. */ + public XrGraphicsBindingOpenGLXlibKHR.Buffer glxFBConfig(@NativeType("GLXFBConfig") long value) { XrGraphicsBindingOpenGLXlibKHR.nglxFBConfig(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#glxDrawable} field. */ + public XrGraphicsBindingOpenGLXlibKHR.Buffer glxDrawable(@NativeType("GLXDrawable") long value) { XrGraphicsBindingOpenGLXlibKHR.nglxDrawable(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingOpenGLXlibKHR#glxContext} field. */ + public XrGraphicsBindingOpenGLXlibKHR.Buffer glxContext(@NativeType("GLXContext") long value) { XrGraphicsBindingOpenGLXlibKHR.nglxContext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingVulkan2KHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingVulkan2KHR.java index 8418aa0d22..d72c72c361 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingVulkan2KHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingVulkan2KHR.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import org.lwjgl.vulkan.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.vulkan.*; + /** * See {@link XrGraphicsBindingVulkanKHR}. * @@ -33,8 +33,8 @@ * uint32_t queueFamilyIndex; * uint32_t queueIndex; * } - */ -public class XrGraphicsBindingVulkan2KHR extends XrGraphicsBindingVulkanKHR { + */ +public class XrGraphicsBindingVulkan2KHR extends XrGraphicsBindingVulkanKHR { protected XrGraphicsBindingVulkan2KHR(long address, @Nullable ByteBuffer container) { super(address, container); @@ -54,50 +54,50 @@ protected XrGraphicsBindingVulkan2KHR create(long address, @Nullable ByteBuffer public XrGraphicsBindingVulkan2KHR(ByteBuffer container) { super(container); } - - /** Sets the specified value to the {@code type} field. */ - @Override - public XrGraphicsBindingVulkan2KHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable#XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR TYPE_GRAPHICS_BINDING_VULKAN_KHR} value to the {@code type} field. */ - @Override - public XrGraphicsBindingVulkan2KHR type$Default() { return type(KHRVulkanEnable.XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR); } - /** Sets the specified value to the {@code next} field. */ - @Override - public XrGraphicsBindingVulkan2KHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@code instance} field. */ - @Override - public XrGraphicsBindingVulkan2KHR instance(VkInstance value) { ninstance(address(), value); return this; } - /** Sets the specified value to the {@code physicalDevice} field. */ - @Override - public XrGraphicsBindingVulkan2KHR physicalDevice(VkPhysicalDevice value) { nphysicalDevice(address(), value); return this; } - /** Sets the specified value to the {@code device} field. */ - @Override - public XrGraphicsBindingVulkan2KHR device(VkDevice value) { ndevice(address(), value); return this; } - /** Sets the specified value to the {@code queueFamilyIndex} field. */ - @Override - public XrGraphicsBindingVulkan2KHR queueFamilyIndex(@NativeType("uint32_t") int value) { nqueueFamilyIndex(address(), value); return this; } - /** Sets the specified value to the {@code queueIndex} field. */ - @Override - public XrGraphicsBindingVulkan2KHR queueIndex(@NativeType("uint32_t") int value) { nqueueIndex(address(), value); return this; } + + /** Sets the specified value to the {@code type} field. */ + @Override + public XrGraphicsBindingVulkan2KHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable#XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR TYPE_GRAPHICS_BINDING_VULKAN_KHR} value to the {@code type} field. */ + @Override + public XrGraphicsBindingVulkan2KHR type$Default() { return type(KHRVulkanEnable.XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR); } + /** Sets the specified value to the {@code next} field. */ + @Override + public XrGraphicsBindingVulkan2KHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@code instance} field. */ + @Override + public XrGraphicsBindingVulkan2KHR instance(VkInstance value) { ninstance(address(), value); return this; } + /** Sets the specified value to the {@code physicalDevice} field. */ + @Override + public XrGraphicsBindingVulkan2KHR physicalDevice(VkPhysicalDevice value) { nphysicalDevice(address(), value); return this; } + /** Sets the specified value to the {@code device} field. */ + @Override + public XrGraphicsBindingVulkan2KHR device(VkDevice value) { ndevice(address(), value); return this; } + /** Sets the specified value to the {@code queueFamilyIndex} field. */ + @Override + public XrGraphicsBindingVulkan2KHR queueFamilyIndex(@NativeType("uint32_t") int value) { nqueueFamilyIndex(address(), value); return this; } + /** Sets the specified value to the {@code queueIndex} field. */ + @Override + public XrGraphicsBindingVulkan2KHR queueIndex(@NativeType("uint32_t") int value) { nqueueIndex(address(), value); return this; } /** Initializes this struct with the specified values. */ @Override public XrGraphicsBindingVulkan2KHR set( - int type, - long next, - VkInstance instance, - VkPhysicalDevice physicalDevice, - VkDevice device, - int queueFamilyIndex, + int type, + long next, + VkInstance instance, + VkPhysicalDevice physicalDevice, + VkDevice device, + int queueFamilyIndex, int queueIndex - ) { - type(type); - next(next); - instance(instance); - physicalDevice(physicalDevice); - device(device); - queueFamilyIndex(queueFamilyIndex); - queueIndex(queueIndex); + ) { + type(type); + next(next); + instance(instance); + physicalDevice(physicalDevice); + device(device); + queueFamilyIndex(queueFamilyIndex); + queueIndex(queueIndex); return this; } @@ -225,7 +225,7 @@ public static XrGraphicsBindingVulkan2KHR.Buffer calloc(int capacity, MemoryStac return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrGraphicsBindingVulkan2KHR} structs. */ public static class Buffer extends XrGraphicsBindingVulkanKHR.Buffer { @@ -262,31 +262,31 @@ protected Buffer self() { protected XrGraphicsBindingVulkan2KHR getElementFactory() { return ELEMENT_FACTORY; } - - /** Sets the specified value to the {@code type} field. */ - @Override - public XrGraphicsBindingVulkan2KHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingVulkan2KHR.ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable#XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR TYPE_GRAPHICS_BINDING_VULKAN_KHR} value to the {@code type} field. */ - @Override - public XrGraphicsBindingVulkan2KHR.Buffer type$Default() { return type(KHRVulkanEnable.XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR); } - /** Sets the specified value to the {@code next} field. */ - @Override - public XrGraphicsBindingVulkan2KHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingVulkan2KHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@code instance} field. */ - @Override - public XrGraphicsBindingVulkan2KHR.Buffer instance(VkInstance value) { XrGraphicsBindingVulkan2KHR.ninstance(address(), value); return this; } - /** Sets the specified value to the {@code physicalDevice} field. */ - @Override - public XrGraphicsBindingVulkan2KHR.Buffer physicalDevice(VkPhysicalDevice value) { XrGraphicsBindingVulkan2KHR.nphysicalDevice(address(), value); return this; } - /** Sets the specified value to the {@code device} field. */ - @Override - public XrGraphicsBindingVulkan2KHR.Buffer device(VkDevice value) { XrGraphicsBindingVulkan2KHR.ndevice(address(), value); return this; } - /** Sets the specified value to the {@code queueFamilyIndex} field. */ - @Override - public XrGraphicsBindingVulkan2KHR.Buffer queueFamilyIndex(@NativeType("uint32_t") int value) { XrGraphicsBindingVulkan2KHR.nqueueFamilyIndex(address(), value); return this; } - /** Sets the specified value to the {@code queueIndex} field. */ - @Override - public XrGraphicsBindingVulkan2KHR.Buffer queueIndex(@NativeType("uint32_t") int value) { XrGraphicsBindingVulkan2KHR.nqueueIndex(address(), value); return this; } + + /** Sets the specified value to the {@code type} field. */ + @Override + public XrGraphicsBindingVulkan2KHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingVulkan2KHR.ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable#XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR TYPE_GRAPHICS_BINDING_VULKAN_KHR} value to the {@code type} field. */ + @Override + public XrGraphicsBindingVulkan2KHR.Buffer type$Default() { return type(KHRVulkanEnable.XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR); } + /** Sets the specified value to the {@code next} field. */ + @Override + public XrGraphicsBindingVulkan2KHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingVulkan2KHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@code instance} field. */ + @Override + public XrGraphicsBindingVulkan2KHR.Buffer instance(VkInstance value) { XrGraphicsBindingVulkan2KHR.ninstance(address(), value); return this; } + /** Sets the specified value to the {@code physicalDevice} field. */ + @Override + public XrGraphicsBindingVulkan2KHR.Buffer physicalDevice(VkPhysicalDevice value) { XrGraphicsBindingVulkan2KHR.nphysicalDevice(address(), value); return this; } + /** Sets the specified value to the {@code device} field. */ + @Override + public XrGraphicsBindingVulkan2KHR.Buffer device(VkDevice value) { XrGraphicsBindingVulkan2KHR.ndevice(address(), value); return this; } + /** Sets the specified value to the {@code queueFamilyIndex} field. */ + @Override + public XrGraphicsBindingVulkan2KHR.Buffer queueFamilyIndex(@NativeType("uint32_t") int value) { XrGraphicsBindingVulkan2KHR.nqueueFamilyIndex(address(), value); return this; } + /** Sets the specified value to the {@code queueIndex} field. */ + @Override + public XrGraphicsBindingVulkan2KHR.Buffer queueIndex(@NativeType("uint32_t") int value) { XrGraphicsBindingVulkan2KHR.nqueueIndex(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingVulkanKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingVulkanKHR.java index 3a00a36710..ee45196bdf 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingVulkanKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsBindingVulkanKHR.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import org.lwjgl.vulkan.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.vulkan.*; + /** * The graphics binding structure to be passed at session creation to use Vulkan. * @@ -39,7 +39,7 @@ *
                                          *
                                        • The {@link KHRVulkanEnable XR_KHR_vulkan_enable} extension must be enabled prior to using {@link XrGraphicsBindingVulkanKHR}
                                        • *
                                        • {@code type} must be {@link KHRVulkanEnable#XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR TYPE_GRAPHICS_BINDING_VULKAN_KHR}
                                        • - *
                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                        • + *
                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                        • *
                                        • {@code instance} must be a valid {@code VkInstance} value
                                        • *
                                        • {@code physicalDevice} must be a valid {@code VkPhysicalDevice} value
                                        • *
                                        • {@code device} must be a valid {@code VkDevice} value
                                        • @@ -61,8 +61,8 @@ * uint32_t {@link #queueFamilyIndex}; * uint32_t {@link #queueIndex}; * } - */ -public class XrGraphicsBindingVulkanKHR extends Struct implements NativeResource { + */ +public class XrGraphicsBindingVulkanKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -72,36 +72,36 @@ public class XrGraphicsBindingVulkanKHR extends Struct implements NativeResource { @@ -388,45 +388,45 @@ protected Buffer self() { protected XrGraphicsBindingVulkanKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrGraphicsBindingVulkanKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrGraphicsBindingVulkanKHR.ntype(address()); } - /** @return the value of the {@link XrGraphicsBindingVulkanKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrGraphicsBindingVulkanKHR.nnext(address()); } - /** @return the value of the {@link XrGraphicsBindingVulkanKHR#instance} field. */ - @NativeType("VkInstance") - public long instance() { return XrGraphicsBindingVulkanKHR.ninstance(address()); } - /** @return the value of the {@link XrGraphicsBindingVulkanKHR#physicalDevice} field. */ - @NativeType("VkPhysicalDevice") - public long physicalDevice() { return XrGraphicsBindingVulkanKHR.nphysicalDevice(address()); } - /** @return the value of the {@link XrGraphicsBindingVulkanKHR#device} field. */ - @NativeType("VkDevice") - public long device() { return XrGraphicsBindingVulkanKHR.ndevice(address()); } - /** @return the value of the {@link XrGraphicsBindingVulkanKHR#queueFamilyIndex} field. */ - @NativeType("uint32_t") - public int queueFamilyIndex() { return XrGraphicsBindingVulkanKHR.nqueueFamilyIndex(address()); } - /** @return the value of the {@link XrGraphicsBindingVulkanKHR#queueIndex} field. */ - @NativeType("uint32_t") - public int queueIndex() { return XrGraphicsBindingVulkanKHR.nqueueIndex(address()); } - - /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#type} field. */ - public XrGraphicsBindingVulkanKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingVulkanKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable#XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR TYPE_GRAPHICS_BINDING_VULKAN_KHR} value to the {@link XrGraphicsBindingVulkanKHR#type} field. */ - public XrGraphicsBindingVulkanKHR.Buffer type$Default() { return type(KHRVulkanEnable.XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR); } - /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#next} field. */ - public XrGraphicsBindingVulkanKHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingVulkanKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#instance} field. */ - public XrGraphicsBindingVulkanKHR.Buffer instance(VkInstance value) { XrGraphicsBindingVulkanKHR.ninstance(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#physicalDevice} field. */ - public XrGraphicsBindingVulkanKHR.Buffer physicalDevice(VkPhysicalDevice value) { XrGraphicsBindingVulkanKHR.nphysicalDevice(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#device} field. */ - public XrGraphicsBindingVulkanKHR.Buffer device(VkDevice value) { XrGraphicsBindingVulkanKHR.ndevice(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#queueFamilyIndex} field. */ - public XrGraphicsBindingVulkanKHR.Buffer queueFamilyIndex(@NativeType("uint32_t") int value) { XrGraphicsBindingVulkanKHR.nqueueFamilyIndex(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#queueIndex} field. */ - public XrGraphicsBindingVulkanKHR.Buffer queueIndex(@NativeType("uint32_t") int value) { XrGraphicsBindingVulkanKHR.nqueueIndex(address(), value); return this; } + + /** @return the value of the {@link XrGraphicsBindingVulkanKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrGraphicsBindingVulkanKHR.ntype(address()); } + /** @return the value of the {@link XrGraphicsBindingVulkanKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrGraphicsBindingVulkanKHR.nnext(address()); } + /** @return the value of the {@link XrGraphicsBindingVulkanKHR#instance} field. */ + @NativeType("VkInstance") + public long instance() { return XrGraphicsBindingVulkanKHR.ninstance(address()); } + /** @return the value of the {@link XrGraphicsBindingVulkanKHR#physicalDevice} field. */ + @NativeType("VkPhysicalDevice") + public long physicalDevice() { return XrGraphicsBindingVulkanKHR.nphysicalDevice(address()); } + /** @return the value of the {@link XrGraphicsBindingVulkanKHR#device} field. */ + @NativeType("VkDevice") + public long device() { return XrGraphicsBindingVulkanKHR.ndevice(address()); } + /** @return the value of the {@link XrGraphicsBindingVulkanKHR#queueFamilyIndex} field. */ + @NativeType("uint32_t") + public int queueFamilyIndex() { return XrGraphicsBindingVulkanKHR.nqueueFamilyIndex(address()); } + /** @return the value of the {@link XrGraphicsBindingVulkanKHR#queueIndex} field. */ + @NativeType("uint32_t") + public int queueIndex() { return XrGraphicsBindingVulkanKHR.nqueueIndex(address()); } + + /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#type} field. */ + public XrGraphicsBindingVulkanKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsBindingVulkanKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable#XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR TYPE_GRAPHICS_BINDING_VULKAN_KHR} value to the {@link XrGraphicsBindingVulkanKHR#type} field. */ + public XrGraphicsBindingVulkanKHR.Buffer type$Default() { return type(KHRVulkanEnable.XR_TYPE_GRAPHICS_BINDING_VULKAN_KHR); } + /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#next} field. */ + public XrGraphicsBindingVulkanKHR.Buffer next(@NativeType("void const *") long value) { XrGraphicsBindingVulkanKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#instance} field. */ + public XrGraphicsBindingVulkanKHR.Buffer instance(VkInstance value) { XrGraphicsBindingVulkanKHR.ninstance(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#physicalDevice} field. */ + public XrGraphicsBindingVulkanKHR.Buffer physicalDevice(VkPhysicalDevice value) { XrGraphicsBindingVulkanKHR.nphysicalDevice(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#device} field. */ + public XrGraphicsBindingVulkanKHR.Buffer device(VkDevice value) { XrGraphicsBindingVulkanKHR.ndevice(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#queueFamilyIndex} field. */ + public XrGraphicsBindingVulkanKHR.Buffer queueFamilyIndex(@NativeType("uint32_t") int value) { XrGraphicsBindingVulkanKHR.nqueueFamilyIndex(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsBindingVulkanKHR#queueIndex} field. */ + public XrGraphicsBindingVulkanKHR.Buffer queueIndex(@NativeType("uint32_t") int value) { XrGraphicsBindingVulkanKHR.nqueueIndex(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsOpenGLESKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsOpenGLESKHR.java new file mode 100644 index 0000000000..c5f4e39136 --- /dev/null +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsOpenGLESKHR.java @@ -0,0 +1,347 @@ +/* + * 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.*; + +/** + * OpenGL ES API version requirements. + * + *
                                          Description
                                          + * + *

                                          {@link XrGraphicsRequirementsOpenGLESKHR} is populated by {@link KHROpenGLESEnable#xrGetOpenGLESGraphicsRequirementsKHR GetOpenGLESGraphicsRequirementsKHR} with the runtime’s OpenGL ES API version requirements.

                                          + * + *
                                          Valid Usage (Implicit)
                                          + * + *
                                            + *
                                          • The {@link KHROpenGLESEnable XR_KHR_opengl_es_enable} extension must be enabled prior to using {@link XrGraphicsRequirementsOpenGLESKHR}
                                          • + *
                                          • {@code type} must be {@link KHROpenGLESEnable#XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR TYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR}
                                          • + *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                          • + *
                                          + * + *
                                          See Also
                                          + * + *

                                          {@link KHROpenGLESEnable#xrGetOpenGLESGraphicsRequirementsKHR GetOpenGLESGraphicsRequirementsKHR}

                                          + * + *

                                          Layout

                                          + * + *
                                          
                                          + * struct XrGraphicsRequirementsOpenGLESKHR {
                                          + *     XrStructureType {@link #type};
                                          + *     void * {@link #next};
                                          + *     XrVersion {@link #minApiVersionSupported};
                                          + *     XrVersion {@link #maxApiVersionSupported};
                                          + * }
                                          + */ +public class XrGraphicsRequirementsOpenGLESKHR 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, + MINAPIVERSIONSUPPORTED, + MAXAPIVERSIONSUPPORTED; + + static { + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), + __member(8) + ); + + SIZEOF = layout.getSize(); + ALIGNOF = layout.getAlignment(); + + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + MINAPIVERSIONSUPPORTED = layout.offsetof(2); + MAXAPIVERSIONSUPPORTED = layout.offsetof(3); + } + + protected XrGraphicsRequirementsOpenGLESKHR(long address, @Nullable ByteBuffer container) { + super(address, container); + } + + @Override + protected XrGraphicsRequirementsOpenGLESKHR create(long address, @Nullable ByteBuffer container) { + return new XrGraphicsRequirementsOpenGLESKHR(address, container); + } + + /** + * Creates a {@code XrGraphicsRequirementsOpenGLESKHR} 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 XrGraphicsRequirementsOpenGLESKHR(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 minimum version of OpenGL ES that the runtime supports. Uses {@link XR10#XR_MAKE_VERSION} on major and minor API version, ignoring any patch version component. */ + @NativeType("XrVersion") + public long minApiVersionSupported() { return nminApiVersionSupported(address()); } + /** the maximum version of OpenGL ES that the runtime has been tested on and is known to support. Newer OpenGL ES versions might work if they are compatible. Uses {@link XR10#XR_MAKE_VERSION} on major and minor API version, ignoring any patch version component. */ + @NativeType("XrVersion") + public long maxApiVersionSupported() { return nmaxApiVersionSupported(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrGraphicsRequirementsOpenGLESKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHROpenGLESEnable#XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR TYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR} value to the {@link #type} field. */ + public XrGraphicsRequirementsOpenGLESKHR type$Default() { return type(KHROpenGLESEnable.XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR); } + /** Sets the specified value to the {@link #next} field. */ + public XrGraphicsRequirementsOpenGLESKHR next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #minApiVersionSupported} field. */ + public XrGraphicsRequirementsOpenGLESKHR minApiVersionSupported(@NativeType("XrVersion") long value) { nminApiVersionSupported(address(), value); return this; } + /** Sets the specified value to the {@link #maxApiVersionSupported} field. */ + public XrGraphicsRequirementsOpenGLESKHR maxApiVersionSupported(@NativeType("XrVersion") long value) { nmaxApiVersionSupported(address(), value); return this; } + + /** Initializes this struct with the specified values. */ + public XrGraphicsRequirementsOpenGLESKHR set( + int type, + long next, + long minApiVersionSupported, + long maxApiVersionSupported + ) { + type(type); + next(next); + minApiVersionSupported(minApiVersionSupported); + maxApiVersionSupported(maxApiVersionSupported); + + return this; + } + + /** + * Copies the specified struct data to this struct. + * + * @param src the source struct + * + * @return this struct + */ + public XrGraphicsRequirementsOpenGLESKHR set(XrGraphicsRequirementsOpenGLESKHR src) { + memCopy(src.address(), address(), SIZEOF); + return this; + } + + // ----------------------------------- + + /** Returns a new {@code XrGraphicsRequirementsOpenGLESKHR} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ + public static XrGraphicsRequirementsOpenGLESKHR malloc() { + return new XrGraphicsRequirementsOpenGLESKHR(nmemAllocChecked(SIZEOF), null); + } + + /** Returns a new {@code XrGraphicsRequirementsOpenGLESKHR} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ + public static XrGraphicsRequirementsOpenGLESKHR calloc() { + return new XrGraphicsRequirementsOpenGLESKHR(nmemCallocChecked(1, SIZEOF), null); + } + + /** Returns a new {@code XrGraphicsRequirementsOpenGLESKHR} instance allocated with {@link BufferUtils}. */ + public static XrGraphicsRequirementsOpenGLESKHR create() { + ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); + return new XrGraphicsRequirementsOpenGLESKHR(memAddress(container), container); + } + + /** Returns a new {@code XrGraphicsRequirementsOpenGLESKHR} instance for the specified memory address. */ + public static XrGraphicsRequirementsOpenGLESKHR create(long address) { + return new XrGraphicsRequirementsOpenGLESKHR(address, null); + } + + /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ + @Nullable + public static XrGraphicsRequirementsOpenGLESKHR createSafe(long address) { + return address == NULL ? null : new XrGraphicsRequirementsOpenGLESKHR(address, null); + } + + /** + * Returns a new {@link XrGraphicsRequirementsOpenGLESKHR.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. + * + * @param capacity the buffer capacity + */ + public static XrGraphicsRequirementsOpenGLESKHR.Buffer malloc(int capacity) { + return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + } + + /** + * Returns a new {@link XrGraphicsRequirementsOpenGLESKHR.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. + * + * @param capacity the buffer capacity + */ + public static XrGraphicsRequirementsOpenGLESKHR.Buffer calloc(int capacity) { + return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + } + + /** + * Returns a new {@link XrGraphicsRequirementsOpenGLESKHR.Buffer} instance allocated with {@link BufferUtils}. + * + * @param capacity the buffer capacity + */ + public static XrGraphicsRequirementsOpenGLESKHR.Buffer create(int capacity) { + ByteBuffer container = __create(capacity, SIZEOF); + return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); + } + + /** + * Create a {@link XrGraphicsRequirementsOpenGLESKHR.Buffer} instance at the specified memory. + * + * @param address the memory address + * @param capacity the buffer capacity + */ + public static XrGraphicsRequirementsOpenGLESKHR.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 XrGraphicsRequirementsOpenGLESKHR.Buffer createSafe(long address, int capacity) { + return address == NULL ? null : new Buffer(address, capacity); + } + + /** + * Returns a new {@code XrGraphicsRequirementsOpenGLESKHR} instance allocated on the specified {@link MemoryStack}. + * + * @param stack the stack from which to allocate + */ + public static XrGraphicsRequirementsOpenGLESKHR malloc(MemoryStack stack) { + return new XrGraphicsRequirementsOpenGLESKHR(stack.nmalloc(ALIGNOF, SIZEOF), null); + } + + /** + * Returns a new {@code XrGraphicsRequirementsOpenGLESKHR} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. + * + * @param stack the stack from which to allocate + */ + public static XrGraphicsRequirementsOpenGLESKHR calloc(MemoryStack stack) { + return new XrGraphicsRequirementsOpenGLESKHR(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + } + + /** + * Returns a new {@link XrGraphicsRequirementsOpenGLESKHR.Buffer} instance allocated on the specified {@link MemoryStack}. + * + * @param stack the stack from which to allocate + * @param capacity the buffer capacity + */ + public static XrGraphicsRequirementsOpenGLESKHR.Buffer malloc(int capacity, MemoryStack stack) { + return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); + } + + /** + * Returns a new {@link XrGraphicsRequirementsOpenGLESKHR.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 XrGraphicsRequirementsOpenGLESKHR.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 + XrGraphicsRequirementsOpenGLESKHR.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrGraphicsRequirementsOpenGLESKHR.NEXT); } + /** Unsafe version of {@link #minApiVersionSupported}. */ + public static long nminApiVersionSupported(long struct) { return UNSAFE.getLong(null, struct + XrGraphicsRequirementsOpenGLESKHR.MINAPIVERSIONSUPPORTED); } + /** Unsafe version of {@link #maxApiVersionSupported}. */ + public static long nmaxApiVersionSupported(long struct) { return UNSAFE.getLong(null, struct + XrGraphicsRequirementsOpenGLESKHR.MAXAPIVERSIONSUPPORTED); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrGraphicsRequirementsOpenGLESKHR.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrGraphicsRequirementsOpenGLESKHR.NEXT, value); } + /** Unsafe version of {@link #minApiVersionSupported(long) minApiVersionSupported}. */ + public static void nminApiVersionSupported(long struct, long value) { UNSAFE.putLong(null, struct + XrGraphicsRequirementsOpenGLESKHR.MINAPIVERSIONSUPPORTED, value); } + /** Unsafe version of {@link #maxApiVersionSupported(long) maxApiVersionSupported}. */ + public static void nmaxApiVersionSupported(long struct, long value) { UNSAFE.putLong(null, struct + XrGraphicsRequirementsOpenGLESKHR.MAXAPIVERSIONSUPPORTED, value); } + + // ----------------------------------- + + /** An array of {@link XrGraphicsRequirementsOpenGLESKHR} structs. */ + public static class Buffer extends StructBuffer implements NativeResource { + + private static final XrGraphicsRequirementsOpenGLESKHR ELEMENT_FACTORY = XrGraphicsRequirementsOpenGLESKHR.create(-1L); + + /** + * Creates a new {@code XrGraphicsRequirementsOpenGLESKHR.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 XrGraphicsRequirementsOpenGLESKHR#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 XrGraphicsRequirementsOpenGLESKHR getElementFactory() { + return ELEMENT_FACTORY; + } + + /** @return the value of the {@link XrGraphicsRequirementsOpenGLESKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrGraphicsRequirementsOpenGLESKHR.ntype(address()); } + /** @return the value of the {@link XrGraphicsRequirementsOpenGLESKHR#next} field. */ + @NativeType("void *") + public long next() { return XrGraphicsRequirementsOpenGLESKHR.nnext(address()); } + /** @return the value of the {@link XrGraphicsRequirementsOpenGLESKHR#minApiVersionSupported} field. */ + @NativeType("XrVersion") + public long minApiVersionSupported() { return XrGraphicsRequirementsOpenGLESKHR.nminApiVersionSupported(address()); } + /** @return the value of the {@link XrGraphicsRequirementsOpenGLESKHR#maxApiVersionSupported} field. */ + @NativeType("XrVersion") + public long maxApiVersionSupported() { return XrGraphicsRequirementsOpenGLESKHR.nmaxApiVersionSupported(address()); } + + /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLESKHR#type} field. */ + public XrGraphicsRequirementsOpenGLESKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsRequirementsOpenGLESKHR.ntype(address(), value); return this; } + /** Sets the {@link KHROpenGLESEnable#XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR TYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR} value to the {@link XrGraphicsRequirementsOpenGLESKHR#type} field. */ + public XrGraphicsRequirementsOpenGLESKHR.Buffer type$Default() { return type(KHROpenGLESEnable.XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_ES_KHR); } + /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLESKHR#next} field. */ + public XrGraphicsRequirementsOpenGLESKHR.Buffer next(@NativeType("void *") long value) { XrGraphicsRequirementsOpenGLESKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLESKHR#minApiVersionSupported} field. */ + public XrGraphicsRequirementsOpenGLESKHR.Buffer minApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsOpenGLESKHR.nminApiVersionSupported(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLESKHR#maxApiVersionSupported} field. */ + public XrGraphicsRequirementsOpenGLESKHR.Buffer maxApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsOpenGLESKHR.nmaxApiVersionSupported(address(), value); return this; } + + } + +} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsOpenGLKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsOpenGLKHR.java index 9ded2d47d9..a03659dac0 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsOpenGLKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsOpenGLKHR.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * OpenGL API version requirements. * @@ -27,7 +27,7 @@ *
                                            *
                                          • The {@link KHROpenGLEnable XR_KHR_opengl_enable} extension must be enabled prior to using {@link XrGraphicsRequirementsOpenGLKHR}
                                          • *
                                          • {@code type} must be {@link KHROpenGLEnable#XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_KHR TYPE_GRAPHICS_REQUIREMENTS_OPENGL_KHR}
                                          • - *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                          • + *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                          • *
                                          * *
                                          See Also
                                          @@ -43,8 +43,8 @@ * XrVersion {@link #minApiVersionSupported}; * XrVersion {@link #maxApiVersionSupported}; * } - */ -public class XrGraphicsRequirementsOpenGLKHR extends Struct implements NativeResource { + */ +public class XrGraphicsRequirementsOpenGLKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,27 +54,27 @@ public class XrGraphicsRequirementsOpenGLKHR extends Struct implements NativeResource { @@ -317,30 +317,30 @@ protected Buffer self() { protected XrGraphicsRequirementsOpenGLKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrGraphicsRequirementsOpenGLKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrGraphicsRequirementsOpenGLKHR.ntype(address()); } - /** @return the value of the {@link XrGraphicsRequirementsOpenGLKHR#next} field. */ - @NativeType("void *") - public long next() { return XrGraphicsRequirementsOpenGLKHR.nnext(address()); } - /** @return the value of the {@link XrGraphicsRequirementsOpenGLKHR#minApiVersionSupported} field. */ - @NativeType("XrVersion") - public long minApiVersionSupported() { return XrGraphicsRequirementsOpenGLKHR.nminApiVersionSupported(address()); } - /** @return the value of the {@link XrGraphicsRequirementsOpenGLKHR#maxApiVersionSupported} field. */ - @NativeType("XrVersion") - public long maxApiVersionSupported() { return XrGraphicsRequirementsOpenGLKHR.nmaxApiVersionSupported(address()); } - - /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLKHR#type} field. */ - public XrGraphicsRequirementsOpenGLKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsRequirementsOpenGLKHR.ntype(address(), value); return this; } - /** Sets the {@link KHROpenGLEnable#XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_KHR TYPE_GRAPHICS_REQUIREMENTS_OPENGL_KHR} value to the {@link XrGraphicsRequirementsOpenGLKHR#type} field. */ - public XrGraphicsRequirementsOpenGLKHR.Buffer type$Default() { return type(KHROpenGLEnable.XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_KHR); } - /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLKHR#next} field. */ - public XrGraphicsRequirementsOpenGLKHR.Buffer next(@NativeType("void *") long value) { XrGraphicsRequirementsOpenGLKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLKHR#minApiVersionSupported} field. */ - public XrGraphicsRequirementsOpenGLKHR.Buffer minApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsOpenGLKHR.nminApiVersionSupported(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLKHR#maxApiVersionSupported} field. */ - public XrGraphicsRequirementsOpenGLKHR.Buffer maxApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsOpenGLKHR.nmaxApiVersionSupported(address(), value); return this; } + + /** @return the value of the {@link XrGraphicsRequirementsOpenGLKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrGraphicsRequirementsOpenGLKHR.ntype(address()); } + /** @return the value of the {@link XrGraphicsRequirementsOpenGLKHR#next} field. */ + @NativeType("void *") + public long next() { return XrGraphicsRequirementsOpenGLKHR.nnext(address()); } + /** @return the value of the {@link XrGraphicsRequirementsOpenGLKHR#minApiVersionSupported} field. */ + @NativeType("XrVersion") + public long minApiVersionSupported() { return XrGraphicsRequirementsOpenGLKHR.nminApiVersionSupported(address()); } + /** @return the value of the {@link XrGraphicsRequirementsOpenGLKHR#maxApiVersionSupported} field. */ + @NativeType("XrVersion") + public long maxApiVersionSupported() { return XrGraphicsRequirementsOpenGLKHR.nmaxApiVersionSupported(address()); } + + /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLKHR#type} field. */ + public XrGraphicsRequirementsOpenGLKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsRequirementsOpenGLKHR.ntype(address(), value); return this; } + /** Sets the {@link KHROpenGLEnable#XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_KHR TYPE_GRAPHICS_REQUIREMENTS_OPENGL_KHR} value to the {@link XrGraphicsRequirementsOpenGLKHR#type} field. */ + public XrGraphicsRequirementsOpenGLKHR.Buffer type$Default() { return type(KHROpenGLEnable.XR_TYPE_GRAPHICS_REQUIREMENTS_OPENGL_KHR); } + /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLKHR#next} field. */ + public XrGraphicsRequirementsOpenGLKHR.Buffer next(@NativeType("void *") long value) { XrGraphicsRequirementsOpenGLKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLKHR#minApiVersionSupported} field. */ + public XrGraphicsRequirementsOpenGLKHR.Buffer minApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsOpenGLKHR.nminApiVersionSupported(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsRequirementsOpenGLKHR#maxApiVersionSupported} field. */ + public XrGraphicsRequirementsOpenGLKHR.Buffer maxApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsOpenGLKHR.nmaxApiVersionSupported(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsVulkan2KHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsVulkan2KHR.java index e02498753e..237c21ba7f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsVulkan2KHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsVulkan2KHR.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * See {@link XrGraphicsRequirementsVulkanKHR}. * @@ -27,8 +27,8 @@ * XrVersion minApiVersionSupported; * XrVersion maxApiVersionSupported; * } - */ -public class XrGraphicsRequirementsVulkan2KHR extends XrGraphicsRequirementsVulkanKHR { + */ +public class XrGraphicsRequirementsVulkan2KHR extends XrGraphicsRequirementsVulkanKHR { protected XrGraphicsRequirementsVulkan2KHR(long address, @Nullable ByteBuffer container) { super(address, container); @@ -48,35 +48,35 @@ protected XrGraphicsRequirementsVulkan2KHR create(long address, @Nullable ByteBu public XrGraphicsRequirementsVulkan2KHR(ByteBuffer container) { super(container); } - - /** Sets the specified value to the {@code type} field. */ - @Override - public XrGraphicsRequirementsVulkan2KHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable#XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR} value to the {@code type} field. */ - @Override - public XrGraphicsRequirementsVulkan2KHR type$Default() { return type(KHRVulkanEnable.XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR); } - /** Sets the specified value to the {@code next} field. */ - @Override - public XrGraphicsRequirementsVulkan2KHR next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@code minApiVersionSupported} field. */ - @Override - public XrGraphicsRequirementsVulkan2KHR minApiVersionSupported(@NativeType("XrVersion") long value) { nminApiVersionSupported(address(), value); return this; } - /** Sets the specified value to the {@code maxApiVersionSupported} field. */ - @Override - public XrGraphicsRequirementsVulkan2KHR maxApiVersionSupported(@NativeType("XrVersion") long value) { nmaxApiVersionSupported(address(), value); return this; } + + /** Sets the specified value to the {@code type} field. */ + @Override + public XrGraphicsRequirementsVulkan2KHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable#XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR} value to the {@code type} field. */ + @Override + public XrGraphicsRequirementsVulkan2KHR type$Default() { return type(KHRVulkanEnable.XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR); } + /** Sets the specified value to the {@code next} field. */ + @Override + public XrGraphicsRequirementsVulkan2KHR next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@code minApiVersionSupported} field. */ + @Override + public XrGraphicsRequirementsVulkan2KHR minApiVersionSupported(@NativeType("XrVersion") long value) { nminApiVersionSupported(address(), value); return this; } + /** Sets the specified value to the {@code maxApiVersionSupported} field. */ + @Override + public XrGraphicsRequirementsVulkan2KHR maxApiVersionSupported(@NativeType("XrVersion") long value) { nmaxApiVersionSupported(address(), value); return this; } /** Initializes this struct with the specified values. */ @Override public XrGraphicsRequirementsVulkan2KHR set( - int type, - long next, - long minApiVersionSupported, + int type, + long next, + long minApiVersionSupported, long maxApiVersionSupported - ) { - type(type); - next(next); - minApiVersionSupported(minApiVersionSupported); - maxApiVersionSupported(maxApiVersionSupported); + ) { + type(type); + next(next); + minApiVersionSupported(minApiVersionSupported); + maxApiVersionSupported(maxApiVersionSupported); return this; } @@ -204,7 +204,7 @@ public static XrGraphicsRequirementsVulkan2KHR.Buffer calloc(int capacity, Memor return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrGraphicsRequirementsVulkan2KHR} structs. */ public static class Buffer extends XrGraphicsRequirementsVulkanKHR.Buffer { @@ -241,22 +241,22 @@ protected Buffer self() { protected XrGraphicsRequirementsVulkan2KHR getElementFactory() { return ELEMENT_FACTORY; } - - /** Sets the specified value to the {@code type} field. */ - @Override - public XrGraphicsRequirementsVulkan2KHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsRequirementsVulkan2KHR.ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable#XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR} value to the {@code type} field. */ - @Override - public XrGraphicsRequirementsVulkan2KHR.Buffer type$Default() { return type(KHRVulkanEnable.XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR); } - /** Sets the specified value to the {@code next} field. */ - @Override - public XrGraphicsRequirementsVulkan2KHR.Buffer next(@NativeType("void *") long value) { XrGraphicsRequirementsVulkan2KHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@code minApiVersionSupported} field. */ - @Override - public XrGraphicsRequirementsVulkan2KHR.Buffer minApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsVulkan2KHR.nminApiVersionSupported(address(), value); return this; } - /** Sets the specified value to the {@code maxApiVersionSupported} field. */ - @Override - public XrGraphicsRequirementsVulkan2KHR.Buffer maxApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsVulkan2KHR.nmaxApiVersionSupported(address(), value); return this; } + + /** Sets the specified value to the {@code type} field. */ + @Override + public XrGraphicsRequirementsVulkan2KHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsRequirementsVulkan2KHR.ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable#XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR} value to the {@code type} field. */ + @Override + public XrGraphicsRequirementsVulkan2KHR.Buffer type$Default() { return type(KHRVulkanEnable.XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR); } + /** Sets the specified value to the {@code next} field. */ + @Override + public XrGraphicsRequirementsVulkan2KHR.Buffer next(@NativeType("void *") long value) { XrGraphicsRequirementsVulkan2KHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@code minApiVersionSupported} field. */ + @Override + public XrGraphicsRequirementsVulkan2KHR.Buffer minApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsVulkan2KHR.nminApiVersionSupported(address(), value); return this; } + /** Sets the specified value to the {@code maxApiVersionSupported} field. */ + @Override + public XrGraphicsRequirementsVulkan2KHR.Buffer maxApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsVulkan2KHR.nmaxApiVersionSupported(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsVulkanKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsVulkanKHR.java index dd69a1ce1c..b8eba3fc31 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsVulkanKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrGraphicsRequirementsVulkanKHR.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Vulkan API version requirements. * @@ -27,7 +27,7 @@ *
                                            *
                                          • The {@link KHRVulkanEnable XR_KHR_vulkan_enable} extension must be enabled prior to using {@link XrGraphicsRequirementsVulkanKHR}
                                          • *
                                          • {@code type} must be {@link KHRVulkanEnable#XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR}
                                          • - *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                          • + *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                          • *
                                          * *
                                          See Also
                                          @@ -43,8 +43,8 @@ * XrVersion {@link #minApiVersionSupported}; * XrVersion {@link #maxApiVersionSupported}; * } - */ -public class XrGraphicsRequirementsVulkanKHR extends Struct implements NativeResource { + */ +public class XrGraphicsRequirementsVulkanKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,27 +54,27 @@ public class XrGraphicsRequirementsVulkanKHR extends Struct implements NativeResource { @@ -317,30 +317,30 @@ protected Buffer self() { protected XrGraphicsRequirementsVulkanKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrGraphicsRequirementsVulkanKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrGraphicsRequirementsVulkanKHR.ntype(address()); } - /** @return the value of the {@link XrGraphicsRequirementsVulkanKHR#next} field. */ - @NativeType("void *") - public long next() { return XrGraphicsRequirementsVulkanKHR.nnext(address()); } - /** @return the value of the {@link XrGraphicsRequirementsVulkanKHR#minApiVersionSupported} field. */ - @NativeType("XrVersion") - public long minApiVersionSupported() { return XrGraphicsRequirementsVulkanKHR.nminApiVersionSupported(address()); } - /** @return the value of the {@link XrGraphicsRequirementsVulkanKHR#maxApiVersionSupported} field. */ - @NativeType("XrVersion") - public long maxApiVersionSupported() { return XrGraphicsRequirementsVulkanKHR.nmaxApiVersionSupported(address()); } - - /** Sets the specified value to the {@link XrGraphicsRequirementsVulkanKHR#type} field. */ - public XrGraphicsRequirementsVulkanKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsRequirementsVulkanKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable#XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR} value to the {@link XrGraphicsRequirementsVulkanKHR#type} field. */ - public XrGraphicsRequirementsVulkanKHR.Buffer type$Default() { return type(KHRVulkanEnable.XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR); } - /** Sets the specified value to the {@link XrGraphicsRequirementsVulkanKHR#next} field. */ - public XrGraphicsRequirementsVulkanKHR.Buffer next(@NativeType("void *") long value) { XrGraphicsRequirementsVulkanKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsRequirementsVulkanKHR#minApiVersionSupported} field. */ - public XrGraphicsRequirementsVulkanKHR.Buffer minApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsVulkanKHR.nminApiVersionSupported(address(), value); return this; } - /** Sets the specified value to the {@link XrGraphicsRequirementsVulkanKHR#maxApiVersionSupported} field. */ - public XrGraphicsRequirementsVulkanKHR.Buffer maxApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsVulkanKHR.nmaxApiVersionSupported(address(), value); return this; } + + /** @return the value of the {@link XrGraphicsRequirementsVulkanKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrGraphicsRequirementsVulkanKHR.ntype(address()); } + /** @return the value of the {@link XrGraphicsRequirementsVulkanKHR#next} field. */ + @NativeType("void *") + public long next() { return XrGraphicsRequirementsVulkanKHR.nnext(address()); } + /** @return the value of the {@link XrGraphicsRequirementsVulkanKHR#minApiVersionSupported} field. */ + @NativeType("XrVersion") + public long minApiVersionSupported() { return XrGraphicsRequirementsVulkanKHR.nminApiVersionSupported(address()); } + /** @return the value of the {@link XrGraphicsRequirementsVulkanKHR#maxApiVersionSupported} field. */ + @NativeType("XrVersion") + public long maxApiVersionSupported() { return XrGraphicsRequirementsVulkanKHR.nmaxApiVersionSupported(address()); } + + /** Sets the specified value to the {@link XrGraphicsRequirementsVulkanKHR#type} field. */ + public XrGraphicsRequirementsVulkanKHR.Buffer type(@NativeType("XrStructureType") int value) { XrGraphicsRequirementsVulkanKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable#XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR} value to the {@link XrGraphicsRequirementsVulkanKHR#type} field. */ + public XrGraphicsRequirementsVulkanKHR.Buffer type$Default() { return type(KHRVulkanEnable.XR_TYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR); } + /** Sets the specified value to the {@link XrGraphicsRequirementsVulkanKHR#next} field. */ + public XrGraphicsRequirementsVulkanKHR.Buffer next(@NativeType("void *") long value) { XrGraphicsRequirementsVulkanKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsRequirementsVulkanKHR#minApiVersionSupported} field. */ + public XrGraphicsRequirementsVulkanKHR.Buffer minApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsVulkanKHR.nminApiVersionSupported(address(), value); return this; } + /** Sets the specified value to the {@link XrGraphicsRequirementsVulkanKHR#maxApiVersionSupported} field. */ + public XrGraphicsRequirementsVulkanKHR.Buffer maxApiVersionSupported(@NativeType("XrVersion") long value) { XrGraphicsRequirementsVulkanKHR.nmaxApiVersionSupported(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandCapsuleFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandCapsuleFB.java index 44e4d1096d..7b773a57c1 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandCapsuleFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandCapsuleFB.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - + import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; - -import static org.lwjgl.openxr.FBHandTrackingCapsules.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; + +import static org.lwjgl.openxr.FBHandTrackingCapsules.*; + /** * A 3D capsule defined by two points and a radius. * @@ -45,8 +45,8 @@ * float radius; * XrHandJointEXT joint; * } - */ -public class XrHandCapsuleFB extends Struct { + */ +public class XrHandCapsuleFB extends Struct { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,24 +56,24 @@ public class XrHandCapsuleFB extends Struct { /** The struct member offsets. */ public static final int - POINTS, - RADIUS, - JOINT; + POINTS, + RADIUS, + JOINT; static { - Layout layout = __struct( - __array(XrVector3f.SIZEOF, XrVector3f.ALIGNOF, XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB), - __member(4), + Layout layout = __struct( + __array(XrVector3f.SIZEOF, XrVector3f.ALIGNOF, XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB), + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - POINTS = layout.offsetof(0); - RADIUS = layout.offsetof(1); - JOINT = layout.offsetof(2); - } + POINTS = layout.offsetof(0); + RADIUS = layout.offsetof(1); + JOINT = layout.offsetof(2); + } protected XrHandCapsuleFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -96,17 +96,17 @@ public XrHandCapsuleFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** @return a {@link XrVector3f}.Buffer view of the {@code points} field. */ - @NativeType("XrVector3f[XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB]") - public XrVector3f.Buffer points() { return npoints(address()); } - /** @return a {@link XrVector3f} view of the struct at the specified index of the {@code points} field. */ - public XrVector3f points(int index) { return npoints(address(), index); } - /** @return the value of the {@code radius} field. */ - public float radius() { return nradius(address()); } - /** @return the value of the {@code joint} field. */ - @NativeType("XrHandJointEXT") - public int joint() { return njoint(address()); } + + /** @return a {@link XrVector3f}.Buffer view of the {@code points} field. */ + @NativeType("XrVector3f[XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB]") + public XrVector3f.Buffer points() { return npoints(address()); } + /** @return a {@link XrVector3f} view of the struct at the specified index of the {@code points} field. */ + public XrVector3f points(int index) { return npoints(address(), index); } + /** @return the value of the {@code radius} field. */ + public float radius() { return nradius(address()); } + /** @return the value of the {@code joint} field. */ + @NativeType("XrHandJointEXT") + public int joint() { return njoint(address()); } // ----------------------------------- @@ -138,19 +138,19 @@ public static XrHandCapsuleFB.Buffer createSafe(long address, int capacity) { } // ----------------------------------- - - /** Unsafe version of {@link #points}. */ - public static XrVector3f.Buffer npoints(long struct) { return XrVector3f.create(struct + XrHandCapsuleFB.POINTS, XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB); } - /** Unsafe version of {@link #points(int) points}. */ - public static XrVector3f npoints(long struct, int index) { - return XrVector3f.create(struct + XrHandCapsuleFB.POINTS + check(index, XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB) * XrVector3f.SIZEOF); - } - /** Unsafe version of {@link #radius}. */ - public static float nradius(long struct) { return UNSAFE.getFloat(null, struct + XrHandCapsuleFB.RADIUS); } - /** Unsafe version of {@link #joint}. */ - public static int njoint(long struct) { return UNSAFE.getInt(null, struct + XrHandCapsuleFB.JOINT); } - - // ----------------------------------- + + /** Unsafe version of {@link #points}. */ + public static XrVector3f.Buffer npoints(long struct) { return XrVector3f.create(struct + XrHandCapsuleFB.POINTS, XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB); } + /** Unsafe version of {@link #points(int) points}. */ + public static XrVector3f npoints(long struct, int index) { + return XrVector3f.create(struct + XrHandCapsuleFB.POINTS + check(index, XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB) * XrVector3f.SIZEOF); + } + /** Unsafe version of {@link #radius}. */ + public static float nradius(long struct) { return UNSAFE.getFloat(null, struct + XrHandCapsuleFB.RADIUS); } + /** Unsafe version of {@link #joint}. */ + public static int njoint(long struct) { return UNSAFE.getInt(null, struct + XrHandCapsuleFB.JOINT); } + + // ----------------------------------- /** An array of {@link XrHandCapsuleFB} structs. */ public static class Buffer extends StructBuffer { @@ -187,17 +187,17 @@ protected Buffer self() { protected XrHandCapsuleFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return a {@link XrVector3f}.Buffer view of the {@code points} field. */ - @NativeType("XrVector3f[XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB]") - public XrVector3f.Buffer points() { return XrHandCapsuleFB.npoints(address()); } - /** @return a {@link XrVector3f} view of the struct at the specified index of the {@code points} field. */ - public XrVector3f points(int index) { return XrHandCapsuleFB.npoints(address(), index); } - /** @return the value of the {@code radius} field. */ - public float radius() { return XrHandCapsuleFB.nradius(address()); } - /** @return the value of the {@code joint} field. */ - @NativeType("XrHandJointEXT") - public int joint() { return XrHandCapsuleFB.njoint(address()); } + + /** @return a {@link XrVector3f}.Buffer view of the {@code points} field. */ + @NativeType("XrVector3f[XR_HAND_TRACKING_CAPSULE_POINT_COUNT_FB]") + public XrVector3f.Buffer points() { return XrHandCapsuleFB.npoints(address()); } + /** @return a {@link XrVector3f} view of the struct at the specified index of the {@code points} field. */ + public XrVector3f points(int index) { return XrHandCapsuleFB.npoints(address(), index); } + /** @return the value of the {@code radius} field. */ + public float radius() { return XrHandCapsuleFB.nradius(address()); } + /** @return the value of the {@code joint} field. */ + @NativeType("XrHandJointEXT") + public int joint() { return XrHandCapsuleFB.njoint(address()); } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointLocationEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointLocationEXT.java index 086391e066..8cd37e5428 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointLocationEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointLocationEXT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes the location and radius of a hand joint. * @@ -43,8 +43,8 @@ * {@link XrPosef XrPosef} {@link #pose}; * float {@link #radius}; * } - */ -public class XrHandJointLocationEXT extends Struct implements NativeResource { + */ +public class XrHandJointLocationEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,24 +54,24 @@ public class XrHandJointLocationEXT extends Struct imple /** The struct member offsets. */ public static final int - LOCATIONFLAGS, - POSE, - RADIUS; + LOCATIONFLAGS, + POSE, + RADIUS; static { - Layout layout = __struct( - __member(8), - __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), + Layout layout = __struct( + __member(8), + __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - LOCATIONFLAGS = layout.offsetof(0); - POSE = layout.offsetof(1); - RADIUS = layout.offsetof(2); - } + LOCATIONFLAGS = layout.offsetof(0); + POSE = layout.offsetof(1); + RADIUS = layout.offsetof(2); + } protected XrHandJointLocationEXT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -94,33 +94,33 @@ public XrHandJointLocationEXT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** a bitfield, with bit masks defined in {@code XrSpaceLocationFlagBits}, to indicate which members contain valid data. If none of the bits are set, no other fields in this structure should be considered to be valid or meaningful. */ - @NativeType("XrSpaceLocationFlags") - public long locationFlags() { return nlocationFlags(address()); } - /** an {@link XrPosef} defining the position and orientation of the origin of a hand joint within the reference frame of the corresponding {@link XrHandJointsLocateInfoEXT}{@code ::baseSpace}. */ - public XrPosef pose() { return npose(address()); } - /** a {@code float} value radius of the corresponding joint in units of meters. */ - public float radius() { return nradius(address()); } - - /** Sets the specified value to the {@link #locationFlags} field. */ - public XrHandJointLocationEXT locationFlags(@NativeType("XrSpaceLocationFlags") long value) { nlocationFlags(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ - public XrHandJointLocationEXT pose(XrPosef value) { npose(address(), value); return this; } - /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandJointLocationEXT pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Sets the specified value to the {@link #radius} field. */ - public XrHandJointLocationEXT radius(float value) { nradius(address(), value); return this; } + + /** a bitfield, with bit masks defined in {@code XrSpaceLocationFlagBits}, to indicate which members contain valid data. If none of the bits are set, no other fields in this structure should be considered to be valid or meaningful. */ + @NativeType("XrSpaceLocationFlags") + public long locationFlags() { return nlocationFlags(address()); } + /** an {@link XrPosef} defining the position and orientation of the origin of a hand joint within the reference frame of the corresponding {@link XrHandJointsLocateInfoEXT}{@code ::baseSpace}. */ + public XrPosef pose() { return npose(address()); } + /** a {@code float} value radius of the corresponding joint in units of meters. */ + public float radius() { return nradius(address()); } + + /** Sets the specified value to the {@link #locationFlags} field. */ + public XrHandJointLocationEXT locationFlags(@NativeType("XrSpaceLocationFlags") long value) { nlocationFlags(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrHandJointLocationEXT pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandJointLocationEXT pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Sets the specified value to the {@link #radius} field. */ + public XrHandJointLocationEXT radius(float value) { nradius(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHandJointLocationEXT set( - long locationFlags, - XrPosef pose, + long locationFlags, + XrPosef pose, float radius - ) { - locationFlags(locationFlags); - pose(pose); - radius(radius); + ) { + locationFlags(locationFlags); + pose(pose); + radius(radius); return this; } @@ -249,22 +249,22 @@ public static XrHandJointLocationEXT.Buffer calloc(int capacity, MemoryStack sta } // ----------------------------------- - - /** Unsafe version of {@link #locationFlags}. */ - public static long nlocationFlags(long struct) { return UNSAFE.getLong(null, struct + XrHandJointLocationEXT.LOCATIONFLAGS); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrHandJointLocationEXT.POSE); } - /** Unsafe version of {@link #radius}. */ - public static float nradius(long struct) { return UNSAFE.getFloat(null, struct + XrHandJointLocationEXT.RADIUS); } - - /** Unsafe version of {@link #locationFlags(long) locationFlags}. */ - public static void nlocationFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrHandJointLocationEXT.LOCATIONFLAGS, value); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrHandJointLocationEXT.POSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #radius(float) radius}. */ - public static void nradius(long struct, float value) { UNSAFE.putFloat(null, struct + XrHandJointLocationEXT.RADIUS, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #locationFlags}. */ + public static long nlocationFlags(long struct) { return UNSAFE.getLong(null, struct + XrHandJointLocationEXT.LOCATIONFLAGS); } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrHandJointLocationEXT.POSE); } + /** Unsafe version of {@link #radius}. */ + public static float nradius(long struct) { return UNSAFE.getFloat(null, struct + XrHandJointLocationEXT.RADIUS); } + + /** Unsafe version of {@link #locationFlags(long) locationFlags}. */ + public static void nlocationFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrHandJointLocationEXT.LOCATIONFLAGS, value); } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrHandJointLocationEXT.POSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #radius(float) radius}. */ + public static void nradius(long struct, float value) { UNSAFE.putFloat(null, struct + XrHandJointLocationEXT.RADIUS, value); } + + // ----------------------------------- /** An array of {@link XrHandJointLocationEXT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -301,23 +301,23 @@ protected Buffer self() { protected XrHandJointLocationEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandJointLocationEXT#locationFlags} field. */ - @NativeType("XrSpaceLocationFlags") - public long locationFlags() { return XrHandJointLocationEXT.nlocationFlags(address()); } - /** @return a {@link XrPosef} view of the {@link XrHandJointLocationEXT#pose} field. */ - public XrPosef pose() { return XrHandJointLocationEXT.npose(address()); } - /** @return the value of the {@link XrHandJointLocationEXT#radius} field. */ - public float radius() { return XrHandJointLocationEXT.nradius(address()); } - - /** Sets the specified value to the {@link XrHandJointLocationEXT#locationFlags} field. */ - public XrHandJointLocationEXT.Buffer locationFlags(@NativeType("XrSpaceLocationFlags") long value) { XrHandJointLocationEXT.nlocationFlags(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrHandJointLocationEXT#pose} field. */ - public XrHandJointLocationEXT.Buffer pose(XrPosef value) { XrHandJointLocationEXT.npose(address(), value); return this; } - /** Passes the {@link XrHandJointLocationEXT#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandJointLocationEXT.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Sets the specified value to the {@link XrHandJointLocationEXT#radius} field. */ - public XrHandJointLocationEXT.Buffer radius(float value) { XrHandJointLocationEXT.nradius(address(), value); return this; } + + /** @return the value of the {@link XrHandJointLocationEXT#locationFlags} field. */ + @NativeType("XrSpaceLocationFlags") + public long locationFlags() { return XrHandJointLocationEXT.nlocationFlags(address()); } + /** @return a {@link XrPosef} view of the {@link XrHandJointLocationEXT#pose} field. */ + public XrPosef pose() { return XrHandJointLocationEXT.npose(address()); } + /** @return the value of the {@link XrHandJointLocationEXT#radius} field. */ + public float radius() { return XrHandJointLocationEXT.nradius(address()); } + + /** Sets the specified value to the {@link XrHandJointLocationEXT#locationFlags} field. */ + public XrHandJointLocationEXT.Buffer locationFlags(@NativeType("XrSpaceLocationFlags") long value) { XrHandJointLocationEXT.nlocationFlags(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrHandJointLocationEXT#pose} field. */ + public XrHandJointLocationEXT.Buffer pose(XrPosef value) { XrHandJointLocationEXT.npose(address(), value); return this; } + /** Passes the {@link XrHandJointLocationEXT#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandJointLocationEXT.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Sets the specified value to the {@link XrHandJointLocationEXT#radius} field. */ + public XrHandJointLocationEXT.Buffer radius(float value) { XrHandJointLocationEXT.nradius(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointLocationsEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointLocationsEXT.java index d0de2d3c58..3656863375 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointLocationsEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointLocationsEXT.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Returns the hand joint locations. * @@ -38,7 +38,7 @@ *
                                            *
                                          • The {@link EXTHandTracking XR_EXT_hand_tracking} extension must be enabled prior to using {@link XrHandJointLocationsEXT}
                                          • *
                                          • {@code type} must be {@link EXTHandTracking#XR_TYPE_HAND_JOINT_LOCATIONS_EXT TYPE_HAND_JOINT_LOCATIONS_EXT}
                                          • - *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrHandJointVelocitiesEXT}, {@link XrHandTrackingAimStateFB}, {@link XrHandTrackingCapsulesStateFB}, {@link XrHandTrackingDataSourceStateEXT}, {@link XrHandTrackingScaleFB}
                                          • + *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrHandJointVelocitiesEXT}, {@link XrHandTrackingAimStateFB}, {@link XrHandTrackingCapsulesStateFB}, {@link XrHandTrackingScaleFB}
                                          • *
                                          • {@code jointLocations} must be a pointer to an array of {@code jointCount} {@link XrHandJointLocationEXT} structures
                                          • *
                                          • The {@code jointCount} parameter must be greater than 0
                                          • *
                                          @@ -57,8 +57,8 @@ * uint32_t {@link #jointCount}; * {@link XrHandJointLocationEXT XrHandJointLocationEXT} * {@link #jointLocations}; * } - */ -public class XrHandJointLocationsEXT extends Struct implements NativeResource { + */ +public class XrHandJointLocationsEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -68,30 +68,30 @@ public class XrHandJointLocationsEXT extends Struct imp /** The struct member offsets. */ public static final int - TYPE, - NEXT, - ISACTIVE, - JOINTCOUNT, - JOINTLOCATIONS; + TYPE, + NEXT, + ISACTIVE, + JOINTCOUNT, + JOINTLOCATIONS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - ISACTIVE = layout.offsetof(2); - JOINTCOUNT = layout.offsetof(3); - JOINTLOCATIONS = layout.offsetof(4); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + ISACTIVE = layout.offsetof(2); + JOINTCOUNT = layout.offsetof(3); + JOINTLOCATIONS = layout.offsetof(4); + } protected XrHandJointLocationsEXT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -114,55 +114,53 @@ public XrHandJointLocationsEXT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain, such as {@link XrHandJointVelocitiesEXT}. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** an {@code XrBool32} indicating if the hand tracker is actively tracking. */ - @NativeType("XrBool32") - public boolean isActive() { return nisActive(address()) != 0; } - /** a {@code uint32_t} describing the count of elements in {@code jointLocations} array. */ - @NativeType("uint32_t") - public int jointCount() { return njointCount(address()); } - /** an array of {@link XrHandJointLocationEXT} receiving the returned hand joint locations. */ - @NativeType("XrHandJointLocationEXT *") - public XrHandJointLocationEXT.Buffer jointLocations() { return njointLocations(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrHandJointLocationsEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_JOINT_LOCATIONS_EXT TYPE_HAND_JOINT_LOCATIONS_EXT} value to the {@link #type} field. */ - public XrHandJointLocationsEXT type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_JOINT_LOCATIONS_EXT); } - /** Sets the specified value to the {@link #next} field. */ - public XrHandJointLocationsEXT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrHandJointVelocitiesEXT} value to the {@code next} chain. */ - public XrHandJointLocationsEXT next(XrHandJointVelocitiesEXT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrHandTrackingAimStateFB} value to the {@code next} chain. */ - public XrHandJointLocationsEXT next(XrHandTrackingAimStateFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrHandTrackingCapsulesStateFB} value to the {@code next} chain. */ - public XrHandJointLocationsEXT next(XrHandTrackingCapsulesStateFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrHandTrackingDataSourceStateEXT} value to the {@code next} chain. */ - public XrHandJointLocationsEXT next(XrHandTrackingDataSourceStateEXT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrHandTrackingScaleFB} value to the {@code next} chain. */ - public XrHandJointLocationsEXT next(XrHandTrackingScaleFB value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #isActive} field. */ - public XrHandJointLocationsEXT isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; } - /** Sets the address of the specified {@link XrHandJointLocationEXT.Buffer} to the {@link #jointLocations} field. */ - public XrHandJointLocationsEXT jointLocations(@NativeType("XrHandJointLocationEXT *") XrHandJointLocationEXT.Buffer value) { njointLocations(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain, such as {@link XrHandJointVelocitiesEXT}. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** an {@code XrBool32} indicating if the hand tracker is actively tracking. */ + @NativeType("XrBool32") + public boolean isActive() { return nisActive(address()) != 0; } + /** a {@code uint32_t} describing the count of elements in {@code jointLocations} array. */ + @NativeType("uint32_t") + public int jointCount() { return njointCount(address()); } + /** an array of {@link XrHandJointLocationEXT} receiving the returned hand joint locations. */ + @NativeType("XrHandJointLocationEXT *") + public XrHandJointLocationEXT.Buffer jointLocations() { return njointLocations(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHandJointLocationsEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_JOINT_LOCATIONS_EXT TYPE_HAND_JOINT_LOCATIONS_EXT} value to the {@link #type} field. */ + public XrHandJointLocationsEXT type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_JOINT_LOCATIONS_EXT); } + /** Sets the specified value to the {@link #next} field. */ + public XrHandJointLocationsEXT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrHandJointVelocitiesEXT} value to the {@code next} chain. */ + public XrHandJointLocationsEXT next(XrHandJointVelocitiesEXT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrHandTrackingAimStateFB} value to the {@code next} chain. */ + public XrHandJointLocationsEXT next(XrHandTrackingAimStateFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrHandTrackingCapsulesStateFB} value to the {@code next} chain. */ + public XrHandJointLocationsEXT next(XrHandTrackingCapsulesStateFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrHandTrackingScaleFB} value to the {@code next} chain. */ + public XrHandJointLocationsEXT next(XrHandTrackingScaleFB value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #isActive} field. */ + public XrHandJointLocationsEXT isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; } + /** Sets the address of the specified {@link XrHandJointLocationEXT.Buffer} to the {@link #jointLocations} field. */ + public XrHandJointLocationsEXT jointLocations(@NativeType("XrHandJointLocationEXT *") XrHandJointLocationEXT.Buffer value) { njointLocations(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHandJointLocationsEXT set( - int type, - long next, - boolean isActive, + int type, + long next, + boolean isActive, XrHandJointLocationEXT.Buffer jointLocations - ) { - type(type); - next(next); - isActive(isActive); - jointLocations(jointLocations); + ) { + type(type); + next(next); + isActive(isActive); + jointLocations(jointLocations); return this; } @@ -291,28 +289,28 @@ public static XrHandJointLocationsEXT.Buffer calloc(int capacity, MemoryStack st } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandJointLocationsEXT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHandJointLocationsEXT.NEXT); } - /** Unsafe version of {@link #isActive}. */ - public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrHandJointLocationsEXT.ISACTIVE); } - /** Unsafe version of {@link #jointCount}. */ - public static int njointCount(long struct) { return UNSAFE.getInt(null, struct + XrHandJointLocationsEXT.JOINTCOUNT); } - /** Unsafe version of {@link #jointLocations}. */ - public static XrHandJointLocationEXT.Buffer njointLocations(long struct) { return XrHandJointLocationEXT.create(memGetAddress(struct + XrHandJointLocationsEXT.JOINTLOCATIONS), njointCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandJointLocationsEXT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHandJointLocationsEXT.NEXT, value); } - /** Unsafe version of {@link #isActive(boolean) isActive}. */ - public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrHandJointLocationsEXT.ISACTIVE, value); } - /** Sets the specified value to the {@code jointCount} field of the specified {@code struct}. */ - public static void njointCount(long struct, int value) { UNSAFE.putInt(null, struct + XrHandJointLocationsEXT.JOINTCOUNT, value); } - /** Unsafe version of {@link #jointLocations(XrHandJointLocationEXT.Buffer) jointLocations}. */ - public static void njointLocations(long struct, XrHandJointLocationEXT.Buffer value) { memPutAddress(struct + XrHandJointLocationsEXT.JOINTLOCATIONS, value.address()); njointCount(struct, value.remaining()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandJointLocationsEXT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHandJointLocationsEXT.NEXT); } + /** Unsafe version of {@link #isActive}. */ + public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrHandJointLocationsEXT.ISACTIVE); } + /** Unsafe version of {@link #jointCount}. */ + public static int njointCount(long struct) { return UNSAFE.getInt(null, struct + XrHandJointLocationsEXT.JOINTCOUNT); } + /** Unsafe version of {@link #jointLocations}. */ + public static XrHandJointLocationEXT.Buffer njointLocations(long struct) { return XrHandJointLocationEXT.create(memGetAddress(struct + XrHandJointLocationsEXT.JOINTLOCATIONS), njointCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandJointLocationsEXT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHandJointLocationsEXT.NEXT, value); } + /** Unsafe version of {@link #isActive(boolean) isActive}. */ + public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrHandJointLocationsEXT.ISACTIVE, value); } + /** Sets the specified value to the {@code jointCount} field of the specified {@code struct}. */ + public static void njointCount(long struct, int value) { UNSAFE.putInt(null, struct + XrHandJointLocationsEXT.JOINTCOUNT, value); } + /** Unsafe version of {@link #jointLocations(XrHandJointLocationEXT.Buffer) jointLocations}. */ + public static void njointLocations(long struct, XrHandJointLocationEXT.Buffer value) { memPutAddress(struct + XrHandJointLocationsEXT.JOINTLOCATIONS, value.address()); njointCount(struct, value.remaining()); } /** * Validates pointer members that should not be {@code NULL}. @@ -321,9 +319,9 @@ public static XrHandJointLocationsEXT.Buffer calloc(int capacity, MemoryStack st */ public static void validate(long struct) { check(memGetAddress(struct + XrHandJointLocationsEXT.JOINTLOCATIONS)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrHandJointLocationsEXT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -360,43 +358,41 @@ protected Buffer self() { protected XrHandJointLocationsEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandJointLocationsEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHandJointLocationsEXT.ntype(address()); } - /** @return the value of the {@link XrHandJointLocationsEXT#next} field. */ - @NativeType("void *") - public long next() { return XrHandJointLocationsEXT.nnext(address()); } - /** @return the value of the {@link XrHandJointLocationsEXT#isActive} field. */ - @NativeType("XrBool32") - public boolean isActive() { return XrHandJointLocationsEXT.nisActive(address()) != 0; } - /** @return the value of the {@link XrHandJointLocationsEXT#jointCount} field. */ - @NativeType("uint32_t") - public int jointCount() { return XrHandJointLocationsEXT.njointCount(address()); } - /** @return a {@link XrHandJointLocationEXT.Buffer} view of the struct array pointed to by the {@link XrHandJointLocationsEXT#jointLocations} field. */ - @NativeType("XrHandJointLocationEXT *") - public XrHandJointLocationEXT.Buffer jointLocations() { return XrHandJointLocationsEXT.njointLocations(address()); } - - /** Sets the specified value to the {@link XrHandJointLocationsEXT#type} field. */ - public XrHandJointLocationsEXT.Buffer type(@NativeType("XrStructureType") int value) { XrHandJointLocationsEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_JOINT_LOCATIONS_EXT TYPE_HAND_JOINT_LOCATIONS_EXT} value to the {@link XrHandJointLocationsEXT#type} field. */ - public XrHandJointLocationsEXT.Buffer type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_JOINT_LOCATIONS_EXT); } - /** Sets the specified value to the {@link XrHandJointLocationsEXT#next} field. */ - public XrHandJointLocationsEXT.Buffer next(@NativeType("void *") long value) { XrHandJointLocationsEXT.nnext(address(), value); return this; } - /** Prepends the specified {@link XrHandJointVelocitiesEXT} value to the {@code next} chain. */ - public XrHandJointLocationsEXT.Buffer next(XrHandJointVelocitiesEXT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrHandTrackingAimStateFB} value to the {@code next} chain. */ - public XrHandJointLocationsEXT.Buffer next(XrHandTrackingAimStateFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrHandTrackingCapsulesStateFB} value to the {@code next} chain. */ - public XrHandJointLocationsEXT.Buffer next(XrHandTrackingCapsulesStateFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrHandTrackingDataSourceStateEXT} value to the {@code next} chain. */ - public XrHandJointLocationsEXT.Buffer next(XrHandTrackingDataSourceStateEXT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrHandTrackingScaleFB} value to the {@code next} chain. */ - public XrHandJointLocationsEXT.Buffer next(XrHandTrackingScaleFB value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrHandJointLocationsEXT#isActive} field. */ - public XrHandJointLocationsEXT.Buffer isActive(@NativeType("XrBool32") boolean value) { XrHandJointLocationsEXT.nisActive(address(), value ? 1 : 0); return this; } - /** Sets the address of the specified {@link XrHandJointLocationEXT.Buffer} to the {@link XrHandJointLocationsEXT#jointLocations} field. */ - public XrHandJointLocationsEXT.Buffer jointLocations(@NativeType("XrHandJointLocationEXT *") XrHandJointLocationEXT.Buffer value) { XrHandJointLocationsEXT.njointLocations(address(), value); return this; } + + /** @return the value of the {@link XrHandJointLocationsEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHandJointLocationsEXT.ntype(address()); } + /** @return the value of the {@link XrHandJointLocationsEXT#next} field. */ + @NativeType("void *") + public long next() { return XrHandJointLocationsEXT.nnext(address()); } + /** @return the value of the {@link XrHandJointLocationsEXT#isActive} field. */ + @NativeType("XrBool32") + public boolean isActive() { return XrHandJointLocationsEXT.nisActive(address()) != 0; } + /** @return the value of the {@link XrHandJointLocationsEXT#jointCount} field. */ + @NativeType("uint32_t") + public int jointCount() { return XrHandJointLocationsEXT.njointCount(address()); } + /** @return a {@link XrHandJointLocationEXT.Buffer} view of the struct array pointed to by the {@link XrHandJointLocationsEXT#jointLocations} field. */ + @NativeType("XrHandJointLocationEXT *") + public XrHandJointLocationEXT.Buffer jointLocations() { return XrHandJointLocationsEXT.njointLocations(address()); } + + /** Sets the specified value to the {@link XrHandJointLocationsEXT#type} field. */ + public XrHandJointLocationsEXT.Buffer type(@NativeType("XrStructureType") int value) { XrHandJointLocationsEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_JOINT_LOCATIONS_EXT TYPE_HAND_JOINT_LOCATIONS_EXT} value to the {@link XrHandJointLocationsEXT#type} field. */ + public XrHandJointLocationsEXT.Buffer type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_JOINT_LOCATIONS_EXT); } + /** Sets the specified value to the {@link XrHandJointLocationsEXT#next} field. */ + public XrHandJointLocationsEXT.Buffer next(@NativeType("void *") long value) { XrHandJointLocationsEXT.nnext(address(), value); return this; } + /** Prepends the specified {@link XrHandJointVelocitiesEXT} value to the {@code next} chain. */ + public XrHandJointLocationsEXT.Buffer next(XrHandJointVelocitiesEXT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrHandTrackingAimStateFB} value to the {@code next} chain. */ + public XrHandJointLocationsEXT.Buffer next(XrHandTrackingAimStateFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrHandTrackingCapsulesStateFB} value to the {@code next} chain. */ + public XrHandJointLocationsEXT.Buffer next(XrHandTrackingCapsulesStateFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrHandTrackingScaleFB} value to the {@code next} chain. */ + public XrHandJointLocationsEXT.Buffer next(XrHandTrackingScaleFB value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrHandJointLocationsEXT#isActive} field. */ + public XrHandJointLocationsEXT.Buffer isActive(@NativeType("XrBool32") boolean value) { XrHandJointLocationsEXT.nisActive(address(), value ? 1 : 0); return this; } + /** Sets the address of the specified {@link XrHandJointLocationEXT.Buffer} to the {@link XrHandJointLocationsEXT#jointLocations} field. */ + public XrHandJointLocationsEXT.Buffer jointLocations(@NativeType("XrHandJointLocationEXT *") XrHandJointLocationEXT.Buffer value) { XrHandJointLocationsEXT.njointLocations(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointVelocitiesEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointVelocitiesEXT.java index c731a09294..7b2bdb9b14 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointVelocitiesEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointVelocitiesEXT.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Returns the hand joint velocities. * @@ -36,7 +36,7 @@ *
                                            *
                                          • The {@link EXTHandTracking XR_EXT_hand_tracking} extension must be enabled prior to using {@link XrHandJointVelocitiesEXT}
                                          • *
                                          • {@code type} must be {@link EXTHandTracking#XR_TYPE_HAND_JOINT_VELOCITIES_EXT TYPE_HAND_JOINT_VELOCITIES_EXT}
                                          • - *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                          • + *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                          • *
                                          • {@code jointVelocities} must be a pointer to an array of {@code jointCount} {@link XrHandJointVelocityEXT} structures
                                          • *
                                          • The {@code jointCount} parameter must be greater than 0
                                          • *
                                          @@ -54,8 +54,8 @@ * uint32_t {@link #jointCount}; * {@link XrHandJointVelocityEXT XrHandJointVelocityEXT} * {@link #jointVelocities}; * } - */ -public class XrHandJointVelocitiesEXT extends Struct implements NativeResource { + */ +public class XrHandJointVelocitiesEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -65,27 +65,27 @@ public class XrHandJointVelocitiesEXT extends Struct i /** The struct member offsets. */ public static final int - TYPE, - NEXT, - JOINTCOUNT, - JOINTVELOCITIES; + TYPE, + NEXT, + JOINTCOUNT, + JOINTVELOCITIES; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - JOINTCOUNT = layout.offsetof(2); - JOINTVELOCITIES = layout.offsetof(3); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + JOINTCOUNT = layout.offsetof(2); + JOINTVELOCITIES = layout.offsetof(3); + } protected XrHandJointVelocitiesEXT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -108,38 +108,38 @@ public XrHandJointVelocitiesEXT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** a {@code uint32_t} describing the number of elements in {@code jointVelocities} array. */ - @NativeType("uint32_t") - public int jointCount() { return njointCount(address()); } - /** an array of {@link XrHandJointVelocityEXT} receiving the returned hand joint velocities. */ - @NativeType("XrHandJointVelocityEXT *") - public XrHandJointVelocityEXT.Buffer jointVelocities() { return njointVelocities(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrHandJointVelocitiesEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_JOINT_VELOCITIES_EXT TYPE_HAND_JOINT_VELOCITIES_EXT} value to the {@link #type} field. */ - public XrHandJointVelocitiesEXT type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_JOINT_VELOCITIES_EXT); } - /** Sets the specified value to the {@link #next} field. */ - public XrHandJointVelocitiesEXT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the address of the specified {@link XrHandJointVelocityEXT.Buffer} to the {@link #jointVelocities} field. */ - public XrHandJointVelocitiesEXT jointVelocities(@NativeType("XrHandJointVelocityEXT *") XrHandJointVelocityEXT.Buffer value) { njointVelocities(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** a {@code uint32_t} describing the number of elements in {@code jointVelocities} array. */ + @NativeType("uint32_t") + public int jointCount() { return njointCount(address()); } + /** an array of {@link XrHandJointVelocityEXT} receiving the returned hand joint velocities. */ + @NativeType("XrHandJointVelocityEXT *") + public XrHandJointVelocityEXT.Buffer jointVelocities() { return njointVelocities(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHandJointVelocitiesEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_JOINT_VELOCITIES_EXT TYPE_HAND_JOINT_VELOCITIES_EXT} value to the {@link #type} field. */ + public XrHandJointVelocitiesEXT type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_JOINT_VELOCITIES_EXT); } + /** Sets the specified value to the {@link #next} field. */ + public XrHandJointVelocitiesEXT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the address of the specified {@link XrHandJointVelocityEXT.Buffer} to the {@link #jointVelocities} field. */ + public XrHandJointVelocitiesEXT jointVelocities(@NativeType("XrHandJointVelocityEXT *") XrHandJointVelocityEXT.Buffer value) { njointVelocities(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHandJointVelocitiesEXT set( - int type, - long next, + int type, + long next, XrHandJointVelocityEXT.Buffer jointVelocities - ) { - type(type); - next(next); - jointVelocities(jointVelocities); + ) { + type(type); + next(next); + jointVelocities(jointVelocities); return this; } @@ -268,24 +268,24 @@ public static XrHandJointVelocitiesEXT.Buffer calloc(int capacity, MemoryStack s } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandJointVelocitiesEXT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHandJointVelocitiesEXT.NEXT); } - /** Unsafe version of {@link #jointCount}. */ - public static int njointCount(long struct) { return UNSAFE.getInt(null, struct + XrHandJointVelocitiesEXT.JOINTCOUNT); } - /** Unsafe version of {@link #jointVelocities}. */ - public static XrHandJointVelocityEXT.Buffer njointVelocities(long struct) { return XrHandJointVelocityEXT.create(memGetAddress(struct + XrHandJointVelocitiesEXT.JOINTVELOCITIES), njointCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandJointVelocitiesEXT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHandJointVelocitiesEXT.NEXT, value); } - /** Sets the specified value to the {@code jointCount} field of the specified {@code struct}. */ - public static void njointCount(long struct, int value) { UNSAFE.putInt(null, struct + XrHandJointVelocitiesEXT.JOINTCOUNT, value); } - /** Unsafe version of {@link #jointVelocities(XrHandJointVelocityEXT.Buffer) jointVelocities}. */ - public static void njointVelocities(long struct, XrHandJointVelocityEXT.Buffer value) { memPutAddress(struct + XrHandJointVelocitiesEXT.JOINTVELOCITIES, value.address()); njointCount(struct, value.remaining()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandJointVelocitiesEXT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHandJointVelocitiesEXT.NEXT); } + /** Unsafe version of {@link #jointCount}. */ + public static int njointCount(long struct) { return UNSAFE.getInt(null, struct + XrHandJointVelocitiesEXT.JOINTCOUNT); } + /** Unsafe version of {@link #jointVelocities}. */ + public static XrHandJointVelocityEXT.Buffer njointVelocities(long struct) { return XrHandJointVelocityEXT.create(memGetAddress(struct + XrHandJointVelocitiesEXT.JOINTVELOCITIES), njointCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandJointVelocitiesEXT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHandJointVelocitiesEXT.NEXT, value); } + /** Sets the specified value to the {@code jointCount} field of the specified {@code struct}. */ + public static void njointCount(long struct, int value) { UNSAFE.putInt(null, struct + XrHandJointVelocitiesEXT.JOINTCOUNT, value); } + /** Unsafe version of {@link #jointVelocities(XrHandJointVelocityEXT.Buffer) jointVelocities}. */ + public static void njointVelocities(long struct, XrHandJointVelocityEXT.Buffer value) { memPutAddress(struct + XrHandJointVelocitiesEXT.JOINTVELOCITIES, value.address()); njointCount(struct, value.remaining()); } /** * Validates pointer members that should not be {@code NULL}. @@ -294,9 +294,9 @@ public static XrHandJointVelocitiesEXT.Buffer calloc(int capacity, MemoryStack s */ public static void validate(long struct) { check(memGetAddress(struct + XrHandJointVelocitiesEXT.JOINTVELOCITIES)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrHandJointVelocitiesEXT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -333,28 +333,28 @@ protected Buffer self() { protected XrHandJointVelocitiesEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandJointVelocitiesEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHandJointVelocitiesEXT.ntype(address()); } - /** @return the value of the {@link XrHandJointVelocitiesEXT#next} field. */ - @NativeType("void *") - public long next() { return XrHandJointVelocitiesEXT.nnext(address()); } - /** @return the value of the {@link XrHandJointVelocitiesEXT#jointCount} field. */ - @NativeType("uint32_t") - public int jointCount() { return XrHandJointVelocitiesEXT.njointCount(address()); } - /** @return a {@link XrHandJointVelocityEXT.Buffer} view of the struct array pointed to by the {@link XrHandJointVelocitiesEXT#jointVelocities} field. */ - @NativeType("XrHandJointVelocityEXT *") - public XrHandJointVelocityEXT.Buffer jointVelocities() { return XrHandJointVelocitiesEXT.njointVelocities(address()); } - - /** Sets the specified value to the {@link XrHandJointVelocitiesEXT#type} field. */ - public XrHandJointVelocitiesEXT.Buffer type(@NativeType("XrStructureType") int value) { XrHandJointVelocitiesEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_JOINT_VELOCITIES_EXT TYPE_HAND_JOINT_VELOCITIES_EXT} value to the {@link XrHandJointVelocitiesEXT#type} field. */ - public XrHandJointVelocitiesEXT.Buffer type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_JOINT_VELOCITIES_EXT); } - /** Sets the specified value to the {@link XrHandJointVelocitiesEXT#next} field. */ - public XrHandJointVelocitiesEXT.Buffer next(@NativeType("void *") long value) { XrHandJointVelocitiesEXT.nnext(address(), value); return this; } - /** Sets the address of the specified {@link XrHandJointVelocityEXT.Buffer} to the {@link XrHandJointVelocitiesEXT#jointVelocities} field. */ - public XrHandJointVelocitiesEXT.Buffer jointVelocities(@NativeType("XrHandJointVelocityEXT *") XrHandJointVelocityEXT.Buffer value) { XrHandJointVelocitiesEXT.njointVelocities(address(), value); return this; } + + /** @return the value of the {@link XrHandJointVelocitiesEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHandJointVelocitiesEXT.ntype(address()); } + /** @return the value of the {@link XrHandJointVelocitiesEXT#next} field. */ + @NativeType("void *") + public long next() { return XrHandJointVelocitiesEXT.nnext(address()); } + /** @return the value of the {@link XrHandJointVelocitiesEXT#jointCount} field. */ + @NativeType("uint32_t") + public int jointCount() { return XrHandJointVelocitiesEXT.njointCount(address()); } + /** @return a {@link XrHandJointVelocityEXT.Buffer} view of the struct array pointed to by the {@link XrHandJointVelocitiesEXT#jointVelocities} field. */ + @NativeType("XrHandJointVelocityEXT *") + public XrHandJointVelocityEXT.Buffer jointVelocities() { return XrHandJointVelocitiesEXT.njointVelocities(address()); } + + /** Sets the specified value to the {@link XrHandJointVelocitiesEXT#type} field. */ + public XrHandJointVelocitiesEXT.Buffer type(@NativeType("XrStructureType") int value) { XrHandJointVelocitiesEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_JOINT_VELOCITIES_EXT TYPE_HAND_JOINT_VELOCITIES_EXT} value to the {@link XrHandJointVelocitiesEXT#type} field. */ + public XrHandJointVelocitiesEXT.Buffer type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_JOINT_VELOCITIES_EXT); } + /** Sets the specified value to the {@link XrHandJointVelocitiesEXT#next} field. */ + public XrHandJointVelocitiesEXT.Buffer next(@NativeType("void *") long value) { XrHandJointVelocitiesEXT.nnext(address(), value); return this; } + /** Sets the address of the specified {@link XrHandJointVelocityEXT.Buffer} to the {@link XrHandJointVelocitiesEXT#jointVelocities} field. */ + public XrHandJointVelocitiesEXT.Buffer jointVelocities(@NativeType("XrHandJointVelocityEXT *") XrHandJointVelocityEXT.Buffer value) { XrHandJointVelocitiesEXT.njointVelocities(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointVelocityEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointVelocityEXT.java index bb9e68f059..74a601532e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointVelocityEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointVelocityEXT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes the velocity of a hand joint. * @@ -38,8 +38,8 @@ * {@link XrVector3f XrVector3f} {@link #linearVelocity}; * {@link XrVector3f XrVector3f} {@link #angularVelocity}; * } - */ -public class XrHandJointVelocityEXT extends Struct implements NativeResource { + */ +public class XrHandJointVelocityEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -49,24 +49,24 @@ public class XrHandJointVelocityEXT extends Struct imple /** The struct member offsets. */ public static final int - VELOCITYFLAGS, - LINEARVELOCITY, - ANGULARVELOCITY; + VELOCITYFLAGS, + LINEARVELOCITY, + ANGULARVELOCITY; static { - Layout layout = __struct( - __member(8), - __member(XrVector3f.SIZEOF, XrVector3f.ALIGNOF), + Layout layout = __struct( + __member(8), + __member(XrVector3f.SIZEOF, XrVector3f.ALIGNOF), __member(XrVector3f.SIZEOF, XrVector3f.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - VELOCITYFLAGS = layout.offsetof(0); - LINEARVELOCITY = layout.offsetof(1); - ANGULARVELOCITY = layout.offsetof(2); - } + VELOCITYFLAGS = layout.offsetof(0); + LINEARVELOCITY = layout.offsetof(1); + ANGULARVELOCITY = layout.offsetof(2); + } protected XrHandJointVelocityEXT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -89,35 +89,35 @@ public XrHandJointVelocityEXT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** a bitfield, with bit masks defined in {@code XrSpaceVelocityFlagBits}, to indicate which members contain valid data. If none of the bits are set, no other fields in this structure should be considered to be valid or meaningful. */ - @NativeType("XrSpaceVelocityFlags") - public long velocityFlags() { return nvelocityFlags(address()); } - /** the relative linear velocity of the hand joint with respect to and expressed in the reference frame of the corresponding {@link XrHandJointsLocateInfoEXT}{@code ::baseSpace}, in units of meters per second. */ - public XrVector3f linearVelocity() { return nlinearVelocity(address()); } - /** the relative angular velocity of the hand joint with respect to the corresponding {@link XrHandJointsLocateInfoEXT}{@code ::baseSpace}. The vector’s direction is expressed in the reference frame of the corresponding {@link XrHandJointsLocateInfoEXT}{@code ::baseSpace} and is parallel to the rotational axis of the hand joint. The vector’s magnitude is the relative angular speed of the hand joint in radians per second. The vector follows the right-hand rule for torque/rotation. */ - public XrVector3f angularVelocity() { return nangularVelocity(address()); } - - /** Sets the specified value to the {@link #velocityFlags} field. */ - public XrHandJointVelocityEXT velocityFlags(@NativeType("XrSpaceVelocityFlags") long value) { nvelocityFlags(address(), value); return this; } - /** Copies the specified {@link XrVector3f} to the {@link #linearVelocity} field. */ - public XrHandJointVelocityEXT linearVelocity(XrVector3f value) { nlinearVelocity(address(), value); return this; } - /** Passes the {@link #linearVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandJointVelocityEXT linearVelocity(java.util.function.Consumer consumer) { consumer.accept(linearVelocity()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link #angularVelocity} field. */ - public XrHandJointVelocityEXT angularVelocity(XrVector3f value) { nangularVelocity(address(), value); return this; } - /** Passes the {@link #angularVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandJointVelocityEXT angularVelocity(java.util.function.Consumer consumer) { consumer.accept(angularVelocity()); return this; } + + /** a bitfield, with bit masks defined in {@code XrSpaceVelocityFlagBits}, to indicate which members contain valid data. If none of the bits are set, no other fields in this structure should be considered to be valid or meaningful. */ + @NativeType("XrSpaceVelocityFlags") + public long velocityFlags() { return nvelocityFlags(address()); } + /** the relative linear velocity of the hand joint with respect to and expressed in the reference frame of the corresponding {@link XrHandJointsLocateInfoEXT}{@code ::baseSpace}, in units of meters per second. */ + public XrVector3f linearVelocity() { return nlinearVelocity(address()); } + /** the relative angular velocity of the hand joint with respect to the corresponding {@link XrHandJointsLocateInfoEXT}{@code ::baseSpace}. The vector’s direction is expressed in the reference frame of the corresponding {@link XrHandJointsLocateInfoEXT}{@code ::baseSpace} and is parallel to the rotational axis of the hand joint. The vector’s magnitude is the relative angular speed of the hand joint in radians per second. The vector follows the right-hand rule for torque/rotation. */ + public XrVector3f angularVelocity() { return nangularVelocity(address()); } + + /** Sets the specified value to the {@link #velocityFlags} field. */ + public XrHandJointVelocityEXT velocityFlags(@NativeType("XrSpaceVelocityFlags") long value) { nvelocityFlags(address(), value); return this; } + /** Copies the specified {@link XrVector3f} to the {@link #linearVelocity} field. */ + public XrHandJointVelocityEXT linearVelocity(XrVector3f value) { nlinearVelocity(address(), value); return this; } + /** Passes the {@link #linearVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandJointVelocityEXT linearVelocity(java.util.function.Consumer consumer) { consumer.accept(linearVelocity()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link #angularVelocity} field. */ + public XrHandJointVelocityEXT angularVelocity(XrVector3f value) { nangularVelocity(address(), value); return this; } + /** Passes the {@link #angularVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandJointVelocityEXT angularVelocity(java.util.function.Consumer consumer) { consumer.accept(angularVelocity()); return this; } /** Initializes this struct with the specified values. */ public XrHandJointVelocityEXT set( - long velocityFlags, - XrVector3f linearVelocity, + long velocityFlags, + XrVector3f linearVelocity, XrVector3f angularVelocity - ) { - velocityFlags(velocityFlags); - linearVelocity(linearVelocity); - angularVelocity(angularVelocity); + ) { + velocityFlags(velocityFlags); + linearVelocity(linearVelocity); + angularVelocity(angularVelocity); return this; } @@ -246,22 +246,22 @@ public static XrHandJointVelocityEXT.Buffer calloc(int capacity, MemoryStack sta } // ----------------------------------- - - /** Unsafe version of {@link #velocityFlags}. */ - public static long nvelocityFlags(long struct) { return UNSAFE.getLong(null, struct + XrHandJointVelocityEXT.VELOCITYFLAGS); } - /** Unsafe version of {@link #linearVelocity}. */ - public static XrVector3f nlinearVelocity(long struct) { return XrVector3f.create(struct + XrHandJointVelocityEXT.LINEARVELOCITY); } - /** Unsafe version of {@link #angularVelocity}. */ - public static XrVector3f nangularVelocity(long struct) { return XrVector3f.create(struct + XrHandJointVelocityEXT.ANGULARVELOCITY); } - - /** Unsafe version of {@link #velocityFlags(long) velocityFlags}. */ - public static void nvelocityFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrHandJointVelocityEXT.VELOCITYFLAGS, value); } - /** Unsafe version of {@link #linearVelocity(XrVector3f) linearVelocity}. */ - public static void nlinearVelocity(long struct, XrVector3f value) { memCopy(value.address(), struct + XrHandJointVelocityEXT.LINEARVELOCITY, XrVector3f.SIZEOF); } - /** Unsafe version of {@link #angularVelocity(XrVector3f) angularVelocity}. */ - public static void nangularVelocity(long struct, XrVector3f value) { memCopy(value.address(), struct + XrHandJointVelocityEXT.ANGULARVELOCITY, XrVector3f.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #velocityFlags}. */ + public static long nvelocityFlags(long struct) { return UNSAFE.getLong(null, struct + XrHandJointVelocityEXT.VELOCITYFLAGS); } + /** Unsafe version of {@link #linearVelocity}. */ + public static XrVector3f nlinearVelocity(long struct) { return XrVector3f.create(struct + XrHandJointVelocityEXT.LINEARVELOCITY); } + /** Unsafe version of {@link #angularVelocity}. */ + public static XrVector3f nangularVelocity(long struct) { return XrVector3f.create(struct + XrHandJointVelocityEXT.ANGULARVELOCITY); } + + /** Unsafe version of {@link #velocityFlags(long) velocityFlags}. */ + public static void nvelocityFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrHandJointVelocityEXT.VELOCITYFLAGS, value); } + /** Unsafe version of {@link #linearVelocity(XrVector3f) linearVelocity}. */ + public static void nlinearVelocity(long struct, XrVector3f value) { memCopy(value.address(), struct + XrHandJointVelocityEXT.LINEARVELOCITY, XrVector3f.SIZEOF); } + /** Unsafe version of {@link #angularVelocity(XrVector3f) angularVelocity}. */ + public static void nangularVelocity(long struct, XrVector3f value) { memCopy(value.address(), struct + XrHandJointVelocityEXT.ANGULARVELOCITY, XrVector3f.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrHandJointVelocityEXT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -298,25 +298,25 @@ protected Buffer self() { protected XrHandJointVelocityEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandJointVelocityEXT#velocityFlags} field. */ - @NativeType("XrSpaceVelocityFlags") - public long velocityFlags() { return XrHandJointVelocityEXT.nvelocityFlags(address()); } - /** @return a {@link XrVector3f} view of the {@link XrHandJointVelocityEXT#linearVelocity} field. */ - public XrVector3f linearVelocity() { return XrHandJointVelocityEXT.nlinearVelocity(address()); } - /** @return a {@link XrVector3f} view of the {@link XrHandJointVelocityEXT#angularVelocity} field. */ - public XrVector3f angularVelocity() { return XrHandJointVelocityEXT.nangularVelocity(address()); } - - /** Sets the specified value to the {@link XrHandJointVelocityEXT#velocityFlags} field. */ - public XrHandJointVelocityEXT.Buffer velocityFlags(@NativeType("XrSpaceVelocityFlags") long value) { XrHandJointVelocityEXT.nvelocityFlags(address(), value); return this; } - /** Copies the specified {@link XrVector3f} to the {@link XrHandJointVelocityEXT#linearVelocity} field. */ - public XrHandJointVelocityEXT.Buffer linearVelocity(XrVector3f value) { XrHandJointVelocityEXT.nlinearVelocity(address(), value); return this; } - /** Passes the {@link XrHandJointVelocityEXT#linearVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandJointVelocityEXT.Buffer linearVelocity(java.util.function.Consumer consumer) { consumer.accept(linearVelocity()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link XrHandJointVelocityEXT#angularVelocity} field. */ - public XrHandJointVelocityEXT.Buffer angularVelocity(XrVector3f value) { XrHandJointVelocityEXT.nangularVelocity(address(), value); return this; } - /** Passes the {@link XrHandJointVelocityEXT#angularVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandJointVelocityEXT.Buffer angularVelocity(java.util.function.Consumer consumer) { consumer.accept(angularVelocity()); return this; } + + /** @return the value of the {@link XrHandJointVelocityEXT#velocityFlags} field. */ + @NativeType("XrSpaceVelocityFlags") + public long velocityFlags() { return XrHandJointVelocityEXT.nvelocityFlags(address()); } + /** @return a {@link XrVector3f} view of the {@link XrHandJointVelocityEXT#linearVelocity} field. */ + public XrVector3f linearVelocity() { return XrHandJointVelocityEXT.nlinearVelocity(address()); } + /** @return a {@link XrVector3f} view of the {@link XrHandJointVelocityEXT#angularVelocity} field. */ + public XrVector3f angularVelocity() { return XrHandJointVelocityEXT.nangularVelocity(address()); } + + /** Sets the specified value to the {@link XrHandJointVelocityEXT#velocityFlags} field. */ + public XrHandJointVelocityEXT.Buffer velocityFlags(@NativeType("XrSpaceVelocityFlags") long value) { XrHandJointVelocityEXT.nvelocityFlags(address(), value); return this; } + /** Copies the specified {@link XrVector3f} to the {@link XrHandJointVelocityEXT#linearVelocity} field. */ + public XrHandJointVelocityEXT.Buffer linearVelocity(XrVector3f value) { XrHandJointVelocityEXT.nlinearVelocity(address(), value); return this; } + /** Passes the {@link XrHandJointVelocityEXT#linearVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandJointVelocityEXT.Buffer linearVelocity(java.util.function.Consumer consumer) { consumer.accept(linearVelocity()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link XrHandJointVelocityEXT#angularVelocity} field. */ + public XrHandJointVelocityEXT.Buffer angularVelocity(XrVector3f value) { XrHandJointVelocityEXT.nangularVelocity(address(), value); return this; } + /** Passes the {@link XrHandJointVelocityEXT#angularVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandJointVelocityEXT.Buffer angularVelocity(java.util.function.Consumer consumer) { consumer.accept(angularVelocity()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointsLocateInfoEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointsLocateInfoEXT.java index ddbbd6edd9..bf8a585712 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointsLocateInfoEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointsLocateInfoEXT.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes the information to locate hand joints. * @@ -24,7 +24,7 @@ *
                                            *
                                          • The {@link EXTHandTracking XR_EXT_hand_tracking} extension must be enabled prior to using {@link XrHandJointsLocateInfoEXT}
                                          • *
                                          • {@code type} must be {@link EXTHandTracking#XR_TYPE_HAND_JOINTS_LOCATE_INFO_EXT TYPE_HAND_JOINTS_LOCATE_INFO_EXT}
                                          • - *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrHandJointsMotionRangeInfoEXT}
                                          • + *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrHandJointsMotionRangeInfoEXT}
                                          • *
                                          • {@code baseSpace} must be a valid {@code XrSpace} handle
                                          • *
                                          * @@ -41,8 +41,8 @@ * XrSpace {@link #baseSpace}; * XrTime {@link #time}; * } - */ -public class XrHandJointsLocateInfoEXT extends Struct implements NativeResource { + */ +public class XrHandJointsLocateInfoEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,27 +52,27 @@ public class XrHandJointsLocateInfoEXT extends Struct /** The struct member offsets. */ public static final int - TYPE, - NEXT, - BASESPACE, - TIME; + TYPE, + NEXT, + BASESPACE, + TIME; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - BASESPACE = layout.offsetof(2); - TIME = layout.offsetof(3); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + BASESPACE = layout.offsetof(2); + TIME = layout.offsetof(3); + } protected XrHandJointsLocateInfoEXT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -95,44 +95,44 @@ public XrHandJointsLocateInfoEXT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** an {@code XrSpace} within which the returned hand joint locations will be represented. */ - @NativeType("XrSpace") - public long baseSpace() { return nbaseSpace(address()); } - /** an {@code XrTime} at which to locate the hand joints. */ - @NativeType("XrTime") - public long time() { return ntime(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrHandJointsLocateInfoEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_JOINTS_LOCATE_INFO_EXT TYPE_HAND_JOINTS_LOCATE_INFO_EXT} value to the {@link #type} field. */ - public XrHandJointsLocateInfoEXT type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_JOINTS_LOCATE_INFO_EXT); } - /** Sets the specified value to the {@link #next} field. */ - public XrHandJointsLocateInfoEXT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrHandJointsMotionRangeInfoEXT} value to the {@code next} chain. */ - public XrHandJointsLocateInfoEXT next(XrHandJointsMotionRangeInfoEXT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #baseSpace} field. */ - public XrHandJointsLocateInfoEXT baseSpace(XrSpace value) { nbaseSpace(address(), value); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrHandJointsLocateInfoEXT time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** an {@code XrSpace} within which the returned hand joint locations will be represented. */ + @NativeType("XrSpace") + public long baseSpace() { return nbaseSpace(address()); } + /** an {@code XrTime} at which to locate the hand joints. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHandJointsLocateInfoEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_JOINTS_LOCATE_INFO_EXT TYPE_HAND_JOINTS_LOCATE_INFO_EXT} value to the {@link #type} field. */ + public XrHandJointsLocateInfoEXT type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_JOINTS_LOCATE_INFO_EXT); } + /** Sets the specified value to the {@link #next} field. */ + public XrHandJointsLocateInfoEXT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrHandJointsMotionRangeInfoEXT} value to the {@code next} chain. */ + public XrHandJointsLocateInfoEXT next(XrHandJointsMotionRangeInfoEXT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #baseSpace} field. */ + public XrHandJointsLocateInfoEXT baseSpace(XrSpace value) { nbaseSpace(address(), value); return this; } + /** Sets the specified value to the {@link #time} field. */ + public XrHandJointsLocateInfoEXT time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHandJointsLocateInfoEXT set( - int type, - long next, - XrSpace baseSpace, + int type, + long next, + XrSpace baseSpace, long time - ) { - type(type); - next(next); - baseSpace(baseSpace); - time(time); + ) { + type(type); + next(next); + baseSpace(baseSpace); + time(time); return this; } @@ -261,24 +261,24 @@ public static XrHandJointsLocateInfoEXT.Buffer calloc(int capacity, MemoryStack } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandJointsLocateInfoEXT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHandJointsLocateInfoEXT.NEXT); } - /** Unsafe version of {@link #baseSpace}. */ - public static long nbaseSpace(long struct) { return memGetAddress(struct + XrHandJointsLocateInfoEXT.BASESPACE); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrHandJointsLocateInfoEXT.TIME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandJointsLocateInfoEXT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHandJointsLocateInfoEXT.NEXT, value); } - /** Unsafe version of {@link #baseSpace(XrSpace) baseSpace}. */ - public static void nbaseSpace(long struct, XrSpace value) { memPutAddress(struct + XrHandJointsLocateInfoEXT.BASESPACE, value.address()); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrHandJointsLocateInfoEXT.TIME, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandJointsLocateInfoEXT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHandJointsLocateInfoEXT.NEXT); } + /** Unsafe version of {@link #baseSpace}. */ + public static long nbaseSpace(long struct) { return memGetAddress(struct + XrHandJointsLocateInfoEXT.BASESPACE); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrHandJointsLocateInfoEXT.TIME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandJointsLocateInfoEXT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHandJointsLocateInfoEXT.NEXT, value); } + /** Unsafe version of {@link #baseSpace(XrSpace) baseSpace}. */ + public static void nbaseSpace(long struct, XrSpace value) { memPutAddress(struct + XrHandJointsLocateInfoEXT.BASESPACE, value.address()); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrHandJointsLocateInfoEXT.TIME, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -287,9 +287,9 @@ public static XrHandJointsLocateInfoEXT.Buffer calloc(int capacity, MemoryStack */ public static void validate(long struct) { check(memGetAddress(struct + XrHandJointsLocateInfoEXT.BASESPACE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrHandJointsLocateInfoEXT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -326,32 +326,32 @@ protected Buffer self() { protected XrHandJointsLocateInfoEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandJointsLocateInfoEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHandJointsLocateInfoEXT.ntype(address()); } - /** @return the value of the {@link XrHandJointsLocateInfoEXT#next} field. */ - @NativeType("void const *") - public long next() { return XrHandJointsLocateInfoEXT.nnext(address()); } - /** @return the value of the {@link XrHandJointsLocateInfoEXT#baseSpace} field. */ - @NativeType("XrSpace") - public long baseSpace() { return XrHandJointsLocateInfoEXT.nbaseSpace(address()); } - /** @return the value of the {@link XrHandJointsLocateInfoEXT#time} field. */ - @NativeType("XrTime") - public long time() { return XrHandJointsLocateInfoEXT.ntime(address()); } - - /** Sets the specified value to the {@link XrHandJointsLocateInfoEXT#type} field. */ - public XrHandJointsLocateInfoEXT.Buffer type(@NativeType("XrStructureType") int value) { XrHandJointsLocateInfoEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_JOINTS_LOCATE_INFO_EXT TYPE_HAND_JOINTS_LOCATE_INFO_EXT} value to the {@link XrHandJointsLocateInfoEXT#type} field. */ - public XrHandJointsLocateInfoEXT.Buffer type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_JOINTS_LOCATE_INFO_EXT); } - /** Sets the specified value to the {@link XrHandJointsLocateInfoEXT#next} field. */ - public XrHandJointsLocateInfoEXT.Buffer next(@NativeType("void const *") long value) { XrHandJointsLocateInfoEXT.nnext(address(), value); return this; } - /** Prepends the specified {@link XrHandJointsMotionRangeInfoEXT} value to the {@code next} chain. */ - public XrHandJointsLocateInfoEXT.Buffer next(XrHandJointsMotionRangeInfoEXT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrHandJointsLocateInfoEXT#baseSpace} field. */ - public XrHandJointsLocateInfoEXT.Buffer baseSpace(XrSpace value) { XrHandJointsLocateInfoEXT.nbaseSpace(address(), value); return this; } - /** Sets the specified value to the {@link XrHandJointsLocateInfoEXT#time} field. */ - public XrHandJointsLocateInfoEXT.Buffer time(@NativeType("XrTime") long value) { XrHandJointsLocateInfoEXT.ntime(address(), value); return this; } + + /** @return the value of the {@link XrHandJointsLocateInfoEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHandJointsLocateInfoEXT.ntype(address()); } + /** @return the value of the {@link XrHandJointsLocateInfoEXT#next} field. */ + @NativeType("void const *") + public long next() { return XrHandJointsLocateInfoEXT.nnext(address()); } + /** @return the value of the {@link XrHandJointsLocateInfoEXT#baseSpace} field. */ + @NativeType("XrSpace") + public long baseSpace() { return XrHandJointsLocateInfoEXT.nbaseSpace(address()); } + /** @return the value of the {@link XrHandJointsLocateInfoEXT#time} field. */ + @NativeType("XrTime") + public long time() { return XrHandJointsLocateInfoEXT.ntime(address()); } + + /** Sets the specified value to the {@link XrHandJointsLocateInfoEXT#type} field. */ + public XrHandJointsLocateInfoEXT.Buffer type(@NativeType("XrStructureType") int value) { XrHandJointsLocateInfoEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_JOINTS_LOCATE_INFO_EXT TYPE_HAND_JOINTS_LOCATE_INFO_EXT} value to the {@link XrHandJointsLocateInfoEXT#type} field. */ + public XrHandJointsLocateInfoEXT.Buffer type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_JOINTS_LOCATE_INFO_EXT); } + /** Sets the specified value to the {@link XrHandJointsLocateInfoEXT#next} field. */ + public XrHandJointsLocateInfoEXT.Buffer next(@NativeType("void const *") long value) { XrHandJointsLocateInfoEXT.nnext(address(), value); return this; } + /** Prepends the specified {@link XrHandJointsMotionRangeInfoEXT} value to the {@code next} chain. */ + public XrHandJointsLocateInfoEXT.Buffer next(XrHandJointsMotionRangeInfoEXT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrHandJointsLocateInfoEXT#baseSpace} field. */ + public XrHandJointsLocateInfoEXT.Buffer baseSpace(XrSpace value) { XrHandJointsLocateInfoEXT.nbaseSpace(address(), value); return this; } + /** Sets the specified value to the {@link XrHandJointsLocateInfoEXT#time} field. */ + public XrHandJointsLocateInfoEXT.Buffer time(@NativeType("XrTime") long value) { XrHandJointsLocateInfoEXT.ntime(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointsMotionRangeInfoEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointsMotionRangeInfoEXT.java index 20c87ea534..8aeca01a47 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointsMotionRangeInfoEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandJointsMotionRangeInfoEXT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Chains to XrHandJointsLocateInfoEXT to specify final hand tracking grip pose. * @@ -23,7 +23,7 @@ *
                                            *
                                          • The {@link EXTHandJointsMotionRange XR_EXT_hand_joints_motion_range} extension must be enabled prior to using {@link XrHandJointsMotionRangeInfoEXT}
                                          • *
                                          • {@code type} must be {@link EXTHandJointsMotionRange#XR_TYPE_HAND_JOINTS_MOTION_RANGE_INFO_EXT TYPE_HAND_JOINTS_MOTION_RANGE_INFO_EXT}
                                          • - *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                          • + *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                          • *
                                          • {@code handJointsMotionRange} must be a valid {@code XrHandJointsMotionRangeEXT} value
                                          • *
                                          * @@ -39,8 +39,8 @@ * void const * {@link #next}; * XrHandJointsMotionRangeEXT {@link #handJointsMotionRange}; * } - */ -public class XrHandJointsMotionRangeInfoEXT extends Struct implements NativeResource { + */ +public class XrHandJointsMotionRangeInfoEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,24 +50,24 @@ public class XrHandJointsMotionRangeInfoEXT extends Struct implements NativeResource { @@ -299,25 +299,25 @@ protected Buffer self() { protected XrHandJointsMotionRangeInfoEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandJointsMotionRangeInfoEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHandJointsMotionRangeInfoEXT.ntype(address()); } - /** @return the value of the {@link XrHandJointsMotionRangeInfoEXT#next} field. */ - @NativeType("void const *") - public long next() { return XrHandJointsMotionRangeInfoEXT.nnext(address()); } - /** @return the value of the {@link XrHandJointsMotionRangeInfoEXT#handJointsMotionRange} field. */ - @NativeType("XrHandJointsMotionRangeEXT") - public int handJointsMotionRange() { return XrHandJointsMotionRangeInfoEXT.nhandJointsMotionRange(address()); } - - /** Sets the specified value to the {@link XrHandJointsMotionRangeInfoEXT#type} field. */ - public XrHandJointsMotionRangeInfoEXT.Buffer type(@NativeType("XrStructureType") int value) { XrHandJointsMotionRangeInfoEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTHandJointsMotionRange#XR_TYPE_HAND_JOINTS_MOTION_RANGE_INFO_EXT TYPE_HAND_JOINTS_MOTION_RANGE_INFO_EXT} value to the {@link XrHandJointsMotionRangeInfoEXT#type} field. */ - public XrHandJointsMotionRangeInfoEXT.Buffer type$Default() { return type(EXTHandJointsMotionRange.XR_TYPE_HAND_JOINTS_MOTION_RANGE_INFO_EXT); } - /** Sets the specified value to the {@link XrHandJointsMotionRangeInfoEXT#next} field. */ - public XrHandJointsMotionRangeInfoEXT.Buffer next(@NativeType("void const *") long value) { XrHandJointsMotionRangeInfoEXT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrHandJointsMotionRangeInfoEXT#handJointsMotionRange} field. */ - public XrHandJointsMotionRangeInfoEXT.Buffer handJointsMotionRange(@NativeType("XrHandJointsMotionRangeEXT") int value) { XrHandJointsMotionRangeInfoEXT.nhandJointsMotionRange(address(), value); return this; } + + /** @return the value of the {@link XrHandJointsMotionRangeInfoEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHandJointsMotionRangeInfoEXT.ntype(address()); } + /** @return the value of the {@link XrHandJointsMotionRangeInfoEXT#next} field. */ + @NativeType("void const *") + public long next() { return XrHandJointsMotionRangeInfoEXT.nnext(address()); } + /** @return the value of the {@link XrHandJointsMotionRangeInfoEXT#handJointsMotionRange} field. */ + @NativeType("XrHandJointsMotionRangeEXT") + public int handJointsMotionRange() { return XrHandJointsMotionRangeInfoEXT.nhandJointsMotionRange(address()); } + + /** Sets the specified value to the {@link XrHandJointsMotionRangeInfoEXT#type} field. */ + public XrHandJointsMotionRangeInfoEXT.Buffer type(@NativeType("XrStructureType") int value) { XrHandJointsMotionRangeInfoEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTHandJointsMotionRange#XR_TYPE_HAND_JOINTS_MOTION_RANGE_INFO_EXT TYPE_HAND_JOINTS_MOTION_RANGE_INFO_EXT} value to the {@link XrHandJointsMotionRangeInfoEXT#type} field. */ + public XrHandJointsMotionRangeInfoEXT.Buffer type$Default() { return type(EXTHandJointsMotionRange.XR_TYPE_HAND_JOINTS_MOTION_RANGE_INFO_EXT); } + /** Sets the specified value to the {@link XrHandJointsMotionRangeInfoEXT#next} field. */ + public XrHandJointsMotionRangeInfoEXT.Buffer next(@NativeType("void const *") long value) { XrHandJointsMotionRangeInfoEXT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrHandJointsMotionRangeInfoEXT#handJointsMotionRange} field. */ + public XrHandJointsMotionRangeInfoEXT.Buffer handJointsMotionRange(@NativeType("XrHandJointsMotionRangeEXT") int value) { XrHandJointsMotionRangeInfoEXT.nhandJointsMotionRange(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshIndexBufferMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshIndexBufferMSFT.java index e8a6a4e545..ee954fd779 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshIndexBufferMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshIndexBufferMSFT.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The index buffer of a hand mesh. * @@ -58,8 +58,8 @@ * uint32_t {@link #indexCountOutput}; * uint32_t * {@link #indices}; * } - */ -public class XrHandMeshIndexBufferMSFT extends Struct implements NativeResource { + */ +public class XrHandMeshIndexBufferMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -69,27 +69,27 @@ public class XrHandMeshIndexBufferMSFT extends Struct /** The struct member offsets. */ public static final int - INDEXBUFFERKEY, - INDEXCAPACITYINPUT, - INDEXCOUNTOUTPUT, - INDICES; + INDEXBUFFERKEY, + INDEXCAPACITYINPUT, + INDEXCOUNTOUTPUT, + INDICES; static { - Layout layout = __struct( - __member(4), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(4), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - INDEXBUFFERKEY = layout.offsetof(0); - INDEXCAPACITYINPUT = layout.offsetof(1); - INDEXCOUNTOUTPUT = layout.offsetof(2); - INDICES = layout.offsetof(3); - } + INDEXBUFFERKEY = layout.offsetof(0); + INDEXCAPACITYINPUT = layout.offsetof(1); + INDEXCOUNTOUTPUT = layout.offsetof(2); + INDICES = layout.offsetof(3); + } protected XrHandMeshIndexBufferMSFT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -112,36 +112,36 @@ public XrHandMeshIndexBufferMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** a {@code uint32_t} serving as the key of the returned index buffer content or 0 to indicate a request to retrieve the latest indices regardless of existing content in {@code indices}. */ - @NativeType("uint32_t") - public int indexBufferKey() { return nindexBufferKey(address()); } - /** a positive {@code uint32_t} describes the capacity of the {@code indices} array. */ - @NativeType("uint32_t") - public int indexCapacityInput() { return nindexCapacityInput(address()); } - /** a {@code uint32_t} returned by the runtime with the count of indices written in {@code indices}. */ - @NativeType("uint32_t") - public int indexCountOutput() { return nindexCountOutput(address()); } - /** an array of indices filled in by the runtime, specifying the indices of the triangles list in the vertex buffer. */ - @NativeType("uint32_t *") - public IntBuffer indices() { return nindices(address()); } - - /** Sets the specified value to the {@link #indexBufferKey} field. */ - public XrHandMeshIndexBufferMSFT indexBufferKey(@NativeType("uint32_t") int value) { nindexBufferKey(address(), value); return this; } - /** Sets the specified value to the {@link #indexCountOutput} field. */ - public XrHandMeshIndexBufferMSFT indexCountOutput(@NativeType("uint32_t") int value) { nindexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link #indices} field. */ - public XrHandMeshIndexBufferMSFT indices(@NativeType("uint32_t *") IntBuffer value) { nindices(address(), value); return this; } + + /** a {@code uint32_t} serving as the key of the returned index buffer content or 0 to indicate a request to retrieve the latest indices regardless of existing content in {@code indices}. */ + @NativeType("uint32_t") + public int indexBufferKey() { return nindexBufferKey(address()); } + /** a positive {@code uint32_t} describes the capacity of the {@code indices} array. */ + @NativeType("uint32_t") + public int indexCapacityInput() { return nindexCapacityInput(address()); } + /** a {@code uint32_t} returned by the runtime with the count of indices written in {@code indices}. */ + @NativeType("uint32_t") + public int indexCountOutput() { return nindexCountOutput(address()); } + /** an array of indices filled in by the runtime, specifying the indices of the triangles list in the vertex buffer. */ + @NativeType("uint32_t *") + public IntBuffer indices() { return nindices(address()); } + + /** Sets the specified value to the {@link #indexBufferKey} field. */ + public XrHandMeshIndexBufferMSFT indexBufferKey(@NativeType("uint32_t") int value) { nindexBufferKey(address(), value); return this; } + /** Sets the specified value to the {@link #indexCountOutput} field. */ + public XrHandMeshIndexBufferMSFT indexCountOutput(@NativeType("uint32_t") int value) { nindexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link #indices} field. */ + public XrHandMeshIndexBufferMSFT indices(@NativeType("uint32_t *") IntBuffer value) { nindices(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHandMeshIndexBufferMSFT set( - int indexBufferKey, - int indexCountOutput, + int indexBufferKey, + int indexCountOutput, IntBuffer indices - ) { - indexBufferKey(indexBufferKey); - indexCountOutput(indexCountOutput); - indices(indices); + ) { + indexBufferKey(indexBufferKey); + indexCountOutput(indexCountOutput); + indices(indices); return this; } @@ -270,24 +270,24 @@ public static XrHandMeshIndexBufferMSFT.Buffer calloc(int capacity, MemoryStack } // ----------------------------------- - - /** Unsafe version of {@link #indexBufferKey}. */ - public static int nindexBufferKey(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshIndexBufferMSFT.INDEXBUFFERKEY); } - /** Unsafe version of {@link #indexCapacityInput}. */ - public static int nindexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshIndexBufferMSFT.INDEXCAPACITYINPUT); } - /** Unsafe version of {@link #indexCountOutput}. */ - public static int nindexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshIndexBufferMSFT.INDEXCOUNTOUTPUT); } - /** Unsafe version of {@link #indices() indices}. */ - public static IntBuffer nindices(long struct) { return memIntBuffer(memGetAddress(struct + XrHandMeshIndexBufferMSFT.INDICES), nindexCapacityInput(struct)); } - - /** Unsafe version of {@link #indexBufferKey(int) indexBufferKey}. */ - public static void nindexBufferKey(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshIndexBufferMSFT.INDEXBUFFERKEY, value); } - /** Sets the specified value to the {@code indexCapacityInput} field of the specified {@code struct}. */ - public static void nindexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshIndexBufferMSFT.INDEXCAPACITYINPUT, value); } - /** Unsafe version of {@link #indexCountOutput(int) indexCountOutput}. */ - public static void nindexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshIndexBufferMSFT.INDEXCOUNTOUTPUT, value); } - /** Unsafe version of {@link #indices(IntBuffer) indices}. */ - public static void nindices(long struct, IntBuffer value) { memPutAddress(struct + XrHandMeshIndexBufferMSFT.INDICES, memAddress(value)); nindexCapacityInput(struct, value.remaining()); } + + /** Unsafe version of {@link #indexBufferKey}. */ + public static int nindexBufferKey(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshIndexBufferMSFT.INDEXBUFFERKEY); } + /** Unsafe version of {@link #indexCapacityInput}. */ + public static int nindexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshIndexBufferMSFT.INDEXCAPACITYINPUT); } + /** Unsafe version of {@link #indexCountOutput}. */ + public static int nindexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshIndexBufferMSFT.INDEXCOUNTOUTPUT); } + /** Unsafe version of {@link #indices() indices}. */ + public static IntBuffer nindices(long struct) { return memIntBuffer(memGetAddress(struct + XrHandMeshIndexBufferMSFT.INDICES), nindexCapacityInput(struct)); } + + /** Unsafe version of {@link #indexBufferKey(int) indexBufferKey}. */ + public static void nindexBufferKey(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshIndexBufferMSFT.INDEXBUFFERKEY, value); } + /** Sets the specified value to the {@code indexCapacityInput} field of the specified {@code struct}. */ + public static void nindexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshIndexBufferMSFT.INDEXCAPACITYINPUT, value); } + /** Unsafe version of {@link #indexCountOutput(int) indexCountOutput}. */ + public static void nindexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshIndexBufferMSFT.INDEXCOUNTOUTPUT, value); } + /** Unsafe version of {@link #indices(IntBuffer) indices}. */ + public static void nindices(long struct, IntBuffer value) { memPutAddress(struct + XrHandMeshIndexBufferMSFT.INDICES, memAddress(value)); nindexCapacityInput(struct, value.remaining()); } /** * Validates pointer members that should not be {@code NULL}. @@ -296,9 +296,9 @@ public static XrHandMeshIndexBufferMSFT.Buffer calloc(int capacity, MemoryStack */ public static void validate(long struct) { check(memGetAddress(struct + XrHandMeshIndexBufferMSFT.INDICES)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrHandMeshIndexBufferMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -335,26 +335,26 @@ protected Buffer self() { protected XrHandMeshIndexBufferMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandMeshIndexBufferMSFT#indexBufferKey} field. */ - @NativeType("uint32_t") - public int indexBufferKey() { return XrHandMeshIndexBufferMSFT.nindexBufferKey(address()); } - /** @return the value of the {@link XrHandMeshIndexBufferMSFT#indexCapacityInput} field. */ - @NativeType("uint32_t") - public int indexCapacityInput() { return XrHandMeshIndexBufferMSFT.nindexCapacityInput(address()); } - /** @return the value of the {@link XrHandMeshIndexBufferMSFT#indexCountOutput} field. */ - @NativeType("uint32_t") - public int indexCountOutput() { return XrHandMeshIndexBufferMSFT.nindexCountOutput(address()); } - /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrHandMeshIndexBufferMSFT#indices} field. */ - @NativeType("uint32_t *") - public IntBuffer indices() { return XrHandMeshIndexBufferMSFT.nindices(address()); } - - /** Sets the specified value to the {@link XrHandMeshIndexBufferMSFT#indexBufferKey} field. */ - public XrHandMeshIndexBufferMSFT.Buffer indexBufferKey(@NativeType("uint32_t") int value) { XrHandMeshIndexBufferMSFT.nindexBufferKey(address(), value); return this; } - /** Sets the specified value to the {@link XrHandMeshIndexBufferMSFT#indexCountOutput} field. */ - public XrHandMeshIndexBufferMSFT.Buffer indexCountOutput(@NativeType("uint32_t") int value) { XrHandMeshIndexBufferMSFT.nindexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link XrHandMeshIndexBufferMSFT#indices} field. */ - public XrHandMeshIndexBufferMSFT.Buffer indices(@NativeType("uint32_t *") IntBuffer value) { XrHandMeshIndexBufferMSFT.nindices(address(), value); return this; } + + /** @return the value of the {@link XrHandMeshIndexBufferMSFT#indexBufferKey} field. */ + @NativeType("uint32_t") + public int indexBufferKey() { return XrHandMeshIndexBufferMSFT.nindexBufferKey(address()); } + /** @return the value of the {@link XrHandMeshIndexBufferMSFT#indexCapacityInput} field. */ + @NativeType("uint32_t") + public int indexCapacityInput() { return XrHandMeshIndexBufferMSFT.nindexCapacityInput(address()); } + /** @return the value of the {@link XrHandMeshIndexBufferMSFT#indexCountOutput} field. */ + @NativeType("uint32_t") + public int indexCountOutput() { return XrHandMeshIndexBufferMSFT.nindexCountOutput(address()); } + /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrHandMeshIndexBufferMSFT#indices} field. */ + @NativeType("uint32_t *") + public IntBuffer indices() { return XrHandMeshIndexBufferMSFT.nindices(address()); } + + /** Sets the specified value to the {@link XrHandMeshIndexBufferMSFT#indexBufferKey} field. */ + public XrHandMeshIndexBufferMSFT.Buffer indexBufferKey(@NativeType("uint32_t") int value) { XrHandMeshIndexBufferMSFT.nindexBufferKey(address(), value); return this; } + /** Sets the specified value to the {@link XrHandMeshIndexBufferMSFT#indexCountOutput} field. */ + public XrHandMeshIndexBufferMSFT.Buffer indexCountOutput(@NativeType("uint32_t") int value) { XrHandMeshIndexBufferMSFT.nindexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link XrHandMeshIndexBufferMSFT#indices} field. */ + public XrHandMeshIndexBufferMSFT.Buffer indices(@NativeType("uint32_t *") IntBuffer value) { XrHandMeshIndexBufferMSFT.nindices(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshMSFT.java index 1d1197d2e1..8fed1048cb 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The data of a hand mesh. * @@ -31,7 +31,7 @@ *
                                            *
                                          • The {@link MSFTHandTrackingMesh XR_MSFT_hand_tracking_mesh} extension must be enabled prior to using {@link XrHandMeshMSFT}
                                          • *
                                          • {@code type} must be {@link MSFTHandTrackingMesh#XR_TYPE_HAND_MESH_MSFT TYPE_HAND_MESH_MSFT}
                                          • - *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                          • + *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                          • *
                                          • {@code indexBuffer} must be a valid {@link XrHandMeshIndexBufferMSFT} structure
                                          • *
                                          • {@code vertexBuffer} must be a valid {@link XrHandMeshVertexBufferMSFT} structure
                                          • *
                                          @@ -52,8 +52,8 @@ * {@link XrHandMeshIndexBufferMSFT XrHandMeshIndexBufferMSFT} {@link #indexBuffer}; * {@link XrHandMeshVertexBufferMSFT XrHandMeshVertexBufferMSFT} {@link #vertexBuffer}; * } - */ -public class XrHandMeshMSFT extends Struct implements NativeResource { + */ +public class XrHandMeshMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -63,36 +63,36 @@ public class XrHandMeshMSFT extends Struct implements NativeReso /** The struct member offsets. */ public static final int - TYPE, - NEXT, - ISACTIVE, - INDEXBUFFERCHANGED, - VERTEXBUFFERCHANGED, - INDEXBUFFER, - VERTEXBUFFER; + TYPE, + NEXT, + ISACTIVE, + INDEXBUFFERCHANGED, + VERTEXBUFFERCHANGED, + INDEXBUFFER, + VERTEXBUFFER; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), - __member(4), - __member(XrHandMeshIndexBufferMSFT.SIZEOF, XrHandMeshIndexBufferMSFT.ALIGNOF), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), + __member(4), + __member(XrHandMeshIndexBufferMSFT.SIZEOF, XrHandMeshIndexBufferMSFT.ALIGNOF), __member(XrHandMeshVertexBufferMSFT.SIZEOF, XrHandMeshVertexBufferMSFT.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - ISACTIVE = layout.offsetof(2); - INDEXBUFFERCHANGED = layout.offsetof(3); - VERTEXBUFFERCHANGED = layout.offsetof(4); - INDEXBUFFER = layout.offsetof(5); - VERTEXBUFFER = layout.offsetof(6); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + ISACTIVE = layout.offsetof(2); + INDEXBUFFERCHANGED = layout.offsetof(3); + VERTEXBUFFERCHANGED = layout.offsetof(4); + INDEXBUFFER = layout.offsetof(5); + VERTEXBUFFER = layout.offsetof(6); + } protected XrHandMeshMSFT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -115,65 +115,65 @@ public XrHandMeshMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** an {@code XrBool32} indicating if the current hand tracker is active. */ - @NativeType("XrBool32") - public boolean isActive() { return nisActive(address()) != 0; } - /** an {@code XrBool32} indicating if the {@code indexBuffer} content was changed during the update. */ - @NativeType("XrBool32") - public boolean indexBufferChanged() { return nindexBufferChanged(address()) != 0; } - /** an {@code XrBool32} indicating if the {@code vertexBuffer} content was changed during the update. */ - @NativeType("XrBool32") - public boolean vertexBufferChanged() { return nvertexBufferChanged(address()) != 0; } - /** an {@link XrHandMeshIndexBufferMSFT} returns the index buffer of the tracked hand mesh. */ - public XrHandMeshIndexBufferMSFT indexBuffer() { return nindexBuffer(address()); } - /** an {@link XrHandMeshVertexBufferMSFT} returns the vertex buffer of the tracked hand mesh. */ - public XrHandMeshVertexBufferMSFT vertexBuffer() { return nvertexBuffer(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrHandMeshMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_MESH_MSFT TYPE_HAND_MESH_MSFT} value to the {@link #type} field. */ - public XrHandMeshMSFT type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_MESH_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrHandMeshMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #isActive} field. */ - public XrHandMeshMSFT isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link #indexBufferChanged} field. */ - public XrHandMeshMSFT indexBufferChanged(@NativeType("XrBool32") boolean value) { nindexBufferChanged(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link #vertexBufferChanged} field. */ - public XrHandMeshMSFT vertexBufferChanged(@NativeType("XrBool32") boolean value) { nvertexBufferChanged(address(), value ? 1 : 0); return this; } - /** Copies the specified {@link XrHandMeshIndexBufferMSFT} to the {@link #indexBuffer} field. */ - public XrHandMeshMSFT indexBuffer(XrHandMeshIndexBufferMSFT value) { nindexBuffer(address(), value); return this; } - /** Passes the {@link #indexBuffer} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandMeshMSFT indexBuffer(java.util.function.Consumer consumer) { consumer.accept(indexBuffer()); return this; } - /** Copies the specified {@link XrHandMeshVertexBufferMSFT} to the {@link #vertexBuffer} field. */ - public XrHandMeshMSFT vertexBuffer(XrHandMeshVertexBufferMSFT value) { nvertexBuffer(address(), value); return this; } - /** Passes the {@link #vertexBuffer} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandMeshMSFT vertexBuffer(java.util.function.Consumer consumer) { consumer.accept(vertexBuffer()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** an {@code XrBool32} indicating if the current hand tracker is active. */ + @NativeType("XrBool32") + public boolean isActive() { return nisActive(address()) != 0; } + /** an {@code XrBool32} indicating if the {@code indexBuffer} content was changed during the update. */ + @NativeType("XrBool32") + public boolean indexBufferChanged() { return nindexBufferChanged(address()) != 0; } + /** an {@code XrBool32} indicating if the {@code vertexBuffer} content was changed during the update. */ + @NativeType("XrBool32") + public boolean vertexBufferChanged() { return nvertexBufferChanged(address()) != 0; } + /** an {@link XrHandMeshIndexBufferMSFT} returns the index buffer of the tracked hand mesh. */ + public XrHandMeshIndexBufferMSFT indexBuffer() { return nindexBuffer(address()); } + /** an {@link XrHandMeshVertexBufferMSFT} returns the vertex buffer of the tracked hand mesh. */ + public XrHandMeshVertexBufferMSFT vertexBuffer() { return nvertexBuffer(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHandMeshMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_MESH_MSFT TYPE_HAND_MESH_MSFT} value to the {@link #type} field. */ + public XrHandMeshMSFT type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_MESH_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrHandMeshMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #isActive} field. */ + public XrHandMeshMSFT isActive(@NativeType("XrBool32") boolean value) { nisActive(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link #indexBufferChanged} field. */ + public XrHandMeshMSFT indexBufferChanged(@NativeType("XrBool32") boolean value) { nindexBufferChanged(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link #vertexBufferChanged} field. */ + public XrHandMeshMSFT vertexBufferChanged(@NativeType("XrBool32") boolean value) { nvertexBufferChanged(address(), value ? 1 : 0); return this; } + /** Copies the specified {@link XrHandMeshIndexBufferMSFT} to the {@link #indexBuffer} field. */ + public XrHandMeshMSFT indexBuffer(XrHandMeshIndexBufferMSFT value) { nindexBuffer(address(), value); return this; } + /** Passes the {@link #indexBuffer} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandMeshMSFT indexBuffer(java.util.function.Consumer consumer) { consumer.accept(indexBuffer()); return this; } + /** Copies the specified {@link XrHandMeshVertexBufferMSFT} to the {@link #vertexBuffer} field. */ + public XrHandMeshMSFT vertexBuffer(XrHandMeshVertexBufferMSFT value) { nvertexBuffer(address(), value); return this; } + /** Passes the {@link #vertexBuffer} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandMeshMSFT vertexBuffer(java.util.function.Consumer consumer) { consumer.accept(vertexBuffer()); return this; } /** Initializes this struct with the specified values. */ public XrHandMeshMSFT set( - int type, - long next, - boolean isActive, - boolean indexBufferChanged, - boolean vertexBufferChanged, - XrHandMeshIndexBufferMSFT indexBuffer, + int type, + long next, + boolean isActive, + boolean indexBufferChanged, + boolean vertexBufferChanged, + XrHandMeshIndexBufferMSFT indexBuffer, XrHandMeshVertexBufferMSFT vertexBuffer - ) { - type(type); - next(next); - isActive(isActive); - indexBufferChanged(indexBufferChanged); - vertexBufferChanged(vertexBufferChanged); - indexBuffer(indexBuffer); - vertexBuffer(vertexBuffer); + ) { + type(type); + next(next); + isActive(isActive); + indexBufferChanged(indexBufferChanged); + vertexBufferChanged(vertexBufferChanged); + indexBuffer(indexBuffer); + vertexBuffer(vertexBuffer); return this; } @@ -302,36 +302,36 @@ public static XrHandMeshMSFT.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHandMeshMSFT.NEXT); } - /** Unsafe version of {@link #isActive}. */ - public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshMSFT.ISACTIVE); } - /** Unsafe version of {@link #indexBufferChanged}. */ - public static int nindexBufferChanged(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshMSFT.INDEXBUFFERCHANGED); } - /** Unsafe version of {@link #vertexBufferChanged}. */ - public static int nvertexBufferChanged(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshMSFT.VERTEXBUFFERCHANGED); } - /** Unsafe version of {@link #indexBuffer}. */ - public static XrHandMeshIndexBufferMSFT nindexBuffer(long struct) { return XrHandMeshIndexBufferMSFT.create(struct + XrHandMeshMSFT.INDEXBUFFER); } - /** Unsafe version of {@link #vertexBuffer}. */ - public static XrHandMeshVertexBufferMSFT nvertexBuffer(long struct) { return XrHandMeshVertexBufferMSFT.create(struct + XrHandMeshMSFT.VERTEXBUFFER); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHandMeshMSFT.NEXT, value); } - /** Unsafe version of {@link #isActive(boolean) isActive}. */ - public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshMSFT.ISACTIVE, value); } - /** Unsafe version of {@link #indexBufferChanged(boolean) indexBufferChanged}. */ - public static void nindexBufferChanged(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshMSFT.INDEXBUFFERCHANGED, value); } - /** Unsafe version of {@link #vertexBufferChanged(boolean) vertexBufferChanged}. */ - public static void nvertexBufferChanged(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshMSFT.VERTEXBUFFERCHANGED, value); } - /** Unsafe version of {@link #indexBuffer(XrHandMeshIndexBufferMSFT) indexBuffer}. */ - public static void nindexBuffer(long struct, XrHandMeshIndexBufferMSFT value) { memCopy(value.address(), struct + XrHandMeshMSFT.INDEXBUFFER, XrHandMeshIndexBufferMSFT.SIZEOF); } - /** Unsafe version of {@link #vertexBuffer(XrHandMeshVertexBufferMSFT) vertexBuffer}. */ - public static void nvertexBuffer(long struct, XrHandMeshVertexBufferMSFT value) { memCopy(value.address(), struct + XrHandMeshMSFT.VERTEXBUFFER, XrHandMeshVertexBufferMSFT.SIZEOF); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHandMeshMSFT.NEXT); } + /** Unsafe version of {@link #isActive}. */ + public static int nisActive(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshMSFT.ISACTIVE); } + /** Unsafe version of {@link #indexBufferChanged}. */ + public static int nindexBufferChanged(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshMSFT.INDEXBUFFERCHANGED); } + /** Unsafe version of {@link #vertexBufferChanged}. */ + public static int nvertexBufferChanged(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshMSFT.VERTEXBUFFERCHANGED); } + /** Unsafe version of {@link #indexBuffer}. */ + public static XrHandMeshIndexBufferMSFT nindexBuffer(long struct) { return XrHandMeshIndexBufferMSFT.create(struct + XrHandMeshMSFT.INDEXBUFFER); } + /** Unsafe version of {@link #vertexBuffer}. */ + public static XrHandMeshVertexBufferMSFT nvertexBuffer(long struct) { return XrHandMeshVertexBufferMSFT.create(struct + XrHandMeshMSFT.VERTEXBUFFER); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHandMeshMSFT.NEXT, value); } + /** Unsafe version of {@link #isActive(boolean) isActive}. */ + public static void nisActive(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshMSFT.ISACTIVE, value); } + /** Unsafe version of {@link #indexBufferChanged(boolean) indexBufferChanged}. */ + public static void nindexBufferChanged(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshMSFT.INDEXBUFFERCHANGED, value); } + /** Unsafe version of {@link #vertexBufferChanged(boolean) vertexBufferChanged}. */ + public static void nvertexBufferChanged(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshMSFT.VERTEXBUFFERCHANGED, value); } + /** Unsafe version of {@link #indexBuffer(XrHandMeshIndexBufferMSFT) indexBuffer}. */ + public static void nindexBuffer(long struct, XrHandMeshIndexBufferMSFT value) { memCopy(value.address(), struct + XrHandMeshMSFT.INDEXBUFFER, XrHandMeshIndexBufferMSFT.SIZEOF); } + /** Unsafe version of {@link #vertexBuffer(XrHandMeshVertexBufferMSFT) vertexBuffer}. */ + public static void nvertexBuffer(long struct, XrHandMeshVertexBufferMSFT value) { memCopy(value.address(), struct + XrHandMeshMSFT.VERTEXBUFFER, XrHandMeshVertexBufferMSFT.SIZEOF); } /** * Validates pointer members that should not be {@code NULL}. @@ -341,9 +341,9 @@ public static XrHandMeshMSFT.Buffer calloc(int capacity, MemoryStack stack) { public static void validate(long struct) { XrHandMeshIndexBufferMSFT.validate(struct + XrHandMeshMSFT.INDEXBUFFER); XrHandMeshVertexBufferMSFT.validate(struct + XrHandMeshMSFT.VERTEXBUFFER); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrHandMeshMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -380,47 +380,47 @@ protected Buffer self() { protected XrHandMeshMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandMeshMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHandMeshMSFT.ntype(address()); } - /** @return the value of the {@link XrHandMeshMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrHandMeshMSFT.nnext(address()); } - /** @return the value of the {@link XrHandMeshMSFT#isActive} field. */ - @NativeType("XrBool32") - public boolean isActive() { return XrHandMeshMSFT.nisActive(address()) != 0; } - /** @return the value of the {@link XrHandMeshMSFT#indexBufferChanged} field. */ - @NativeType("XrBool32") - public boolean indexBufferChanged() { return XrHandMeshMSFT.nindexBufferChanged(address()) != 0; } - /** @return the value of the {@link XrHandMeshMSFT#vertexBufferChanged} field. */ - @NativeType("XrBool32") - public boolean vertexBufferChanged() { return XrHandMeshMSFT.nvertexBufferChanged(address()) != 0; } - /** @return a {@link XrHandMeshIndexBufferMSFT} view of the {@link XrHandMeshMSFT#indexBuffer} field. */ - public XrHandMeshIndexBufferMSFT indexBuffer() { return XrHandMeshMSFT.nindexBuffer(address()); } - /** @return a {@link XrHandMeshVertexBufferMSFT} view of the {@link XrHandMeshMSFT#vertexBuffer} field. */ - public XrHandMeshVertexBufferMSFT vertexBuffer() { return XrHandMeshMSFT.nvertexBuffer(address()); } - - /** Sets the specified value to the {@link XrHandMeshMSFT#type} field. */ - public XrHandMeshMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrHandMeshMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_MESH_MSFT TYPE_HAND_MESH_MSFT} value to the {@link XrHandMeshMSFT#type} field. */ - public XrHandMeshMSFT.Buffer type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_MESH_MSFT); } - /** Sets the specified value to the {@link XrHandMeshMSFT#next} field. */ - public XrHandMeshMSFT.Buffer next(@NativeType("void *") long value) { XrHandMeshMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrHandMeshMSFT#isActive} field. */ - public XrHandMeshMSFT.Buffer isActive(@NativeType("XrBool32") boolean value) { XrHandMeshMSFT.nisActive(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link XrHandMeshMSFT#indexBufferChanged} field. */ - public XrHandMeshMSFT.Buffer indexBufferChanged(@NativeType("XrBool32") boolean value) { XrHandMeshMSFT.nindexBufferChanged(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link XrHandMeshMSFT#vertexBufferChanged} field. */ - public XrHandMeshMSFT.Buffer vertexBufferChanged(@NativeType("XrBool32") boolean value) { XrHandMeshMSFT.nvertexBufferChanged(address(), value ? 1 : 0); return this; } - /** Copies the specified {@link XrHandMeshIndexBufferMSFT} to the {@link XrHandMeshMSFT#indexBuffer} field. */ - public XrHandMeshMSFT.Buffer indexBuffer(XrHandMeshIndexBufferMSFT value) { XrHandMeshMSFT.nindexBuffer(address(), value); return this; } - /** Passes the {@link XrHandMeshMSFT#indexBuffer} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandMeshMSFT.Buffer indexBuffer(java.util.function.Consumer consumer) { consumer.accept(indexBuffer()); return this; } - /** Copies the specified {@link XrHandMeshVertexBufferMSFT} to the {@link XrHandMeshMSFT#vertexBuffer} field. */ - public XrHandMeshMSFT.Buffer vertexBuffer(XrHandMeshVertexBufferMSFT value) { XrHandMeshMSFT.nvertexBuffer(address(), value); return this; } - /** Passes the {@link XrHandMeshMSFT#vertexBuffer} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandMeshMSFT.Buffer vertexBuffer(java.util.function.Consumer consumer) { consumer.accept(vertexBuffer()); return this; } + + /** @return the value of the {@link XrHandMeshMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHandMeshMSFT.ntype(address()); } + /** @return the value of the {@link XrHandMeshMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrHandMeshMSFT.nnext(address()); } + /** @return the value of the {@link XrHandMeshMSFT#isActive} field. */ + @NativeType("XrBool32") + public boolean isActive() { return XrHandMeshMSFT.nisActive(address()) != 0; } + /** @return the value of the {@link XrHandMeshMSFT#indexBufferChanged} field. */ + @NativeType("XrBool32") + public boolean indexBufferChanged() { return XrHandMeshMSFT.nindexBufferChanged(address()) != 0; } + /** @return the value of the {@link XrHandMeshMSFT#vertexBufferChanged} field. */ + @NativeType("XrBool32") + public boolean vertexBufferChanged() { return XrHandMeshMSFT.nvertexBufferChanged(address()) != 0; } + /** @return a {@link XrHandMeshIndexBufferMSFT} view of the {@link XrHandMeshMSFT#indexBuffer} field. */ + public XrHandMeshIndexBufferMSFT indexBuffer() { return XrHandMeshMSFT.nindexBuffer(address()); } + /** @return a {@link XrHandMeshVertexBufferMSFT} view of the {@link XrHandMeshMSFT#vertexBuffer} field. */ + public XrHandMeshVertexBufferMSFT vertexBuffer() { return XrHandMeshMSFT.nvertexBuffer(address()); } + + /** Sets the specified value to the {@link XrHandMeshMSFT#type} field. */ + public XrHandMeshMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrHandMeshMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_MESH_MSFT TYPE_HAND_MESH_MSFT} value to the {@link XrHandMeshMSFT#type} field. */ + public XrHandMeshMSFT.Buffer type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_MESH_MSFT); } + /** Sets the specified value to the {@link XrHandMeshMSFT#next} field. */ + public XrHandMeshMSFT.Buffer next(@NativeType("void *") long value) { XrHandMeshMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrHandMeshMSFT#isActive} field. */ + public XrHandMeshMSFT.Buffer isActive(@NativeType("XrBool32") boolean value) { XrHandMeshMSFT.nisActive(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link XrHandMeshMSFT#indexBufferChanged} field. */ + public XrHandMeshMSFT.Buffer indexBufferChanged(@NativeType("XrBool32") boolean value) { XrHandMeshMSFT.nindexBufferChanged(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link XrHandMeshMSFT#vertexBufferChanged} field. */ + public XrHandMeshMSFT.Buffer vertexBufferChanged(@NativeType("XrBool32") boolean value) { XrHandMeshMSFT.nvertexBufferChanged(address(), value ? 1 : 0); return this; } + /** Copies the specified {@link XrHandMeshIndexBufferMSFT} to the {@link XrHandMeshMSFT#indexBuffer} field. */ + public XrHandMeshMSFT.Buffer indexBuffer(XrHandMeshIndexBufferMSFT value) { XrHandMeshMSFT.nindexBuffer(address(), value); return this; } + /** Passes the {@link XrHandMeshMSFT#indexBuffer} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandMeshMSFT.Buffer indexBuffer(java.util.function.Consumer consumer) { consumer.accept(indexBuffer()); return this; } + /** Copies the specified {@link XrHandMeshVertexBufferMSFT} to the {@link XrHandMeshMSFT#vertexBuffer} field. */ + public XrHandMeshMSFT.Buffer vertexBuffer(XrHandMeshVertexBufferMSFT value) { XrHandMeshMSFT.nvertexBuffer(address(), value); return this; } + /** Passes the {@link XrHandMeshMSFT#vertexBuffer} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandMeshMSFT.Buffer vertexBuffer(java.util.function.Consumer consumer) { consumer.accept(vertexBuffer()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshSpaceCreateInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshSpaceCreateInfoMSFT.java index d6ef7a2e59..fa61d7bbdb 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshSpaceCreateInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshSpaceCreateInfoMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The information to create a hand mesh space. * @@ -23,7 +23,7 @@ *
                                            *
                                          • The {@link MSFTHandTrackingMesh XR_MSFT_hand_tracking_mesh} extension must be enabled prior to using {@link XrHandMeshSpaceCreateInfoMSFT}
                                          • *
                                          • {@code type} must be {@link MSFTHandTrackingMesh#XR_TYPE_HAND_MESH_SPACE_CREATE_INFO_MSFT TYPE_HAND_MESH_SPACE_CREATE_INFO_MSFT}
                                          • - *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                          • + *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                          • *
                                          • {@code handPoseType} must be a valid {@code XrHandPoseTypeMSFT} value
                                          • *
                                          * @@ -40,8 +40,8 @@ * XrHandPoseTypeMSFT {@link #handPoseType}; * {@link XrPosef XrPosef} {@link #poseInHandMeshSpace}; * } - */ -public class XrHandMeshSpaceCreateInfoMSFT extends Struct implements NativeResource { + */ +public class XrHandMeshSpaceCreateInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,27 +51,27 @@ public class XrHandMeshSpaceCreateInfoMSFT extends Struct consumer) { consumer.accept(poseInHandMeshSpace()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** an {@code XrHandPoseTypeMSFT} used to specify the type of hand this mesh is tracking. Indices and vertices returned from {@link MSFTHandTrackingMesh#xrUpdateHandMeshMSFT UpdateHandMeshMSFT} for a hand type will be relative to the corresponding space create with the same hand type. */ + @NativeType("XrHandPoseTypeMSFT") + public int handPoseType() { return nhandPoseType(address()); } + /** an {@link XrPosef} defining the position and orientation of the new space’s origin within the natural reference frame of the hand mesh space. */ + public XrPosef poseInHandMeshSpace() { return nposeInHandMeshSpace(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHandMeshSpaceCreateInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_MESH_SPACE_CREATE_INFO_MSFT TYPE_HAND_MESH_SPACE_CREATE_INFO_MSFT} value to the {@link #type} field. */ + public XrHandMeshSpaceCreateInfoMSFT type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_MESH_SPACE_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrHandMeshSpaceCreateInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #handPoseType} field. */ + public XrHandMeshSpaceCreateInfoMSFT handPoseType(@NativeType("XrHandPoseTypeMSFT") int value) { nhandPoseType(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #poseInHandMeshSpace} field. */ + public XrHandMeshSpaceCreateInfoMSFT poseInHandMeshSpace(XrPosef value) { nposeInHandMeshSpace(address(), value); return this; } + /** Passes the {@link #poseInHandMeshSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandMeshSpaceCreateInfoMSFT poseInHandMeshSpace(java.util.function.Consumer consumer) { consumer.accept(poseInHandMeshSpace()); return this; } /** Initializes this struct with the specified values. */ public XrHandMeshSpaceCreateInfoMSFT set( - int type, - long next, - int handPoseType, + int type, + long next, + int handPoseType, XrPosef poseInHandMeshSpace - ) { - type(type); - next(next); - handPoseType(handPoseType); - poseInHandMeshSpace(poseInHandMeshSpace); + ) { + type(type); + next(next); + handPoseType(handPoseType); + poseInHandMeshSpace(poseInHandMeshSpace); return this; } @@ -259,26 +259,26 @@ public static XrHandMeshSpaceCreateInfoMSFT.Buffer calloc(int capacity, MemorySt } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshSpaceCreateInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHandMeshSpaceCreateInfoMSFT.NEXT); } - /** Unsafe version of {@link #handPoseType}. */ - public static int nhandPoseType(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshSpaceCreateInfoMSFT.HANDPOSETYPE); } - /** Unsafe version of {@link #poseInHandMeshSpace}. */ - public static XrPosef nposeInHandMeshSpace(long struct) { return XrPosef.create(struct + XrHandMeshSpaceCreateInfoMSFT.POSEINHANDMESHSPACE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshSpaceCreateInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHandMeshSpaceCreateInfoMSFT.NEXT, value); } - /** Unsafe version of {@link #handPoseType(int) handPoseType}. */ - public static void nhandPoseType(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshSpaceCreateInfoMSFT.HANDPOSETYPE, value); } - /** Unsafe version of {@link #poseInHandMeshSpace(XrPosef) poseInHandMeshSpace}. */ - public static void nposeInHandMeshSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrHandMeshSpaceCreateInfoMSFT.POSEINHANDMESHSPACE, XrPosef.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshSpaceCreateInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHandMeshSpaceCreateInfoMSFT.NEXT); } + /** Unsafe version of {@link #handPoseType}. */ + public static int nhandPoseType(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshSpaceCreateInfoMSFT.HANDPOSETYPE); } + /** Unsafe version of {@link #poseInHandMeshSpace}. */ + public static XrPosef nposeInHandMeshSpace(long struct) { return XrPosef.create(struct + XrHandMeshSpaceCreateInfoMSFT.POSEINHANDMESHSPACE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshSpaceCreateInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHandMeshSpaceCreateInfoMSFT.NEXT, value); } + /** Unsafe version of {@link #handPoseType(int) handPoseType}. */ + public static void nhandPoseType(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshSpaceCreateInfoMSFT.HANDPOSETYPE, value); } + /** Unsafe version of {@link #poseInHandMeshSpace(XrPosef) poseInHandMeshSpace}. */ + public static void nposeInHandMeshSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrHandMeshSpaceCreateInfoMSFT.POSEINHANDMESHSPACE, XrPosef.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrHandMeshSpaceCreateInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -315,31 +315,31 @@ protected Buffer self() { protected XrHandMeshSpaceCreateInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandMeshSpaceCreateInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHandMeshSpaceCreateInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrHandMeshSpaceCreateInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrHandMeshSpaceCreateInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrHandMeshSpaceCreateInfoMSFT#handPoseType} field. */ - @NativeType("XrHandPoseTypeMSFT") - public int handPoseType() { return XrHandMeshSpaceCreateInfoMSFT.nhandPoseType(address()); } - /** @return a {@link XrPosef} view of the {@link XrHandMeshSpaceCreateInfoMSFT#poseInHandMeshSpace} field. */ - public XrPosef poseInHandMeshSpace() { return XrHandMeshSpaceCreateInfoMSFT.nposeInHandMeshSpace(address()); } - - /** Sets the specified value to the {@link XrHandMeshSpaceCreateInfoMSFT#type} field. */ - public XrHandMeshSpaceCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrHandMeshSpaceCreateInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_MESH_SPACE_CREATE_INFO_MSFT TYPE_HAND_MESH_SPACE_CREATE_INFO_MSFT} value to the {@link XrHandMeshSpaceCreateInfoMSFT#type} field. */ - public XrHandMeshSpaceCreateInfoMSFT.Buffer type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_MESH_SPACE_CREATE_INFO_MSFT); } - /** Sets the specified value to the {@link XrHandMeshSpaceCreateInfoMSFT#next} field. */ - public XrHandMeshSpaceCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrHandMeshSpaceCreateInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrHandMeshSpaceCreateInfoMSFT#handPoseType} field. */ - public XrHandMeshSpaceCreateInfoMSFT.Buffer handPoseType(@NativeType("XrHandPoseTypeMSFT") int value) { XrHandMeshSpaceCreateInfoMSFT.nhandPoseType(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrHandMeshSpaceCreateInfoMSFT#poseInHandMeshSpace} field. */ - public XrHandMeshSpaceCreateInfoMSFT.Buffer poseInHandMeshSpace(XrPosef value) { XrHandMeshSpaceCreateInfoMSFT.nposeInHandMeshSpace(address(), value); return this; } - /** Passes the {@link XrHandMeshSpaceCreateInfoMSFT#poseInHandMeshSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandMeshSpaceCreateInfoMSFT.Buffer poseInHandMeshSpace(java.util.function.Consumer consumer) { consumer.accept(poseInHandMeshSpace()); return this; } + + /** @return the value of the {@link XrHandMeshSpaceCreateInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHandMeshSpaceCreateInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrHandMeshSpaceCreateInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrHandMeshSpaceCreateInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrHandMeshSpaceCreateInfoMSFT#handPoseType} field. */ + @NativeType("XrHandPoseTypeMSFT") + public int handPoseType() { return XrHandMeshSpaceCreateInfoMSFT.nhandPoseType(address()); } + /** @return a {@link XrPosef} view of the {@link XrHandMeshSpaceCreateInfoMSFT#poseInHandMeshSpace} field. */ + public XrPosef poseInHandMeshSpace() { return XrHandMeshSpaceCreateInfoMSFT.nposeInHandMeshSpace(address()); } + + /** Sets the specified value to the {@link XrHandMeshSpaceCreateInfoMSFT#type} field. */ + public XrHandMeshSpaceCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrHandMeshSpaceCreateInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_MESH_SPACE_CREATE_INFO_MSFT TYPE_HAND_MESH_SPACE_CREATE_INFO_MSFT} value to the {@link XrHandMeshSpaceCreateInfoMSFT#type} field. */ + public XrHandMeshSpaceCreateInfoMSFT.Buffer type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_MESH_SPACE_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link XrHandMeshSpaceCreateInfoMSFT#next} field. */ + public XrHandMeshSpaceCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrHandMeshSpaceCreateInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrHandMeshSpaceCreateInfoMSFT#handPoseType} field. */ + public XrHandMeshSpaceCreateInfoMSFT.Buffer handPoseType(@NativeType("XrHandPoseTypeMSFT") int value) { XrHandMeshSpaceCreateInfoMSFT.nhandPoseType(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrHandMeshSpaceCreateInfoMSFT#poseInHandMeshSpace} field. */ + public XrHandMeshSpaceCreateInfoMSFT.Buffer poseInHandMeshSpace(XrPosef value) { XrHandMeshSpaceCreateInfoMSFT.nposeInHandMeshSpace(address(), value); return this; } + /** Passes the {@link XrHandMeshSpaceCreateInfoMSFT#poseInHandMeshSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandMeshSpaceCreateInfoMSFT.Buffer poseInHandMeshSpace(java.util.function.Consumer consumer) { consumer.accept(poseInHandMeshSpace()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshUpdateInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshUpdateInfoMSFT.java index f674f1bd02..c79e7ea22b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshUpdateInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshUpdateInfoMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The information to update a hand mesh. * @@ -29,7 +29,7 @@ *
                                            *
                                          • The {@link MSFTHandTrackingMesh XR_MSFT_hand_tracking_mesh} extension must be enabled prior to using {@link XrHandMeshUpdateInfoMSFT}
                                          • *
                                          • {@code type} must be {@link MSFTHandTrackingMesh#XR_TYPE_HAND_MESH_UPDATE_INFO_MSFT TYPE_HAND_MESH_UPDATE_INFO_MSFT}
                                          • - *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                          • + *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                          • *
                                          • {@code handPoseType} must be a valid {@code XrHandPoseTypeMSFT} value
                                          • *
                                          * @@ -46,8 +46,8 @@ * XrTime {@link #time}; * XrHandPoseTypeMSFT {@link #handPoseType}; * } - */ -public class XrHandMeshUpdateInfoMSFT extends Struct implements NativeResource { + */ +public class XrHandMeshUpdateInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,27 +57,27 @@ public class XrHandMeshUpdateInfoMSFT extends Struct i /** The struct member offsets. */ public static final int - TYPE, - NEXT, - TIME, - HANDPOSETYPE; + TYPE, + NEXT, + TIME, + HANDPOSETYPE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - TIME = layout.offsetof(2); - HANDPOSETYPE = layout.offsetof(3); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + TIME = layout.offsetof(2); + HANDPOSETYPE = layout.offsetof(3); + } protected XrHandMeshUpdateInfoMSFT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -100,42 +100,42 @@ public XrHandMeshUpdateInfoMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** the {@code XrTime} that describes the time for which the application wishes to query the hand mesh state. */ - @NativeType("XrTime") - public long time() { return ntime(address()); } - /** an {@code XrHandPoseTypeMSFT} which describes the type of hand pose of the hand mesh to update. */ - @NativeType("XrHandPoseTypeMSFT") - public int handPoseType() { return nhandPoseType(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrHandMeshUpdateInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_MESH_UPDATE_INFO_MSFT TYPE_HAND_MESH_UPDATE_INFO_MSFT} value to the {@link #type} field. */ - public XrHandMeshUpdateInfoMSFT type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_MESH_UPDATE_INFO_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrHandMeshUpdateInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrHandMeshUpdateInfoMSFT time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } - /** Sets the specified value to the {@link #handPoseType} field. */ - public XrHandMeshUpdateInfoMSFT handPoseType(@NativeType("XrHandPoseTypeMSFT") int value) { nhandPoseType(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the {@code XrTime} that describes the time for which the application wishes to query the hand mesh state. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + /** an {@code XrHandPoseTypeMSFT} which describes the type of hand pose of the hand mesh to update. */ + @NativeType("XrHandPoseTypeMSFT") + public int handPoseType() { return nhandPoseType(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHandMeshUpdateInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_MESH_UPDATE_INFO_MSFT TYPE_HAND_MESH_UPDATE_INFO_MSFT} value to the {@link #type} field. */ + public XrHandMeshUpdateInfoMSFT type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_MESH_UPDATE_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrHandMeshUpdateInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #time} field. */ + public XrHandMeshUpdateInfoMSFT time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } + /** Sets the specified value to the {@link #handPoseType} field. */ + public XrHandMeshUpdateInfoMSFT handPoseType(@NativeType("XrHandPoseTypeMSFT") int value) { nhandPoseType(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHandMeshUpdateInfoMSFT set( - int type, - long next, - long time, + int type, + long next, + long time, int handPoseType - ) { - type(type); - next(next); - time(time); - handPoseType(handPoseType); + ) { + type(type); + next(next); + time(time); + handPoseType(handPoseType); return this; } @@ -264,26 +264,26 @@ public static XrHandMeshUpdateInfoMSFT.Buffer calloc(int capacity, MemoryStack s } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshUpdateInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHandMeshUpdateInfoMSFT.NEXT); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrHandMeshUpdateInfoMSFT.TIME); } - /** Unsafe version of {@link #handPoseType}. */ - public static int nhandPoseType(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshUpdateInfoMSFT.HANDPOSETYPE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshUpdateInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHandMeshUpdateInfoMSFT.NEXT, value); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrHandMeshUpdateInfoMSFT.TIME, value); } - /** Unsafe version of {@link #handPoseType(int) handPoseType}. */ - public static void nhandPoseType(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshUpdateInfoMSFT.HANDPOSETYPE, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshUpdateInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHandMeshUpdateInfoMSFT.NEXT); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrHandMeshUpdateInfoMSFT.TIME); } + /** Unsafe version of {@link #handPoseType}. */ + public static int nhandPoseType(long struct) { return UNSAFE.getInt(null, struct + XrHandMeshUpdateInfoMSFT.HANDPOSETYPE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshUpdateInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHandMeshUpdateInfoMSFT.NEXT, value); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrHandMeshUpdateInfoMSFT.TIME, value); } + /** Unsafe version of {@link #handPoseType(int) handPoseType}. */ + public static void nhandPoseType(long struct, int value) { UNSAFE.putInt(null, struct + XrHandMeshUpdateInfoMSFT.HANDPOSETYPE, value); } + + // ----------------------------------- /** An array of {@link XrHandMeshUpdateInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -320,30 +320,30 @@ protected Buffer self() { protected XrHandMeshUpdateInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandMeshUpdateInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHandMeshUpdateInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrHandMeshUpdateInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrHandMeshUpdateInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrHandMeshUpdateInfoMSFT#time} field. */ - @NativeType("XrTime") - public long time() { return XrHandMeshUpdateInfoMSFT.ntime(address()); } - /** @return the value of the {@link XrHandMeshUpdateInfoMSFT#handPoseType} field. */ - @NativeType("XrHandPoseTypeMSFT") - public int handPoseType() { return XrHandMeshUpdateInfoMSFT.nhandPoseType(address()); } - - /** Sets the specified value to the {@link XrHandMeshUpdateInfoMSFT#type} field. */ - public XrHandMeshUpdateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrHandMeshUpdateInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_MESH_UPDATE_INFO_MSFT TYPE_HAND_MESH_UPDATE_INFO_MSFT} value to the {@link XrHandMeshUpdateInfoMSFT#type} field. */ - public XrHandMeshUpdateInfoMSFT.Buffer type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_MESH_UPDATE_INFO_MSFT); } - /** Sets the specified value to the {@link XrHandMeshUpdateInfoMSFT#next} field. */ - public XrHandMeshUpdateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrHandMeshUpdateInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrHandMeshUpdateInfoMSFT#time} field. */ - public XrHandMeshUpdateInfoMSFT.Buffer time(@NativeType("XrTime") long value) { XrHandMeshUpdateInfoMSFT.ntime(address(), value); return this; } - /** Sets the specified value to the {@link XrHandMeshUpdateInfoMSFT#handPoseType} field. */ - public XrHandMeshUpdateInfoMSFT.Buffer handPoseType(@NativeType("XrHandPoseTypeMSFT") int value) { XrHandMeshUpdateInfoMSFT.nhandPoseType(address(), value); return this; } + + /** @return the value of the {@link XrHandMeshUpdateInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHandMeshUpdateInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrHandMeshUpdateInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrHandMeshUpdateInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrHandMeshUpdateInfoMSFT#time} field. */ + @NativeType("XrTime") + public long time() { return XrHandMeshUpdateInfoMSFT.ntime(address()); } + /** @return the value of the {@link XrHandMeshUpdateInfoMSFT#handPoseType} field. */ + @NativeType("XrHandPoseTypeMSFT") + public int handPoseType() { return XrHandMeshUpdateInfoMSFT.nhandPoseType(address()); } + + /** Sets the specified value to the {@link XrHandMeshUpdateInfoMSFT#type} field. */ + public XrHandMeshUpdateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrHandMeshUpdateInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_MESH_UPDATE_INFO_MSFT TYPE_HAND_MESH_UPDATE_INFO_MSFT} value to the {@link XrHandMeshUpdateInfoMSFT#type} field. */ + public XrHandMeshUpdateInfoMSFT.Buffer type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_MESH_UPDATE_INFO_MSFT); } + /** Sets the specified value to the {@link XrHandMeshUpdateInfoMSFT#next} field. */ + public XrHandMeshUpdateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrHandMeshUpdateInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrHandMeshUpdateInfoMSFT#time} field. */ + public XrHandMeshUpdateInfoMSFT.Buffer time(@NativeType("XrTime") long value) { XrHandMeshUpdateInfoMSFT.ntime(address(), value); return this; } + /** Sets the specified value to the {@link XrHandMeshUpdateInfoMSFT#handPoseType} field. */ + public XrHandMeshUpdateInfoMSFT.Buffer handPoseType(@NativeType("XrHandPoseTypeMSFT") int value) { XrHandMeshUpdateInfoMSFT.nhandPoseType(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshVertexBufferMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshVertexBufferMSFT.java index 9d70204e09..4e03341335 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshVertexBufferMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshVertexBufferMSFT.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The vertex buffer of a hand mesh. * @@ -56,8 +56,8 @@ * uint32_t {@link #vertexCountOutput}; * {@link XrHandMeshVertexMSFT XrHandMeshVertexMSFT} * {@link #vertices}; * } - */ -public class XrHandMeshVertexBufferMSFT extends Struct implements NativeResource { + */ +public class XrHandMeshVertexBufferMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -67,27 +67,27 @@ public class XrHandMeshVertexBufferMSFT extends Struct implements NativeResource { @@ -333,26 +333,26 @@ protected Buffer self() { protected XrHandMeshVertexBufferMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandMeshVertexBufferMSFT#vertexUpdateTime} field. */ - @NativeType("XrTime") - public long vertexUpdateTime() { return XrHandMeshVertexBufferMSFT.nvertexUpdateTime(address()); } - /** @return the value of the {@link XrHandMeshVertexBufferMSFT#vertexCapacityInput} field. */ - @NativeType("uint32_t") - public int vertexCapacityInput() { return XrHandMeshVertexBufferMSFT.nvertexCapacityInput(address()); } - /** @return the value of the {@link XrHandMeshVertexBufferMSFT#vertexCountOutput} field. */ - @NativeType("uint32_t") - public int vertexCountOutput() { return XrHandMeshVertexBufferMSFT.nvertexCountOutput(address()); } - /** @return a {@link XrHandMeshVertexMSFT.Buffer} view of the struct array pointed to by the {@link XrHandMeshVertexBufferMSFT#vertices} field. */ - @NativeType("XrHandMeshVertexMSFT *") - public XrHandMeshVertexMSFT.Buffer vertices() { return XrHandMeshVertexBufferMSFT.nvertices(address()); } - - /** Sets the specified value to the {@link XrHandMeshVertexBufferMSFT#vertexUpdateTime} field. */ - public XrHandMeshVertexBufferMSFT.Buffer vertexUpdateTime(@NativeType("XrTime") long value) { XrHandMeshVertexBufferMSFT.nvertexUpdateTime(address(), value); return this; } - /** Sets the specified value to the {@link XrHandMeshVertexBufferMSFT#vertexCountOutput} field. */ - public XrHandMeshVertexBufferMSFT.Buffer vertexCountOutput(@NativeType("uint32_t") int value) { XrHandMeshVertexBufferMSFT.nvertexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrHandMeshVertexMSFT.Buffer} to the {@link XrHandMeshVertexBufferMSFT#vertices} field. */ - public XrHandMeshVertexBufferMSFT.Buffer vertices(@NativeType("XrHandMeshVertexMSFT *") XrHandMeshVertexMSFT.Buffer value) { XrHandMeshVertexBufferMSFT.nvertices(address(), value); return this; } + + /** @return the value of the {@link XrHandMeshVertexBufferMSFT#vertexUpdateTime} field. */ + @NativeType("XrTime") + public long vertexUpdateTime() { return XrHandMeshVertexBufferMSFT.nvertexUpdateTime(address()); } + /** @return the value of the {@link XrHandMeshVertexBufferMSFT#vertexCapacityInput} field. */ + @NativeType("uint32_t") + public int vertexCapacityInput() { return XrHandMeshVertexBufferMSFT.nvertexCapacityInput(address()); } + /** @return the value of the {@link XrHandMeshVertexBufferMSFT#vertexCountOutput} field. */ + @NativeType("uint32_t") + public int vertexCountOutput() { return XrHandMeshVertexBufferMSFT.nvertexCountOutput(address()); } + /** @return a {@link XrHandMeshVertexMSFT.Buffer} view of the struct array pointed to by the {@link XrHandMeshVertexBufferMSFT#vertices} field. */ + @NativeType("XrHandMeshVertexMSFT *") + public XrHandMeshVertexMSFT.Buffer vertices() { return XrHandMeshVertexBufferMSFT.nvertices(address()); } + + /** Sets the specified value to the {@link XrHandMeshVertexBufferMSFT#vertexUpdateTime} field. */ + public XrHandMeshVertexBufferMSFT.Buffer vertexUpdateTime(@NativeType("XrTime") long value) { XrHandMeshVertexBufferMSFT.nvertexUpdateTime(address(), value); return this; } + /** Sets the specified value to the {@link XrHandMeshVertexBufferMSFT#vertexCountOutput} field. */ + public XrHandMeshVertexBufferMSFT.Buffer vertexCountOutput(@NativeType("uint32_t") int value) { XrHandMeshVertexBufferMSFT.nvertexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrHandMeshVertexMSFT.Buffer} to the {@link XrHandMeshVertexBufferMSFT#vertices} field. */ + public XrHandMeshVertexBufferMSFT.Buffer vertices(@NativeType("XrHandMeshVertexMSFT *") XrHandMeshVertexMSFT.Buffer value) { XrHandMeshVertexBufferMSFT.nvertices(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshVertexMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshVertexMSFT.java index dbb1803912..5733ee961e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshVertexMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandMeshVertexMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The vertex of hand mesh. * @@ -35,8 +35,8 @@ * {@link XrVector3f XrVector3f} {@link #position$ position}; * {@link XrVector3f XrVector3f} {@link #normal}; * } - */ -public class XrHandMeshVertexMSFT extends Struct implements NativeResource { + */ +public class XrHandMeshVertexMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -46,21 +46,21 @@ public class XrHandMeshVertexMSFT extends Struct implement /** The struct member offsets. */ public static final int - POSITION, - NORMAL; + POSITION, + NORMAL; static { - Layout layout = __struct( - __member(XrVector3f.SIZEOF, XrVector3f.ALIGNOF), + Layout layout = __struct( + __member(XrVector3f.SIZEOF, XrVector3f.ALIGNOF), __member(XrVector3f.SIZEOF, XrVector3f.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - POSITION = layout.offsetof(0); - NORMAL = layout.offsetof(1); - } + POSITION = layout.offsetof(0); + NORMAL = layout.offsetof(1); + } protected XrHandMeshVertexMSFT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -83,28 +83,28 @@ public XrHandMeshVertexMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** an {@link XrVector3f} structure representing the position of the vertex in the hand mesh space, measured in meters. */ - public XrVector3f position$() { return nposition$(address()); } - /** an {@link XrVector3f} structure representing the unweighted normal of the triangle surface at the vertex as a unit vector in hand mesh space. */ - public XrVector3f normal() { return nnormal(address()); } - - /** Copies the specified {@link XrVector3f} to the {@link #position$} field. */ - public XrHandMeshVertexMSFT position$(XrVector3f value) { nposition$(address(), value); return this; } - /** Passes the {@link #position$} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandMeshVertexMSFT position$(java.util.function.Consumer consumer) { consumer.accept(position$()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link #normal} field. */ - public XrHandMeshVertexMSFT normal(XrVector3f value) { nnormal(address(), value); return this; } - /** Passes the {@link #normal} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandMeshVertexMSFT normal(java.util.function.Consumer consumer) { consumer.accept(normal()); return this; } + + /** an {@link XrVector3f} structure representing the position of the vertex in the hand mesh space, measured in meters. */ + public XrVector3f position$() { return nposition$(address()); } + /** an {@link XrVector3f} structure representing the unweighted normal of the triangle surface at the vertex as a unit vector in hand mesh space. */ + public XrVector3f normal() { return nnormal(address()); } + + /** Copies the specified {@link XrVector3f} to the {@link #position$} field. */ + public XrHandMeshVertexMSFT position$(XrVector3f value) { nposition$(address(), value); return this; } + /** Passes the {@link #position$} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandMeshVertexMSFT position$(java.util.function.Consumer consumer) { consumer.accept(position$()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link #normal} field. */ + public XrHandMeshVertexMSFT normal(XrVector3f value) { nnormal(address(), value); return this; } + /** Passes the {@link #normal} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandMeshVertexMSFT normal(java.util.function.Consumer consumer) { consumer.accept(normal()); return this; } /** Initializes this struct with the specified values. */ public XrHandMeshVertexMSFT set( - XrVector3f position$, + XrVector3f position$, XrVector3f normal - ) { - position$(position$); - normal(normal); + ) { + position$(position$); + normal(normal); return this; } @@ -233,18 +233,18 @@ public static XrHandMeshVertexMSFT.Buffer calloc(int capacity, MemoryStack stack } // ----------------------------------- - - /** Unsafe version of {@link #position$}. */ - public static XrVector3f nposition$(long struct) { return XrVector3f.create(struct + XrHandMeshVertexMSFT.POSITION); } - /** Unsafe version of {@link #normal}. */ - public static XrVector3f nnormal(long struct) { return XrVector3f.create(struct + XrHandMeshVertexMSFT.NORMAL); } - - /** Unsafe version of {@link #position$(XrVector3f) position$}. */ - public static void nposition$(long struct, XrVector3f value) { memCopy(value.address(), struct + XrHandMeshVertexMSFT.POSITION, XrVector3f.SIZEOF); } - /** Unsafe version of {@link #normal(XrVector3f) normal}. */ - public static void nnormal(long struct, XrVector3f value) { memCopy(value.address(), struct + XrHandMeshVertexMSFT.NORMAL, XrVector3f.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #position$}. */ + public static XrVector3f nposition$(long struct) { return XrVector3f.create(struct + XrHandMeshVertexMSFT.POSITION); } + /** Unsafe version of {@link #normal}. */ + public static XrVector3f nnormal(long struct) { return XrVector3f.create(struct + XrHandMeshVertexMSFT.NORMAL); } + + /** Unsafe version of {@link #position$(XrVector3f) position$}. */ + public static void nposition$(long struct, XrVector3f value) { memCopy(value.address(), struct + XrHandMeshVertexMSFT.POSITION, XrVector3f.SIZEOF); } + /** Unsafe version of {@link #normal(XrVector3f) normal}. */ + public static void nnormal(long struct, XrVector3f value) { memCopy(value.address(), struct + XrHandMeshVertexMSFT.NORMAL, XrVector3f.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrHandMeshVertexMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -281,20 +281,20 @@ protected Buffer self() { protected XrHandMeshVertexMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return a {@link XrVector3f} view of the {@link XrHandMeshVertexMSFT#position$} field. */ - public XrVector3f position$() { return XrHandMeshVertexMSFT.nposition$(address()); } - /** @return a {@link XrVector3f} view of the {@link XrHandMeshVertexMSFT#normal} field. */ - public XrVector3f normal() { return XrHandMeshVertexMSFT.nnormal(address()); } - - /** Copies the specified {@link XrVector3f} to the {@link XrHandMeshVertexMSFT#position$} field. */ - public XrHandMeshVertexMSFT.Buffer position$(XrVector3f value) { XrHandMeshVertexMSFT.nposition$(address(), value); return this; } - /** Passes the {@link XrHandMeshVertexMSFT#position$} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandMeshVertexMSFT.Buffer position$(java.util.function.Consumer consumer) { consumer.accept(position$()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link XrHandMeshVertexMSFT#normal} field. */ - public XrHandMeshVertexMSFT.Buffer normal(XrVector3f value) { XrHandMeshVertexMSFT.nnormal(address(), value); return this; } - /** Passes the {@link XrHandMeshVertexMSFT#normal} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrHandMeshVertexMSFT.Buffer normal(java.util.function.Consumer consumer) { consumer.accept(normal()); return this; } + + /** @return a {@link XrVector3f} view of the {@link XrHandMeshVertexMSFT#position$} field. */ + public XrVector3f position$() { return XrHandMeshVertexMSFT.nposition$(address()); } + /** @return a {@link XrVector3f} view of the {@link XrHandMeshVertexMSFT#normal} field. */ + public XrVector3f normal() { return XrHandMeshVertexMSFT.nnormal(address()); } + + /** Copies the specified {@link XrVector3f} to the {@link XrHandMeshVertexMSFT#position$} field. */ + public XrHandMeshVertexMSFT.Buffer position$(XrVector3f value) { XrHandMeshVertexMSFT.nposition$(address(), value); return this; } + /** Passes the {@link XrHandMeshVertexMSFT#position$} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandMeshVertexMSFT.Buffer position$(java.util.function.Consumer consumer) { consumer.accept(position$()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link XrHandMeshVertexMSFT#normal} field. */ + public XrHandMeshVertexMSFT.Buffer normal(XrVector3f value) { XrHandMeshVertexMSFT.nnormal(address(), value); return this; } + /** Passes the {@link XrHandMeshVertexMSFT#normal} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrHandMeshVertexMSFT.Buffer normal(java.util.function.Consumer consumer) { consumer.accept(normal()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandPoseTypeInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandPoseTypeInfoMSFT.java index d8c8d983e1..9c41e68d54 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandPoseTypeInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandPoseTypeInfoMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes what hand pose type for the hand joint tracking. * @@ -23,7 +23,7 @@ *
                                            *
                                          • The {@link MSFTHandTrackingMesh XR_MSFT_hand_tracking_mesh} extension must be enabled prior to using {@link XrHandPoseTypeInfoMSFT}
                                          • *
                                          • {@code type} must be {@link MSFTHandTrackingMesh#XR_TYPE_HAND_POSE_TYPE_INFO_MSFT TYPE_HAND_POSE_TYPE_INFO_MSFT}
                                          • - *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                          • + *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                          • *
                                          • {@code handPoseType} must be a valid {@code XrHandPoseTypeMSFT} value
                                          • *
                                          * @@ -39,8 +39,8 @@ * void const * {@link #next}; * XrHandPoseTypeMSFT {@link #handPoseType}; * } - */ -public class XrHandPoseTypeInfoMSFT extends Struct implements NativeResource { + */ +public class XrHandPoseTypeInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,24 +50,24 @@ public class XrHandPoseTypeInfoMSFT extends Struct imple /** The struct member offsets. */ public static final int - TYPE, - NEXT, - HANDPOSETYPE; + TYPE, + NEXT, + HANDPOSETYPE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - HANDPOSETYPE = layout.offsetof(2); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + HANDPOSETYPE = layout.offsetof(2); + } protected XrHandPoseTypeInfoMSFT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -90,35 +90,35 @@ public XrHandPoseTypeInfoMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** an {@code XrHandPoseTypeMSFT} that describes the type of hand pose of the hand tracking. */ - @NativeType("XrHandPoseTypeMSFT") - public int handPoseType() { return nhandPoseType(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrHandPoseTypeInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_POSE_TYPE_INFO_MSFT TYPE_HAND_POSE_TYPE_INFO_MSFT} value to the {@link #type} field. */ - public XrHandPoseTypeInfoMSFT type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_POSE_TYPE_INFO_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrHandPoseTypeInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #handPoseType} field. */ - public XrHandPoseTypeInfoMSFT handPoseType(@NativeType("XrHandPoseTypeMSFT") int value) { nhandPoseType(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** an {@code XrHandPoseTypeMSFT} that describes the type of hand pose of the hand tracking. */ + @NativeType("XrHandPoseTypeMSFT") + public int handPoseType() { return nhandPoseType(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHandPoseTypeInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_POSE_TYPE_INFO_MSFT TYPE_HAND_POSE_TYPE_INFO_MSFT} value to the {@link #type} field. */ + public XrHandPoseTypeInfoMSFT type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_POSE_TYPE_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrHandPoseTypeInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #handPoseType} field. */ + public XrHandPoseTypeInfoMSFT handPoseType(@NativeType("XrHandPoseTypeMSFT") int value) { nhandPoseType(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHandPoseTypeInfoMSFT set( - int type, - long next, + int type, + long next, int handPoseType - ) { - type(type); - next(next); - handPoseType(handPoseType); + ) { + type(type); + next(next); + handPoseType(handPoseType); return this; } @@ -247,22 +247,22 @@ public static XrHandPoseTypeInfoMSFT.Buffer calloc(int capacity, MemoryStack sta } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandPoseTypeInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHandPoseTypeInfoMSFT.NEXT); } - /** Unsafe version of {@link #handPoseType}. */ - public static int nhandPoseType(long struct) { return UNSAFE.getInt(null, struct + XrHandPoseTypeInfoMSFT.HANDPOSETYPE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandPoseTypeInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHandPoseTypeInfoMSFT.NEXT, value); } - /** Unsafe version of {@link #handPoseType(int) handPoseType}. */ - public static void nhandPoseType(long struct, int value) { UNSAFE.putInt(null, struct + XrHandPoseTypeInfoMSFT.HANDPOSETYPE, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandPoseTypeInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHandPoseTypeInfoMSFT.NEXT); } + /** Unsafe version of {@link #handPoseType}. */ + public static int nhandPoseType(long struct) { return UNSAFE.getInt(null, struct + XrHandPoseTypeInfoMSFT.HANDPOSETYPE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandPoseTypeInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHandPoseTypeInfoMSFT.NEXT, value); } + /** Unsafe version of {@link #handPoseType(int) handPoseType}. */ + public static void nhandPoseType(long struct, int value) { UNSAFE.putInt(null, struct + XrHandPoseTypeInfoMSFT.HANDPOSETYPE, value); } + + // ----------------------------------- /** An array of {@link XrHandPoseTypeInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -299,25 +299,25 @@ protected Buffer self() { protected XrHandPoseTypeInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandPoseTypeInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHandPoseTypeInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrHandPoseTypeInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrHandPoseTypeInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrHandPoseTypeInfoMSFT#handPoseType} field. */ - @NativeType("XrHandPoseTypeMSFT") - public int handPoseType() { return XrHandPoseTypeInfoMSFT.nhandPoseType(address()); } - - /** Sets the specified value to the {@link XrHandPoseTypeInfoMSFT#type} field. */ - public XrHandPoseTypeInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrHandPoseTypeInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_POSE_TYPE_INFO_MSFT TYPE_HAND_POSE_TYPE_INFO_MSFT} value to the {@link XrHandPoseTypeInfoMSFT#type} field. */ - public XrHandPoseTypeInfoMSFT.Buffer type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_POSE_TYPE_INFO_MSFT); } - /** Sets the specified value to the {@link XrHandPoseTypeInfoMSFT#next} field. */ - public XrHandPoseTypeInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrHandPoseTypeInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrHandPoseTypeInfoMSFT#handPoseType} field. */ - public XrHandPoseTypeInfoMSFT.Buffer handPoseType(@NativeType("XrHandPoseTypeMSFT") int value) { XrHandPoseTypeInfoMSFT.nhandPoseType(address(), value); return this; } + + /** @return the value of the {@link XrHandPoseTypeInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHandPoseTypeInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrHandPoseTypeInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrHandPoseTypeInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrHandPoseTypeInfoMSFT#handPoseType} field. */ + @NativeType("XrHandPoseTypeMSFT") + public int handPoseType() { return XrHandPoseTypeInfoMSFT.nhandPoseType(address()); } + + /** Sets the specified value to the {@link XrHandPoseTypeInfoMSFT#type} field. */ + public XrHandPoseTypeInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrHandPoseTypeInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_HAND_POSE_TYPE_INFO_MSFT TYPE_HAND_POSE_TYPE_INFO_MSFT} value to the {@link XrHandPoseTypeInfoMSFT#type} field. */ + public XrHandPoseTypeInfoMSFT.Buffer type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_HAND_POSE_TYPE_INFO_MSFT); } + /** Sets the specified value to the {@link XrHandPoseTypeInfoMSFT#next} field. */ + public XrHandPoseTypeInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrHandPoseTypeInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrHandPoseTypeInfoMSFT#handPoseType} field. */ + public XrHandPoseTypeInfoMSFT.Buffer handPoseType(@NativeType("XrHandPoseTypeMSFT") int value) { XrHandPoseTypeInfoMSFT.nhandPoseType(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackerCreateInfoEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackerCreateInfoEXT.java index 732397283c..ea6fcf9ba3 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackerCreateInfoEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackerCreateInfoEXT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Information to create a hand joints handle. * @@ -23,7 +23,7 @@ *
                                            *
                                          • The {@link EXTHandTracking XR_EXT_hand_tracking} extension must be enabled prior to using {@link XrHandTrackerCreateInfoEXT}
                                          • *
                                          • {@code type} must be {@link EXTHandTracking#XR_TYPE_HAND_TRACKER_CREATE_INFO_EXT TYPE_HAND_TRACKER_CREATE_INFO_EXT}
                                          • - *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrHandPoseTypeInfoMSFT}, {@link XrHandTrackingDataSourceInfoEXT}
                                          • + *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrHandPoseTypeInfoMSFT}
                                          • *
                                          • {@code hand} must be a valid {@code XrHandEXT} value
                                          • *
                                          • {@code handJointSet} must be a valid {@code XrHandJointSetEXT} value
                                          • *
                                          @@ -41,8 +41,8 @@ * XrHandEXT {@link #hand}; * XrHandJointSetEXT {@link #handJointSet}; * } - */ -public class XrHandTrackerCreateInfoEXT extends Struct implements NativeResource { + */ +public class XrHandTrackerCreateInfoEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,27 +52,27 @@ public class XrHandTrackerCreateInfoEXT extends Struct implements NativeResource { @@ -319,34 +317,32 @@ protected Buffer self() { protected XrHandTrackerCreateInfoEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandTrackerCreateInfoEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHandTrackerCreateInfoEXT.ntype(address()); } - /** @return the value of the {@link XrHandTrackerCreateInfoEXT#next} field. */ - @NativeType("void const *") - public long next() { return XrHandTrackerCreateInfoEXT.nnext(address()); } - /** @return the value of the {@link XrHandTrackerCreateInfoEXT#hand} field. */ - @NativeType("XrHandEXT") - public int hand() { return XrHandTrackerCreateInfoEXT.nhand(address()); } - /** @return the value of the {@link XrHandTrackerCreateInfoEXT#handJointSet} field. */ - @NativeType("XrHandJointSetEXT") - public int handJointSet() { return XrHandTrackerCreateInfoEXT.nhandJointSet(address()); } - - /** Sets the specified value to the {@link XrHandTrackerCreateInfoEXT#type} field. */ - public XrHandTrackerCreateInfoEXT.Buffer type(@NativeType("XrStructureType") int value) { XrHandTrackerCreateInfoEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_TRACKER_CREATE_INFO_EXT TYPE_HAND_TRACKER_CREATE_INFO_EXT} value to the {@link XrHandTrackerCreateInfoEXT#type} field. */ - public XrHandTrackerCreateInfoEXT.Buffer type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_TRACKER_CREATE_INFO_EXT); } - /** Sets the specified value to the {@link XrHandTrackerCreateInfoEXT#next} field. */ - public XrHandTrackerCreateInfoEXT.Buffer next(@NativeType("void const *") long value) { XrHandTrackerCreateInfoEXT.nnext(address(), value); return this; } - /** Prepends the specified {@link XrHandPoseTypeInfoMSFT} value to the {@code next} chain. */ - public XrHandTrackerCreateInfoEXT.Buffer next(XrHandPoseTypeInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrHandTrackingDataSourceInfoEXT} value to the {@code next} chain. */ - public XrHandTrackerCreateInfoEXT.Buffer next(XrHandTrackingDataSourceInfoEXT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrHandTrackerCreateInfoEXT#hand} field. */ - public XrHandTrackerCreateInfoEXT.Buffer hand(@NativeType("XrHandEXT") int value) { XrHandTrackerCreateInfoEXT.nhand(address(), value); return this; } - /** Sets the specified value to the {@link XrHandTrackerCreateInfoEXT#handJointSet} field. */ - public XrHandTrackerCreateInfoEXT.Buffer handJointSet(@NativeType("XrHandJointSetEXT") int value) { XrHandTrackerCreateInfoEXT.nhandJointSet(address(), value); return this; } + + /** @return the value of the {@link XrHandTrackerCreateInfoEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHandTrackerCreateInfoEXT.ntype(address()); } + /** @return the value of the {@link XrHandTrackerCreateInfoEXT#next} field. */ + @NativeType("void const *") + public long next() { return XrHandTrackerCreateInfoEXT.nnext(address()); } + /** @return the value of the {@link XrHandTrackerCreateInfoEXT#hand} field. */ + @NativeType("XrHandEXT") + public int hand() { return XrHandTrackerCreateInfoEXT.nhand(address()); } + /** @return the value of the {@link XrHandTrackerCreateInfoEXT#handJointSet} field. */ + @NativeType("XrHandJointSetEXT") + public int handJointSet() { return XrHandTrackerCreateInfoEXT.nhandJointSet(address()); } + + /** Sets the specified value to the {@link XrHandTrackerCreateInfoEXT#type} field. */ + public XrHandTrackerCreateInfoEXT.Buffer type(@NativeType("XrStructureType") int value) { XrHandTrackerCreateInfoEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTHandTracking#XR_TYPE_HAND_TRACKER_CREATE_INFO_EXT TYPE_HAND_TRACKER_CREATE_INFO_EXT} value to the {@link XrHandTrackerCreateInfoEXT#type} field. */ + public XrHandTrackerCreateInfoEXT.Buffer type$Default() { return type(EXTHandTracking.XR_TYPE_HAND_TRACKER_CREATE_INFO_EXT); } + /** Sets the specified value to the {@link XrHandTrackerCreateInfoEXT#next} field. */ + public XrHandTrackerCreateInfoEXT.Buffer next(@NativeType("void const *") long value) { XrHandTrackerCreateInfoEXT.nnext(address(), value); return this; } + /** Prepends the specified {@link XrHandPoseTypeInfoMSFT} value to the {@code next} chain. */ + public XrHandTrackerCreateInfoEXT.Buffer next(XrHandPoseTypeInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrHandTrackerCreateInfoEXT#hand} field. */ + public XrHandTrackerCreateInfoEXT.Buffer hand(@NativeType("XrHandEXT") int value) { XrHandTrackerCreateInfoEXT.nhand(address(), value); return this; } + /** Sets the specified value to the {@link XrHandTrackerCreateInfoEXT#handJointSet} field. */ + public XrHandTrackerCreateInfoEXT.Buffer handJointSet(@NativeType("XrHandJointSetEXT") int value) { XrHandTrackerCreateInfoEXT.nhandJointSet(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackerEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackerEXT.java index e6d1148e32..5d3dec3851 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackerEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackerEXT.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrHandTrackerEXT} handle. */ + +/** Wraps an {@code XrHandTrackerEXT} handle. */ public class XrHandTrackerEXT extends DispatchableHandle { private final XrSession session; @@ -26,4 +26,4 @@ public XrSession getSession() { return session; } -} +} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingAimStateFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingAimStateFB.java index 00505ecb08..23393b04ba 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingAimStateFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingAimStateFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Current aiming gesture state for the hand. * @@ -23,7 +23,7 @@ *
                                            *
                                          • The {@link FBHandTrackingAim XR_FB_hand_tracking_aim} extension must be enabled prior to using {@link XrHandTrackingAimStateFB}
                                          • *
                                          • {@code type} must be {@link FBHandTrackingAim#XR_TYPE_HAND_TRACKING_AIM_STATE_FB TYPE_HAND_TRACKING_AIM_STATE_FB}
                                          • - *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                          • + *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                          • *
                                          * *
                                          See Also
                                          @@ -43,8 +43,8 @@ * float {@link #pinchStrengthRing}; * float {@link #pinchStrengthLittle}; * } - */ -public class XrHandTrackingAimStateFB extends Struct implements NativeResource { + */ +public class XrHandTrackingAimStateFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,39 +54,39 @@ public class XrHandTrackingAimStateFB extends Struct i /** The struct member offsets. */ public static final int - TYPE, - NEXT, - STATUS, - AIMPOSE, - PINCHSTRENGTHINDEX, - PINCHSTRENGTHMIDDLE, - PINCHSTRENGTHRING, - PINCHSTRENGTHLITTLE; + TYPE, + NEXT, + STATUS, + AIMPOSE, + PINCHSTRENGTHINDEX, + PINCHSTRENGTHMIDDLE, + PINCHSTRENGTHRING, + PINCHSTRENGTHLITTLE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), - __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), - __member(4), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), + __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), + __member(4), + __member(4), + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - STATUS = layout.offsetof(2); - AIMPOSE = layout.offsetof(3); - PINCHSTRENGTHINDEX = layout.offsetof(4); - PINCHSTRENGTHMIDDLE = layout.offsetof(5); - PINCHSTRENGTHRING = layout.offsetof(6); - PINCHSTRENGTHLITTLE = layout.offsetof(7); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + STATUS = layout.offsetof(2); + AIMPOSE = layout.offsetof(3); + PINCHSTRENGTHINDEX = layout.offsetof(4); + PINCHSTRENGTHMIDDLE = layout.offsetof(5); + PINCHSTRENGTHRING = layout.offsetof(6); + PINCHSTRENGTHLITTLE = layout.offsetof(7); + } protected XrHandTrackingAimStateFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -109,41 +109,41 @@ public XrHandTrackingAimStateFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** a bitmask of {@code XrHandTrackingAimFlagBitsFB} describing the availability and state of other signals. */ - @NativeType("XrHandTrackingAimFlagsFB") - public long status() { return nstatus(address()); } - /** a system-determined "aim" pose, similar in intent and convention to the aim poses used with the action system, based on hand data. */ - public XrPosef aimPose() { return naimPose(address()); } - /** the current pinching strength for the index finger of this hand. Range is 0.0 to 1.0, with 1.0 meaning index and thumb are fully touching. */ - public float pinchStrengthIndex() { return npinchStrengthIndex(address()); } - /** the current pinching strength for the middle finger of this hand. Range is 0.0 to 1.0, with 1.0 meaning middle and thumb are fully touching. */ - public float pinchStrengthMiddle() { return npinchStrengthMiddle(address()); } - /** the current pinching strength for the ring finger of this hand. Range is 0.0 to 1.0, with 1.0 meaning ring and thumb are fully touching. */ - public float pinchStrengthRing() { return npinchStrengthRing(address()); } - /** the current pinching strength for the little finger of this hand. Range is 0.0 to 1.0, with 1.0 meaning little and thumb are fully touching. */ - public float pinchStrengthLittle() { return npinchStrengthLittle(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrHandTrackingAimStateFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBHandTrackingAim#XR_TYPE_HAND_TRACKING_AIM_STATE_FB TYPE_HAND_TRACKING_AIM_STATE_FB} value to the {@link #type} field. */ - public XrHandTrackingAimStateFB type$Default() { return type(FBHandTrackingAim.XR_TYPE_HAND_TRACKING_AIM_STATE_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrHandTrackingAimStateFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** a bitmask of {@code XrHandTrackingAimFlagBitsFB} describing the availability and state of other signals. */ + @NativeType("XrHandTrackingAimFlagsFB") + public long status() { return nstatus(address()); } + /** a system-determined "aim" pose, similar in intent and convention to the aim poses used with the action system, based on hand data. */ + public XrPosef aimPose() { return naimPose(address()); } + /** the current pinching strength for the index finger of this hand. Range is 0.0 to 1.0, with 1.0 meaning index and thumb are fully touching. */ + public float pinchStrengthIndex() { return npinchStrengthIndex(address()); } + /** the current pinching strength for the middle finger of this hand. Range is 0.0 to 1.0, with 1.0 meaning middle and thumb are fully touching. */ + public float pinchStrengthMiddle() { return npinchStrengthMiddle(address()); } + /** the current pinching strength for the ring finger of this hand. Range is 0.0 to 1.0, with 1.0 meaning ring and thumb are fully touching. */ + public float pinchStrengthRing() { return npinchStrengthRing(address()); } + /** the current pinching strength for the little finger of this hand. Range is 0.0 to 1.0, with 1.0 meaning little and thumb are fully touching. */ + public float pinchStrengthLittle() { return npinchStrengthLittle(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHandTrackingAimStateFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBHandTrackingAim#XR_TYPE_HAND_TRACKING_AIM_STATE_FB TYPE_HAND_TRACKING_AIM_STATE_FB} value to the {@link #type} field. */ + public XrHandTrackingAimStateFB type$Default() { return type(FBHandTrackingAim.XR_TYPE_HAND_TRACKING_AIM_STATE_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrHandTrackingAimStateFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHandTrackingAimStateFB set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -272,30 +272,30 @@ public static XrHandTrackingAimStateFB.Buffer calloc(int capacity, MemoryStack s } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingAimStateFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHandTrackingAimStateFB.NEXT); } - /** Unsafe version of {@link #status}. */ - public static long nstatus(long struct) { return UNSAFE.getLong(null, struct + XrHandTrackingAimStateFB.STATUS); } - /** Unsafe version of {@link #aimPose}. */ - public static XrPosef naimPose(long struct) { return XrPosef.create(struct + XrHandTrackingAimStateFB.AIMPOSE); } - /** Unsafe version of {@link #pinchStrengthIndex}. */ - public static float npinchStrengthIndex(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingAimStateFB.PINCHSTRENGTHINDEX); } - /** Unsafe version of {@link #pinchStrengthMiddle}. */ - public static float npinchStrengthMiddle(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingAimStateFB.PINCHSTRENGTHMIDDLE); } - /** Unsafe version of {@link #pinchStrengthRing}. */ - public static float npinchStrengthRing(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingAimStateFB.PINCHSTRENGTHRING); } - /** Unsafe version of {@link #pinchStrengthLittle}. */ - public static float npinchStrengthLittle(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingAimStateFB.PINCHSTRENGTHLITTLE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingAimStateFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHandTrackingAimStateFB.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingAimStateFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHandTrackingAimStateFB.NEXT); } + /** Unsafe version of {@link #status}. */ + public static long nstatus(long struct) { return UNSAFE.getLong(null, struct + XrHandTrackingAimStateFB.STATUS); } + /** Unsafe version of {@link #aimPose}. */ + public static XrPosef naimPose(long struct) { return XrPosef.create(struct + XrHandTrackingAimStateFB.AIMPOSE); } + /** Unsafe version of {@link #pinchStrengthIndex}. */ + public static float npinchStrengthIndex(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingAimStateFB.PINCHSTRENGTHINDEX); } + /** Unsafe version of {@link #pinchStrengthMiddle}. */ + public static float npinchStrengthMiddle(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingAimStateFB.PINCHSTRENGTHMIDDLE); } + /** Unsafe version of {@link #pinchStrengthRing}. */ + public static float npinchStrengthRing(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingAimStateFB.PINCHSTRENGTHRING); } + /** Unsafe version of {@link #pinchStrengthLittle}. */ + public static float npinchStrengthLittle(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingAimStateFB.PINCHSTRENGTHLITTLE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingAimStateFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHandTrackingAimStateFB.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrHandTrackingAimStateFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -332,33 +332,33 @@ protected Buffer self() { protected XrHandTrackingAimStateFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandTrackingAimStateFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHandTrackingAimStateFB.ntype(address()); } - /** @return the value of the {@link XrHandTrackingAimStateFB#next} field. */ - @NativeType("void *") - public long next() { return XrHandTrackingAimStateFB.nnext(address()); } - /** @return the value of the {@link XrHandTrackingAimStateFB#status} field. */ - @NativeType("XrHandTrackingAimFlagsFB") - public long status() { return XrHandTrackingAimStateFB.nstatus(address()); } - /** @return a {@link XrPosef} view of the {@link XrHandTrackingAimStateFB#aimPose} field. */ - public XrPosef aimPose() { return XrHandTrackingAimStateFB.naimPose(address()); } - /** @return the value of the {@link XrHandTrackingAimStateFB#pinchStrengthIndex} field. */ - public float pinchStrengthIndex() { return XrHandTrackingAimStateFB.npinchStrengthIndex(address()); } - /** @return the value of the {@link XrHandTrackingAimStateFB#pinchStrengthMiddle} field. */ - public float pinchStrengthMiddle() { return XrHandTrackingAimStateFB.npinchStrengthMiddle(address()); } - /** @return the value of the {@link XrHandTrackingAimStateFB#pinchStrengthRing} field. */ - public float pinchStrengthRing() { return XrHandTrackingAimStateFB.npinchStrengthRing(address()); } - /** @return the value of the {@link XrHandTrackingAimStateFB#pinchStrengthLittle} field. */ - public float pinchStrengthLittle() { return XrHandTrackingAimStateFB.npinchStrengthLittle(address()); } - - /** Sets the specified value to the {@link XrHandTrackingAimStateFB#type} field. */ - public XrHandTrackingAimStateFB.Buffer type(@NativeType("XrStructureType") int value) { XrHandTrackingAimStateFB.ntype(address(), value); return this; } - /** Sets the {@link FBHandTrackingAim#XR_TYPE_HAND_TRACKING_AIM_STATE_FB TYPE_HAND_TRACKING_AIM_STATE_FB} value to the {@link XrHandTrackingAimStateFB#type} field. */ - public XrHandTrackingAimStateFB.Buffer type$Default() { return type(FBHandTrackingAim.XR_TYPE_HAND_TRACKING_AIM_STATE_FB); } - /** Sets the specified value to the {@link XrHandTrackingAimStateFB#next} field. */ - public XrHandTrackingAimStateFB.Buffer next(@NativeType("void *") long value) { XrHandTrackingAimStateFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrHandTrackingAimStateFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHandTrackingAimStateFB.ntype(address()); } + /** @return the value of the {@link XrHandTrackingAimStateFB#next} field. */ + @NativeType("void *") + public long next() { return XrHandTrackingAimStateFB.nnext(address()); } + /** @return the value of the {@link XrHandTrackingAimStateFB#status} field. */ + @NativeType("XrHandTrackingAimFlagsFB") + public long status() { return XrHandTrackingAimStateFB.nstatus(address()); } + /** @return a {@link XrPosef} view of the {@link XrHandTrackingAimStateFB#aimPose} field. */ + public XrPosef aimPose() { return XrHandTrackingAimStateFB.naimPose(address()); } + /** @return the value of the {@link XrHandTrackingAimStateFB#pinchStrengthIndex} field. */ + public float pinchStrengthIndex() { return XrHandTrackingAimStateFB.npinchStrengthIndex(address()); } + /** @return the value of the {@link XrHandTrackingAimStateFB#pinchStrengthMiddle} field. */ + public float pinchStrengthMiddle() { return XrHandTrackingAimStateFB.npinchStrengthMiddle(address()); } + /** @return the value of the {@link XrHandTrackingAimStateFB#pinchStrengthRing} field. */ + public float pinchStrengthRing() { return XrHandTrackingAimStateFB.npinchStrengthRing(address()); } + /** @return the value of the {@link XrHandTrackingAimStateFB#pinchStrengthLittle} field. */ + public float pinchStrengthLittle() { return XrHandTrackingAimStateFB.npinchStrengthLittle(address()); } + + /** Sets the specified value to the {@link XrHandTrackingAimStateFB#type} field. */ + public XrHandTrackingAimStateFB.Buffer type(@NativeType("XrStructureType") int value) { XrHandTrackingAimStateFB.ntype(address(), value); return this; } + /** Sets the {@link FBHandTrackingAim#XR_TYPE_HAND_TRACKING_AIM_STATE_FB TYPE_HAND_TRACKING_AIM_STATE_FB} value to the {@link XrHandTrackingAimStateFB#type} field. */ + public XrHandTrackingAimStateFB.Buffer type$Default() { return type(FBHandTrackingAim.XR_TYPE_HAND_TRACKING_AIM_STATE_FB); } + /** Sets the specified value to the {@link XrHandTrackingAimStateFB#next} field. */ + public XrHandTrackingAimStateFB.Buffer next(@NativeType("void *") long value) { XrHandTrackingAimStateFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingCapsulesStateFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingCapsulesStateFB.java index 92c18f778f..5851fd15e2 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingCapsulesStateFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingCapsulesStateFB.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import static org.lwjgl.openxr.FBHandTrackingCapsules.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.FBHandTrackingCapsules.*; + /** * A list of capsules associated to hand joints. * @@ -26,7 +26,7 @@ *
                                            *
                                          • The {@link FBHandTrackingCapsules XR_FB_hand_tracking_capsules} extension must be enabled prior to using {@link XrHandTrackingCapsulesStateFB}
                                          • *
                                          • {@code type} must be {@link FBHandTrackingCapsules#XR_TYPE_HAND_TRACKING_CAPSULES_STATE_FB TYPE_HAND_TRACKING_CAPSULES_STATE_FB}
                                          • - *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                          • + *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                          • *
                                          * *
                                          See Also
                                          @@ -41,8 +41,8 @@ * void * {@link #next}; * {@link XrHandCapsuleFB XrHandCapsuleFB} {@link #capsules}[XR_HAND_TRACKING_CAPSULE_COUNT_FB]; * } - */ -public class XrHandTrackingCapsulesStateFB extends Struct implements NativeResource { + */ +public class XrHandTrackingCapsulesStateFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,24 +52,24 @@ public class XrHandTrackingCapsulesStateFB extends Struct implements NativeResource { @@ -301,25 +301,25 @@ protected Buffer self() { protected XrHandTrackingCapsulesStateFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandTrackingCapsulesStateFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHandTrackingCapsulesStateFB.ntype(address()); } - /** @return the value of the {@link XrHandTrackingCapsulesStateFB#next} field. */ - @NativeType("void *") - public long next() { return XrHandTrackingCapsulesStateFB.nnext(address()); } - /** @return a {@link XrHandCapsuleFB}.Buffer view of the {@link XrHandTrackingCapsulesStateFB#capsules} field. */ - @NativeType("XrHandCapsuleFB[XR_HAND_TRACKING_CAPSULE_COUNT_FB]") - public XrHandCapsuleFB.Buffer capsules() { return XrHandTrackingCapsulesStateFB.ncapsules(address()); } - /** @return a {@link XrHandCapsuleFB} view of the struct at the specified index of the {@link XrHandTrackingCapsulesStateFB#capsules} field. */ - public XrHandCapsuleFB capsules(int index) { return XrHandTrackingCapsulesStateFB.ncapsules(address(), index); } - - /** Sets the specified value to the {@link XrHandTrackingCapsulesStateFB#type} field. */ - public XrHandTrackingCapsulesStateFB.Buffer type(@NativeType("XrStructureType") int value) { XrHandTrackingCapsulesStateFB.ntype(address(), value); return this; } - /** Sets the {@link FBHandTrackingCapsules#XR_TYPE_HAND_TRACKING_CAPSULES_STATE_FB TYPE_HAND_TRACKING_CAPSULES_STATE_FB} value to the {@link XrHandTrackingCapsulesStateFB#type} field. */ - public XrHandTrackingCapsulesStateFB.Buffer type$Default() { return type(FBHandTrackingCapsules.XR_TYPE_HAND_TRACKING_CAPSULES_STATE_FB); } - /** Sets the specified value to the {@link XrHandTrackingCapsulesStateFB#next} field. */ - public XrHandTrackingCapsulesStateFB.Buffer next(@NativeType("void *") long value) { XrHandTrackingCapsulesStateFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrHandTrackingCapsulesStateFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHandTrackingCapsulesStateFB.ntype(address()); } + /** @return the value of the {@link XrHandTrackingCapsulesStateFB#next} field. */ + @NativeType("void *") + public long next() { return XrHandTrackingCapsulesStateFB.nnext(address()); } + /** @return a {@link XrHandCapsuleFB}.Buffer view of the {@link XrHandTrackingCapsulesStateFB#capsules} field. */ + @NativeType("XrHandCapsuleFB[XR_HAND_TRACKING_CAPSULE_COUNT_FB]") + public XrHandCapsuleFB.Buffer capsules() { return XrHandTrackingCapsulesStateFB.ncapsules(address()); } + /** @return a {@link XrHandCapsuleFB} view of the struct at the specified index of the {@link XrHandTrackingCapsulesStateFB#capsules} field. */ + public XrHandCapsuleFB capsules(int index) { return XrHandTrackingCapsulesStateFB.ncapsules(address(), index); } + + /** Sets the specified value to the {@link XrHandTrackingCapsulesStateFB#type} field. */ + public XrHandTrackingCapsulesStateFB.Buffer type(@NativeType("XrStructureType") int value) { XrHandTrackingCapsulesStateFB.ntype(address(), value); return this; } + /** Sets the {@link FBHandTrackingCapsules#XR_TYPE_HAND_TRACKING_CAPSULES_STATE_FB TYPE_HAND_TRACKING_CAPSULES_STATE_FB} value to the {@link XrHandTrackingCapsulesStateFB#type} field. */ + public XrHandTrackingCapsulesStateFB.Buffer type$Default() { return type(FBHandTrackingCapsules.XR_TYPE_HAND_TRACKING_CAPSULES_STATE_FB); } + /** Sets the specified value to the {@link XrHandTrackingCapsulesStateFB#next} field. */ + public XrHandTrackingCapsulesStateFB.Buffer next(@NativeType("void *") long value) { XrHandTrackingCapsulesStateFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingMeshFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingMeshFB.java index 4318cc59fa..fa7a4d1837 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingMeshFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingMeshFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * A container of mesh data. * @@ -29,7 +29,7 @@ *
                                            *
                                          • The {@link FBHandTrackingMesh XR_FB_hand_tracking_mesh} extension must be enabled prior to using {@link XrHandTrackingMeshFB}
                                          • *
                                          • {@code type} must be {@link FBHandTrackingMesh#XR_TYPE_HAND_TRACKING_MESH_FB TYPE_HAND_TRACKING_MESH_FB}
                                          • - *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                          • + *
                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                          • *
                                          • If {@code jointCapacityInput} is not 0, {@code jointBindPoses} must be a pointer to an array of {@code jointCapacityInput} {@link XrPosef} structures
                                          • *
                                          • If {@code jointCapacityInput} is not 0, {@code jointRadii} must be a pointer to an array of {@code jointCapacityInput} {@code float} values
                                          • *
                                          • If {@code jointCapacityInput} is not 0, {@code jointParents} must be a pointer to an array of {@code jointCapacityInput} {@code XrHandJointEXT} values
                                          • @@ -67,8 +67,8 @@ * uint32_t {@link #indexCountOutput}; * int16_t * {@link #indices}; * } - */ -public class XrHandTrackingMeshFB extends Struct implements NativeResource { + */ +public class XrHandTrackingMeshFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -78,66 +78,66 @@ public class XrHandTrackingMeshFB extends Struct implement /** The struct member offsets. */ public static final int - TYPE, - NEXT, - JOINTCAPACITYINPUT, - JOINTCOUNTOUTPUT, - JOINTBINDPOSES, - JOINTRADII, - JOINTPARENTS, - VERTEXCAPACITYINPUT, - VERTEXCOUNTOUTPUT, - VERTEXPOSITIONS, - VERTEXNORMALS, - VERTEXUVS, - VERTEXBLENDINDICES, - VERTEXBLENDWEIGHTS, - INDEXCAPACITYINPUT, - INDEXCOUNTOUTPUT, - INDICES; + TYPE, + NEXT, + JOINTCAPACITYINPUT, + JOINTCOUNTOUTPUT, + JOINTBINDPOSES, + JOINTRADII, + JOINTPARENTS, + VERTEXCAPACITYINPUT, + VERTEXCOUNTOUTPUT, + VERTEXPOSITIONS, + VERTEXNORMALS, + VERTEXUVS, + VERTEXBLENDINDICES, + VERTEXBLENDWEIGHTS, + INDEXCAPACITYINPUT, + INDEXCOUNTOUTPUT, + INDICES; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), - __member(POINTER_SIZE), - __member(POINTER_SIZE), - __member(POINTER_SIZE), - __member(4), - __member(4), - __member(POINTER_SIZE), - __member(POINTER_SIZE), - __member(POINTER_SIZE), - __member(POINTER_SIZE), - __member(POINTER_SIZE), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), + __member(POINTER_SIZE), + __member(POINTER_SIZE), + __member(POINTER_SIZE), + __member(4), + __member(4), + __member(POINTER_SIZE), + __member(POINTER_SIZE), + __member(POINTER_SIZE), + __member(POINTER_SIZE), + __member(POINTER_SIZE), + __member(4), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - JOINTCAPACITYINPUT = layout.offsetof(2); - JOINTCOUNTOUTPUT = layout.offsetof(3); - JOINTBINDPOSES = layout.offsetof(4); - JOINTRADII = layout.offsetof(5); - JOINTPARENTS = layout.offsetof(6); - VERTEXCAPACITYINPUT = layout.offsetof(7); - VERTEXCOUNTOUTPUT = layout.offsetof(8); - VERTEXPOSITIONS = layout.offsetof(9); - VERTEXNORMALS = layout.offsetof(10); - VERTEXUVS = layout.offsetof(11); - VERTEXBLENDINDICES = layout.offsetof(12); - VERTEXBLENDWEIGHTS = layout.offsetof(13); - INDEXCAPACITYINPUT = layout.offsetof(14); - INDEXCOUNTOUTPUT = layout.offsetof(15); - INDICES = layout.offsetof(16); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + JOINTCAPACITYINPUT = layout.offsetof(2); + JOINTCOUNTOUTPUT = layout.offsetof(3); + JOINTBINDPOSES = layout.offsetof(4); + JOINTRADII = layout.offsetof(5); + JOINTPARENTS = layout.offsetof(6); + VERTEXCAPACITYINPUT = layout.offsetof(7); + VERTEXCOUNTOUTPUT = layout.offsetof(8); + VERTEXPOSITIONS = layout.offsetof(9); + VERTEXNORMALS = layout.offsetof(10); + VERTEXUVS = layout.offsetof(11); + VERTEXBLENDINDICES = layout.offsetof(12); + VERTEXBLENDWEIGHTS = layout.offsetof(13); + INDEXCAPACITYINPUT = layout.offsetof(14); + INDEXCOUNTOUTPUT = layout.offsetof(15); + INDICES = layout.offsetof(16); + } protected XrHandTrackingMeshFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -160,142 +160,142 @@ public XrHandTrackingMeshFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** the capacity of the joint data arrays in this structure, or 0 to indicate a request to retrieve the required capacity. */ - @NativeType("uint32_t") - public int jointCapacityInput() { return njointCapacityInput(address()); } - /** filled in by the runtime with the count of joint data elements written, or the required capacity in the case that any of {@code jointCapacityInput}, {@code vertexCapacityInput}, or {@code indexCapacityInput} is insufficient. */ - @NativeType("uint32_t") - public int jointCountOutput() { return njointCountOutput(address()); } - /** an array of poses that matches what is returned by {@link EXTHandTracking#xrLocateHandJointsEXT LocateHandJointsEXT} which describes the hand skeleton’s bind pose. */ - @Nullable - @NativeType("XrPosef *") - public XrPosef.Buffer jointBindPoses() { return njointBindPoses(address()); } - /** an array of joint radii at bind pose. */ - @Nullable - @NativeType("float *") - public FloatBuffer jointRadii() { return njointRadii(address()); } - /** an array of joint parents to define a bone hierarchy for the hand skeleton. */ - @Nullable - @NativeType("XrHandJointEXT *") - public IntBuffer jointParents() { return njointParents(address()); } - /** the capacity of the vertex data arrays in this structure, or 0 to indicate a request to retrieve the required capacity. */ - @NativeType("uint32_t") - public int vertexCapacityInput() { return nvertexCapacityInput(address()); } - /** filled in by the runtime with the count of vertex data elements written, or the required capacity in the case that any of {@code jointCapacityInput}, {@code vertexCapacityInput}, or {@code indexCapacityInput} is insufficient. */ - @NativeType("uint32_t") - public int vertexCountOutput() { return nvertexCountOutput(address()); } - /** an array of 3D vertex positions. */ - @Nullable - @NativeType("XrVector3f *") - public XrVector3f.Buffer vertexPositions() { return nvertexPositions(address()); } - /** an array of 3D vertex normals. */ - @Nullable - @NativeType("XrVector3f *") - public XrVector3f.Buffer vertexNormals() { return nvertexNormals(address()); } - /** an array of texture coordinates for this vertex. */ - @Nullable - @NativeType("XrVector2f *") - public XrVector2f.Buffer vertexUVs() { return nvertexUVs(address()); } - /** an array of bone blend indices. */ - @Nullable - @NativeType("XrVector4sFB *") - public XrVector4sFB.Buffer vertexBlendIndices() { return nvertexBlendIndices(address()); } - /** an array of bone blend weights. */ - @Nullable - @NativeType("XrVector4f *") - public XrVector4f.Buffer vertexBlendWeights() { return nvertexBlendWeights(address()); } - /** the capacity of the index data arrays in this structure, or 0 to indicate a request to retrieve the required capacity. */ - @NativeType("uint32_t") - public int indexCapacityInput() { return nindexCapacityInput(address()); } - /** filled in by the runtime with the count of index data elements written, or the required capacity in the case that any of {@code jointCapacityInput}, {@code vertexCapacityInput}, or {@code indexCapacityInput} is insufficient. */ - @NativeType("uint32_t") - public int indexCountOutput() { return nindexCountOutput(address()); } - /** an array of triangle indices. */ - @Nullable - @NativeType("int16_t *") - public ShortBuffer indices() { return nindices(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrHandTrackingMeshFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBHandTrackingMesh#XR_TYPE_HAND_TRACKING_MESH_FB TYPE_HAND_TRACKING_MESH_FB} value to the {@link #type} field. */ - public XrHandTrackingMeshFB type$Default() { return type(FBHandTrackingMesh.XR_TYPE_HAND_TRACKING_MESH_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrHandTrackingMeshFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #jointCapacityInput} field. */ - public XrHandTrackingMeshFB jointCapacityInput(@NativeType("uint32_t") int value) { njointCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #jointCountOutput} field. */ - public XrHandTrackingMeshFB jointCountOutput(@NativeType("uint32_t") int value) { njointCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrPosef.Buffer} to the {@link #jointBindPoses} field. */ - public XrHandTrackingMeshFB jointBindPoses(@Nullable @NativeType("XrPosef *") XrPosef.Buffer value) { njointBindPoses(address(), value); return this; } - /** Sets the address of the specified {@link FloatBuffer} to the {@link #jointRadii} field. */ - public XrHandTrackingMeshFB jointRadii(@Nullable @NativeType("float *") FloatBuffer value) { njointRadii(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link #jointParents} field. */ - public XrHandTrackingMeshFB jointParents(@Nullable @NativeType("XrHandJointEXT *") IntBuffer value) { njointParents(address(), value); return this; } - /** Sets the specified value to the {@link #vertexCapacityInput} field. */ - public XrHandTrackingMeshFB vertexCapacityInput(@NativeType("uint32_t") int value) { nvertexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #vertexCountOutput} field. */ - public XrHandTrackingMeshFB vertexCountOutput(@NativeType("uint32_t") int value) { nvertexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link #vertexPositions} field. */ - public XrHandTrackingMeshFB vertexPositions(@Nullable @NativeType("XrVector3f *") XrVector3f.Buffer value) { nvertexPositions(address(), value); return this; } - /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link #vertexNormals} field. */ - public XrHandTrackingMeshFB vertexNormals(@Nullable @NativeType("XrVector3f *") XrVector3f.Buffer value) { nvertexNormals(address(), value); return this; } - /** Sets the address of the specified {@link XrVector2f.Buffer} to the {@link #vertexUVs} field. */ - public XrHandTrackingMeshFB vertexUVs(@Nullable @NativeType("XrVector2f *") XrVector2f.Buffer value) { nvertexUVs(address(), value); return this; } - /** Sets the address of the specified {@link XrVector4sFB.Buffer} to the {@link #vertexBlendIndices} field. */ - public XrHandTrackingMeshFB vertexBlendIndices(@Nullable @NativeType("XrVector4sFB *") XrVector4sFB.Buffer value) { nvertexBlendIndices(address(), value); return this; } - /** Sets the address of the specified {@link XrVector4f.Buffer} to the {@link #vertexBlendWeights} field. */ - public XrHandTrackingMeshFB vertexBlendWeights(@Nullable @NativeType("XrVector4f *") XrVector4f.Buffer value) { nvertexBlendWeights(address(), value); return this; } - /** Sets the specified value to the {@link #indexCapacityInput} field. */ - public XrHandTrackingMeshFB indexCapacityInput(@NativeType("uint32_t") int value) { nindexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #indexCountOutput} field. */ - public XrHandTrackingMeshFB indexCountOutput(@NativeType("uint32_t") int value) { nindexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link ShortBuffer} to the {@link #indices} field. */ - public XrHandTrackingMeshFB indices(@Nullable @NativeType("int16_t *") ShortBuffer value) { nindices(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the capacity of the joint data arrays in this structure, or 0 to indicate a request to retrieve the required capacity. */ + @NativeType("uint32_t") + public int jointCapacityInput() { return njointCapacityInput(address()); } + /** filled in by the runtime with the count of joint data elements written, or the required capacity in the case that any of {@code jointCapacityInput}, {@code vertexCapacityInput}, or {@code indexCapacityInput} is insufficient. */ + @NativeType("uint32_t") + public int jointCountOutput() { return njointCountOutput(address()); } + /** an array of poses that matches what is returned by {@link EXTHandTracking#xrLocateHandJointsEXT LocateHandJointsEXT} which describes the hand skeleton’s bind pose. */ + @Nullable + @NativeType("XrPosef *") + public XrPosef.Buffer jointBindPoses() { return njointBindPoses(address()); } + /** an array of joint radii at bind pose. */ + @Nullable + @NativeType("float *") + public FloatBuffer jointRadii() { return njointRadii(address()); } + /** an array of joint parents to define a bone hierarchy for the hand skeleton. */ + @Nullable + @NativeType("XrHandJointEXT *") + public IntBuffer jointParents() { return njointParents(address()); } + /** the capacity of the vertex data arrays in this structure, or 0 to indicate a request to retrieve the required capacity. */ + @NativeType("uint32_t") + public int vertexCapacityInput() { return nvertexCapacityInput(address()); } + /** filled in by the runtime with the count of vertex data elements written, or the required capacity in the case that any of {@code jointCapacityInput}, {@code vertexCapacityInput}, or {@code indexCapacityInput} is insufficient. */ + @NativeType("uint32_t") + public int vertexCountOutput() { return nvertexCountOutput(address()); } + /** an array of 3D vertex positions. */ + @Nullable + @NativeType("XrVector3f *") + public XrVector3f.Buffer vertexPositions() { return nvertexPositions(address()); } + /** an array of 3D vertex normals. */ + @Nullable + @NativeType("XrVector3f *") + public XrVector3f.Buffer vertexNormals() { return nvertexNormals(address()); } + /** an array of texture coordinates for this vertex. */ + @Nullable + @NativeType("XrVector2f *") + public XrVector2f.Buffer vertexUVs() { return nvertexUVs(address()); } + /** an array of bone blend indices. */ + @Nullable + @NativeType("XrVector4sFB *") + public XrVector4sFB.Buffer vertexBlendIndices() { return nvertexBlendIndices(address()); } + /** an array of bone blend weights. */ + @Nullable + @NativeType("XrVector4f *") + public XrVector4f.Buffer vertexBlendWeights() { return nvertexBlendWeights(address()); } + /** the capacity of the index data arrays in this structure, or 0 to indicate a request to retrieve the required capacity. */ + @NativeType("uint32_t") + public int indexCapacityInput() { return nindexCapacityInput(address()); } + /** filled in by the runtime with the count of index data elements written, or the required capacity in the case that any of {@code jointCapacityInput}, {@code vertexCapacityInput}, or {@code indexCapacityInput} is insufficient. */ + @NativeType("uint32_t") + public int indexCountOutput() { return nindexCountOutput(address()); } + /** an array of triangle indices. */ + @Nullable + @NativeType("int16_t *") + public ShortBuffer indices() { return nindices(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHandTrackingMeshFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBHandTrackingMesh#XR_TYPE_HAND_TRACKING_MESH_FB TYPE_HAND_TRACKING_MESH_FB} value to the {@link #type} field. */ + public XrHandTrackingMeshFB type$Default() { return type(FBHandTrackingMesh.XR_TYPE_HAND_TRACKING_MESH_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrHandTrackingMeshFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #jointCapacityInput} field. */ + public XrHandTrackingMeshFB jointCapacityInput(@NativeType("uint32_t") int value) { njointCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #jointCountOutput} field. */ + public XrHandTrackingMeshFB jointCountOutput(@NativeType("uint32_t") int value) { njointCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrPosef.Buffer} to the {@link #jointBindPoses} field. */ + public XrHandTrackingMeshFB jointBindPoses(@Nullable @NativeType("XrPosef *") XrPosef.Buffer value) { njointBindPoses(address(), value); return this; } + /** Sets the address of the specified {@link FloatBuffer} to the {@link #jointRadii} field. */ + public XrHandTrackingMeshFB jointRadii(@Nullable @NativeType("float *") FloatBuffer value) { njointRadii(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link #jointParents} field. */ + public XrHandTrackingMeshFB jointParents(@Nullable @NativeType("XrHandJointEXT *") IntBuffer value) { njointParents(address(), value); return this; } + /** Sets the specified value to the {@link #vertexCapacityInput} field. */ + public XrHandTrackingMeshFB vertexCapacityInput(@NativeType("uint32_t") int value) { nvertexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #vertexCountOutput} field. */ + public XrHandTrackingMeshFB vertexCountOutput(@NativeType("uint32_t") int value) { nvertexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link #vertexPositions} field. */ + public XrHandTrackingMeshFB vertexPositions(@Nullable @NativeType("XrVector3f *") XrVector3f.Buffer value) { nvertexPositions(address(), value); return this; } + /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link #vertexNormals} field. */ + public XrHandTrackingMeshFB vertexNormals(@Nullable @NativeType("XrVector3f *") XrVector3f.Buffer value) { nvertexNormals(address(), value); return this; } + /** Sets the address of the specified {@link XrVector2f.Buffer} to the {@link #vertexUVs} field. */ + public XrHandTrackingMeshFB vertexUVs(@Nullable @NativeType("XrVector2f *") XrVector2f.Buffer value) { nvertexUVs(address(), value); return this; } + /** Sets the address of the specified {@link XrVector4sFB.Buffer} to the {@link #vertexBlendIndices} field. */ + public XrHandTrackingMeshFB vertexBlendIndices(@Nullable @NativeType("XrVector4sFB *") XrVector4sFB.Buffer value) { nvertexBlendIndices(address(), value); return this; } + /** Sets the address of the specified {@link XrVector4f.Buffer} to the {@link #vertexBlendWeights} field. */ + public XrHandTrackingMeshFB vertexBlendWeights(@Nullable @NativeType("XrVector4f *") XrVector4f.Buffer value) { nvertexBlendWeights(address(), value); return this; } + /** Sets the specified value to the {@link #indexCapacityInput} field. */ + public XrHandTrackingMeshFB indexCapacityInput(@NativeType("uint32_t") int value) { nindexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #indexCountOutput} field. */ + public XrHandTrackingMeshFB indexCountOutput(@NativeType("uint32_t") int value) { nindexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link ShortBuffer} to the {@link #indices} field. */ + public XrHandTrackingMeshFB indices(@Nullable @NativeType("int16_t *") ShortBuffer value) { nindices(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHandTrackingMeshFB set( - int type, - long next, - int jointCapacityInput, - int jointCountOutput, - @Nullable XrPosef.Buffer jointBindPoses, - @Nullable FloatBuffer jointRadii, - @Nullable IntBuffer jointParents, - int vertexCapacityInput, - int vertexCountOutput, - @Nullable XrVector3f.Buffer vertexPositions, - @Nullable XrVector3f.Buffer vertexNormals, - @Nullable XrVector2f.Buffer vertexUVs, - @Nullable XrVector4sFB.Buffer vertexBlendIndices, - @Nullable XrVector4f.Buffer vertexBlendWeights, - int indexCapacityInput, - int indexCountOutput, + int type, + long next, + int jointCapacityInput, + int jointCountOutput, + @Nullable XrPosef.Buffer jointBindPoses, + @Nullable FloatBuffer jointRadii, + @Nullable IntBuffer jointParents, + int vertexCapacityInput, + int vertexCountOutput, + @Nullable XrVector3f.Buffer vertexPositions, + @Nullable XrVector3f.Buffer vertexNormals, + @Nullable XrVector2f.Buffer vertexUVs, + @Nullable XrVector4sFB.Buffer vertexBlendIndices, + @Nullable XrVector4f.Buffer vertexBlendWeights, + int indexCapacityInput, + int indexCountOutput, @Nullable ShortBuffer indices - ) { - type(type); - next(next); - jointCapacityInput(jointCapacityInput); - jointCountOutput(jointCountOutput); - jointBindPoses(jointBindPoses); - jointRadii(jointRadii); - jointParents(jointParents); - vertexCapacityInput(vertexCapacityInput); - vertexCountOutput(vertexCountOutput); - vertexPositions(vertexPositions); - vertexNormals(vertexNormals); - vertexUVs(vertexUVs); - vertexBlendIndices(vertexBlendIndices); - vertexBlendWeights(vertexBlendWeights); - indexCapacityInput(indexCapacityInput); - indexCountOutput(indexCountOutput); - indices(indices); + ) { + type(type); + next(next); + jointCapacityInput(jointCapacityInput); + jointCountOutput(jointCountOutput); + jointBindPoses(jointBindPoses); + jointRadii(jointRadii); + jointParents(jointParents); + vertexCapacityInput(vertexCapacityInput); + vertexCountOutput(vertexCountOutput); + vertexPositions(vertexPositions); + vertexNormals(vertexNormals); + vertexUVs(vertexUVs); + vertexBlendIndices(vertexBlendIndices); + vertexBlendWeights(vertexBlendWeights); + indexCapacityInput(indexCapacityInput); + indexCountOutput(indexCountOutput); + indices(indices); return this; } @@ -424,78 +424,78 @@ public static XrHandTrackingMeshFB.Buffer calloc(int capacity, MemoryStack stack } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHandTrackingMeshFB.NEXT); } - /** Unsafe version of {@link #jointCapacityInput}. */ - public static int njointCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.JOINTCAPACITYINPUT); } - /** Unsafe version of {@link #jointCountOutput}. */ - public static int njointCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.JOINTCOUNTOUTPUT); } - /** Unsafe version of {@link #jointBindPoses}. */ - @Nullable public static XrPosef.Buffer njointBindPoses(long struct) { return XrPosef.createSafe(memGetAddress(struct + XrHandTrackingMeshFB.JOINTBINDPOSES), njointCapacityInput(struct)); } - /** Unsafe version of {@link #jointRadii() jointRadii}. */ - @Nullable public static FloatBuffer njointRadii(long struct) { return memFloatBufferSafe(memGetAddress(struct + XrHandTrackingMeshFB.JOINTRADII), njointCapacityInput(struct)); } - /** Unsafe version of {@link #jointParents() jointParents}. */ - @Nullable public static IntBuffer njointParents(long struct) { return memIntBufferSafe(memGetAddress(struct + XrHandTrackingMeshFB.JOINTPARENTS), njointCapacityInput(struct)); } - /** Unsafe version of {@link #vertexCapacityInput}. */ - public static int nvertexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.VERTEXCAPACITYINPUT); } - /** Unsafe version of {@link #vertexCountOutput}. */ - public static int nvertexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.VERTEXCOUNTOUTPUT); } - /** Unsafe version of {@link #vertexPositions}. */ - @Nullable public static XrVector3f.Buffer nvertexPositions(long struct) { return XrVector3f.createSafe(memGetAddress(struct + XrHandTrackingMeshFB.VERTEXPOSITIONS), nvertexCapacityInput(struct)); } - /** Unsafe version of {@link #vertexNormals}. */ - @Nullable public static XrVector3f.Buffer nvertexNormals(long struct) { return XrVector3f.createSafe(memGetAddress(struct + XrHandTrackingMeshFB.VERTEXNORMALS), nvertexCapacityInput(struct)); } - /** Unsafe version of {@link #vertexUVs}. */ - @Nullable public static XrVector2f.Buffer nvertexUVs(long struct) { return XrVector2f.createSafe(memGetAddress(struct + XrHandTrackingMeshFB.VERTEXUVS), nvertexCapacityInput(struct)); } - /** Unsafe version of {@link #vertexBlendIndices}. */ - @Nullable public static XrVector4sFB.Buffer nvertexBlendIndices(long struct) { return XrVector4sFB.createSafe(memGetAddress(struct + XrHandTrackingMeshFB.VERTEXBLENDINDICES), nvertexCapacityInput(struct)); } - /** Unsafe version of {@link #vertexBlendWeights}. */ - @Nullable public static XrVector4f.Buffer nvertexBlendWeights(long struct) { return XrVector4f.createSafe(memGetAddress(struct + XrHandTrackingMeshFB.VERTEXBLENDWEIGHTS), nvertexCapacityInput(struct)); } - /** Unsafe version of {@link #indexCapacityInput}. */ - public static int nindexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.INDEXCAPACITYINPUT); } - /** Unsafe version of {@link #indexCountOutput}. */ - public static int nindexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.INDEXCOUNTOUTPUT); } - /** Unsafe version of {@link #indices() indices}. */ - @Nullable public static ShortBuffer nindices(long struct) { return memShortBufferSafe(memGetAddress(struct + XrHandTrackingMeshFB.INDICES), nindexCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHandTrackingMeshFB.NEXT, value); } - /** Sets the specified value to the {@code jointCapacityInput} field of the specified {@code struct}. */ - public static void njointCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.JOINTCAPACITYINPUT, value); } - /** Unsafe version of {@link #jointCountOutput(int) jointCountOutput}. */ - public static void njointCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.JOINTCOUNTOUTPUT, value); } - /** Unsafe version of {@link #jointBindPoses(XrPosef.Buffer) jointBindPoses}. */ - public static void njointBindPoses(long struct, @Nullable XrPosef.Buffer value) { memPutAddress(struct + XrHandTrackingMeshFB.JOINTBINDPOSES, memAddressSafe(value)); } - /** Unsafe version of {@link #jointRadii(FloatBuffer) jointRadii}. */ - public static void njointRadii(long struct, @Nullable FloatBuffer value) { memPutAddress(struct + XrHandTrackingMeshFB.JOINTRADII, memAddressSafe(value)); } - /** Unsafe version of {@link #jointParents(IntBuffer) jointParents}. */ - public static void njointParents(long struct, @Nullable IntBuffer value) { memPutAddress(struct + XrHandTrackingMeshFB.JOINTPARENTS, memAddressSafe(value)); } - /** Sets the specified value to the {@code vertexCapacityInput} field of the specified {@code struct}. */ - public static void nvertexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.VERTEXCAPACITYINPUT, value); } - /** Unsafe version of {@link #vertexCountOutput(int) vertexCountOutput}. */ - public static void nvertexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.VERTEXCOUNTOUTPUT, value); } - /** Unsafe version of {@link #vertexPositions(XrVector3f.Buffer) vertexPositions}. */ - public static void nvertexPositions(long struct, @Nullable XrVector3f.Buffer value) { memPutAddress(struct + XrHandTrackingMeshFB.VERTEXPOSITIONS, memAddressSafe(value)); } - /** Unsafe version of {@link #vertexNormals(XrVector3f.Buffer) vertexNormals}. */ - public static void nvertexNormals(long struct, @Nullable XrVector3f.Buffer value) { memPutAddress(struct + XrHandTrackingMeshFB.VERTEXNORMALS, memAddressSafe(value)); } - /** Unsafe version of {@link #vertexUVs(XrVector2f.Buffer) vertexUVs}. */ - public static void nvertexUVs(long struct, @Nullable XrVector2f.Buffer value) { memPutAddress(struct + XrHandTrackingMeshFB.VERTEXUVS, memAddressSafe(value)); } - /** Unsafe version of {@link #vertexBlendIndices(XrVector4sFB.Buffer) vertexBlendIndices}. */ - public static void nvertexBlendIndices(long struct, @Nullable XrVector4sFB.Buffer value) { memPutAddress(struct + XrHandTrackingMeshFB.VERTEXBLENDINDICES, memAddressSafe(value)); } - /** Unsafe version of {@link #vertexBlendWeights(XrVector4f.Buffer) vertexBlendWeights}. */ - public static void nvertexBlendWeights(long struct, @Nullable XrVector4f.Buffer value) { memPutAddress(struct + XrHandTrackingMeshFB.VERTEXBLENDWEIGHTS, memAddressSafe(value)); } - /** Sets the specified value to the {@code indexCapacityInput} field of the specified {@code struct}. */ - public static void nindexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.INDEXCAPACITYINPUT, value); } - /** Unsafe version of {@link #indexCountOutput(int) indexCountOutput}. */ - public static void nindexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.INDEXCOUNTOUTPUT, value); } - /** Unsafe version of {@link #indices(ShortBuffer) indices}. */ - public static void nindices(long struct, @Nullable ShortBuffer value) { memPutAddress(struct + XrHandTrackingMeshFB.INDICES, memAddressSafe(value)); if (value != null) { nindexCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHandTrackingMeshFB.NEXT); } + /** Unsafe version of {@link #jointCapacityInput}. */ + public static int njointCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.JOINTCAPACITYINPUT); } + /** Unsafe version of {@link #jointCountOutput}. */ + public static int njointCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.JOINTCOUNTOUTPUT); } + /** Unsafe version of {@link #jointBindPoses}. */ + @Nullable public static XrPosef.Buffer njointBindPoses(long struct) { return XrPosef.createSafe(memGetAddress(struct + XrHandTrackingMeshFB.JOINTBINDPOSES), njointCapacityInput(struct)); } + /** Unsafe version of {@link #jointRadii() jointRadii}. */ + @Nullable public static FloatBuffer njointRadii(long struct) { return memFloatBufferSafe(memGetAddress(struct + XrHandTrackingMeshFB.JOINTRADII), njointCapacityInput(struct)); } + /** Unsafe version of {@link #jointParents() jointParents}. */ + @Nullable public static IntBuffer njointParents(long struct) { return memIntBufferSafe(memGetAddress(struct + XrHandTrackingMeshFB.JOINTPARENTS), njointCapacityInput(struct)); } + /** Unsafe version of {@link #vertexCapacityInput}. */ + public static int nvertexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.VERTEXCAPACITYINPUT); } + /** Unsafe version of {@link #vertexCountOutput}. */ + public static int nvertexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.VERTEXCOUNTOUTPUT); } + /** Unsafe version of {@link #vertexPositions}. */ + @Nullable public static XrVector3f.Buffer nvertexPositions(long struct) { return XrVector3f.createSafe(memGetAddress(struct + XrHandTrackingMeshFB.VERTEXPOSITIONS), nvertexCapacityInput(struct)); } + /** Unsafe version of {@link #vertexNormals}. */ + @Nullable public static XrVector3f.Buffer nvertexNormals(long struct) { return XrVector3f.createSafe(memGetAddress(struct + XrHandTrackingMeshFB.VERTEXNORMALS), nvertexCapacityInput(struct)); } + /** Unsafe version of {@link #vertexUVs}. */ + @Nullable public static XrVector2f.Buffer nvertexUVs(long struct) { return XrVector2f.createSafe(memGetAddress(struct + XrHandTrackingMeshFB.VERTEXUVS), nvertexCapacityInput(struct)); } + /** Unsafe version of {@link #vertexBlendIndices}. */ + @Nullable public static XrVector4sFB.Buffer nvertexBlendIndices(long struct) { return XrVector4sFB.createSafe(memGetAddress(struct + XrHandTrackingMeshFB.VERTEXBLENDINDICES), nvertexCapacityInput(struct)); } + /** Unsafe version of {@link #vertexBlendWeights}. */ + @Nullable public static XrVector4f.Buffer nvertexBlendWeights(long struct) { return XrVector4f.createSafe(memGetAddress(struct + XrHandTrackingMeshFB.VERTEXBLENDWEIGHTS), nvertexCapacityInput(struct)); } + /** Unsafe version of {@link #indexCapacityInput}. */ + public static int nindexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.INDEXCAPACITYINPUT); } + /** Unsafe version of {@link #indexCountOutput}. */ + public static int nindexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingMeshFB.INDEXCOUNTOUTPUT); } + /** Unsafe version of {@link #indices() indices}. */ + @Nullable public static ShortBuffer nindices(long struct) { return memShortBufferSafe(memGetAddress(struct + XrHandTrackingMeshFB.INDICES), nindexCapacityInput(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHandTrackingMeshFB.NEXT, value); } + /** Sets the specified value to the {@code jointCapacityInput} field of the specified {@code struct}. */ + public static void njointCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.JOINTCAPACITYINPUT, value); } + /** Unsafe version of {@link #jointCountOutput(int) jointCountOutput}. */ + public static void njointCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.JOINTCOUNTOUTPUT, value); } + /** Unsafe version of {@link #jointBindPoses(XrPosef.Buffer) jointBindPoses}. */ + public static void njointBindPoses(long struct, @Nullable XrPosef.Buffer value) { memPutAddress(struct + XrHandTrackingMeshFB.JOINTBINDPOSES, memAddressSafe(value)); } + /** Unsafe version of {@link #jointRadii(FloatBuffer) jointRadii}. */ + public static void njointRadii(long struct, @Nullable FloatBuffer value) { memPutAddress(struct + XrHandTrackingMeshFB.JOINTRADII, memAddressSafe(value)); } + /** Unsafe version of {@link #jointParents(IntBuffer) jointParents}. */ + public static void njointParents(long struct, @Nullable IntBuffer value) { memPutAddress(struct + XrHandTrackingMeshFB.JOINTPARENTS, memAddressSafe(value)); } + /** Sets the specified value to the {@code vertexCapacityInput} field of the specified {@code struct}. */ + public static void nvertexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.VERTEXCAPACITYINPUT, value); } + /** Unsafe version of {@link #vertexCountOutput(int) vertexCountOutput}. */ + public static void nvertexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.VERTEXCOUNTOUTPUT, value); } + /** Unsafe version of {@link #vertexPositions(XrVector3f.Buffer) vertexPositions}. */ + public static void nvertexPositions(long struct, @Nullable XrVector3f.Buffer value) { memPutAddress(struct + XrHandTrackingMeshFB.VERTEXPOSITIONS, memAddressSafe(value)); } + /** Unsafe version of {@link #vertexNormals(XrVector3f.Buffer) vertexNormals}. */ + public static void nvertexNormals(long struct, @Nullable XrVector3f.Buffer value) { memPutAddress(struct + XrHandTrackingMeshFB.VERTEXNORMALS, memAddressSafe(value)); } + /** Unsafe version of {@link #vertexUVs(XrVector2f.Buffer) vertexUVs}. */ + public static void nvertexUVs(long struct, @Nullable XrVector2f.Buffer value) { memPutAddress(struct + XrHandTrackingMeshFB.VERTEXUVS, memAddressSafe(value)); } + /** Unsafe version of {@link #vertexBlendIndices(XrVector4sFB.Buffer) vertexBlendIndices}. */ + public static void nvertexBlendIndices(long struct, @Nullable XrVector4sFB.Buffer value) { memPutAddress(struct + XrHandTrackingMeshFB.VERTEXBLENDINDICES, memAddressSafe(value)); } + /** Unsafe version of {@link #vertexBlendWeights(XrVector4f.Buffer) vertexBlendWeights}. */ + public static void nvertexBlendWeights(long struct, @Nullable XrVector4f.Buffer value) { memPutAddress(struct + XrHandTrackingMeshFB.VERTEXBLENDWEIGHTS, memAddressSafe(value)); } + /** Sets the specified value to the {@code indexCapacityInput} field of the specified {@code struct}. */ + public static void nindexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.INDEXCAPACITYINPUT, value); } + /** Unsafe version of {@link #indexCountOutput(int) indexCountOutput}. */ + public static void nindexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingMeshFB.INDEXCOUNTOUTPUT, value); } + /** Unsafe version of {@link #indices(ShortBuffer) indices}. */ + public static void nindices(long struct, @Nullable ShortBuffer value) { memPutAddress(struct + XrHandTrackingMeshFB.INDICES, memAddressSafe(value)); if (value != null) { nindexCapacityInput(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrHandTrackingMeshFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -532,104 +532,104 @@ protected Buffer self() { protected XrHandTrackingMeshFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandTrackingMeshFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHandTrackingMeshFB.ntype(address()); } - /** @return the value of the {@link XrHandTrackingMeshFB#next} field. */ - @NativeType("void *") - public long next() { return XrHandTrackingMeshFB.nnext(address()); } - /** @return the value of the {@link XrHandTrackingMeshFB#jointCapacityInput} field. */ - @NativeType("uint32_t") - public int jointCapacityInput() { return XrHandTrackingMeshFB.njointCapacityInput(address()); } - /** @return the value of the {@link XrHandTrackingMeshFB#jointCountOutput} field. */ - @NativeType("uint32_t") - public int jointCountOutput() { return XrHandTrackingMeshFB.njointCountOutput(address()); } - /** @return a {@link XrPosef.Buffer} view of the struct array pointed to by the {@link XrHandTrackingMeshFB#jointBindPoses} field. */ - @Nullable - @NativeType("XrPosef *") - public XrPosef.Buffer jointBindPoses() { return XrHandTrackingMeshFB.njointBindPoses(address()); } - /** @return a {@link FloatBuffer} view of the data pointed to by the {@link XrHandTrackingMeshFB#jointRadii} field. */ - @Nullable - @NativeType("float *") - public FloatBuffer jointRadii() { return XrHandTrackingMeshFB.njointRadii(address()); } - /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrHandTrackingMeshFB#jointParents} field. */ - @Nullable - @NativeType("XrHandJointEXT *") - public IntBuffer jointParents() { return XrHandTrackingMeshFB.njointParents(address()); } - /** @return the value of the {@link XrHandTrackingMeshFB#vertexCapacityInput} field. */ - @NativeType("uint32_t") - public int vertexCapacityInput() { return XrHandTrackingMeshFB.nvertexCapacityInput(address()); } - /** @return the value of the {@link XrHandTrackingMeshFB#vertexCountOutput} field. */ - @NativeType("uint32_t") - public int vertexCountOutput() { return XrHandTrackingMeshFB.nvertexCountOutput(address()); } - /** @return a {@link XrVector3f.Buffer} view of the struct array pointed to by the {@link XrHandTrackingMeshFB#vertexPositions} field. */ - @Nullable - @NativeType("XrVector3f *") - public XrVector3f.Buffer vertexPositions() { return XrHandTrackingMeshFB.nvertexPositions(address()); } - /** @return a {@link XrVector3f.Buffer} view of the struct array pointed to by the {@link XrHandTrackingMeshFB#vertexNormals} field. */ - @Nullable - @NativeType("XrVector3f *") - public XrVector3f.Buffer vertexNormals() { return XrHandTrackingMeshFB.nvertexNormals(address()); } - /** @return a {@link XrVector2f.Buffer} view of the struct array pointed to by the {@link XrHandTrackingMeshFB#vertexUVs} field. */ - @Nullable - @NativeType("XrVector2f *") - public XrVector2f.Buffer vertexUVs() { return XrHandTrackingMeshFB.nvertexUVs(address()); } - /** @return a {@link XrVector4sFB.Buffer} view of the struct array pointed to by the {@link XrHandTrackingMeshFB#vertexBlendIndices} field. */ - @Nullable - @NativeType("XrVector4sFB *") - public XrVector4sFB.Buffer vertexBlendIndices() { return XrHandTrackingMeshFB.nvertexBlendIndices(address()); } - /** @return a {@link XrVector4f.Buffer} view of the struct array pointed to by the {@link XrHandTrackingMeshFB#vertexBlendWeights} field. */ - @Nullable - @NativeType("XrVector4f *") - public XrVector4f.Buffer vertexBlendWeights() { return XrHandTrackingMeshFB.nvertexBlendWeights(address()); } - /** @return the value of the {@link XrHandTrackingMeshFB#indexCapacityInput} field. */ - @NativeType("uint32_t") - public int indexCapacityInput() { return XrHandTrackingMeshFB.nindexCapacityInput(address()); } - /** @return the value of the {@link XrHandTrackingMeshFB#indexCountOutput} field. */ - @NativeType("uint32_t") - public int indexCountOutput() { return XrHandTrackingMeshFB.nindexCountOutput(address()); } - /** @return a {@link ShortBuffer} view of the data pointed to by the {@link XrHandTrackingMeshFB#indices} field. */ - @Nullable - @NativeType("int16_t *") - public ShortBuffer indices() { return XrHandTrackingMeshFB.nindices(address()); } - - /** Sets the specified value to the {@link XrHandTrackingMeshFB#type} field. */ - public XrHandTrackingMeshFB.Buffer type(@NativeType("XrStructureType") int value) { XrHandTrackingMeshFB.ntype(address(), value); return this; } - /** Sets the {@link FBHandTrackingMesh#XR_TYPE_HAND_TRACKING_MESH_FB TYPE_HAND_TRACKING_MESH_FB} value to the {@link XrHandTrackingMeshFB#type} field. */ - public XrHandTrackingMeshFB.Buffer type$Default() { return type(FBHandTrackingMesh.XR_TYPE_HAND_TRACKING_MESH_FB); } - /** Sets the specified value to the {@link XrHandTrackingMeshFB#next} field. */ - public XrHandTrackingMeshFB.Buffer next(@NativeType("void *") long value) { XrHandTrackingMeshFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrHandTrackingMeshFB#jointCapacityInput} field. */ - public XrHandTrackingMeshFB.Buffer jointCapacityInput(@NativeType("uint32_t") int value) { XrHandTrackingMeshFB.njointCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrHandTrackingMeshFB#jointCountOutput} field. */ - public XrHandTrackingMeshFB.Buffer jointCountOutput(@NativeType("uint32_t") int value) { XrHandTrackingMeshFB.njointCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrPosef.Buffer} to the {@link XrHandTrackingMeshFB#jointBindPoses} field. */ - public XrHandTrackingMeshFB.Buffer jointBindPoses(@Nullable @NativeType("XrPosef *") XrPosef.Buffer value) { XrHandTrackingMeshFB.njointBindPoses(address(), value); return this; } - /** Sets the address of the specified {@link FloatBuffer} to the {@link XrHandTrackingMeshFB#jointRadii} field. */ - public XrHandTrackingMeshFB.Buffer jointRadii(@Nullable @NativeType("float *") FloatBuffer value) { XrHandTrackingMeshFB.njointRadii(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link XrHandTrackingMeshFB#jointParents} field. */ - public XrHandTrackingMeshFB.Buffer jointParents(@Nullable @NativeType("XrHandJointEXT *") IntBuffer value) { XrHandTrackingMeshFB.njointParents(address(), value); return this; } - /** Sets the specified value to the {@link XrHandTrackingMeshFB#vertexCapacityInput} field. */ - public XrHandTrackingMeshFB.Buffer vertexCapacityInput(@NativeType("uint32_t") int value) { XrHandTrackingMeshFB.nvertexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrHandTrackingMeshFB#vertexCountOutput} field. */ - public XrHandTrackingMeshFB.Buffer vertexCountOutput(@NativeType("uint32_t") int value) { XrHandTrackingMeshFB.nvertexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link XrHandTrackingMeshFB#vertexPositions} field. */ - public XrHandTrackingMeshFB.Buffer vertexPositions(@Nullable @NativeType("XrVector3f *") XrVector3f.Buffer value) { XrHandTrackingMeshFB.nvertexPositions(address(), value); return this; } - /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link XrHandTrackingMeshFB#vertexNormals} field. */ - public XrHandTrackingMeshFB.Buffer vertexNormals(@Nullable @NativeType("XrVector3f *") XrVector3f.Buffer value) { XrHandTrackingMeshFB.nvertexNormals(address(), value); return this; } - /** Sets the address of the specified {@link XrVector2f.Buffer} to the {@link XrHandTrackingMeshFB#vertexUVs} field. */ - public XrHandTrackingMeshFB.Buffer vertexUVs(@Nullable @NativeType("XrVector2f *") XrVector2f.Buffer value) { XrHandTrackingMeshFB.nvertexUVs(address(), value); return this; } - /** Sets the address of the specified {@link XrVector4sFB.Buffer} to the {@link XrHandTrackingMeshFB#vertexBlendIndices} field. */ - public XrHandTrackingMeshFB.Buffer vertexBlendIndices(@Nullable @NativeType("XrVector4sFB *") XrVector4sFB.Buffer value) { XrHandTrackingMeshFB.nvertexBlendIndices(address(), value); return this; } - /** Sets the address of the specified {@link XrVector4f.Buffer} to the {@link XrHandTrackingMeshFB#vertexBlendWeights} field. */ - public XrHandTrackingMeshFB.Buffer vertexBlendWeights(@Nullable @NativeType("XrVector4f *") XrVector4f.Buffer value) { XrHandTrackingMeshFB.nvertexBlendWeights(address(), value); return this; } - /** Sets the specified value to the {@link XrHandTrackingMeshFB#indexCapacityInput} field. */ - public XrHandTrackingMeshFB.Buffer indexCapacityInput(@NativeType("uint32_t") int value) { XrHandTrackingMeshFB.nindexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrHandTrackingMeshFB#indexCountOutput} field. */ - public XrHandTrackingMeshFB.Buffer indexCountOutput(@NativeType("uint32_t") int value) { XrHandTrackingMeshFB.nindexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link ShortBuffer} to the {@link XrHandTrackingMeshFB#indices} field. */ - public XrHandTrackingMeshFB.Buffer indices(@Nullable @NativeType("int16_t *") ShortBuffer value) { XrHandTrackingMeshFB.nindices(address(), value); return this; } + + /** @return the value of the {@link XrHandTrackingMeshFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHandTrackingMeshFB.ntype(address()); } + /** @return the value of the {@link XrHandTrackingMeshFB#next} field. */ + @NativeType("void *") + public long next() { return XrHandTrackingMeshFB.nnext(address()); } + /** @return the value of the {@link XrHandTrackingMeshFB#jointCapacityInput} field. */ + @NativeType("uint32_t") + public int jointCapacityInput() { return XrHandTrackingMeshFB.njointCapacityInput(address()); } + /** @return the value of the {@link XrHandTrackingMeshFB#jointCountOutput} field. */ + @NativeType("uint32_t") + public int jointCountOutput() { return XrHandTrackingMeshFB.njointCountOutput(address()); } + /** @return a {@link XrPosef.Buffer} view of the struct array pointed to by the {@link XrHandTrackingMeshFB#jointBindPoses} field. */ + @Nullable + @NativeType("XrPosef *") + public XrPosef.Buffer jointBindPoses() { return XrHandTrackingMeshFB.njointBindPoses(address()); } + /** @return a {@link FloatBuffer} view of the data pointed to by the {@link XrHandTrackingMeshFB#jointRadii} field. */ + @Nullable + @NativeType("float *") + public FloatBuffer jointRadii() { return XrHandTrackingMeshFB.njointRadii(address()); } + /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrHandTrackingMeshFB#jointParents} field. */ + @Nullable + @NativeType("XrHandJointEXT *") + public IntBuffer jointParents() { return XrHandTrackingMeshFB.njointParents(address()); } + /** @return the value of the {@link XrHandTrackingMeshFB#vertexCapacityInput} field. */ + @NativeType("uint32_t") + public int vertexCapacityInput() { return XrHandTrackingMeshFB.nvertexCapacityInput(address()); } + /** @return the value of the {@link XrHandTrackingMeshFB#vertexCountOutput} field. */ + @NativeType("uint32_t") + public int vertexCountOutput() { return XrHandTrackingMeshFB.nvertexCountOutput(address()); } + /** @return a {@link XrVector3f.Buffer} view of the struct array pointed to by the {@link XrHandTrackingMeshFB#vertexPositions} field. */ + @Nullable + @NativeType("XrVector3f *") + public XrVector3f.Buffer vertexPositions() { return XrHandTrackingMeshFB.nvertexPositions(address()); } + /** @return a {@link XrVector3f.Buffer} view of the struct array pointed to by the {@link XrHandTrackingMeshFB#vertexNormals} field. */ + @Nullable + @NativeType("XrVector3f *") + public XrVector3f.Buffer vertexNormals() { return XrHandTrackingMeshFB.nvertexNormals(address()); } + /** @return a {@link XrVector2f.Buffer} view of the struct array pointed to by the {@link XrHandTrackingMeshFB#vertexUVs} field. */ + @Nullable + @NativeType("XrVector2f *") + public XrVector2f.Buffer vertexUVs() { return XrHandTrackingMeshFB.nvertexUVs(address()); } + /** @return a {@link XrVector4sFB.Buffer} view of the struct array pointed to by the {@link XrHandTrackingMeshFB#vertexBlendIndices} field. */ + @Nullable + @NativeType("XrVector4sFB *") + public XrVector4sFB.Buffer vertexBlendIndices() { return XrHandTrackingMeshFB.nvertexBlendIndices(address()); } + /** @return a {@link XrVector4f.Buffer} view of the struct array pointed to by the {@link XrHandTrackingMeshFB#vertexBlendWeights} field. */ + @Nullable + @NativeType("XrVector4f *") + public XrVector4f.Buffer vertexBlendWeights() { return XrHandTrackingMeshFB.nvertexBlendWeights(address()); } + /** @return the value of the {@link XrHandTrackingMeshFB#indexCapacityInput} field. */ + @NativeType("uint32_t") + public int indexCapacityInput() { return XrHandTrackingMeshFB.nindexCapacityInput(address()); } + /** @return the value of the {@link XrHandTrackingMeshFB#indexCountOutput} field. */ + @NativeType("uint32_t") + public int indexCountOutput() { return XrHandTrackingMeshFB.nindexCountOutput(address()); } + /** @return a {@link ShortBuffer} view of the data pointed to by the {@link XrHandTrackingMeshFB#indices} field. */ + @Nullable + @NativeType("int16_t *") + public ShortBuffer indices() { return XrHandTrackingMeshFB.nindices(address()); } + + /** Sets the specified value to the {@link XrHandTrackingMeshFB#type} field. */ + public XrHandTrackingMeshFB.Buffer type(@NativeType("XrStructureType") int value) { XrHandTrackingMeshFB.ntype(address(), value); return this; } + /** Sets the {@link FBHandTrackingMesh#XR_TYPE_HAND_TRACKING_MESH_FB TYPE_HAND_TRACKING_MESH_FB} value to the {@link XrHandTrackingMeshFB#type} field. */ + public XrHandTrackingMeshFB.Buffer type$Default() { return type(FBHandTrackingMesh.XR_TYPE_HAND_TRACKING_MESH_FB); } + /** Sets the specified value to the {@link XrHandTrackingMeshFB#next} field. */ + public XrHandTrackingMeshFB.Buffer next(@NativeType("void *") long value) { XrHandTrackingMeshFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrHandTrackingMeshFB#jointCapacityInput} field. */ + public XrHandTrackingMeshFB.Buffer jointCapacityInput(@NativeType("uint32_t") int value) { XrHandTrackingMeshFB.njointCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrHandTrackingMeshFB#jointCountOutput} field. */ + public XrHandTrackingMeshFB.Buffer jointCountOutput(@NativeType("uint32_t") int value) { XrHandTrackingMeshFB.njointCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrPosef.Buffer} to the {@link XrHandTrackingMeshFB#jointBindPoses} field. */ + public XrHandTrackingMeshFB.Buffer jointBindPoses(@Nullable @NativeType("XrPosef *") XrPosef.Buffer value) { XrHandTrackingMeshFB.njointBindPoses(address(), value); return this; } + /** Sets the address of the specified {@link FloatBuffer} to the {@link XrHandTrackingMeshFB#jointRadii} field. */ + public XrHandTrackingMeshFB.Buffer jointRadii(@Nullable @NativeType("float *") FloatBuffer value) { XrHandTrackingMeshFB.njointRadii(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link XrHandTrackingMeshFB#jointParents} field. */ + public XrHandTrackingMeshFB.Buffer jointParents(@Nullable @NativeType("XrHandJointEXT *") IntBuffer value) { XrHandTrackingMeshFB.njointParents(address(), value); return this; } + /** Sets the specified value to the {@link XrHandTrackingMeshFB#vertexCapacityInput} field. */ + public XrHandTrackingMeshFB.Buffer vertexCapacityInput(@NativeType("uint32_t") int value) { XrHandTrackingMeshFB.nvertexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrHandTrackingMeshFB#vertexCountOutput} field. */ + public XrHandTrackingMeshFB.Buffer vertexCountOutput(@NativeType("uint32_t") int value) { XrHandTrackingMeshFB.nvertexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link XrHandTrackingMeshFB#vertexPositions} field. */ + public XrHandTrackingMeshFB.Buffer vertexPositions(@Nullable @NativeType("XrVector3f *") XrVector3f.Buffer value) { XrHandTrackingMeshFB.nvertexPositions(address(), value); return this; } + /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link XrHandTrackingMeshFB#vertexNormals} field. */ + public XrHandTrackingMeshFB.Buffer vertexNormals(@Nullable @NativeType("XrVector3f *") XrVector3f.Buffer value) { XrHandTrackingMeshFB.nvertexNormals(address(), value); return this; } + /** Sets the address of the specified {@link XrVector2f.Buffer} to the {@link XrHandTrackingMeshFB#vertexUVs} field. */ + public XrHandTrackingMeshFB.Buffer vertexUVs(@Nullable @NativeType("XrVector2f *") XrVector2f.Buffer value) { XrHandTrackingMeshFB.nvertexUVs(address(), value); return this; } + /** Sets the address of the specified {@link XrVector4sFB.Buffer} to the {@link XrHandTrackingMeshFB#vertexBlendIndices} field. */ + public XrHandTrackingMeshFB.Buffer vertexBlendIndices(@Nullable @NativeType("XrVector4sFB *") XrVector4sFB.Buffer value) { XrHandTrackingMeshFB.nvertexBlendIndices(address(), value); return this; } + /** Sets the address of the specified {@link XrVector4f.Buffer} to the {@link XrHandTrackingMeshFB#vertexBlendWeights} field. */ + public XrHandTrackingMeshFB.Buffer vertexBlendWeights(@Nullable @NativeType("XrVector4f *") XrVector4f.Buffer value) { XrHandTrackingMeshFB.nvertexBlendWeights(address(), value); return this; } + /** Sets the specified value to the {@link XrHandTrackingMeshFB#indexCapacityInput} field. */ + public XrHandTrackingMeshFB.Buffer indexCapacityInput(@NativeType("uint32_t") int value) { XrHandTrackingMeshFB.nindexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrHandTrackingMeshFB#indexCountOutput} field. */ + public XrHandTrackingMeshFB.Buffer indexCountOutput(@NativeType("uint32_t") int value) { XrHandTrackingMeshFB.nindexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link ShortBuffer} to the {@link XrHandTrackingMeshFB#indices} field. */ + public XrHandTrackingMeshFB.Buffer indices(@Nullable @NativeType("int16_t *") ShortBuffer value) { XrHandTrackingMeshFB.nindices(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingScaleFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingScaleFB.java index 2635d585f5..3938d4c257 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingScaleFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHandTrackingScaleFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The information to query and modify hand joint overall scale. * @@ -23,7 +23,7 @@ *
                                              *
                                            • The {@link FBHandTrackingMesh XR_FB_hand_tracking_mesh} extension must be enabled prior to using {@link XrHandTrackingScaleFB}
                                            • *
                                            • {@code type} must be {@link FBHandTrackingMesh#XR_TYPE_HAND_TRACKING_SCALE_FB TYPE_HAND_TRACKING_SCALE_FB}
                                            • - *
                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                            • + *
                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                            • *
                                            * *

                                            Layout

                                            @@ -37,8 +37,8 @@ * XrBool32 {@link #overrideHandScale}; * float {@link #overrideValueInput}; * } - */ -public class XrHandTrackingScaleFB extends Struct implements NativeResource { + */ +public class XrHandTrackingScaleFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,33 +48,33 @@ public class XrHandTrackingScaleFB extends Struct impleme /** The struct member offsets. */ public static final int - TYPE, - NEXT, - SENSOROUTPUT, - CURRENTOUTPUT, - OVERRIDEHANDSCALE, - OVERRIDEVALUEINPUT; + TYPE, + NEXT, + SENSOROUTPUT, + CURRENTOUTPUT, + OVERRIDEHANDSCALE, + OVERRIDEVALUEINPUT; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - SENSOROUTPUT = layout.offsetof(2); - CURRENTOUTPUT = layout.offsetof(3); - OVERRIDEHANDSCALE = layout.offsetof(4); - OVERRIDEVALUEINPUT = layout.offsetof(5); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + SENSOROUTPUT = layout.offsetof(2); + CURRENTOUTPUT = layout.offsetof(3); + OVERRIDEHANDSCALE = layout.offsetof(4); + OVERRIDEVALUEINPUT = layout.offsetof(5); + } protected XrHandTrackingScaleFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -97,37 +97,37 @@ public XrHandTrackingScaleFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** an output value: the currently measured scale as would be applied without passing this structure. */ - public float sensorOutput() { return nsensorOutput(address()); } - /** an output value: the effective output that the bind skeleton is getting on the current call, which may be subject to filtering, scaling, or validation. */ - public float currentOutput() { return ncurrentOutput(address()); } - /** indicates whether the runtime should scale the output of this {@link EXTHandTracking#xrLocateHandJointsEXT LocateHandJointsEXT} call according to {@code overrideValueInput} */ - @NativeType("XrBool32") - public boolean overrideHandScale() { return noverrideHandScale(address()) != 0; } - /** an optional input value, enabled only when the {@code overrideHandScale} parameter is set. Setting this to 1.0 and setting {@code overrideHandScale} to {@code true} will give the joints in mesh binding scale. */ - public float overrideValueInput() { return noverrideValueInput(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrHandTrackingScaleFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBHandTrackingMesh#XR_TYPE_HAND_TRACKING_SCALE_FB TYPE_HAND_TRACKING_SCALE_FB} value to the {@link #type} field. */ - public XrHandTrackingScaleFB type$Default() { return type(FBHandTrackingMesh.XR_TYPE_HAND_TRACKING_SCALE_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrHandTrackingScaleFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** an output value: the currently measured scale as would be applied without passing this structure. */ + public float sensorOutput() { return nsensorOutput(address()); } + /** an output value: the effective output that the bind skeleton is getting on the current call, which may be subject to filtering, scaling, or validation. */ + public float currentOutput() { return ncurrentOutput(address()); } + /** indicates whether the runtime should scale the output of this {@link EXTHandTracking#xrLocateHandJointsEXT LocateHandJointsEXT} call according to {@code overrideValueInput} */ + @NativeType("XrBool32") + public boolean overrideHandScale() { return noverrideHandScale(address()) != 0; } + /** an optional input value, enabled only when the {@code overrideHandScale} parameter is set. Setting this to 1.0 and setting {@code overrideHandScale} to {@code true} will give the joints in mesh binding scale. */ + public float overrideValueInput() { return noverrideValueInput(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHandTrackingScaleFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBHandTrackingMesh#XR_TYPE_HAND_TRACKING_SCALE_FB TYPE_HAND_TRACKING_SCALE_FB} value to the {@link #type} field. */ + public XrHandTrackingScaleFB type$Default() { return type(FBHandTrackingMesh.XR_TYPE_HAND_TRACKING_SCALE_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrHandTrackingScaleFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHandTrackingScaleFB set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -256,26 +256,26 @@ public static XrHandTrackingScaleFB.Buffer calloc(int capacity, MemoryStack stac } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingScaleFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHandTrackingScaleFB.NEXT); } - /** Unsafe version of {@link #sensorOutput}. */ - public static float nsensorOutput(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingScaleFB.SENSOROUTPUT); } - /** Unsafe version of {@link #currentOutput}. */ - public static float ncurrentOutput(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingScaleFB.CURRENTOUTPUT); } - /** Unsafe version of {@link #overrideHandScale}. */ - public static int noverrideHandScale(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingScaleFB.OVERRIDEHANDSCALE); } - /** Unsafe version of {@link #overrideValueInput}. */ - public static float noverrideValueInput(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingScaleFB.OVERRIDEVALUEINPUT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingScaleFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHandTrackingScaleFB.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingScaleFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHandTrackingScaleFB.NEXT); } + /** Unsafe version of {@link #sensorOutput}. */ + public static float nsensorOutput(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingScaleFB.SENSOROUTPUT); } + /** Unsafe version of {@link #currentOutput}. */ + public static float ncurrentOutput(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingScaleFB.CURRENTOUTPUT); } + /** Unsafe version of {@link #overrideHandScale}. */ + public static int noverrideHandScale(long struct) { return UNSAFE.getInt(null, struct + XrHandTrackingScaleFB.OVERRIDEHANDSCALE); } + /** Unsafe version of {@link #overrideValueInput}. */ + public static float noverrideValueInput(long struct) { return UNSAFE.getFloat(null, struct + XrHandTrackingScaleFB.OVERRIDEVALUEINPUT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHandTrackingScaleFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHandTrackingScaleFB.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrHandTrackingScaleFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -312,29 +312,29 @@ protected Buffer self() { protected XrHandTrackingScaleFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHandTrackingScaleFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHandTrackingScaleFB.ntype(address()); } - /** @return the value of the {@link XrHandTrackingScaleFB#next} field. */ - @NativeType("void *") - public long next() { return XrHandTrackingScaleFB.nnext(address()); } - /** @return the value of the {@link XrHandTrackingScaleFB#sensorOutput} field. */ - public float sensorOutput() { return XrHandTrackingScaleFB.nsensorOutput(address()); } - /** @return the value of the {@link XrHandTrackingScaleFB#currentOutput} field. */ - public float currentOutput() { return XrHandTrackingScaleFB.ncurrentOutput(address()); } - /** @return the value of the {@link XrHandTrackingScaleFB#overrideHandScale} field. */ - @NativeType("XrBool32") - public boolean overrideHandScale() { return XrHandTrackingScaleFB.noverrideHandScale(address()) != 0; } - /** @return the value of the {@link XrHandTrackingScaleFB#overrideValueInput} field. */ - public float overrideValueInput() { return XrHandTrackingScaleFB.noverrideValueInput(address()); } - - /** Sets the specified value to the {@link XrHandTrackingScaleFB#type} field. */ - public XrHandTrackingScaleFB.Buffer type(@NativeType("XrStructureType") int value) { XrHandTrackingScaleFB.ntype(address(), value); return this; } - /** Sets the {@link FBHandTrackingMesh#XR_TYPE_HAND_TRACKING_SCALE_FB TYPE_HAND_TRACKING_SCALE_FB} value to the {@link XrHandTrackingScaleFB#type} field. */ - public XrHandTrackingScaleFB.Buffer type$Default() { return type(FBHandTrackingMesh.XR_TYPE_HAND_TRACKING_SCALE_FB); } - /** Sets the specified value to the {@link XrHandTrackingScaleFB#next} field. */ - public XrHandTrackingScaleFB.Buffer next(@NativeType("void *") long value) { XrHandTrackingScaleFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrHandTrackingScaleFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHandTrackingScaleFB.ntype(address()); } + /** @return the value of the {@link XrHandTrackingScaleFB#next} field. */ + @NativeType("void *") + public long next() { return XrHandTrackingScaleFB.nnext(address()); } + /** @return the value of the {@link XrHandTrackingScaleFB#sensorOutput} field. */ + public float sensorOutput() { return XrHandTrackingScaleFB.nsensorOutput(address()); } + /** @return the value of the {@link XrHandTrackingScaleFB#currentOutput} field. */ + public float currentOutput() { return XrHandTrackingScaleFB.ncurrentOutput(address()); } + /** @return the value of the {@link XrHandTrackingScaleFB#overrideHandScale} field. */ + @NativeType("XrBool32") + public boolean overrideHandScale() { return XrHandTrackingScaleFB.noverrideHandScale(address()) != 0; } + /** @return the value of the {@link XrHandTrackingScaleFB#overrideValueInput} field. */ + public float overrideValueInput() { return XrHandTrackingScaleFB.noverrideValueInput(address()); } + + /** Sets the specified value to the {@link XrHandTrackingScaleFB#type} field. */ + public XrHandTrackingScaleFB.Buffer type(@NativeType("XrStructureType") int value) { XrHandTrackingScaleFB.ntype(address(), value); return this; } + /** Sets the {@link FBHandTrackingMesh#XR_TYPE_HAND_TRACKING_SCALE_FB TYPE_HAND_TRACKING_SCALE_FB} value to the {@link XrHandTrackingScaleFB#type} field. */ + public XrHandTrackingScaleFB.Buffer type$Default() { return type(FBHandTrackingMesh.XR_TYPE_HAND_TRACKING_SCALE_FB); } + /** Sets the specified value to the {@link XrHandTrackingScaleFB#next} field. */ + public XrHandTrackingScaleFB.Buffer next(@NativeType("void *") long value) { XrHandTrackingScaleFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticActionInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticActionInfo.java index 4d68490a30..f5db115d13 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticActionInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticActionInfo.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Information to output haptic feedback. * @@ -27,7 +27,7 @@ * * * @@ -44,8 +44,8 @@ * XrAction {@link #action}; * XrPath {@link #subactionPath}; * } - */ -public class XrHapticActionInfo extends Struct implements NativeResource { + */ +public class XrHapticActionInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,27 +55,27 @@ public class XrHapticActionInfo extends Struct implements Na /** The struct member offsets. */ public static final int - TYPE, - NEXT, - ACTION, - SUBACTIONPATH; + TYPE, + NEXT, + ACTION, + SUBACTIONPATH; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - ACTION = layout.offsetof(2); - SUBACTIONPATH = layout.offsetof(3); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + ACTION = layout.offsetof(2); + SUBACTIONPATH = layout.offsetof(3); + } protected XrHapticActionInfo(long address, @Nullable ByteBuffer container) { super(address, container); @@ -98,42 +98,42 @@ public XrHapticActionInfo(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** the {@code XrAction} handle for the desired output haptic action. */ - @NativeType("XrAction") - public long action() { return naction(address()); } - /** the subaction path {@code XrPath} of the device to send the haptic event to, or {@link XR10#XR_NULL_PATH NULL_PATH} to specify all subaction paths. If the subaction path is specified, it is one of the subaction paths that were specified when the action was created. If the subaction path was not specified when the action was created, the runtime must return {@link XR10#XR_ERROR_PATH_UNSUPPORTED ERROR_PATH_UNSUPPORTED}. If this parameter is specified, the runtime must trigger the haptic events only on the device from the subaction path. */ - @NativeType("XrPath") - public long subactionPath() { return nsubactionPath(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrHapticActionInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_HAPTIC_ACTION_INFO TYPE_HAPTIC_ACTION_INFO} value to the {@link #type} field. */ - public XrHapticActionInfo type$Default() { return type(XR10.XR_TYPE_HAPTIC_ACTION_INFO); } - /** Sets the specified value to the {@link #next} field. */ - public XrHapticActionInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #action} field. */ - public XrHapticActionInfo action(XrAction value) { naction(address(), value); return this; } - /** Sets the specified value to the {@link #subactionPath} field. */ - public XrHapticActionInfo subactionPath(@NativeType("XrPath") long value) { nsubactionPath(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the {@code XrAction} handle for the desired output haptic action. */ + @NativeType("XrAction") + public long action() { return naction(address()); } + /** the subaction path {@code XrPath} of the device to send the haptic event to, or {@link XR10#XR_NULL_PATH NULL_PATH} to specify all subaction paths. If the subaction path is specified, it is one of the subaction paths that were specified when the action was created. If the subaction path was not specified when the action was created, the runtime must return {@link XR10#XR_ERROR_PATH_UNSUPPORTED ERROR_PATH_UNSUPPORTED}. If this parameter is specified, the runtime must trigger the haptic events only on the device from the subaction path. */ + @NativeType("XrPath") + public long subactionPath() { return nsubactionPath(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHapticActionInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_HAPTIC_ACTION_INFO TYPE_HAPTIC_ACTION_INFO} value to the {@link #type} field. */ + public XrHapticActionInfo type$Default() { return type(XR10.XR_TYPE_HAPTIC_ACTION_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrHapticActionInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #action} field. */ + public XrHapticActionInfo action(XrAction value) { naction(address(), value); return this; } + /** Sets the specified value to the {@link #subactionPath} field. */ + public XrHapticActionInfo subactionPath(@NativeType("XrPath") long value) { nsubactionPath(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHapticActionInfo set( - int type, - long next, - XrAction action, + int type, + long next, + XrAction action, long subactionPath - ) { - type(type); - next(next); - action(action); - subactionPath(subactionPath); + ) { + type(type); + next(next); + action(action); + subactionPath(subactionPath); return this; } @@ -262,24 +262,24 @@ public static XrHapticActionInfo.Buffer calloc(int capacity, MemoryStack stack) } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHapticActionInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHapticActionInfo.NEXT); } - /** Unsafe version of {@link #action}. */ - public static long naction(long struct) { return memGetAddress(struct + XrHapticActionInfo.ACTION); } - /** Unsafe version of {@link #subactionPath}. */ - public static long nsubactionPath(long struct) { return UNSAFE.getLong(null, struct + XrHapticActionInfo.SUBACTIONPATH); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHapticActionInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHapticActionInfo.NEXT, value); } - /** Unsafe version of {@link #action(XrAction) action}. */ - public static void naction(long struct, XrAction value) { memPutAddress(struct + XrHapticActionInfo.ACTION, value.address()); } - /** Unsafe version of {@link #subactionPath(long) subactionPath}. */ - public static void nsubactionPath(long struct, long value) { UNSAFE.putLong(null, struct + XrHapticActionInfo.SUBACTIONPATH, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHapticActionInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHapticActionInfo.NEXT); } + /** Unsafe version of {@link #action}. */ + public static long naction(long struct) { return memGetAddress(struct + XrHapticActionInfo.ACTION); } + /** Unsafe version of {@link #subactionPath}. */ + public static long nsubactionPath(long struct) { return UNSAFE.getLong(null, struct + XrHapticActionInfo.SUBACTIONPATH); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHapticActionInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHapticActionInfo.NEXT, value); } + /** Unsafe version of {@link #action(XrAction) action}. */ + public static void naction(long struct, XrAction value) { memPutAddress(struct + XrHapticActionInfo.ACTION, value.address()); } + /** Unsafe version of {@link #subactionPath(long) subactionPath}. */ + public static void nsubactionPath(long struct, long value) { UNSAFE.putLong(null, struct + XrHapticActionInfo.SUBACTIONPATH, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -288,9 +288,9 @@ public static XrHapticActionInfo.Buffer calloc(int capacity, MemoryStack stack) */ public static void validate(long struct) { check(memGetAddress(struct + XrHapticActionInfo.ACTION)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrHapticActionInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -327,30 +327,30 @@ protected Buffer self() { protected XrHapticActionInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHapticActionInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHapticActionInfo.ntype(address()); } - /** @return the value of the {@link XrHapticActionInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrHapticActionInfo.nnext(address()); } - /** @return the value of the {@link XrHapticActionInfo#action} field. */ - @NativeType("XrAction") - public long action() { return XrHapticActionInfo.naction(address()); } - /** @return the value of the {@link XrHapticActionInfo#subactionPath} field. */ - @NativeType("XrPath") - public long subactionPath() { return XrHapticActionInfo.nsubactionPath(address()); } - - /** Sets the specified value to the {@link XrHapticActionInfo#type} field. */ - public XrHapticActionInfo.Buffer type(@NativeType("XrStructureType") int value) { XrHapticActionInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_HAPTIC_ACTION_INFO TYPE_HAPTIC_ACTION_INFO} value to the {@link XrHapticActionInfo#type} field. */ - public XrHapticActionInfo.Buffer type$Default() { return type(XR10.XR_TYPE_HAPTIC_ACTION_INFO); } - /** Sets the specified value to the {@link XrHapticActionInfo#next} field. */ - public XrHapticActionInfo.Buffer next(@NativeType("void const *") long value) { XrHapticActionInfo.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrHapticActionInfo#action} field. */ - public XrHapticActionInfo.Buffer action(XrAction value) { XrHapticActionInfo.naction(address(), value); return this; } - /** Sets the specified value to the {@link XrHapticActionInfo#subactionPath} field. */ - public XrHapticActionInfo.Buffer subactionPath(@NativeType("XrPath") long value) { XrHapticActionInfo.nsubactionPath(address(), value); return this; } + + /** @return the value of the {@link XrHapticActionInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHapticActionInfo.ntype(address()); } + /** @return the value of the {@link XrHapticActionInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrHapticActionInfo.nnext(address()); } + /** @return the value of the {@link XrHapticActionInfo#action} field. */ + @NativeType("XrAction") + public long action() { return XrHapticActionInfo.naction(address()); } + /** @return the value of the {@link XrHapticActionInfo#subactionPath} field. */ + @NativeType("XrPath") + public long subactionPath() { return XrHapticActionInfo.nsubactionPath(address()); } + + /** Sets the specified value to the {@link XrHapticActionInfo#type} field. */ + public XrHapticActionInfo.Buffer type(@NativeType("XrStructureType") int value) { XrHapticActionInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_HAPTIC_ACTION_INFO TYPE_HAPTIC_ACTION_INFO} value to the {@link XrHapticActionInfo#type} field. */ + public XrHapticActionInfo.Buffer type$Default() { return type(XR10.XR_TYPE_HAPTIC_ACTION_INFO); } + /** Sets the specified value to the {@link XrHapticActionInfo#next} field. */ + public XrHapticActionInfo.Buffer next(@NativeType("void const *") long value) { XrHapticActionInfo.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrHapticActionInfo#action} field. */ + public XrHapticActionInfo.Buffer action(XrAction value) { XrHapticActionInfo.naction(address(), value); return this; } + /** Sets the specified value to the {@link XrHapticActionInfo#subactionPath} field. */ + public XrHapticActionInfo.Buffer subactionPath(@NativeType("XrPath") long value) { XrHapticActionInfo.nsubactionPath(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticAmplitudeEnvelopeVibrationFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticAmplitudeEnvelopeVibrationFB.java index 9b6bcfc512..aedb108461 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticAmplitudeEnvelopeVibrationFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticAmplitudeEnvelopeVibrationFB.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Haptic Effect Description. * @@ -24,7 +24,7 @@ *
                                              *
                                            • {@code type} is the {@code XrStructureType} of this structure.
                                            • *
                                            • {@code next} is {@code NULL} or a pointer to the next structure in a structure chain.
                                            • - *
                                            • {@code duration} is the duration of the haptic effect in nanoseconds. See duration for more details.
                                            • + *
                                            • {@code duration} is the duration of the haptic effect in nanoseconds. See duration for more details.
                                            • *
                                            • {@code amplitudeCount} is the number of samples in the buffer.
                                            • *
                                            • {@code amplitudes} is the pointer to a float array that contains the samples.
                                            • *
                                            @@ -36,7 +36,7 @@ *
                                              *
                                            • The {@link FBHapticAmplitudeEnvelope XR_FB_haptic_amplitude_envelope} extension must be enabled prior to using {@link XrHapticAmplitudeEnvelopeVibrationFB}
                                            • *
                                            • {@code type} must be {@link FBHapticAmplitudeEnvelope#XR_TYPE_HAPTIC_AMPLITUDE_ENVELOPE_VIBRATION_FB TYPE_HAPTIC_AMPLITUDE_ENVELOPE_VIBRATION_FB}
                                            • - *
                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                            • + *
                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                            • *
                                            • {@code amplitudes} must be a pointer to an array of {@code amplitudeCount} {@code float} values
                                            • *
                                            • The {@code amplitudeCount} parameter must be greater than 0
                                            • *
                                            @@ -51,8 +51,8 @@ * uint32_t amplitudeCount; * float const * amplitudes; * } - */ -public class XrHapticAmplitudeEnvelopeVibrationFB extends Struct implements NativeResource { + */ +public class XrHapticAmplitudeEnvelopeVibrationFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -62,30 +62,30 @@ public class XrHapticAmplitudeEnvelopeVibrationFB extends Struct implements NativeResource { @@ -354,33 +354,33 @@ protected Buffer self() { protected XrHapticAmplitudeEnvelopeVibrationFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHapticAmplitudeEnvelopeVibrationFB.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrHapticAmplitudeEnvelopeVibrationFB.nnext(address()); } - /** @return the value of the {@code duration} field. */ - @NativeType("XrDuration") - public long duration() { return XrHapticAmplitudeEnvelopeVibrationFB.nduration(address()); } - /** @return the value of the {@code amplitudeCount} field. */ - @NativeType("uint32_t") - public int amplitudeCount() { return XrHapticAmplitudeEnvelopeVibrationFB.namplitudeCount(address()); } - /** @return a {@link FloatBuffer} view of the data pointed to by the {@code amplitudes} field. */ - @NativeType("float const *") - public FloatBuffer amplitudes() { return XrHapticAmplitudeEnvelopeVibrationFB.namplitudes(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrHapticAmplitudeEnvelopeVibrationFB.Buffer type(@NativeType("XrStructureType") int value) { XrHapticAmplitudeEnvelopeVibrationFB.ntype(address(), value); return this; } - /** Sets the {@link FBHapticAmplitudeEnvelope#XR_TYPE_HAPTIC_AMPLITUDE_ENVELOPE_VIBRATION_FB TYPE_HAPTIC_AMPLITUDE_ENVELOPE_VIBRATION_FB} value to the {@code type} field. */ - public XrHapticAmplitudeEnvelopeVibrationFB.Buffer type$Default() { return type(FBHapticAmplitudeEnvelope.XR_TYPE_HAPTIC_AMPLITUDE_ENVELOPE_VIBRATION_FB); } - /** Sets the specified value to the {@code next} field. */ - public XrHapticAmplitudeEnvelopeVibrationFB.Buffer next(@NativeType("void const *") long value) { XrHapticAmplitudeEnvelopeVibrationFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@code duration} field. */ - public XrHapticAmplitudeEnvelopeVibrationFB.Buffer duration(@NativeType("XrDuration") long value) { XrHapticAmplitudeEnvelopeVibrationFB.nduration(address(), value); return this; } - /** Sets the address of the specified {@link FloatBuffer} to the {@code amplitudes} field. */ - public XrHapticAmplitudeEnvelopeVibrationFB.Buffer amplitudes(@NativeType("float const *") FloatBuffer value) { XrHapticAmplitudeEnvelopeVibrationFB.namplitudes(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHapticAmplitudeEnvelopeVibrationFB.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrHapticAmplitudeEnvelopeVibrationFB.nnext(address()); } + /** @return the value of the {@code duration} field. */ + @NativeType("XrDuration") + public long duration() { return XrHapticAmplitudeEnvelopeVibrationFB.nduration(address()); } + /** @return the value of the {@code amplitudeCount} field. */ + @NativeType("uint32_t") + public int amplitudeCount() { return XrHapticAmplitudeEnvelopeVibrationFB.namplitudeCount(address()); } + /** @return a {@link FloatBuffer} view of the data pointed to by the {@code amplitudes} field. */ + @NativeType("float const *") + public FloatBuffer amplitudes() { return XrHapticAmplitudeEnvelopeVibrationFB.namplitudes(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrHapticAmplitudeEnvelopeVibrationFB.Buffer type(@NativeType("XrStructureType") int value) { XrHapticAmplitudeEnvelopeVibrationFB.ntype(address(), value); return this; } + /** Sets the {@link FBHapticAmplitudeEnvelope#XR_TYPE_HAPTIC_AMPLITUDE_ENVELOPE_VIBRATION_FB TYPE_HAPTIC_AMPLITUDE_ENVELOPE_VIBRATION_FB} value to the {@code type} field. */ + public XrHapticAmplitudeEnvelopeVibrationFB.Buffer type$Default() { return type(FBHapticAmplitudeEnvelope.XR_TYPE_HAPTIC_AMPLITUDE_ENVELOPE_VIBRATION_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrHapticAmplitudeEnvelopeVibrationFB.Buffer next(@NativeType("void const *") long value) { XrHapticAmplitudeEnvelopeVibrationFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@code duration} field. */ + public XrHapticAmplitudeEnvelopeVibrationFB.Buffer duration(@NativeType("XrDuration") long value) { XrHapticAmplitudeEnvelopeVibrationFB.nduration(address(), value); return this; } + /** Sets the address of the specified {@link FloatBuffer} to the {@code amplitudes} field. */ + public XrHapticAmplitudeEnvelopeVibrationFB.Buffer amplitudes(@NativeType("float const *") FloatBuffer value) { XrHapticAmplitudeEnvelopeVibrationFB.namplitudes(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticBaseHeader.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticBaseHeader.java index e30c868500..76847b5cd2 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticBaseHeader.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticBaseHeader.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Base header for haptic feedback. * @@ -22,7 +22,7 @@ * *
                                              *
                                            • {@code type} must be one of the following XrStructureType values: {@link FBHapticAmplitudeEnvelope#XR_TYPE_HAPTIC_AMPLITUDE_ENVELOPE_VIBRATION_FB TYPE_HAPTIC_AMPLITUDE_ENVELOPE_VIBRATION_FB}, {@link FBHapticPcm#XR_TYPE_HAPTIC_PCM_VIBRATION_FB TYPE_HAPTIC_PCM_VIBRATION_FB}, {@link XR10#XR_TYPE_HAPTIC_VIBRATION TYPE_HAPTIC_VIBRATION}
                                            • - *
                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                            • + *
                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                            • *
                                            * *
                                            See Also
                                            @@ -36,8 +36,8 @@ * XrStructureType {@link #type}; * void const * {@link #next}; * } - */ -public class XrHapticBaseHeader extends Struct implements NativeResource { + */ +public class XrHapticBaseHeader extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -47,21 +47,21 @@ public class XrHapticBaseHeader extends Struct implements Na /** The struct member offsets. */ public static final int - TYPE, - NEXT; + TYPE, + NEXT; static { - Layout layout = __struct( - __member(4), + Layout layout = __struct( + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + } protected XrHapticBaseHeader(long address, @Nullable ByteBuffer container) { super(address, container); @@ -84,26 +84,26 @@ public XrHapticBaseHeader(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. This base structure itself has no associated {@code XrStructureType} value. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrHapticBaseHeader type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the specified value to the {@link #next} field. */ - public XrHapticBaseHeader next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. This base structure itself has no associated {@code XrStructureType} value. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHapticBaseHeader type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the specified value to the {@link #next} field. */ + public XrHapticBaseHeader next(@NativeType("void const *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHapticBaseHeader set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -262,18 +262,18 @@ public static XrHapticBaseHeader.Buffer calloc(int capacity, MemoryStack stack) } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHapticBaseHeader.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHapticBaseHeader.NEXT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHapticBaseHeader.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHapticBaseHeader.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHapticBaseHeader.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHapticBaseHeader.NEXT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHapticBaseHeader.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHapticBaseHeader.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrHapticBaseHeader} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -310,18 +310,18 @@ protected Buffer self() { protected XrHapticBaseHeader getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHapticBaseHeader#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHapticBaseHeader.ntype(address()); } - /** @return the value of the {@link XrHapticBaseHeader#next} field. */ - @NativeType("void const *") - public long next() { return XrHapticBaseHeader.nnext(address()); } - - /** Sets the specified value to the {@link XrHapticBaseHeader#type} field. */ - public XrHapticBaseHeader.Buffer type(@NativeType("XrStructureType") int value) { XrHapticBaseHeader.ntype(address(), value); return this; } - /** Sets the specified value to the {@link XrHapticBaseHeader#next} field. */ - public XrHapticBaseHeader.Buffer next(@NativeType("void const *") long value) { XrHapticBaseHeader.nnext(address(), value); return this; } + + /** @return the value of the {@link XrHapticBaseHeader#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHapticBaseHeader.ntype(address()); } + /** @return the value of the {@link XrHapticBaseHeader#next} field. */ + @NativeType("void const *") + public long next() { return XrHapticBaseHeader.nnext(address()); } + + /** Sets the specified value to the {@link XrHapticBaseHeader#type} field. */ + public XrHapticBaseHeader.Buffer type(@NativeType("XrStructureType") int value) { XrHapticBaseHeader.ntype(address(), value); return this; } + /** Sets the specified value to the {@link XrHapticBaseHeader#next} field. */ + public XrHapticBaseHeader.Buffer next(@NativeType("void const *") long value) { XrHapticBaseHeader.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticPcmVibrationFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticPcmVibrationFB.java index 03dca40bdb..23be758342 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticPcmVibrationFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticPcmVibrationFB.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Haptic Effect Description. * @@ -36,7 +36,7 @@ *
                                              *
                                            • The {@link FBHapticPcm XR_FB_haptic_pcm} extension must be enabled prior to using {@link XrHapticPcmVibrationFB}
                                            • *
                                            • {@code type} must be {@link FBHapticPcm#XR_TYPE_HAPTIC_PCM_VIBRATION_FB TYPE_HAPTIC_PCM_VIBRATION_FB}
                                            • - *
                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                            • + *
                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                            • *
                                            • {@code buffer} must be a pointer to an array of {@code bufferSize} {@code float} values
                                            • *
                                            • {@code samplesConsumed} must be a pointer to a {@code uint32_t} value
                                            • *
                                            • The {@code bufferSize} parameter must be greater than 0
                                            • @@ -54,8 +54,8 @@ * XrBool32 {@link #append}; * uint32_t * {@link #samplesConsumed}; * } - */ -public class XrHapticPcmVibrationFB extends Struct implements NativeResource { + */ +public class XrHapticPcmVibrationFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -65,36 +65,36 @@ public class XrHapticPcmVibrationFB extends Struct imple /** The struct member offsets. */ public static final int - TYPE, - NEXT, - BUFFERSIZE, - BUFFER, - SAMPLERATE, - APPEND, - SAMPLESCONSUMED; + TYPE, + NEXT, + BUFFERSIZE, + BUFFER, + SAMPLERATE, + APPEND, + SAMPLESCONSUMED; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - BUFFERSIZE = layout.offsetof(2); - BUFFER = layout.offsetof(3); - SAMPLERATE = layout.offsetof(4); - APPEND = layout.offsetof(5); - SAMPLESCONSUMED = layout.offsetof(6); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + BUFFERSIZE = layout.offsetof(2); + BUFFER = layout.offsetof(3); + SAMPLERATE = layout.offsetof(4); + APPEND = layout.offsetof(5); + SAMPLESCONSUMED = layout.offsetof(6); + } protected XrHapticPcmVibrationFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -117,62 +117,62 @@ public XrHapticPcmVibrationFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** the number of samples in the buffer. */ - @NativeType("uint32_t") - public int bufferSize() { return nbufferSize(address()); } - /** a pointer to a float array representing the PCM samples. If you consider the haptic effect as a sampled analog audio, then this buffer will contain the samples representing that effect. The values in this buffer are expected to be in the range [-1.0, 1.0]. */ - @NativeType("float const *") - public FloatBuffer buffer() { return nbuffer(address()); } - /** the number of samples to be played per second, this is used to determine the duration of the haptic effect. */ - public float sampleRate() { return nsampleRate(address()); } - /** if set to {@link XR10#XR_FALSE FALSE}, any existing samples will be cleared and a new haptic effect will begin, if {@link XR10#XR_TRUE TRUE}, samples will be appended to the currently playing effect */ - @NativeType("XrBool32") - public boolean append() { return nappend(address()) != 0; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the number of samples in the buffer. */ + @NativeType("uint32_t") + public int bufferSize() { return nbufferSize(address()); } + /** a pointer to a float array representing the PCM samples. If you consider the haptic effect as a sampled analog audio, then this buffer will contain the samples representing that effect. The values in this buffer are expected to be in the range [-1.0, 1.0]. */ + @NativeType("float const *") + public FloatBuffer buffer() { return nbuffer(address()); } + /** the number of samples to be played per second, this is used to determine the duration of the haptic effect. */ + public float sampleRate() { return nsampleRate(address()); } + /** if set to {@link XR10#XR_FALSE FALSE}, any existing samples will be cleared and a new haptic effect will begin, if {@link XR10#XR_TRUE TRUE}, samples will be appended to the currently playing effect */ + @NativeType("XrBool32") + public boolean append() { return nappend(address()) != 0; } /** * @param capacity the number of elements in the returned buffer * * @return a pointer to an unsigned integer; it is populated by runtime, to tell the application about how many samples were consumed from the input {@code buffer} - */ - @NativeType("uint32_t *") - public IntBuffer samplesConsumed(int capacity) { return nsamplesConsumed(address(), capacity); } - - /** Sets the specified value to the {@link #type} field. */ - public XrHapticPcmVibrationFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBHapticPcm#XR_TYPE_HAPTIC_PCM_VIBRATION_FB TYPE_HAPTIC_PCM_VIBRATION_FB} value to the {@link #type} field. */ - public XrHapticPcmVibrationFB type$Default() { return type(FBHapticPcm.XR_TYPE_HAPTIC_PCM_VIBRATION_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrHapticPcmVibrationFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the address of the specified {@link FloatBuffer} to the {@link #buffer} field. */ - public XrHapticPcmVibrationFB buffer(@NativeType("float const *") FloatBuffer value) { nbuffer(address(), value); return this; } - /** Sets the specified value to the {@link #sampleRate} field. */ - public XrHapticPcmVibrationFB sampleRate(float value) { nsampleRate(address(), value); return this; } - /** Sets the specified value to the {@link #append} field. */ - public XrHapticPcmVibrationFB append(@NativeType("XrBool32") boolean value) { nappend(address(), value ? 1 : 0); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link #samplesConsumed} field. */ - public XrHapticPcmVibrationFB samplesConsumed(@NativeType("uint32_t *") IntBuffer value) { nsamplesConsumed(address(), value); return this; } + */ + @NativeType("uint32_t *") + public IntBuffer samplesConsumed(int capacity) { return nsamplesConsumed(address(), capacity); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHapticPcmVibrationFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBHapticPcm#XR_TYPE_HAPTIC_PCM_VIBRATION_FB TYPE_HAPTIC_PCM_VIBRATION_FB} value to the {@link #type} field. */ + public XrHapticPcmVibrationFB type$Default() { return type(FBHapticPcm.XR_TYPE_HAPTIC_PCM_VIBRATION_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrHapticPcmVibrationFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the address of the specified {@link FloatBuffer} to the {@link #buffer} field. */ + public XrHapticPcmVibrationFB buffer(@NativeType("float const *") FloatBuffer value) { nbuffer(address(), value); return this; } + /** Sets the specified value to the {@link #sampleRate} field. */ + public XrHapticPcmVibrationFB sampleRate(float value) { nsampleRate(address(), value); return this; } + /** Sets the specified value to the {@link #append} field. */ + public XrHapticPcmVibrationFB append(@NativeType("XrBool32") boolean value) { nappend(address(), value ? 1 : 0); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link #samplesConsumed} field. */ + public XrHapticPcmVibrationFB samplesConsumed(@NativeType("uint32_t *") IntBuffer value) { nsamplesConsumed(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHapticPcmVibrationFB set( - int type, - long next, - FloatBuffer buffer, - float sampleRate, - boolean append, + int type, + long next, + FloatBuffer buffer, + float sampleRate, + boolean append, IntBuffer samplesConsumed - ) { - type(type); - next(next); - buffer(buffer); - sampleRate(sampleRate); - append(append); - samplesConsumed(samplesConsumed); + ) { + type(type); + next(next); + buffer(buffer); + sampleRate(sampleRate); + append(append); + samplesConsumed(samplesConsumed); return this; } @@ -311,36 +311,36 @@ public static XrHapticPcmVibrationFB.Buffer calloc(int capacity, MemoryStack sta } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHapticPcmVibrationFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHapticPcmVibrationFB.NEXT); } - /** Unsafe version of {@link #bufferSize}. */ - public static int nbufferSize(long struct) { return UNSAFE.getInt(null, struct + XrHapticPcmVibrationFB.BUFFERSIZE); } - /** Unsafe version of {@link #buffer() buffer}. */ - public static FloatBuffer nbuffer(long struct) { return memFloatBuffer(memGetAddress(struct + XrHapticPcmVibrationFB.BUFFER), nbufferSize(struct)); } - /** Unsafe version of {@link #sampleRate}. */ - public static float nsampleRate(long struct) { return UNSAFE.getFloat(null, struct + XrHapticPcmVibrationFB.SAMPLERATE); } - /** Unsafe version of {@link #append}. */ - public static int nappend(long struct) { return UNSAFE.getInt(null, struct + XrHapticPcmVibrationFB.APPEND); } - /** Unsafe version of {@link #samplesConsumed(int) samplesConsumed}. */ - public static IntBuffer nsamplesConsumed(long struct, int capacity) { return memIntBuffer(memGetAddress(struct + XrHapticPcmVibrationFB.SAMPLESCONSUMED), capacity); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHapticPcmVibrationFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHapticPcmVibrationFB.NEXT, value); } - /** Sets the specified value to the {@code bufferSize} field of the specified {@code struct}. */ - public static void nbufferSize(long struct, int value) { UNSAFE.putInt(null, struct + XrHapticPcmVibrationFB.BUFFERSIZE, value); } - /** Unsafe version of {@link #buffer(FloatBuffer) buffer}. */ - public static void nbuffer(long struct, FloatBuffer value) { memPutAddress(struct + XrHapticPcmVibrationFB.BUFFER, memAddress(value)); nbufferSize(struct, value.remaining()); } - /** Unsafe version of {@link #sampleRate(float) sampleRate}. */ - public static void nsampleRate(long struct, float value) { UNSAFE.putFloat(null, struct + XrHapticPcmVibrationFB.SAMPLERATE, value); } - /** Unsafe version of {@link #append(boolean) append}. */ - public static void nappend(long struct, int value) { UNSAFE.putInt(null, struct + XrHapticPcmVibrationFB.APPEND, value); } - /** Unsafe version of {@link #samplesConsumed(IntBuffer) samplesConsumed}. */ - public static void nsamplesConsumed(long struct, IntBuffer value) { memPutAddress(struct + XrHapticPcmVibrationFB.SAMPLESCONSUMED, memAddress(value)); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHapticPcmVibrationFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHapticPcmVibrationFB.NEXT); } + /** Unsafe version of {@link #bufferSize}. */ + public static int nbufferSize(long struct) { return UNSAFE.getInt(null, struct + XrHapticPcmVibrationFB.BUFFERSIZE); } + /** Unsafe version of {@link #buffer() buffer}. */ + public static FloatBuffer nbuffer(long struct) { return memFloatBuffer(memGetAddress(struct + XrHapticPcmVibrationFB.BUFFER), nbufferSize(struct)); } + /** Unsafe version of {@link #sampleRate}. */ + public static float nsampleRate(long struct) { return UNSAFE.getFloat(null, struct + XrHapticPcmVibrationFB.SAMPLERATE); } + /** Unsafe version of {@link #append}. */ + public static int nappend(long struct) { return UNSAFE.getInt(null, struct + XrHapticPcmVibrationFB.APPEND); } + /** Unsafe version of {@link #samplesConsumed(int) samplesConsumed}. */ + public static IntBuffer nsamplesConsumed(long struct, int capacity) { return memIntBuffer(memGetAddress(struct + XrHapticPcmVibrationFB.SAMPLESCONSUMED), capacity); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHapticPcmVibrationFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHapticPcmVibrationFB.NEXT, value); } + /** Sets the specified value to the {@code bufferSize} field of the specified {@code struct}. */ + public static void nbufferSize(long struct, int value) { UNSAFE.putInt(null, struct + XrHapticPcmVibrationFB.BUFFERSIZE, value); } + /** Unsafe version of {@link #buffer(FloatBuffer) buffer}. */ + public static void nbuffer(long struct, FloatBuffer value) { memPutAddress(struct + XrHapticPcmVibrationFB.BUFFER, memAddress(value)); nbufferSize(struct, value.remaining()); } + /** Unsafe version of {@link #sampleRate(float) sampleRate}. */ + public static void nsampleRate(long struct, float value) { UNSAFE.putFloat(null, struct + XrHapticPcmVibrationFB.SAMPLERATE, value); } + /** Unsafe version of {@link #append(boolean) append}. */ + public static void nappend(long struct, int value) { UNSAFE.putInt(null, struct + XrHapticPcmVibrationFB.APPEND, value); } + /** Unsafe version of {@link #samplesConsumed(IntBuffer) samplesConsumed}. */ + public static void nsamplesConsumed(long struct, IntBuffer value) { memPutAddress(struct + XrHapticPcmVibrationFB.SAMPLESCONSUMED, memAddress(value)); } /** * Validates pointer members that should not be {@code NULL}. @@ -350,9 +350,9 @@ public static XrHapticPcmVibrationFB.Buffer calloc(int capacity, MemoryStack sta public static void validate(long struct) { check(memGetAddress(struct + XrHapticPcmVibrationFB.BUFFER)); check(memGetAddress(struct + XrHapticPcmVibrationFB.SAMPLESCONSUMED)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrHapticPcmVibrationFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -389,46 +389,46 @@ protected Buffer self() { protected XrHapticPcmVibrationFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHapticPcmVibrationFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHapticPcmVibrationFB.ntype(address()); } - /** @return the value of the {@link XrHapticPcmVibrationFB#next} field. */ - @NativeType("void const *") - public long next() { return XrHapticPcmVibrationFB.nnext(address()); } - /** @return the value of the {@link XrHapticPcmVibrationFB#bufferSize} field. */ - @NativeType("uint32_t") - public int bufferSize() { return XrHapticPcmVibrationFB.nbufferSize(address()); } - /** @return a {@link FloatBuffer} view of the data pointed to by the {@link XrHapticPcmVibrationFB#buffer} field. */ - @NativeType("float const *") - public FloatBuffer buffer() { return XrHapticPcmVibrationFB.nbuffer(address()); } - /** @return the value of the {@link XrHapticPcmVibrationFB#sampleRate} field. */ - public float sampleRate() { return XrHapticPcmVibrationFB.nsampleRate(address()); } - /** @return the value of the {@link XrHapticPcmVibrationFB#append} field. */ - @NativeType("XrBool32") - public boolean append() { return XrHapticPcmVibrationFB.nappend(address()) != 0; } + + /** @return the value of the {@link XrHapticPcmVibrationFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHapticPcmVibrationFB.ntype(address()); } + /** @return the value of the {@link XrHapticPcmVibrationFB#next} field. */ + @NativeType("void const *") + public long next() { return XrHapticPcmVibrationFB.nnext(address()); } + /** @return the value of the {@link XrHapticPcmVibrationFB#bufferSize} field. */ + @NativeType("uint32_t") + public int bufferSize() { return XrHapticPcmVibrationFB.nbufferSize(address()); } + /** @return a {@link FloatBuffer} view of the data pointed to by the {@link XrHapticPcmVibrationFB#buffer} field. */ + @NativeType("float const *") + public FloatBuffer buffer() { return XrHapticPcmVibrationFB.nbuffer(address()); } + /** @return the value of the {@link XrHapticPcmVibrationFB#sampleRate} field. */ + public float sampleRate() { return XrHapticPcmVibrationFB.nsampleRate(address()); } + /** @return the value of the {@link XrHapticPcmVibrationFB#append} field. */ + @NativeType("XrBool32") + public boolean append() { return XrHapticPcmVibrationFB.nappend(address()) != 0; } /** * @return a {@link IntBuffer} view of the data pointed to by the {@link XrHapticPcmVibrationFB#samplesConsumed} field. * * @param capacity the number of elements in the returned buffer - */ - @NativeType("uint32_t *") - public IntBuffer samplesConsumed(int capacity) { return XrHapticPcmVibrationFB.nsamplesConsumed(address(), capacity); } - - /** Sets the specified value to the {@link XrHapticPcmVibrationFB#type} field. */ - public XrHapticPcmVibrationFB.Buffer type(@NativeType("XrStructureType") int value) { XrHapticPcmVibrationFB.ntype(address(), value); return this; } - /** Sets the {@link FBHapticPcm#XR_TYPE_HAPTIC_PCM_VIBRATION_FB TYPE_HAPTIC_PCM_VIBRATION_FB} value to the {@link XrHapticPcmVibrationFB#type} field. */ - public XrHapticPcmVibrationFB.Buffer type$Default() { return type(FBHapticPcm.XR_TYPE_HAPTIC_PCM_VIBRATION_FB); } - /** Sets the specified value to the {@link XrHapticPcmVibrationFB#next} field. */ - public XrHapticPcmVibrationFB.Buffer next(@NativeType("void const *") long value) { XrHapticPcmVibrationFB.nnext(address(), value); return this; } - /** Sets the address of the specified {@link FloatBuffer} to the {@link XrHapticPcmVibrationFB#buffer} field. */ - public XrHapticPcmVibrationFB.Buffer buffer(@NativeType("float const *") FloatBuffer value) { XrHapticPcmVibrationFB.nbuffer(address(), value); return this; } - /** Sets the specified value to the {@link XrHapticPcmVibrationFB#sampleRate} field. */ - public XrHapticPcmVibrationFB.Buffer sampleRate(float value) { XrHapticPcmVibrationFB.nsampleRate(address(), value); return this; } - /** Sets the specified value to the {@link XrHapticPcmVibrationFB#append} field. */ - public XrHapticPcmVibrationFB.Buffer append(@NativeType("XrBool32") boolean value) { XrHapticPcmVibrationFB.nappend(address(), value ? 1 : 0); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link XrHapticPcmVibrationFB#samplesConsumed} field. */ - public XrHapticPcmVibrationFB.Buffer samplesConsumed(@NativeType("uint32_t *") IntBuffer value) { XrHapticPcmVibrationFB.nsamplesConsumed(address(), value); return this; } + */ + @NativeType("uint32_t *") + public IntBuffer samplesConsumed(int capacity) { return XrHapticPcmVibrationFB.nsamplesConsumed(address(), capacity); } + + /** Sets the specified value to the {@link XrHapticPcmVibrationFB#type} field. */ + public XrHapticPcmVibrationFB.Buffer type(@NativeType("XrStructureType") int value) { XrHapticPcmVibrationFB.ntype(address(), value); return this; } + /** Sets the {@link FBHapticPcm#XR_TYPE_HAPTIC_PCM_VIBRATION_FB TYPE_HAPTIC_PCM_VIBRATION_FB} value to the {@link XrHapticPcmVibrationFB#type} field. */ + public XrHapticPcmVibrationFB.Buffer type$Default() { return type(FBHapticPcm.XR_TYPE_HAPTIC_PCM_VIBRATION_FB); } + /** Sets the specified value to the {@link XrHapticPcmVibrationFB#next} field. */ + public XrHapticPcmVibrationFB.Buffer next(@NativeType("void const *") long value) { XrHapticPcmVibrationFB.nnext(address(), value); return this; } + /** Sets the address of the specified {@link FloatBuffer} to the {@link XrHapticPcmVibrationFB#buffer} field. */ + public XrHapticPcmVibrationFB.Buffer buffer(@NativeType("float const *") FloatBuffer value) { XrHapticPcmVibrationFB.nbuffer(address(), value); return this; } + /** Sets the specified value to the {@link XrHapticPcmVibrationFB#sampleRate} field. */ + public XrHapticPcmVibrationFB.Buffer sampleRate(float value) { XrHapticPcmVibrationFB.nsampleRate(address(), value); return this; } + /** Sets the specified value to the {@link XrHapticPcmVibrationFB#append} field. */ + public XrHapticPcmVibrationFB.Buffer append(@NativeType("XrBool32") boolean value) { XrHapticPcmVibrationFB.nappend(address(), value ? 1 : 0); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link XrHapticPcmVibrationFB#samplesConsumed} field. */ + public XrHapticPcmVibrationFB.Buffer samplesConsumed(@NativeType("uint32_t *") IntBuffer value) { XrHapticPcmVibrationFB.nsamplesConsumed(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticVibration.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticVibration.java index 960ca7bcda..ea0bc1b584 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticVibration.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHapticVibration.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Base header for haptic feedback. * @@ -28,7 +28,7 @@ * * * *
                                              See Also
                                              @@ -45,8 +45,8 @@ * float {@link #frequency}; * float {@link #amplitude}; * } - */ -public class XrHapticVibration extends Struct implements NativeResource { + */ +public class XrHapticVibration extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,30 +56,30 @@ public class XrHapticVibration extends Struct implements Nati /** The struct member offsets. */ public static final int - TYPE, - NEXT, - DURATION, - FREQUENCY, - AMPLITUDE; + TYPE, + NEXT, + DURATION, + FREQUENCY, + AMPLITUDE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - DURATION = layout.offsetof(2); - FREQUENCY = layout.offsetof(3); - AMPLITUDE = layout.offsetof(4); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + DURATION = layout.offsetof(2); + FREQUENCY = layout.offsetof(3); + AMPLITUDE = layout.offsetof(4); + } protected XrHapticVibration(long address, @Nullable ByteBuffer container) { super(address, container); @@ -102,47 +102,47 @@ public XrHapticVibration(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** the number of nanoseconds the vibration should last. If {@link XR10#XR_MIN_HAPTIC_DURATION MIN_HAPTIC_DURATION} is specified, the runtime must produce a short haptics pulse of minimal supported duration for the haptic device. */ - @NativeType("XrDuration") - public long duration() { return nduration(address()); } - /** the frequency of the vibration in Hz. If {@link XR10#XR_FREQUENCY_UNSPECIFIED FREQUENCY_UNSPECIFIED} is specified, it is left to the runtime to decide the optimal frequency value to use. */ - public float frequency() { return nfrequency(address()); } - /** the amplitude of the vibration between 0.0 and 1.0. */ - public float amplitude() { return namplitude(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrHapticVibration type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_HAPTIC_VIBRATION TYPE_HAPTIC_VIBRATION} value to the {@link #type} field. */ - public XrHapticVibration type$Default() { return type(XR10.XR_TYPE_HAPTIC_VIBRATION); } - /** Sets the specified value to the {@link #next} field. */ - public XrHapticVibration next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #duration} field. */ - public XrHapticVibration duration(@NativeType("XrDuration") long value) { nduration(address(), value); return this; } - /** Sets the specified value to the {@link #frequency} field. */ - public XrHapticVibration frequency(float value) { nfrequency(address(), value); return this; } - /** Sets the specified value to the {@link #amplitude} field. */ - public XrHapticVibration amplitude(float value) { namplitude(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the number of nanoseconds the vibration should last. If {@link XR10#XR_MIN_HAPTIC_DURATION MIN_HAPTIC_DURATION} is specified, the runtime must produce a short haptics pulse of minimal supported duration for the haptic device. */ + @NativeType("XrDuration") + public long duration() { return nduration(address()); } + /** the frequency of the vibration in Hz. If {@link XR10#XR_FREQUENCY_UNSPECIFIED FREQUENCY_UNSPECIFIED} is specified, it is left to the runtime to decide the optimal frequency value to use. */ + public float frequency() { return nfrequency(address()); } + /** the amplitude of the vibration between 0.0 and 1.0. */ + public float amplitude() { return namplitude(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrHapticVibration type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_HAPTIC_VIBRATION TYPE_HAPTIC_VIBRATION} value to the {@link #type} field. */ + public XrHapticVibration type$Default() { return type(XR10.XR_TYPE_HAPTIC_VIBRATION); } + /** Sets the specified value to the {@link #next} field. */ + public XrHapticVibration next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #duration} field. */ + public XrHapticVibration duration(@NativeType("XrDuration") long value) { nduration(address(), value); return this; } + /** Sets the specified value to the {@link #frequency} field. */ + public XrHapticVibration frequency(float value) { nfrequency(address(), value); return this; } + /** Sets the specified value to the {@link #amplitude} field. */ + public XrHapticVibration amplitude(float value) { namplitude(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrHapticVibration set( - int type, - long next, - long duration, - float frequency, + int type, + long next, + long duration, + float frequency, float amplitude - ) { - type(type); - next(next); - duration(duration); - frequency(frequency); - amplitude(amplitude); + ) { + type(type); + next(next); + duration(duration); + frequency(frequency); + amplitude(amplitude); return this; } @@ -281,30 +281,30 @@ public static XrHapticVibration.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHapticVibration.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrHapticVibration.NEXT); } - /** Unsafe version of {@link #duration}. */ - public static long nduration(long struct) { return UNSAFE.getLong(null, struct + XrHapticVibration.DURATION); } - /** Unsafe version of {@link #frequency}. */ - public static float nfrequency(long struct) { return UNSAFE.getFloat(null, struct + XrHapticVibration.FREQUENCY); } - /** Unsafe version of {@link #amplitude}. */ - public static float namplitude(long struct) { return UNSAFE.getFloat(null, struct + XrHapticVibration.AMPLITUDE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHapticVibration.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrHapticVibration.NEXT, value); } - /** Unsafe version of {@link #duration(long) duration}. */ - public static void nduration(long struct, long value) { UNSAFE.putLong(null, struct + XrHapticVibration.DURATION, value); } - /** Unsafe version of {@link #frequency(float) frequency}. */ - public static void nfrequency(long struct, float value) { UNSAFE.putFloat(null, struct + XrHapticVibration.FREQUENCY, value); } - /** Unsafe version of {@link #amplitude(float) amplitude}. */ - public static void namplitude(long struct, float value) { UNSAFE.putFloat(null, struct + XrHapticVibration.AMPLITUDE, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrHapticVibration.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrHapticVibration.NEXT); } + /** Unsafe version of {@link #duration}. */ + public static long nduration(long struct) { return UNSAFE.getLong(null, struct + XrHapticVibration.DURATION); } + /** Unsafe version of {@link #frequency}. */ + public static float nfrequency(long struct) { return UNSAFE.getFloat(null, struct + XrHapticVibration.FREQUENCY); } + /** Unsafe version of {@link #amplitude}. */ + public static float namplitude(long struct) { return UNSAFE.getFloat(null, struct + XrHapticVibration.AMPLITUDE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrHapticVibration.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrHapticVibration.NEXT, value); } + /** Unsafe version of {@link #duration(long) duration}. */ + public static void nduration(long struct, long value) { UNSAFE.putLong(null, struct + XrHapticVibration.DURATION, value); } + /** Unsafe version of {@link #frequency(float) frequency}. */ + public static void nfrequency(long struct, float value) { UNSAFE.putFloat(null, struct + XrHapticVibration.FREQUENCY, value); } + /** Unsafe version of {@link #amplitude(float) amplitude}. */ + public static void namplitude(long struct, float value) { UNSAFE.putFloat(null, struct + XrHapticVibration.AMPLITUDE, value); } + + // ----------------------------------- /** An array of {@link XrHapticVibration} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -341,33 +341,33 @@ protected Buffer self() { protected XrHapticVibration getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHapticVibration#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHapticVibration.ntype(address()); } - /** @return the value of the {@link XrHapticVibration#next} field. */ - @NativeType("void const *") - public long next() { return XrHapticVibration.nnext(address()); } - /** @return the value of the {@link XrHapticVibration#duration} field. */ - @NativeType("XrDuration") - public long duration() { return XrHapticVibration.nduration(address()); } - /** @return the value of the {@link XrHapticVibration#frequency} field. */ - public float frequency() { return XrHapticVibration.nfrequency(address()); } - /** @return the value of the {@link XrHapticVibration#amplitude} field. */ - public float amplitude() { return XrHapticVibration.namplitude(address()); } - - /** Sets the specified value to the {@link XrHapticVibration#type} field. */ - public XrHapticVibration.Buffer type(@NativeType("XrStructureType") int value) { XrHapticVibration.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_HAPTIC_VIBRATION TYPE_HAPTIC_VIBRATION} value to the {@link XrHapticVibration#type} field. */ - public XrHapticVibration.Buffer type$Default() { return type(XR10.XR_TYPE_HAPTIC_VIBRATION); } - /** Sets the specified value to the {@link XrHapticVibration#next} field. */ - public XrHapticVibration.Buffer next(@NativeType("void const *") long value) { XrHapticVibration.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrHapticVibration#duration} field. */ - public XrHapticVibration.Buffer duration(@NativeType("XrDuration") long value) { XrHapticVibration.nduration(address(), value); return this; } - /** Sets the specified value to the {@link XrHapticVibration#frequency} field. */ - public XrHapticVibration.Buffer frequency(float value) { XrHapticVibration.nfrequency(address(), value); return this; } - /** Sets the specified value to the {@link XrHapticVibration#amplitude} field. */ - public XrHapticVibration.Buffer amplitude(float value) { XrHapticVibration.namplitude(address(), value); return this; } + + /** @return the value of the {@link XrHapticVibration#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHapticVibration.ntype(address()); } + /** @return the value of the {@link XrHapticVibration#next} field. */ + @NativeType("void const *") + public long next() { return XrHapticVibration.nnext(address()); } + /** @return the value of the {@link XrHapticVibration#duration} field. */ + @NativeType("XrDuration") + public long duration() { return XrHapticVibration.nduration(address()); } + /** @return the value of the {@link XrHapticVibration#frequency} field. */ + public float frequency() { return XrHapticVibration.nfrequency(address()); } + /** @return the value of the {@link XrHapticVibration#amplitude} field. */ + public float amplitude() { return XrHapticVibration.namplitude(address()); } + + /** Sets the specified value to the {@link XrHapticVibration#type} field. */ + public XrHapticVibration.Buffer type(@NativeType("XrStructureType") int value) { XrHapticVibration.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_HAPTIC_VIBRATION TYPE_HAPTIC_VIBRATION} value to the {@link XrHapticVibration#type} field. */ + public XrHapticVibration.Buffer type$Default() { return type(XR10.XR_TYPE_HAPTIC_VIBRATION); } + /** Sets the specified value to the {@link XrHapticVibration#next} field. */ + public XrHapticVibration.Buffer next(@NativeType("void const *") long value) { XrHapticVibration.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrHapticVibration#duration} field. */ + public XrHapticVibration.Buffer duration(@NativeType("XrDuration") long value) { XrHapticVibration.nduration(address(), value); return this; } + /** Sets the specified value to the {@link XrHapticVibration#frequency} field. */ + public XrHapticVibration.Buffer frequency(float value) { XrHapticVibration.nfrequency(address(), value); return this; } + /** Sets the specified value to the {@link XrHapticVibration#amplitude} field. */ + public XrHapticVibration.Buffer amplitude(float value) { XrHapticVibration.namplitude(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHolographicWindowAttachmentMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHolographicWindowAttachmentMSFT.java index b49dd12cd0..c58788c302 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHolographicWindowAttachmentMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrHolographicWindowAttachmentMSFT.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The holographic window binding structure which can be passed at session creation. * @@ -32,7 +32,7 @@ *
                                                *
                                              • The {@link MSFTHolographicWindowAttachment XR_MSFT_holographic_window_attachment} extension must be enabled prior to using {@link XrHolographicWindowAttachmentMSFT}
                                              • *
                                              • {@code type} must be {@link MSFTHolographicWindowAttachment#XR_TYPE_HOLOGRAPHIC_WINDOW_ATTACHMENT_MSFT TYPE_HOLOGRAPHIC_WINDOW_ATTACHMENT_MSFT}
                                              • - *
                                              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                              • + *
                                              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                              • *
                                              • {@code holographicSpace} must be a pointer to an {@code IUnknown} value
                                              • *
                                              • {@code coreWindow} must be a pointer to an {@code IUnknown} value
                                              • *
                                              @@ -50,8 +50,8 @@ * IUnknown * {@link #holographicSpace}; * IUnknown * {@link #coreWindow}; * } - */ -public class XrHolographicWindowAttachmentMSFT extends Struct implements NativeResource { + */ +public class XrHolographicWindowAttachmentMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -61,27 +61,27 @@ public class XrHolographicWindowAttachmentMSFT extends Struct implements NativeResource { @@ -334,30 +334,30 @@ protected Buffer self() { protected XrHolographicWindowAttachmentMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrHolographicWindowAttachmentMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrHolographicWindowAttachmentMSFT.ntype(address()); } - /** @return the value of the {@link XrHolographicWindowAttachmentMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrHolographicWindowAttachmentMSFT.nnext(address()); } - /** @return the value of the {@link XrHolographicWindowAttachmentMSFT#holographicSpace} field. */ - @NativeType("IUnknown *") - public long holographicSpace() { return XrHolographicWindowAttachmentMSFT.nholographicSpace(address()); } - /** @return the value of the {@link XrHolographicWindowAttachmentMSFT#coreWindow} field. */ - @NativeType("IUnknown *") - public long coreWindow() { return XrHolographicWindowAttachmentMSFT.ncoreWindow(address()); } - - /** Sets the specified value to the {@link XrHolographicWindowAttachmentMSFT#type} field. */ - public XrHolographicWindowAttachmentMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrHolographicWindowAttachmentMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTHolographicWindowAttachment#XR_TYPE_HOLOGRAPHIC_WINDOW_ATTACHMENT_MSFT TYPE_HOLOGRAPHIC_WINDOW_ATTACHMENT_MSFT} value to the {@link XrHolographicWindowAttachmentMSFT#type} field. */ - public XrHolographicWindowAttachmentMSFT.Buffer type$Default() { return type(MSFTHolographicWindowAttachment.XR_TYPE_HOLOGRAPHIC_WINDOW_ATTACHMENT_MSFT); } - /** Sets the specified value to the {@link XrHolographicWindowAttachmentMSFT#next} field. */ - public XrHolographicWindowAttachmentMSFT.Buffer next(@NativeType("void const *") long value) { XrHolographicWindowAttachmentMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrHolographicWindowAttachmentMSFT#holographicSpace} field. */ - public XrHolographicWindowAttachmentMSFT.Buffer holographicSpace(@NativeType("IUnknown *") long value) { XrHolographicWindowAttachmentMSFT.nholographicSpace(address(), value); return this; } - /** Sets the specified value to the {@link XrHolographicWindowAttachmentMSFT#coreWindow} field. */ - public XrHolographicWindowAttachmentMSFT.Buffer coreWindow(@NativeType("IUnknown *") long value) { XrHolographicWindowAttachmentMSFT.ncoreWindow(address(), value); return this; } + + /** @return the value of the {@link XrHolographicWindowAttachmentMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrHolographicWindowAttachmentMSFT.ntype(address()); } + /** @return the value of the {@link XrHolographicWindowAttachmentMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrHolographicWindowAttachmentMSFT.nnext(address()); } + /** @return the value of the {@link XrHolographicWindowAttachmentMSFT#holographicSpace} field. */ + @NativeType("IUnknown *") + public long holographicSpace() { return XrHolographicWindowAttachmentMSFT.nholographicSpace(address()); } + /** @return the value of the {@link XrHolographicWindowAttachmentMSFT#coreWindow} field. */ + @NativeType("IUnknown *") + public long coreWindow() { return XrHolographicWindowAttachmentMSFT.ncoreWindow(address()); } + + /** Sets the specified value to the {@link XrHolographicWindowAttachmentMSFT#type} field. */ + public XrHolographicWindowAttachmentMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrHolographicWindowAttachmentMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTHolographicWindowAttachment#XR_TYPE_HOLOGRAPHIC_WINDOW_ATTACHMENT_MSFT TYPE_HOLOGRAPHIC_WINDOW_ATTACHMENT_MSFT} value to the {@link XrHolographicWindowAttachmentMSFT#type} field. */ + public XrHolographicWindowAttachmentMSFT.Buffer type$Default() { return type(MSFTHolographicWindowAttachment.XR_TYPE_HOLOGRAPHIC_WINDOW_ATTACHMENT_MSFT); } + /** Sets the specified value to the {@link XrHolographicWindowAttachmentMSFT#next} field. */ + public XrHolographicWindowAttachmentMSFT.Buffer next(@NativeType("void const *") long value) { XrHolographicWindowAttachmentMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrHolographicWindowAttachmentMSFT#holographicSpace} field. */ + public XrHolographicWindowAttachmentMSFT.Buffer holographicSpace(@NativeType("IUnknown *") long value) { XrHolographicWindowAttachmentMSFT.nholographicSpace(address(), value); return this; } + /** Sets the specified value to the {@link XrHolographicWindowAttachmentMSFT#coreWindow} field. */ + public XrHolographicWindowAttachmentMSFT.Buffer coreWindow(@NativeType("IUnknown *") long value) { XrHolographicWindowAttachmentMSFT.ncoreWindow(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInputSourceLocalizedNameGetInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInputSourceLocalizedNameGetInfo.java index eaee3e1aa2..34abf53125 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInputSourceLocalizedNameGetInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInputSourceLocalizedNameGetInfo.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Information to query the bound input sources for an action. * @@ -26,7 +26,7 @@ * *
                                                *
                                              • {@code type} must be {@link XR10#XR_TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO}
                                              • - *
                                              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                              • + *
                                              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                              • *
                                              • {@code whichComponents} must be a valid combination of {@code XrInputSourceLocalizedNameFlagBits} values
                                              • *
                                              • {@code whichComponents} must not be 0
                                              • *
                                              @@ -44,8 +44,8 @@ * XrPath {@link #sourcePath}; * XrInputSourceLocalizedNameFlags {@link #whichComponents}; * } - */ -public class XrInputSourceLocalizedNameGetInfo extends Struct implements NativeResource { + */ +public class XrInputSourceLocalizedNameGetInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,27 +55,27 @@ public class XrInputSourceLocalizedNameGetInfo extends Struct implements NativeResource { @@ -318,30 +318,30 @@ protected Buffer self() { protected XrInputSourceLocalizedNameGetInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrInputSourceLocalizedNameGetInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrInputSourceLocalizedNameGetInfo.ntype(address()); } - /** @return the value of the {@link XrInputSourceLocalizedNameGetInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrInputSourceLocalizedNameGetInfo.nnext(address()); } - /** @return the value of the {@link XrInputSourceLocalizedNameGetInfo#sourcePath} field. */ - @NativeType("XrPath") - public long sourcePath() { return XrInputSourceLocalizedNameGetInfo.nsourcePath(address()); } - /** @return the value of the {@link XrInputSourceLocalizedNameGetInfo#whichComponents} field. */ - @NativeType("XrInputSourceLocalizedNameFlags") - public long whichComponents() { return XrInputSourceLocalizedNameGetInfo.nwhichComponents(address()); } - - /** Sets the specified value to the {@link XrInputSourceLocalizedNameGetInfo#type} field. */ - public XrInputSourceLocalizedNameGetInfo.Buffer type(@NativeType("XrStructureType") int value) { XrInputSourceLocalizedNameGetInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO} value to the {@link XrInputSourceLocalizedNameGetInfo#type} field. */ - public XrInputSourceLocalizedNameGetInfo.Buffer type$Default() { return type(XR10.XR_TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO); } - /** Sets the specified value to the {@link XrInputSourceLocalizedNameGetInfo#next} field. */ - public XrInputSourceLocalizedNameGetInfo.Buffer next(@NativeType("void const *") long value) { XrInputSourceLocalizedNameGetInfo.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrInputSourceLocalizedNameGetInfo#sourcePath} field. */ - public XrInputSourceLocalizedNameGetInfo.Buffer sourcePath(@NativeType("XrPath") long value) { XrInputSourceLocalizedNameGetInfo.nsourcePath(address(), value); return this; } - /** Sets the specified value to the {@link XrInputSourceLocalizedNameGetInfo#whichComponents} field. */ - public XrInputSourceLocalizedNameGetInfo.Buffer whichComponents(@NativeType("XrInputSourceLocalizedNameFlags") long value) { XrInputSourceLocalizedNameGetInfo.nwhichComponents(address(), value); return this; } + + /** @return the value of the {@link XrInputSourceLocalizedNameGetInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrInputSourceLocalizedNameGetInfo.ntype(address()); } + /** @return the value of the {@link XrInputSourceLocalizedNameGetInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrInputSourceLocalizedNameGetInfo.nnext(address()); } + /** @return the value of the {@link XrInputSourceLocalizedNameGetInfo#sourcePath} field. */ + @NativeType("XrPath") + public long sourcePath() { return XrInputSourceLocalizedNameGetInfo.nsourcePath(address()); } + /** @return the value of the {@link XrInputSourceLocalizedNameGetInfo#whichComponents} field. */ + @NativeType("XrInputSourceLocalizedNameFlags") + public long whichComponents() { return XrInputSourceLocalizedNameGetInfo.nwhichComponents(address()); } + + /** Sets the specified value to the {@link XrInputSourceLocalizedNameGetInfo#type} field. */ + public XrInputSourceLocalizedNameGetInfo.Buffer type(@NativeType("XrStructureType") int value) { XrInputSourceLocalizedNameGetInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO} value to the {@link XrInputSourceLocalizedNameGetInfo#type} field. */ + public XrInputSourceLocalizedNameGetInfo.Buffer type$Default() { return type(XR10.XR_TYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFO); } + /** Sets the specified value to the {@link XrInputSourceLocalizedNameGetInfo#next} field. */ + public XrInputSourceLocalizedNameGetInfo.Buffer next(@NativeType("void const *") long value) { XrInputSourceLocalizedNameGetInfo.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrInputSourceLocalizedNameGetInfo#sourcePath} field. */ + public XrInputSourceLocalizedNameGetInfo.Buffer sourcePath(@NativeType("XrPath") long value) { XrInputSourceLocalizedNameGetInfo.nsourcePath(address(), value); return this; } + /** Sets the specified value to the {@link XrInputSourceLocalizedNameGetInfo#whichComponents} field. */ + public XrInputSourceLocalizedNameGetInfo.Buffer whichComponents(@NativeType("XrInputSourceLocalizedNameFlags") long value) { XrInputSourceLocalizedNameGetInfo.nwhichComponents(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInstanceCreateInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInstanceCreateInfo.java index 9e80b6fc8c..ba26fa1443 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInstanceCreateInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInstanceCreateInfo.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Structure specifying params of a newly created instance. * @@ -23,7 +23,7 @@ * *
                                                *
                                              • {@code type} must be {@link XR10#XR_TYPE_INSTANCE_CREATE_INFO TYPE_INSTANCE_CREATE_INFO}
                                              • - *
                                              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrDebugUtilsMessengerCreateInfoEXT}
                                              • + *
                                              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrDebugUtilsMessengerCreateInfoEXT}, {@link XrInstanceCreateInfoAndroidKHR}
                                              • *
                                              • {@code createFlags} must be 0
                                              • *
                                              • {@code applicationInfo} must be a valid {@link XrApplicationInfo} structure
                                              • *
                                              • If {@code enabledApiLayerCount} is not 0, {@code enabledApiLayerNames} must be a pointer to an array of {@code enabledApiLayerCount} null-terminated UTF-8 strings
                                              • @@ -47,8 +47,8 @@ * uint32_t {@link #enabledExtensionCount}; * char const * const * {@link #enabledExtensionNames}; * } - */ -public class XrInstanceCreateInfo extends Struct implements NativeResource { + */ +public class XrInstanceCreateInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -58,39 +58,39 @@ public class XrInstanceCreateInfo extends Struct implement /** The struct member offsets. */ public static final int - TYPE, - NEXT, - CREATEFLAGS, - APPLICATIONINFO, - ENABLEDAPILAYERCOUNT, - ENABLEDAPILAYERNAMES, - ENABLEDEXTENSIONCOUNT, - ENABLEDEXTENSIONNAMES; + TYPE, + NEXT, + CREATEFLAGS, + APPLICATIONINFO, + ENABLEDAPILAYERCOUNT, + ENABLEDAPILAYERNAMES, + ENABLEDEXTENSIONCOUNT, + ENABLEDEXTENSIONNAMES; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), - __member(XrApplicationInfo.SIZEOF, XrApplicationInfo.ALIGNOF), - __member(4), - __member(POINTER_SIZE), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), + __member(XrApplicationInfo.SIZEOF, XrApplicationInfo.ALIGNOF), + __member(4), + __member(POINTER_SIZE), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - CREATEFLAGS = layout.offsetof(2); - APPLICATIONINFO = layout.offsetof(3); - ENABLEDAPILAYERCOUNT = layout.offsetof(4); - ENABLEDAPILAYERNAMES = layout.offsetof(5); - ENABLEDEXTENSIONCOUNT = layout.offsetof(6); - ENABLEDEXTENSIONNAMES = layout.offsetof(7); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + CREATEFLAGS = layout.offsetof(2); + APPLICATIONINFO = layout.offsetof(3); + ENABLEDAPILAYERCOUNT = layout.offsetof(4); + ENABLEDAPILAYERNAMES = layout.offsetof(5); + ENABLEDEXTENSIONCOUNT = layout.offsetof(6); + ENABLEDEXTENSIONNAMES = layout.offsetof(7); + } protected XrInstanceCreateInfo(long address, @Nullable ByteBuffer container) { super(address, container); @@ -113,67 +113,69 @@ public XrInstanceCreateInfo(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** a bitmask of {@code XrInstanceCreateFlags} that identifies options that apply to the creation. */ - @NativeType("XrInstanceCreateFlags") - public long createFlags() { return ncreateFlags(address()); } - /** an instance of {@link XrApplicationInfo}. This information helps runtimes recognize behavior inherent to classes of applications. {@link XrApplicationInfo} is defined in detail below. */ - public XrApplicationInfo applicationInfo() { return napplicationInfo(address()); } - /** the number of global API layers to enable. */ - @NativeType("uint32_t") - public int enabledApiLayerCount() { return nenabledApiLayerCount(address()); } - /** a pointer to an array of {@code enabledApiLayerCount} strings containing the names of API layers to enable for the created instance. See the API Layers And Extensions section for further details. */ - @Nullable - @NativeType("char const * const *") - public PointerBuffer enabledApiLayerNames() { return nenabledApiLayerNames(address()); } - /** the number of global extensions to enable. */ - @NativeType("uint32_t") - public int enabledExtensionCount() { return nenabledExtensionCount(address()); } - /** a pointer to an array of {@code enabledExtensionCount} strings containing the names of extensions to enable. */ - @Nullable - @NativeType("char const * const *") - public PointerBuffer enabledExtensionNames() { return nenabledExtensionNames(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrInstanceCreateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_INSTANCE_CREATE_INFO TYPE_INSTANCE_CREATE_INFO} value to the {@link #type} field. */ - public XrInstanceCreateInfo type$Default() { return type(XR10.XR_TYPE_INSTANCE_CREATE_INFO); } - /** Sets the specified value to the {@link #next} field. */ - public XrInstanceCreateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrDebugUtilsMessengerCreateInfoEXT} value to the {@code next} chain. */ - public XrInstanceCreateInfo next(XrDebugUtilsMessengerCreateInfoEXT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #createFlags} field. */ - public XrInstanceCreateInfo createFlags(@NativeType("XrInstanceCreateFlags") long value) { ncreateFlags(address(), value); return this; } - /** Copies the specified {@link XrApplicationInfo} to the {@link #applicationInfo} field. */ - public XrInstanceCreateInfo applicationInfo(XrApplicationInfo value) { napplicationInfo(address(), value); return this; } - /** Passes the {@link #applicationInfo} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrInstanceCreateInfo applicationInfo(java.util.function.Consumer consumer) { consumer.accept(applicationInfo()); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@link #enabledApiLayerNames} field. */ - public XrInstanceCreateInfo enabledApiLayerNames(@Nullable @NativeType("char const * const *") PointerBuffer value) { nenabledApiLayerNames(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@link #enabledExtensionNames} field. */ - public XrInstanceCreateInfo enabledExtensionNames(@Nullable @NativeType("char const * const *") PointerBuffer value) { nenabledExtensionNames(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** a bitmask of {@code XrInstanceCreateFlags} that identifies options that apply to the creation. */ + @NativeType("XrInstanceCreateFlags") + public long createFlags() { return ncreateFlags(address()); } + /** an instance of {@link XrApplicationInfo}. This information helps runtimes recognize behavior inherent to classes of applications. {@link XrApplicationInfo} is defined in detail below. */ + public XrApplicationInfo applicationInfo() { return napplicationInfo(address()); } + /** the number of global API layers to enable. */ + @NativeType("uint32_t") + public int enabledApiLayerCount() { return nenabledApiLayerCount(address()); } + /** a pointer to an array of {@code enabledApiLayerCount} strings containing the names of API layers to enable for the created instance. See the API Layers And Extensions section for further details. */ + @Nullable + @NativeType("char const * const *") + public PointerBuffer enabledApiLayerNames() { return nenabledApiLayerNames(address()); } + /** the number of global extensions to enable. */ + @NativeType("uint32_t") + public int enabledExtensionCount() { return nenabledExtensionCount(address()); } + /** a pointer to an array of {@code enabledExtensionCount} strings containing the names of extensions to enable. */ + @Nullable + @NativeType("char const * const *") + public PointerBuffer enabledExtensionNames() { return nenabledExtensionNames(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrInstanceCreateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_INSTANCE_CREATE_INFO TYPE_INSTANCE_CREATE_INFO} value to the {@link #type} field. */ + public XrInstanceCreateInfo type$Default() { return type(XR10.XR_TYPE_INSTANCE_CREATE_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrInstanceCreateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrDebugUtilsMessengerCreateInfoEXT} value to the {@code next} chain. */ + public XrInstanceCreateInfo next(XrDebugUtilsMessengerCreateInfoEXT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrInstanceCreateInfoAndroidKHR} value to the {@code next} chain. */ + public XrInstanceCreateInfo next(XrInstanceCreateInfoAndroidKHR value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #createFlags} field. */ + public XrInstanceCreateInfo createFlags(@NativeType("XrInstanceCreateFlags") long value) { ncreateFlags(address(), value); return this; } + /** Copies the specified {@link XrApplicationInfo} to the {@link #applicationInfo} field. */ + public XrInstanceCreateInfo applicationInfo(XrApplicationInfo value) { napplicationInfo(address(), value); return this; } + /** Passes the {@link #applicationInfo} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrInstanceCreateInfo applicationInfo(java.util.function.Consumer consumer) { consumer.accept(applicationInfo()); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@link #enabledApiLayerNames} field. */ + public XrInstanceCreateInfo enabledApiLayerNames(@Nullable @NativeType("char const * const *") PointerBuffer value) { nenabledApiLayerNames(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@link #enabledExtensionNames} field. */ + public XrInstanceCreateInfo enabledExtensionNames(@Nullable @NativeType("char const * const *") PointerBuffer value) { nenabledExtensionNames(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrInstanceCreateInfo set( - int type, - long next, - long createFlags, - XrApplicationInfo applicationInfo, - @Nullable PointerBuffer enabledApiLayerNames, + int type, + long next, + long createFlags, + XrApplicationInfo applicationInfo, + @Nullable PointerBuffer enabledApiLayerNames, @Nullable PointerBuffer enabledExtensionNames - ) { - type(type); - next(next); - createFlags(createFlags); - applicationInfo(applicationInfo); - enabledApiLayerNames(enabledApiLayerNames); - enabledExtensionNames(enabledExtensionNames); + ) { + type(type); + next(next); + createFlags(createFlags); + applicationInfo(applicationInfo); + enabledApiLayerNames(enabledApiLayerNames); + enabledExtensionNames(enabledExtensionNames); return this; } @@ -302,40 +304,40 @@ public static XrInstanceCreateInfo.Buffer calloc(int capacity, MemoryStack stack } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrInstanceCreateInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrInstanceCreateInfo.NEXT); } - /** Unsafe version of {@link #createFlags}. */ - public static long ncreateFlags(long struct) { return UNSAFE.getLong(null, struct + XrInstanceCreateInfo.CREATEFLAGS); } - /** Unsafe version of {@link #applicationInfo}. */ - public static XrApplicationInfo napplicationInfo(long struct) { return XrApplicationInfo.create(struct + XrInstanceCreateInfo.APPLICATIONINFO); } - /** Unsafe version of {@link #enabledApiLayerCount}. */ - public static int nenabledApiLayerCount(long struct) { return UNSAFE.getInt(null, struct + XrInstanceCreateInfo.ENABLEDAPILAYERCOUNT); } - /** Unsafe version of {@link #enabledApiLayerNames() enabledApiLayerNames}. */ - @Nullable public static PointerBuffer nenabledApiLayerNames(long struct) { return memPointerBufferSafe(memGetAddress(struct + XrInstanceCreateInfo.ENABLEDAPILAYERNAMES), nenabledApiLayerCount(struct)); } - /** Unsafe version of {@link #enabledExtensionCount}. */ - public static int nenabledExtensionCount(long struct) { return UNSAFE.getInt(null, struct + XrInstanceCreateInfo.ENABLEDEXTENSIONCOUNT); } - /** Unsafe version of {@link #enabledExtensionNames() enabledExtensionNames}. */ - @Nullable public static PointerBuffer nenabledExtensionNames(long struct) { return memPointerBufferSafe(memGetAddress(struct + XrInstanceCreateInfo.ENABLEDEXTENSIONNAMES), nenabledExtensionCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrInstanceCreateInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrInstanceCreateInfo.NEXT, value); } - /** Unsafe version of {@link #createFlags(long) createFlags}. */ - public static void ncreateFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrInstanceCreateInfo.CREATEFLAGS, value); } - /** Unsafe version of {@link #applicationInfo(XrApplicationInfo) applicationInfo}. */ - public static void napplicationInfo(long struct, XrApplicationInfo value) { memCopy(value.address(), struct + XrInstanceCreateInfo.APPLICATIONINFO, XrApplicationInfo.SIZEOF); } - /** Sets the specified value to the {@code enabledApiLayerCount} field of the specified {@code struct}. */ - public static void nenabledApiLayerCount(long struct, int value) { UNSAFE.putInt(null, struct + XrInstanceCreateInfo.ENABLEDAPILAYERCOUNT, value); } - /** Unsafe version of {@link #enabledApiLayerNames(PointerBuffer) enabledApiLayerNames}. */ - public static void nenabledApiLayerNames(long struct, @Nullable PointerBuffer value) { memPutAddress(struct + XrInstanceCreateInfo.ENABLEDAPILAYERNAMES, memAddressSafe(value)); nenabledApiLayerCount(struct, value == null ? 0 : value.remaining()); } - /** Sets the specified value to the {@code enabledExtensionCount} field of the specified {@code struct}. */ - public static void nenabledExtensionCount(long struct, int value) { UNSAFE.putInt(null, struct + XrInstanceCreateInfo.ENABLEDEXTENSIONCOUNT, value); } - /** Unsafe version of {@link #enabledExtensionNames(PointerBuffer) enabledExtensionNames}. */ - public static void nenabledExtensionNames(long struct, @Nullable PointerBuffer value) { memPutAddress(struct + XrInstanceCreateInfo.ENABLEDEXTENSIONNAMES, memAddressSafe(value)); nenabledExtensionCount(struct, value == null ? 0 : value.remaining()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrInstanceCreateInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrInstanceCreateInfo.NEXT); } + /** Unsafe version of {@link #createFlags}. */ + public static long ncreateFlags(long struct) { return UNSAFE.getLong(null, struct + XrInstanceCreateInfo.CREATEFLAGS); } + /** Unsafe version of {@link #applicationInfo}. */ + public static XrApplicationInfo napplicationInfo(long struct) { return XrApplicationInfo.create(struct + XrInstanceCreateInfo.APPLICATIONINFO); } + /** Unsafe version of {@link #enabledApiLayerCount}. */ + public static int nenabledApiLayerCount(long struct) { return UNSAFE.getInt(null, struct + XrInstanceCreateInfo.ENABLEDAPILAYERCOUNT); } + /** Unsafe version of {@link #enabledApiLayerNames() enabledApiLayerNames}. */ + @Nullable public static PointerBuffer nenabledApiLayerNames(long struct) { return memPointerBufferSafe(memGetAddress(struct + XrInstanceCreateInfo.ENABLEDAPILAYERNAMES), nenabledApiLayerCount(struct)); } + /** Unsafe version of {@link #enabledExtensionCount}. */ + public static int nenabledExtensionCount(long struct) { return UNSAFE.getInt(null, struct + XrInstanceCreateInfo.ENABLEDEXTENSIONCOUNT); } + /** Unsafe version of {@link #enabledExtensionNames() enabledExtensionNames}. */ + @Nullable public static PointerBuffer nenabledExtensionNames(long struct) { return memPointerBufferSafe(memGetAddress(struct + XrInstanceCreateInfo.ENABLEDEXTENSIONNAMES), nenabledExtensionCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrInstanceCreateInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrInstanceCreateInfo.NEXT, value); } + /** Unsafe version of {@link #createFlags(long) createFlags}. */ + public static void ncreateFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrInstanceCreateInfo.CREATEFLAGS, value); } + /** Unsafe version of {@link #applicationInfo(XrApplicationInfo) applicationInfo}. */ + public static void napplicationInfo(long struct, XrApplicationInfo value) { memCopy(value.address(), struct + XrInstanceCreateInfo.APPLICATIONINFO, XrApplicationInfo.SIZEOF); } + /** Sets the specified value to the {@code enabledApiLayerCount} field of the specified {@code struct}. */ + public static void nenabledApiLayerCount(long struct, int value) { UNSAFE.putInt(null, struct + XrInstanceCreateInfo.ENABLEDAPILAYERCOUNT, value); } + /** Unsafe version of {@link #enabledApiLayerNames(PointerBuffer) enabledApiLayerNames}. */ + public static void nenabledApiLayerNames(long struct, @Nullable PointerBuffer value) { memPutAddress(struct + XrInstanceCreateInfo.ENABLEDAPILAYERNAMES, memAddressSafe(value)); nenabledApiLayerCount(struct, value == null ? 0 : value.remaining()); } + /** Sets the specified value to the {@code enabledExtensionCount} field of the specified {@code struct}. */ + public static void nenabledExtensionCount(long struct, int value) { UNSAFE.putInt(null, struct + XrInstanceCreateInfo.ENABLEDEXTENSIONCOUNT, value); } + /** Unsafe version of {@link #enabledExtensionNames(PointerBuffer) enabledExtensionNames}. */ + public static void nenabledExtensionNames(long struct, @Nullable PointerBuffer value) { memPutAddress(struct + XrInstanceCreateInfo.ENABLEDEXTENSIONNAMES, memAddressSafe(value)); nenabledExtensionCount(struct, value == null ? 0 : value.remaining()); } /** * Validates pointer members that should not be {@code NULL}. @@ -349,9 +351,9 @@ public static void validate(long struct) { if (nenabledExtensionCount(struct) != 0) { check(memGetAddress(struct + XrInstanceCreateInfo.ENABLEDEXTENSIONNAMES)); } - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrInstanceCreateInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -388,51 +390,53 @@ protected Buffer self() { protected XrInstanceCreateInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrInstanceCreateInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrInstanceCreateInfo.ntype(address()); } - /** @return the value of the {@link XrInstanceCreateInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrInstanceCreateInfo.nnext(address()); } - /** @return the value of the {@link XrInstanceCreateInfo#createFlags} field. */ - @NativeType("XrInstanceCreateFlags") - public long createFlags() { return XrInstanceCreateInfo.ncreateFlags(address()); } - /** @return a {@link XrApplicationInfo} view of the {@link XrInstanceCreateInfo#applicationInfo} field. */ - public XrApplicationInfo applicationInfo() { return XrInstanceCreateInfo.napplicationInfo(address()); } - /** @return the value of the {@link XrInstanceCreateInfo#enabledApiLayerCount} field. */ - @NativeType("uint32_t") - public int enabledApiLayerCount() { return XrInstanceCreateInfo.nenabledApiLayerCount(address()); } - /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrInstanceCreateInfo#enabledApiLayerNames} field. */ - @Nullable - @NativeType("char const * const *") - public PointerBuffer enabledApiLayerNames() { return XrInstanceCreateInfo.nenabledApiLayerNames(address()); } - /** @return the value of the {@link XrInstanceCreateInfo#enabledExtensionCount} field. */ - @NativeType("uint32_t") - public int enabledExtensionCount() { return XrInstanceCreateInfo.nenabledExtensionCount(address()); } - /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrInstanceCreateInfo#enabledExtensionNames} field. */ - @Nullable - @NativeType("char const * const *") - public PointerBuffer enabledExtensionNames() { return XrInstanceCreateInfo.nenabledExtensionNames(address()); } - - /** Sets the specified value to the {@link XrInstanceCreateInfo#type} field. */ - public XrInstanceCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrInstanceCreateInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_INSTANCE_CREATE_INFO TYPE_INSTANCE_CREATE_INFO} value to the {@link XrInstanceCreateInfo#type} field. */ - public XrInstanceCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_INSTANCE_CREATE_INFO); } - /** Sets the specified value to the {@link XrInstanceCreateInfo#next} field. */ - public XrInstanceCreateInfo.Buffer next(@NativeType("void const *") long value) { XrInstanceCreateInfo.nnext(address(), value); return this; } - /** Prepends the specified {@link XrDebugUtilsMessengerCreateInfoEXT} value to the {@code next} chain. */ - public XrInstanceCreateInfo.Buffer next(XrDebugUtilsMessengerCreateInfoEXT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrInstanceCreateInfo#createFlags} field. */ - public XrInstanceCreateInfo.Buffer createFlags(@NativeType("XrInstanceCreateFlags") long value) { XrInstanceCreateInfo.ncreateFlags(address(), value); return this; } - /** Copies the specified {@link XrApplicationInfo} to the {@link XrInstanceCreateInfo#applicationInfo} field. */ - public XrInstanceCreateInfo.Buffer applicationInfo(XrApplicationInfo value) { XrInstanceCreateInfo.napplicationInfo(address(), value); return this; } - /** Passes the {@link XrInstanceCreateInfo#applicationInfo} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrInstanceCreateInfo.Buffer applicationInfo(java.util.function.Consumer consumer) { consumer.accept(applicationInfo()); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@link XrInstanceCreateInfo#enabledApiLayerNames} field. */ - public XrInstanceCreateInfo.Buffer enabledApiLayerNames(@Nullable @NativeType("char const * const *") PointerBuffer value) { XrInstanceCreateInfo.nenabledApiLayerNames(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@link XrInstanceCreateInfo#enabledExtensionNames} field. */ - public XrInstanceCreateInfo.Buffer enabledExtensionNames(@Nullable @NativeType("char const * const *") PointerBuffer value) { XrInstanceCreateInfo.nenabledExtensionNames(address(), value); return this; } + + /** @return the value of the {@link XrInstanceCreateInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrInstanceCreateInfo.ntype(address()); } + /** @return the value of the {@link XrInstanceCreateInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrInstanceCreateInfo.nnext(address()); } + /** @return the value of the {@link XrInstanceCreateInfo#createFlags} field. */ + @NativeType("XrInstanceCreateFlags") + public long createFlags() { return XrInstanceCreateInfo.ncreateFlags(address()); } + /** @return a {@link XrApplicationInfo} view of the {@link XrInstanceCreateInfo#applicationInfo} field. */ + public XrApplicationInfo applicationInfo() { return XrInstanceCreateInfo.napplicationInfo(address()); } + /** @return the value of the {@link XrInstanceCreateInfo#enabledApiLayerCount} field. */ + @NativeType("uint32_t") + public int enabledApiLayerCount() { return XrInstanceCreateInfo.nenabledApiLayerCount(address()); } + /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrInstanceCreateInfo#enabledApiLayerNames} field. */ + @Nullable + @NativeType("char const * const *") + public PointerBuffer enabledApiLayerNames() { return XrInstanceCreateInfo.nenabledApiLayerNames(address()); } + /** @return the value of the {@link XrInstanceCreateInfo#enabledExtensionCount} field. */ + @NativeType("uint32_t") + public int enabledExtensionCount() { return XrInstanceCreateInfo.nenabledExtensionCount(address()); } + /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrInstanceCreateInfo#enabledExtensionNames} field. */ + @Nullable + @NativeType("char const * const *") + public PointerBuffer enabledExtensionNames() { return XrInstanceCreateInfo.nenabledExtensionNames(address()); } + + /** Sets the specified value to the {@link XrInstanceCreateInfo#type} field. */ + public XrInstanceCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrInstanceCreateInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_INSTANCE_CREATE_INFO TYPE_INSTANCE_CREATE_INFO} value to the {@link XrInstanceCreateInfo#type} field. */ + public XrInstanceCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_INSTANCE_CREATE_INFO); } + /** Sets the specified value to the {@link XrInstanceCreateInfo#next} field. */ + public XrInstanceCreateInfo.Buffer next(@NativeType("void const *") long value) { XrInstanceCreateInfo.nnext(address(), value); return this; } + /** Prepends the specified {@link XrDebugUtilsMessengerCreateInfoEXT} value to the {@code next} chain. */ + public XrInstanceCreateInfo.Buffer next(XrDebugUtilsMessengerCreateInfoEXT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrInstanceCreateInfoAndroidKHR} value to the {@code next} chain. */ + public XrInstanceCreateInfo.Buffer next(XrInstanceCreateInfoAndroidKHR value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrInstanceCreateInfo#createFlags} field. */ + public XrInstanceCreateInfo.Buffer createFlags(@NativeType("XrInstanceCreateFlags") long value) { XrInstanceCreateInfo.ncreateFlags(address(), value); return this; } + /** Copies the specified {@link XrApplicationInfo} to the {@link XrInstanceCreateInfo#applicationInfo} field. */ + public XrInstanceCreateInfo.Buffer applicationInfo(XrApplicationInfo value) { XrInstanceCreateInfo.napplicationInfo(address(), value); return this; } + /** Passes the {@link XrInstanceCreateInfo#applicationInfo} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrInstanceCreateInfo.Buffer applicationInfo(java.util.function.Consumer consumer) { consumer.accept(applicationInfo()); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@link XrInstanceCreateInfo#enabledApiLayerNames} field. */ + public XrInstanceCreateInfo.Buffer enabledApiLayerNames(@Nullable @NativeType("char const * const *") PointerBuffer value) { XrInstanceCreateInfo.nenabledApiLayerNames(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@link XrInstanceCreateInfo#enabledExtensionNames} field. */ + public XrInstanceCreateInfo.Buffer enabledExtensionNames(@Nullable @NativeType("char const * const *") PointerBuffer value) { XrInstanceCreateInfo.nenabledExtensionNames(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInstanceCreateInfoAndroidKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInstanceCreateInfoAndroidKHR.java new file mode 100644 index 0000000000..930ce3445d --- /dev/null +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInstanceCreateInfoAndroidKHR.java @@ -0,0 +1,360 @@ +/* + * 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.*; + +/** + * Creates an OpenXR Instance. + * + *
                                                Description
                                                + * + *

                                                {@link XrInstanceCreateInfoAndroidKHR} contains additional Android specific information needed when calling {@link XR10#xrCreateInstance CreateInstance}. The {@code applicationVM} field should be populated with the {@code JavaVM} structure received by the {@code JNI_OnLoad} function, while the {@code applicationActivity} field will typically contain a reference to a Java activity object received through an application-specific native method. The {@link XrInstanceCreateInfoAndroidKHR} structure must be provided in the {@code next} chain of the {@link XrInstanceCreateInfo} structure when calling {@link XR10#xrCreateInstance CreateInstance}.

                                                + * + *
                                                Valid Usage (Implicit)
                                                + * + *
                                                  + *
                                                • The {@link KHRAndroidCreateInstance XR_KHR_android_create_instance} extension must be enabled prior to using {@link XrInstanceCreateInfoAndroidKHR}
                                                • + *
                                                • {@code type} must be {@link KHRAndroidCreateInstance#XR_TYPE_INSTANCE_CREATE_INFO_ANDROID_KHR TYPE_INSTANCE_CREATE_INFO_ANDROID_KHR}
                                                • + *
                                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                • + *
                                                • {@code applicationVM} must be a pointer value
                                                • + *
                                                • {@code applicationActivity} must be a pointer value
                                                • + *
                                                + * + *
                                                See Also
                                                + * + *

                                                {@link XR10#xrCreateInstance CreateInstance}, {@link XR10#xrDestroyInstance DestroyInstance}

                                                + * + *

                                                Layout

                                                + * + *
                                                
                                                + * struct XrInstanceCreateInfoAndroidKHR {
                                                + *     XrStructureType {@link #type};
                                                + *     void const * {@link #next};
                                                + *     void * {@link #applicationVM};
                                                + *     void * {@link #applicationActivity};
                                                + * }
                                                + */ +public class XrInstanceCreateInfoAndroidKHR 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, + APPLICATIONVM, + APPLICATIONACTIVITY; + + static { + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(POINTER_SIZE), + __member(POINTER_SIZE) + ); + + SIZEOF = layout.getSize(); + ALIGNOF = layout.getAlignment(); + + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + APPLICATIONVM = layout.offsetof(2); + APPLICATIONACTIVITY = layout.offsetof(3); + } + + protected XrInstanceCreateInfoAndroidKHR(long address, @Nullable ByteBuffer container) { + super(address, container); + } + + @Override + protected XrInstanceCreateInfoAndroidKHR create(long address, @Nullable ByteBuffer container) { + return new XrInstanceCreateInfoAndroidKHR(address, container); + } + + /** + * Creates a {@code XrInstanceCreateInfoAndroidKHR} 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 XrInstanceCreateInfoAndroidKHR(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 the JNI’s opaque {@code JavaVM} structure, cast to a void pointer. */ + @NativeType("void *") + public long applicationVM() { return napplicationVM(address()); } + /** a JNI reference to an {@code android.app.Activity} that will drive the session lifecycle of this instance, cast to a void pointer. */ + @NativeType("void *") + public long applicationActivity() { return napplicationActivity(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrInstanceCreateInfoAndroidKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHRAndroidCreateInstance#XR_TYPE_INSTANCE_CREATE_INFO_ANDROID_KHR TYPE_INSTANCE_CREATE_INFO_ANDROID_KHR} value to the {@link #type} field. */ + public XrInstanceCreateInfoAndroidKHR type$Default() { return type(KHRAndroidCreateInstance.XR_TYPE_INSTANCE_CREATE_INFO_ANDROID_KHR); } + /** Sets the specified value to the {@link #next} field. */ + public XrInstanceCreateInfoAndroidKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #applicationVM} field. */ + public XrInstanceCreateInfoAndroidKHR applicationVM(@NativeType("void *") long value) { napplicationVM(address(), value); return this; } + /** Sets the specified value to the {@link #applicationActivity} field. */ + public XrInstanceCreateInfoAndroidKHR applicationActivity(@NativeType("void *") long value) { napplicationActivity(address(), value); return this; } + + /** Initializes this struct with the specified values. */ + public XrInstanceCreateInfoAndroidKHR set( + int type, + long next, + long applicationVM, + long applicationActivity + ) { + type(type); + next(next); + applicationVM(applicationVM); + applicationActivity(applicationActivity); + + return this; + } + + /** + * Copies the specified struct data to this struct. + * + * @param src the source struct + * + * @return this struct + */ + public XrInstanceCreateInfoAndroidKHR set(XrInstanceCreateInfoAndroidKHR src) { + memCopy(src.address(), address(), SIZEOF); + return this; + } + + // ----------------------------------- + + /** Returns a new {@code XrInstanceCreateInfoAndroidKHR} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ + public static XrInstanceCreateInfoAndroidKHR malloc() { + return new XrInstanceCreateInfoAndroidKHR(nmemAllocChecked(SIZEOF), null); + } + + /** Returns a new {@code XrInstanceCreateInfoAndroidKHR} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ + public static XrInstanceCreateInfoAndroidKHR calloc() { + return new XrInstanceCreateInfoAndroidKHR(nmemCallocChecked(1, SIZEOF), null); + } + + /** Returns a new {@code XrInstanceCreateInfoAndroidKHR} instance allocated with {@link BufferUtils}. */ + public static XrInstanceCreateInfoAndroidKHR create() { + ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); + return new XrInstanceCreateInfoAndroidKHR(memAddress(container), container); + } + + /** Returns a new {@code XrInstanceCreateInfoAndroidKHR} instance for the specified memory address. */ + public static XrInstanceCreateInfoAndroidKHR create(long address) { + return new XrInstanceCreateInfoAndroidKHR(address, null); + } + + /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ + @Nullable + public static XrInstanceCreateInfoAndroidKHR createSafe(long address) { + return address == NULL ? null : new XrInstanceCreateInfoAndroidKHR(address, null); + } + + /** + * Returns a new {@link XrInstanceCreateInfoAndroidKHR.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. + * + * @param capacity the buffer capacity + */ + public static XrInstanceCreateInfoAndroidKHR.Buffer malloc(int capacity) { + return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + } + + /** + * Returns a new {@link XrInstanceCreateInfoAndroidKHR.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. + * + * @param capacity the buffer capacity + */ + public static XrInstanceCreateInfoAndroidKHR.Buffer calloc(int capacity) { + return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + } + + /** + * Returns a new {@link XrInstanceCreateInfoAndroidKHR.Buffer} instance allocated with {@link BufferUtils}. + * + * @param capacity the buffer capacity + */ + public static XrInstanceCreateInfoAndroidKHR.Buffer create(int capacity) { + ByteBuffer container = __create(capacity, SIZEOF); + return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); + } + + /** + * Create a {@link XrInstanceCreateInfoAndroidKHR.Buffer} instance at the specified memory. + * + * @param address the memory address + * @param capacity the buffer capacity + */ + public static XrInstanceCreateInfoAndroidKHR.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 XrInstanceCreateInfoAndroidKHR.Buffer createSafe(long address, int capacity) { + return address == NULL ? null : new Buffer(address, capacity); + } + + /** + * Returns a new {@code XrInstanceCreateInfoAndroidKHR} instance allocated on the specified {@link MemoryStack}. + * + * @param stack the stack from which to allocate + */ + public static XrInstanceCreateInfoAndroidKHR malloc(MemoryStack stack) { + return new XrInstanceCreateInfoAndroidKHR(stack.nmalloc(ALIGNOF, SIZEOF), null); + } + + /** + * Returns a new {@code XrInstanceCreateInfoAndroidKHR} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. + * + * @param stack the stack from which to allocate + */ + public static XrInstanceCreateInfoAndroidKHR calloc(MemoryStack stack) { + return new XrInstanceCreateInfoAndroidKHR(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + } + + /** + * Returns a new {@link XrInstanceCreateInfoAndroidKHR.Buffer} instance allocated on the specified {@link MemoryStack}. + * + * @param stack the stack from which to allocate + * @param capacity the buffer capacity + */ + public static XrInstanceCreateInfoAndroidKHR.Buffer malloc(int capacity, MemoryStack stack) { + return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); + } + + /** + * Returns a new {@link XrInstanceCreateInfoAndroidKHR.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 XrInstanceCreateInfoAndroidKHR.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 + XrInstanceCreateInfoAndroidKHR.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrInstanceCreateInfoAndroidKHR.NEXT); } + /** Unsafe version of {@link #applicationVM}. */ + public static long napplicationVM(long struct) { return memGetAddress(struct + XrInstanceCreateInfoAndroidKHR.APPLICATIONVM); } + /** Unsafe version of {@link #applicationActivity}. */ + public static long napplicationActivity(long struct) { return memGetAddress(struct + XrInstanceCreateInfoAndroidKHR.APPLICATIONACTIVITY); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrInstanceCreateInfoAndroidKHR.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrInstanceCreateInfoAndroidKHR.NEXT, value); } + /** Unsafe version of {@link #applicationVM(long) applicationVM}. */ + public static void napplicationVM(long struct, long value) { memPutAddress(struct + XrInstanceCreateInfoAndroidKHR.APPLICATIONVM, check(value)); } + /** Unsafe version of {@link #applicationActivity(long) applicationActivity}. */ + public static void napplicationActivity(long struct, long value) { memPutAddress(struct + XrInstanceCreateInfoAndroidKHR.APPLICATIONACTIVITY, check(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 + XrInstanceCreateInfoAndroidKHR.APPLICATIONVM)); + check(memGetAddress(struct + XrInstanceCreateInfoAndroidKHR.APPLICATIONACTIVITY)); + } + + // ----------------------------------- + + /** An array of {@link XrInstanceCreateInfoAndroidKHR} structs. */ + public static class Buffer extends StructBuffer implements NativeResource { + + private static final XrInstanceCreateInfoAndroidKHR ELEMENT_FACTORY = XrInstanceCreateInfoAndroidKHR.create(-1L); + + /** + * Creates a new {@code XrInstanceCreateInfoAndroidKHR.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 XrInstanceCreateInfoAndroidKHR#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 XrInstanceCreateInfoAndroidKHR getElementFactory() { + return ELEMENT_FACTORY; + } + + /** @return the value of the {@link XrInstanceCreateInfoAndroidKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrInstanceCreateInfoAndroidKHR.ntype(address()); } + /** @return the value of the {@link XrInstanceCreateInfoAndroidKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrInstanceCreateInfoAndroidKHR.nnext(address()); } + /** @return the value of the {@link XrInstanceCreateInfoAndroidKHR#applicationVM} field. */ + @NativeType("void *") + public long applicationVM() { return XrInstanceCreateInfoAndroidKHR.napplicationVM(address()); } + /** @return the value of the {@link XrInstanceCreateInfoAndroidKHR#applicationActivity} field. */ + @NativeType("void *") + public long applicationActivity() { return XrInstanceCreateInfoAndroidKHR.napplicationActivity(address()); } + + /** Sets the specified value to the {@link XrInstanceCreateInfoAndroidKHR#type} field. */ + public XrInstanceCreateInfoAndroidKHR.Buffer type(@NativeType("XrStructureType") int value) { XrInstanceCreateInfoAndroidKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRAndroidCreateInstance#XR_TYPE_INSTANCE_CREATE_INFO_ANDROID_KHR TYPE_INSTANCE_CREATE_INFO_ANDROID_KHR} value to the {@link XrInstanceCreateInfoAndroidKHR#type} field. */ + public XrInstanceCreateInfoAndroidKHR.Buffer type$Default() { return type(KHRAndroidCreateInstance.XR_TYPE_INSTANCE_CREATE_INFO_ANDROID_KHR); } + /** Sets the specified value to the {@link XrInstanceCreateInfoAndroidKHR#next} field. */ + public XrInstanceCreateInfoAndroidKHR.Buffer next(@NativeType("void const *") long value) { XrInstanceCreateInfoAndroidKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrInstanceCreateInfoAndroidKHR#applicationVM} field. */ + public XrInstanceCreateInfoAndroidKHR.Buffer applicationVM(@NativeType("void *") long value) { XrInstanceCreateInfoAndroidKHR.napplicationVM(address(), value); return this; } + /** Sets the specified value to the {@link XrInstanceCreateInfoAndroidKHR#applicationActivity} field. */ + public XrInstanceCreateInfoAndroidKHR.Buffer applicationActivity(@NativeType("void *") long value) { XrInstanceCreateInfoAndroidKHR.napplicationActivity(address(), value); return this; } + + } + +} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInstanceProperties.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInstanceProperties.java index 47683bf378..03a12ff5ea 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInstanceProperties.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInstanceProperties.java @@ -4,19 +4,19 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import static org.lwjgl.openxr.XR10.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.XR10.*; + /** * Contains information about the instance. * @@ -24,7 +24,7 @@ * * * *
                                                See Also
                                                @@ -40,8 +40,8 @@ * XrVersion {@link #runtimeVersion}; * char {@link #runtimeName}[XR_MAX_RUNTIME_NAME_SIZE]; * } - */ -public class XrInstanceProperties extends Struct implements NativeResource { + */ +public class XrInstanceProperties extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,27 +51,27 @@ public class XrInstanceProperties extends Struct implement /** The struct member offsets. */ public static final int - TYPE, - NEXT, - RUNTIMEVERSION, - RUNTIMENAME; + TYPE, + NEXT, + RUNTIMEVERSION, + RUNTIMENAME; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), __array(1, XR_MAX_RUNTIME_NAME_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - RUNTIMEVERSION = layout.offsetof(2); - RUNTIMENAME = layout.offsetof(3); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + RUNTIMEVERSION = layout.offsetof(2); + RUNTIMENAME = layout.offsetof(3); + } protected XrInstanceProperties(long address, @Nullable ByteBuffer container) { super(address, container); @@ -94,37 +94,37 @@ public XrInstanceProperties(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** the runtime’s version (not necessarily related to an OpenXR API version), expressed in the format of {@link XR10#XR_MAKE_VERSION}. */ - @NativeType("XrVersion") - public long runtimeVersion() { return nruntimeVersion(address()); } - /** the name of the runtime. */ - @NativeType("char[XR_MAX_RUNTIME_NAME_SIZE]") - public ByteBuffer runtimeName() { return nruntimeName(address()); } - /** the name of the runtime. */ - @NativeType("char[XR_MAX_RUNTIME_NAME_SIZE]") - public String runtimeNameString() { return nruntimeNameString(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrInstanceProperties type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_INSTANCE_PROPERTIES TYPE_INSTANCE_PROPERTIES} value to the {@link #type} field. */ - public XrInstanceProperties type$Default() { return type(XR10.XR_TYPE_INSTANCE_PROPERTIES); } - /** Sets the specified value to the {@link #next} field. */ - public XrInstanceProperties next(@NativeType("void *") long value) { nnext(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the runtime’s version (not necessarily related to an OpenXR API version), expressed in the format of {@link XR10#XR_MAKE_VERSION}. */ + @NativeType("XrVersion") + public long runtimeVersion() { return nruntimeVersion(address()); } + /** the name of the runtime. */ + @NativeType("char[XR_MAX_RUNTIME_NAME_SIZE]") + public ByteBuffer runtimeName() { return nruntimeName(address()); } + /** the name of the runtime. */ + @NativeType("char[XR_MAX_RUNTIME_NAME_SIZE]") + public String runtimeNameString() { return nruntimeNameString(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrInstanceProperties type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_INSTANCE_PROPERTIES TYPE_INSTANCE_PROPERTIES} value to the {@link #type} field. */ + public XrInstanceProperties type$Default() { return type(XR10.XR_TYPE_INSTANCE_PROPERTIES); } + /** Sets the specified value to the {@link #next} field. */ + public XrInstanceProperties next(@NativeType("void *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrInstanceProperties set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -253,24 +253,24 @@ public static XrInstanceProperties.Buffer calloc(int capacity, MemoryStack stack } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrInstanceProperties.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrInstanceProperties.NEXT); } - /** Unsafe version of {@link #runtimeVersion}. */ - public static long nruntimeVersion(long struct) { return UNSAFE.getLong(null, struct + XrInstanceProperties.RUNTIMEVERSION); } - /** Unsafe version of {@link #runtimeName}. */ - public static ByteBuffer nruntimeName(long struct) { return memByteBuffer(struct + XrInstanceProperties.RUNTIMENAME, XR_MAX_RUNTIME_NAME_SIZE); } - /** Unsafe version of {@link #runtimeNameString}. */ - public static String nruntimeNameString(long struct) { return memUTF8(struct + XrInstanceProperties.RUNTIMENAME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrInstanceProperties.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrInstanceProperties.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrInstanceProperties.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrInstanceProperties.NEXT); } + /** Unsafe version of {@link #runtimeVersion}. */ + public static long nruntimeVersion(long struct) { return UNSAFE.getLong(null, struct + XrInstanceProperties.RUNTIMEVERSION); } + /** Unsafe version of {@link #runtimeName}. */ + public static ByteBuffer nruntimeName(long struct) { return memByteBuffer(struct + XrInstanceProperties.RUNTIMENAME, XR_MAX_RUNTIME_NAME_SIZE); } + /** Unsafe version of {@link #runtimeNameString}. */ + public static String nruntimeNameString(long struct) { return memUTF8(struct + XrInstanceProperties.RUNTIMENAME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrInstanceProperties.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrInstanceProperties.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrInstanceProperties} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -307,29 +307,29 @@ protected Buffer self() { protected XrInstanceProperties getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrInstanceProperties#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrInstanceProperties.ntype(address()); } - /** @return the value of the {@link XrInstanceProperties#next} field. */ - @NativeType("void *") - public long next() { return XrInstanceProperties.nnext(address()); } - /** @return the value of the {@link XrInstanceProperties#runtimeVersion} field. */ - @NativeType("XrVersion") - public long runtimeVersion() { return XrInstanceProperties.nruntimeVersion(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrInstanceProperties#runtimeName} field. */ - @NativeType("char[XR_MAX_RUNTIME_NAME_SIZE]") - public ByteBuffer runtimeName() { return XrInstanceProperties.nruntimeName(address()); } - /** @return the null-terminated string stored in the {@link XrInstanceProperties#runtimeName} field. */ - @NativeType("char[XR_MAX_RUNTIME_NAME_SIZE]") - public String runtimeNameString() { return XrInstanceProperties.nruntimeNameString(address()); } - - /** Sets the specified value to the {@link XrInstanceProperties#type} field. */ - public XrInstanceProperties.Buffer type(@NativeType("XrStructureType") int value) { XrInstanceProperties.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_INSTANCE_PROPERTIES TYPE_INSTANCE_PROPERTIES} value to the {@link XrInstanceProperties#type} field. */ - public XrInstanceProperties.Buffer type$Default() { return type(XR10.XR_TYPE_INSTANCE_PROPERTIES); } - /** Sets the specified value to the {@link XrInstanceProperties#next} field. */ - public XrInstanceProperties.Buffer next(@NativeType("void *") long value) { XrInstanceProperties.nnext(address(), value); return this; } + + /** @return the value of the {@link XrInstanceProperties#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrInstanceProperties.ntype(address()); } + /** @return the value of the {@link XrInstanceProperties#next} field. */ + @NativeType("void *") + public long next() { return XrInstanceProperties.nnext(address()); } + /** @return the value of the {@link XrInstanceProperties#runtimeVersion} field. */ + @NativeType("XrVersion") + public long runtimeVersion() { return XrInstanceProperties.nruntimeVersion(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrInstanceProperties#runtimeName} field. */ + @NativeType("char[XR_MAX_RUNTIME_NAME_SIZE]") + public ByteBuffer runtimeName() { return XrInstanceProperties.nruntimeName(address()); } + /** @return the null-terminated string stored in the {@link XrInstanceProperties#runtimeName} field. */ + @NativeType("char[XR_MAX_RUNTIME_NAME_SIZE]") + public String runtimeNameString() { return XrInstanceProperties.nruntimeNameString(address()); } + + /** Sets the specified value to the {@link XrInstanceProperties#type} field. */ + public XrInstanceProperties.Buffer type(@NativeType("XrStructureType") int value) { XrInstanceProperties.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_INSTANCE_PROPERTIES TYPE_INSTANCE_PROPERTIES} value to the {@link XrInstanceProperties#type} field. */ + public XrInstanceProperties.Buffer type$Default() { return type(XR10.XR_TYPE_INSTANCE_PROPERTIES); } + /** Sets the specified value to the {@link XrInstanceProperties#next} field. */ + public XrInstanceProperties.Buffer next(@NativeType("void *") long value) { XrInstanceProperties.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileAnalogThresholdVALVE.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileAnalogThresholdVALVE.java index e72a62bd74..09773127c0 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileAnalogThresholdVALVE.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileAnalogThresholdVALVE.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Interaction profile dpad binding. * @@ -36,7 +36,7 @@ *
                                                  *
                                                • The {@link VALVEAnalogThreshold XR_VALVE_analog_threshold} extension must be enabled prior to using {@link XrInteractionProfileAnalogThresholdVALVE}
                                                • *
                                                • {@code type} must be {@link VALVEAnalogThreshold#XR_TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE}
                                                • - *
                                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                • + *
                                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                • *
                                                • {@code action} must be a valid {@code XrAction} handle
                                                • *
                                                • If {@code onHaptic} is not {@code NULL}, {@code onHaptic} must be a pointer to a valid {@link XrHapticBaseHeader}-based structure. See also: {@link XrHapticAmplitudeEnvelopeVibrationFB}, {@link XrHapticPcmVibrationFB}, {@link XrHapticVibration}
                                                • *
                                                • If {@code offHaptic} is not {@code NULL}, {@code offHaptic} must be a pointer to a valid {@link XrHapticBaseHeader}-based structure. See also: {@link XrHapticAmplitudeEnvelopeVibrationFB}, {@link XrHapticPcmVibrationFB}, {@link XrHapticVibration}
                                                • @@ -59,8 +59,8 @@ * {@link XrHapticBaseHeader XrHapticBaseHeader} const * {@link #onHaptic}; * {@link XrHapticBaseHeader XrHapticBaseHeader} const * {@link #offHaptic}; * } - */ -public class XrInteractionProfileAnalogThresholdVALVE extends Struct implements NativeResource { + */ +public class XrInteractionProfileAnalogThresholdVALVE extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -70,39 +70,39 @@ public class XrInteractionProfileAnalogThresholdVALVE extends Structmust consider the binding to be true. The binding must remain true until the input analog value falls below {@code offThreshold}. */ - public float onThreshold() { return nonThreshold(address()); } - /** the value between 0.0 and 1.0 at which the runtime must consider the binding to be false if it was previous true. */ - public float offThreshold() { return noffThreshold(address()); } - /** the haptic output that the runtime must trigger when the binding changes from false to true. If this field is NULL, the runtime must not trigger any haptic output on the threshold. This field can point to any supported sub-type of {@link XrHapticBaseHeader}. */ - @Nullable - @NativeType("XrHapticBaseHeader const *") - public XrHapticBaseHeader onHaptic() { return nonHaptic(address()); } - /** the haptic output that the runtime must trigger when the binding changes from true to false. If this field is NULL, the runtime must not trigger any haptic output on the threshold. This field can point to any supported sub-type of {@link XrHapticBaseHeader}. */ - @Nullable - @NativeType("XrHapticBaseHeader const *") - public XrHapticBaseHeader offHaptic() { return noffHaptic(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrInteractionProfileAnalogThresholdVALVE type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link VALVEAnalogThreshold#XR_TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE} value to the {@link #type} field. */ - public XrInteractionProfileAnalogThresholdVALVE type$Default() { return type(VALVEAnalogThreshold.XR_TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE); } - /** Sets the specified value to the {@link #next} field. */ - public XrInteractionProfileAnalogThresholdVALVE next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #action} field. */ - public XrInteractionProfileAnalogThresholdVALVE action(XrAction value) { naction(address(), value); return this; } - /** Sets the specified value to the {@link #binding} field. */ - public XrInteractionProfileAnalogThresholdVALVE binding(@NativeType("XrPath") long value) { nbinding(address(), value); return this; } - /** Sets the specified value to the {@link #onThreshold} field. */ - public XrInteractionProfileAnalogThresholdVALVE onThreshold(float value) { nonThreshold(address(), value); return this; } - /** Sets the specified value to the {@link #offThreshold} field. */ - public XrInteractionProfileAnalogThresholdVALVE offThreshold(float value) { noffThreshold(address(), value); return this; } - /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link #onHaptic} field. */ - public XrInteractionProfileAnalogThresholdVALVE onHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { nonHaptic(address(), value); return this; } - /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link #offHaptic} field. */ - public XrInteractionProfileAnalogThresholdVALVE offHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { noffHaptic(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the handle of an action in the suggested binding list. */ + @NativeType("XrAction") + public long action() { return naction(address()); } + /** the input path used for the specified action in the suggested binding list. */ + @NativeType("XrPath") + public long binding() { return nbinding(address()); } + /** the value between 0.0 and 1.0 at which the runtime must consider the binding to be true. The binding must remain true until the input analog value falls below {@code offThreshold}. */ + public float onThreshold() { return nonThreshold(address()); } + /** the value between 0.0 and 1.0 at which the runtime must consider the binding to be false if it was previous true. */ + public float offThreshold() { return noffThreshold(address()); } + /** the haptic output that the runtime must trigger when the binding changes from false to true. If this field is NULL, the runtime must not trigger any haptic output on the threshold. This field can point to any supported sub-type of {@link XrHapticBaseHeader}. */ + @Nullable + @NativeType("XrHapticBaseHeader const *") + public XrHapticBaseHeader onHaptic() { return nonHaptic(address()); } + /** the haptic output that the runtime must trigger when the binding changes from true to false. If this field is NULL, the runtime must not trigger any haptic output on the threshold. This field can point to any supported sub-type of {@link XrHapticBaseHeader}. */ + @Nullable + @NativeType("XrHapticBaseHeader const *") + public XrHapticBaseHeader offHaptic() { return noffHaptic(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrInteractionProfileAnalogThresholdVALVE type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link VALVEAnalogThreshold#XR_TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE} value to the {@link #type} field. */ + public XrInteractionProfileAnalogThresholdVALVE type$Default() { return type(VALVEAnalogThreshold.XR_TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE); } + /** Sets the specified value to the {@link #next} field. */ + public XrInteractionProfileAnalogThresholdVALVE next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #action} field. */ + public XrInteractionProfileAnalogThresholdVALVE action(XrAction value) { naction(address(), value); return this; } + /** Sets the specified value to the {@link #binding} field. */ + public XrInteractionProfileAnalogThresholdVALVE binding(@NativeType("XrPath") long value) { nbinding(address(), value); return this; } + /** Sets the specified value to the {@link #onThreshold} field. */ + public XrInteractionProfileAnalogThresholdVALVE onThreshold(float value) { nonThreshold(address(), value); return this; } + /** Sets the specified value to the {@link #offThreshold} field. */ + public XrInteractionProfileAnalogThresholdVALVE offThreshold(float value) { noffThreshold(address(), value); return this; } + /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link #onHaptic} field. */ + public XrInteractionProfileAnalogThresholdVALVE onHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { nonHaptic(address(), value); return this; } + /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link #offHaptic} field. */ + public XrInteractionProfileAnalogThresholdVALVE offHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { noffHaptic(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrInteractionProfileAnalogThresholdVALVE set( - int type, - long next, - XrAction action, - long binding, - float onThreshold, - float offThreshold, - @Nullable XrHapticBaseHeader onHaptic, + int type, + long next, + XrAction action, + long binding, + float onThreshold, + float offThreshold, + @Nullable XrHapticBaseHeader onHaptic, @Nullable XrHapticBaseHeader offHaptic - ) { - type(type); - next(next); - action(action); - binding(binding); - onThreshold(onThreshold); - offThreshold(offThreshold); - onHaptic(onHaptic); - offHaptic(offHaptic); + ) { + type(type); + next(next); + action(action); + binding(binding); + onThreshold(onThreshold); + offThreshold(offThreshold); + onHaptic(onHaptic); + offHaptic(offHaptic); return this; } @@ -327,40 +327,40 @@ public static XrInteractionProfileAnalogThresholdVALVE.Buffer calloc(int capacit } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrInteractionProfileAnalogThresholdVALVE.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrInteractionProfileAnalogThresholdVALVE.NEXT); } - /** Unsafe version of {@link #action}. */ - public static long naction(long struct) { return memGetAddress(struct + XrInteractionProfileAnalogThresholdVALVE.ACTION); } - /** Unsafe version of {@link #binding}. */ - public static long nbinding(long struct) { return UNSAFE.getLong(null, struct + XrInteractionProfileAnalogThresholdVALVE.BINDING); } - /** Unsafe version of {@link #onThreshold}. */ - public static float nonThreshold(long struct) { return UNSAFE.getFloat(null, struct + XrInteractionProfileAnalogThresholdVALVE.ONTHRESHOLD); } - /** Unsafe version of {@link #offThreshold}. */ - public static float noffThreshold(long struct) { return UNSAFE.getFloat(null, struct + XrInteractionProfileAnalogThresholdVALVE.OFFTHRESHOLD); } - /** Unsafe version of {@link #onHaptic}. */ - @Nullable public static XrHapticBaseHeader nonHaptic(long struct) { return XrHapticBaseHeader.createSafe(memGetAddress(struct + XrInteractionProfileAnalogThresholdVALVE.ONHAPTIC)); } - /** Unsafe version of {@link #offHaptic}. */ - @Nullable public static XrHapticBaseHeader noffHaptic(long struct) { return XrHapticBaseHeader.createSafe(memGetAddress(struct + XrInteractionProfileAnalogThresholdVALVE.OFFHAPTIC)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrInteractionProfileAnalogThresholdVALVE.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrInteractionProfileAnalogThresholdVALVE.NEXT, value); } - /** Unsafe version of {@link #action(XrAction) action}. */ - public static void naction(long struct, XrAction value) { memPutAddress(struct + XrInteractionProfileAnalogThresholdVALVE.ACTION, value.address()); } - /** Unsafe version of {@link #binding(long) binding}. */ - public static void nbinding(long struct, long value) { UNSAFE.putLong(null, struct + XrInteractionProfileAnalogThresholdVALVE.BINDING, value); } - /** Unsafe version of {@link #onThreshold(float) onThreshold}. */ - public static void nonThreshold(long struct, float value) { UNSAFE.putFloat(null, struct + XrInteractionProfileAnalogThresholdVALVE.ONTHRESHOLD, value); } - /** Unsafe version of {@link #offThreshold(float) offThreshold}. */ - public static void noffThreshold(long struct, float value) { UNSAFE.putFloat(null, struct + XrInteractionProfileAnalogThresholdVALVE.OFFTHRESHOLD, value); } - /** Unsafe version of {@link #onHaptic(XrHapticBaseHeader) onHaptic}. */ - public static void nonHaptic(long struct, @Nullable XrHapticBaseHeader value) { memPutAddress(struct + XrInteractionProfileAnalogThresholdVALVE.ONHAPTIC, memAddressSafe(value)); } - /** Unsafe version of {@link #offHaptic(XrHapticBaseHeader) offHaptic}. */ - public static void noffHaptic(long struct, @Nullable XrHapticBaseHeader value) { memPutAddress(struct + XrInteractionProfileAnalogThresholdVALVE.OFFHAPTIC, memAddressSafe(value)); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrInteractionProfileAnalogThresholdVALVE.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrInteractionProfileAnalogThresholdVALVE.NEXT); } + /** Unsafe version of {@link #action}. */ + public static long naction(long struct) { return memGetAddress(struct + XrInteractionProfileAnalogThresholdVALVE.ACTION); } + /** Unsafe version of {@link #binding}. */ + public static long nbinding(long struct) { return UNSAFE.getLong(null, struct + XrInteractionProfileAnalogThresholdVALVE.BINDING); } + /** Unsafe version of {@link #onThreshold}. */ + public static float nonThreshold(long struct) { return UNSAFE.getFloat(null, struct + XrInteractionProfileAnalogThresholdVALVE.ONTHRESHOLD); } + /** Unsafe version of {@link #offThreshold}. */ + public static float noffThreshold(long struct) { return UNSAFE.getFloat(null, struct + XrInteractionProfileAnalogThresholdVALVE.OFFTHRESHOLD); } + /** Unsafe version of {@link #onHaptic}. */ + @Nullable public static XrHapticBaseHeader nonHaptic(long struct) { return XrHapticBaseHeader.createSafe(memGetAddress(struct + XrInteractionProfileAnalogThresholdVALVE.ONHAPTIC)); } + /** Unsafe version of {@link #offHaptic}. */ + @Nullable public static XrHapticBaseHeader noffHaptic(long struct) { return XrHapticBaseHeader.createSafe(memGetAddress(struct + XrInteractionProfileAnalogThresholdVALVE.OFFHAPTIC)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrInteractionProfileAnalogThresholdVALVE.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrInteractionProfileAnalogThresholdVALVE.NEXT, value); } + /** Unsafe version of {@link #action(XrAction) action}. */ + public static void naction(long struct, XrAction value) { memPutAddress(struct + XrInteractionProfileAnalogThresholdVALVE.ACTION, value.address()); } + /** Unsafe version of {@link #binding(long) binding}. */ + public static void nbinding(long struct, long value) { UNSAFE.putLong(null, struct + XrInteractionProfileAnalogThresholdVALVE.BINDING, value); } + /** Unsafe version of {@link #onThreshold(float) onThreshold}. */ + public static void nonThreshold(long struct, float value) { UNSAFE.putFloat(null, struct + XrInteractionProfileAnalogThresholdVALVE.ONTHRESHOLD, value); } + /** Unsafe version of {@link #offThreshold(float) offThreshold}. */ + public static void noffThreshold(long struct, float value) { UNSAFE.putFloat(null, struct + XrInteractionProfileAnalogThresholdVALVE.OFFTHRESHOLD, value); } + /** Unsafe version of {@link #onHaptic(XrHapticBaseHeader) onHaptic}. */ + public static void nonHaptic(long struct, @Nullable XrHapticBaseHeader value) { memPutAddress(struct + XrInteractionProfileAnalogThresholdVALVE.ONHAPTIC, memAddressSafe(value)); } + /** Unsafe version of {@link #offHaptic(XrHapticBaseHeader) offHaptic}. */ + public static void noffHaptic(long struct, @Nullable XrHapticBaseHeader value) { memPutAddress(struct + XrInteractionProfileAnalogThresholdVALVE.OFFHAPTIC, memAddressSafe(value)); } /** * Validates pointer members that should not be {@code NULL}. @@ -369,9 +369,9 @@ public static XrInteractionProfileAnalogThresholdVALVE.Buffer calloc(int capacit */ public static void validate(long struct) { check(memGetAddress(struct + XrInteractionProfileAnalogThresholdVALVE.ACTION)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrInteractionProfileAnalogThresholdVALVE} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -408,50 +408,50 @@ protected Buffer self() { protected XrInteractionProfileAnalogThresholdVALVE getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrInteractionProfileAnalogThresholdVALVE#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrInteractionProfileAnalogThresholdVALVE.ntype(address()); } - /** @return the value of the {@link XrInteractionProfileAnalogThresholdVALVE#next} field. */ - @NativeType("void const *") - public long next() { return XrInteractionProfileAnalogThresholdVALVE.nnext(address()); } - /** @return the value of the {@link XrInteractionProfileAnalogThresholdVALVE#action} field. */ - @NativeType("XrAction") - public long action() { return XrInteractionProfileAnalogThresholdVALVE.naction(address()); } - /** @return the value of the {@link XrInteractionProfileAnalogThresholdVALVE#binding} field. */ - @NativeType("XrPath") - public long binding() { return XrInteractionProfileAnalogThresholdVALVE.nbinding(address()); } - /** @return the value of the {@link XrInteractionProfileAnalogThresholdVALVE#onThreshold} field. */ - public float onThreshold() { return XrInteractionProfileAnalogThresholdVALVE.nonThreshold(address()); } - /** @return the value of the {@link XrInteractionProfileAnalogThresholdVALVE#offThreshold} field. */ - public float offThreshold() { return XrInteractionProfileAnalogThresholdVALVE.noffThreshold(address()); } - /** @return a {@link XrHapticBaseHeader} view of the struct pointed to by the {@link XrInteractionProfileAnalogThresholdVALVE#onHaptic} field. */ - @Nullable - @NativeType("XrHapticBaseHeader const *") - public XrHapticBaseHeader onHaptic() { return XrInteractionProfileAnalogThresholdVALVE.nonHaptic(address()); } - /** @return a {@link XrHapticBaseHeader} view of the struct pointed to by the {@link XrInteractionProfileAnalogThresholdVALVE#offHaptic} field. */ - @Nullable - @NativeType("XrHapticBaseHeader const *") - public XrHapticBaseHeader offHaptic() { return XrInteractionProfileAnalogThresholdVALVE.noffHaptic(address()); } - - /** Sets the specified value to the {@link XrInteractionProfileAnalogThresholdVALVE#type} field. */ - public XrInteractionProfileAnalogThresholdVALVE.Buffer type(@NativeType("XrStructureType") int value) { XrInteractionProfileAnalogThresholdVALVE.ntype(address(), value); return this; } - /** Sets the {@link VALVEAnalogThreshold#XR_TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE} value to the {@link XrInteractionProfileAnalogThresholdVALVE#type} field. */ - public XrInteractionProfileAnalogThresholdVALVE.Buffer type$Default() { return type(VALVEAnalogThreshold.XR_TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE); } - /** Sets the specified value to the {@link XrInteractionProfileAnalogThresholdVALVE#next} field. */ - public XrInteractionProfileAnalogThresholdVALVE.Buffer next(@NativeType("void const *") long value) { XrInteractionProfileAnalogThresholdVALVE.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrInteractionProfileAnalogThresholdVALVE#action} field. */ - public XrInteractionProfileAnalogThresholdVALVE.Buffer action(XrAction value) { XrInteractionProfileAnalogThresholdVALVE.naction(address(), value); return this; } - /** Sets the specified value to the {@link XrInteractionProfileAnalogThresholdVALVE#binding} field. */ - public XrInteractionProfileAnalogThresholdVALVE.Buffer binding(@NativeType("XrPath") long value) { XrInteractionProfileAnalogThresholdVALVE.nbinding(address(), value); return this; } - /** Sets the specified value to the {@link XrInteractionProfileAnalogThresholdVALVE#onThreshold} field. */ - public XrInteractionProfileAnalogThresholdVALVE.Buffer onThreshold(float value) { XrInteractionProfileAnalogThresholdVALVE.nonThreshold(address(), value); return this; } - /** Sets the specified value to the {@link XrInteractionProfileAnalogThresholdVALVE#offThreshold} field. */ - public XrInteractionProfileAnalogThresholdVALVE.Buffer offThreshold(float value) { XrInteractionProfileAnalogThresholdVALVE.noffThreshold(address(), value); return this; } - /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link XrInteractionProfileAnalogThresholdVALVE#onHaptic} field. */ - public XrInteractionProfileAnalogThresholdVALVE.Buffer onHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { XrInteractionProfileAnalogThresholdVALVE.nonHaptic(address(), value); return this; } - /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link XrInteractionProfileAnalogThresholdVALVE#offHaptic} field. */ - public XrInteractionProfileAnalogThresholdVALVE.Buffer offHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { XrInteractionProfileAnalogThresholdVALVE.noffHaptic(address(), value); return this; } + + /** @return the value of the {@link XrInteractionProfileAnalogThresholdVALVE#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrInteractionProfileAnalogThresholdVALVE.ntype(address()); } + /** @return the value of the {@link XrInteractionProfileAnalogThresholdVALVE#next} field. */ + @NativeType("void const *") + public long next() { return XrInteractionProfileAnalogThresholdVALVE.nnext(address()); } + /** @return the value of the {@link XrInteractionProfileAnalogThresholdVALVE#action} field. */ + @NativeType("XrAction") + public long action() { return XrInteractionProfileAnalogThresholdVALVE.naction(address()); } + /** @return the value of the {@link XrInteractionProfileAnalogThresholdVALVE#binding} field. */ + @NativeType("XrPath") + public long binding() { return XrInteractionProfileAnalogThresholdVALVE.nbinding(address()); } + /** @return the value of the {@link XrInteractionProfileAnalogThresholdVALVE#onThreshold} field. */ + public float onThreshold() { return XrInteractionProfileAnalogThresholdVALVE.nonThreshold(address()); } + /** @return the value of the {@link XrInteractionProfileAnalogThresholdVALVE#offThreshold} field. */ + public float offThreshold() { return XrInteractionProfileAnalogThresholdVALVE.noffThreshold(address()); } + /** @return a {@link XrHapticBaseHeader} view of the struct pointed to by the {@link XrInteractionProfileAnalogThresholdVALVE#onHaptic} field. */ + @Nullable + @NativeType("XrHapticBaseHeader const *") + public XrHapticBaseHeader onHaptic() { return XrInteractionProfileAnalogThresholdVALVE.nonHaptic(address()); } + /** @return a {@link XrHapticBaseHeader} view of the struct pointed to by the {@link XrInteractionProfileAnalogThresholdVALVE#offHaptic} field. */ + @Nullable + @NativeType("XrHapticBaseHeader const *") + public XrHapticBaseHeader offHaptic() { return XrInteractionProfileAnalogThresholdVALVE.noffHaptic(address()); } + + /** Sets the specified value to the {@link XrInteractionProfileAnalogThresholdVALVE#type} field. */ + public XrInteractionProfileAnalogThresholdVALVE.Buffer type(@NativeType("XrStructureType") int value) { XrInteractionProfileAnalogThresholdVALVE.ntype(address(), value); return this; } + /** Sets the {@link VALVEAnalogThreshold#XR_TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE} value to the {@link XrInteractionProfileAnalogThresholdVALVE#type} field. */ + public XrInteractionProfileAnalogThresholdVALVE.Buffer type$Default() { return type(VALVEAnalogThreshold.XR_TYPE_INTERACTION_PROFILE_ANALOG_THRESHOLD_VALVE); } + /** Sets the specified value to the {@link XrInteractionProfileAnalogThresholdVALVE#next} field. */ + public XrInteractionProfileAnalogThresholdVALVE.Buffer next(@NativeType("void const *") long value) { XrInteractionProfileAnalogThresholdVALVE.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrInteractionProfileAnalogThresholdVALVE#action} field. */ + public XrInteractionProfileAnalogThresholdVALVE.Buffer action(XrAction value) { XrInteractionProfileAnalogThresholdVALVE.naction(address(), value); return this; } + /** Sets the specified value to the {@link XrInteractionProfileAnalogThresholdVALVE#binding} field. */ + public XrInteractionProfileAnalogThresholdVALVE.Buffer binding(@NativeType("XrPath") long value) { XrInteractionProfileAnalogThresholdVALVE.nbinding(address(), value); return this; } + /** Sets the specified value to the {@link XrInteractionProfileAnalogThresholdVALVE#onThreshold} field. */ + public XrInteractionProfileAnalogThresholdVALVE.Buffer onThreshold(float value) { XrInteractionProfileAnalogThresholdVALVE.nonThreshold(address(), value); return this; } + /** Sets the specified value to the {@link XrInteractionProfileAnalogThresholdVALVE#offThreshold} field. */ + public XrInteractionProfileAnalogThresholdVALVE.Buffer offThreshold(float value) { XrInteractionProfileAnalogThresholdVALVE.noffThreshold(address(), value); return this; } + /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link XrInteractionProfileAnalogThresholdVALVE#onHaptic} field. */ + public XrInteractionProfileAnalogThresholdVALVE.Buffer onHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { XrInteractionProfileAnalogThresholdVALVE.nonHaptic(address(), value); return this; } + /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link XrInteractionProfileAnalogThresholdVALVE#offHaptic} field. */ + public XrInteractionProfileAnalogThresholdVALVE.Buffer offHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { XrInteractionProfileAnalogThresholdVALVE.noffHaptic(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileDpadBindingEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileDpadBindingEXT.java index 45d84c1558..e47522018f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileDpadBindingEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileDpadBindingEXT.java @@ -4,24 +4,24 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Interaction profile dpad binding. * *
                                                  Description
                                                  * - *

                                                  The {@link XrInteractionProfileDpadBindingEXT} structure is an input struct that defines how to use any two-axis input to provide dpad-like functionality to the application. The struct must be added for each input that should be treated as a dpad to the {@code bindingModifications} array of the {@link XrBindingModificationsKHR} structure (See {@link KHRBindingModification XR_KHR_binding_modification} extension).

                                                  + *

                                                  The {@link XrInteractionProfileDpadBindingEXT} structure is an input struct that defines how to use any two-axis input to provide dpad-like functionality to the application. The struct must be added for each input that should be treated as a dpad to the {@code bindingModifications} array of the {@link XrBindingModificationsKHR} structure (See XR_KHR_binding_modification extension).

                                                  * *

                                                  Runtimes are free to ignore any of the fields when not obeying the bindings, but may use it for automatic rebindings of actions.

                                                  * @@ -34,7 +34,7 @@ *
                                                • {@code wedgeAngle} outside the half-open range [0, π)
                                                • *
                                                * - *

                                                If more than one {@link XrInteractionProfileDpadBindingEXT} is provided for the same input identifier, including top level path (e.g. pathname:/user/hand/left/input/thumbstick), and two or more of them specify the same actionset, the runtime must return {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}. If the same input identifier, including top level path, is used for more than one action set, in addition to inputs being suppressed by higher priority action sets, haptic events from dpads are also suppressed.

                                                + *

                                                If more than one {@link XrInteractionProfileDpadBindingEXT} is provided for the same input identifier, including top level path (e.g. pathname:/user/hand/left/input/thumbstick), and two or more of them specify the same actionset, the runtime must return {@link XR10#XR_ERROR_VALIDATION_FAILURE ERROR_VALIDATION_FAILURE}. If the same input identifier, including top level path, is used for more than one action set, in addition to inputs being suppressed by higher priority action sets, haptic events from dpads are also suppressed.

                                                * *

                                                For example, a Valve Index controller binding with a "Walking" action set can have a dpad on each of:

                                                * @@ -52,7 +52,7 @@ *
                                                  *
                                                • The {@link EXTDpadBinding XR_EXT_dpad_binding} extension must be enabled prior to using {@link XrInteractionProfileDpadBindingEXT}
                                                • *
                                                • {@code type} must be {@link EXTDpadBinding#XR_TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT}
                                                • - *
                                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                • + *
                                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                • *
                                                • {@code actionSet} must be a valid {@code XrActionSet} handle
                                                • *
                                                • If {@code onHaptic} is not {@code NULL}, {@code onHaptic} must be a pointer to a valid {@link XrHapticBaseHeader}-based structure. See also: {@link XrHapticAmplitudeEnvelopeVibrationFB}, {@link XrHapticPcmVibrationFB}, {@link XrHapticVibration}
                                                • *
                                                • If {@code offHaptic} is not {@code NULL}, {@code offHaptic} must be a pointer to a valid {@link XrHapticBaseHeader}-based structure. See also: {@link XrHapticAmplitudeEnvelopeVibrationFB}, {@link XrHapticPcmVibrationFB}, {@link XrHapticVibration}
                                                • @@ -78,8 +78,8 @@ * {@link XrHapticBaseHeader XrHapticBaseHeader} const * {@link #onHaptic}; * {@link XrHapticBaseHeader XrHapticBaseHeader} const * {@link #offHaptic}; * } - */ -public class XrInteractionProfileDpadBindingEXT extends Struct implements NativeResource { + */ +public class XrInteractionProfileDpadBindingEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -89,48 +89,48 @@ public class XrInteractionProfileDpadBindingEXT extends Structmust use the parameters from this structure for any actions from this action set that are bound to one of the dpad subpaths for this input path. */ - @NativeType("XrActionSet") - public long actionSet() { return nactionSet(address()); } - /** a number in the half-open range (0, 1] representing the force value threshold at or above which (≥) a dpad input will transition from inactive to active. */ - public float forceThreshold() { return nforceThreshold(address()); } - /** a number in the half-open range (0, 1] representing the force value threshold strictly below which (<) a dpad input will transition from active to inactive. */ - public float forceThresholdReleased() { return nforceThresholdReleased(address()); } - /** defines the center region of the thumbstick or trackpad. This is the radius, in the input value space, of a logically circular region in the center of the input, in the range (0, 1). */ - public float centerRegion() { return ncenterRegion(address()); } - /** indicates the angle in radians of each direction region and is a value in the half-open range [0, π). */ - public float wedgeAngle() { return nwedgeAngle(address()); } - /** indicates that the implementation will latch the first region that is activated and continue to indicate that the binding for that region is true until the user releases the input underlying the virtual dpad. */ - @NativeType("XrBool32") - public boolean isSticky() { return nisSticky(address()) != 0; } - /** the haptic output that the runtime must trigger when the binding changes from false to true. If this field is {@code NULL}, the runtime must not trigger any haptic output on the threshold. This field can point to any supported sub-type of {@link XrHapticBaseHeader}. */ - @Nullable - @NativeType("XrHapticBaseHeader const *") - public XrHapticBaseHeader onHaptic() { return nonHaptic(address()); } - /** the haptic output that the runtime must trigger when the binding changes from true to false. If this field is NULL, the runtime must not trigger any haptic output on the threshold. This field can point to any supported sub-type of {@link XrHapticBaseHeader}. */ - @Nullable - @NativeType("XrHapticBaseHeader const *") - public XrHapticBaseHeader offHaptic() { return noffHaptic(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrInteractionProfileDpadBindingEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link EXTDpadBinding#XR_TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT} value to the {@link #type} field. */ - public XrInteractionProfileDpadBindingEXT type$Default() { return type(EXTDpadBinding.XR_TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT); } - /** Sets the specified value to the {@link #next} field. */ - public XrInteractionProfileDpadBindingEXT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #binding} field. */ - public XrInteractionProfileDpadBindingEXT binding(@NativeType("XrPath") long value) { nbinding(address(), value); return this; } - /** Sets the specified value to the {@link #actionSet} field. */ - public XrInteractionProfileDpadBindingEXT actionSet(XrActionSet value) { nactionSet(address(), value); return this; } - /** Sets the specified value to the {@link #forceThreshold} field. */ - public XrInteractionProfileDpadBindingEXT forceThreshold(float value) { nforceThreshold(address(), value); return this; } - /** Sets the specified value to the {@link #forceThresholdReleased} field. */ - public XrInteractionProfileDpadBindingEXT forceThresholdReleased(float value) { nforceThresholdReleased(address(), value); return this; } - /** Sets the specified value to the {@link #centerRegion} field. */ - public XrInteractionProfileDpadBindingEXT centerRegion(float value) { ncenterRegion(address(), value); return this; } - /** Sets the specified value to the {@link #wedgeAngle} field. */ - public XrInteractionProfileDpadBindingEXT wedgeAngle(float value) { nwedgeAngle(address(), value); return this; } - /** Sets the specified value to the {@link #isSticky} field. */ - public XrInteractionProfileDpadBindingEXT isSticky(@NativeType("XrBool32") boolean value) { nisSticky(address(), value ? 1 : 0); return this; } - /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link #onHaptic} field. */ - public XrInteractionProfileDpadBindingEXT onHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { nonHaptic(address(), value); return this; } - /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link #offHaptic} field. */ - public XrInteractionProfileDpadBindingEXT offHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { noffHaptic(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the input path used for the specified actions in the suggested binding list to be used as a dpad. E.g. path:/user/hand/right/input/thumbstick */ + @NativeType("XrPath") + public long binding() { return nbinding(address()); } + /** the action set for which this dpad will be active. The implementation must use the parameters from this structure for any actions from this action set that are bound to one of the dpad subpaths for this input path. */ + @NativeType("XrActionSet") + public long actionSet() { return nactionSet(address()); } + /** a number in the half-open range (0, 1] representing the force value threshold at or above which (≥) a dpad input will transition from inactive to active. */ + public float forceThreshold() { return nforceThreshold(address()); } + /** a number in the half-open range (0, 1] representing the force value threshold strictly below which (<) a dpad input will transition from active to inactive. */ + public float forceThresholdReleased() { return nforceThresholdReleased(address()); } + /** defines the center region of the thumbstick or trackpad. This is the radius, in the input value space, of a logically circular region in the center of the input, in the range (0, 1). */ + public float centerRegion() { return ncenterRegion(address()); } + /** indicates the angle in radians of each direction region and is a value in the half-open range [0, π). */ + public float wedgeAngle() { return nwedgeAngle(address()); } + /** indicates that the implementation will latch the first region that is activated and continue to indicate that the binding for that region is true until the user releases the input underlying the virtual dpad. */ + @NativeType("XrBool32") + public boolean isSticky() { return nisSticky(address()) != 0; } + /** the haptic output that the runtime must trigger when the binding changes from false to true. If this field is {@code NULL}, the runtime must not trigger any haptic output on the threshold. This field can point to any supported sub-type of {@link XrHapticBaseHeader}. */ + @Nullable + @NativeType("XrHapticBaseHeader const *") + public XrHapticBaseHeader onHaptic() { return nonHaptic(address()); } + /** the haptic output that the runtime must trigger when the binding changes from true to false. If this field is NULL, the runtime must not trigger any haptic output on the threshold. This field can point to any supported sub-type of {@link XrHapticBaseHeader}. */ + @Nullable + @NativeType("XrHapticBaseHeader const *") + public XrHapticBaseHeader offHaptic() { return noffHaptic(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrInteractionProfileDpadBindingEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link EXTDpadBinding#XR_TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT} value to the {@link #type} field. */ + public XrInteractionProfileDpadBindingEXT type$Default() { return type(EXTDpadBinding.XR_TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT); } + /** Sets the specified value to the {@link #next} field. */ + public XrInteractionProfileDpadBindingEXT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #binding} field. */ + public XrInteractionProfileDpadBindingEXT binding(@NativeType("XrPath") long value) { nbinding(address(), value); return this; } + /** Sets the specified value to the {@link #actionSet} field. */ + public XrInteractionProfileDpadBindingEXT actionSet(XrActionSet value) { nactionSet(address(), value); return this; } + /** Sets the specified value to the {@link #forceThreshold} field. */ + public XrInteractionProfileDpadBindingEXT forceThreshold(float value) { nforceThreshold(address(), value); return this; } + /** Sets the specified value to the {@link #forceThresholdReleased} field. */ + public XrInteractionProfileDpadBindingEXT forceThresholdReleased(float value) { nforceThresholdReleased(address(), value); return this; } + /** Sets the specified value to the {@link #centerRegion} field. */ + public XrInteractionProfileDpadBindingEXT centerRegion(float value) { ncenterRegion(address(), value); return this; } + /** Sets the specified value to the {@link #wedgeAngle} field. */ + public XrInteractionProfileDpadBindingEXT wedgeAngle(float value) { nwedgeAngle(address(), value); return this; } + /** Sets the specified value to the {@link #isSticky} field. */ + public XrInteractionProfileDpadBindingEXT isSticky(@NativeType("XrBool32") boolean value) { nisSticky(address(), value ? 1 : 0); return this; } + /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link #onHaptic} field. */ + public XrInteractionProfileDpadBindingEXT onHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { nonHaptic(address(), value); return this; } + /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link #offHaptic} field. */ + public XrInteractionProfileDpadBindingEXT offHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { noffHaptic(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrInteractionProfileDpadBindingEXT set( - int type, - long next, - long binding, - XrActionSet actionSet, - float forceThreshold, - float forceThresholdReleased, - float centerRegion, - float wedgeAngle, - boolean isSticky, - @Nullable XrHapticBaseHeader onHaptic, + int type, + long next, + long binding, + XrActionSet actionSet, + float forceThreshold, + float forceThresholdReleased, + float centerRegion, + float wedgeAngle, + boolean isSticky, + @Nullable XrHapticBaseHeader onHaptic, @Nullable XrHapticBaseHeader offHaptic - ) { - type(type); - next(next); - binding(binding); - actionSet(actionSet); - forceThreshold(forceThreshold); - forceThresholdReleased(forceThresholdReleased); - centerRegion(centerRegion); - wedgeAngle(wedgeAngle); - isSticky(isSticky); - onHaptic(onHaptic); - offHaptic(offHaptic); + ) { + type(type); + next(next); + binding(binding); + actionSet(actionSet); + forceThreshold(forceThreshold); + forceThresholdReleased(forceThresholdReleased); + centerRegion(centerRegion); + wedgeAngle(wedgeAngle); + isSticky(isSticky); + onHaptic(onHaptic); + offHaptic(offHaptic); return this; } @@ -374,52 +374,52 @@ public static XrInteractionProfileDpadBindingEXT.Buffer calloc(int capacity, Mem } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrInteractionProfileDpadBindingEXT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrInteractionProfileDpadBindingEXT.NEXT); } - /** Unsafe version of {@link #binding}. */ - public static long nbinding(long struct) { return UNSAFE.getLong(null, struct + XrInteractionProfileDpadBindingEXT.BINDING); } - /** Unsafe version of {@link #actionSet}. */ - public static long nactionSet(long struct) { return memGetAddress(struct + XrInteractionProfileDpadBindingEXT.ACTIONSET); } - /** Unsafe version of {@link #forceThreshold}. */ - public static float nforceThreshold(long struct) { return UNSAFE.getFloat(null, struct + XrInteractionProfileDpadBindingEXT.FORCETHRESHOLD); } - /** Unsafe version of {@link #forceThresholdReleased}. */ - public static float nforceThresholdReleased(long struct) { return UNSAFE.getFloat(null, struct + XrInteractionProfileDpadBindingEXT.FORCETHRESHOLDRELEASED); } - /** Unsafe version of {@link #centerRegion}. */ - public static float ncenterRegion(long struct) { return UNSAFE.getFloat(null, struct + XrInteractionProfileDpadBindingEXT.CENTERREGION); } - /** Unsafe version of {@link #wedgeAngle}. */ - public static float nwedgeAngle(long struct) { return UNSAFE.getFloat(null, struct + XrInteractionProfileDpadBindingEXT.WEDGEANGLE); } - /** Unsafe version of {@link #isSticky}. */ - public static int nisSticky(long struct) { return UNSAFE.getInt(null, struct + XrInteractionProfileDpadBindingEXT.ISSTICKY); } - /** Unsafe version of {@link #onHaptic}. */ - @Nullable public static XrHapticBaseHeader nonHaptic(long struct) { return XrHapticBaseHeader.createSafe(memGetAddress(struct + XrInteractionProfileDpadBindingEXT.ONHAPTIC)); } - /** Unsafe version of {@link #offHaptic}. */ - @Nullable public static XrHapticBaseHeader noffHaptic(long struct) { return XrHapticBaseHeader.createSafe(memGetAddress(struct + XrInteractionProfileDpadBindingEXT.OFFHAPTIC)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrInteractionProfileDpadBindingEXT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrInteractionProfileDpadBindingEXT.NEXT, value); } - /** Unsafe version of {@link #binding(long) binding}. */ - public static void nbinding(long struct, long value) { UNSAFE.putLong(null, struct + XrInteractionProfileDpadBindingEXT.BINDING, value); } - /** Unsafe version of {@link #actionSet(XrActionSet) actionSet}. */ - public static void nactionSet(long struct, XrActionSet value) { memPutAddress(struct + XrInteractionProfileDpadBindingEXT.ACTIONSET, value.address()); } - /** Unsafe version of {@link #forceThreshold(float) forceThreshold}. */ - public static void nforceThreshold(long struct, float value) { UNSAFE.putFloat(null, struct + XrInteractionProfileDpadBindingEXT.FORCETHRESHOLD, value); } - /** Unsafe version of {@link #forceThresholdReleased(float) forceThresholdReleased}. */ - public static void nforceThresholdReleased(long struct, float value) { UNSAFE.putFloat(null, struct + XrInteractionProfileDpadBindingEXT.FORCETHRESHOLDRELEASED, value); } - /** Unsafe version of {@link #centerRegion(float) centerRegion}. */ - public static void ncenterRegion(long struct, float value) { UNSAFE.putFloat(null, struct + XrInteractionProfileDpadBindingEXT.CENTERREGION, value); } - /** Unsafe version of {@link #wedgeAngle(float) wedgeAngle}. */ - public static void nwedgeAngle(long struct, float value) { UNSAFE.putFloat(null, struct + XrInteractionProfileDpadBindingEXT.WEDGEANGLE, value); } - /** Unsafe version of {@link #isSticky(boolean) isSticky}. */ - public static void nisSticky(long struct, int value) { UNSAFE.putInt(null, struct + XrInteractionProfileDpadBindingEXT.ISSTICKY, value); } - /** Unsafe version of {@link #onHaptic(XrHapticBaseHeader) onHaptic}. */ - public static void nonHaptic(long struct, @Nullable XrHapticBaseHeader value) { memPutAddress(struct + XrInteractionProfileDpadBindingEXT.ONHAPTIC, memAddressSafe(value)); } - /** Unsafe version of {@link #offHaptic(XrHapticBaseHeader) offHaptic}. */ - public static void noffHaptic(long struct, @Nullable XrHapticBaseHeader value) { memPutAddress(struct + XrInteractionProfileDpadBindingEXT.OFFHAPTIC, memAddressSafe(value)); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrInteractionProfileDpadBindingEXT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrInteractionProfileDpadBindingEXT.NEXT); } + /** Unsafe version of {@link #binding}. */ + public static long nbinding(long struct) { return UNSAFE.getLong(null, struct + XrInteractionProfileDpadBindingEXT.BINDING); } + /** Unsafe version of {@link #actionSet}. */ + public static long nactionSet(long struct) { return memGetAddress(struct + XrInteractionProfileDpadBindingEXT.ACTIONSET); } + /** Unsafe version of {@link #forceThreshold}. */ + public static float nforceThreshold(long struct) { return UNSAFE.getFloat(null, struct + XrInteractionProfileDpadBindingEXT.FORCETHRESHOLD); } + /** Unsafe version of {@link #forceThresholdReleased}. */ + public static float nforceThresholdReleased(long struct) { return UNSAFE.getFloat(null, struct + XrInteractionProfileDpadBindingEXT.FORCETHRESHOLDRELEASED); } + /** Unsafe version of {@link #centerRegion}. */ + public static float ncenterRegion(long struct) { return UNSAFE.getFloat(null, struct + XrInteractionProfileDpadBindingEXT.CENTERREGION); } + /** Unsafe version of {@link #wedgeAngle}. */ + public static float nwedgeAngle(long struct) { return UNSAFE.getFloat(null, struct + XrInteractionProfileDpadBindingEXT.WEDGEANGLE); } + /** Unsafe version of {@link #isSticky}. */ + public static int nisSticky(long struct) { return UNSAFE.getInt(null, struct + XrInteractionProfileDpadBindingEXT.ISSTICKY); } + /** Unsafe version of {@link #onHaptic}. */ + @Nullable public static XrHapticBaseHeader nonHaptic(long struct) { return XrHapticBaseHeader.createSafe(memGetAddress(struct + XrInteractionProfileDpadBindingEXT.ONHAPTIC)); } + /** Unsafe version of {@link #offHaptic}. */ + @Nullable public static XrHapticBaseHeader noffHaptic(long struct) { return XrHapticBaseHeader.createSafe(memGetAddress(struct + XrInteractionProfileDpadBindingEXT.OFFHAPTIC)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrInteractionProfileDpadBindingEXT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrInteractionProfileDpadBindingEXT.NEXT, value); } + /** Unsafe version of {@link #binding(long) binding}. */ + public static void nbinding(long struct, long value) { UNSAFE.putLong(null, struct + XrInteractionProfileDpadBindingEXT.BINDING, value); } + /** Unsafe version of {@link #actionSet(XrActionSet) actionSet}. */ + public static void nactionSet(long struct, XrActionSet value) { memPutAddress(struct + XrInteractionProfileDpadBindingEXT.ACTIONSET, value.address()); } + /** Unsafe version of {@link #forceThreshold(float) forceThreshold}. */ + public static void nforceThreshold(long struct, float value) { UNSAFE.putFloat(null, struct + XrInteractionProfileDpadBindingEXT.FORCETHRESHOLD, value); } + /** Unsafe version of {@link #forceThresholdReleased(float) forceThresholdReleased}. */ + public static void nforceThresholdReleased(long struct, float value) { UNSAFE.putFloat(null, struct + XrInteractionProfileDpadBindingEXT.FORCETHRESHOLDRELEASED, value); } + /** Unsafe version of {@link #centerRegion(float) centerRegion}. */ + public static void ncenterRegion(long struct, float value) { UNSAFE.putFloat(null, struct + XrInteractionProfileDpadBindingEXT.CENTERREGION, value); } + /** Unsafe version of {@link #wedgeAngle(float) wedgeAngle}. */ + public static void nwedgeAngle(long struct, float value) { UNSAFE.putFloat(null, struct + XrInteractionProfileDpadBindingEXT.WEDGEANGLE, value); } + /** Unsafe version of {@link #isSticky(boolean) isSticky}. */ + public static void nisSticky(long struct, int value) { UNSAFE.putInt(null, struct + XrInteractionProfileDpadBindingEXT.ISSTICKY, value); } + /** Unsafe version of {@link #onHaptic(XrHapticBaseHeader) onHaptic}. */ + public static void nonHaptic(long struct, @Nullable XrHapticBaseHeader value) { memPutAddress(struct + XrInteractionProfileDpadBindingEXT.ONHAPTIC, memAddressSafe(value)); } + /** Unsafe version of {@link #offHaptic(XrHapticBaseHeader) offHaptic}. */ + public static void noffHaptic(long struct, @Nullable XrHapticBaseHeader value) { memPutAddress(struct + XrInteractionProfileDpadBindingEXT.OFFHAPTIC, memAddressSafe(value)); } /** * Validates pointer members that should not be {@code NULL}. @@ -428,9 +428,9 @@ public static XrInteractionProfileDpadBindingEXT.Buffer calloc(int capacity, Mem */ public static void validate(long struct) { check(memGetAddress(struct + XrInteractionProfileDpadBindingEXT.ACTIONSET)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrInteractionProfileDpadBindingEXT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -467,63 +467,63 @@ protected Buffer self() { protected XrInteractionProfileDpadBindingEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrInteractionProfileDpadBindingEXT.ntype(address()); } - /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#next} field. */ - @NativeType("void const *") - public long next() { return XrInteractionProfileDpadBindingEXT.nnext(address()); } - /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#binding} field. */ - @NativeType("XrPath") - public long binding() { return XrInteractionProfileDpadBindingEXT.nbinding(address()); } - /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#actionSet} field. */ - @NativeType("XrActionSet") - public long actionSet() { return XrInteractionProfileDpadBindingEXT.nactionSet(address()); } - /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#forceThreshold} field. */ - public float forceThreshold() { return XrInteractionProfileDpadBindingEXT.nforceThreshold(address()); } - /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#forceThresholdReleased} field. */ - public float forceThresholdReleased() { return XrInteractionProfileDpadBindingEXT.nforceThresholdReleased(address()); } - /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#centerRegion} field. */ - public float centerRegion() { return XrInteractionProfileDpadBindingEXT.ncenterRegion(address()); } - /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#wedgeAngle} field. */ - public float wedgeAngle() { return XrInteractionProfileDpadBindingEXT.nwedgeAngle(address()); } - /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#isSticky} field. */ - @NativeType("XrBool32") - public boolean isSticky() { return XrInteractionProfileDpadBindingEXT.nisSticky(address()) != 0; } - /** @return a {@link XrHapticBaseHeader} view of the struct pointed to by the {@link XrInteractionProfileDpadBindingEXT#onHaptic} field. */ - @Nullable - @NativeType("XrHapticBaseHeader const *") - public XrHapticBaseHeader onHaptic() { return XrInteractionProfileDpadBindingEXT.nonHaptic(address()); } - /** @return a {@link XrHapticBaseHeader} view of the struct pointed to by the {@link XrInteractionProfileDpadBindingEXT#offHaptic} field. */ - @Nullable - @NativeType("XrHapticBaseHeader const *") - public XrHapticBaseHeader offHaptic() { return XrInteractionProfileDpadBindingEXT.noffHaptic(address()); } - - /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#type} field. */ - public XrInteractionProfileDpadBindingEXT.Buffer type(@NativeType("XrStructureType") int value) { XrInteractionProfileDpadBindingEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTDpadBinding#XR_TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT} value to the {@link XrInteractionProfileDpadBindingEXT#type} field. */ - public XrInteractionProfileDpadBindingEXT.Buffer type$Default() { return type(EXTDpadBinding.XR_TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT); } - /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#next} field. */ - public XrInteractionProfileDpadBindingEXT.Buffer next(@NativeType("void const *") long value) { XrInteractionProfileDpadBindingEXT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#binding} field. */ - public XrInteractionProfileDpadBindingEXT.Buffer binding(@NativeType("XrPath") long value) { XrInteractionProfileDpadBindingEXT.nbinding(address(), value); return this; } - /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#actionSet} field. */ - public XrInteractionProfileDpadBindingEXT.Buffer actionSet(XrActionSet value) { XrInteractionProfileDpadBindingEXT.nactionSet(address(), value); return this; } - /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#forceThreshold} field. */ - public XrInteractionProfileDpadBindingEXT.Buffer forceThreshold(float value) { XrInteractionProfileDpadBindingEXT.nforceThreshold(address(), value); return this; } - /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#forceThresholdReleased} field. */ - public XrInteractionProfileDpadBindingEXT.Buffer forceThresholdReleased(float value) { XrInteractionProfileDpadBindingEXT.nforceThresholdReleased(address(), value); return this; } - /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#centerRegion} field. */ - public XrInteractionProfileDpadBindingEXT.Buffer centerRegion(float value) { XrInteractionProfileDpadBindingEXT.ncenterRegion(address(), value); return this; } - /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#wedgeAngle} field. */ - public XrInteractionProfileDpadBindingEXT.Buffer wedgeAngle(float value) { XrInteractionProfileDpadBindingEXT.nwedgeAngle(address(), value); return this; } - /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#isSticky} field. */ - public XrInteractionProfileDpadBindingEXT.Buffer isSticky(@NativeType("XrBool32") boolean value) { XrInteractionProfileDpadBindingEXT.nisSticky(address(), value ? 1 : 0); return this; } - /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link XrInteractionProfileDpadBindingEXT#onHaptic} field. */ - public XrInteractionProfileDpadBindingEXT.Buffer onHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { XrInteractionProfileDpadBindingEXT.nonHaptic(address(), value); return this; } - /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link XrInteractionProfileDpadBindingEXT#offHaptic} field. */ - public XrInteractionProfileDpadBindingEXT.Buffer offHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { XrInteractionProfileDpadBindingEXT.noffHaptic(address(), value); return this; } + + /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrInteractionProfileDpadBindingEXT.ntype(address()); } + /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#next} field. */ + @NativeType("void const *") + public long next() { return XrInteractionProfileDpadBindingEXT.nnext(address()); } + /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#binding} field. */ + @NativeType("XrPath") + public long binding() { return XrInteractionProfileDpadBindingEXT.nbinding(address()); } + /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#actionSet} field. */ + @NativeType("XrActionSet") + public long actionSet() { return XrInteractionProfileDpadBindingEXT.nactionSet(address()); } + /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#forceThreshold} field. */ + public float forceThreshold() { return XrInteractionProfileDpadBindingEXT.nforceThreshold(address()); } + /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#forceThresholdReleased} field. */ + public float forceThresholdReleased() { return XrInteractionProfileDpadBindingEXT.nforceThresholdReleased(address()); } + /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#centerRegion} field. */ + public float centerRegion() { return XrInteractionProfileDpadBindingEXT.ncenterRegion(address()); } + /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#wedgeAngle} field. */ + public float wedgeAngle() { return XrInteractionProfileDpadBindingEXT.nwedgeAngle(address()); } + /** @return the value of the {@link XrInteractionProfileDpadBindingEXT#isSticky} field. */ + @NativeType("XrBool32") + public boolean isSticky() { return XrInteractionProfileDpadBindingEXT.nisSticky(address()) != 0; } + /** @return a {@link XrHapticBaseHeader} view of the struct pointed to by the {@link XrInteractionProfileDpadBindingEXT#onHaptic} field. */ + @Nullable + @NativeType("XrHapticBaseHeader const *") + public XrHapticBaseHeader onHaptic() { return XrInteractionProfileDpadBindingEXT.nonHaptic(address()); } + /** @return a {@link XrHapticBaseHeader} view of the struct pointed to by the {@link XrInteractionProfileDpadBindingEXT#offHaptic} field. */ + @Nullable + @NativeType("XrHapticBaseHeader const *") + public XrHapticBaseHeader offHaptic() { return XrInteractionProfileDpadBindingEXT.noffHaptic(address()); } + + /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#type} field. */ + public XrInteractionProfileDpadBindingEXT.Buffer type(@NativeType("XrStructureType") int value) { XrInteractionProfileDpadBindingEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTDpadBinding#XR_TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT} value to the {@link XrInteractionProfileDpadBindingEXT#type} field. */ + public XrInteractionProfileDpadBindingEXT.Buffer type$Default() { return type(EXTDpadBinding.XR_TYPE_INTERACTION_PROFILE_DPAD_BINDING_EXT); } + /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#next} field. */ + public XrInteractionProfileDpadBindingEXT.Buffer next(@NativeType("void const *") long value) { XrInteractionProfileDpadBindingEXT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#binding} field. */ + public XrInteractionProfileDpadBindingEXT.Buffer binding(@NativeType("XrPath") long value) { XrInteractionProfileDpadBindingEXT.nbinding(address(), value); return this; } + /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#actionSet} field. */ + public XrInteractionProfileDpadBindingEXT.Buffer actionSet(XrActionSet value) { XrInteractionProfileDpadBindingEXT.nactionSet(address(), value); return this; } + /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#forceThreshold} field. */ + public XrInteractionProfileDpadBindingEXT.Buffer forceThreshold(float value) { XrInteractionProfileDpadBindingEXT.nforceThreshold(address(), value); return this; } + /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#forceThresholdReleased} field. */ + public XrInteractionProfileDpadBindingEXT.Buffer forceThresholdReleased(float value) { XrInteractionProfileDpadBindingEXT.nforceThresholdReleased(address(), value); return this; } + /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#centerRegion} field. */ + public XrInteractionProfileDpadBindingEXT.Buffer centerRegion(float value) { XrInteractionProfileDpadBindingEXT.ncenterRegion(address(), value); return this; } + /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#wedgeAngle} field. */ + public XrInteractionProfileDpadBindingEXT.Buffer wedgeAngle(float value) { XrInteractionProfileDpadBindingEXT.nwedgeAngle(address(), value); return this; } + /** Sets the specified value to the {@link XrInteractionProfileDpadBindingEXT#isSticky} field. */ + public XrInteractionProfileDpadBindingEXT.Buffer isSticky(@NativeType("XrBool32") boolean value) { XrInteractionProfileDpadBindingEXT.nisSticky(address(), value ? 1 : 0); return this; } + /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link XrInteractionProfileDpadBindingEXT#onHaptic} field. */ + public XrInteractionProfileDpadBindingEXT.Buffer onHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { XrInteractionProfileDpadBindingEXT.nonHaptic(address(), value); return this; } + /** Sets the address of the specified {@link XrHapticBaseHeader} to the {@link XrInteractionProfileDpadBindingEXT#offHaptic} field. */ + public XrInteractionProfileDpadBindingEXT.Buffer offHaptic(@Nullable @NativeType("XrHapticBaseHeader const *") XrHapticBaseHeader value) { XrInteractionProfileDpadBindingEXT.noffHaptic(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileState.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileState.java index 815504ac52..0fc3dba501 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileState.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileState.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Receives active interaction profile for a top level path. * @@ -26,7 +26,7 @@ * * * *
                                                  See Also
                                                  @@ -41,8 +41,8 @@ * void * {@link #next}; * XrPath {@link #interactionProfile}; * } - */ -public class XrInteractionProfileState extends Struct implements NativeResource { + */ +public class XrInteractionProfileState extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,24 +52,24 @@ public class XrInteractionProfileState extends Struct /** The struct member offsets. */ public static final int - TYPE, - NEXT, - INTERACTIONPROFILE; + TYPE, + NEXT, + INTERACTIONPROFILE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - INTERACTIONPROFILE = layout.offsetof(2); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + INTERACTIONPROFILE = layout.offsetof(2); + } protected XrInteractionProfileState(long address, @Nullable ByteBuffer container) { super(address, container); @@ -92,35 +92,35 @@ public XrInteractionProfileState(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** the {@code XrPath} of the interaction profile path for the {@code topLevelUserPath} used to retrieve this state, or {@link XR10#XR_NULL_PATH NULL_PATH} if there is no active interaction profile at that top level user path. */ - @NativeType("XrPath") - public long interactionProfile() { return ninteractionProfile(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrInteractionProfileState type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_INTERACTION_PROFILE_STATE TYPE_INTERACTION_PROFILE_STATE} value to the {@link #type} field. */ - public XrInteractionProfileState type$Default() { return type(XR10.XR_TYPE_INTERACTION_PROFILE_STATE); } - /** Sets the specified value to the {@link #next} field. */ - public XrInteractionProfileState next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #interactionProfile} field. */ - public XrInteractionProfileState interactionProfile(@NativeType("XrPath") long value) { ninteractionProfile(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the {@code XrPath} of the interaction profile path for the {@code topLevelUserPath} used to retrieve this state, or {@link XR10#XR_NULL_PATH NULL_PATH} if there is no active interaction profile at that top level user path. */ + @NativeType("XrPath") + public long interactionProfile() { return ninteractionProfile(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrInteractionProfileState type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_INTERACTION_PROFILE_STATE TYPE_INTERACTION_PROFILE_STATE} value to the {@link #type} field. */ + public XrInteractionProfileState type$Default() { return type(XR10.XR_TYPE_INTERACTION_PROFILE_STATE); } + /** Sets the specified value to the {@link #next} field. */ + public XrInteractionProfileState next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #interactionProfile} field. */ + public XrInteractionProfileState interactionProfile(@NativeType("XrPath") long value) { ninteractionProfile(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrInteractionProfileState set( - int type, - long next, + int type, + long next, long interactionProfile - ) { - type(type); - next(next); - interactionProfile(interactionProfile); + ) { + type(type); + next(next); + interactionProfile(interactionProfile); return this; } @@ -249,22 +249,22 @@ public static XrInteractionProfileState.Buffer calloc(int capacity, MemoryStack } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrInteractionProfileState.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrInteractionProfileState.NEXT); } - /** Unsafe version of {@link #interactionProfile}. */ - public static long ninteractionProfile(long struct) { return UNSAFE.getLong(null, struct + XrInteractionProfileState.INTERACTIONPROFILE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrInteractionProfileState.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrInteractionProfileState.NEXT, value); } - /** Unsafe version of {@link #interactionProfile(long) interactionProfile}. */ - public static void ninteractionProfile(long struct, long value) { UNSAFE.putLong(null, struct + XrInteractionProfileState.INTERACTIONPROFILE, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrInteractionProfileState.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrInteractionProfileState.NEXT); } + /** Unsafe version of {@link #interactionProfile}. */ + public static long ninteractionProfile(long struct) { return UNSAFE.getLong(null, struct + XrInteractionProfileState.INTERACTIONPROFILE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrInteractionProfileState.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrInteractionProfileState.NEXT, value); } + /** Unsafe version of {@link #interactionProfile(long) interactionProfile}. */ + public static void ninteractionProfile(long struct, long value) { UNSAFE.putLong(null, struct + XrInteractionProfileState.INTERACTIONPROFILE, value); } + + // ----------------------------------- /** An array of {@link XrInteractionProfileState} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -301,25 +301,25 @@ protected Buffer self() { protected XrInteractionProfileState getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrInteractionProfileState#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrInteractionProfileState.ntype(address()); } - /** @return the value of the {@link XrInteractionProfileState#next} field. */ - @NativeType("void *") - public long next() { return XrInteractionProfileState.nnext(address()); } - /** @return the value of the {@link XrInteractionProfileState#interactionProfile} field. */ - @NativeType("XrPath") - public long interactionProfile() { return XrInteractionProfileState.ninteractionProfile(address()); } - - /** Sets the specified value to the {@link XrInteractionProfileState#type} field. */ - public XrInteractionProfileState.Buffer type(@NativeType("XrStructureType") int value) { XrInteractionProfileState.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_INTERACTION_PROFILE_STATE TYPE_INTERACTION_PROFILE_STATE} value to the {@link XrInteractionProfileState#type} field. */ - public XrInteractionProfileState.Buffer type$Default() { return type(XR10.XR_TYPE_INTERACTION_PROFILE_STATE); } - /** Sets the specified value to the {@link XrInteractionProfileState#next} field. */ - public XrInteractionProfileState.Buffer next(@NativeType("void *") long value) { XrInteractionProfileState.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrInteractionProfileState#interactionProfile} field. */ - public XrInteractionProfileState.Buffer interactionProfile(@NativeType("XrPath") long value) { XrInteractionProfileState.ninteractionProfile(address(), value); return this; } + + /** @return the value of the {@link XrInteractionProfileState#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrInteractionProfileState.ntype(address()); } + /** @return the value of the {@link XrInteractionProfileState#next} field. */ + @NativeType("void *") + public long next() { return XrInteractionProfileState.nnext(address()); } + /** @return the value of the {@link XrInteractionProfileState#interactionProfile} field. */ + @NativeType("XrPath") + public long interactionProfile() { return XrInteractionProfileState.ninteractionProfile(address()); } + + /** Sets the specified value to the {@link XrInteractionProfileState#type} field. */ + public XrInteractionProfileState.Buffer type(@NativeType("XrStructureType") int value) { XrInteractionProfileState.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_INTERACTION_PROFILE_STATE TYPE_INTERACTION_PROFILE_STATE} value to the {@link XrInteractionProfileState#type} field. */ + public XrInteractionProfileState.Buffer type$Default() { return type(XR10.XR_TYPE_INTERACTION_PROFILE_STATE); } + /** Sets the specified value to the {@link XrInteractionProfileState#next} field. */ + public XrInteractionProfileState.Buffer next(@NativeType("void *") long value) { XrInteractionProfileState.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrInteractionProfileState#interactionProfile} field. */ + public XrInteractionProfileState.Buffer interactionProfile(@NativeType("XrPath") long value) { XrInteractionProfileState.ninteractionProfile(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileSuggestedBinding.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileSuggestedBinding.java index 3583048148..aa5ae87468 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileSuggestedBinding.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrInteractionProfileSuggestedBinding.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Suggested bindings for a interaction profile. * @@ -23,7 +23,7 @@ * *
                                                    *
                                                  • {@code type} must be {@link XR10#XR_TYPE_INTERACTION_PROFILE_SUGGESTED_BINDING TYPE_INTERACTION_PROFILE_SUGGESTED_BINDING}
                                                  • - *
                                                  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrBindingModificationsKHR}
                                                  • + *
                                                  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrBindingModificationsKHR}
                                                  • *
                                                  • {@code suggestedBindings} must be a pointer to an array of {@code countSuggestedBindings} valid {@link XrActionSuggestedBinding} structures
                                                  • *
                                                  • The {@code countSuggestedBindings} parameter must be greater than 0
                                                  • *
                                                  @@ -42,8 +42,8 @@ * uint32_t {@link #countSuggestedBindings}; * {@link XrActionSuggestedBinding XrActionSuggestedBinding} const * {@link #suggestedBindings}; * } - */ -public class XrInteractionProfileSuggestedBinding extends Struct implements NativeResource { + */ +public class XrInteractionProfileSuggestedBinding extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,30 +53,30 @@ public class XrInteractionProfileSuggestedBinding extends Struct implements NativeResource { @@ -340,35 +340,35 @@ protected Buffer self() { protected XrInteractionProfileSuggestedBinding getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrInteractionProfileSuggestedBinding#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrInteractionProfileSuggestedBinding.ntype(address()); } - /** @return the value of the {@link XrInteractionProfileSuggestedBinding#next} field. */ - @NativeType("void const *") - public long next() { return XrInteractionProfileSuggestedBinding.nnext(address()); } - /** @return the value of the {@link XrInteractionProfileSuggestedBinding#interactionProfile} field. */ - @NativeType("XrPath") - public long interactionProfile() { return XrInteractionProfileSuggestedBinding.ninteractionProfile(address()); } - /** @return the value of the {@link XrInteractionProfileSuggestedBinding#countSuggestedBindings} field. */ - @NativeType("uint32_t") - public int countSuggestedBindings() { return XrInteractionProfileSuggestedBinding.ncountSuggestedBindings(address()); } - /** @return a {@link XrActionSuggestedBinding.Buffer} view of the struct array pointed to by the {@link XrInteractionProfileSuggestedBinding#suggestedBindings} field. */ - @NativeType("XrActionSuggestedBinding const *") - public XrActionSuggestedBinding.Buffer suggestedBindings() { return XrInteractionProfileSuggestedBinding.nsuggestedBindings(address()); } - - /** Sets the specified value to the {@link XrInteractionProfileSuggestedBinding#type} field. */ - public XrInteractionProfileSuggestedBinding.Buffer type(@NativeType("XrStructureType") int value) { XrInteractionProfileSuggestedBinding.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_INTERACTION_PROFILE_SUGGESTED_BINDING TYPE_INTERACTION_PROFILE_SUGGESTED_BINDING} value to the {@link XrInteractionProfileSuggestedBinding#type} field. */ - public XrInteractionProfileSuggestedBinding.Buffer type$Default() { return type(XR10.XR_TYPE_INTERACTION_PROFILE_SUGGESTED_BINDING); } - /** Sets the specified value to the {@link XrInteractionProfileSuggestedBinding#next} field. */ - public XrInteractionProfileSuggestedBinding.Buffer next(@NativeType("void const *") long value) { XrInteractionProfileSuggestedBinding.nnext(address(), value); return this; } - /** Prepends the specified {@link XrBindingModificationsKHR} value to the {@code next} chain. */ - public XrInteractionProfileSuggestedBinding.Buffer next(XrBindingModificationsKHR value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrInteractionProfileSuggestedBinding#interactionProfile} field. */ - public XrInteractionProfileSuggestedBinding.Buffer interactionProfile(@NativeType("XrPath") long value) { XrInteractionProfileSuggestedBinding.ninteractionProfile(address(), value); return this; } - /** Sets the address of the specified {@link XrActionSuggestedBinding.Buffer} to the {@link XrInteractionProfileSuggestedBinding#suggestedBindings} field. */ - public XrInteractionProfileSuggestedBinding.Buffer suggestedBindings(@NativeType("XrActionSuggestedBinding const *") XrActionSuggestedBinding.Buffer value) { XrInteractionProfileSuggestedBinding.nsuggestedBindings(address(), value); return this; } + + /** @return the value of the {@link XrInteractionProfileSuggestedBinding#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrInteractionProfileSuggestedBinding.ntype(address()); } + /** @return the value of the {@link XrInteractionProfileSuggestedBinding#next} field. */ + @NativeType("void const *") + public long next() { return XrInteractionProfileSuggestedBinding.nnext(address()); } + /** @return the value of the {@link XrInteractionProfileSuggestedBinding#interactionProfile} field. */ + @NativeType("XrPath") + public long interactionProfile() { return XrInteractionProfileSuggestedBinding.ninteractionProfile(address()); } + /** @return the value of the {@link XrInteractionProfileSuggestedBinding#countSuggestedBindings} field. */ + @NativeType("uint32_t") + public int countSuggestedBindings() { return XrInteractionProfileSuggestedBinding.ncountSuggestedBindings(address()); } + /** @return a {@link XrActionSuggestedBinding.Buffer} view of the struct array pointed to by the {@link XrInteractionProfileSuggestedBinding#suggestedBindings} field. */ + @NativeType("XrActionSuggestedBinding const *") + public XrActionSuggestedBinding.Buffer suggestedBindings() { return XrInteractionProfileSuggestedBinding.nsuggestedBindings(address()); } + + /** Sets the specified value to the {@link XrInteractionProfileSuggestedBinding#type} field. */ + public XrInteractionProfileSuggestedBinding.Buffer type(@NativeType("XrStructureType") int value) { XrInteractionProfileSuggestedBinding.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_INTERACTION_PROFILE_SUGGESTED_BINDING TYPE_INTERACTION_PROFILE_SUGGESTED_BINDING} value to the {@link XrInteractionProfileSuggestedBinding#type} field. */ + public XrInteractionProfileSuggestedBinding.Buffer type$Default() { return type(XR10.XR_TYPE_INTERACTION_PROFILE_SUGGESTED_BINDING); } + /** Sets the specified value to the {@link XrInteractionProfileSuggestedBinding#next} field. */ + public XrInteractionProfileSuggestedBinding.Buffer next(@NativeType("void const *") long value) { XrInteractionProfileSuggestedBinding.nnext(address(), value); return this; } + /** Prepends the specified {@link XrBindingModificationsKHR} value to the {@code next} chain. */ + public XrInteractionProfileSuggestedBinding.Buffer next(XrBindingModificationsKHR value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrInteractionProfileSuggestedBinding#interactionProfile} field. */ + public XrInteractionProfileSuggestedBinding.Buffer interactionProfile(@NativeType("XrPath") long value) { XrInteractionProfileSuggestedBinding.ninteractionProfile(address(), value); return this; } + /** Sets the address of the specified {@link XrActionSuggestedBinding.Buffer} to the {@link XrInteractionProfileSuggestedBinding#suggestedBindings} field. */ + public XrInteractionProfileSuggestedBinding.Buffer suggestedBindings(@NativeType("XrActionSuggestedBinding const *") XrActionSuggestedBinding.Buffer value) { XrInteractionProfileSuggestedBinding.nsuggestedBindings(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrKeyboardSpaceCreateInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrKeyboardSpaceCreateInfoFB.java index 420f5ad556..8aa678f6ad 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrKeyboardSpaceCreateInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrKeyboardSpaceCreateInfoFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Input data needed by the system to start tracking a keyboard. * @@ -27,7 +27,7 @@ *
                                                    *
                                                  • The {@link FBKeyboardTracking XR_FB_keyboard_tracking} extension must be enabled prior to using {@link XrKeyboardSpaceCreateInfoFB}
                                                  • *
                                                  • {@code type} must be {@link FBKeyboardTracking#XR_TYPE_KEYBOARD_SPACE_CREATE_INFO_FB TYPE_KEYBOARD_SPACE_CREATE_INFO_FB}
                                                  • - *
                                                  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                  • + *
                                                  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                  • *
                                                  * *
                                                  See Also
                                                  @@ -42,8 +42,8 @@ * void * next; * uint64_t {@link #trackedKeyboardId}; * } - */ -public class XrKeyboardSpaceCreateInfoFB extends Struct implements NativeResource { + */ +public class XrKeyboardSpaceCreateInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,24 +53,24 @@ public class XrKeyboardSpaceCreateInfoFB extends Struct implements NativeResource { @@ -302,25 +302,25 @@ protected Buffer self() { protected XrKeyboardSpaceCreateInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrKeyboardSpaceCreateInfoFB.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void *") - public long next() { return XrKeyboardSpaceCreateInfoFB.nnext(address()); } - /** @return the value of the {@link XrKeyboardSpaceCreateInfoFB#trackedKeyboardId} field. */ - @NativeType("uint64_t") - public long trackedKeyboardId() { return XrKeyboardSpaceCreateInfoFB.ntrackedKeyboardId(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrKeyboardSpaceCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrKeyboardSpaceCreateInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBKeyboardTracking#XR_TYPE_KEYBOARD_SPACE_CREATE_INFO_FB TYPE_KEYBOARD_SPACE_CREATE_INFO_FB} value to the {@code type} field. */ - public XrKeyboardSpaceCreateInfoFB.Buffer type$Default() { return type(FBKeyboardTracking.XR_TYPE_KEYBOARD_SPACE_CREATE_INFO_FB); } - /** Sets the specified value to the {@code next} field. */ - public XrKeyboardSpaceCreateInfoFB.Buffer next(@NativeType("void *") long value) { XrKeyboardSpaceCreateInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrKeyboardSpaceCreateInfoFB#trackedKeyboardId} field. */ - public XrKeyboardSpaceCreateInfoFB.Buffer trackedKeyboardId(@NativeType("uint64_t") long value) { XrKeyboardSpaceCreateInfoFB.ntrackedKeyboardId(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrKeyboardSpaceCreateInfoFB.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void *") + public long next() { return XrKeyboardSpaceCreateInfoFB.nnext(address()); } + /** @return the value of the {@link XrKeyboardSpaceCreateInfoFB#trackedKeyboardId} field. */ + @NativeType("uint64_t") + public long trackedKeyboardId() { return XrKeyboardSpaceCreateInfoFB.ntrackedKeyboardId(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrKeyboardSpaceCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrKeyboardSpaceCreateInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBKeyboardTracking#XR_TYPE_KEYBOARD_SPACE_CREATE_INFO_FB TYPE_KEYBOARD_SPACE_CREATE_INFO_FB} value to the {@code type} field. */ + public XrKeyboardSpaceCreateInfoFB.Buffer type$Default() { return type(FBKeyboardTracking.XR_TYPE_KEYBOARD_SPACE_CREATE_INFO_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrKeyboardSpaceCreateInfoFB.Buffer next(@NativeType("void *") long value) { XrKeyboardSpaceCreateInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrKeyboardSpaceCreateInfoFB#trackedKeyboardId} field. */ + public XrKeyboardSpaceCreateInfoFB.Buffer trackedKeyboardId(@NativeType("uint64_t") long value) { XrKeyboardSpaceCreateInfoFB.ntrackedKeyboardId(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrKeyboardTrackingDescriptionFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrKeyboardTrackingDescriptionFB.java index 86db687151..5bd655147f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrKeyboardTrackingDescriptionFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrKeyboardTrackingDescriptionFB.java @@ -4,19 +4,19 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import static org.lwjgl.openxr.FBKeyboardTracking.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.FBKeyboardTracking.*; + /** * Description of a trackable keyboard. * @@ -43,8 +43,8 @@ * XrKeyboardTrackingFlagsFB {@link #flags}; * char {@link #name}[XR_MAX_KEYBOARD_TRACKING_NAME_SIZE_FB]; * } - */ -public class XrKeyboardTrackingDescriptionFB extends Struct implements NativeResource { + */ +public class XrKeyboardTrackingDescriptionFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,27 +54,27 @@ public class XrKeyboardTrackingDescriptionFB extends Struct implements NativeResource { @@ -274,21 +274,21 @@ protected Buffer self() { protected XrKeyboardTrackingDescriptionFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrKeyboardTrackingDescriptionFB#trackedKeyboardId} field. */ - @NativeType("uint64_t") - public long trackedKeyboardId() { return XrKeyboardTrackingDescriptionFB.ntrackedKeyboardId(address()); } - /** @return a {@link XrVector3f} view of the {@link XrKeyboardTrackingDescriptionFB#size} field. */ - public XrVector3f size() { return XrKeyboardTrackingDescriptionFB.nsize(address()); } - /** @return the value of the {@link XrKeyboardTrackingDescriptionFB#flags} field. */ - @NativeType("XrKeyboardTrackingFlagsFB") - public long flags() { return XrKeyboardTrackingDescriptionFB.nflags(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrKeyboardTrackingDescriptionFB#name} field. */ - @NativeType("char[XR_MAX_KEYBOARD_TRACKING_NAME_SIZE_FB]") - public ByteBuffer name() { return XrKeyboardTrackingDescriptionFB.nname(address()); } - /** @return the null-terminated string stored in the {@link XrKeyboardTrackingDescriptionFB#name} field. */ - @NativeType("char[XR_MAX_KEYBOARD_TRACKING_NAME_SIZE_FB]") - public String nameString() { return XrKeyboardTrackingDescriptionFB.nnameString(address()); } + + /** @return the value of the {@link XrKeyboardTrackingDescriptionFB#trackedKeyboardId} field. */ + @NativeType("uint64_t") + public long trackedKeyboardId() { return XrKeyboardTrackingDescriptionFB.ntrackedKeyboardId(address()); } + /** @return a {@link XrVector3f} view of the {@link XrKeyboardTrackingDescriptionFB#size} field. */ + public XrVector3f size() { return XrKeyboardTrackingDescriptionFB.nsize(address()); } + /** @return the value of the {@link XrKeyboardTrackingDescriptionFB#flags} field. */ + @NativeType("XrKeyboardTrackingFlagsFB") + public long flags() { return XrKeyboardTrackingDescriptionFB.nflags(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrKeyboardTrackingDescriptionFB#name} field. */ + @NativeType("char[XR_MAX_KEYBOARD_TRACKING_NAME_SIZE_FB]") + public ByteBuffer name() { return XrKeyboardTrackingDescriptionFB.nname(address()); } + /** @return the null-terminated string stored in the {@link XrKeyboardTrackingDescriptionFB#name} field. */ + @NativeType("char[XR_MAX_KEYBOARD_TRACKING_NAME_SIZE_FB]") + public String nameString() { return XrKeyboardTrackingDescriptionFB.nnameString(address()); } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrKeyboardTrackingQueryFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrKeyboardTrackingQueryFB.java index 20a8d7d803..a3d2cd86ff 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrKeyboardTrackingQueryFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrKeyboardTrackingQueryFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Input data needed to determine which type of tracked keyboard to query for. * @@ -27,7 +27,7 @@ *
                                                    *
                                                  • The {@link FBKeyboardTracking XR_FB_keyboard_tracking} extension must be enabled prior to using {@link XrKeyboardTrackingQueryFB}
                                                  • *
                                                  • {@code type} must be {@link FBKeyboardTracking#XR_TYPE_KEYBOARD_TRACKING_QUERY_FB TYPE_KEYBOARD_TRACKING_QUERY_FB}
                                                  • - *
                                                  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                  • + *
                                                  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                  • *
                                                  • {@code flags} must be a valid combination of {@code XrKeyboardTrackingQueryFlagBitsFB} values
                                                  • *
                                                  • {@code flags} must not be 0
                                                  • *
                                                  @@ -44,8 +44,8 @@ * void * {@link #next}; * XrKeyboardTrackingQueryFlagsFB {@link #flags}; * } - */ -public class XrKeyboardTrackingQueryFB extends Struct implements NativeResource { + */ +public class XrKeyboardTrackingQueryFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,24 +55,24 @@ public class XrKeyboardTrackingQueryFB extends Struct /** The struct member offsets. */ public static final int - TYPE, - NEXT, - FLAGS; + TYPE, + NEXT, + FLAGS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - FLAGS = layout.offsetof(2); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + FLAGS = layout.offsetof(2); + } protected XrKeyboardTrackingQueryFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -95,35 +95,35 @@ public XrKeyboardTrackingQueryFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** a bitmask of {@code XrKeyboardTrackingQueryFlagsFB}. */ - @NativeType("XrKeyboardTrackingQueryFlagsFB") - public long flags() { return nflags(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrKeyboardTrackingQueryFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBKeyboardTracking#XR_TYPE_KEYBOARD_TRACKING_QUERY_FB TYPE_KEYBOARD_TRACKING_QUERY_FB} value to the {@link #type} field. */ - public XrKeyboardTrackingQueryFB type$Default() { return type(FBKeyboardTracking.XR_TYPE_KEYBOARD_TRACKING_QUERY_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrKeyboardTrackingQueryFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #flags} field. */ - public XrKeyboardTrackingQueryFB flags(@NativeType("XrKeyboardTrackingQueryFlagsFB") long value) { nflags(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** a bitmask of {@code XrKeyboardTrackingQueryFlagsFB}. */ + @NativeType("XrKeyboardTrackingQueryFlagsFB") + public long flags() { return nflags(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrKeyboardTrackingQueryFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBKeyboardTracking#XR_TYPE_KEYBOARD_TRACKING_QUERY_FB TYPE_KEYBOARD_TRACKING_QUERY_FB} value to the {@link #type} field. */ + public XrKeyboardTrackingQueryFB type$Default() { return type(FBKeyboardTracking.XR_TYPE_KEYBOARD_TRACKING_QUERY_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrKeyboardTrackingQueryFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #flags} field. */ + public XrKeyboardTrackingQueryFB flags(@NativeType("XrKeyboardTrackingQueryFlagsFB") long value) { nflags(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrKeyboardTrackingQueryFB set( - int type, - long next, + int type, + long next, long flags - ) { - type(type); - next(next); - flags(flags); + ) { + type(type); + next(next); + flags(flags); return this; } @@ -252,22 +252,22 @@ public static XrKeyboardTrackingQueryFB.Buffer calloc(int capacity, MemoryStack } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrKeyboardTrackingQueryFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrKeyboardTrackingQueryFB.NEXT); } - /** Unsafe version of {@link #flags}. */ - public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrKeyboardTrackingQueryFB.FLAGS); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrKeyboardTrackingQueryFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrKeyboardTrackingQueryFB.NEXT, value); } - /** Unsafe version of {@link #flags(long) flags}. */ - public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrKeyboardTrackingQueryFB.FLAGS, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrKeyboardTrackingQueryFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrKeyboardTrackingQueryFB.NEXT); } + /** Unsafe version of {@link #flags}. */ + public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrKeyboardTrackingQueryFB.FLAGS); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrKeyboardTrackingQueryFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrKeyboardTrackingQueryFB.NEXT, value); } + /** Unsafe version of {@link #flags(long) flags}. */ + public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrKeyboardTrackingQueryFB.FLAGS, value); } + + // ----------------------------------- /** An array of {@link XrKeyboardTrackingQueryFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -304,25 +304,25 @@ protected Buffer self() { protected XrKeyboardTrackingQueryFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrKeyboardTrackingQueryFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrKeyboardTrackingQueryFB.ntype(address()); } - /** @return the value of the {@link XrKeyboardTrackingQueryFB#next} field. */ - @NativeType("void *") - public long next() { return XrKeyboardTrackingQueryFB.nnext(address()); } - /** @return the value of the {@link XrKeyboardTrackingQueryFB#flags} field. */ - @NativeType("XrKeyboardTrackingQueryFlagsFB") - public long flags() { return XrKeyboardTrackingQueryFB.nflags(address()); } - - /** Sets the specified value to the {@link XrKeyboardTrackingQueryFB#type} field. */ - public XrKeyboardTrackingQueryFB.Buffer type(@NativeType("XrStructureType") int value) { XrKeyboardTrackingQueryFB.ntype(address(), value); return this; } - /** Sets the {@link FBKeyboardTracking#XR_TYPE_KEYBOARD_TRACKING_QUERY_FB TYPE_KEYBOARD_TRACKING_QUERY_FB} value to the {@link XrKeyboardTrackingQueryFB#type} field. */ - public XrKeyboardTrackingQueryFB.Buffer type$Default() { return type(FBKeyboardTracking.XR_TYPE_KEYBOARD_TRACKING_QUERY_FB); } - /** Sets the specified value to the {@link XrKeyboardTrackingQueryFB#next} field. */ - public XrKeyboardTrackingQueryFB.Buffer next(@NativeType("void *") long value) { XrKeyboardTrackingQueryFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrKeyboardTrackingQueryFB#flags} field. */ - public XrKeyboardTrackingQueryFB.Buffer flags(@NativeType("XrKeyboardTrackingQueryFlagsFB") long value) { XrKeyboardTrackingQueryFB.nflags(address(), value); return this; } + + /** @return the value of the {@link XrKeyboardTrackingQueryFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrKeyboardTrackingQueryFB.ntype(address()); } + /** @return the value of the {@link XrKeyboardTrackingQueryFB#next} field. */ + @NativeType("void *") + public long next() { return XrKeyboardTrackingQueryFB.nnext(address()); } + /** @return the value of the {@link XrKeyboardTrackingQueryFB#flags} field. */ + @NativeType("XrKeyboardTrackingQueryFlagsFB") + public long flags() { return XrKeyboardTrackingQueryFB.nflags(address()); } + + /** Sets the specified value to the {@link XrKeyboardTrackingQueryFB#type} field. */ + public XrKeyboardTrackingQueryFB.Buffer type(@NativeType("XrStructureType") int value) { XrKeyboardTrackingQueryFB.ntype(address(), value); return this; } + /** Sets the {@link FBKeyboardTracking#XR_TYPE_KEYBOARD_TRACKING_QUERY_FB TYPE_KEYBOARD_TRACKING_QUERY_FB} value to the {@link XrKeyboardTrackingQueryFB#type} field. */ + public XrKeyboardTrackingQueryFB.Buffer type$Default() { return type(FBKeyboardTracking.XR_TYPE_KEYBOARD_TRACKING_QUERY_FB); } + /** Sets the specified value to the {@link XrKeyboardTrackingQueryFB#next} field. */ + public XrKeyboardTrackingQueryFB.Buffer next(@NativeType("void *") long value) { XrKeyboardTrackingQueryFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrKeyboardTrackingQueryFB#flags} field. */ + public XrKeyboardTrackingQueryFB.Buffer flags(@NativeType("XrKeyboardTrackingQueryFlagsFB") long value) { XrKeyboardTrackingQueryFB.nflags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrLoaderInitInfoAndroidKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrLoaderInitInfoAndroidKHR.java new file mode 100644 index 0000000000..1ce35441b5 --- /dev/null +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrLoaderInitInfoAndroidKHR.java @@ -0,0 +1,366 @@ +/* + * 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.*; + +/** + * Initializes OpenXR loader on Android. + * + *
                                                  Valid Usage (Implicit)
                                                  + * + *
                                                    + *
                                                  • The {@link KHRLoaderInitAndroid XR_KHR_loader_init_android} extension must be enabled prior to using {@link XrLoaderInitInfoAndroidKHR}
                                                  • + *
                                                  • {@code type} must be {@link KHRLoaderInitAndroid#XR_TYPE_LOADER_INIT_INFO_ANDROID_KHR TYPE_LOADER_INIT_INFO_ANDROID_KHR}
                                                  • + *
                                                  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                  • + *
                                                  • {@code applicationVM} must be a pointer value
                                                  • + *
                                                  • {@code applicationContext} must be a pointer value
                                                  • + *
                                                  + * + *
                                                  See Also
                                                  + * + *

                                                  {@link KHRLoaderInit#xrInitializeLoaderKHR InitializeLoaderKHR}

                                                  + * + *

                                                  Layout

                                                  + * + *
                                                  
                                                  + * struct XrLoaderInitInfoAndroidKHR {
                                                  + *     XrStructureType {@link #type};
                                                  + *     void const * {@link #next};
                                                  + *     void * {@link #applicationVM};
                                                  + *     void * {@link #applicationContext};
                                                  + * }
                                                  + */ +public class XrLoaderInitInfoAndroidKHR 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, + APPLICATIONVM, + APPLICATIONCONTEXT; + + static { + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(POINTER_SIZE), + __member(POINTER_SIZE) + ); + + SIZEOF = layout.getSize(); + ALIGNOF = layout.getAlignment(); + + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + APPLICATIONVM = layout.offsetof(2); + APPLICATIONCONTEXT = layout.offsetof(3); + } + + protected XrLoaderInitInfoAndroidKHR(long address, @Nullable ByteBuffer container) { + super(address, container); + } + + @Override + protected XrLoaderInitInfoAndroidKHR create(long address, @Nullable ByteBuffer container) { + return new XrLoaderInitInfoAndroidKHR(address, container); + } + + /** + * Creates a {@code XrLoaderInitInfoAndroidKHR} 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 XrLoaderInitInfoAndroidKHR(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 the JNI’s opaque {@code JavaVM} structure, cast to a void pointer. */ + @NativeType("void *") + public long applicationVM() { return napplicationVM(address()); } + /** a JNI reference to an {@code android.content.Context} associated with the application, cast to a void pointer. */ + @NativeType("void *") + public long applicationContext() { return napplicationContext(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrLoaderInitInfoAndroidKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHRLoaderInitAndroid#XR_TYPE_LOADER_INIT_INFO_ANDROID_KHR TYPE_LOADER_INIT_INFO_ANDROID_KHR} value to the {@link #type} field. */ + public XrLoaderInitInfoAndroidKHR type$Default() { return type(KHRLoaderInitAndroid.XR_TYPE_LOADER_INIT_INFO_ANDROID_KHR); } + /** Sets the specified value to the {@link #next} field. */ + public XrLoaderInitInfoAndroidKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #applicationVM} field. */ + public XrLoaderInitInfoAndroidKHR applicationVM(@NativeType("void *") long value) { napplicationVM(address(), value); return this; } + /** Sets the specified value to the {@link #applicationContext} field. */ + public XrLoaderInitInfoAndroidKHR applicationContext(@NativeType("void *") long value) { napplicationContext(address(), value); return this; } + + /** Initializes this struct with the specified values. */ + public XrLoaderInitInfoAndroidKHR set( + int type, + long next, + long applicationVM, + long applicationContext + ) { + type(type); + next(next); + applicationVM(applicationVM); + applicationContext(applicationContext); + + return this; + } + + /** + * Copies the specified struct data to this struct. + * + * @param src the source struct + * + * @return this struct + */ + public XrLoaderInitInfoAndroidKHR set(XrLoaderInitInfoAndroidKHR src) { + memCopy(src.address(), address(), SIZEOF); + return this; + } + + // ----------------------------------- + + /** Returns a new {@code XrLoaderInitInfoAndroidKHR} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ + public static XrLoaderInitInfoAndroidKHR malloc() { + return new XrLoaderInitInfoAndroidKHR(nmemAllocChecked(SIZEOF), null); + } + + /** Returns a new {@code XrLoaderInitInfoAndroidKHR} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ + public static XrLoaderInitInfoAndroidKHR calloc() { + return new XrLoaderInitInfoAndroidKHR(nmemCallocChecked(1, SIZEOF), null); + } + + /** Returns a new {@code XrLoaderInitInfoAndroidKHR} instance allocated with {@link BufferUtils}. */ + public static XrLoaderInitInfoAndroidKHR create() { + ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); + return new XrLoaderInitInfoAndroidKHR(memAddress(container), container); + } + + /** Returns a new {@code XrLoaderInitInfoAndroidKHR} instance for the specified memory address. */ + public static XrLoaderInitInfoAndroidKHR create(long address) { + return new XrLoaderInitInfoAndroidKHR(address, null); + } + + /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ + @Nullable + public static XrLoaderInitInfoAndroidKHR createSafe(long address) { + return address == NULL ? null : new XrLoaderInitInfoAndroidKHR(address, null); + } + + /** Downcasts the specified {@code XrLoaderInitInfoBaseHeaderKHR} instance to {@code XrLoaderInitInfoAndroidKHR}. */ + public static XrLoaderInitInfoAndroidKHR create(XrLoaderInitInfoBaseHeaderKHR value) { + return new XrLoaderInitInfoAndroidKHR(value.address(), __getContainer(value)); + } + + /** + * Returns a new {@link XrLoaderInitInfoAndroidKHR.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. + * + * @param capacity the buffer capacity + */ + public static XrLoaderInitInfoAndroidKHR.Buffer malloc(int capacity) { + return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + } + + /** + * Returns a new {@link XrLoaderInitInfoAndroidKHR.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. + * + * @param capacity the buffer capacity + */ + public static XrLoaderInitInfoAndroidKHR.Buffer calloc(int capacity) { + return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + } + + /** + * Returns a new {@link XrLoaderInitInfoAndroidKHR.Buffer} instance allocated with {@link BufferUtils}. + * + * @param capacity the buffer capacity + */ + public static XrLoaderInitInfoAndroidKHR.Buffer create(int capacity) { + ByteBuffer container = __create(capacity, SIZEOF); + return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); + } + + /** + * Create a {@link XrLoaderInitInfoAndroidKHR.Buffer} instance at the specified memory. + * + * @param address the memory address + * @param capacity the buffer capacity + */ + public static XrLoaderInitInfoAndroidKHR.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 XrLoaderInitInfoAndroidKHR.Buffer createSafe(long address, int capacity) { + return address == NULL ? null : new Buffer(address, capacity); + } + + /** Downcasts the specified {@code XrLoaderInitInfoBaseHeaderKHR.Buffer} instance to {@code XrLoaderInitInfoAndroidKHR.Buffer}. */ + public static XrLoaderInitInfoAndroidKHR.Buffer create(XrLoaderInitInfoBaseHeaderKHR.Buffer value) { + return new XrLoaderInitInfoAndroidKHR.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + } + + /** + * Returns a new {@code XrLoaderInitInfoAndroidKHR} instance allocated on the specified {@link MemoryStack}. + * + * @param stack the stack from which to allocate + */ + public static XrLoaderInitInfoAndroidKHR malloc(MemoryStack stack) { + return new XrLoaderInitInfoAndroidKHR(stack.nmalloc(ALIGNOF, SIZEOF), null); + } + + /** + * Returns a new {@code XrLoaderInitInfoAndroidKHR} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. + * + * @param stack the stack from which to allocate + */ + public static XrLoaderInitInfoAndroidKHR calloc(MemoryStack stack) { + return new XrLoaderInitInfoAndroidKHR(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + } + + /** + * Returns a new {@link XrLoaderInitInfoAndroidKHR.Buffer} instance allocated on the specified {@link MemoryStack}. + * + * @param stack the stack from which to allocate + * @param capacity the buffer capacity + */ + public static XrLoaderInitInfoAndroidKHR.Buffer malloc(int capacity, MemoryStack stack) { + return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); + } + + /** + * Returns a new {@link XrLoaderInitInfoAndroidKHR.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 XrLoaderInitInfoAndroidKHR.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 + XrLoaderInitInfoAndroidKHR.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrLoaderInitInfoAndroidKHR.NEXT); } + /** Unsafe version of {@link #applicationVM}. */ + public static long napplicationVM(long struct) { return memGetAddress(struct + XrLoaderInitInfoAndroidKHR.APPLICATIONVM); } + /** Unsafe version of {@link #applicationContext}. */ + public static long napplicationContext(long struct) { return memGetAddress(struct + XrLoaderInitInfoAndroidKHR.APPLICATIONCONTEXT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrLoaderInitInfoAndroidKHR.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrLoaderInitInfoAndroidKHR.NEXT, value); } + /** Unsafe version of {@link #applicationVM(long) applicationVM}. */ + public static void napplicationVM(long struct, long value) { memPutAddress(struct + XrLoaderInitInfoAndroidKHR.APPLICATIONVM, check(value)); } + /** Unsafe version of {@link #applicationContext(long) applicationContext}. */ + public static void napplicationContext(long struct, long value) { memPutAddress(struct + XrLoaderInitInfoAndroidKHR.APPLICATIONCONTEXT, check(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 + XrLoaderInitInfoAndroidKHR.APPLICATIONVM)); + check(memGetAddress(struct + XrLoaderInitInfoAndroidKHR.APPLICATIONCONTEXT)); + } + + // ----------------------------------- + + /** An array of {@link XrLoaderInitInfoAndroidKHR} structs. */ + public static class Buffer extends StructBuffer implements NativeResource { + + private static final XrLoaderInitInfoAndroidKHR ELEMENT_FACTORY = XrLoaderInitInfoAndroidKHR.create(-1L); + + /** + * Creates a new {@code XrLoaderInitInfoAndroidKHR.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 XrLoaderInitInfoAndroidKHR#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 XrLoaderInitInfoAndroidKHR getElementFactory() { + return ELEMENT_FACTORY; + } + + /** @return the value of the {@link XrLoaderInitInfoAndroidKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrLoaderInitInfoAndroidKHR.ntype(address()); } + /** @return the value of the {@link XrLoaderInitInfoAndroidKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrLoaderInitInfoAndroidKHR.nnext(address()); } + /** @return the value of the {@link XrLoaderInitInfoAndroidKHR#applicationVM} field. */ + @NativeType("void *") + public long applicationVM() { return XrLoaderInitInfoAndroidKHR.napplicationVM(address()); } + /** @return the value of the {@link XrLoaderInitInfoAndroidKHR#applicationContext} field. */ + @NativeType("void *") + public long applicationContext() { return XrLoaderInitInfoAndroidKHR.napplicationContext(address()); } + + /** Sets the specified value to the {@link XrLoaderInitInfoAndroidKHR#type} field. */ + public XrLoaderInitInfoAndroidKHR.Buffer type(@NativeType("XrStructureType") int value) { XrLoaderInitInfoAndroidKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRLoaderInitAndroid#XR_TYPE_LOADER_INIT_INFO_ANDROID_KHR TYPE_LOADER_INIT_INFO_ANDROID_KHR} value to the {@link XrLoaderInitInfoAndroidKHR#type} field. */ + public XrLoaderInitInfoAndroidKHR.Buffer type$Default() { return type(KHRLoaderInitAndroid.XR_TYPE_LOADER_INIT_INFO_ANDROID_KHR); } + /** Sets the specified value to the {@link XrLoaderInitInfoAndroidKHR#next} field. */ + public XrLoaderInitInfoAndroidKHR.Buffer next(@NativeType("void const *") long value) { XrLoaderInitInfoAndroidKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrLoaderInitInfoAndroidKHR#applicationVM} field. */ + public XrLoaderInitInfoAndroidKHR.Buffer applicationVM(@NativeType("void *") long value) { XrLoaderInitInfoAndroidKHR.napplicationVM(address(), value); return this; } + /** Sets the specified value to the {@link XrLoaderInitInfoAndroidKHR#applicationContext} field. */ + public XrLoaderInitInfoAndroidKHR.Buffer applicationContext(@NativeType("void *") long value) { XrLoaderInitInfoAndroidKHR.napplicationContext(address(), value); return this; } + + } + +} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrLoaderInitInfoBaseHeaderKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrLoaderInitInfoBaseHeaderKHR.java index 2c5bae2407..db5bec6951 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrLoaderInitInfoBaseHeaderKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrLoaderInitInfoBaseHeaderKHR.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Initializes OpenXR loader. * @@ -22,7 +22,8 @@ * *
                                                    *
                                                  • The {@link KHRLoaderInit XR_KHR_loader_init} extension must be enabled prior to using {@link XrLoaderInitInfoBaseHeaderKHR}
                                                  • - *
                                                  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                  • + *
                                                  • {@code type} must be {@link KHRLoaderInitAndroid#XR_TYPE_LOADER_INIT_INFO_ANDROID_KHR TYPE_LOADER_INIT_INFO_ANDROID_KHR}
                                                  • + *
                                                  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                  • *
                                                  * *
                                                  See Also
                                                  @@ -36,8 +37,8 @@ * XrStructureType {@link #type}; * void const * {@link #next}; * } - */ -public class XrLoaderInitInfoBaseHeaderKHR extends Struct implements NativeResource { + */ +public class XrLoaderInitInfoBaseHeaderKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -47,21 +48,21 @@ public class XrLoaderInitInfoBaseHeaderKHR extends Struct implements NativeResource { @@ -280,18 +291,18 @@ protected Buffer self() { protected XrLoaderInitInfoBaseHeaderKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrLoaderInitInfoBaseHeaderKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrLoaderInitInfoBaseHeaderKHR.ntype(address()); } - /** @return the value of the {@link XrLoaderInitInfoBaseHeaderKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrLoaderInitInfoBaseHeaderKHR.nnext(address()); } - - /** Sets the specified value to the {@link XrLoaderInitInfoBaseHeaderKHR#type} field. */ - public XrLoaderInitInfoBaseHeaderKHR.Buffer type(@NativeType("XrStructureType") int value) { XrLoaderInitInfoBaseHeaderKHR.ntype(address(), value); return this; } - /** Sets the specified value to the {@link XrLoaderInitInfoBaseHeaderKHR#next} field. */ - public XrLoaderInitInfoBaseHeaderKHR.Buffer next(@NativeType("void const *") long value) { XrLoaderInitInfoBaseHeaderKHR.nnext(address(), value); return this; } + + /** @return the value of the {@link XrLoaderInitInfoBaseHeaderKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrLoaderInitInfoBaseHeaderKHR.ntype(address()); } + /** @return the value of the {@link XrLoaderInitInfoBaseHeaderKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrLoaderInitInfoBaseHeaderKHR.nnext(address()); } + + /** Sets the specified value to the {@link XrLoaderInitInfoBaseHeaderKHR#type} field. */ + public XrLoaderInitInfoBaseHeaderKHR.Buffer type(@NativeType("XrStructureType") int value) { XrLoaderInitInfoBaseHeaderKHR.ntype(address(), value); return this; } + /** Sets the specified value to the {@link XrLoaderInitInfoBaseHeaderKHR#next} field. */ + public XrLoaderInitInfoBaseHeaderKHR.Buffer next(@NativeType("void const *") long value) { XrLoaderInitInfoBaseHeaderKHR.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrLocalDimmingFrameEndInfoMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrLocalDimmingFrameEndInfoMETA.java index bdbe2e6629..3cef46dfc1 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrLocalDimmingFrameEndInfoMETA.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrLocalDimmingFrameEndInfoMETA.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Local dimming meta data for the current submitted frame. * @@ -27,7 +27,7 @@ *
                                                    *
                                                  • The {@link METALocalDimming XR_META_local_dimming} extension must be enabled prior to using {@link XrLocalDimmingFrameEndInfoMETA}
                                                  • *
                                                  • {@code type} must be {@link METALocalDimming#XR_TYPE_LOCAL_DIMMING_FRAME_END_INFO_META TYPE_LOCAL_DIMMING_FRAME_END_INFO_META}
                                                  • - *
                                                  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                  • + *
                                                  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                  • *
                                                  • {@code localDimmingMode} must be a valid {@code XrLocalDimmingModeMETA} value
                                                  • *
                                                  * @@ -43,8 +43,8 @@ * void const * {@link #next}; * XrLocalDimmingModeMETA {@link #localDimmingMode}; * } - */ -public class XrLocalDimmingFrameEndInfoMETA extends Struct implements NativeResource { + */ +public class XrLocalDimmingFrameEndInfoMETA extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,24 +54,24 @@ public class XrLocalDimmingFrameEndInfoMETA extends Struct implements NativeResource { @@ -303,25 +303,25 @@ protected Buffer self() { protected XrLocalDimmingFrameEndInfoMETA getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrLocalDimmingFrameEndInfoMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrLocalDimmingFrameEndInfoMETA.ntype(address()); } - /** @return the value of the {@link XrLocalDimmingFrameEndInfoMETA#next} field. */ - @NativeType("void const *") - public long next() { return XrLocalDimmingFrameEndInfoMETA.nnext(address()); } - /** @return the value of the {@link XrLocalDimmingFrameEndInfoMETA#localDimmingMode} field. */ - @NativeType("XrLocalDimmingModeMETA") - public int localDimmingMode() { return XrLocalDimmingFrameEndInfoMETA.nlocalDimmingMode(address()); } - - /** Sets the specified value to the {@link XrLocalDimmingFrameEndInfoMETA#type} field. */ - public XrLocalDimmingFrameEndInfoMETA.Buffer type(@NativeType("XrStructureType") int value) { XrLocalDimmingFrameEndInfoMETA.ntype(address(), value); return this; } - /** Sets the {@link METALocalDimming#XR_TYPE_LOCAL_DIMMING_FRAME_END_INFO_META TYPE_LOCAL_DIMMING_FRAME_END_INFO_META} value to the {@link XrLocalDimmingFrameEndInfoMETA#type} field. */ - public XrLocalDimmingFrameEndInfoMETA.Buffer type$Default() { return type(METALocalDimming.XR_TYPE_LOCAL_DIMMING_FRAME_END_INFO_META); } - /** Sets the specified value to the {@link XrLocalDimmingFrameEndInfoMETA#next} field. */ - public XrLocalDimmingFrameEndInfoMETA.Buffer next(@NativeType("void const *") long value) { XrLocalDimmingFrameEndInfoMETA.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrLocalDimmingFrameEndInfoMETA#localDimmingMode} field. */ - public XrLocalDimmingFrameEndInfoMETA.Buffer localDimmingMode(@NativeType("XrLocalDimmingModeMETA") int value) { XrLocalDimmingFrameEndInfoMETA.nlocalDimmingMode(address(), value); return this; } + + /** @return the value of the {@link XrLocalDimmingFrameEndInfoMETA#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrLocalDimmingFrameEndInfoMETA.ntype(address()); } + /** @return the value of the {@link XrLocalDimmingFrameEndInfoMETA#next} field. */ + @NativeType("void const *") + public long next() { return XrLocalDimmingFrameEndInfoMETA.nnext(address()); } + /** @return the value of the {@link XrLocalDimmingFrameEndInfoMETA#localDimmingMode} field. */ + @NativeType("XrLocalDimmingModeMETA") + public int localDimmingMode() { return XrLocalDimmingFrameEndInfoMETA.nlocalDimmingMode(address()); } + + /** Sets the specified value to the {@link XrLocalDimmingFrameEndInfoMETA#type} field. */ + public XrLocalDimmingFrameEndInfoMETA.Buffer type(@NativeType("XrStructureType") int value) { XrLocalDimmingFrameEndInfoMETA.ntype(address(), value); return this; } + /** Sets the {@link METALocalDimming#XR_TYPE_LOCAL_DIMMING_FRAME_END_INFO_META TYPE_LOCAL_DIMMING_FRAME_END_INFO_META} value to the {@link XrLocalDimmingFrameEndInfoMETA#type} field. */ + public XrLocalDimmingFrameEndInfoMETA.Buffer type$Default() { return type(METALocalDimming.XR_TYPE_LOCAL_DIMMING_FRAME_END_INFO_META); } + /** Sets the specified value to the {@link XrLocalDimmingFrameEndInfoMETA#next} field. */ + public XrLocalDimmingFrameEndInfoMETA.Buffer next(@NativeType("void const *") long value) { XrLocalDimmingFrameEndInfoMETA.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrLocalDimmingFrameEndInfoMETA#localDimmingMode} field. */ + public XrLocalDimmingFrameEndInfoMETA.Buffer localDimmingMode(@NativeType("XrLocalDimmingModeMETA") int value) { XrLocalDimmingFrameEndInfoMETA.nlocalDimmingMode(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrMarkerSpaceCreateInfoVARJO.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrMarkerSpaceCreateInfoVARJO.java index 8ab11e7277..520f39caec 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrMarkerSpaceCreateInfoVARJO.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrMarkerSpaceCreateInfoVARJO.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Information to create a space from a spatial anchor. * @@ -23,7 +23,7 @@ *
                                                    *
                                                  • The {@link VARJOMarkerTracking XR_VARJO_marker_tracking} extension must be enabled prior to using {@link XrMarkerSpaceCreateInfoVARJO}
                                                  • *
                                                  • {@code type} must be {@link VARJOMarkerTracking#XR_TYPE_MARKER_SPACE_CREATE_INFO_VARJO TYPE_MARKER_SPACE_CREATE_INFO_VARJO}
                                                  • - *
                                                  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                  • + *
                                                  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                  • *
                                                  * *
                                                  See Also
                                                  @@ -39,8 +39,8 @@ * uint64_t {@link #markerId}; * {@link XrPosef XrPosef} {@link #poseInMarkerSpace}; * } - */ -public class XrMarkerSpaceCreateInfoVARJO extends Struct implements NativeResource { + */ +public class XrMarkerSpaceCreateInfoVARJO extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,27 +50,27 @@ public class XrMarkerSpaceCreateInfoVARJO extends Struct consumer) { consumer.accept(poseInMarkerSpace()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** unique identifier of the marker. */ + @NativeType("uint64_t") + public long markerId() { return nmarkerId(address()); } + /** an {@link XrPosef} defining the position and orientation of the new space’s origin relative to the marker’s natural origin. */ + public XrPosef poseInMarkerSpace() { return nposeInMarkerSpace(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrMarkerSpaceCreateInfoVARJO type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link VARJOMarkerTracking#XR_TYPE_MARKER_SPACE_CREATE_INFO_VARJO TYPE_MARKER_SPACE_CREATE_INFO_VARJO} value to the {@link #type} field. */ + public XrMarkerSpaceCreateInfoVARJO type$Default() { return type(VARJOMarkerTracking.XR_TYPE_MARKER_SPACE_CREATE_INFO_VARJO); } + /** Sets the specified value to the {@link #next} field. */ + public XrMarkerSpaceCreateInfoVARJO next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #markerId} field. */ + public XrMarkerSpaceCreateInfoVARJO markerId(@NativeType("uint64_t") long value) { nmarkerId(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #poseInMarkerSpace} field. */ + public XrMarkerSpaceCreateInfoVARJO poseInMarkerSpace(XrPosef value) { nposeInMarkerSpace(address(), value); return this; } + /** Passes the {@link #poseInMarkerSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrMarkerSpaceCreateInfoVARJO poseInMarkerSpace(java.util.function.Consumer consumer) { consumer.accept(poseInMarkerSpace()); return this; } /** Initializes this struct with the specified values. */ public XrMarkerSpaceCreateInfoVARJO set( - int type, - long next, - long markerId, + int type, + long next, + long markerId, XrPosef poseInMarkerSpace - ) { - type(type); - next(next); - markerId(markerId); - poseInMarkerSpace(poseInMarkerSpace); + ) { + type(type); + next(next); + markerId(markerId); + poseInMarkerSpace(poseInMarkerSpace); return this; } @@ -258,26 +258,26 @@ public static XrMarkerSpaceCreateInfoVARJO.Buffer calloc(int capacity, MemorySta } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrMarkerSpaceCreateInfoVARJO.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrMarkerSpaceCreateInfoVARJO.NEXT); } - /** Unsafe version of {@link #markerId}. */ - public static long nmarkerId(long struct) { return UNSAFE.getLong(null, struct + XrMarkerSpaceCreateInfoVARJO.MARKERID); } - /** Unsafe version of {@link #poseInMarkerSpace}. */ - public static XrPosef nposeInMarkerSpace(long struct) { return XrPosef.create(struct + XrMarkerSpaceCreateInfoVARJO.POSEINMARKERSPACE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrMarkerSpaceCreateInfoVARJO.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrMarkerSpaceCreateInfoVARJO.NEXT, value); } - /** Unsafe version of {@link #markerId(long) markerId}. */ - public static void nmarkerId(long struct, long value) { UNSAFE.putLong(null, struct + XrMarkerSpaceCreateInfoVARJO.MARKERID, value); } - /** Unsafe version of {@link #poseInMarkerSpace(XrPosef) poseInMarkerSpace}. */ - public static void nposeInMarkerSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrMarkerSpaceCreateInfoVARJO.POSEINMARKERSPACE, XrPosef.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrMarkerSpaceCreateInfoVARJO.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrMarkerSpaceCreateInfoVARJO.NEXT); } + /** Unsafe version of {@link #markerId}. */ + public static long nmarkerId(long struct) { return UNSAFE.getLong(null, struct + XrMarkerSpaceCreateInfoVARJO.MARKERID); } + /** Unsafe version of {@link #poseInMarkerSpace}. */ + public static XrPosef nposeInMarkerSpace(long struct) { return XrPosef.create(struct + XrMarkerSpaceCreateInfoVARJO.POSEINMARKERSPACE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrMarkerSpaceCreateInfoVARJO.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrMarkerSpaceCreateInfoVARJO.NEXT, value); } + /** Unsafe version of {@link #markerId(long) markerId}. */ + public static void nmarkerId(long struct, long value) { UNSAFE.putLong(null, struct + XrMarkerSpaceCreateInfoVARJO.MARKERID, value); } + /** Unsafe version of {@link #poseInMarkerSpace(XrPosef) poseInMarkerSpace}. */ + public static void nposeInMarkerSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrMarkerSpaceCreateInfoVARJO.POSEINMARKERSPACE, XrPosef.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrMarkerSpaceCreateInfoVARJO} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -314,31 +314,31 @@ protected Buffer self() { protected XrMarkerSpaceCreateInfoVARJO getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrMarkerSpaceCreateInfoVARJO#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrMarkerSpaceCreateInfoVARJO.ntype(address()); } - /** @return the value of the {@link XrMarkerSpaceCreateInfoVARJO#next} field. */ - @NativeType("void const *") - public long next() { return XrMarkerSpaceCreateInfoVARJO.nnext(address()); } - /** @return the value of the {@link XrMarkerSpaceCreateInfoVARJO#markerId} field. */ - @NativeType("uint64_t") - public long markerId() { return XrMarkerSpaceCreateInfoVARJO.nmarkerId(address()); } - /** @return a {@link XrPosef} view of the {@link XrMarkerSpaceCreateInfoVARJO#poseInMarkerSpace} field. */ - public XrPosef poseInMarkerSpace() { return XrMarkerSpaceCreateInfoVARJO.nposeInMarkerSpace(address()); } - - /** Sets the specified value to the {@link XrMarkerSpaceCreateInfoVARJO#type} field. */ - public XrMarkerSpaceCreateInfoVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrMarkerSpaceCreateInfoVARJO.ntype(address(), value); return this; } - /** Sets the {@link VARJOMarkerTracking#XR_TYPE_MARKER_SPACE_CREATE_INFO_VARJO TYPE_MARKER_SPACE_CREATE_INFO_VARJO} value to the {@link XrMarkerSpaceCreateInfoVARJO#type} field. */ - public XrMarkerSpaceCreateInfoVARJO.Buffer type$Default() { return type(VARJOMarkerTracking.XR_TYPE_MARKER_SPACE_CREATE_INFO_VARJO); } - /** Sets the specified value to the {@link XrMarkerSpaceCreateInfoVARJO#next} field. */ - public XrMarkerSpaceCreateInfoVARJO.Buffer next(@NativeType("void const *") long value) { XrMarkerSpaceCreateInfoVARJO.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrMarkerSpaceCreateInfoVARJO#markerId} field. */ - public XrMarkerSpaceCreateInfoVARJO.Buffer markerId(@NativeType("uint64_t") long value) { XrMarkerSpaceCreateInfoVARJO.nmarkerId(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrMarkerSpaceCreateInfoVARJO#poseInMarkerSpace} field. */ - public XrMarkerSpaceCreateInfoVARJO.Buffer poseInMarkerSpace(XrPosef value) { XrMarkerSpaceCreateInfoVARJO.nposeInMarkerSpace(address(), value); return this; } - /** Passes the {@link XrMarkerSpaceCreateInfoVARJO#poseInMarkerSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrMarkerSpaceCreateInfoVARJO.Buffer poseInMarkerSpace(java.util.function.Consumer consumer) { consumer.accept(poseInMarkerSpace()); return this; } + + /** @return the value of the {@link XrMarkerSpaceCreateInfoVARJO#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrMarkerSpaceCreateInfoVARJO.ntype(address()); } + /** @return the value of the {@link XrMarkerSpaceCreateInfoVARJO#next} field. */ + @NativeType("void const *") + public long next() { return XrMarkerSpaceCreateInfoVARJO.nnext(address()); } + /** @return the value of the {@link XrMarkerSpaceCreateInfoVARJO#markerId} field. */ + @NativeType("uint64_t") + public long markerId() { return XrMarkerSpaceCreateInfoVARJO.nmarkerId(address()); } + /** @return a {@link XrPosef} view of the {@link XrMarkerSpaceCreateInfoVARJO#poseInMarkerSpace} field. */ + public XrPosef poseInMarkerSpace() { return XrMarkerSpaceCreateInfoVARJO.nposeInMarkerSpace(address()); } + + /** Sets the specified value to the {@link XrMarkerSpaceCreateInfoVARJO#type} field. */ + public XrMarkerSpaceCreateInfoVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrMarkerSpaceCreateInfoVARJO.ntype(address(), value); return this; } + /** Sets the {@link VARJOMarkerTracking#XR_TYPE_MARKER_SPACE_CREATE_INFO_VARJO TYPE_MARKER_SPACE_CREATE_INFO_VARJO} value to the {@link XrMarkerSpaceCreateInfoVARJO#type} field. */ + public XrMarkerSpaceCreateInfoVARJO.Buffer type$Default() { return type(VARJOMarkerTracking.XR_TYPE_MARKER_SPACE_CREATE_INFO_VARJO); } + /** Sets the specified value to the {@link XrMarkerSpaceCreateInfoVARJO#next} field. */ + public XrMarkerSpaceCreateInfoVARJO.Buffer next(@NativeType("void const *") long value) { XrMarkerSpaceCreateInfoVARJO.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrMarkerSpaceCreateInfoVARJO#markerId} field. */ + public XrMarkerSpaceCreateInfoVARJO.Buffer markerId(@NativeType("uint64_t") long value) { XrMarkerSpaceCreateInfoVARJO.nmarkerId(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrMarkerSpaceCreateInfoVARJO#poseInMarkerSpace} field. */ + public XrMarkerSpaceCreateInfoVARJO.Buffer poseInMarkerSpace(XrPosef value) { XrMarkerSpaceCreateInfoVARJO.nposeInMarkerSpace(address(), value); return this; } + /** Passes the {@link XrMarkerSpaceCreateInfoVARJO#poseInMarkerSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrMarkerSpaceCreateInfoVARJO.Buffer poseInMarkerSpace(java.util.function.Consumer consumer) { consumer.accept(poseInMarkerSpace()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrNewSceneComputeInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrNewSceneComputeInfoMSFT.java index d18504f395..dad6e91975 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrNewSceneComputeInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrNewSceneComputeInfoMSFT.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The information to compute a new scene. * @@ -24,7 +24,7 @@ *
                                                    *
                                                  • The {@link MSFTSceneUnderstanding XR_MSFT_scene_understanding} extension must be enabled prior to using {@link XrNewSceneComputeInfoMSFT}
                                                  • *
                                                  • {@code type} must be {@link MSFTSceneUnderstanding#XR_TYPE_NEW_SCENE_COMPUTE_INFO_MSFT TYPE_NEW_SCENE_COMPUTE_INFO_MSFT}
                                                  • - *
                                                  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrVisualMeshComputeLodInfoMSFT}
                                                  • + *
                                                  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrVisualMeshComputeLodInfoMSFT}
                                                  • *
                                                  • {@code requestedFeatures} must be a pointer to an array of {@code requestedFeatureCount} valid {@code XrSceneComputeFeatureMSFT} values
                                                  • *
                                                  • {@code consistency} must be a valid {@code XrSceneComputeConsistencyMSFT} value
                                                  • *
                                                  • {@code bounds} must be a valid {@link XrSceneBoundsMSFT} structure
                                                  • @@ -46,8 +46,8 @@ * XrSceneComputeConsistencyMSFT {@link #consistency}; * {@link XrSceneBoundsMSFT XrSceneBoundsMSFT} {@link #bounds}; * } - */ -public class XrNewSceneComputeInfoMSFT extends Struct implements NativeResource { + */ +public class XrNewSceneComputeInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,33 +57,33 @@ public class XrNewSceneComputeInfoMSFT extends Struct /** The struct member offsets. */ public static final int - TYPE, - NEXT, - REQUESTEDFEATURECOUNT, - REQUESTEDFEATURES, - CONSISTENCY, - BOUNDS; + TYPE, + NEXT, + REQUESTEDFEATURECOUNT, + REQUESTEDFEATURES, + CONSISTENCY, + BOUNDS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(POINTER_SIZE), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(POINTER_SIZE), + __member(4), __member(XrSceneBoundsMSFT.SIZEOF, XrSceneBoundsMSFT.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - REQUESTEDFEATURECOUNT = layout.offsetof(2); - REQUESTEDFEATURES = layout.offsetof(3); - CONSISTENCY = layout.offsetof(4); - BOUNDS = layout.offsetof(5); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + REQUESTEDFEATURECOUNT = layout.offsetof(2); + REQUESTEDFEATURES = layout.offsetof(3); + CONSISTENCY = layout.offsetof(4); + BOUNDS = layout.offsetof(5); + } protected XrNewSceneComputeInfoMSFT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -106,55 +106,55 @@ public XrNewSceneComputeInfoMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** the number of features. */ - @NativeType("uint32_t") - public int requestedFeatureCount() { return nrequestedFeatureCount(address()); } - /** an array of {@code XrSceneComputeFeatureMSFT}. */ - @NativeType("XrSceneComputeFeatureMSFT const *") - public IntBuffer requestedFeatures() { return nrequestedFeatures(address()); } - /** indicates the requested {@code XrSceneComputeConsistencyMSFT}, trading off speed against the quality of the resulting scene. */ - @NativeType("XrSceneComputeConsistencyMSFT") - public int consistency() { return nconsistency(address()); } - /** an {@link XrSceneBoundsMSFT} representing the culling volume. Scene components entirely outside this volume should culled. */ - public XrSceneBoundsMSFT bounds() { return nbounds(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrNewSceneComputeInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_NEW_SCENE_COMPUTE_INFO_MSFT TYPE_NEW_SCENE_COMPUTE_INFO_MSFT} value to the {@link #type} field. */ - public XrNewSceneComputeInfoMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_NEW_SCENE_COMPUTE_INFO_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrNewSceneComputeInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrVisualMeshComputeLodInfoMSFT} value to the {@code next} chain. */ - public XrNewSceneComputeInfoMSFT next(XrVisualMeshComputeLodInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the address of the specified {@link IntBuffer} to the {@link #requestedFeatures} field. */ - public XrNewSceneComputeInfoMSFT requestedFeatures(@NativeType("XrSceneComputeFeatureMSFT const *") IntBuffer value) { nrequestedFeatures(address(), value); return this; } - /** Sets the specified value to the {@link #consistency} field. */ - public XrNewSceneComputeInfoMSFT consistency(@NativeType("XrSceneComputeConsistencyMSFT") int value) { nconsistency(address(), value); return this; } - /** Copies the specified {@link XrSceneBoundsMSFT} to the {@link #bounds} field. */ - public XrNewSceneComputeInfoMSFT bounds(XrSceneBoundsMSFT value) { nbounds(address(), value); return this; } - /** Passes the {@link #bounds} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrNewSceneComputeInfoMSFT bounds(java.util.function.Consumer consumer) { consumer.accept(bounds()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the number of features. */ + @NativeType("uint32_t") + public int requestedFeatureCount() { return nrequestedFeatureCount(address()); } + /** an array of {@code XrSceneComputeFeatureMSFT}. */ + @NativeType("XrSceneComputeFeatureMSFT const *") + public IntBuffer requestedFeatures() { return nrequestedFeatures(address()); } + /** indicates the requested {@code XrSceneComputeConsistencyMSFT}, trading off speed against the quality of the resulting scene. */ + @NativeType("XrSceneComputeConsistencyMSFT") + public int consistency() { return nconsistency(address()); } + /** an {@link XrSceneBoundsMSFT} representing the culling volume. Scene components entirely outside this volume should culled. */ + public XrSceneBoundsMSFT bounds() { return nbounds(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrNewSceneComputeInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_NEW_SCENE_COMPUTE_INFO_MSFT TYPE_NEW_SCENE_COMPUTE_INFO_MSFT} value to the {@link #type} field. */ + public XrNewSceneComputeInfoMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_NEW_SCENE_COMPUTE_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrNewSceneComputeInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrVisualMeshComputeLodInfoMSFT} value to the {@code next} chain. */ + public XrNewSceneComputeInfoMSFT next(XrVisualMeshComputeLodInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the address of the specified {@link IntBuffer} to the {@link #requestedFeatures} field. */ + public XrNewSceneComputeInfoMSFT requestedFeatures(@NativeType("XrSceneComputeFeatureMSFT const *") IntBuffer value) { nrequestedFeatures(address(), value); return this; } + /** Sets the specified value to the {@link #consistency} field. */ + public XrNewSceneComputeInfoMSFT consistency(@NativeType("XrSceneComputeConsistencyMSFT") int value) { nconsistency(address(), value); return this; } + /** Copies the specified {@link XrSceneBoundsMSFT} to the {@link #bounds} field. */ + public XrNewSceneComputeInfoMSFT bounds(XrSceneBoundsMSFT value) { nbounds(address(), value); return this; } + /** Passes the {@link #bounds} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrNewSceneComputeInfoMSFT bounds(java.util.function.Consumer consumer) { consumer.accept(bounds()); return this; } /** Initializes this struct with the specified values. */ public XrNewSceneComputeInfoMSFT set( - int type, - long next, - IntBuffer requestedFeatures, - int consistency, + int type, + long next, + IntBuffer requestedFeatures, + int consistency, XrSceneBoundsMSFT bounds - ) { - type(type); - next(next); - requestedFeatures(requestedFeatures); - consistency(consistency); - bounds(bounds); + ) { + type(type); + next(next); + requestedFeatures(requestedFeatures); + consistency(consistency); + bounds(bounds); return this; } @@ -283,32 +283,32 @@ public static XrNewSceneComputeInfoMSFT.Buffer calloc(int capacity, MemoryStack } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrNewSceneComputeInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrNewSceneComputeInfoMSFT.NEXT); } - /** Unsafe version of {@link #requestedFeatureCount}. */ - public static int nrequestedFeatureCount(long struct) { return UNSAFE.getInt(null, struct + XrNewSceneComputeInfoMSFT.REQUESTEDFEATURECOUNT); } - /** Unsafe version of {@link #requestedFeatures() requestedFeatures}. */ - public static IntBuffer nrequestedFeatures(long struct) { return memIntBuffer(memGetAddress(struct + XrNewSceneComputeInfoMSFT.REQUESTEDFEATURES), nrequestedFeatureCount(struct)); } - /** Unsafe version of {@link #consistency}. */ - public static int nconsistency(long struct) { return UNSAFE.getInt(null, struct + XrNewSceneComputeInfoMSFT.CONSISTENCY); } - /** Unsafe version of {@link #bounds}. */ - public static XrSceneBoundsMSFT nbounds(long struct) { return XrSceneBoundsMSFT.create(struct + XrNewSceneComputeInfoMSFT.BOUNDS); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrNewSceneComputeInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrNewSceneComputeInfoMSFT.NEXT, value); } - /** Sets the specified value to the {@code requestedFeatureCount} field of the specified {@code struct}. */ - public static void nrequestedFeatureCount(long struct, int value) { UNSAFE.putInt(null, struct + XrNewSceneComputeInfoMSFT.REQUESTEDFEATURECOUNT, value); } - /** Unsafe version of {@link #requestedFeatures(IntBuffer) requestedFeatures}. */ - public static void nrequestedFeatures(long struct, IntBuffer value) { memPutAddress(struct + XrNewSceneComputeInfoMSFT.REQUESTEDFEATURES, memAddress(value)); nrequestedFeatureCount(struct, value.remaining()); } - /** Unsafe version of {@link #consistency(int) consistency}. */ - public static void nconsistency(long struct, int value) { UNSAFE.putInt(null, struct + XrNewSceneComputeInfoMSFT.CONSISTENCY, value); } - /** Unsafe version of {@link #bounds(XrSceneBoundsMSFT) bounds}. */ - public static void nbounds(long struct, XrSceneBoundsMSFT value) { memCopy(value.address(), struct + XrNewSceneComputeInfoMSFT.BOUNDS, XrSceneBoundsMSFT.SIZEOF); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrNewSceneComputeInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrNewSceneComputeInfoMSFT.NEXT); } + /** Unsafe version of {@link #requestedFeatureCount}. */ + public static int nrequestedFeatureCount(long struct) { return UNSAFE.getInt(null, struct + XrNewSceneComputeInfoMSFT.REQUESTEDFEATURECOUNT); } + /** Unsafe version of {@link #requestedFeatures() requestedFeatures}. */ + public static IntBuffer nrequestedFeatures(long struct) { return memIntBuffer(memGetAddress(struct + XrNewSceneComputeInfoMSFT.REQUESTEDFEATURES), nrequestedFeatureCount(struct)); } + /** Unsafe version of {@link #consistency}. */ + public static int nconsistency(long struct) { return UNSAFE.getInt(null, struct + XrNewSceneComputeInfoMSFT.CONSISTENCY); } + /** Unsafe version of {@link #bounds}. */ + public static XrSceneBoundsMSFT nbounds(long struct) { return XrSceneBoundsMSFT.create(struct + XrNewSceneComputeInfoMSFT.BOUNDS); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrNewSceneComputeInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrNewSceneComputeInfoMSFT.NEXT, value); } + /** Sets the specified value to the {@code requestedFeatureCount} field of the specified {@code struct}. */ + public static void nrequestedFeatureCount(long struct, int value) { UNSAFE.putInt(null, struct + XrNewSceneComputeInfoMSFT.REQUESTEDFEATURECOUNT, value); } + /** Unsafe version of {@link #requestedFeatures(IntBuffer) requestedFeatures}. */ + public static void nrequestedFeatures(long struct, IntBuffer value) { memPutAddress(struct + XrNewSceneComputeInfoMSFT.REQUESTEDFEATURES, memAddress(value)); nrequestedFeatureCount(struct, value.remaining()); } + /** Unsafe version of {@link #consistency(int) consistency}. */ + public static void nconsistency(long struct, int value) { UNSAFE.putInt(null, struct + XrNewSceneComputeInfoMSFT.CONSISTENCY, value); } + /** Unsafe version of {@link #bounds(XrSceneBoundsMSFT) bounds}. */ + public static void nbounds(long struct, XrSceneBoundsMSFT value) { memCopy(value.address(), struct + XrNewSceneComputeInfoMSFT.BOUNDS, XrSceneBoundsMSFT.SIZEOF); } /** * Validates pointer members that should not be {@code NULL}. @@ -318,9 +318,9 @@ public static XrNewSceneComputeInfoMSFT.Buffer calloc(int capacity, MemoryStack public static void validate(long struct) { check(memGetAddress(struct + XrNewSceneComputeInfoMSFT.REQUESTEDFEATURES)); XrSceneBoundsMSFT.validate(struct + XrNewSceneComputeInfoMSFT.BOUNDS); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrNewSceneComputeInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -357,41 +357,41 @@ protected Buffer self() { protected XrNewSceneComputeInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrNewSceneComputeInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrNewSceneComputeInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrNewSceneComputeInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrNewSceneComputeInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrNewSceneComputeInfoMSFT#requestedFeatureCount} field. */ - @NativeType("uint32_t") - public int requestedFeatureCount() { return XrNewSceneComputeInfoMSFT.nrequestedFeatureCount(address()); } - /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrNewSceneComputeInfoMSFT#requestedFeatures} field. */ - @NativeType("XrSceneComputeFeatureMSFT const *") - public IntBuffer requestedFeatures() { return XrNewSceneComputeInfoMSFT.nrequestedFeatures(address()); } - /** @return the value of the {@link XrNewSceneComputeInfoMSFT#consistency} field. */ - @NativeType("XrSceneComputeConsistencyMSFT") - public int consistency() { return XrNewSceneComputeInfoMSFT.nconsistency(address()); } - /** @return a {@link XrSceneBoundsMSFT} view of the {@link XrNewSceneComputeInfoMSFT#bounds} field. */ - public XrSceneBoundsMSFT bounds() { return XrNewSceneComputeInfoMSFT.nbounds(address()); } - - /** Sets the specified value to the {@link XrNewSceneComputeInfoMSFT#type} field. */ - public XrNewSceneComputeInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrNewSceneComputeInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_NEW_SCENE_COMPUTE_INFO_MSFT TYPE_NEW_SCENE_COMPUTE_INFO_MSFT} value to the {@link XrNewSceneComputeInfoMSFT#type} field. */ - public XrNewSceneComputeInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_NEW_SCENE_COMPUTE_INFO_MSFT); } - /** Sets the specified value to the {@link XrNewSceneComputeInfoMSFT#next} field. */ - public XrNewSceneComputeInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrNewSceneComputeInfoMSFT.nnext(address(), value); return this; } - /** Prepends the specified {@link XrVisualMeshComputeLodInfoMSFT} value to the {@code next} chain. */ - public XrNewSceneComputeInfoMSFT.Buffer next(XrVisualMeshComputeLodInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the address of the specified {@link IntBuffer} to the {@link XrNewSceneComputeInfoMSFT#requestedFeatures} field. */ - public XrNewSceneComputeInfoMSFT.Buffer requestedFeatures(@NativeType("XrSceneComputeFeatureMSFT const *") IntBuffer value) { XrNewSceneComputeInfoMSFT.nrequestedFeatures(address(), value); return this; } - /** Sets the specified value to the {@link XrNewSceneComputeInfoMSFT#consistency} field. */ - public XrNewSceneComputeInfoMSFT.Buffer consistency(@NativeType("XrSceneComputeConsistencyMSFT") int value) { XrNewSceneComputeInfoMSFT.nconsistency(address(), value); return this; } - /** Copies the specified {@link XrSceneBoundsMSFT} to the {@link XrNewSceneComputeInfoMSFT#bounds} field. */ - public XrNewSceneComputeInfoMSFT.Buffer bounds(XrSceneBoundsMSFT value) { XrNewSceneComputeInfoMSFT.nbounds(address(), value); return this; } - /** Passes the {@link XrNewSceneComputeInfoMSFT#bounds} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrNewSceneComputeInfoMSFT.Buffer bounds(java.util.function.Consumer consumer) { consumer.accept(bounds()); return this; } + + /** @return the value of the {@link XrNewSceneComputeInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrNewSceneComputeInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrNewSceneComputeInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrNewSceneComputeInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrNewSceneComputeInfoMSFT#requestedFeatureCount} field. */ + @NativeType("uint32_t") + public int requestedFeatureCount() { return XrNewSceneComputeInfoMSFT.nrequestedFeatureCount(address()); } + /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrNewSceneComputeInfoMSFT#requestedFeatures} field. */ + @NativeType("XrSceneComputeFeatureMSFT const *") + public IntBuffer requestedFeatures() { return XrNewSceneComputeInfoMSFT.nrequestedFeatures(address()); } + /** @return the value of the {@link XrNewSceneComputeInfoMSFT#consistency} field. */ + @NativeType("XrSceneComputeConsistencyMSFT") + public int consistency() { return XrNewSceneComputeInfoMSFT.nconsistency(address()); } + /** @return a {@link XrSceneBoundsMSFT} view of the {@link XrNewSceneComputeInfoMSFT#bounds} field. */ + public XrSceneBoundsMSFT bounds() { return XrNewSceneComputeInfoMSFT.nbounds(address()); } + + /** Sets the specified value to the {@link XrNewSceneComputeInfoMSFT#type} field. */ + public XrNewSceneComputeInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrNewSceneComputeInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_NEW_SCENE_COMPUTE_INFO_MSFT TYPE_NEW_SCENE_COMPUTE_INFO_MSFT} value to the {@link XrNewSceneComputeInfoMSFT#type} field. */ + public XrNewSceneComputeInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_NEW_SCENE_COMPUTE_INFO_MSFT); } + /** Sets the specified value to the {@link XrNewSceneComputeInfoMSFT#next} field. */ + public XrNewSceneComputeInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrNewSceneComputeInfoMSFT.nnext(address(), value); return this; } + /** Prepends the specified {@link XrVisualMeshComputeLodInfoMSFT} value to the {@code next} chain. */ + public XrNewSceneComputeInfoMSFT.Buffer next(XrVisualMeshComputeLodInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the address of the specified {@link IntBuffer} to the {@link XrNewSceneComputeInfoMSFT#requestedFeatures} field. */ + public XrNewSceneComputeInfoMSFT.Buffer requestedFeatures(@NativeType("XrSceneComputeFeatureMSFT const *") IntBuffer value) { XrNewSceneComputeInfoMSFT.nrequestedFeatures(address(), value); return this; } + /** Sets the specified value to the {@link XrNewSceneComputeInfoMSFT#consistency} field. */ + public XrNewSceneComputeInfoMSFT.Buffer consistency(@NativeType("XrSceneComputeConsistencyMSFT") int value) { XrNewSceneComputeInfoMSFT.nconsistency(address(), value); return this; } + /** Copies the specified {@link XrSceneBoundsMSFT} to the {@link XrNewSceneComputeInfoMSFT#bounds} field. */ + public XrNewSceneComputeInfoMSFT.Buffer bounds(XrSceneBoundsMSFT value) { XrNewSceneComputeInfoMSFT.nbounds(address(), value); return this; } + /** Passes the {@link XrNewSceneComputeInfoMSFT#bounds} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrNewSceneComputeInfoMSFT.Buffer bounds(java.util.function.Consumer consumer) { consumer.accept(bounds()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrOffset2Df.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrOffset2Df.java index a6e6ae18fa..8f65f84fb5 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrOffset2Df.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrOffset2Df.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Float offset in two dimensions. * @@ -33,8 +33,8 @@ * float {@link #x}; * float {@link #y}; * } - */ -public class XrOffset2Df extends Struct implements NativeResource { + */ +public class XrOffset2Df extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -44,21 +44,21 @@ public class XrOffset2Df extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - X, - Y; + X, + Y; static { - Layout layout = __struct( - __member(4), + Layout layout = __struct( + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - X = layout.offsetof(0); - Y = layout.offsetof(1); - } + X = layout.offsetof(0); + Y = layout.offsetof(1); + } protected XrOffset2Df(long address, @Nullable ByteBuffer container) { super(address, container); @@ -81,24 +81,24 @@ public XrOffset2Df(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the floating-point offset in the x direction. */ - public float x() { return nx(address()); } - /** the floating-point offset in the y direction. */ - public float y() { return ny(address()); } - - /** Sets the specified value to the {@link #x} field. */ - public XrOffset2Df x(float value) { nx(address(), value); return this; } - /** Sets the specified value to the {@link #y} field. */ - public XrOffset2Df y(float value) { ny(address(), value); return this; } + + /** the floating-point offset in the x direction. */ + public float x() { return nx(address()); } + /** the floating-point offset in the y direction. */ + public float y() { return ny(address()); } + + /** Sets the specified value to the {@link #x} field. */ + public XrOffset2Df x(float value) { nx(address(), value); return this; } + /** Sets the specified value to the {@link #y} field. */ + public XrOffset2Df y(float value) { ny(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrOffset2Df set( - float x, + float x, float y - ) { - x(x); - y(y); + ) { + x(x); + y(y); return this; } @@ -227,18 +227,18 @@ public static XrOffset2Df.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #x}. */ - public static float nx(long struct) { return UNSAFE.getFloat(null, struct + XrOffset2Df.X); } - /** Unsafe version of {@link #y}. */ - public static float ny(long struct) { return UNSAFE.getFloat(null, struct + XrOffset2Df.Y); } - - /** Unsafe version of {@link #x(float) x}. */ - public static void nx(long struct, float value) { UNSAFE.putFloat(null, struct + XrOffset2Df.X, value); } - /** Unsafe version of {@link #y(float) y}. */ - public static void ny(long struct, float value) { UNSAFE.putFloat(null, struct + XrOffset2Df.Y, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #x}. */ + public static float nx(long struct) { return UNSAFE.getFloat(null, struct + XrOffset2Df.X); } + /** Unsafe version of {@link #y}. */ + public static float ny(long struct) { return UNSAFE.getFloat(null, struct + XrOffset2Df.Y); } + + /** Unsafe version of {@link #x(float) x}. */ + public static void nx(long struct, float value) { UNSAFE.putFloat(null, struct + XrOffset2Df.X, value); } + /** Unsafe version of {@link #y(float) y}. */ + public static void ny(long struct, float value) { UNSAFE.putFloat(null, struct + XrOffset2Df.Y, value); } + + // ----------------------------------- /** An array of {@link XrOffset2Df} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -275,16 +275,16 @@ protected Buffer self() { protected XrOffset2Df getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrOffset2Df#x} field. */ - public float x() { return XrOffset2Df.nx(address()); } - /** @return the value of the {@link XrOffset2Df#y} field. */ - public float y() { return XrOffset2Df.ny(address()); } - - /** Sets the specified value to the {@link XrOffset2Df#x} field. */ - public XrOffset2Df.Buffer x(float value) { XrOffset2Df.nx(address(), value); return this; } - /** Sets the specified value to the {@link XrOffset2Df#y} field. */ - public XrOffset2Df.Buffer y(float value) { XrOffset2Df.ny(address(), value); return this; } + + /** @return the value of the {@link XrOffset2Df#x} field. */ + public float x() { return XrOffset2Df.nx(address()); } + /** @return the value of the {@link XrOffset2Df#y} field. */ + public float y() { return XrOffset2Df.ny(address()); } + + /** Sets the specified value to the {@link XrOffset2Df#x} field. */ + public XrOffset2Df.Buffer x(float value) { XrOffset2Df.nx(address(), value); return this; } + /** Sets the specified value to the {@link XrOffset2Df#y} field. */ + public XrOffset2Df.Buffer y(float value) { XrOffset2Df.ny(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrOffset2Di.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrOffset2Di.java index ccedc83d4b..f69f2c7504 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrOffset2Di.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrOffset2Di.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Offset in two dimensions. * @@ -33,8 +33,8 @@ * int32_t {@link #x}; * int32_t {@link #y}; * } - */ -public class XrOffset2Di extends Struct implements NativeResource { + */ +public class XrOffset2Di extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -44,21 +44,21 @@ public class XrOffset2Di extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - X, - Y; + X, + Y; static { - Layout layout = __struct( - __member(4), + Layout layout = __struct( + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - X = layout.offsetof(0); - Y = layout.offsetof(1); - } + X = layout.offsetof(0); + Y = layout.offsetof(1); + } protected XrOffset2Di(long address, @Nullable ByteBuffer container) { super(address, container); @@ -81,26 +81,26 @@ public XrOffset2Di(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the integer offset in the x direction. */ - @NativeType("int32_t") - public int x() { return nx(address()); } - /** the integer offset in the y direction. */ - @NativeType("int32_t") - public int y() { return ny(address()); } - - /** Sets the specified value to the {@link #x} field. */ - public XrOffset2Di x(@NativeType("int32_t") int value) { nx(address(), value); return this; } - /** Sets the specified value to the {@link #y} field. */ - public XrOffset2Di y(@NativeType("int32_t") int value) { ny(address(), value); return this; } + + /** the integer offset in the x direction. */ + @NativeType("int32_t") + public int x() { return nx(address()); } + /** the integer offset in the y direction. */ + @NativeType("int32_t") + public int y() { return ny(address()); } + + /** Sets the specified value to the {@link #x} field. */ + public XrOffset2Di x(@NativeType("int32_t") int value) { nx(address(), value); return this; } + /** Sets the specified value to the {@link #y} field. */ + public XrOffset2Di y(@NativeType("int32_t") int value) { ny(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrOffset2Di set( - int x, + int x, int y - ) { - x(x); - y(y); + ) { + x(x); + y(y); return this; } @@ -229,18 +229,18 @@ public static XrOffset2Di.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #x}. */ - public static int nx(long struct) { return UNSAFE.getInt(null, struct + XrOffset2Di.X); } - /** Unsafe version of {@link #y}. */ - public static int ny(long struct) { return UNSAFE.getInt(null, struct + XrOffset2Di.Y); } - - /** Unsafe version of {@link #x(int) x}. */ - public static void nx(long struct, int value) { UNSAFE.putInt(null, struct + XrOffset2Di.X, value); } - /** Unsafe version of {@link #y(int) y}. */ - public static void ny(long struct, int value) { UNSAFE.putInt(null, struct + XrOffset2Di.Y, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #x}. */ + public static int nx(long struct) { return UNSAFE.getInt(null, struct + XrOffset2Di.X); } + /** Unsafe version of {@link #y}. */ + public static int ny(long struct) { return UNSAFE.getInt(null, struct + XrOffset2Di.Y); } + + /** Unsafe version of {@link #x(int) x}. */ + public static void nx(long struct, int value) { UNSAFE.putInt(null, struct + XrOffset2Di.X, value); } + /** Unsafe version of {@link #y(int) y}. */ + public static void ny(long struct, int value) { UNSAFE.putInt(null, struct + XrOffset2Di.Y, value); } + + // ----------------------------------- /** An array of {@link XrOffset2Di} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -277,18 +277,18 @@ protected Buffer self() { protected XrOffset2Di getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrOffset2Di#x} field. */ - @NativeType("int32_t") - public int x() { return XrOffset2Di.nx(address()); } - /** @return the value of the {@link XrOffset2Di#y} field. */ - @NativeType("int32_t") - public int y() { return XrOffset2Di.ny(address()); } - - /** Sets the specified value to the {@link XrOffset2Di#x} field. */ - public XrOffset2Di.Buffer x(@NativeType("int32_t") int value) { XrOffset2Di.nx(address(), value); return this; } - /** Sets the specified value to the {@link XrOffset2Di#y} field. */ - public XrOffset2Di.Buffer y(@NativeType("int32_t") int value) { XrOffset2Di.ny(address(), value); return this; } + + /** @return the value of the {@link XrOffset2Di#x} field. */ + @NativeType("int32_t") + public int x() { return XrOffset2Di.nx(address()); } + /** @return the value of the {@link XrOffset2Di#y} field. */ + @NativeType("int32_t") + public int y() { return XrOffset2Di.ny(address()); } + + /** Sets the specified value to the {@link XrOffset2Di#x} field. */ + public XrOffset2Di.Buffer x(@NativeType("int32_t") int value) { XrOffset2Di.nx(address(), value); return this; } + /** Sets the specified value to the {@link XrOffset2Di#y} field. */ + public XrOffset2Di.Buffer y(@NativeType("int32_t") int value) { XrOffset2Di.ny(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrOffset3DfFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrOffset3DfFB.java index 9a14ddde12..0cbd94b8b4 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrOffset3DfFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrOffset3DfFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Represents a point of 3D space. * @@ -40,8 +40,8 @@ * float {@link #y}; * float {@link #z}; * } - */ -public class XrOffset3DfFB extends Struct implements NativeResource { + */ +public class XrOffset3DfFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,24 +51,24 @@ public class XrOffset3DfFB extends Struct implements NativeResour /** The struct member offsets. */ public static final int - X, - Y, - Z; + X, + Y, + Z; static { - Layout layout = __struct( - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - X = layout.offsetof(0); - Y = layout.offsetof(1); - Z = layout.offsetof(2); - } + X = layout.offsetof(0); + Y = layout.offsetof(1); + Z = layout.offsetof(2); + } protected XrOffset3DfFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -91,30 +91,30 @@ public XrOffset3DfFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the floating-point offset in the x direction. */ - public float x() { return nx(address()); } - /** the floating-point offset in the y direction. */ - public float y() { return ny(address()); } - /** the floating-point offset in the z direction. */ - public float z() { return nz(address()); } - - /** Sets the specified value to the {@link #x} field. */ - public XrOffset3DfFB x(float value) { nx(address(), value); return this; } - /** Sets the specified value to the {@link #y} field. */ - public XrOffset3DfFB y(float value) { ny(address(), value); return this; } - /** Sets the specified value to the {@link #z} field. */ - public XrOffset3DfFB z(float value) { nz(address(), value); return this; } + + /** the floating-point offset in the x direction. */ + public float x() { return nx(address()); } + /** the floating-point offset in the y direction. */ + public float y() { return ny(address()); } + /** the floating-point offset in the z direction. */ + public float z() { return nz(address()); } + + /** Sets the specified value to the {@link #x} field. */ + public XrOffset3DfFB x(float value) { nx(address(), value); return this; } + /** Sets the specified value to the {@link #y} field. */ + public XrOffset3DfFB y(float value) { ny(address(), value); return this; } + /** Sets the specified value to the {@link #z} field. */ + public XrOffset3DfFB z(float value) { nz(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrOffset3DfFB set( - float x, - float y, + float x, + float y, float z - ) { - x(x); - y(y); - z(z); + ) { + x(x); + y(y); + z(z); return this; } @@ -243,22 +243,22 @@ public static XrOffset3DfFB.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #x}. */ - public static float nx(long struct) { return UNSAFE.getFloat(null, struct + XrOffset3DfFB.X); } - /** Unsafe version of {@link #y}. */ - public static float ny(long struct) { return UNSAFE.getFloat(null, struct + XrOffset3DfFB.Y); } - /** Unsafe version of {@link #z}. */ - public static float nz(long struct) { return UNSAFE.getFloat(null, struct + XrOffset3DfFB.Z); } - - /** Unsafe version of {@link #x(float) x}. */ - public static void nx(long struct, float value) { UNSAFE.putFloat(null, struct + XrOffset3DfFB.X, value); } - /** Unsafe version of {@link #y(float) y}. */ - public static void ny(long struct, float value) { UNSAFE.putFloat(null, struct + XrOffset3DfFB.Y, value); } - /** Unsafe version of {@link #z(float) z}. */ - public static void nz(long struct, float value) { UNSAFE.putFloat(null, struct + XrOffset3DfFB.Z, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #x}. */ + public static float nx(long struct) { return UNSAFE.getFloat(null, struct + XrOffset3DfFB.X); } + /** Unsafe version of {@link #y}. */ + public static float ny(long struct) { return UNSAFE.getFloat(null, struct + XrOffset3DfFB.Y); } + /** Unsafe version of {@link #z}. */ + public static float nz(long struct) { return UNSAFE.getFloat(null, struct + XrOffset3DfFB.Z); } + + /** Unsafe version of {@link #x(float) x}. */ + public static void nx(long struct, float value) { UNSAFE.putFloat(null, struct + XrOffset3DfFB.X, value); } + /** Unsafe version of {@link #y(float) y}. */ + public static void ny(long struct, float value) { UNSAFE.putFloat(null, struct + XrOffset3DfFB.Y, value); } + /** Unsafe version of {@link #z(float) z}. */ + public static void nz(long struct, float value) { UNSAFE.putFloat(null, struct + XrOffset3DfFB.Z, value); } + + // ----------------------------------- /** An array of {@link XrOffset3DfFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -295,20 +295,20 @@ protected Buffer self() { protected XrOffset3DfFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrOffset3DfFB#x} field. */ - public float x() { return XrOffset3DfFB.nx(address()); } - /** @return the value of the {@link XrOffset3DfFB#y} field. */ - public float y() { return XrOffset3DfFB.ny(address()); } - /** @return the value of the {@link XrOffset3DfFB#z} field. */ - public float z() { return XrOffset3DfFB.nz(address()); } - - /** Sets the specified value to the {@link XrOffset3DfFB#x} field. */ - public XrOffset3DfFB.Buffer x(float value) { XrOffset3DfFB.nx(address(), value); return this; } - /** Sets the specified value to the {@link XrOffset3DfFB#y} field. */ - public XrOffset3DfFB.Buffer y(float value) { XrOffset3DfFB.ny(address(), value); return this; } - /** Sets the specified value to the {@link XrOffset3DfFB#z} field. */ - public XrOffset3DfFB.Buffer z(float value) { XrOffset3DfFB.nz(address(), value); return this; } + + /** @return the value of the {@link XrOffset3DfFB#x} field. */ + public float x() { return XrOffset3DfFB.nx(address()); } + /** @return the value of the {@link XrOffset3DfFB#y} field. */ + public float y() { return XrOffset3DfFB.ny(address()); } + /** @return the value of the {@link XrOffset3DfFB#z} field. */ + public float z() { return XrOffset3DfFB.nz(address()); } + + /** Sets the specified value to the {@link XrOffset3DfFB#x} field. */ + public XrOffset3DfFB.Buffer x(float value) { XrOffset3DfFB.nx(address(), value); return this; } + /** Sets the specified value to the {@link XrOffset3DfFB#y} field. */ + public XrOffset3DfFB.Buffer y(float value) { XrOffset3DfFB.ny(address(), value); return this; } + /** Sets the specified value to the {@link XrOffset3DfFB#z} field. */ + public XrOffset3DfFB.Buffer z(float value) { XrOffset3DfFB.nz(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughBrightnessContrastSaturationFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughBrightnessContrastSaturationFB.java index 67af6e4f9c..6086edd268 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughBrightnessContrastSaturationFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughBrightnessContrastSaturationFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * A color adjustment for passthrough layers. * @@ -38,7 +38,7 @@ *
                                                      *
                                                    • The {@link FBPassthrough XR_FB_passthrough} extension must be enabled prior to using {@link XrPassthroughBrightnessContrastSaturationFB}
                                                    • *
                                                    • {@code type} must be {@link FBPassthrough#XR_TYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FB TYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FB}
                                                    • - *
                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                    • + *
                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                    • *
                                                    * *

                                                    Layout

                                                    @@ -51,8 +51,8 @@ * float {@link #contrast}; * float {@link #saturation}; * } - */ -public class XrPassthroughBrightnessContrastSaturationFB extends Struct implements NativeResource { + */ +public class XrPassthroughBrightnessContrastSaturationFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -62,30 +62,30 @@ public class XrPassthroughBrightnessContrastSaturationFB extends Struct implements NativeResource { @@ -336,32 +336,32 @@ protected Buffer self() { protected XrPassthroughBrightnessContrastSaturationFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrPassthroughBrightnessContrastSaturationFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPassthroughBrightnessContrastSaturationFB.ntype(address()); } - /** @return the value of the {@link XrPassthroughBrightnessContrastSaturationFB#next} field. */ - @NativeType("void const *") - public long next() { return XrPassthroughBrightnessContrastSaturationFB.nnext(address()); } - /** @return the value of the {@link XrPassthroughBrightnessContrastSaturationFB#brightness} field. */ - public float brightness() { return XrPassthroughBrightnessContrastSaturationFB.nbrightness(address()); } - /** @return the value of the {@link XrPassthroughBrightnessContrastSaturationFB#contrast} field. */ - public float contrast() { return XrPassthroughBrightnessContrastSaturationFB.ncontrast(address()); } - /** @return the value of the {@link XrPassthroughBrightnessContrastSaturationFB#saturation} field. */ - public float saturation() { return XrPassthroughBrightnessContrastSaturationFB.nsaturation(address()); } - - /** Sets the specified value to the {@link XrPassthroughBrightnessContrastSaturationFB#type} field. */ - public XrPassthroughBrightnessContrastSaturationFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughBrightnessContrastSaturationFB.ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FB TYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FB} value to the {@link XrPassthroughBrightnessContrastSaturationFB#type} field. */ - public XrPassthroughBrightnessContrastSaturationFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FB); } - /** Sets the specified value to the {@link XrPassthroughBrightnessContrastSaturationFB#next} field. */ - public XrPassthroughBrightnessContrastSaturationFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughBrightnessContrastSaturationFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrPassthroughBrightnessContrastSaturationFB#brightness} field. */ - public XrPassthroughBrightnessContrastSaturationFB.Buffer brightness(float value) { XrPassthroughBrightnessContrastSaturationFB.nbrightness(address(), value); return this; } - /** Sets the specified value to the {@link XrPassthroughBrightnessContrastSaturationFB#contrast} field. */ - public XrPassthroughBrightnessContrastSaturationFB.Buffer contrast(float value) { XrPassthroughBrightnessContrastSaturationFB.ncontrast(address(), value); return this; } - /** Sets the specified value to the {@link XrPassthroughBrightnessContrastSaturationFB#saturation} field. */ - public XrPassthroughBrightnessContrastSaturationFB.Buffer saturation(float value) { XrPassthroughBrightnessContrastSaturationFB.nsaturation(address(), value); return this; } + + /** @return the value of the {@link XrPassthroughBrightnessContrastSaturationFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrPassthroughBrightnessContrastSaturationFB.ntype(address()); } + /** @return the value of the {@link XrPassthroughBrightnessContrastSaturationFB#next} field. */ + @NativeType("void const *") + public long next() { return XrPassthroughBrightnessContrastSaturationFB.nnext(address()); } + /** @return the value of the {@link XrPassthroughBrightnessContrastSaturationFB#brightness} field. */ + public float brightness() { return XrPassthroughBrightnessContrastSaturationFB.nbrightness(address()); } + /** @return the value of the {@link XrPassthroughBrightnessContrastSaturationFB#contrast} field. */ + public float contrast() { return XrPassthroughBrightnessContrastSaturationFB.ncontrast(address()); } + /** @return the value of the {@link XrPassthroughBrightnessContrastSaturationFB#saturation} field. */ + public float saturation() { return XrPassthroughBrightnessContrastSaturationFB.nsaturation(address()); } + + /** Sets the specified value to the {@link XrPassthroughBrightnessContrastSaturationFB#type} field. */ + public XrPassthroughBrightnessContrastSaturationFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughBrightnessContrastSaturationFB.ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FB TYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FB} value to the {@link XrPassthroughBrightnessContrastSaturationFB#type} field. */ + public XrPassthroughBrightnessContrastSaturationFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_BRIGHTNESS_CONTRAST_SATURATION_FB); } + /** Sets the specified value to the {@link XrPassthroughBrightnessContrastSaturationFB#next} field. */ + public XrPassthroughBrightnessContrastSaturationFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughBrightnessContrastSaturationFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrPassthroughBrightnessContrastSaturationFB#brightness} field. */ + public XrPassthroughBrightnessContrastSaturationFB.Buffer brightness(float value) { XrPassthroughBrightnessContrastSaturationFB.nbrightness(address(), value); return this; } + /** Sets the specified value to the {@link XrPassthroughBrightnessContrastSaturationFB#contrast} field. */ + public XrPassthroughBrightnessContrastSaturationFB.Buffer contrast(float value) { XrPassthroughBrightnessContrastSaturationFB.ncontrast(address(), value); return this; } + /** Sets the specified value to the {@link XrPassthroughBrightnessContrastSaturationFB#saturation} field. */ + public XrPassthroughBrightnessContrastSaturationFB.Buffer saturation(float value) { XrPassthroughBrightnessContrastSaturationFB.nsaturation(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorHTC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorHTC.java index 55f26d686b..6d32443b48 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorHTC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorHTC.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The alpha value of the passthrough. * @@ -27,7 +27,7 @@ *
                                                      *
                                                    • The {@link HTCPassthrough XR_HTC_passthrough} extension must be enabled prior to using {@link XrPassthroughColorHTC}
                                                    • *
                                                    • {@code type} must be {@link HTCPassthrough#XR_TYPE_PASSTHROUGH_COLOR_HTC TYPE_PASSTHROUGH_COLOR_HTC}
                                                    • - *
                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                    • + *
                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                    • *
                                                    * *
                                                    See Also
                                                    @@ -42,8 +42,8 @@ * void const * {@link #next}; * float {@link #alpha}; * } - */ -public class XrPassthroughColorHTC extends Struct implements NativeResource { + */ +public class XrPassthroughColorHTC extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,24 +53,24 @@ public class XrPassthroughColorHTC extends Struct impleme /** The struct member offsets. */ public static final int - TYPE, - NEXT, - ALPHA; + TYPE, + NEXT, + ALPHA; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - ALPHA = layout.offsetof(2); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + ALPHA = layout.offsetof(2); + } protected XrPassthroughColorHTC(long address, @Nullable ByteBuffer container) { super(address, container); @@ -93,34 +93,34 @@ public XrPassthroughColorHTC(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** the alpha value of the passthrough in the range [0, 1]. */ - public float alpha() { return nalpha(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrPassthroughColorHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link HTCPassthrough#XR_TYPE_PASSTHROUGH_COLOR_HTC TYPE_PASSTHROUGH_COLOR_HTC} value to the {@link #type} field. */ - public XrPassthroughColorHTC type$Default() { return type(HTCPassthrough.XR_TYPE_PASSTHROUGH_COLOR_HTC); } - /** Sets the specified value to the {@link #next} field. */ - public XrPassthroughColorHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #alpha} field. */ - public XrPassthroughColorHTC alpha(float value) { nalpha(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the alpha value of the passthrough in the range [0, 1]. */ + public float alpha() { return nalpha(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrPassthroughColorHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link HTCPassthrough#XR_TYPE_PASSTHROUGH_COLOR_HTC TYPE_PASSTHROUGH_COLOR_HTC} value to the {@link #type} field. */ + public XrPassthroughColorHTC type$Default() { return type(HTCPassthrough.XR_TYPE_PASSTHROUGH_COLOR_HTC); } + /** Sets the specified value to the {@link #next} field. */ + public XrPassthroughColorHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #alpha} field. */ + public XrPassthroughColorHTC alpha(float value) { nalpha(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrPassthroughColorHTC set( - int type, - long next, + int type, + long next, float alpha - ) { - type(type); - next(next); - alpha(alpha); + ) { + type(type); + next(next); + alpha(alpha); return this; } @@ -249,22 +249,22 @@ public static XrPassthroughColorHTC.Buffer calloc(int capacity, MemoryStack stac } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughColorHTC.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrPassthroughColorHTC.NEXT); } - /** Unsafe version of {@link #alpha}. */ - public static float nalpha(long struct) { return UNSAFE.getFloat(null, struct + XrPassthroughColorHTC.ALPHA); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughColorHTC.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrPassthroughColorHTC.NEXT, value); } - /** Unsafe version of {@link #alpha(float) alpha}. */ - public static void nalpha(long struct, float value) { UNSAFE.putFloat(null, struct + XrPassthroughColorHTC.ALPHA, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughColorHTC.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrPassthroughColorHTC.NEXT); } + /** Unsafe version of {@link #alpha}. */ + public static float nalpha(long struct) { return UNSAFE.getFloat(null, struct + XrPassthroughColorHTC.ALPHA); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughColorHTC.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrPassthroughColorHTC.NEXT, value); } + /** Unsafe version of {@link #alpha(float) alpha}. */ + public static void nalpha(long struct, float value) { UNSAFE.putFloat(null, struct + XrPassthroughColorHTC.ALPHA, value); } + + // ----------------------------------- /** An array of {@link XrPassthroughColorHTC} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -301,24 +301,24 @@ protected Buffer self() { protected XrPassthroughColorHTC getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrPassthroughColorHTC#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPassthroughColorHTC.ntype(address()); } - /** @return the value of the {@link XrPassthroughColorHTC#next} field. */ - @NativeType("void const *") - public long next() { return XrPassthroughColorHTC.nnext(address()); } - /** @return the value of the {@link XrPassthroughColorHTC#alpha} field. */ - public float alpha() { return XrPassthroughColorHTC.nalpha(address()); } - - /** Sets the specified value to the {@link XrPassthroughColorHTC#type} field. */ - public XrPassthroughColorHTC.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughColorHTC.ntype(address(), value); return this; } - /** Sets the {@link HTCPassthrough#XR_TYPE_PASSTHROUGH_COLOR_HTC TYPE_PASSTHROUGH_COLOR_HTC} value to the {@link XrPassthroughColorHTC#type} field. */ - public XrPassthroughColorHTC.Buffer type$Default() { return type(HTCPassthrough.XR_TYPE_PASSTHROUGH_COLOR_HTC); } - /** Sets the specified value to the {@link XrPassthroughColorHTC#next} field. */ - public XrPassthroughColorHTC.Buffer next(@NativeType("void const *") long value) { XrPassthroughColorHTC.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrPassthroughColorHTC#alpha} field. */ - public XrPassthroughColorHTC.Buffer alpha(float value) { XrPassthroughColorHTC.nalpha(address(), value); return this; } + + /** @return the value of the {@link XrPassthroughColorHTC#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrPassthroughColorHTC.ntype(address()); } + /** @return the value of the {@link XrPassthroughColorHTC#next} field. */ + @NativeType("void const *") + public long next() { return XrPassthroughColorHTC.nnext(address()); } + /** @return the value of the {@link XrPassthroughColorHTC#alpha} field. */ + public float alpha() { return XrPassthroughColorHTC.nalpha(address()); } + + /** Sets the specified value to the {@link XrPassthroughColorHTC#type} field. */ + public XrPassthroughColorHTC.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughColorHTC.ntype(address(), value); return this; } + /** Sets the {@link HTCPassthrough#XR_TYPE_PASSTHROUGH_COLOR_HTC TYPE_PASSTHROUGH_COLOR_HTC} value to the {@link XrPassthroughColorHTC#type} field. */ + public XrPassthroughColorHTC.Buffer type$Default() { return type(HTCPassthrough.XR_TYPE_PASSTHROUGH_COLOR_HTC); } + /** Sets the specified value to the {@link XrPassthroughColorHTC#next} field. */ + public XrPassthroughColorHTC.Buffer next(@NativeType("void const *") long value) { XrPassthroughColorHTC.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrPassthroughColorHTC#alpha} field. */ + public XrPassthroughColorHTC.Buffer alpha(float value) { XrPassthroughColorHTC.nalpha(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorMapMonoToMonoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorMapMonoToMonoFB.java index ad9dbd7eac..680d1e51b9 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorMapMonoToMonoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorMapMonoToMonoFB.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import static org.lwjgl.openxr.FBPassthrough.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.FBPassthrough.*; + /** * A layer color map. * @@ -32,7 +32,7 @@ *
                                                      *
                                                    • The {@link FBPassthrough XR_FB_passthrough} extension must be enabled prior to using {@link XrPassthroughColorMapMonoToMonoFB}
                                                    • *
                                                    • {@code type} must be {@link FBPassthrough#XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FB TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FB}
                                                    • - *
                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                    • + *
                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                    • *
                                                    * *

                                                    Layout

                                                    @@ -43,8 +43,8 @@ * void const * {@link #next}; * uint8_t {@link #textureColorMap}[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB]; * } - */ -public class XrPassthroughColorMapMonoToMonoFB extends Struct implements NativeResource { + */ +public class XrPassthroughColorMapMonoToMonoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,24 +54,24 @@ public class XrPassthroughColorMapMonoToMonoFB extends Struct implements NativeResource { @@ -319,30 +319,30 @@ protected Buffer self() { protected XrPassthroughColorMapMonoToMonoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrPassthroughColorMapMonoToMonoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPassthroughColorMapMonoToMonoFB.ntype(address()); } - /** @return the value of the {@link XrPassthroughColorMapMonoToMonoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrPassthroughColorMapMonoToMonoFB.nnext(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrPassthroughColorMapMonoToMonoFB#textureColorMap} field. */ - @NativeType("uint8_t[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB]") - public ByteBuffer textureColorMap() { return XrPassthroughColorMapMonoToMonoFB.ntextureColorMap(address()); } - /** @return the value at the specified index of the {@link XrPassthroughColorMapMonoToMonoFB#textureColorMap} field. */ - @NativeType("uint8_t") - public byte textureColorMap(int index) { return XrPassthroughColorMapMonoToMonoFB.ntextureColorMap(address(), index); } - - /** Sets the specified value to the {@link XrPassthroughColorMapMonoToMonoFB#type} field. */ - public XrPassthroughColorMapMonoToMonoFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughColorMapMonoToMonoFB.ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FB TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FB} value to the {@link XrPassthroughColorMapMonoToMonoFB#type} field. */ - public XrPassthroughColorMapMonoToMonoFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FB); } - /** Sets the specified value to the {@link XrPassthroughColorMapMonoToMonoFB#next} field. */ - public XrPassthroughColorMapMonoToMonoFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughColorMapMonoToMonoFB.nnext(address(), value); return this; } - /** Copies the specified {@link ByteBuffer} to the {@link XrPassthroughColorMapMonoToMonoFB#textureColorMap} field. */ - public XrPassthroughColorMapMonoToMonoFB.Buffer textureColorMap(@NativeType("uint8_t[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB]") ByteBuffer value) { XrPassthroughColorMapMonoToMonoFB.ntextureColorMap(address(), value); return this; } - /** Sets the specified value at the specified index of the {@link XrPassthroughColorMapMonoToMonoFB#textureColorMap} field. */ - public XrPassthroughColorMapMonoToMonoFB.Buffer textureColorMap(int index, @NativeType("uint8_t") byte value) { XrPassthroughColorMapMonoToMonoFB.ntextureColorMap(address(), index, value); return this; } + + /** @return the value of the {@link XrPassthroughColorMapMonoToMonoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrPassthroughColorMapMonoToMonoFB.ntype(address()); } + /** @return the value of the {@link XrPassthroughColorMapMonoToMonoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrPassthroughColorMapMonoToMonoFB.nnext(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrPassthroughColorMapMonoToMonoFB#textureColorMap} field. */ + @NativeType("uint8_t[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB]") + public ByteBuffer textureColorMap() { return XrPassthroughColorMapMonoToMonoFB.ntextureColorMap(address()); } + /** @return the value at the specified index of the {@link XrPassthroughColorMapMonoToMonoFB#textureColorMap} field. */ + @NativeType("uint8_t") + public byte textureColorMap(int index) { return XrPassthroughColorMapMonoToMonoFB.ntextureColorMap(address(), index); } + + /** Sets the specified value to the {@link XrPassthroughColorMapMonoToMonoFB#type} field. */ + public XrPassthroughColorMapMonoToMonoFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughColorMapMonoToMonoFB.ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FB TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FB} value to the {@link XrPassthroughColorMapMonoToMonoFB#type} field. */ + public XrPassthroughColorMapMonoToMonoFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FB); } + /** Sets the specified value to the {@link XrPassthroughColorMapMonoToMonoFB#next} field. */ + public XrPassthroughColorMapMonoToMonoFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughColorMapMonoToMonoFB.nnext(address(), value); return this; } + /** Copies the specified {@link ByteBuffer} to the {@link XrPassthroughColorMapMonoToMonoFB#textureColorMap} field. */ + public XrPassthroughColorMapMonoToMonoFB.Buffer textureColorMap(@NativeType("uint8_t[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB]") ByteBuffer value) { XrPassthroughColorMapMonoToMonoFB.ntextureColorMap(address(), value); return this; } + /** Sets the specified value at the specified index of the {@link XrPassthroughColorMapMonoToMonoFB#textureColorMap} field. */ + public XrPassthroughColorMapMonoToMonoFB.Buffer textureColorMap(int index, @NativeType("uint8_t") byte value) { XrPassthroughColorMapMonoToMonoFB.ntextureColorMap(address(), index, value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorMapMonoToRgbaFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorMapMonoToRgbaFB.java index 42e4c3917a..4b35dbfc20 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorMapMonoToRgbaFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughColorMapMonoToRgbaFB.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import static org.lwjgl.openxr.FBPassthrough.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.FBPassthrough.*; + /** * A layer color map. * @@ -32,7 +32,7 @@ *
                                                      *
                                                    • The {@link FBPassthrough XR_FB_passthrough} extension must be enabled prior to using {@link XrPassthroughColorMapMonoToRgbaFB}
                                                    • *
                                                    • {@code type} must be {@link FBPassthrough#XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB}
                                                    • - *
                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                    • + *
                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                    • *
                                                    * *
                                                    See Also
                                                    @@ -47,8 +47,8 @@ * void const * {@link #next}; * {@link XrColor4f XrColor4f} {@link #textureColorMap}[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB]; * } - */ -public class XrPassthroughColorMapMonoToRgbaFB extends Struct implements NativeResource { + */ +public class XrPassthroughColorMapMonoToRgbaFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -58,24 +58,24 @@ public class XrPassthroughColorMapMonoToRgbaFB extends Struct consumer) { consumer.accept(textureColorMap()); return this; } - /** Passes the element at {@code index} of the {@link #textureColorMap} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPassthroughColorMapMonoToRgbaFB textureColorMap(int index, java.util.function.Consumer consumer) { consumer.accept(textureColorMap(index)); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** an array of {@link XrColor4f} colors to which the passthrough imagery luminance values are mapped. */ + @NativeType("XrColor4f[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB]") + public XrColor4f.Buffer textureColorMap() { return ntextureColorMap(address()); } + /** an array of {@link XrColor4f} colors to which the passthrough imagery luminance values are mapped. */ + public XrColor4f textureColorMap(int index) { return ntextureColorMap(address(), index); } + + /** Sets the specified value to the {@link #type} field. */ + public XrPassthroughColorMapMonoToRgbaFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB} value to the {@link #type} field. */ + public XrPassthroughColorMapMonoToRgbaFB type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrPassthroughColorMapMonoToRgbaFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link XrColor4f.Buffer} to the {@link #textureColorMap} field. */ + public XrPassthroughColorMapMonoToRgbaFB textureColorMap(@NativeType("XrColor4f[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB]") XrColor4f.Buffer value) { ntextureColorMap(address(), value); return this; } + /** Copies the specified {@link XrColor4f} at the specified index of the {@link #textureColorMap} field. */ + public XrPassthroughColorMapMonoToRgbaFB textureColorMap(int index, XrColor4f value) { ntextureColorMap(address(), index, value); return this; } + /** Passes the {@link #textureColorMap} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPassthroughColorMapMonoToRgbaFB textureColorMap(java.util.function.Consumer consumer) { consumer.accept(textureColorMap()); return this; } + /** Passes the element at {@code index} of the {@link #textureColorMap} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPassthroughColorMapMonoToRgbaFB textureColorMap(int index, java.util.function.Consumer consumer) { consumer.accept(textureColorMap(index)); return this; } /** Initializes this struct with the specified values. */ public XrPassthroughColorMapMonoToRgbaFB set( - int type, - long next, + int type, + long next, XrColor4f.Buffer textureColorMap - ) { - type(type); - next(next); - textureColorMap(textureColorMap); + ) { + type(type); + next(next); + textureColorMap(textureColorMap); return this; } @@ -263,33 +263,33 @@ public static XrPassthroughColorMapMonoToRgbaFB.Buffer calloc(int capacity, Memo } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughColorMapMonoToRgbaFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrPassthroughColorMapMonoToRgbaFB.NEXT); } - /** Unsafe version of {@link #textureColorMap}. */ - public static XrColor4f.Buffer ntextureColorMap(long struct) { return XrColor4f.create(struct + XrPassthroughColorMapMonoToRgbaFB.TEXTURECOLORMAP, XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB); } - /** Unsafe version of {@link #textureColorMap(int) textureColorMap}. */ - public static XrColor4f ntextureColorMap(long struct, int index) { - return XrColor4f.create(struct + XrPassthroughColorMapMonoToRgbaFB.TEXTURECOLORMAP + check(index, XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB) * XrColor4f.SIZEOF); - } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughColorMapMonoToRgbaFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrPassthroughColorMapMonoToRgbaFB.NEXT, value); } - /** Unsafe version of {@link #textureColorMap(XrColor4f.Buffer) textureColorMap}. */ - public static void ntextureColorMap(long struct, XrColor4f.Buffer value) { - if (CHECKS) { checkGT(value, XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB); } - memCopy(value.address(), struct + XrPassthroughColorMapMonoToRgbaFB.TEXTURECOLORMAP, value.remaining() * XrColor4f.SIZEOF); - } - /** Unsafe version of {@link #textureColorMap(int, XrColor4f) textureColorMap}. */ - public static void ntextureColorMap(long struct, int index, XrColor4f value) { - memCopy(value.address(), struct + XrPassthroughColorMapMonoToRgbaFB.TEXTURECOLORMAP + check(index, XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB) * XrColor4f.SIZEOF, XrColor4f.SIZEOF); - } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughColorMapMonoToRgbaFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrPassthroughColorMapMonoToRgbaFB.NEXT); } + /** Unsafe version of {@link #textureColorMap}. */ + public static XrColor4f.Buffer ntextureColorMap(long struct) { return XrColor4f.create(struct + XrPassthroughColorMapMonoToRgbaFB.TEXTURECOLORMAP, XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB); } + /** Unsafe version of {@link #textureColorMap(int) textureColorMap}. */ + public static XrColor4f ntextureColorMap(long struct, int index) { + return XrColor4f.create(struct + XrPassthroughColorMapMonoToRgbaFB.TEXTURECOLORMAP + check(index, XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB) * XrColor4f.SIZEOF); + } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughColorMapMonoToRgbaFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrPassthroughColorMapMonoToRgbaFB.NEXT, value); } + /** Unsafe version of {@link #textureColorMap(XrColor4f.Buffer) textureColorMap}. */ + public static void ntextureColorMap(long struct, XrColor4f.Buffer value) { + if (CHECKS) { checkGT(value, XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB); } + memCopy(value.address(), struct + XrPassthroughColorMapMonoToRgbaFB.TEXTURECOLORMAP, value.remaining() * XrColor4f.SIZEOF); + } + /** Unsafe version of {@link #textureColorMap(int, XrColor4f) textureColorMap}. */ + public static void ntextureColorMap(long struct, int index, XrColor4f value) { + memCopy(value.address(), struct + XrPassthroughColorMapMonoToRgbaFB.TEXTURECOLORMAP + check(index, XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB) * XrColor4f.SIZEOF, XrColor4f.SIZEOF); + } + + // ----------------------------------- /** An array of {@link XrPassthroughColorMapMonoToRgbaFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -326,33 +326,33 @@ protected Buffer self() { protected XrPassthroughColorMapMonoToRgbaFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrPassthroughColorMapMonoToRgbaFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPassthroughColorMapMonoToRgbaFB.ntype(address()); } - /** @return the value of the {@link XrPassthroughColorMapMonoToRgbaFB#next} field. */ - @NativeType("void const *") - public long next() { return XrPassthroughColorMapMonoToRgbaFB.nnext(address()); } - /** @return a {@link XrColor4f}.Buffer view of the {@link XrPassthroughColorMapMonoToRgbaFB#textureColorMap} field. */ - @NativeType("XrColor4f[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB]") - public XrColor4f.Buffer textureColorMap() { return XrPassthroughColorMapMonoToRgbaFB.ntextureColorMap(address()); } - /** @return a {@link XrColor4f} view of the struct at the specified index of the {@link XrPassthroughColorMapMonoToRgbaFB#textureColorMap} field. */ - public XrColor4f textureColorMap(int index) { return XrPassthroughColorMapMonoToRgbaFB.ntextureColorMap(address(), index); } - - /** Sets the specified value to the {@link XrPassthroughColorMapMonoToRgbaFB#type} field. */ - public XrPassthroughColorMapMonoToRgbaFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughColorMapMonoToRgbaFB.ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB} value to the {@link XrPassthroughColorMapMonoToRgbaFB#type} field. */ - public XrPassthroughColorMapMonoToRgbaFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB); } - /** Sets the specified value to the {@link XrPassthroughColorMapMonoToRgbaFB#next} field. */ - public XrPassthroughColorMapMonoToRgbaFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughColorMapMonoToRgbaFB.nnext(address(), value); return this; } - /** Copies the specified {@link XrColor4f.Buffer} to the {@link XrPassthroughColorMapMonoToRgbaFB#textureColorMap} field. */ - public XrPassthroughColorMapMonoToRgbaFB.Buffer textureColorMap(@NativeType("XrColor4f[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB]") XrColor4f.Buffer value) { XrPassthroughColorMapMonoToRgbaFB.ntextureColorMap(address(), value); return this; } - /** Copies the specified {@link XrColor4f} at the specified index of the {@link XrPassthroughColorMapMonoToRgbaFB#textureColorMap} field. */ - public XrPassthroughColorMapMonoToRgbaFB.Buffer textureColorMap(int index, XrColor4f value) { XrPassthroughColorMapMonoToRgbaFB.ntextureColorMap(address(), index, value); return this; } - /** Passes the {@link XrPassthroughColorMapMonoToRgbaFB#textureColorMap} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPassthroughColorMapMonoToRgbaFB.Buffer textureColorMap(java.util.function.Consumer consumer) { consumer.accept(textureColorMap()); return this; } - /** Passes the element at {@code index} of the {@link XrPassthroughColorMapMonoToRgbaFB#textureColorMap} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPassthroughColorMapMonoToRgbaFB.Buffer textureColorMap(int index, java.util.function.Consumer consumer) { consumer.accept(textureColorMap(index)); return this; } + + /** @return the value of the {@link XrPassthroughColorMapMonoToRgbaFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrPassthroughColorMapMonoToRgbaFB.ntype(address()); } + /** @return the value of the {@link XrPassthroughColorMapMonoToRgbaFB#next} field. */ + @NativeType("void const *") + public long next() { return XrPassthroughColorMapMonoToRgbaFB.nnext(address()); } + /** @return a {@link XrColor4f}.Buffer view of the {@link XrPassthroughColorMapMonoToRgbaFB#textureColorMap} field. */ + @NativeType("XrColor4f[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB]") + public XrColor4f.Buffer textureColorMap() { return XrPassthroughColorMapMonoToRgbaFB.ntextureColorMap(address()); } + /** @return a {@link XrColor4f} view of the struct at the specified index of the {@link XrPassthroughColorMapMonoToRgbaFB#textureColorMap} field. */ + public XrColor4f textureColorMap(int index) { return XrPassthroughColorMapMonoToRgbaFB.ntextureColorMap(address(), index); } + + /** Sets the specified value to the {@link XrPassthroughColorMapMonoToRgbaFB#type} field. */ + public XrPassthroughColorMapMonoToRgbaFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughColorMapMonoToRgbaFB.ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB} value to the {@link XrPassthroughColorMapMonoToRgbaFB#type} field. */ + public XrPassthroughColorMapMonoToRgbaFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB); } + /** Sets the specified value to the {@link XrPassthroughColorMapMonoToRgbaFB#next} field. */ + public XrPassthroughColorMapMonoToRgbaFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughColorMapMonoToRgbaFB.nnext(address(), value); return this; } + /** Copies the specified {@link XrColor4f.Buffer} to the {@link XrPassthroughColorMapMonoToRgbaFB#textureColorMap} field. */ + public XrPassthroughColorMapMonoToRgbaFB.Buffer textureColorMap(@NativeType("XrColor4f[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB]") XrColor4f.Buffer value) { XrPassthroughColorMapMonoToRgbaFB.ntextureColorMap(address(), value); return this; } + /** Copies the specified {@link XrColor4f} at the specified index of the {@link XrPassthroughColorMapMonoToRgbaFB#textureColorMap} field. */ + public XrPassthroughColorMapMonoToRgbaFB.Buffer textureColorMap(int index, XrColor4f value) { XrPassthroughColorMapMonoToRgbaFB.ntextureColorMap(address(), index, value); return this; } + /** Passes the {@link XrPassthroughColorMapMonoToRgbaFB#textureColorMap} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPassthroughColorMapMonoToRgbaFB.Buffer textureColorMap(java.util.function.Consumer consumer) { consumer.accept(textureColorMap()); return this; } + /** Passes the element at {@code index} of the {@link XrPassthroughColorMapMonoToRgbaFB#textureColorMap} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPassthroughColorMapMonoToRgbaFB.Buffer textureColorMap(int index, java.util.function.Consumer consumer) { consumer.accept(textureColorMap(index)); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughCreateInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughCreateInfoFB.java index 16f575d18a..1cb42010a5 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughCreateInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughCreateInfoFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * A create structure for passthrough. * @@ -31,7 +31,7 @@ *
                                                      *
                                                    • The {@link FBPassthrough XR_FB_passthrough} extension must be enabled prior to using {@link XrPassthroughCreateInfoFB}
                                                    • *
                                                    • {@code type} must be {@link FBPassthrough#XR_TYPE_PASSTHROUGH_CREATE_INFO_FB TYPE_PASSTHROUGH_CREATE_INFO_FB}
                                                    • - *
                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                    • + *
                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                    • *
                                                    • {@code flags} must be a valid combination of {@code XrPassthroughFlagBitsFB} values
                                                    • *
                                                    • {@code flags} must not be 0
                                                    • *
                                                    @@ -48,8 +48,8 @@ * void const * next; * XrPassthroughFlagsFB flags; * } - */ -public class XrPassthroughCreateInfoFB extends Struct implements NativeResource { + */ +public class XrPassthroughCreateInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -59,24 +59,24 @@ public class XrPassthroughCreateInfoFB extends Struct /** The struct member offsets. */ public static final int - TYPE, - NEXT, - FLAGS; + TYPE, + NEXT, + FLAGS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - FLAGS = layout.offsetof(2); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + FLAGS = layout.offsetof(2); + } protected XrPassthroughCreateInfoFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -99,35 +99,35 @@ public XrPassthroughCreateInfoFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** @return the value of the {@code flags} field. */ - @NativeType("XrPassthroughFlagsFB") - public long flags() { return nflags(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrPassthroughCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_CREATE_INFO_FB TYPE_PASSTHROUGH_CREATE_INFO_FB} value to the {@code type} field. */ - public XrPassthroughCreateInfoFB type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_CREATE_INFO_FB); } - /** Sets the specified value to the {@code next} field. */ - public XrPassthroughCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@code flags} field. */ - public XrPassthroughCreateInfoFB flags(@NativeType("XrPassthroughFlagsFB") long value) { nflags(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** @return the value of the {@code flags} field. */ + @NativeType("XrPassthroughFlagsFB") + public long flags() { return nflags(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrPassthroughCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_CREATE_INFO_FB TYPE_PASSTHROUGH_CREATE_INFO_FB} value to the {@code type} field. */ + public XrPassthroughCreateInfoFB type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_CREATE_INFO_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrPassthroughCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@code flags} field. */ + public XrPassthroughCreateInfoFB flags(@NativeType("XrPassthroughFlagsFB") long value) { nflags(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrPassthroughCreateInfoFB set( - int type, - long next, + int type, + long next, long flags - ) { - type(type); - next(next); - flags(flags); + ) { + type(type); + next(next); + flags(flags); return this; } @@ -256,22 +256,22 @@ public static XrPassthroughCreateInfoFB.Buffer calloc(int capacity, MemoryStack } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughCreateInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrPassthroughCreateInfoFB.NEXT); } - /** Unsafe version of {@link #flags}. */ - public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrPassthroughCreateInfoFB.FLAGS); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughCreateInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrPassthroughCreateInfoFB.NEXT, value); } - /** Unsafe version of {@link #flags(long) flags}. */ - public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrPassthroughCreateInfoFB.FLAGS, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughCreateInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrPassthroughCreateInfoFB.NEXT); } + /** Unsafe version of {@link #flags}. */ + public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrPassthroughCreateInfoFB.FLAGS); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughCreateInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrPassthroughCreateInfoFB.NEXT, value); } + /** Unsafe version of {@link #flags(long) flags}. */ + public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrPassthroughCreateInfoFB.FLAGS, value); } + + // ----------------------------------- /** An array of {@link XrPassthroughCreateInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -308,25 +308,25 @@ protected Buffer self() { protected XrPassthroughCreateInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPassthroughCreateInfoFB.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrPassthroughCreateInfoFB.nnext(address()); } - /** @return the value of the {@code flags} field. */ - @NativeType("XrPassthroughFlagsFB") - public long flags() { return XrPassthroughCreateInfoFB.nflags(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrPassthroughCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughCreateInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_CREATE_INFO_FB TYPE_PASSTHROUGH_CREATE_INFO_FB} value to the {@code type} field. */ - public XrPassthroughCreateInfoFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_CREATE_INFO_FB); } - /** Sets the specified value to the {@code next} field. */ - public XrPassthroughCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughCreateInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@code flags} field. */ - public XrPassthroughCreateInfoFB.Buffer flags(@NativeType("XrPassthroughFlagsFB") long value) { XrPassthroughCreateInfoFB.nflags(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrPassthroughCreateInfoFB.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrPassthroughCreateInfoFB.nnext(address()); } + /** @return the value of the {@code flags} field. */ + @NativeType("XrPassthroughFlagsFB") + public long flags() { return XrPassthroughCreateInfoFB.nflags(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrPassthroughCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughCreateInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_CREATE_INFO_FB TYPE_PASSTHROUGH_CREATE_INFO_FB} value to the {@code type} field. */ + public XrPassthroughCreateInfoFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_CREATE_INFO_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrPassthroughCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughCreateInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@code flags} field. */ + public XrPassthroughCreateInfoFB.Buffer flags(@NativeType("XrPassthroughFlagsFB") long value) { XrPassthroughCreateInfoFB.nflags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughCreateInfoHTC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughCreateInfoHTC.java index de6c2a9669..48b09b0b9b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughCreateInfoHTC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughCreateInfoHTC.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Information to create a passthrough handle. * @@ -23,7 +23,7 @@ *
                                                      *
                                                    • The {@link HTCPassthrough XR_HTC_passthrough} extension must be enabled prior to using {@link XrPassthroughCreateInfoHTC}
                                                    • *
                                                    • {@code type} must be {@link HTCPassthrough#XR_TYPE_PASSTHROUGH_CREATE_INFO_HTC TYPE_PASSTHROUGH_CREATE_INFO_HTC}
                                                    • - *
                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                    • + *
                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                    • *
                                                    • {@code form} must be a valid {@code XrPassthroughFormHTC} value
                                                    • *
                                                    * @@ -39,8 +39,8 @@ * void const * {@link #next}; * XrPassthroughFormHTC {@link #form}; * } - */ -public class XrPassthroughCreateInfoHTC extends Struct implements NativeResource { + */ +public class XrPassthroughCreateInfoHTC extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,24 +50,24 @@ public class XrPassthroughCreateInfoHTC extends Struct implements NativeResource { @@ -299,25 +299,25 @@ protected Buffer self() { protected XrPassthroughCreateInfoHTC getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrPassthroughCreateInfoHTC#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPassthroughCreateInfoHTC.ntype(address()); } - /** @return the value of the {@link XrPassthroughCreateInfoHTC#next} field. */ - @NativeType("void const *") - public long next() { return XrPassthroughCreateInfoHTC.nnext(address()); } - /** @return the value of the {@link XrPassthroughCreateInfoHTC#form} field. */ - @NativeType("XrPassthroughFormHTC") - public int form() { return XrPassthroughCreateInfoHTC.nform(address()); } - - /** Sets the specified value to the {@link XrPassthroughCreateInfoHTC#type} field. */ - public XrPassthroughCreateInfoHTC.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughCreateInfoHTC.ntype(address(), value); return this; } - /** Sets the {@link HTCPassthrough#XR_TYPE_PASSTHROUGH_CREATE_INFO_HTC TYPE_PASSTHROUGH_CREATE_INFO_HTC} value to the {@link XrPassthroughCreateInfoHTC#type} field. */ - public XrPassthroughCreateInfoHTC.Buffer type$Default() { return type(HTCPassthrough.XR_TYPE_PASSTHROUGH_CREATE_INFO_HTC); } - /** Sets the specified value to the {@link XrPassthroughCreateInfoHTC#next} field. */ - public XrPassthroughCreateInfoHTC.Buffer next(@NativeType("void const *") long value) { XrPassthroughCreateInfoHTC.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrPassthroughCreateInfoHTC#form} field. */ - public XrPassthroughCreateInfoHTC.Buffer form(@NativeType("XrPassthroughFormHTC") int value) { XrPassthroughCreateInfoHTC.nform(address(), value); return this; } + + /** @return the value of the {@link XrPassthroughCreateInfoHTC#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrPassthroughCreateInfoHTC.ntype(address()); } + /** @return the value of the {@link XrPassthroughCreateInfoHTC#next} field. */ + @NativeType("void const *") + public long next() { return XrPassthroughCreateInfoHTC.nnext(address()); } + /** @return the value of the {@link XrPassthroughCreateInfoHTC#form} field. */ + @NativeType("XrPassthroughFormHTC") + public int form() { return XrPassthroughCreateInfoHTC.nform(address()); } + + /** Sets the specified value to the {@link XrPassthroughCreateInfoHTC#type} field. */ + public XrPassthroughCreateInfoHTC.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughCreateInfoHTC.ntype(address(), value); return this; } + /** Sets the {@link HTCPassthrough#XR_TYPE_PASSTHROUGH_CREATE_INFO_HTC TYPE_PASSTHROUGH_CREATE_INFO_HTC} value to the {@link XrPassthroughCreateInfoHTC#type} field. */ + public XrPassthroughCreateInfoHTC.Buffer type$Default() { return type(HTCPassthrough.XR_TYPE_PASSTHROUGH_CREATE_INFO_HTC); } + /** Sets the specified value to the {@link XrPassthroughCreateInfoHTC#next} field. */ + public XrPassthroughCreateInfoHTC.Buffer next(@NativeType("void const *") long value) { XrPassthroughCreateInfoHTC.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrPassthroughCreateInfoHTC#form} field. */ + public XrPassthroughCreateInfoHTC.Buffer form(@NativeType("XrPassthroughFormHTC") int value) { XrPassthroughCreateInfoHTC.nform(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughFB.java index 2244e0d972..90776116df 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughFB.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrPassthroughFB} handle. */ + +/** Wraps an {@code XrPassthroughFB} handle. */ public class XrPassthroughFB extends DispatchableHandle { private final XrSession session; @@ -26,4 +26,4 @@ public XrSession getSession() { return session; } -} +} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughHTC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughHTC.java index 7e5dc5278b..16e394a7fd 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughHTC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughHTC.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrPassthroughHTC} handle. */ + +/** Wraps an {@code XrPassthroughHTC} handle. */ public class XrPassthroughHTC extends DispatchableHandle { private final XrSession session; @@ -26,4 +26,4 @@ public XrSession getSession() { return session; } -} +} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughKeyboardHandsIntensityFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughKeyboardHandsIntensityFB.java index 60e5e8cb3c..4e62050c1f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughKeyboardHandsIntensityFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughKeyboardHandsIntensityFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * A struct for setting the level of intensity for hands in the passthrough layer. * @@ -31,7 +31,7 @@ *
                                                      *
                                                    • The {@link FBPassthroughKeyboardHands XR_FB_passthrough_keyboard_hands} extension must be enabled prior to using {@link XrPassthroughKeyboardHandsIntensityFB}
                                                    • *
                                                    • {@code type} must be {@link FBPassthroughKeyboardHands#XR_TYPE_PASSTHROUGH_KEYBOARD_HANDS_INTENSITY_FB TYPE_PASSTHROUGH_KEYBOARD_HANDS_INTENSITY_FB}
                                                    • - *
                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                    • + *
                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                    • *
                                                    * *
                                                    See Also
                                                    @@ -47,8 +47,8 @@ * float {@link #leftHandIntensity}; * float {@link #rightHandIntensity}; * } - */ -public class XrPassthroughKeyboardHandsIntensityFB extends Struct implements NativeResource { + */ +public class XrPassthroughKeyboardHandsIntensityFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -58,27 +58,27 @@ public class XrPassthroughKeyboardHandsIntensityFB extends Struct implements NativeResource { @@ -319,28 +319,28 @@ protected Buffer self() { protected XrPassthroughKeyboardHandsIntensityFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrPassthroughKeyboardHandsIntensityFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPassthroughKeyboardHandsIntensityFB.ntype(address()); } - /** @return the value of the {@link XrPassthroughKeyboardHandsIntensityFB#next} field. */ - @NativeType("void const *") - public long next() { return XrPassthroughKeyboardHandsIntensityFB.nnext(address()); } - /** @return the value of the {@link XrPassthroughKeyboardHandsIntensityFB#leftHandIntensity} field. */ - public float leftHandIntensity() { return XrPassthroughKeyboardHandsIntensityFB.nleftHandIntensity(address()); } - /** @return the value of the {@link XrPassthroughKeyboardHandsIntensityFB#rightHandIntensity} field. */ - public float rightHandIntensity() { return XrPassthroughKeyboardHandsIntensityFB.nrightHandIntensity(address()); } - - /** Sets the specified value to the {@link XrPassthroughKeyboardHandsIntensityFB#type} field. */ - public XrPassthroughKeyboardHandsIntensityFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughKeyboardHandsIntensityFB.ntype(address(), value); return this; } - /** Sets the {@link FBPassthroughKeyboardHands#XR_TYPE_PASSTHROUGH_KEYBOARD_HANDS_INTENSITY_FB TYPE_PASSTHROUGH_KEYBOARD_HANDS_INTENSITY_FB} value to the {@link XrPassthroughKeyboardHandsIntensityFB#type} field. */ - public XrPassthroughKeyboardHandsIntensityFB.Buffer type$Default() { return type(FBPassthroughKeyboardHands.XR_TYPE_PASSTHROUGH_KEYBOARD_HANDS_INTENSITY_FB); } - /** Sets the specified value to the {@link XrPassthroughKeyboardHandsIntensityFB#next} field. */ - public XrPassthroughKeyboardHandsIntensityFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughKeyboardHandsIntensityFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrPassthroughKeyboardHandsIntensityFB#leftHandIntensity} field. */ - public XrPassthroughKeyboardHandsIntensityFB.Buffer leftHandIntensity(float value) { XrPassthroughKeyboardHandsIntensityFB.nleftHandIntensity(address(), value); return this; } - /** Sets the specified value to the {@link XrPassthroughKeyboardHandsIntensityFB#rightHandIntensity} field. */ - public XrPassthroughKeyboardHandsIntensityFB.Buffer rightHandIntensity(float value) { XrPassthroughKeyboardHandsIntensityFB.nrightHandIntensity(address(), value); return this; } + + /** @return the value of the {@link XrPassthroughKeyboardHandsIntensityFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrPassthroughKeyboardHandsIntensityFB.ntype(address()); } + /** @return the value of the {@link XrPassthroughKeyboardHandsIntensityFB#next} field. */ + @NativeType("void const *") + public long next() { return XrPassthroughKeyboardHandsIntensityFB.nnext(address()); } + /** @return the value of the {@link XrPassthroughKeyboardHandsIntensityFB#leftHandIntensity} field. */ + public float leftHandIntensity() { return XrPassthroughKeyboardHandsIntensityFB.nleftHandIntensity(address()); } + /** @return the value of the {@link XrPassthroughKeyboardHandsIntensityFB#rightHandIntensity} field. */ + public float rightHandIntensity() { return XrPassthroughKeyboardHandsIntensityFB.nrightHandIntensity(address()); } + + /** Sets the specified value to the {@link XrPassthroughKeyboardHandsIntensityFB#type} field. */ + public XrPassthroughKeyboardHandsIntensityFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughKeyboardHandsIntensityFB.ntype(address(), value); return this; } + /** Sets the {@link FBPassthroughKeyboardHands#XR_TYPE_PASSTHROUGH_KEYBOARD_HANDS_INTENSITY_FB TYPE_PASSTHROUGH_KEYBOARD_HANDS_INTENSITY_FB} value to the {@link XrPassthroughKeyboardHandsIntensityFB#type} field. */ + public XrPassthroughKeyboardHandsIntensityFB.Buffer type$Default() { return type(FBPassthroughKeyboardHands.XR_TYPE_PASSTHROUGH_KEYBOARD_HANDS_INTENSITY_FB); } + /** Sets the specified value to the {@link XrPassthroughKeyboardHandsIntensityFB#next} field. */ + public XrPassthroughKeyboardHandsIntensityFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughKeyboardHandsIntensityFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrPassthroughKeyboardHandsIntensityFB#leftHandIntensity} field. */ + public XrPassthroughKeyboardHandsIntensityFB.Buffer leftHandIntensity(float value) { XrPassthroughKeyboardHandsIntensityFB.nleftHandIntensity(address(), value); return this; } + /** Sets the specified value to the {@link XrPassthroughKeyboardHandsIntensityFB#rightHandIntensity} field. */ + public XrPassthroughKeyboardHandsIntensityFB.Buffer rightHandIntensity(float value) { XrPassthroughKeyboardHandsIntensityFB.nrightHandIntensity(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughLayerCreateInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughLayerCreateInfoFB.java index ca5c52c8a4..36e8b2a128 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughLayerCreateInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughLayerCreateInfoFB.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * A create structure for passthrough layers. * @@ -33,7 +33,7 @@ *
                                                      *
                                                    • The {@link FBPassthrough XR_FB_passthrough} extension must be enabled prior to using {@link XrPassthroughLayerCreateInfoFB}
                                                    • *
                                                    • {@code type} must be {@link FBPassthrough#XR_TYPE_PASSTHROUGH_LAYER_CREATE_INFO_FB TYPE_PASSTHROUGH_LAYER_CREATE_INFO_FB}
                                                    • - *
                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                    • + *
                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                    • *
                                                    • {@code passthrough} must be a valid {@code XrPassthroughFB} handle
                                                    • *
                                                    • {@code flags} must be a valid combination of {@code XrPassthroughFlagBitsFB} values
                                                    • *
                                                    • {@code flags} must not be 0
                                                    • @@ -54,8 +54,8 @@ * XrPassthroughFlagsFB flags; * XrPassthroughLayerPurposeFB purpose; * } - */ -public class XrPassthroughLayerCreateInfoFB extends Struct implements NativeResource { + */ +public class XrPassthroughLayerCreateInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -65,30 +65,30 @@ public class XrPassthroughLayerCreateInfoFB extends Struct implements NativeResource { @@ -351,35 +351,35 @@ protected Buffer self() { protected XrPassthroughLayerCreateInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPassthroughLayerCreateInfoFB.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrPassthroughLayerCreateInfoFB.nnext(address()); } - /** @return the value of the {@code passthrough} field. */ - @NativeType("XrPassthroughFB") - public long passthrough() { return XrPassthroughLayerCreateInfoFB.npassthrough(address()); } - /** @return the value of the {@code flags} field. */ - @NativeType("XrPassthroughFlagsFB") - public long flags() { return XrPassthroughLayerCreateInfoFB.nflags(address()); } - /** @return the value of the {@code purpose} field. */ - @NativeType("XrPassthroughLayerPurposeFB") - public int purpose() { return XrPassthroughLayerCreateInfoFB.npurpose(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrPassthroughLayerCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughLayerCreateInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_LAYER_CREATE_INFO_FB TYPE_PASSTHROUGH_LAYER_CREATE_INFO_FB} value to the {@code type} field. */ - public XrPassthroughLayerCreateInfoFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_LAYER_CREATE_INFO_FB); } - /** Sets the specified value to the {@code next} field. */ - public XrPassthroughLayerCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughLayerCreateInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@code passthrough} field. */ - public XrPassthroughLayerCreateInfoFB.Buffer passthrough(XrPassthroughFB value) { XrPassthroughLayerCreateInfoFB.npassthrough(address(), value); return this; } - /** Sets the specified value to the {@code flags} field. */ - public XrPassthroughLayerCreateInfoFB.Buffer flags(@NativeType("XrPassthroughFlagsFB") long value) { XrPassthroughLayerCreateInfoFB.nflags(address(), value); return this; } - /** Sets the specified value to the {@code purpose} field. */ - public XrPassthroughLayerCreateInfoFB.Buffer purpose(@NativeType("XrPassthroughLayerPurposeFB") int value) { XrPassthroughLayerCreateInfoFB.npurpose(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrPassthroughLayerCreateInfoFB.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrPassthroughLayerCreateInfoFB.nnext(address()); } + /** @return the value of the {@code passthrough} field. */ + @NativeType("XrPassthroughFB") + public long passthrough() { return XrPassthroughLayerCreateInfoFB.npassthrough(address()); } + /** @return the value of the {@code flags} field. */ + @NativeType("XrPassthroughFlagsFB") + public long flags() { return XrPassthroughLayerCreateInfoFB.nflags(address()); } + /** @return the value of the {@code purpose} field. */ + @NativeType("XrPassthroughLayerPurposeFB") + public int purpose() { return XrPassthroughLayerCreateInfoFB.npurpose(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrPassthroughLayerCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughLayerCreateInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_LAYER_CREATE_INFO_FB TYPE_PASSTHROUGH_LAYER_CREATE_INFO_FB} value to the {@code type} field. */ + public XrPassthroughLayerCreateInfoFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_LAYER_CREATE_INFO_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrPassthroughLayerCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughLayerCreateInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@code passthrough} field. */ + public XrPassthroughLayerCreateInfoFB.Buffer passthrough(XrPassthroughFB value) { XrPassthroughLayerCreateInfoFB.npassthrough(address(), value); return this; } + /** Sets the specified value to the {@code flags} field. */ + public XrPassthroughLayerCreateInfoFB.Buffer flags(@NativeType("XrPassthroughFlagsFB") long value) { XrPassthroughLayerCreateInfoFB.nflags(address(), value); return this; } + /** Sets the specified value to the {@code purpose} field. */ + public XrPassthroughLayerCreateInfoFB.Buffer purpose(@NativeType("XrPassthroughLayerPurposeFB") int value) { XrPassthroughLayerCreateInfoFB.npurpose(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughLayerFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughLayerFB.java index 87a42ad281..c4692400b5 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughLayerFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughLayerFB.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrPassthroughLayerFB} handle. */ + +/** Wraps an {@code XrPassthroughLayerFB} handle. */ public class XrPassthroughLayerFB extends DispatchableHandle { private final XrSession session; @@ -26,4 +26,4 @@ public XrSession getSession() { return session; } -} +} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughMeshTransformInfoHTC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughMeshTransformInfoHTC.java index 381d0850e4..a470650875 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughMeshTransformInfoHTC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughMeshTransformInfoHTC.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The information of mesh and transformation of the passthrough. * @@ -34,7 +34,7 @@ *
                                                        *
                                                      • The {@link HTCPassthrough XR_HTC_passthrough} extension must be enabled prior to using {@link XrPassthroughMeshTransformInfoHTC}
                                                      • *
                                                      • {@code type} must be {@link HTCPassthrough#XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC}
                                                      • - *
                                                      • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                      • + *
                                                      • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                      • *
                                                      • {@code vertices} must be a pointer to an array of {@code vertexCount} {@link XrVector3f} structures
                                                      • *
                                                      • {@code indices} must be a pointer to an array of {@code indexCount} {@code uint32_t} values
                                                      • *
                                                      • {@code baseSpace} must be a valid {@code XrSpace} handle
                                                      • @@ -61,8 +61,8 @@ * {@link XrPosef XrPosef} {@link #pose}; * {@link XrVector3f XrVector3f} {@link #scale}; * } - */ -public class XrPassthroughMeshTransformInfoHTC extends Struct implements NativeResource { + */ +public class XrPassthroughMeshTransformInfoHTC extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -72,45 +72,45 @@ public class XrPassthroughMeshTransformInfoHTC extends Structmust be equal to vertexCount. */ - @NativeType("XrVector3f const *") - public XrVector3f.Buffer vertices() { return nvertices(address()); } - /** the count of indices array in the mesh. */ - @NativeType("uint32_t") - public int indexCount() { return nindexCount(address()); } - /** an array of triangle indices. The size of the array must be equal to indexCount. */ - @NativeType("uint32_t const *") - public IntBuffer indices() { return nindices(address()); } - /** the {@code XrSpace} that defines the projected passthrough’s base space for transformations. */ - @NativeType("XrSpace") - public long baseSpace() { return nbaseSpace(address()); } - /** the {@code XrTime} that defines the time at which the transform is applied. */ - @NativeType("XrTime") - public long time() { return ntime(address()); } - /** the {@link XrPosef} that defines the pose of the mesh */ - public XrPosef pose() { return npose(address()); } - /** the {@link XrVector3f} that defines the scale of the mesh */ - public XrVector3f scale() { return nscale(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrPassthroughMeshTransformInfoHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link HTCPassthrough#XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC} value to the {@link #type} field. */ - public XrPassthroughMeshTransformInfoHTC type$Default() { return type(HTCPassthrough.XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC); } - /** Sets the specified value to the {@link #next} field. */ - public XrPassthroughMeshTransformInfoHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link #vertices} field. */ - public XrPassthroughMeshTransformInfoHTC vertices(@NativeType("XrVector3f const *") XrVector3f.Buffer value) { nvertices(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link #indices} field. */ - public XrPassthroughMeshTransformInfoHTC indices(@NativeType("uint32_t const *") IntBuffer value) { nindices(address(), value); return this; } - /** Sets the specified value to the {@link #baseSpace} field. */ - public XrPassthroughMeshTransformInfoHTC baseSpace(XrSpace value) { nbaseSpace(address(), value); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrPassthroughMeshTransformInfoHTC time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ - public XrPassthroughMeshTransformInfoHTC pose(XrPosef value) { npose(address(), value); return this; } - /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPassthroughMeshTransformInfoHTC pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link #scale} field. */ - public XrPassthroughMeshTransformInfoHTC scale(XrVector3f value) { nscale(address(), value); return this; } - /** Passes the {@link #scale} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPassthroughMeshTransformInfoHTC scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the count of vertices array in the mesh. */ + @NativeType("uint32_t") + public int vertexCount() { return nvertexCount(address()); } + /** an array of {@link XrVector3f}. The size of the array must be equal to vertexCount. */ + @NativeType("XrVector3f const *") + public XrVector3f.Buffer vertices() { return nvertices(address()); } + /** the count of indices array in the mesh. */ + @NativeType("uint32_t") + public int indexCount() { return nindexCount(address()); } + /** an array of triangle indices. The size of the array must be equal to indexCount. */ + @NativeType("uint32_t const *") + public IntBuffer indices() { return nindices(address()); } + /** the {@code XrSpace} that defines the projected passthrough’s base space for transformations. */ + @NativeType("XrSpace") + public long baseSpace() { return nbaseSpace(address()); } + /** the {@code XrTime} that defines the time at which the transform is applied. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + /** the {@link XrPosef} that defines the pose of the mesh */ + public XrPosef pose() { return npose(address()); } + /** the {@link XrVector3f} that defines the scale of the mesh */ + public XrVector3f scale() { return nscale(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrPassthroughMeshTransformInfoHTC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link HTCPassthrough#XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC} value to the {@link #type} field. */ + public XrPassthroughMeshTransformInfoHTC type$Default() { return type(HTCPassthrough.XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC); } + /** Sets the specified value to the {@link #next} field. */ + public XrPassthroughMeshTransformInfoHTC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link #vertices} field. */ + public XrPassthroughMeshTransformInfoHTC vertices(@NativeType("XrVector3f const *") XrVector3f.Buffer value) { nvertices(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link #indices} field. */ + public XrPassthroughMeshTransformInfoHTC indices(@NativeType("uint32_t const *") IntBuffer value) { nindices(address(), value); return this; } + /** Sets the specified value to the {@link #baseSpace} field. */ + public XrPassthroughMeshTransformInfoHTC baseSpace(XrSpace value) { nbaseSpace(address(), value); return this; } + /** Sets the specified value to the {@link #time} field. */ + public XrPassthroughMeshTransformInfoHTC time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrPassthroughMeshTransformInfoHTC pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPassthroughMeshTransformInfoHTC pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link #scale} field. */ + public XrPassthroughMeshTransformInfoHTC scale(XrVector3f value) { nscale(address(), value); return this; } + /** Passes the {@link #scale} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPassthroughMeshTransformInfoHTC scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } /** Initializes this struct with the specified values. */ public XrPassthroughMeshTransformInfoHTC set( - int type, - long next, - XrVector3f.Buffer vertices, - IntBuffer indices, - XrSpace baseSpace, - long time, - XrPosef pose, + int type, + long next, + XrVector3f.Buffer vertices, + IntBuffer indices, + XrSpace baseSpace, + long time, + XrPosef pose, XrVector3f scale - ) { - type(type); - next(next); - vertices(vertices); - indices(indices); - baseSpace(baseSpace); - time(time); - pose(pose); - scale(scale); + ) { + type(type); + next(next); + vertices(vertices); + indices(indices); + baseSpace(baseSpace); + time(time); + pose(pose); + scale(scale); return this; } @@ -333,48 +333,48 @@ public static XrPassthroughMeshTransformInfoHTC.Buffer calloc(int capacity, Memo } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughMeshTransformInfoHTC.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrPassthroughMeshTransformInfoHTC.NEXT); } - /** Unsafe version of {@link #vertexCount}. */ - public static int nvertexCount(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughMeshTransformInfoHTC.VERTEXCOUNT); } - /** Unsafe version of {@link #vertices}. */ - public static XrVector3f.Buffer nvertices(long struct) { return XrVector3f.create(memGetAddress(struct + XrPassthroughMeshTransformInfoHTC.VERTICES), nvertexCount(struct)); } - /** Unsafe version of {@link #indexCount}. */ - public static int nindexCount(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughMeshTransformInfoHTC.INDEXCOUNT); } - /** Unsafe version of {@link #indices() indices}. */ - public static IntBuffer nindices(long struct) { return memIntBuffer(memGetAddress(struct + XrPassthroughMeshTransformInfoHTC.INDICES), nindexCount(struct)); } - /** Unsafe version of {@link #baseSpace}. */ - public static long nbaseSpace(long struct) { return memGetAddress(struct + XrPassthroughMeshTransformInfoHTC.BASESPACE); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrPassthroughMeshTransformInfoHTC.TIME); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrPassthroughMeshTransformInfoHTC.POSE); } - /** Unsafe version of {@link #scale}. */ - public static XrVector3f nscale(long struct) { return XrVector3f.create(struct + XrPassthroughMeshTransformInfoHTC.SCALE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughMeshTransformInfoHTC.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrPassthroughMeshTransformInfoHTC.NEXT, value); } - /** Sets the specified value to the {@code vertexCount} field of the specified {@code struct}. */ - public static void nvertexCount(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughMeshTransformInfoHTC.VERTEXCOUNT, value); } - /** Unsafe version of {@link #vertices(XrVector3f.Buffer) vertices}. */ - public static void nvertices(long struct, XrVector3f.Buffer value) { memPutAddress(struct + XrPassthroughMeshTransformInfoHTC.VERTICES, value.address()); nvertexCount(struct, value.remaining()); } - /** Sets the specified value to the {@code indexCount} field of the specified {@code struct}. */ - public static void nindexCount(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughMeshTransformInfoHTC.INDEXCOUNT, value); } - /** Unsafe version of {@link #indices(IntBuffer) indices}. */ - public static void nindices(long struct, IntBuffer value) { memPutAddress(struct + XrPassthroughMeshTransformInfoHTC.INDICES, memAddress(value)); nindexCount(struct, value.remaining()); } - /** Unsafe version of {@link #baseSpace(XrSpace) baseSpace}. */ - public static void nbaseSpace(long struct, XrSpace value) { memPutAddress(struct + XrPassthroughMeshTransformInfoHTC.BASESPACE, value.address()); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrPassthroughMeshTransformInfoHTC.TIME, value); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrPassthroughMeshTransformInfoHTC.POSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #scale(XrVector3f) scale}. */ - public static void nscale(long struct, XrVector3f value) { memCopy(value.address(), struct + XrPassthroughMeshTransformInfoHTC.SCALE, XrVector3f.SIZEOF); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughMeshTransformInfoHTC.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrPassthroughMeshTransformInfoHTC.NEXT); } + /** Unsafe version of {@link #vertexCount}. */ + public static int nvertexCount(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughMeshTransformInfoHTC.VERTEXCOUNT); } + /** Unsafe version of {@link #vertices}. */ + public static XrVector3f.Buffer nvertices(long struct) { return XrVector3f.create(memGetAddress(struct + XrPassthroughMeshTransformInfoHTC.VERTICES), nvertexCount(struct)); } + /** Unsafe version of {@link #indexCount}. */ + public static int nindexCount(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughMeshTransformInfoHTC.INDEXCOUNT); } + /** Unsafe version of {@link #indices() indices}. */ + public static IntBuffer nindices(long struct) { return memIntBuffer(memGetAddress(struct + XrPassthroughMeshTransformInfoHTC.INDICES), nindexCount(struct)); } + /** Unsafe version of {@link #baseSpace}. */ + public static long nbaseSpace(long struct) { return memGetAddress(struct + XrPassthroughMeshTransformInfoHTC.BASESPACE); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrPassthroughMeshTransformInfoHTC.TIME); } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrPassthroughMeshTransformInfoHTC.POSE); } + /** Unsafe version of {@link #scale}. */ + public static XrVector3f nscale(long struct) { return XrVector3f.create(struct + XrPassthroughMeshTransformInfoHTC.SCALE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughMeshTransformInfoHTC.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrPassthroughMeshTransformInfoHTC.NEXT, value); } + /** Sets the specified value to the {@code vertexCount} field of the specified {@code struct}. */ + public static void nvertexCount(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughMeshTransformInfoHTC.VERTEXCOUNT, value); } + /** Unsafe version of {@link #vertices(XrVector3f.Buffer) vertices}. */ + public static void nvertices(long struct, XrVector3f.Buffer value) { memPutAddress(struct + XrPassthroughMeshTransformInfoHTC.VERTICES, value.address()); nvertexCount(struct, value.remaining()); } + /** Sets the specified value to the {@code indexCount} field of the specified {@code struct}. */ + public static void nindexCount(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughMeshTransformInfoHTC.INDEXCOUNT, value); } + /** Unsafe version of {@link #indices(IntBuffer) indices}. */ + public static void nindices(long struct, IntBuffer value) { memPutAddress(struct + XrPassthroughMeshTransformInfoHTC.INDICES, memAddress(value)); nindexCount(struct, value.remaining()); } + /** Unsafe version of {@link #baseSpace(XrSpace) baseSpace}. */ + public static void nbaseSpace(long struct, XrSpace value) { memPutAddress(struct + XrPassthroughMeshTransformInfoHTC.BASESPACE, value.address()); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrPassthroughMeshTransformInfoHTC.TIME, value); } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrPassthroughMeshTransformInfoHTC.POSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #scale(XrVector3f) scale}. */ + public static void nscale(long struct, XrVector3f value) { memCopy(value.address(), struct + XrPassthroughMeshTransformInfoHTC.SCALE, XrVector3f.SIZEOF); } /** * Validates pointer members that should not be {@code NULL}. @@ -385,9 +385,9 @@ public static void validate(long struct) { check(memGetAddress(struct + XrPassthroughMeshTransformInfoHTC.VERTICES)); check(memGetAddress(struct + XrPassthroughMeshTransformInfoHTC.INDICES)); check(memGetAddress(struct + XrPassthroughMeshTransformInfoHTC.BASESPACE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrPassthroughMeshTransformInfoHTC} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -424,58 +424,58 @@ protected Buffer self() { protected XrPassthroughMeshTransformInfoHTC getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrPassthroughMeshTransformInfoHTC#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPassthroughMeshTransformInfoHTC.ntype(address()); } - /** @return the value of the {@link XrPassthroughMeshTransformInfoHTC#next} field. */ - @NativeType("void const *") - public long next() { return XrPassthroughMeshTransformInfoHTC.nnext(address()); } - /** @return the value of the {@link XrPassthroughMeshTransformInfoHTC#vertexCount} field. */ - @NativeType("uint32_t") - public int vertexCount() { return XrPassthroughMeshTransformInfoHTC.nvertexCount(address()); } - /** @return a {@link XrVector3f.Buffer} view of the struct array pointed to by the {@link XrPassthroughMeshTransformInfoHTC#vertices} field. */ - @NativeType("XrVector3f const *") - public XrVector3f.Buffer vertices() { return XrPassthroughMeshTransformInfoHTC.nvertices(address()); } - /** @return the value of the {@link XrPassthroughMeshTransformInfoHTC#indexCount} field. */ - @NativeType("uint32_t") - public int indexCount() { return XrPassthroughMeshTransformInfoHTC.nindexCount(address()); } - /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrPassthroughMeshTransformInfoHTC#indices} field. */ - @NativeType("uint32_t const *") - public IntBuffer indices() { return XrPassthroughMeshTransformInfoHTC.nindices(address()); } - /** @return the value of the {@link XrPassthroughMeshTransformInfoHTC#baseSpace} field. */ - @NativeType("XrSpace") - public long baseSpace() { return XrPassthroughMeshTransformInfoHTC.nbaseSpace(address()); } - /** @return the value of the {@link XrPassthroughMeshTransformInfoHTC#time} field. */ - @NativeType("XrTime") - public long time() { return XrPassthroughMeshTransformInfoHTC.ntime(address()); } - /** @return a {@link XrPosef} view of the {@link XrPassthroughMeshTransformInfoHTC#pose} field. */ - public XrPosef pose() { return XrPassthroughMeshTransformInfoHTC.npose(address()); } - /** @return a {@link XrVector3f} view of the {@link XrPassthroughMeshTransformInfoHTC#scale} field. */ - public XrVector3f scale() { return XrPassthroughMeshTransformInfoHTC.nscale(address()); } - - /** Sets the specified value to the {@link XrPassthroughMeshTransformInfoHTC#type} field. */ - public XrPassthroughMeshTransformInfoHTC.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughMeshTransformInfoHTC.ntype(address(), value); return this; } - /** Sets the {@link HTCPassthrough#XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC} value to the {@link XrPassthroughMeshTransformInfoHTC#type} field. */ - public XrPassthroughMeshTransformInfoHTC.Buffer type$Default() { return type(HTCPassthrough.XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC); } - /** Sets the specified value to the {@link XrPassthroughMeshTransformInfoHTC#next} field. */ - public XrPassthroughMeshTransformInfoHTC.Buffer next(@NativeType("void const *") long value) { XrPassthroughMeshTransformInfoHTC.nnext(address(), value); return this; } - /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link XrPassthroughMeshTransformInfoHTC#vertices} field. */ - public XrPassthroughMeshTransformInfoHTC.Buffer vertices(@NativeType("XrVector3f const *") XrVector3f.Buffer value) { XrPassthroughMeshTransformInfoHTC.nvertices(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link XrPassthroughMeshTransformInfoHTC#indices} field. */ - public XrPassthroughMeshTransformInfoHTC.Buffer indices(@NativeType("uint32_t const *") IntBuffer value) { XrPassthroughMeshTransformInfoHTC.nindices(address(), value); return this; } - /** Sets the specified value to the {@link XrPassthroughMeshTransformInfoHTC#baseSpace} field. */ - public XrPassthroughMeshTransformInfoHTC.Buffer baseSpace(XrSpace value) { XrPassthroughMeshTransformInfoHTC.nbaseSpace(address(), value); return this; } - /** Sets the specified value to the {@link XrPassthroughMeshTransformInfoHTC#time} field. */ - public XrPassthroughMeshTransformInfoHTC.Buffer time(@NativeType("XrTime") long value) { XrPassthroughMeshTransformInfoHTC.ntime(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrPassthroughMeshTransformInfoHTC#pose} field. */ - public XrPassthroughMeshTransformInfoHTC.Buffer pose(XrPosef value) { XrPassthroughMeshTransformInfoHTC.npose(address(), value); return this; } - /** Passes the {@link XrPassthroughMeshTransformInfoHTC#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPassthroughMeshTransformInfoHTC.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link XrPassthroughMeshTransformInfoHTC#scale} field. */ - public XrPassthroughMeshTransformInfoHTC.Buffer scale(XrVector3f value) { XrPassthroughMeshTransformInfoHTC.nscale(address(), value); return this; } - /** Passes the {@link XrPassthroughMeshTransformInfoHTC#scale} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPassthroughMeshTransformInfoHTC.Buffer scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } + + /** @return the value of the {@link XrPassthroughMeshTransformInfoHTC#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrPassthroughMeshTransformInfoHTC.ntype(address()); } + /** @return the value of the {@link XrPassthroughMeshTransformInfoHTC#next} field. */ + @NativeType("void const *") + public long next() { return XrPassthroughMeshTransformInfoHTC.nnext(address()); } + /** @return the value of the {@link XrPassthroughMeshTransformInfoHTC#vertexCount} field. */ + @NativeType("uint32_t") + public int vertexCount() { return XrPassthroughMeshTransformInfoHTC.nvertexCount(address()); } + /** @return a {@link XrVector3f.Buffer} view of the struct array pointed to by the {@link XrPassthroughMeshTransformInfoHTC#vertices} field. */ + @NativeType("XrVector3f const *") + public XrVector3f.Buffer vertices() { return XrPassthroughMeshTransformInfoHTC.nvertices(address()); } + /** @return the value of the {@link XrPassthroughMeshTransformInfoHTC#indexCount} field. */ + @NativeType("uint32_t") + public int indexCount() { return XrPassthroughMeshTransformInfoHTC.nindexCount(address()); } + /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrPassthroughMeshTransformInfoHTC#indices} field. */ + @NativeType("uint32_t const *") + public IntBuffer indices() { return XrPassthroughMeshTransformInfoHTC.nindices(address()); } + /** @return the value of the {@link XrPassthroughMeshTransformInfoHTC#baseSpace} field. */ + @NativeType("XrSpace") + public long baseSpace() { return XrPassthroughMeshTransformInfoHTC.nbaseSpace(address()); } + /** @return the value of the {@link XrPassthroughMeshTransformInfoHTC#time} field. */ + @NativeType("XrTime") + public long time() { return XrPassthroughMeshTransformInfoHTC.ntime(address()); } + /** @return a {@link XrPosef} view of the {@link XrPassthroughMeshTransformInfoHTC#pose} field. */ + public XrPosef pose() { return XrPassthroughMeshTransformInfoHTC.npose(address()); } + /** @return a {@link XrVector3f} view of the {@link XrPassthroughMeshTransformInfoHTC#scale} field. */ + public XrVector3f scale() { return XrPassthroughMeshTransformInfoHTC.nscale(address()); } + + /** Sets the specified value to the {@link XrPassthroughMeshTransformInfoHTC#type} field. */ + public XrPassthroughMeshTransformInfoHTC.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughMeshTransformInfoHTC.ntype(address(), value); return this; } + /** Sets the {@link HTCPassthrough#XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC} value to the {@link XrPassthroughMeshTransformInfoHTC#type} field. */ + public XrPassthroughMeshTransformInfoHTC.Buffer type$Default() { return type(HTCPassthrough.XR_TYPE_PASSTHROUGH_MESH_TRANSFORM_INFO_HTC); } + /** Sets the specified value to the {@link XrPassthroughMeshTransformInfoHTC#next} field. */ + public XrPassthroughMeshTransformInfoHTC.Buffer next(@NativeType("void const *") long value) { XrPassthroughMeshTransformInfoHTC.nnext(address(), value); return this; } + /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link XrPassthroughMeshTransformInfoHTC#vertices} field. */ + public XrPassthroughMeshTransformInfoHTC.Buffer vertices(@NativeType("XrVector3f const *") XrVector3f.Buffer value) { XrPassthroughMeshTransformInfoHTC.nvertices(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link XrPassthroughMeshTransformInfoHTC#indices} field. */ + public XrPassthroughMeshTransformInfoHTC.Buffer indices(@NativeType("uint32_t const *") IntBuffer value) { XrPassthroughMeshTransformInfoHTC.nindices(address(), value); return this; } + /** Sets the specified value to the {@link XrPassthroughMeshTransformInfoHTC#baseSpace} field. */ + public XrPassthroughMeshTransformInfoHTC.Buffer baseSpace(XrSpace value) { XrPassthroughMeshTransformInfoHTC.nbaseSpace(address(), value); return this; } + /** Sets the specified value to the {@link XrPassthroughMeshTransformInfoHTC#time} field. */ + public XrPassthroughMeshTransformInfoHTC.Buffer time(@NativeType("XrTime") long value) { XrPassthroughMeshTransformInfoHTC.ntime(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrPassthroughMeshTransformInfoHTC#pose} field. */ + public XrPassthroughMeshTransformInfoHTC.Buffer pose(XrPosef value) { XrPassthroughMeshTransformInfoHTC.npose(address(), value); return this; } + /** Passes the {@link XrPassthroughMeshTransformInfoHTC#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPassthroughMeshTransformInfoHTC.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link XrPassthroughMeshTransformInfoHTC#scale} field. */ + public XrPassthroughMeshTransformInfoHTC.Buffer scale(XrVector3f value) { XrPassthroughMeshTransformInfoHTC.nscale(address(), value); return this; } + /** Passes the {@link XrPassthroughMeshTransformInfoHTC#scale} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPassthroughMeshTransformInfoHTC.Buffer scale(java.util.function.Consumer consumer) { consumer.accept(scale()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughStyleFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughStyleFB.java index 43a4464b24..8544eb7cae 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughStyleFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPassthroughStyleFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * A layer style. * @@ -27,7 +27,7 @@ *
                                                          *
                                                        • The {@link FBPassthrough XR_FB_passthrough} extension must be enabled prior to using {@link XrPassthroughStyleFB}
                                                        • *
                                                        • {@code type} must be {@link FBPassthrough#XR_TYPE_PASSTHROUGH_STYLE_FB TYPE_PASSTHROUGH_STYLE_FB}
                                                        • - *
                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrPassthroughBrightnessContrastSaturationFB}, {@link XrPassthroughColorMapInterpolatedLutMETA}, {@link XrPassthroughColorMapLutMETA}, {@link XrPassthroughColorMapMonoToMonoFB}, {@link XrPassthroughColorMapMonoToRgbaFB}
                                                        • + *
                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrPassthroughBrightnessContrastSaturationFB}, {@link XrPassthroughColorMapMonoToMonoFB}, {@link XrPassthroughColorMapMonoToRgbaFB}
                                                        • *
                                                        * *
                                                        See Also
                                                        @@ -43,8 +43,8 @@ * float {@link #textureOpacityFactor}; * {@link XrColor4f XrColor4f} {@link #edgeColor}; * } - */ -public class XrPassthroughStyleFB extends Struct implements NativeResource { + */ +public class XrPassthroughStyleFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,27 +54,27 @@ public class XrPassthroughStyleFB extends Struct implement /** The struct member offsets. */ public static final int - TYPE, - NEXT, - TEXTUREOPACITYFACTOR, - EDGECOLOR; + TYPE, + NEXT, + TEXTUREOPACITYFACTOR, + EDGECOLOR; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), __member(XrColor4f.SIZEOF, XrColor4f.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - TEXTUREOPACITYFACTOR = layout.offsetof(2); - EDGECOLOR = layout.offsetof(3); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + TEXTUREOPACITYFACTOR = layout.offsetof(2); + EDGECOLOR = layout.offsetof(3); + } protected XrPassthroughStyleFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -97,52 +97,48 @@ public XrPassthroughStyleFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** the opacity of the passthrough imagery in the range [0, 1]. */ - public float textureOpacityFactor() { return ntextureOpacityFactor(address()); } - /** the {@link XrColor4f} that defines the edge rendering color. Edges are detected in the original passthrough imagery and rendered on top of it. Edge rendering is disabled when the alpha value of {@code edgeColor} is zero. */ - public XrColor4f edgeColor() { return nedgeColor(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrPassthroughStyleFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_STYLE_FB TYPE_PASSTHROUGH_STYLE_FB} value to the {@link #type} field. */ - public XrPassthroughStyleFB type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_STYLE_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrPassthroughStyleFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrPassthroughBrightnessContrastSaturationFB} value to the {@code next} chain. */ - public XrPassthroughStyleFB next(XrPassthroughBrightnessContrastSaturationFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrPassthroughColorMapInterpolatedLutMETA} value to the {@code next} chain. */ - public XrPassthroughStyleFB next(XrPassthroughColorMapInterpolatedLutMETA value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrPassthroughColorMapLutMETA} value to the {@code next} chain. */ - public XrPassthroughStyleFB next(XrPassthroughColorMapLutMETA value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrPassthroughColorMapMonoToMonoFB} value to the {@code next} chain. */ - public XrPassthroughStyleFB next(XrPassthroughColorMapMonoToMonoFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrPassthroughColorMapMonoToRgbaFB} value to the {@code next} chain. */ - public XrPassthroughStyleFB next(XrPassthroughColorMapMonoToRgbaFB value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #textureOpacityFactor} field. */ - public XrPassthroughStyleFB textureOpacityFactor(float value) { ntextureOpacityFactor(address(), value); return this; } - /** Copies the specified {@link XrColor4f} to the {@link #edgeColor} field. */ - public XrPassthroughStyleFB edgeColor(XrColor4f value) { nedgeColor(address(), value); return this; } - /** Passes the {@link #edgeColor} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPassthroughStyleFB edgeColor(java.util.function.Consumer consumer) { consumer.accept(edgeColor()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the opacity of the passthrough imagery in the range [0, 1]. */ + public float textureOpacityFactor() { return ntextureOpacityFactor(address()); } + /** the {@link XrColor4f} that defines the edge rendering color. Edges are detected in the original passthrough imagery and rendered on top of it. Edge rendering is disabled when the alpha value of {@code edgeColor} is zero. */ + public XrColor4f edgeColor() { return nedgeColor(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrPassthroughStyleFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_STYLE_FB TYPE_PASSTHROUGH_STYLE_FB} value to the {@link #type} field. */ + public XrPassthroughStyleFB type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_STYLE_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrPassthroughStyleFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrPassthroughBrightnessContrastSaturationFB} value to the {@code next} chain. */ + public XrPassthroughStyleFB next(XrPassthroughBrightnessContrastSaturationFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrPassthroughColorMapMonoToMonoFB} value to the {@code next} chain. */ + public XrPassthroughStyleFB next(XrPassthroughColorMapMonoToMonoFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrPassthroughColorMapMonoToRgbaFB} value to the {@code next} chain. */ + public XrPassthroughStyleFB next(XrPassthroughColorMapMonoToRgbaFB value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #textureOpacityFactor} field. */ + public XrPassthroughStyleFB textureOpacityFactor(float value) { ntextureOpacityFactor(address(), value); return this; } + /** Copies the specified {@link XrColor4f} to the {@link #edgeColor} field. */ + public XrPassthroughStyleFB edgeColor(XrColor4f value) { nedgeColor(address(), value); return this; } + /** Passes the {@link #edgeColor} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPassthroughStyleFB edgeColor(java.util.function.Consumer consumer) { consumer.accept(edgeColor()); return this; } /** Initializes this struct with the specified values. */ public XrPassthroughStyleFB set( - int type, - long next, - float textureOpacityFactor, + int type, + long next, + float textureOpacityFactor, XrColor4f edgeColor - ) { - type(type); - next(next); - textureOpacityFactor(textureOpacityFactor); - edgeColor(edgeColor); + ) { + type(type); + next(next); + textureOpacityFactor(textureOpacityFactor); + edgeColor(edgeColor); return this; } @@ -271,26 +267,26 @@ public static XrPassthroughStyleFB.Buffer calloc(int capacity, MemoryStack stack } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughStyleFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrPassthroughStyleFB.NEXT); } - /** Unsafe version of {@link #textureOpacityFactor}. */ - public static float ntextureOpacityFactor(long struct) { return UNSAFE.getFloat(null, struct + XrPassthroughStyleFB.TEXTUREOPACITYFACTOR); } - /** Unsafe version of {@link #edgeColor}. */ - public static XrColor4f nedgeColor(long struct) { return XrColor4f.create(struct + XrPassthroughStyleFB.EDGECOLOR); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughStyleFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrPassthroughStyleFB.NEXT, value); } - /** Unsafe version of {@link #textureOpacityFactor(float) textureOpacityFactor}. */ - public static void ntextureOpacityFactor(long struct, float value) { UNSAFE.putFloat(null, struct + XrPassthroughStyleFB.TEXTUREOPACITYFACTOR, value); } - /** Unsafe version of {@link #edgeColor(XrColor4f) edgeColor}. */ - public static void nedgeColor(long struct, XrColor4f value) { memCopy(value.address(), struct + XrPassthroughStyleFB.EDGECOLOR, XrColor4f.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrPassthroughStyleFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrPassthroughStyleFB.NEXT); } + /** Unsafe version of {@link #textureOpacityFactor}. */ + public static float ntextureOpacityFactor(long struct) { return UNSAFE.getFloat(null, struct + XrPassthroughStyleFB.TEXTUREOPACITYFACTOR); } + /** Unsafe version of {@link #edgeColor}. */ + public static XrColor4f nedgeColor(long struct) { return XrColor4f.create(struct + XrPassthroughStyleFB.EDGECOLOR); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrPassthroughStyleFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrPassthroughStyleFB.NEXT, value); } + /** Unsafe version of {@link #textureOpacityFactor(float) textureOpacityFactor}. */ + public static void ntextureOpacityFactor(long struct, float value) { UNSAFE.putFloat(null, struct + XrPassthroughStyleFB.TEXTUREOPACITYFACTOR, value); } + /** Unsafe version of {@link #edgeColor(XrColor4f) edgeColor}. */ + public static void nedgeColor(long struct, XrColor4f value) { memCopy(value.address(), struct + XrPassthroughStyleFB.EDGECOLOR, XrColor4f.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrPassthroughStyleFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -327,40 +323,36 @@ protected Buffer self() { protected XrPassthroughStyleFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrPassthroughStyleFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPassthroughStyleFB.ntype(address()); } - /** @return the value of the {@link XrPassthroughStyleFB#next} field. */ - @NativeType("void const *") - public long next() { return XrPassthroughStyleFB.nnext(address()); } - /** @return the value of the {@link XrPassthroughStyleFB#textureOpacityFactor} field. */ - public float textureOpacityFactor() { return XrPassthroughStyleFB.ntextureOpacityFactor(address()); } - /** @return a {@link XrColor4f} view of the {@link XrPassthroughStyleFB#edgeColor} field. */ - public XrColor4f edgeColor() { return XrPassthroughStyleFB.nedgeColor(address()); } - - /** Sets the specified value to the {@link XrPassthroughStyleFB#type} field. */ - public XrPassthroughStyleFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughStyleFB.ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_STYLE_FB TYPE_PASSTHROUGH_STYLE_FB} value to the {@link XrPassthroughStyleFB#type} field. */ - public XrPassthroughStyleFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_STYLE_FB); } - /** Sets the specified value to the {@link XrPassthroughStyleFB#next} field. */ - public XrPassthroughStyleFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughStyleFB.nnext(address(), value); return this; } - /** Prepends the specified {@link XrPassthroughBrightnessContrastSaturationFB} value to the {@code next} chain. */ - public XrPassthroughStyleFB.Buffer next(XrPassthroughBrightnessContrastSaturationFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrPassthroughColorMapInterpolatedLutMETA} value to the {@code next} chain. */ - public XrPassthroughStyleFB.Buffer next(XrPassthroughColorMapInterpolatedLutMETA value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrPassthroughColorMapLutMETA} value to the {@code next} chain. */ - public XrPassthroughStyleFB.Buffer next(XrPassthroughColorMapLutMETA value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrPassthroughColorMapMonoToMonoFB} value to the {@code next} chain. */ - public XrPassthroughStyleFB.Buffer next(XrPassthroughColorMapMonoToMonoFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrPassthroughColorMapMonoToRgbaFB} value to the {@code next} chain. */ - public XrPassthroughStyleFB.Buffer next(XrPassthroughColorMapMonoToRgbaFB value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrPassthroughStyleFB#textureOpacityFactor} field. */ - public XrPassthroughStyleFB.Buffer textureOpacityFactor(float value) { XrPassthroughStyleFB.ntextureOpacityFactor(address(), value); return this; } - /** Copies the specified {@link XrColor4f} to the {@link XrPassthroughStyleFB#edgeColor} field. */ - public XrPassthroughStyleFB.Buffer edgeColor(XrColor4f value) { XrPassthroughStyleFB.nedgeColor(address(), value); return this; } - /** Passes the {@link XrPassthroughStyleFB#edgeColor} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPassthroughStyleFB.Buffer edgeColor(java.util.function.Consumer consumer) { consumer.accept(edgeColor()); return this; } + + /** @return the value of the {@link XrPassthroughStyleFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrPassthroughStyleFB.ntype(address()); } + /** @return the value of the {@link XrPassthroughStyleFB#next} field. */ + @NativeType("void const *") + public long next() { return XrPassthroughStyleFB.nnext(address()); } + /** @return the value of the {@link XrPassthroughStyleFB#textureOpacityFactor} field. */ + public float textureOpacityFactor() { return XrPassthroughStyleFB.ntextureOpacityFactor(address()); } + /** @return a {@link XrColor4f} view of the {@link XrPassthroughStyleFB#edgeColor} field. */ + public XrColor4f edgeColor() { return XrPassthroughStyleFB.nedgeColor(address()); } + + /** Sets the specified value to the {@link XrPassthroughStyleFB#type} field. */ + public XrPassthroughStyleFB.Buffer type(@NativeType("XrStructureType") int value) { XrPassthroughStyleFB.ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_PASSTHROUGH_STYLE_FB TYPE_PASSTHROUGH_STYLE_FB} value to the {@link XrPassthroughStyleFB#type} field. */ + public XrPassthroughStyleFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_PASSTHROUGH_STYLE_FB); } + /** Sets the specified value to the {@link XrPassthroughStyleFB#next} field. */ + public XrPassthroughStyleFB.Buffer next(@NativeType("void const *") long value) { XrPassthroughStyleFB.nnext(address(), value); return this; } + /** Prepends the specified {@link XrPassthroughBrightnessContrastSaturationFB} value to the {@code next} chain. */ + public XrPassthroughStyleFB.Buffer next(XrPassthroughBrightnessContrastSaturationFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrPassthroughColorMapMonoToMonoFB} value to the {@code next} chain. */ + public XrPassthroughStyleFB.Buffer next(XrPassthroughColorMapMonoToMonoFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrPassthroughColorMapMonoToRgbaFB} value to the {@code next} chain. */ + public XrPassthroughStyleFB.Buffer next(XrPassthroughColorMapMonoToRgbaFB value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrPassthroughStyleFB#textureOpacityFactor} field. */ + public XrPassthroughStyleFB.Buffer textureOpacityFactor(float value) { XrPassthroughStyleFB.ntextureOpacityFactor(address(), value); return this; } + /** Copies the specified {@link XrColor4f} to the {@link XrPassthroughStyleFB#edgeColor} field. */ + public XrPassthroughStyleFB.Buffer edgeColor(XrColor4f value) { XrPassthroughStyleFB.nedgeColor(address(), value); return this; } + /** Passes the {@link XrPassthroughStyleFB#edgeColor} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPassthroughStyleFB.Buffer edgeColor(java.util.function.Consumer consumer) { consumer.accept(edgeColor()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPerformanceMetricsCounterMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPerformanceMetricsCounterMETA.java index acaaa915ee..35f866545a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPerformanceMetricsCounterMETA.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPerformanceMetricsCounterMETA.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Performance metrics counter value. * @@ -27,7 +27,7 @@ *
                                                          *
                                                        • The {@link METAPerformanceMetrics XR_META_performance_metrics} extension must be enabled prior to using {@link XrPerformanceMetricsCounterMETA}
                                                        • *
                                                        • {@code type} must be {@link METAPerformanceMetrics#XR_TYPE_PERFORMANCE_METRICS_COUNTER_META TYPE_PERFORMANCE_METRICS_COUNTER_META}
                                                        • - *
                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                        • + *
                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                        • *
                                                        • {@code counterFlags} must be 0 or a valid combination of {@code XrPerformanceMetricsCounterFlagBitsMETA} values
                                                        • *
                                                        • {@code counterUnit} must be a valid {@code XrPerformanceMetricsCounterUnitMETA} value
                                                        • *
                                                        @@ -47,8 +47,8 @@ * uint32_t {@link #uintValue}; * float {@link #floatValue}; * } - */ -public class XrPerformanceMetricsCounterMETA extends Struct implements NativeResource { + */ +public class XrPerformanceMetricsCounterMETA extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -58,33 +58,33 @@ public class XrPerformanceMetricsCounterMETA extends Struct implements NativeResource { @@ -348,39 +348,39 @@ protected Buffer self() { protected XrPerformanceMetricsCounterMETA getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrPerformanceMetricsCounterMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPerformanceMetricsCounterMETA.ntype(address()); } - /** @return the value of the {@link XrPerformanceMetricsCounterMETA#next} field. */ - @NativeType("void const *") - public long next() { return XrPerformanceMetricsCounterMETA.nnext(address()); } - /** @return the value of the {@link XrPerformanceMetricsCounterMETA#counterFlags} field. */ - @NativeType("XrPerformanceMetricsCounterFlagsMETA") - public long counterFlags() { return XrPerformanceMetricsCounterMETA.ncounterFlags(address()); } - /** @return the value of the {@link XrPerformanceMetricsCounterMETA#counterUnit} field. */ - @NativeType("XrPerformanceMetricsCounterUnitMETA") - public int counterUnit() { return XrPerformanceMetricsCounterMETA.ncounterUnit(address()); } - /** @return the value of the {@link XrPerformanceMetricsCounterMETA#uintValue} field. */ - @NativeType("uint32_t") - public int uintValue() { return XrPerformanceMetricsCounterMETA.nuintValue(address()); } - /** @return the value of the {@link XrPerformanceMetricsCounterMETA#floatValue} field. */ - public float floatValue() { return XrPerformanceMetricsCounterMETA.nfloatValue(address()); } - - /** Sets the specified value to the {@link XrPerformanceMetricsCounterMETA#type} field. */ - public XrPerformanceMetricsCounterMETA.Buffer type(@NativeType("XrStructureType") int value) { XrPerformanceMetricsCounterMETA.ntype(address(), value); return this; } - /** Sets the {@link METAPerformanceMetrics#XR_TYPE_PERFORMANCE_METRICS_COUNTER_META TYPE_PERFORMANCE_METRICS_COUNTER_META} value to the {@link XrPerformanceMetricsCounterMETA#type} field. */ - public XrPerformanceMetricsCounterMETA.Buffer type$Default() { return type(METAPerformanceMetrics.XR_TYPE_PERFORMANCE_METRICS_COUNTER_META); } - /** Sets the specified value to the {@link XrPerformanceMetricsCounterMETA#next} field. */ - public XrPerformanceMetricsCounterMETA.Buffer next(@NativeType("void const *") long value) { XrPerformanceMetricsCounterMETA.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrPerformanceMetricsCounterMETA#counterFlags} field. */ - public XrPerformanceMetricsCounterMETA.Buffer counterFlags(@NativeType("XrPerformanceMetricsCounterFlagsMETA") long value) { XrPerformanceMetricsCounterMETA.ncounterFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrPerformanceMetricsCounterMETA#counterUnit} field. */ - public XrPerformanceMetricsCounterMETA.Buffer counterUnit(@NativeType("XrPerformanceMetricsCounterUnitMETA") int value) { XrPerformanceMetricsCounterMETA.ncounterUnit(address(), value); return this; } - /** Sets the specified value to the {@link XrPerformanceMetricsCounterMETA#uintValue} field. */ - public XrPerformanceMetricsCounterMETA.Buffer uintValue(@NativeType("uint32_t") int value) { XrPerformanceMetricsCounterMETA.nuintValue(address(), value); return this; } - /** Sets the specified value to the {@link XrPerformanceMetricsCounterMETA#floatValue} field. */ - public XrPerformanceMetricsCounterMETA.Buffer floatValue(float value) { XrPerformanceMetricsCounterMETA.nfloatValue(address(), value); return this; } + + /** @return the value of the {@link XrPerformanceMetricsCounterMETA#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrPerformanceMetricsCounterMETA.ntype(address()); } + /** @return the value of the {@link XrPerformanceMetricsCounterMETA#next} field. */ + @NativeType("void const *") + public long next() { return XrPerformanceMetricsCounterMETA.nnext(address()); } + /** @return the value of the {@link XrPerformanceMetricsCounterMETA#counterFlags} field. */ + @NativeType("XrPerformanceMetricsCounterFlagsMETA") + public long counterFlags() { return XrPerformanceMetricsCounterMETA.ncounterFlags(address()); } + /** @return the value of the {@link XrPerformanceMetricsCounterMETA#counterUnit} field. */ + @NativeType("XrPerformanceMetricsCounterUnitMETA") + public int counterUnit() { return XrPerformanceMetricsCounterMETA.ncounterUnit(address()); } + /** @return the value of the {@link XrPerformanceMetricsCounterMETA#uintValue} field. */ + @NativeType("uint32_t") + public int uintValue() { return XrPerformanceMetricsCounterMETA.nuintValue(address()); } + /** @return the value of the {@link XrPerformanceMetricsCounterMETA#floatValue} field. */ + public float floatValue() { return XrPerformanceMetricsCounterMETA.nfloatValue(address()); } + + /** Sets the specified value to the {@link XrPerformanceMetricsCounterMETA#type} field. */ + public XrPerformanceMetricsCounterMETA.Buffer type(@NativeType("XrStructureType") int value) { XrPerformanceMetricsCounterMETA.ntype(address(), value); return this; } + /** Sets the {@link METAPerformanceMetrics#XR_TYPE_PERFORMANCE_METRICS_COUNTER_META TYPE_PERFORMANCE_METRICS_COUNTER_META} value to the {@link XrPerformanceMetricsCounterMETA#type} field. */ + public XrPerformanceMetricsCounterMETA.Buffer type$Default() { return type(METAPerformanceMetrics.XR_TYPE_PERFORMANCE_METRICS_COUNTER_META); } + /** Sets the specified value to the {@link XrPerformanceMetricsCounterMETA#next} field. */ + public XrPerformanceMetricsCounterMETA.Buffer next(@NativeType("void const *") long value) { XrPerformanceMetricsCounterMETA.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrPerformanceMetricsCounterMETA#counterFlags} field. */ + public XrPerformanceMetricsCounterMETA.Buffer counterFlags(@NativeType("XrPerformanceMetricsCounterFlagsMETA") long value) { XrPerformanceMetricsCounterMETA.ncounterFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrPerformanceMetricsCounterMETA#counterUnit} field. */ + public XrPerformanceMetricsCounterMETA.Buffer counterUnit(@NativeType("XrPerformanceMetricsCounterUnitMETA") int value) { XrPerformanceMetricsCounterMETA.ncounterUnit(address(), value); return this; } + /** Sets the specified value to the {@link XrPerformanceMetricsCounterMETA#uintValue} field. */ + public XrPerformanceMetricsCounterMETA.Buffer uintValue(@NativeType("uint32_t") int value) { XrPerformanceMetricsCounterMETA.nuintValue(address(), value); return this; } + /** Sets the specified value to the {@link XrPerformanceMetricsCounterMETA#floatValue} field. */ + public XrPerformanceMetricsCounterMETA.Buffer floatValue(float value) { XrPerformanceMetricsCounterMETA.nfloatValue(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPerformanceMetricsStateMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPerformanceMetricsStateMETA.java index 6f45c32881..e4e53d6917 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPerformanceMetricsStateMETA.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPerformanceMetricsStateMETA.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Performance metrics enable state. * @@ -27,7 +27,7 @@ *
                                                          *
                                                        • The {@link METAPerformanceMetrics XR_META_performance_metrics} extension must be enabled prior to using {@link XrPerformanceMetricsStateMETA}
                                                        • *
                                                        • {@code type} must be {@link METAPerformanceMetrics#XR_TYPE_PERFORMANCE_METRICS_STATE_META TYPE_PERFORMANCE_METRICS_STATE_META}
                                                        • - *
                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                        • + *
                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                        • *
                                                        * *
                                                        See Also
                                                        @@ -42,8 +42,8 @@ * void const * {@link #next}; * XrBool32 {@link #enabled}; * } - */ -public class XrPerformanceMetricsStateMETA extends Struct implements NativeResource { + */ +public class XrPerformanceMetricsStateMETA extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,24 +53,24 @@ public class XrPerformanceMetricsStateMETA extends Struct implements NativeResource { @@ -302,25 +302,25 @@ protected Buffer self() { protected XrPerformanceMetricsStateMETA getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrPerformanceMetricsStateMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrPerformanceMetricsStateMETA.ntype(address()); } - /** @return the value of the {@link XrPerformanceMetricsStateMETA#next} field. */ - @NativeType("void const *") - public long next() { return XrPerformanceMetricsStateMETA.nnext(address()); } - /** @return the value of the {@link XrPerformanceMetricsStateMETA#enabled} field. */ - @NativeType("XrBool32") - public boolean enabled() { return XrPerformanceMetricsStateMETA.nenabled(address()) != 0; } - - /** Sets the specified value to the {@link XrPerformanceMetricsStateMETA#type} field. */ - public XrPerformanceMetricsStateMETA.Buffer type(@NativeType("XrStructureType") int value) { XrPerformanceMetricsStateMETA.ntype(address(), value); return this; } - /** Sets the {@link METAPerformanceMetrics#XR_TYPE_PERFORMANCE_METRICS_STATE_META TYPE_PERFORMANCE_METRICS_STATE_META} value to the {@link XrPerformanceMetricsStateMETA#type} field. */ - public XrPerformanceMetricsStateMETA.Buffer type$Default() { return type(METAPerformanceMetrics.XR_TYPE_PERFORMANCE_METRICS_STATE_META); } - /** Sets the specified value to the {@link XrPerformanceMetricsStateMETA#next} field. */ - public XrPerformanceMetricsStateMETA.Buffer next(@NativeType("void const *") long value) { XrPerformanceMetricsStateMETA.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrPerformanceMetricsStateMETA#enabled} field. */ - public XrPerformanceMetricsStateMETA.Buffer enabled(@NativeType("XrBool32") boolean value) { XrPerformanceMetricsStateMETA.nenabled(address(), value ? 1 : 0); return this; } + + /** @return the value of the {@link XrPerformanceMetricsStateMETA#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrPerformanceMetricsStateMETA.ntype(address()); } + /** @return the value of the {@link XrPerformanceMetricsStateMETA#next} field. */ + @NativeType("void const *") + public long next() { return XrPerformanceMetricsStateMETA.nnext(address()); } + /** @return the value of the {@link XrPerformanceMetricsStateMETA#enabled} field. */ + @NativeType("XrBool32") + public boolean enabled() { return XrPerformanceMetricsStateMETA.nenabled(address()) != 0; } + + /** Sets the specified value to the {@link XrPerformanceMetricsStateMETA#type} field. */ + public XrPerformanceMetricsStateMETA.Buffer type(@NativeType("XrStructureType") int value) { XrPerformanceMetricsStateMETA.ntype(address(), value); return this; } + /** Sets the {@link METAPerformanceMetrics#XR_TYPE_PERFORMANCE_METRICS_STATE_META TYPE_PERFORMANCE_METRICS_STATE_META} value to the {@link XrPerformanceMetricsStateMETA#type} field. */ + public XrPerformanceMetricsStateMETA.Buffer type$Default() { return type(METAPerformanceMetrics.XR_TYPE_PERFORMANCE_METRICS_STATE_META); } + /** Sets the specified value to the {@link XrPerformanceMetricsStateMETA#next} field. */ + public XrPerformanceMetricsStateMETA.Buffer next(@NativeType("void const *") long value) { XrPerformanceMetricsStateMETA.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrPerformanceMetricsStateMETA#enabled} field. */ + public XrPerformanceMetricsStateMETA.Buffer enabled(@NativeType("XrBool32") boolean value) { XrPerformanceMetricsStateMETA.nenabled(address(), value ? 1 : 0); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPosef.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPosef.java index cef87b26ff..bb59ded03e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPosef.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrPosef.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Location and orientation in a space. * @@ -24,7 +24,7 @@ * *
                                                        See Also
                                                        * - *

                                                        {@link XrActionSpaceCreateInfo}, {@link XrBodyJointLocationFB}, {@link XrBodySkeletonJointFB}, {@link XrCompositionLayerCylinderKHR}, {@link XrCompositionLayerEquirect2KHR}, {@link XrCompositionLayerEquirectKHR}, {@link XrCompositionLayerProjectionView}, {@link XrCompositionLayerQuad}, {@link XrCompositionLayerSpaceWarpInfoFB}, {@link XrControllerModelNodeStateMSFT}, {@link XrCoordinateSpaceCreateInfoML}, {@link XrEventDataReferenceSpaceChangePending}, {@link XrExternalCameraExtrinsicsOCULUS}, {@link XrEyeGazeFB}, {@link XrGeometryInstanceCreateInfoFB}, {@link XrGeometryInstanceTransformFB}, {@link XrHandJointLocationEXT}, {@link XrHandMeshSpaceCreateInfoMSFT}, {@link XrHandTrackingAimStateFB}, {@link XrHandTrackingMeshFB}, {@link XrMarkerSpaceCreateInfoVARJO}, {@link XrPassthroughMeshTransformInfoHTC}, {@link XrPlaneDetectorBeginInfoEXT}, {@link XrPlaneDetectorLocationEXT}, {@link XrQuaternionf}, {@link XrReferenceSpaceCreateInfo}, {@link XrSceneComponentLocationMSFT}, {@link XrSceneFrustumBoundMSFT}, {@link XrSceneOrientedBoxBoundMSFT}, {@link XrSpaceLocation}, {@link XrSpatialAnchorCreateInfoFB}, {@link XrSpatialAnchorCreateInfoMSFT}, {@link XrSpatialAnchorSpaceCreateInfoMSFT}, {@link XrSpatialGraphNodeBindingPropertiesMSFT}, {@link XrSpatialGraphNodeSpaceCreateInfoMSFT}, {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT}, {@link XrVector2f}, {@link XrVector3f}, {@link XrVector4f}, {@link XrView}, {@link XrVirtualKeyboardInputInfoMETA}, {@link XrVirtualKeyboardLocationInfoMETA}, {@link XrVirtualKeyboardSpaceCreateInfoMETA}, {@link METAVirtualKeyboard#xrSendVirtualKeyboardInputMETA SendVirtualKeyboardInputMETA}, {@link EXTConformanceAutomation#xrSetInputDeviceLocationEXT SetInputDeviceLocationEXT}

                                                        + *

                                                        {@link XrActionSpaceCreateInfo}, {@link XrBodyJointLocationFB}, {@link XrBodySkeletonJointFB}, {@link XrCompositionLayerCylinderKHR}, {@link XrCompositionLayerEquirect2KHR}, {@link XrCompositionLayerEquirectKHR}, {@link XrCompositionLayerProjectionView}, {@link XrCompositionLayerQuad}, {@link XrCompositionLayerSpaceWarpInfoFB}, {@link XrControllerModelNodeStateMSFT}, {@link XrCoordinateSpaceCreateInfoML}, {@link XrEventDataReferenceSpaceChangePending}, {@link XrExternalCameraExtrinsicsOCULUS}, {@link XrEyeGazeFB}, {@link XrGeometryInstanceCreateInfoFB}, {@link XrGeometryInstanceTransformFB}, {@link XrHandJointLocationEXT}, {@link XrHandMeshSpaceCreateInfoMSFT}, {@link XrHandTrackingAimStateFB}, {@link XrHandTrackingMeshFB}, {@link XrMarkerSpaceCreateInfoVARJO}, {@link XrPassthroughMeshTransformInfoHTC}, {@link XrQuaternionf}, {@link XrReferenceSpaceCreateInfo}, {@link XrSceneComponentLocationMSFT}, {@link XrSceneFrustumBoundMSFT}, {@link XrSceneOrientedBoxBoundMSFT}, {@link XrSpaceLocation}, {@link XrSpatialAnchorCreateInfoFB}, {@link XrSpatialAnchorCreateInfoMSFT}, {@link XrSpatialAnchorSpaceCreateInfoMSFT}, {@link XrSpatialGraphNodeBindingPropertiesMSFT}, {@link XrSpatialGraphNodeSpaceCreateInfoMSFT}, {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT}, {@link XrVector2f}, {@link XrVector3f}, {@link XrVector4f}, {@link XrView}, {@link EXTConformanceAutomation#xrSetInputDeviceLocationEXT SetInputDeviceLocationEXT}

                                                        * *

                                                        Layout

                                                        * @@ -33,8 +33,8 @@ * {@link XrQuaternionf XrQuaternionf} {@link #orientation}; * {@link XrVector3f XrVector3f} {@link #position$ position}; * } - */ -public class XrPosef extends Struct implements NativeResource { + */ +public class XrPosef extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -44,21 +44,21 @@ public class XrPosef extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - ORIENTATION, - POSITION; + ORIENTATION, + POSITION; static { - Layout layout = __struct( - __member(XrQuaternionf.SIZEOF, XrQuaternionf.ALIGNOF), + Layout layout = __struct( + __member(XrQuaternionf.SIZEOF, XrQuaternionf.ALIGNOF), __member(XrVector3f.SIZEOF, XrVector3f.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - ORIENTATION = layout.offsetof(0); - POSITION = layout.offsetof(1); - } + ORIENTATION = layout.offsetof(0); + POSITION = layout.offsetof(1); + } protected XrPosef(long address, @Nullable ByteBuffer container) { super(address, container); @@ -81,28 +81,28 @@ public XrPosef(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** an {@link XrQuaternionf} representing the orientation within a space. */ - public XrQuaternionf orientation() { return norientation(address()); } - /** an {@link XrVector3f} representing position within a space. */ - public XrVector3f position$() { return nposition$(address()); } - - /** Copies the specified {@link XrQuaternionf} to the {@link #orientation} field. */ - public XrPosef orientation(XrQuaternionf value) { norientation(address(), value); return this; } - /** Passes the {@link #orientation} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPosef orientation(java.util.function.Consumer consumer) { consumer.accept(orientation()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link #position$} field. */ - public XrPosef position$(XrVector3f value) { nposition$(address(), value); return this; } - /** Passes the {@link #position$} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPosef position$(java.util.function.Consumer consumer) { consumer.accept(position$()); return this; } + + /** an {@link XrQuaternionf} representing the orientation within a space. */ + public XrQuaternionf orientation() { return norientation(address()); } + /** an {@link XrVector3f} representing position within a space. */ + public XrVector3f position$() { return nposition$(address()); } + + /** Copies the specified {@link XrQuaternionf} to the {@link #orientation} field. */ + public XrPosef orientation(XrQuaternionf value) { norientation(address(), value); return this; } + /** Passes the {@link #orientation} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPosef orientation(java.util.function.Consumer consumer) { consumer.accept(orientation()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link #position$} field. */ + public XrPosef position$(XrVector3f value) { nposition$(address(), value); return this; } + /** Passes the {@link #position$} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPosef position$(java.util.function.Consumer consumer) { consumer.accept(position$()); return this; } /** Initializes this struct with the specified values. */ public XrPosef set( - XrQuaternionf orientation, + XrQuaternionf orientation, XrVector3f position$ - ) { - orientation(orientation); - position$(position$); + ) { + orientation(orientation); + position$(position$); return this; } @@ -231,18 +231,18 @@ public static XrPosef.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #orientation}. */ - public static XrQuaternionf norientation(long struct) { return XrQuaternionf.create(struct + XrPosef.ORIENTATION); } - /** Unsafe version of {@link #position$}. */ - public static XrVector3f nposition$(long struct) { return XrVector3f.create(struct + XrPosef.POSITION); } - - /** Unsafe version of {@link #orientation(XrQuaternionf) orientation}. */ - public static void norientation(long struct, XrQuaternionf value) { memCopy(value.address(), struct + XrPosef.ORIENTATION, XrQuaternionf.SIZEOF); } - /** Unsafe version of {@link #position$(XrVector3f) position$}. */ - public static void nposition$(long struct, XrVector3f value) { memCopy(value.address(), struct + XrPosef.POSITION, XrVector3f.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #orientation}. */ + public static XrQuaternionf norientation(long struct) { return XrQuaternionf.create(struct + XrPosef.ORIENTATION); } + /** Unsafe version of {@link #position$}. */ + public static XrVector3f nposition$(long struct) { return XrVector3f.create(struct + XrPosef.POSITION); } + + /** Unsafe version of {@link #orientation(XrQuaternionf) orientation}. */ + public static void norientation(long struct, XrQuaternionf value) { memCopy(value.address(), struct + XrPosef.ORIENTATION, XrQuaternionf.SIZEOF); } + /** Unsafe version of {@link #position$(XrVector3f) position$}. */ + public static void nposition$(long struct, XrVector3f value) { memCopy(value.address(), struct + XrPosef.POSITION, XrVector3f.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrPosef} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -279,20 +279,20 @@ protected Buffer self() { protected XrPosef getElementFactory() { return ELEMENT_FACTORY; } - - /** @return a {@link XrQuaternionf} view of the {@link XrPosef#orientation} field. */ - public XrQuaternionf orientation() { return XrPosef.norientation(address()); } - /** @return a {@link XrVector3f} view of the {@link XrPosef#position$} field. */ - public XrVector3f position$() { return XrPosef.nposition$(address()); } - - /** Copies the specified {@link XrQuaternionf} to the {@link XrPosef#orientation} field. */ - public XrPosef.Buffer orientation(XrQuaternionf value) { XrPosef.norientation(address(), value); return this; } - /** Passes the {@link XrPosef#orientation} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPosef.Buffer orientation(java.util.function.Consumer consumer) { consumer.accept(orientation()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link XrPosef#position$} field. */ - public XrPosef.Buffer position$(XrVector3f value) { XrPosef.nposition$(address(), value); return this; } - /** Passes the {@link XrPosef#position$} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrPosef.Buffer position$(java.util.function.Consumer consumer) { consumer.accept(position$()); return this; } + + /** @return a {@link XrQuaternionf} view of the {@link XrPosef#orientation} field. */ + public XrQuaternionf orientation() { return XrPosef.norientation(address()); } + /** @return a {@link XrVector3f} view of the {@link XrPosef#position$} field. */ + public XrVector3f position$() { return XrPosef.nposition$(address()); } + + /** Copies the specified {@link XrQuaternionf} to the {@link XrPosef#orientation} field. */ + public XrPosef.Buffer orientation(XrQuaternionf value) { XrPosef.norientation(address(), value); return this; } + /** Passes the {@link XrPosef#orientation} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPosef.Buffer orientation(java.util.function.Consumer consumer) { consumer.accept(orientation()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link XrPosef#position$} field. */ + public XrPosef.Buffer position$(XrVector3f value) { XrPosef.nposition$(address(), value); return this; } + /** Passes the {@link XrPosef#position$} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrPosef.Buffer position$(java.util.function.Consumer consumer) { consumer.accept(position$()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrQuaternionf.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrQuaternionf.java index ad2219a861..7d7e029f3f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrQuaternionf.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrQuaternionf.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Unit Quaternion. * @@ -31,8 +31,8 @@ * float {@link #z}; * float {@link #w}; * } - */ -public class XrQuaternionf extends Struct implements NativeResource { + */ +public class XrQuaternionf extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -42,27 +42,27 @@ public class XrQuaternionf extends Struct implements NativeResour /** The struct member offsets. */ public static final int - X, - Y, - Z, - W; + X, + Y, + Z, + W; static { - Layout layout = __struct( - __member(4), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(4), + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - X = layout.offsetof(0); - Y = layout.offsetof(1); - Z = layout.offsetof(2); - W = layout.offsetof(3); - } + X = layout.offsetof(0); + Y = layout.offsetof(1); + Z = layout.offsetof(2); + W = layout.offsetof(3); + } protected XrQuaternionf(long address, @Nullable ByteBuffer container) { super(address, container); @@ -85,36 +85,36 @@ public XrQuaternionf(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the x coordinate of the quaternion. */ - public float x() { return nx(address()); } - /** the y coordinate of the quaternion. */ - public float y() { return ny(address()); } - /** the z coordinate of the quaternion. */ - public float z() { return nz(address()); } - /** the w coordinate of the quaternion. */ - public float w() { return nw(address()); } - - /** Sets the specified value to the {@link #x} field. */ - public XrQuaternionf x(float value) { nx(address(), value); return this; } - /** Sets the specified value to the {@link #y} field. */ - public XrQuaternionf y(float value) { ny(address(), value); return this; } - /** Sets the specified value to the {@link #z} field. */ - public XrQuaternionf z(float value) { nz(address(), value); return this; } - /** Sets the specified value to the {@link #w} field. */ - public XrQuaternionf w(float value) { nw(address(), value); return this; } + + /** the x coordinate of the quaternion. */ + public float x() { return nx(address()); } + /** the y coordinate of the quaternion. */ + public float y() { return ny(address()); } + /** the z coordinate of the quaternion. */ + public float z() { return nz(address()); } + /** the w coordinate of the quaternion. */ + public float w() { return nw(address()); } + + /** Sets the specified value to the {@link #x} field. */ + public XrQuaternionf x(float value) { nx(address(), value); return this; } + /** Sets the specified value to the {@link #y} field. */ + public XrQuaternionf y(float value) { ny(address(), value); return this; } + /** Sets the specified value to the {@link #z} field. */ + public XrQuaternionf z(float value) { nz(address(), value); return this; } + /** Sets the specified value to the {@link #w} field. */ + public XrQuaternionf w(float value) { nw(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrQuaternionf set( - float x, - float y, - float z, + float x, + float y, + float z, float w - ) { - x(x); - y(y); - z(z); - w(w); + ) { + x(x); + y(y); + z(z); + w(w); return this; } @@ -243,26 +243,26 @@ public static XrQuaternionf.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #x}. */ - public static float nx(long struct) { return UNSAFE.getFloat(null, struct + XrQuaternionf.X); } - /** Unsafe version of {@link #y}. */ - public static float ny(long struct) { return UNSAFE.getFloat(null, struct + XrQuaternionf.Y); } - /** Unsafe version of {@link #z}. */ - public static float nz(long struct) { return UNSAFE.getFloat(null, struct + XrQuaternionf.Z); } - /** Unsafe version of {@link #w}. */ - public static float nw(long struct) { return UNSAFE.getFloat(null, struct + XrQuaternionf.W); } - - /** Unsafe version of {@link #x(float) x}. */ - public static void nx(long struct, float value) { UNSAFE.putFloat(null, struct + XrQuaternionf.X, value); } - /** Unsafe version of {@link #y(float) y}. */ - public static void ny(long struct, float value) { UNSAFE.putFloat(null, struct + XrQuaternionf.Y, value); } - /** Unsafe version of {@link #z(float) z}. */ - public static void nz(long struct, float value) { UNSAFE.putFloat(null, struct + XrQuaternionf.Z, value); } - /** Unsafe version of {@link #w(float) w}. */ - public static void nw(long struct, float value) { UNSAFE.putFloat(null, struct + XrQuaternionf.W, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #x}. */ + public static float nx(long struct) { return UNSAFE.getFloat(null, struct + XrQuaternionf.X); } + /** Unsafe version of {@link #y}. */ + public static float ny(long struct) { return UNSAFE.getFloat(null, struct + XrQuaternionf.Y); } + /** Unsafe version of {@link #z}. */ + public static float nz(long struct) { return UNSAFE.getFloat(null, struct + XrQuaternionf.Z); } + /** Unsafe version of {@link #w}. */ + public static float nw(long struct) { return UNSAFE.getFloat(null, struct + XrQuaternionf.W); } + + /** Unsafe version of {@link #x(float) x}. */ + public static void nx(long struct, float value) { UNSAFE.putFloat(null, struct + XrQuaternionf.X, value); } + /** Unsafe version of {@link #y(float) y}. */ + public static void ny(long struct, float value) { UNSAFE.putFloat(null, struct + XrQuaternionf.Y, value); } + /** Unsafe version of {@link #z(float) z}. */ + public static void nz(long struct, float value) { UNSAFE.putFloat(null, struct + XrQuaternionf.Z, value); } + /** Unsafe version of {@link #w(float) w}. */ + public static void nw(long struct, float value) { UNSAFE.putFloat(null, struct + XrQuaternionf.W, value); } + + // ----------------------------------- /** An array of {@link XrQuaternionf} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -299,24 +299,24 @@ protected Buffer self() { protected XrQuaternionf getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrQuaternionf#x} field. */ - public float x() { return XrQuaternionf.nx(address()); } - /** @return the value of the {@link XrQuaternionf#y} field. */ - public float y() { return XrQuaternionf.ny(address()); } - /** @return the value of the {@link XrQuaternionf#z} field. */ - public float z() { return XrQuaternionf.nz(address()); } - /** @return the value of the {@link XrQuaternionf#w} field. */ - public float w() { return XrQuaternionf.nw(address()); } - - /** Sets the specified value to the {@link XrQuaternionf#x} field. */ - public XrQuaternionf.Buffer x(float value) { XrQuaternionf.nx(address(), value); return this; } - /** Sets the specified value to the {@link XrQuaternionf#y} field. */ - public XrQuaternionf.Buffer y(float value) { XrQuaternionf.ny(address(), value); return this; } - /** Sets the specified value to the {@link XrQuaternionf#z} field. */ - public XrQuaternionf.Buffer z(float value) { XrQuaternionf.nz(address(), value); return this; } - /** Sets the specified value to the {@link XrQuaternionf#w} field. */ - public XrQuaternionf.Buffer w(float value) { XrQuaternionf.nw(address(), value); return this; } + + /** @return the value of the {@link XrQuaternionf#x} field. */ + public float x() { return XrQuaternionf.nx(address()); } + /** @return the value of the {@link XrQuaternionf#y} field. */ + public float y() { return XrQuaternionf.ny(address()); } + /** @return the value of the {@link XrQuaternionf#z} field. */ + public float z() { return XrQuaternionf.nz(address()); } + /** @return the value of the {@link XrQuaternionf#w} field. */ + public float w() { return XrQuaternionf.nw(address()); } + + /** Sets the specified value to the {@link XrQuaternionf#x} field. */ + public XrQuaternionf.Buffer x(float value) { XrQuaternionf.nx(address(), value); return this; } + /** Sets the specified value to the {@link XrQuaternionf#y} field. */ + public XrQuaternionf.Buffer y(float value) { XrQuaternionf.ny(address(), value); return this; } + /** Sets the specified value to the {@link XrQuaternionf#z} field. */ + public XrQuaternionf.Buffer z(float value) { XrQuaternionf.nz(address(), value); return this; } + /** Sets the specified value to the {@link XrQuaternionf#w} field. */ + public XrQuaternionf.Buffer w(float value) { XrQuaternionf.nw(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRect2Df.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRect2Df.java index bb9252faf2..fbcd3d5114 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRect2Df.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRect2Df.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Rect in two dimensions. * @@ -33,8 +33,8 @@ * {@link XrOffset2Df XrOffset2Df} {@link #offset}; * {@link XrExtent2Df XrExtent2Df} {@link #extent}; * } - */ -public class XrRect2Df extends Struct implements NativeResource { + */ +public class XrRect2Df extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -44,21 +44,21 @@ public class XrRect2Df extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - OFFSET, - EXTENT; + OFFSET, + EXTENT; static { - Layout layout = __struct( - __member(XrOffset2Df.SIZEOF, XrOffset2Df.ALIGNOF), + Layout layout = __struct( + __member(XrOffset2Df.SIZEOF, XrOffset2Df.ALIGNOF), __member(XrExtent2Df.SIZEOF, XrExtent2Df.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - OFFSET = layout.offsetof(0); - EXTENT = layout.offsetof(1); - } + OFFSET = layout.offsetof(0); + EXTENT = layout.offsetof(1); + } protected XrRect2Df(long address, @Nullable ByteBuffer container) { super(address, container); @@ -81,28 +81,28 @@ public XrRect2Df(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@link XrOffset2Df} specifying the rectangle offset. */ - public XrOffset2Df offset() { return noffset(address()); } - /** the {@link XrExtent2Df} specifying the rectangle extent. */ - public XrExtent2Df extent() { return nextent(address()); } - - /** Copies the specified {@link XrOffset2Df} to the {@link #offset} field. */ - public XrRect2Df offset(XrOffset2Df value) { noffset(address(), value); return this; } - /** Passes the {@link #offset} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRect2Df offset(java.util.function.Consumer consumer) { consumer.accept(offset()); return this; } - /** Copies the specified {@link XrExtent2Df} to the {@link #extent} field. */ - public XrRect2Df extent(XrExtent2Df value) { nextent(address(), value); return this; } - /** Passes the {@link #extent} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRect2Df extent(java.util.function.Consumer consumer) { consumer.accept(extent()); return this; } + + /** the {@link XrOffset2Df} specifying the rectangle offset. */ + public XrOffset2Df offset() { return noffset(address()); } + /** the {@link XrExtent2Df} specifying the rectangle extent. */ + public XrExtent2Df extent() { return nextent(address()); } + + /** Copies the specified {@link XrOffset2Df} to the {@link #offset} field. */ + public XrRect2Df offset(XrOffset2Df value) { noffset(address(), value); return this; } + /** Passes the {@link #offset} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRect2Df offset(java.util.function.Consumer consumer) { consumer.accept(offset()); return this; } + /** Copies the specified {@link XrExtent2Df} to the {@link #extent} field. */ + public XrRect2Df extent(XrExtent2Df value) { nextent(address(), value); return this; } + /** Passes the {@link #extent} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRect2Df extent(java.util.function.Consumer consumer) { consumer.accept(extent()); return this; } /** Initializes this struct with the specified values. */ public XrRect2Df set( - XrOffset2Df offset, + XrOffset2Df offset, XrExtent2Df extent - ) { - offset(offset); - extent(extent); + ) { + offset(offset); + extent(extent); return this; } @@ -231,18 +231,18 @@ public static XrRect2Df.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #offset}. */ - public static XrOffset2Df noffset(long struct) { return XrOffset2Df.create(struct + XrRect2Df.OFFSET); } - /** Unsafe version of {@link #extent}. */ - public static XrExtent2Df nextent(long struct) { return XrExtent2Df.create(struct + XrRect2Df.EXTENT); } - - /** Unsafe version of {@link #offset(XrOffset2Df) offset}. */ - public static void noffset(long struct, XrOffset2Df value) { memCopy(value.address(), struct + XrRect2Df.OFFSET, XrOffset2Df.SIZEOF); } - /** Unsafe version of {@link #extent(XrExtent2Df) extent}. */ - public static void nextent(long struct, XrExtent2Df value) { memCopy(value.address(), struct + XrRect2Df.EXTENT, XrExtent2Df.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #offset}. */ + public static XrOffset2Df noffset(long struct) { return XrOffset2Df.create(struct + XrRect2Df.OFFSET); } + /** Unsafe version of {@link #extent}. */ + public static XrExtent2Df nextent(long struct) { return XrExtent2Df.create(struct + XrRect2Df.EXTENT); } + + /** Unsafe version of {@link #offset(XrOffset2Df) offset}. */ + public static void noffset(long struct, XrOffset2Df value) { memCopy(value.address(), struct + XrRect2Df.OFFSET, XrOffset2Df.SIZEOF); } + /** Unsafe version of {@link #extent(XrExtent2Df) extent}. */ + public static void nextent(long struct, XrExtent2Df value) { memCopy(value.address(), struct + XrRect2Df.EXTENT, XrExtent2Df.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrRect2Df} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -279,20 +279,20 @@ protected Buffer self() { protected XrRect2Df getElementFactory() { return ELEMENT_FACTORY; } - - /** @return a {@link XrOffset2Df} view of the {@link XrRect2Df#offset} field. */ - public XrOffset2Df offset() { return XrRect2Df.noffset(address()); } - /** @return a {@link XrExtent2Df} view of the {@link XrRect2Df#extent} field. */ - public XrExtent2Df extent() { return XrRect2Df.nextent(address()); } - - /** Copies the specified {@link XrOffset2Df} to the {@link XrRect2Df#offset} field. */ - public XrRect2Df.Buffer offset(XrOffset2Df value) { XrRect2Df.noffset(address(), value); return this; } - /** Passes the {@link XrRect2Df#offset} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRect2Df.Buffer offset(java.util.function.Consumer consumer) { consumer.accept(offset()); return this; } - /** Copies the specified {@link XrExtent2Df} to the {@link XrRect2Df#extent} field. */ - public XrRect2Df.Buffer extent(XrExtent2Df value) { XrRect2Df.nextent(address(), value); return this; } - /** Passes the {@link XrRect2Df#extent} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRect2Df.Buffer extent(java.util.function.Consumer consumer) { consumer.accept(extent()); return this; } + + /** @return a {@link XrOffset2Df} view of the {@link XrRect2Df#offset} field. */ + public XrOffset2Df offset() { return XrRect2Df.noffset(address()); } + /** @return a {@link XrExtent2Df} view of the {@link XrRect2Df#extent} field. */ + public XrExtent2Df extent() { return XrRect2Df.nextent(address()); } + + /** Copies the specified {@link XrOffset2Df} to the {@link XrRect2Df#offset} field. */ + public XrRect2Df.Buffer offset(XrOffset2Df value) { XrRect2Df.noffset(address(), value); return this; } + /** Passes the {@link XrRect2Df#offset} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRect2Df.Buffer offset(java.util.function.Consumer consumer) { consumer.accept(offset()); return this; } + /** Copies the specified {@link XrExtent2Df} to the {@link XrRect2Df#extent} field. */ + public XrRect2Df.Buffer extent(XrExtent2Df value) { XrRect2Df.nextent(address(), value); return this; } + /** Passes the {@link XrRect2Df#extent} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRect2Df.Buffer extent(java.util.function.Consumer consumer) { consumer.accept(extent()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRect2Di.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRect2Di.java index ce7a4211ef..97e9cc89f5 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRect2Di.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRect2Di.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Rect in two dimensions. * @@ -33,8 +33,8 @@ * {@link XrOffset2Di XrOffset2Di} {@link #offset}; * {@link XrExtent2Di XrExtent2Di} {@link #extent}; * } - */ -public class XrRect2Di extends Struct implements NativeResource { + */ +public class XrRect2Di extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -44,21 +44,21 @@ public class XrRect2Di extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - OFFSET, - EXTENT; + OFFSET, + EXTENT; static { - Layout layout = __struct( - __member(XrOffset2Di.SIZEOF, XrOffset2Di.ALIGNOF), + Layout layout = __struct( + __member(XrOffset2Di.SIZEOF, XrOffset2Di.ALIGNOF), __member(XrExtent2Di.SIZEOF, XrExtent2Di.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - OFFSET = layout.offsetof(0); - EXTENT = layout.offsetof(1); - } + OFFSET = layout.offsetof(0); + EXTENT = layout.offsetof(1); + } protected XrRect2Di(long address, @Nullable ByteBuffer container) { super(address, container); @@ -81,28 +81,28 @@ public XrRect2Di(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@link XrOffset2Di} specifying the integer rectangle offset. */ - public XrOffset2Di offset() { return noffset(address()); } - /** the {@link XrExtent2Di} specifying the integer rectangle extent. */ - public XrExtent2Di extent() { return nextent(address()); } - - /** Copies the specified {@link XrOffset2Di} to the {@link #offset} field. */ - public XrRect2Di offset(XrOffset2Di value) { noffset(address(), value); return this; } - /** Passes the {@link #offset} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRect2Di offset(java.util.function.Consumer consumer) { consumer.accept(offset()); return this; } - /** Copies the specified {@link XrExtent2Di} to the {@link #extent} field. */ - public XrRect2Di extent(XrExtent2Di value) { nextent(address(), value); return this; } - /** Passes the {@link #extent} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRect2Di extent(java.util.function.Consumer consumer) { consumer.accept(extent()); return this; } + + /** the {@link XrOffset2Di} specifying the integer rectangle offset. */ + public XrOffset2Di offset() { return noffset(address()); } + /** the {@link XrExtent2Di} specifying the integer rectangle extent. */ + public XrExtent2Di extent() { return nextent(address()); } + + /** Copies the specified {@link XrOffset2Di} to the {@link #offset} field. */ + public XrRect2Di offset(XrOffset2Di value) { noffset(address(), value); return this; } + /** Passes the {@link #offset} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRect2Di offset(java.util.function.Consumer consumer) { consumer.accept(offset()); return this; } + /** Copies the specified {@link XrExtent2Di} to the {@link #extent} field. */ + public XrRect2Di extent(XrExtent2Di value) { nextent(address(), value); return this; } + /** Passes the {@link #extent} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRect2Di extent(java.util.function.Consumer consumer) { consumer.accept(extent()); return this; } /** Initializes this struct with the specified values. */ public XrRect2Di set( - XrOffset2Di offset, + XrOffset2Di offset, XrExtent2Di extent - ) { - offset(offset); - extent(extent); + ) { + offset(offset); + extent(extent); return this; } @@ -231,18 +231,18 @@ public static XrRect2Di.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #offset}. */ - public static XrOffset2Di noffset(long struct) { return XrOffset2Di.create(struct + XrRect2Di.OFFSET); } - /** Unsafe version of {@link #extent}. */ - public static XrExtent2Di nextent(long struct) { return XrExtent2Di.create(struct + XrRect2Di.EXTENT); } - - /** Unsafe version of {@link #offset(XrOffset2Di) offset}. */ - public static void noffset(long struct, XrOffset2Di value) { memCopy(value.address(), struct + XrRect2Di.OFFSET, XrOffset2Di.SIZEOF); } - /** Unsafe version of {@link #extent(XrExtent2Di) extent}. */ - public static void nextent(long struct, XrExtent2Di value) { memCopy(value.address(), struct + XrRect2Di.EXTENT, XrExtent2Di.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #offset}. */ + public static XrOffset2Di noffset(long struct) { return XrOffset2Di.create(struct + XrRect2Di.OFFSET); } + /** Unsafe version of {@link #extent}. */ + public static XrExtent2Di nextent(long struct) { return XrExtent2Di.create(struct + XrRect2Di.EXTENT); } + + /** Unsafe version of {@link #offset(XrOffset2Di) offset}. */ + public static void noffset(long struct, XrOffset2Di value) { memCopy(value.address(), struct + XrRect2Di.OFFSET, XrOffset2Di.SIZEOF); } + /** Unsafe version of {@link #extent(XrExtent2Di) extent}. */ + public static void nextent(long struct, XrExtent2Di value) { memCopy(value.address(), struct + XrRect2Di.EXTENT, XrExtent2Di.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrRect2Di} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -279,20 +279,20 @@ protected Buffer self() { protected XrRect2Di getElementFactory() { return ELEMENT_FACTORY; } - - /** @return a {@link XrOffset2Di} view of the {@link XrRect2Di#offset} field. */ - public XrOffset2Di offset() { return XrRect2Di.noffset(address()); } - /** @return a {@link XrExtent2Di} view of the {@link XrRect2Di#extent} field. */ - public XrExtent2Di extent() { return XrRect2Di.nextent(address()); } - - /** Copies the specified {@link XrOffset2Di} to the {@link XrRect2Di#offset} field. */ - public XrRect2Di.Buffer offset(XrOffset2Di value) { XrRect2Di.noffset(address(), value); return this; } - /** Passes the {@link XrRect2Di#offset} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRect2Di.Buffer offset(java.util.function.Consumer consumer) { consumer.accept(offset()); return this; } - /** Copies the specified {@link XrExtent2Di} to the {@link XrRect2Di#extent} field. */ - public XrRect2Di.Buffer extent(XrExtent2Di value) { XrRect2Di.nextent(address(), value); return this; } - /** Passes the {@link XrRect2Di#extent} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRect2Di.Buffer extent(java.util.function.Consumer consumer) { consumer.accept(extent()); return this; } + + /** @return a {@link XrOffset2Di} view of the {@link XrRect2Di#offset} field. */ + public XrOffset2Di offset() { return XrRect2Di.noffset(address()); } + /** @return a {@link XrExtent2Di} view of the {@link XrRect2Di#extent} field. */ + public XrExtent2Di extent() { return XrRect2Di.nextent(address()); } + + /** Copies the specified {@link XrOffset2Di} to the {@link XrRect2Di#offset} field. */ + public XrRect2Di.Buffer offset(XrOffset2Di value) { XrRect2Di.noffset(address(), value); return this; } + /** Passes the {@link XrRect2Di#offset} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRect2Di.Buffer offset(java.util.function.Consumer consumer) { consumer.accept(offset()); return this; } + /** Copies the specified {@link XrExtent2Di} to the {@link XrRect2Di#extent} field. */ + public XrRect2Di.Buffer extent(XrExtent2Di value) { XrRect2Di.nextent(address(), value); return this; } + /** Passes the {@link XrRect2Di#extent} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRect2Di.Buffer extent(java.util.function.Consumer consumer) { consumer.accept(extent()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRect3DfFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRect3DfFB.java index 2aa92c6234..074bbb4975 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRect3DfFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRect3DfFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Represents a rectangular prism containing a region of space. * @@ -22,8 +22,6 @@ * *

                                                        This structure is used for component values that may be fractional (floating-point).

                                                        * - *

                                                        The bounding box is defined by an {@code offset} and {@code extent}. The {@code offset} refers to the coordinate of the minimum corner of the box in the local space of the {@code XrSpace}; that is, the corner whose coordinate has the minimum value on each axis. The {@code extent} refers to the dimensions of the box along each axis. The maximum corner can therefore be computed as offset extent.

                                                        - * *
                                                        Valid Usage (Implicit)
                                                        * *
                                                          @@ -41,8 +39,8 @@ * {@link XrOffset3DfFB XrOffset3DfFB} {@link #offset}; * {@link XrExtent3DfFB XrExtent3DfFB} {@link #extent}; * } - */ -public class XrRect3DfFB extends Struct implements NativeResource { + */ +public class XrRect3DfFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,21 +50,21 @@ public class XrRect3DfFB extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - OFFSET, - EXTENT; + OFFSET, + EXTENT; static { - Layout layout = __struct( - __member(XrOffset3DfFB.SIZEOF, XrOffset3DfFB.ALIGNOF), + Layout layout = __struct( + __member(XrOffset3DfFB.SIZEOF, XrOffset3DfFB.ALIGNOF), __member(XrExtent3DfFB.SIZEOF, XrExtent3DfFB.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - OFFSET = layout.offsetof(0); - EXTENT = layout.offsetof(1); - } + OFFSET = layout.offsetof(0); + EXTENT = layout.offsetof(1); + } protected XrRect3DfFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -89,28 +87,28 @@ public XrRect3DfFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@link XrOffset3DfFB} specifying the rectangle offset. */ - public XrOffset3DfFB offset() { return noffset(address()); } - /** the {@link XrExtent3DfFB} specifying the rectangle extent. */ - public XrExtent3DfFB extent() { return nextent(address()); } - - /** Copies the specified {@link XrOffset3DfFB} to the {@link #offset} field. */ - public XrRect3DfFB offset(XrOffset3DfFB value) { noffset(address(), value); return this; } - /** Passes the {@link #offset} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRect3DfFB offset(java.util.function.Consumer consumer) { consumer.accept(offset()); return this; } - /** Copies the specified {@link XrExtent3DfFB} to the {@link #extent} field. */ - public XrRect3DfFB extent(XrExtent3DfFB value) { nextent(address(), value); return this; } - /** Passes the {@link #extent} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRect3DfFB extent(java.util.function.Consumer consumer) { consumer.accept(extent()); return this; } + + /** the {@link XrOffset3DfFB} specifying the rectangle offset. */ + public XrOffset3DfFB offset() { return noffset(address()); } + /** the {@link XrExtent3DfFB} specifying the rectangle extent. */ + public XrExtent3DfFB extent() { return nextent(address()); } + + /** Copies the specified {@link XrOffset3DfFB} to the {@link #offset} field. */ + public XrRect3DfFB offset(XrOffset3DfFB value) { noffset(address(), value); return this; } + /** Passes the {@link #offset} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRect3DfFB offset(java.util.function.Consumer consumer) { consumer.accept(offset()); return this; } + /** Copies the specified {@link XrExtent3DfFB} to the {@link #extent} field. */ + public XrRect3DfFB extent(XrExtent3DfFB value) { nextent(address(), value); return this; } + /** Passes the {@link #extent} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRect3DfFB extent(java.util.function.Consumer consumer) { consumer.accept(extent()); return this; } /** Initializes this struct with the specified values. */ public XrRect3DfFB set( - XrOffset3DfFB offset, + XrOffset3DfFB offset, XrExtent3DfFB extent - ) { - offset(offset); - extent(extent); + ) { + offset(offset); + extent(extent); return this; } @@ -239,18 +237,18 @@ public static XrRect3DfFB.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #offset}. */ - public static XrOffset3DfFB noffset(long struct) { return XrOffset3DfFB.create(struct + XrRect3DfFB.OFFSET); } - /** Unsafe version of {@link #extent}. */ - public static XrExtent3DfFB nextent(long struct) { return XrExtent3DfFB.create(struct + XrRect3DfFB.EXTENT); } - - /** Unsafe version of {@link #offset(XrOffset3DfFB) offset}. */ - public static void noffset(long struct, XrOffset3DfFB value) { memCopy(value.address(), struct + XrRect3DfFB.OFFSET, XrOffset3DfFB.SIZEOF); } - /** Unsafe version of {@link #extent(XrExtent3DfFB) extent}. */ - public static void nextent(long struct, XrExtent3DfFB value) { memCopy(value.address(), struct + XrRect3DfFB.EXTENT, XrExtent3DfFB.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #offset}. */ + public static XrOffset3DfFB noffset(long struct) { return XrOffset3DfFB.create(struct + XrRect3DfFB.OFFSET); } + /** Unsafe version of {@link #extent}. */ + public static XrExtent3DfFB nextent(long struct) { return XrExtent3DfFB.create(struct + XrRect3DfFB.EXTENT); } + + /** Unsafe version of {@link #offset(XrOffset3DfFB) offset}. */ + public static void noffset(long struct, XrOffset3DfFB value) { memCopy(value.address(), struct + XrRect3DfFB.OFFSET, XrOffset3DfFB.SIZEOF); } + /** Unsafe version of {@link #extent(XrExtent3DfFB) extent}. */ + public static void nextent(long struct, XrExtent3DfFB value) { memCopy(value.address(), struct + XrRect3DfFB.EXTENT, XrExtent3DfFB.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrRect3DfFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -287,20 +285,20 @@ protected Buffer self() { protected XrRect3DfFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return a {@link XrOffset3DfFB} view of the {@link XrRect3DfFB#offset} field. */ - public XrOffset3DfFB offset() { return XrRect3DfFB.noffset(address()); } - /** @return a {@link XrExtent3DfFB} view of the {@link XrRect3DfFB#extent} field. */ - public XrExtent3DfFB extent() { return XrRect3DfFB.nextent(address()); } - - /** Copies the specified {@link XrOffset3DfFB} to the {@link XrRect3DfFB#offset} field. */ - public XrRect3DfFB.Buffer offset(XrOffset3DfFB value) { XrRect3DfFB.noffset(address(), value); return this; } - /** Passes the {@link XrRect3DfFB#offset} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRect3DfFB.Buffer offset(java.util.function.Consumer consumer) { consumer.accept(offset()); return this; } - /** Copies the specified {@link XrExtent3DfFB} to the {@link XrRect3DfFB#extent} field. */ - public XrRect3DfFB.Buffer extent(XrExtent3DfFB value) { XrRect3DfFB.nextent(address(), value); return this; } - /** Passes the {@link XrRect3DfFB#extent} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRect3DfFB.Buffer extent(java.util.function.Consumer consumer) { consumer.accept(extent()); return this; } + + /** @return a {@link XrOffset3DfFB} view of the {@link XrRect3DfFB#offset} field. */ + public XrOffset3DfFB offset() { return XrRect3DfFB.noffset(address()); } + /** @return a {@link XrExtent3DfFB} view of the {@link XrRect3DfFB#extent} field. */ + public XrExtent3DfFB extent() { return XrRect3DfFB.nextent(address()); } + + /** Copies the specified {@link XrOffset3DfFB} to the {@link XrRect3DfFB#offset} field. */ + public XrRect3DfFB.Buffer offset(XrOffset3DfFB value) { XrRect3DfFB.noffset(address(), value); return this; } + /** Passes the {@link XrRect3DfFB#offset} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRect3DfFB.Buffer offset(java.util.function.Consumer consumer) { consumer.accept(offset()); return this; } + /** Copies the specified {@link XrExtent3DfFB} to the {@link XrRect3DfFB#extent} field. */ + public XrRect3DfFB.Buffer extent(XrExtent3DfFB value) { XrRect3DfFB.nextent(address(), value); return this; } + /** Passes the {@link XrRect3DfFB#extent} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRect3DfFB.Buffer extent(java.util.function.Consumer consumer) { consumer.accept(extent()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrReferenceSpaceCreateInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrReferenceSpaceCreateInfo.java index d50c73db84..2ca85f6988 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrReferenceSpaceCreateInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrReferenceSpaceCreateInfo.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Creation info for a reference space. * @@ -22,7 +22,7 @@ * *
                                                            *
                                                          • {@code type} must be {@link XR10#XR_TYPE_REFERENCE_SPACE_CREATE_INFO TYPE_REFERENCE_SPACE_CREATE_INFO}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • + *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • *
                                                          • {@code referenceSpaceType} must be a valid {@code XrReferenceSpaceType} value
                                                          • *
                                                          * @@ -39,8 +39,8 @@ * XrReferenceSpaceType {@link #referenceSpaceType}; * {@link XrPosef XrPosef} {@link #poseInReferenceSpace}; * } - */ -public class XrReferenceSpaceCreateInfo extends Struct implements NativeResource { + */ +public class XrReferenceSpaceCreateInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,27 +50,27 @@ public class XrReferenceSpaceCreateInfo extends Struct consumer) { consumer.accept(poseInReferenceSpace()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the chosen {@code XrReferenceSpaceType}. */ + @NativeType("XrReferenceSpaceType") + public int referenceSpaceType() { return nreferenceSpaceType(address()); } + /** an {@link XrPosef} defining the position and orientation of the new space’s origin within the natural reference frame of the reference space. */ + public XrPosef poseInReferenceSpace() { return nposeInReferenceSpace(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrReferenceSpaceCreateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_REFERENCE_SPACE_CREATE_INFO TYPE_REFERENCE_SPACE_CREATE_INFO} value to the {@link #type} field. */ + public XrReferenceSpaceCreateInfo type$Default() { return type(XR10.XR_TYPE_REFERENCE_SPACE_CREATE_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrReferenceSpaceCreateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #referenceSpaceType} field. */ + public XrReferenceSpaceCreateInfo referenceSpaceType(@NativeType("XrReferenceSpaceType") int value) { nreferenceSpaceType(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #poseInReferenceSpace} field. */ + public XrReferenceSpaceCreateInfo poseInReferenceSpace(XrPosef value) { nposeInReferenceSpace(address(), value); return this; } + /** Passes the {@link #poseInReferenceSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrReferenceSpaceCreateInfo poseInReferenceSpace(java.util.function.Consumer consumer) { consumer.accept(poseInReferenceSpace()); return this; } /** Initializes this struct with the specified values. */ public XrReferenceSpaceCreateInfo set( - int type, - long next, - int referenceSpaceType, + int type, + long next, + int referenceSpaceType, XrPosef poseInReferenceSpace - ) { - type(type); - next(next); - referenceSpaceType(referenceSpaceType); - poseInReferenceSpace(poseInReferenceSpace); + ) { + type(type); + next(next); + referenceSpaceType(referenceSpaceType); + poseInReferenceSpace(poseInReferenceSpace); return this; } @@ -258,26 +258,26 @@ public static XrReferenceSpaceCreateInfo.Buffer calloc(int capacity, MemoryStack } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrReferenceSpaceCreateInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrReferenceSpaceCreateInfo.NEXT); } - /** Unsafe version of {@link #referenceSpaceType}. */ - public static int nreferenceSpaceType(long struct) { return UNSAFE.getInt(null, struct + XrReferenceSpaceCreateInfo.REFERENCESPACETYPE); } - /** Unsafe version of {@link #poseInReferenceSpace}. */ - public static XrPosef nposeInReferenceSpace(long struct) { return XrPosef.create(struct + XrReferenceSpaceCreateInfo.POSEINREFERENCESPACE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrReferenceSpaceCreateInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrReferenceSpaceCreateInfo.NEXT, value); } - /** Unsafe version of {@link #referenceSpaceType(int) referenceSpaceType}. */ - public static void nreferenceSpaceType(long struct, int value) { UNSAFE.putInt(null, struct + XrReferenceSpaceCreateInfo.REFERENCESPACETYPE, value); } - /** Unsafe version of {@link #poseInReferenceSpace(XrPosef) poseInReferenceSpace}. */ - public static void nposeInReferenceSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrReferenceSpaceCreateInfo.POSEINREFERENCESPACE, XrPosef.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrReferenceSpaceCreateInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrReferenceSpaceCreateInfo.NEXT); } + /** Unsafe version of {@link #referenceSpaceType}. */ + public static int nreferenceSpaceType(long struct) { return UNSAFE.getInt(null, struct + XrReferenceSpaceCreateInfo.REFERENCESPACETYPE); } + /** Unsafe version of {@link #poseInReferenceSpace}. */ + public static XrPosef nposeInReferenceSpace(long struct) { return XrPosef.create(struct + XrReferenceSpaceCreateInfo.POSEINREFERENCESPACE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrReferenceSpaceCreateInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrReferenceSpaceCreateInfo.NEXT, value); } + /** Unsafe version of {@link #referenceSpaceType(int) referenceSpaceType}. */ + public static void nreferenceSpaceType(long struct, int value) { UNSAFE.putInt(null, struct + XrReferenceSpaceCreateInfo.REFERENCESPACETYPE, value); } + /** Unsafe version of {@link #poseInReferenceSpace(XrPosef) poseInReferenceSpace}. */ + public static void nposeInReferenceSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrReferenceSpaceCreateInfo.POSEINREFERENCESPACE, XrPosef.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrReferenceSpaceCreateInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -314,31 +314,31 @@ protected Buffer self() { protected XrReferenceSpaceCreateInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrReferenceSpaceCreateInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrReferenceSpaceCreateInfo.ntype(address()); } - /** @return the value of the {@link XrReferenceSpaceCreateInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrReferenceSpaceCreateInfo.nnext(address()); } - /** @return the value of the {@link XrReferenceSpaceCreateInfo#referenceSpaceType} field. */ - @NativeType("XrReferenceSpaceType") - public int referenceSpaceType() { return XrReferenceSpaceCreateInfo.nreferenceSpaceType(address()); } - /** @return a {@link XrPosef} view of the {@link XrReferenceSpaceCreateInfo#poseInReferenceSpace} field. */ - public XrPosef poseInReferenceSpace() { return XrReferenceSpaceCreateInfo.nposeInReferenceSpace(address()); } - - /** Sets the specified value to the {@link XrReferenceSpaceCreateInfo#type} field. */ - public XrReferenceSpaceCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrReferenceSpaceCreateInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_REFERENCE_SPACE_CREATE_INFO TYPE_REFERENCE_SPACE_CREATE_INFO} value to the {@link XrReferenceSpaceCreateInfo#type} field. */ - public XrReferenceSpaceCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_REFERENCE_SPACE_CREATE_INFO); } - /** Sets the specified value to the {@link XrReferenceSpaceCreateInfo#next} field. */ - public XrReferenceSpaceCreateInfo.Buffer next(@NativeType("void const *") long value) { XrReferenceSpaceCreateInfo.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrReferenceSpaceCreateInfo#referenceSpaceType} field. */ - public XrReferenceSpaceCreateInfo.Buffer referenceSpaceType(@NativeType("XrReferenceSpaceType") int value) { XrReferenceSpaceCreateInfo.nreferenceSpaceType(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrReferenceSpaceCreateInfo#poseInReferenceSpace} field. */ - public XrReferenceSpaceCreateInfo.Buffer poseInReferenceSpace(XrPosef value) { XrReferenceSpaceCreateInfo.nposeInReferenceSpace(address(), value); return this; } - /** Passes the {@link XrReferenceSpaceCreateInfo#poseInReferenceSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrReferenceSpaceCreateInfo.Buffer poseInReferenceSpace(java.util.function.Consumer consumer) { consumer.accept(poseInReferenceSpace()); return this; } + + /** @return the value of the {@link XrReferenceSpaceCreateInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrReferenceSpaceCreateInfo.ntype(address()); } + /** @return the value of the {@link XrReferenceSpaceCreateInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrReferenceSpaceCreateInfo.nnext(address()); } + /** @return the value of the {@link XrReferenceSpaceCreateInfo#referenceSpaceType} field. */ + @NativeType("XrReferenceSpaceType") + public int referenceSpaceType() { return XrReferenceSpaceCreateInfo.nreferenceSpaceType(address()); } + /** @return a {@link XrPosef} view of the {@link XrReferenceSpaceCreateInfo#poseInReferenceSpace} field. */ + public XrPosef poseInReferenceSpace() { return XrReferenceSpaceCreateInfo.nposeInReferenceSpace(address()); } + + /** Sets the specified value to the {@link XrReferenceSpaceCreateInfo#type} field. */ + public XrReferenceSpaceCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrReferenceSpaceCreateInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_REFERENCE_SPACE_CREATE_INFO TYPE_REFERENCE_SPACE_CREATE_INFO} value to the {@link XrReferenceSpaceCreateInfo#type} field. */ + public XrReferenceSpaceCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_REFERENCE_SPACE_CREATE_INFO); } + /** Sets the specified value to the {@link XrReferenceSpaceCreateInfo#next} field. */ + public XrReferenceSpaceCreateInfo.Buffer next(@NativeType("void const *") long value) { XrReferenceSpaceCreateInfo.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrReferenceSpaceCreateInfo#referenceSpaceType} field. */ + public XrReferenceSpaceCreateInfo.Buffer referenceSpaceType(@NativeType("XrReferenceSpaceType") int value) { XrReferenceSpaceCreateInfo.nreferenceSpaceType(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrReferenceSpaceCreateInfo#poseInReferenceSpace} field. */ + public XrReferenceSpaceCreateInfo.Buffer poseInReferenceSpace(XrPosef value) { XrReferenceSpaceCreateInfo.nposeInReferenceSpace(address(), value); return this; } + /** Passes the {@link XrReferenceSpaceCreateInfo#poseInReferenceSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrReferenceSpaceCreateInfo.Buffer poseInReferenceSpace(java.util.function.Consumer consumer) { consumer.accept(poseInReferenceSpace()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelBufferFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelBufferFB.java index 895aad117c..beb911588f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelBufferFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelBufferFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The buffer containing the data for the render model. * @@ -27,7 +27,7 @@ *
                                                            *
                                                          • The {@link FBRenderModel XR_FB_render_model} extension must be enabled prior to using {@link XrRenderModelBufferFB}
                                                          • *
                                                          • {@code type} must be {@link FBRenderModel#XR_TYPE_RENDER_MODEL_BUFFER_FB TYPE_RENDER_MODEL_BUFFER_FB}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • + *
                                                          • {@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
                                                          • *
                                                          * @@ -45,8 +45,8 @@ * uint32_t {@link #bufferCountOutput}; * uint8_t * {@link #buffer}; * } - */ -public class XrRenderModelBufferFB extends Struct implements NativeResource { + */ +public class XrRenderModelBufferFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,30 +56,30 @@ public class XrRenderModelBufferFB extends Struct impleme /** The struct member offsets. */ public static final int - TYPE, - NEXT, - BUFFERCAPACITYINPUT, - BUFFERCOUNTOUTPUT, - BUFFER; + TYPE, + NEXT, + BUFFERCAPACITYINPUT, + BUFFERCOUNTOUTPUT, + BUFFER; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - BUFFERCAPACITYINPUT = layout.offsetof(2); - BUFFERCOUNTOUTPUT = layout.offsetof(3); - BUFFER = layout.offsetof(4); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + BUFFERCAPACITYINPUT = layout.offsetof(2); + BUFFERCOUNTOUTPUT = layout.offsetof(3); + BUFFER = layout.offsetof(4); + } protected XrRenderModelBufferFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -102,50 +102,50 @@ public XrRenderModelBufferFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** the capacity of the {@code buffer}, or 0 to retrieve the required capacity. */ - @NativeType("uint32_t") - public int bufferCapacityInput() { return nbufferCapacityInput(address()); } - /** the count of {@code uint8_t} {@code buffer} written, or the required capacity in the case that {@code bufferCapacityInput} is insufficient. */ - @NativeType("uint32_t") - public int bufferCountOutput() { return nbufferCountOutput(address()); } - /** a pointer to an application-allocated array that will be filled with the render model binary data. */ - @Nullable - @NativeType("uint8_t *") - public ByteBuffer buffer() { return nbuffer(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrRenderModelBufferFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_BUFFER_FB TYPE_RENDER_MODEL_BUFFER_FB} value to the {@link #type} field. */ - public XrRenderModelBufferFB type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_BUFFER_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrRenderModelBufferFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #bufferCapacityInput} field. */ - public XrRenderModelBufferFB bufferCapacityInput(@NativeType("uint32_t") int value) { nbufferCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #bufferCountOutput} field. */ - public XrRenderModelBufferFB bufferCountOutput(@NativeType("uint32_t") int value) { nbufferCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link ByteBuffer} to the {@link #buffer} field. */ - public XrRenderModelBufferFB buffer(@Nullable @NativeType("uint8_t *") ByteBuffer value) { nbuffer(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the capacity of the {@code buffer}, or 0 to retrieve the required capacity. */ + @NativeType("uint32_t") + public int bufferCapacityInput() { return nbufferCapacityInput(address()); } + /** the count of {@code uint8_t} {@code buffer} written, or the required capacity in the case that {@code bufferCapacityInput} is insufficient. */ + @NativeType("uint32_t") + public int bufferCountOutput() { return nbufferCountOutput(address()); } + /** a pointer to an application-allocated array that will be filled with the render model binary data. */ + @Nullable + @NativeType("uint8_t *") + public ByteBuffer buffer() { return nbuffer(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrRenderModelBufferFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_BUFFER_FB TYPE_RENDER_MODEL_BUFFER_FB} value to the {@link #type} field. */ + public XrRenderModelBufferFB type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_BUFFER_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrRenderModelBufferFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #bufferCapacityInput} field. */ + public XrRenderModelBufferFB bufferCapacityInput(@NativeType("uint32_t") int value) { nbufferCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #bufferCountOutput} field. */ + public XrRenderModelBufferFB bufferCountOutput(@NativeType("uint32_t") int value) { nbufferCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link ByteBuffer} to the {@link #buffer} field. */ + public XrRenderModelBufferFB buffer(@Nullable @NativeType("uint8_t *") ByteBuffer value) { nbuffer(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrRenderModelBufferFB set( - int type, - long next, - int bufferCapacityInput, - int bufferCountOutput, + int type, + long next, + int bufferCapacityInput, + int bufferCountOutput, @Nullable ByteBuffer buffer - ) { - type(type); - next(next); - bufferCapacityInput(bufferCapacityInput); - bufferCountOutput(bufferCountOutput); - buffer(buffer); + ) { + type(type); + next(next); + bufferCapacityInput(bufferCapacityInput); + bufferCountOutput(bufferCountOutput); + buffer(buffer); return this; } @@ -274,30 +274,30 @@ public static XrRenderModelBufferFB.Buffer calloc(int capacity, MemoryStack stac } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelBufferFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrRenderModelBufferFB.NEXT); } - /** Unsafe version of {@link #bufferCapacityInput}. */ - public static int nbufferCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelBufferFB.BUFFERCAPACITYINPUT); } - /** Unsafe version of {@link #bufferCountOutput}. */ - public static int nbufferCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelBufferFB.BUFFERCOUNTOUTPUT); } - /** Unsafe version of {@link #buffer() buffer}. */ - @Nullable public static ByteBuffer nbuffer(long struct) { return memByteBufferSafe(memGetAddress(struct + XrRenderModelBufferFB.BUFFER), nbufferCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelBufferFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrRenderModelBufferFB.NEXT, value); } - /** Sets the specified value to the {@code bufferCapacityInput} field of the specified {@code struct}. */ - public static void nbufferCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelBufferFB.BUFFERCAPACITYINPUT, value); } - /** Unsafe version of {@link #bufferCountOutput(int) bufferCountOutput}. */ - public static void nbufferCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelBufferFB.BUFFERCOUNTOUTPUT, value); } - /** Unsafe version of {@link #buffer(ByteBuffer) buffer}. */ - public static void nbuffer(long struct, @Nullable ByteBuffer value) { memPutAddress(struct + XrRenderModelBufferFB.BUFFER, memAddressSafe(value)); if (value != null) { nbufferCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelBufferFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrRenderModelBufferFB.NEXT); } + /** Unsafe version of {@link #bufferCapacityInput}. */ + public static int nbufferCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelBufferFB.BUFFERCAPACITYINPUT); } + /** Unsafe version of {@link #bufferCountOutput}. */ + public static int nbufferCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelBufferFB.BUFFERCOUNTOUTPUT); } + /** Unsafe version of {@link #buffer() buffer}. */ + @Nullable public static ByteBuffer nbuffer(long struct) { return memByteBufferSafe(memGetAddress(struct + XrRenderModelBufferFB.BUFFER), nbufferCapacityInput(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelBufferFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrRenderModelBufferFB.NEXT, value); } + /** Sets the specified value to the {@code bufferCapacityInput} field of the specified {@code struct}. */ + public static void nbufferCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelBufferFB.BUFFERCAPACITYINPUT, value); } + /** Unsafe version of {@link #bufferCountOutput(int) bufferCountOutput}. */ + public static void nbufferCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelBufferFB.BUFFERCOUNTOUTPUT, value); } + /** Unsafe version of {@link #buffer(ByteBuffer) buffer}. */ + public static void nbuffer(long struct, @Nullable ByteBuffer value) { memPutAddress(struct + XrRenderModelBufferFB.BUFFER, memAddressSafe(value)); if (value != null) { nbufferCapacityInput(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrRenderModelBufferFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -334,36 +334,36 @@ protected Buffer self() { protected XrRenderModelBufferFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrRenderModelBufferFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrRenderModelBufferFB.ntype(address()); } - /** @return the value of the {@link XrRenderModelBufferFB#next} field. */ - @NativeType("void *") - public long next() { return XrRenderModelBufferFB.nnext(address()); } - /** @return the value of the {@link XrRenderModelBufferFB#bufferCapacityInput} field. */ - @NativeType("uint32_t") - public int bufferCapacityInput() { return XrRenderModelBufferFB.nbufferCapacityInput(address()); } - /** @return the value of the {@link XrRenderModelBufferFB#bufferCountOutput} field. */ - @NativeType("uint32_t") - public int bufferCountOutput() { return XrRenderModelBufferFB.nbufferCountOutput(address()); } - /** @return a {@link ByteBuffer} view of the data pointed to by the {@link XrRenderModelBufferFB#buffer} field. */ - @Nullable - @NativeType("uint8_t *") - public ByteBuffer buffer() { return XrRenderModelBufferFB.nbuffer(address()); } - - /** Sets the specified value to the {@link XrRenderModelBufferFB#type} field. */ - public XrRenderModelBufferFB.Buffer type(@NativeType("XrStructureType") int value) { XrRenderModelBufferFB.ntype(address(), value); return this; } - /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_BUFFER_FB TYPE_RENDER_MODEL_BUFFER_FB} value to the {@link XrRenderModelBufferFB#type} field. */ - public XrRenderModelBufferFB.Buffer type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_BUFFER_FB); } - /** Sets the specified value to the {@link XrRenderModelBufferFB#next} field. */ - public XrRenderModelBufferFB.Buffer next(@NativeType("void *") long value) { XrRenderModelBufferFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrRenderModelBufferFB#bufferCapacityInput} field. */ - public XrRenderModelBufferFB.Buffer bufferCapacityInput(@NativeType("uint32_t") int value) { XrRenderModelBufferFB.nbufferCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrRenderModelBufferFB#bufferCountOutput} field. */ - public XrRenderModelBufferFB.Buffer bufferCountOutput(@NativeType("uint32_t") int value) { XrRenderModelBufferFB.nbufferCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link ByteBuffer} to the {@link XrRenderModelBufferFB#buffer} field. */ - public XrRenderModelBufferFB.Buffer buffer(@Nullable @NativeType("uint8_t *") ByteBuffer value) { XrRenderModelBufferFB.nbuffer(address(), value); return this; } + + /** @return the value of the {@link XrRenderModelBufferFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrRenderModelBufferFB.ntype(address()); } + /** @return the value of the {@link XrRenderModelBufferFB#next} field. */ + @NativeType("void *") + public long next() { return XrRenderModelBufferFB.nnext(address()); } + /** @return the value of the {@link XrRenderModelBufferFB#bufferCapacityInput} field. */ + @NativeType("uint32_t") + public int bufferCapacityInput() { return XrRenderModelBufferFB.nbufferCapacityInput(address()); } + /** @return the value of the {@link XrRenderModelBufferFB#bufferCountOutput} field. */ + @NativeType("uint32_t") + public int bufferCountOutput() { return XrRenderModelBufferFB.nbufferCountOutput(address()); } + /** @return a {@link ByteBuffer} view of the data pointed to by the {@link XrRenderModelBufferFB#buffer} field. */ + @Nullable + @NativeType("uint8_t *") + public ByteBuffer buffer() { return XrRenderModelBufferFB.nbuffer(address()); } + + /** Sets the specified value to the {@link XrRenderModelBufferFB#type} field. */ + public XrRenderModelBufferFB.Buffer type(@NativeType("XrStructureType") int value) { XrRenderModelBufferFB.ntype(address(), value); return this; } + /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_BUFFER_FB TYPE_RENDER_MODEL_BUFFER_FB} value to the {@link XrRenderModelBufferFB#type} field. */ + public XrRenderModelBufferFB.Buffer type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_BUFFER_FB); } + /** Sets the specified value to the {@link XrRenderModelBufferFB#next} field. */ + public XrRenderModelBufferFB.Buffer next(@NativeType("void *") long value) { XrRenderModelBufferFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrRenderModelBufferFB#bufferCapacityInput} field. */ + public XrRenderModelBufferFB.Buffer bufferCapacityInput(@NativeType("uint32_t") int value) { XrRenderModelBufferFB.nbufferCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrRenderModelBufferFB#bufferCountOutput} field. */ + public XrRenderModelBufferFB.Buffer bufferCountOutput(@NativeType("uint32_t") int value) { XrRenderModelBufferFB.nbufferCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link ByteBuffer} to the {@link XrRenderModelBufferFB#buffer} field. */ + public XrRenderModelBufferFB.Buffer buffer(@Nullable @NativeType("uint8_t *") ByteBuffer value) { XrRenderModelBufferFB.nbuffer(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelCapabilitiesRequestFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelCapabilitiesRequestFB.java index 4d4dc7b9ad..2ba244cb8a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelCapabilitiesRequestFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelCapabilitiesRequestFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * A render model system property. * @@ -27,7 +27,7 @@ *
                                                            *
                                                          • The {@link FBRenderModel XR_FB_render_model} extension must be enabled prior to using {@link XrRenderModelCapabilitiesRequestFB}
                                                          • *
                                                          • {@code type} must be {@link FBRenderModel#XR_TYPE_RENDER_MODEL_CAPABILITIES_REQUEST_FB TYPE_RENDER_MODEL_CAPABILITIES_REQUEST_FB}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • + *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • *
                                                          * *

                                                          Layout

                                                          @@ -38,8 +38,8 @@ * void * {@link #next}; * XrRenderModelFlagsFB {@link #flags}; * } - */ -public class XrRenderModelCapabilitiesRequestFB extends Struct implements NativeResource { + */ +public class XrRenderModelCapabilitiesRequestFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -49,24 +49,24 @@ public class XrRenderModelCapabilitiesRequestFB extends Struct implements NativeResource { @@ -292,23 +292,23 @@ protected Buffer self() { protected XrRenderModelCapabilitiesRequestFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrRenderModelCapabilitiesRequestFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrRenderModelCapabilitiesRequestFB.ntype(address()); } - /** @return the value of the {@link XrRenderModelCapabilitiesRequestFB#next} field. */ - @NativeType("void *") - public long next() { return XrRenderModelCapabilitiesRequestFB.nnext(address()); } - /** @return the value of the {@link XrRenderModelCapabilitiesRequestFB#flags} field. */ - @NativeType("XrRenderModelFlagsFB") - public long flags() { return XrRenderModelCapabilitiesRequestFB.nflags(address()); } - - /** Sets the specified value to the {@link XrRenderModelCapabilitiesRequestFB#type} field. */ - public XrRenderModelCapabilitiesRequestFB.Buffer type(@NativeType("XrStructureType") int value) { XrRenderModelCapabilitiesRequestFB.ntype(address(), value); return this; } - /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_CAPABILITIES_REQUEST_FB TYPE_RENDER_MODEL_CAPABILITIES_REQUEST_FB} value to the {@link XrRenderModelCapabilitiesRequestFB#type} field. */ - public XrRenderModelCapabilitiesRequestFB.Buffer type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_CAPABILITIES_REQUEST_FB); } - /** Sets the specified value to the {@link XrRenderModelCapabilitiesRequestFB#next} field. */ - public XrRenderModelCapabilitiesRequestFB.Buffer next(@NativeType("void *") long value) { XrRenderModelCapabilitiesRequestFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrRenderModelCapabilitiesRequestFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrRenderModelCapabilitiesRequestFB.ntype(address()); } + /** @return the value of the {@link XrRenderModelCapabilitiesRequestFB#next} field. */ + @NativeType("void *") + public long next() { return XrRenderModelCapabilitiesRequestFB.nnext(address()); } + /** @return the value of the {@link XrRenderModelCapabilitiesRequestFB#flags} field. */ + @NativeType("XrRenderModelFlagsFB") + public long flags() { return XrRenderModelCapabilitiesRequestFB.nflags(address()); } + + /** Sets the specified value to the {@link XrRenderModelCapabilitiesRequestFB#type} field. */ + public XrRenderModelCapabilitiesRequestFB.Buffer type(@NativeType("XrStructureType") int value) { XrRenderModelCapabilitiesRequestFB.ntype(address(), value); return this; } + /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_CAPABILITIES_REQUEST_FB TYPE_RENDER_MODEL_CAPABILITIES_REQUEST_FB} value to the {@link XrRenderModelCapabilitiesRequestFB#type} field. */ + public XrRenderModelCapabilitiesRequestFB.Buffer type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_CAPABILITIES_REQUEST_FB); } + /** Sets the specified value to the {@link XrRenderModelCapabilitiesRequestFB#next} field. */ + public XrRenderModelCapabilitiesRequestFB.Buffer next(@NativeType("void *") long value) { XrRenderModelCapabilitiesRequestFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelLoadInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelLoadInfoFB.java index 582e0b9500..df86b52f40 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelLoadInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelLoadInfoFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The information for which render model to load. * @@ -27,7 +27,7 @@ *
                                                            *
                                                          • The {@link FBRenderModel XR_FB_render_model} extension must be enabled prior to using {@link XrRenderModelLoadInfoFB}
                                                          • *
                                                          • {@code type} must be {@link FBRenderModel#XR_TYPE_RENDER_MODEL_LOAD_INFO_FB TYPE_RENDER_MODEL_LOAD_INFO_FB}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • + *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • *
                                                          * *
                                                          See Also
                                                          @@ -42,8 +42,8 @@ * void * {@link #next}; * XrRenderModelKeyFB {@link #modelKey}; * } - */ -public class XrRenderModelLoadInfoFB extends Struct implements NativeResource { + */ +public class XrRenderModelLoadInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,24 +53,24 @@ public class XrRenderModelLoadInfoFB extends Struct imp /** The struct member offsets. */ public static final int - TYPE, - NEXT, - MODELKEY; + TYPE, + NEXT, + MODELKEY; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - MODELKEY = layout.offsetof(2); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + MODELKEY = layout.offsetof(2); + } protected XrRenderModelLoadInfoFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -93,35 +93,35 @@ public XrRenderModelLoadInfoFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** the unique model key for a connected device. */ - @NativeType("XrRenderModelKeyFB") - public long modelKey() { return nmodelKey(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrRenderModelLoadInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_LOAD_INFO_FB TYPE_RENDER_MODEL_LOAD_INFO_FB} value to the {@link #type} field. */ - public XrRenderModelLoadInfoFB type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_LOAD_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrRenderModelLoadInfoFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #modelKey} field. */ - public XrRenderModelLoadInfoFB modelKey(@NativeType("XrRenderModelKeyFB") long value) { nmodelKey(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the unique model key for a connected device. */ + @NativeType("XrRenderModelKeyFB") + public long modelKey() { return nmodelKey(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrRenderModelLoadInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_LOAD_INFO_FB TYPE_RENDER_MODEL_LOAD_INFO_FB} value to the {@link #type} field. */ + public XrRenderModelLoadInfoFB type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_LOAD_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrRenderModelLoadInfoFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #modelKey} field. */ + public XrRenderModelLoadInfoFB modelKey(@NativeType("XrRenderModelKeyFB") long value) { nmodelKey(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrRenderModelLoadInfoFB set( - int type, - long next, + int type, + long next, long modelKey - ) { - type(type); - next(next); - modelKey(modelKey); + ) { + type(type); + next(next); + modelKey(modelKey); return this; } @@ -250,22 +250,22 @@ public static XrRenderModelLoadInfoFB.Buffer calloc(int capacity, MemoryStack st } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelLoadInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrRenderModelLoadInfoFB.NEXT); } - /** Unsafe version of {@link #modelKey}. */ - public static long nmodelKey(long struct) { return UNSAFE.getLong(null, struct + XrRenderModelLoadInfoFB.MODELKEY); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelLoadInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrRenderModelLoadInfoFB.NEXT, value); } - /** Unsafe version of {@link #modelKey(long) modelKey}. */ - public static void nmodelKey(long struct, long value) { UNSAFE.putLong(null, struct + XrRenderModelLoadInfoFB.MODELKEY, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelLoadInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrRenderModelLoadInfoFB.NEXT); } + /** Unsafe version of {@link #modelKey}. */ + public static long nmodelKey(long struct) { return UNSAFE.getLong(null, struct + XrRenderModelLoadInfoFB.MODELKEY); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelLoadInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrRenderModelLoadInfoFB.NEXT, value); } + /** Unsafe version of {@link #modelKey(long) modelKey}. */ + public static void nmodelKey(long struct, long value) { UNSAFE.putLong(null, struct + XrRenderModelLoadInfoFB.MODELKEY, value); } + + // ----------------------------------- /** An array of {@link XrRenderModelLoadInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -302,25 +302,25 @@ protected Buffer self() { protected XrRenderModelLoadInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrRenderModelLoadInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrRenderModelLoadInfoFB.ntype(address()); } - /** @return the value of the {@link XrRenderModelLoadInfoFB#next} field. */ - @NativeType("void *") - public long next() { return XrRenderModelLoadInfoFB.nnext(address()); } - /** @return the value of the {@link XrRenderModelLoadInfoFB#modelKey} field. */ - @NativeType("XrRenderModelKeyFB") - public long modelKey() { return XrRenderModelLoadInfoFB.nmodelKey(address()); } - - /** Sets the specified value to the {@link XrRenderModelLoadInfoFB#type} field. */ - public XrRenderModelLoadInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrRenderModelLoadInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_LOAD_INFO_FB TYPE_RENDER_MODEL_LOAD_INFO_FB} value to the {@link XrRenderModelLoadInfoFB#type} field. */ - public XrRenderModelLoadInfoFB.Buffer type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_LOAD_INFO_FB); } - /** Sets the specified value to the {@link XrRenderModelLoadInfoFB#next} field. */ - public XrRenderModelLoadInfoFB.Buffer next(@NativeType("void *") long value) { XrRenderModelLoadInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrRenderModelLoadInfoFB#modelKey} field. */ - public XrRenderModelLoadInfoFB.Buffer modelKey(@NativeType("XrRenderModelKeyFB") long value) { XrRenderModelLoadInfoFB.nmodelKey(address(), value); return this; } + + /** @return the value of the {@link XrRenderModelLoadInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrRenderModelLoadInfoFB.ntype(address()); } + /** @return the value of the {@link XrRenderModelLoadInfoFB#next} field. */ + @NativeType("void *") + public long next() { return XrRenderModelLoadInfoFB.nnext(address()); } + /** @return the value of the {@link XrRenderModelLoadInfoFB#modelKey} field. */ + @NativeType("XrRenderModelKeyFB") + public long modelKey() { return XrRenderModelLoadInfoFB.nmodelKey(address()); } + + /** Sets the specified value to the {@link XrRenderModelLoadInfoFB#type} field. */ + public XrRenderModelLoadInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrRenderModelLoadInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_LOAD_INFO_FB TYPE_RENDER_MODEL_LOAD_INFO_FB} value to the {@link XrRenderModelLoadInfoFB#type} field. */ + public XrRenderModelLoadInfoFB.Buffer type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_LOAD_INFO_FB); } + /** Sets the specified value to the {@link XrRenderModelLoadInfoFB#next} field. */ + public XrRenderModelLoadInfoFB.Buffer next(@NativeType("void *") long value) { XrRenderModelLoadInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrRenderModelLoadInfoFB#modelKey} field. */ + public XrRenderModelLoadInfoFB.Buffer modelKey(@NativeType("XrRenderModelKeyFB") long value) { XrRenderModelLoadInfoFB.nmodelKey(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelPathInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelPathInfoFB.java index 8165bd79f8..6a07fafdb6 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelPathInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelPathInfoFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Supported model paths. * @@ -37,7 +37,6 @@ *
                                                            *
                                                          • pathname:/model_fb/keyboard/local
                                                          • *
                                                          • pathname:/model_fb/keyboard/remote
                                                          • - *
                                                          • pathname:/model_meta/keyboard/virtual (if the {@link METAVirtualKeyboard XR_META_virtual_keyboard} extension is enabled)
                                                          • *
                                                          * *
                                                        @@ -47,7 +46,7 @@ *
                                                          *
                                                        • The {@link FBRenderModel XR_FB_render_model} extension must be enabled prior to using {@link XrRenderModelPathInfoFB}
                                                        • *
                                                        • {@code type} must be {@link FBRenderModel#XR_TYPE_RENDER_MODEL_PATH_INFO_FB TYPE_RENDER_MODEL_PATH_INFO_FB}
                                                        • - *
                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                        • + *
                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                        • *
                                                        * *
                                                        See Also
                                                        @@ -62,8 +61,8 @@ * void * {@link #next}; * XrPath {@link #path}; * } - */ -public class XrRenderModelPathInfoFB extends Struct implements NativeResource { + */ +public class XrRenderModelPathInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -73,24 +72,24 @@ public class XrRenderModelPathInfoFB extends Struct imp /** The struct member offsets. */ public static final int - TYPE, - NEXT, - PATH; + TYPE, + NEXT, + PATH; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - PATH = layout.offsetof(2); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + PATH = layout.offsetof(2); + } protected XrRenderModelPathInfoFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -113,35 +112,35 @@ public XrRenderModelPathInfoFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** a valid {@code XrPath} used for retrieving model properties from {@link FBRenderModel#xrGetRenderModelPropertiesFB GetRenderModelPropertiesFB}. */ - @NativeType("XrPath") - public long path() { return npath(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrRenderModelPathInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_PATH_INFO_FB TYPE_RENDER_MODEL_PATH_INFO_FB} value to the {@link #type} field. */ - public XrRenderModelPathInfoFB type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_PATH_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrRenderModelPathInfoFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #path} field. */ - public XrRenderModelPathInfoFB path(@NativeType("XrPath") long value) { npath(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** a valid {@code XrPath} used for retrieving model properties from {@link FBRenderModel#xrGetRenderModelPropertiesFB GetRenderModelPropertiesFB}. */ + @NativeType("XrPath") + public long path() { return npath(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrRenderModelPathInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_PATH_INFO_FB TYPE_RENDER_MODEL_PATH_INFO_FB} value to the {@link #type} field. */ + public XrRenderModelPathInfoFB type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_PATH_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrRenderModelPathInfoFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #path} field. */ + public XrRenderModelPathInfoFB path(@NativeType("XrPath") long value) { npath(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrRenderModelPathInfoFB set( - int type, - long next, + int type, + long next, long path - ) { - type(type); - next(next); - path(path); + ) { + type(type); + next(next); + path(path); return this; } @@ -270,22 +269,22 @@ public static XrRenderModelPathInfoFB.Buffer calloc(int capacity, MemoryStack st } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelPathInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrRenderModelPathInfoFB.NEXT); } - /** Unsafe version of {@link #path}. */ - public static long npath(long struct) { return UNSAFE.getLong(null, struct + XrRenderModelPathInfoFB.PATH); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelPathInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrRenderModelPathInfoFB.NEXT, value); } - /** Unsafe version of {@link #path(long) path}. */ - public static void npath(long struct, long value) { UNSAFE.putLong(null, struct + XrRenderModelPathInfoFB.PATH, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelPathInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrRenderModelPathInfoFB.NEXT); } + /** Unsafe version of {@link #path}. */ + public static long npath(long struct) { return UNSAFE.getLong(null, struct + XrRenderModelPathInfoFB.PATH); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelPathInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrRenderModelPathInfoFB.NEXT, value); } + /** Unsafe version of {@link #path(long) path}. */ + public static void npath(long struct, long value) { UNSAFE.putLong(null, struct + XrRenderModelPathInfoFB.PATH, value); } + + // ----------------------------------- /** An array of {@link XrRenderModelPathInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -322,25 +321,25 @@ protected Buffer self() { protected XrRenderModelPathInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrRenderModelPathInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrRenderModelPathInfoFB.ntype(address()); } - /** @return the value of the {@link XrRenderModelPathInfoFB#next} field. */ - @NativeType("void *") - public long next() { return XrRenderModelPathInfoFB.nnext(address()); } - /** @return the value of the {@link XrRenderModelPathInfoFB#path} field. */ - @NativeType("XrPath") - public long path() { return XrRenderModelPathInfoFB.npath(address()); } - - /** Sets the specified value to the {@link XrRenderModelPathInfoFB#type} field. */ - public XrRenderModelPathInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrRenderModelPathInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_PATH_INFO_FB TYPE_RENDER_MODEL_PATH_INFO_FB} value to the {@link XrRenderModelPathInfoFB#type} field. */ - public XrRenderModelPathInfoFB.Buffer type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_PATH_INFO_FB); } - /** Sets the specified value to the {@link XrRenderModelPathInfoFB#next} field. */ - public XrRenderModelPathInfoFB.Buffer next(@NativeType("void *") long value) { XrRenderModelPathInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrRenderModelPathInfoFB#path} field. */ - public XrRenderModelPathInfoFB.Buffer path(@NativeType("XrPath") long value) { XrRenderModelPathInfoFB.npath(address(), value); return this; } + + /** @return the value of the {@link XrRenderModelPathInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrRenderModelPathInfoFB.ntype(address()); } + /** @return the value of the {@link XrRenderModelPathInfoFB#next} field. */ + @NativeType("void *") + public long next() { return XrRenderModelPathInfoFB.nnext(address()); } + /** @return the value of the {@link XrRenderModelPathInfoFB#path} field. */ + @NativeType("XrPath") + public long path() { return XrRenderModelPathInfoFB.npath(address()); } + + /** Sets the specified value to the {@link XrRenderModelPathInfoFB#type} field. */ + public XrRenderModelPathInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrRenderModelPathInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_PATH_INFO_FB TYPE_RENDER_MODEL_PATH_INFO_FB} value to the {@link XrRenderModelPathInfoFB#type} field. */ + public XrRenderModelPathInfoFB.Buffer type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_PATH_INFO_FB); } + /** Sets the specified value to the {@link XrRenderModelPathInfoFB#next} field. */ + public XrRenderModelPathInfoFB.Buffer next(@NativeType("void *") long value) { XrRenderModelPathInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrRenderModelPathInfoFB#path} field. */ + public XrRenderModelPathInfoFB.Buffer path(@NativeType("XrPath") long value) { XrRenderModelPathInfoFB.npath(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelPropertiesFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelPropertiesFB.java index ca7cd76cff..730b192b37 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelPropertiesFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRenderModelPropertiesFB.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import static org.lwjgl.openxr.FBRenderModel.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.FBRenderModel.*; + /** * The information about the render model. * @@ -32,7 +32,7 @@ *
                                                          *
                                                        • The {@link FBRenderModel XR_FB_render_model} extension must be enabled prior to using {@link XrRenderModelPropertiesFB}
                                                        • *
                                                        • {@code type} must be {@link FBRenderModel#XR_TYPE_RENDER_MODEL_PROPERTIES_FB TYPE_RENDER_MODEL_PROPERTIES_FB}
                                                        • - *
                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                        • + *
                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                        • *
                                                        • {@code modelName} must be a null-terminated UTF-8 string whose length is less than or equal to {@link FBRenderModel#XR_MAX_RENDER_MODEL_NAME_SIZE_FB MAX_RENDER_MODEL_NAME_SIZE_FB}
                                                        • *
                                                        • {@code flags} must be a valid combination of {@code XrRenderModelFlagBitsFB} values
                                                        • *
                                                        • {@code flags} must not be 0
                                                        • @@ -54,8 +54,8 @@ * uint32_t {@link #modelVersion}; * XrRenderModelFlagsFB {@link #flags}; * } - */ -public class XrRenderModelPropertiesFB extends Struct implements NativeResource { + */ +public class XrRenderModelPropertiesFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -65,36 +65,36 @@ public class XrRenderModelPropertiesFB extends Struct /** The struct member offsets. */ public static final int - TYPE, - NEXT, - VENDORID, - MODELNAME, - MODELKEY, - MODELVERSION, - FLAGS; + TYPE, + NEXT, + VENDORID, + MODELNAME, + MODELKEY, + MODELVERSION, + FLAGS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __array(1, XR_MAX_RENDER_MODEL_NAME_SIZE_FB), - __member(8), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __array(1, XR_MAX_RENDER_MODEL_NAME_SIZE_FB), + __member(8), + __member(4), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - VENDORID = layout.offsetof(2); - MODELNAME = layout.offsetof(3); - MODELKEY = layout.offsetof(4); - MODELVERSION = layout.offsetof(5); - FLAGS = layout.offsetof(6); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + VENDORID = layout.offsetof(2); + MODELNAME = layout.offsetof(3); + MODELKEY = layout.offsetof(4); + MODELVERSION = layout.offsetof(5); + FLAGS = layout.offsetof(6); + } protected XrRenderModelPropertiesFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -117,66 +117,66 @@ public XrRenderModelPropertiesFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. {@link XrRenderModelCapabilitiesRequestFB} is a structure in this structure chain and should be linked when this structure is passed to {@link FBRenderModel#xrGetRenderModelPropertiesFB GetRenderModelPropertiesFB}. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** the vendor id of the model. */ - @NativeType("uint32_t") - public int vendorId() { return nvendorId(address()); } - /** the name of the model. */ - @NativeType("char[XR_MAX_RENDER_MODEL_NAME_SIZE_FB]") - public ByteBuffer modelName() { return nmodelName(address()); } - /** the name of the model. */ - @NativeType("char[XR_MAX_RENDER_MODEL_NAME_SIZE_FB]") - public String modelNameString() { return nmodelNameString(address()); } - /** the unique model key used to load the model in {@link FBRenderModel#xrLoadRenderModelFB LoadRenderModelFB}. */ - @NativeType("XrRenderModelKeyFB") - public long modelKey() { return nmodelKey(address()); } - /** the version number of the model. */ - @NativeType("uint32_t") - public int modelVersion() { return nmodelVersion(address()); } - /** a bitmask of {@code XrRenderModelFlagsFB}. After a successful call to {@link FBRenderModel#xrGetRenderModelPropertiesFB GetRenderModelPropertiesFB}, flags must contain the support level of the model and no other support levels. */ - @NativeType("XrRenderModelFlagsFB") - public long flags() { return nflags(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrRenderModelPropertiesFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_PROPERTIES_FB TYPE_RENDER_MODEL_PROPERTIES_FB} value to the {@link #type} field. */ - public XrRenderModelPropertiesFB type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_PROPERTIES_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrRenderModelPropertiesFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #vendorId} field. */ - public XrRenderModelPropertiesFB vendorId(@NativeType("uint32_t") int value) { nvendorId(address(), value); return this; } - /** Copies the specified encoded string to the {@link #modelName} field. */ - public XrRenderModelPropertiesFB modelName(@NativeType("char[XR_MAX_RENDER_MODEL_NAME_SIZE_FB]") ByteBuffer value) { nmodelName(address(), value); return this; } - /** Sets the specified value to the {@link #modelKey} field. */ - public XrRenderModelPropertiesFB modelKey(@NativeType("XrRenderModelKeyFB") long value) { nmodelKey(address(), value); return this; } - /** Sets the specified value to the {@link #modelVersion} field. */ - public XrRenderModelPropertiesFB modelVersion(@NativeType("uint32_t") int value) { nmodelVersion(address(), value); return this; } - /** Sets the specified value to the {@link #flags} field. */ - public XrRenderModelPropertiesFB flags(@NativeType("XrRenderModelFlagsFB") long value) { nflags(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. {@link XrRenderModelCapabilitiesRequestFB} is a structure in this structure chain and should be linked when this structure is passed to {@link FBRenderModel#xrGetRenderModelPropertiesFB GetRenderModelPropertiesFB}. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the vendor id of the model. */ + @NativeType("uint32_t") + public int vendorId() { return nvendorId(address()); } + /** the name of the model. */ + @NativeType("char[XR_MAX_RENDER_MODEL_NAME_SIZE_FB]") + public ByteBuffer modelName() { return nmodelName(address()); } + /** the name of the model. */ + @NativeType("char[XR_MAX_RENDER_MODEL_NAME_SIZE_FB]") + public String modelNameString() { return nmodelNameString(address()); } + /** the unique model key used to load the model in {@link FBRenderModel#xrLoadRenderModelFB LoadRenderModelFB}. */ + @NativeType("XrRenderModelKeyFB") + public long modelKey() { return nmodelKey(address()); } + /** the version number of the model. */ + @NativeType("uint32_t") + public int modelVersion() { return nmodelVersion(address()); } + /** a bitmask of {@code XrRenderModelFlagsFB}. After a successful call to {@link FBRenderModel#xrGetRenderModelPropertiesFB GetRenderModelPropertiesFB}, flags must contain the support level of the model and no other support levels. */ + @NativeType("XrRenderModelFlagsFB") + public long flags() { return nflags(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrRenderModelPropertiesFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_PROPERTIES_FB TYPE_RENDER_MODEL_PROPERTIES_FB} value to the {@link #type} field. */ + public XrRenderModelPropertiesFB type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_PROPERTIES_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrRenderModelPropertiesFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #vendorId} field. */ + public XrRenderModelPropertiesFB vendorId(@NativeType("uint32_t") int value) { nvendorId(address(), value); return this; } + /** Copies the specified encoded string to the {@link #modelName} field. */ + public XrRenderModelPropertiesFB modelName(@NativeType("char[XR_MAX_RENDER_MODEL_NAME_SIZE_FB]") ByteBuffer value) { nmodelName(address(), value); return this; } + /** Sets the specified value to the {@link #modelKey} field. */ + public XrRenderModelPropertiesFB modelKey(@NativeType("XrRenderModelKeyFB") long value) { nmodelKey(address(), value); return this; } + /** Sets the specified value to the {@link #modelVersion} field. */ + public XrRenderModelPropertiesFB modelVersion(@NativeType("uint32_t") int value) { nmodelVersion(address(), value); return this; } + /** Sets the specified value to the {@link #flags} field. */ + public XrRenderModelPropertiesFB flags(@NativeType("XrRenderModelFlagsFB") long value) { nflags(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrRenderModelPropertiesFB set( - int type, - long next, - int vendorId, - ByteBuffer modelName, - long modelKey, - int modelVersion, + int type, + long next, + int vendorId, + ByteBuffer modelName, + long modelKey, + int modelVersion, long flags - ) { - type(type); - next(next); - vendorId(vendorId); - modelName(modelName); - modelKey(modelKey); - modelVersion(modelVersion); - flags(flags); + ) { + type(type); + next(next); + vendorId(vendorId); + modelName(modelName); + modelKey(modelKey); + modelVersion(modelVersion); + flags(flags); return this; } @@ -305,46 +305,46 @@ public static XrRenderModelPropertiesFB.Buffer calloc(int capacity, MemoryStack } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelPropertiesFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrRenderModelPropertiesFB.NEXT); } - /** Unsafe version of {@link #vendorId}. */ - public static int nvendorId(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelPropertiesFB.VENDORID); } - /** Unsafe version of {@link #modelName}. */ - public static ByteBuffer nmodelName(long struct) { return memByteBuffer(struct + XrRenderModelPropertiesFB.MODELNAME, XR_MAX_RENDER_MODEL_NAME_SIZE_FB); } - /** Unsafe version of {@link #modelNameString}. */ - public static String nmodelNameString(long struct) { return memUTF8(struct + XrRenderModelPropertiesFB.MODELNAME); } - /** Unsafe version of {@link #modelKey}. */ - public static long nmodelKey(long struct) { return UNSAFE.getLong(null, struct + XrRenderModelPropertiesFB.MODELKEY); } - /** Unsafe version of {@link #modelVersion}. */ - public static int nmodelVersion(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelPropertiesFB.MODELVERSION); } - /** Unsafe version of {@link #flags}. */ - public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrRenderModelPropertiesFB.FLAGS); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelPropertiesFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrRenderModelPropertiesFB.NEXT, value); } - /** Unsafe version of {@link #vendorId(int) vendorId}. */ - public static void nvendorId(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelPropertiesFB.VENDORID, value); } - /** Unsafe version of {@link #modelName(ByteBuffer) modelName}. */ - public static void nmodelName(long struct, ByteBuffer value) { - if (CHECKS) { - checkNT1(value); - checkGT(value, XR_MAX_RENDER_MODEL_NAME_SIZE_FB); - } - memCopy(memAddress(value), struct + XrRenderModelPropertiesFB.MODELNAME, value.remaining()); - } - /** Unsafe version of {@link #modelKey(long) modelKey}. */ - public static void nmodelKey(long struct, long value) { UNSAFE.putLong(null, struct + XrRenderModelPropertiesFB.MODELKEY, value); } - /** Unsafe version of {@link #modelVersion(int) modelVersion}. */ - public static void nmodelVersion(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelPropertiesFB.MODELVERSION, value); } - /** Unsafe version of {@link #flags(long) flags}. */ - public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrRenderModelPropertiesFB.FLAGS, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelPropertiesFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrRenderModelPropertiesFB.NEXT); } + /** Unsafe version of {@link #vendorId}. */ + public static int nvendorId(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelPropertiesFB.VENDORID); } + /** Unsafe version of {@link #modelName}. */ + public static ByteBuffer nmodelName(long struct) { return memByteBuffer(struct + XrRenderModelPropertiesFB.MODELNAME, XR_MAX_RENDER_MODEL_NAME_SIZE_FB); } + /** Unsafe version of {@link #modelNameString}. */ + public static String nmodelNameString(long struct) { return memUTF8(struct + XrRenderModelPropertiesFB.MODELNAME); } + /** Unsafe version of {@link #modelKey}. */ + public static long nmodelKey(long struct) { return UNSAFE.getLong(null, struct + XrRenderModelPropertiesFB.MODELKEY); } + /** Unsafe version of {@link #modelVersion}. */ + public static int nmodelVersion(long struct) { return UNSAFE.getInt(null, struct + XrRenderModelPropertiesFB.MODELVERSION); } + /** Unsafe version of {@link #flags}. */ + public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrRenderModelPropertiesFB.FLAGS); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelPropertiesFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrRenderModelPropertiesFB.NEXT, value); } + /** Unsafe version of {@link #vendorId(int) vendorId}. */ + public static void nvendorId(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelPropertiesFB.VENDORID, value); } + /** Unsafe version of {@link #modelName(ByteBuffer) modelName}. */ + public static void nmodelName(long struct, ByteBuffer value) { + if (CHECKS) { + checkNT1(value); + checkGT(value, XR_MAX_RENDER_MODEL_NAME_SIZE_FB); + } + memCopy(memAddress(value), struct + XrRenderModelPropertiesFB.MODELNAME, value.remaining()); + } + /** Unsafe version of {@link #modelKey(long) modelKey}. */ + public static void nmodelKey(long struct, long value) { UNSAFE.putLong(null, struct + XrRenderModelPropertiesFB.MODELKEY, value); } + /** Unsafe version of {@link #modelVersion(int) modelVersion}. */ + public static void nmodelVersion(long struct, int value) { UNSAFE.putInt(null, struct + XrRenderModelPropertiesFB.MODELVERSION, value); } + /** Unsafe version of {@link #flags(long) flags}. */ + public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrRenderModelPropertiesFB.FLAGS, value); } + + // ----------------------------------- /** An array of {@link XrRenderModelPropertiesFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -381,48 +381,48 @@ protected Buffer self() { protected XrRenderModelPropertiesFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrRenderModelPropertiesFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrRenderModelPropertiesFB.ntype(address()); } - /** @return the value of the {@link XrRenderModelPropertiesFB#next} field. */ - @NativeType("void *") - public long next() { return XrRenderModelPropertiesFB.nnext(address()); } - /** @return the value of the {@link XrRenderModelPropertiesFB#vendorId} field. */ - @NativeType("uint32_t") - public int vendorId() { return XrRenderModelPropertiesFB.nvendorId(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrRenderModelPropertiesFB#modelName} field. */ - @NativeType("char[XR_MAX_RENDER_MODEL_NAME_SIZE_FB]") - public ByteBuffer modelName() { return XrRenderModelPropertiesFB.nmodelName(address()); } - /** @return the null-terminated string stored in the {@link XrRenderModelPropertiesFB#modelName} field. */ - @NativeType("char[XR_MAX_RENDER_MODEL_NAME_SIZE_FB]") - public String modelNameString() { return XrRenderModelPropertiesFB.nmodelNameString(address()); } - /** @return the value of the {@link XrRenderModelPropertiesFB#modelKey} field. */ - @NativeType("XrRenderModelKeyFB") - public long modelKey() { return XrRenderModelPropertiesFB.nmodelKey(address()); } - /** @return the value of the {@link XrRenderModelPropertiesFB#modelVersion} field. */ - @NativeType("uint32_t") - public int modelVersion() { return XrRenderModelPropertiesFB.nmodelVersion(address()); } - /** @return the value of the {@link XrRenderModelPropertiesFB#flags} field. */ - @NativeType("XrRenderModelFlagsFB") - public long flags() { return XrRenderModelPropertiesFB.nflags(address()); } - - /** Sets the specified value to the {@link XrRenderModelPropertiesFB#type} field. */ - public XrRenderModelPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrRenderModelPropertiesFB.ntype(address(), value); return this; } - /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_PROPERTIES_FB TYPE_RENDER_MODEL_PROPERTIES_FB} value to the {@link XrRenderModelPropertiesFB#type} field. */ - public XrRenderModelPropertiesFB.Buffer type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_PROPERTIES_FB); } - /** Sets the specified value to the {@link XrRenderModelPropertiesFB#next} field. */ - public XrRenderModelPropertiesFB.Buffer next(@NativeType("void *") long value) { XrRenderModelPropertiesFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrRenderModelPropertiesFB#vendorId} field. */ - public XrRenderModelPropertiesFB.Buffer vendorId(@NativeType("uint32_t") int value) { XrRenderModelPropertiesFB.nvendorId(address(), value); return this; } - /** Copies the specified encoded string to the {@link XrRenderModelPropertiesFB#modelName} field. */ - public XrRenderModelPropertiesFB.Buffer modelName(@NativeType("char[XR_MAX_RENDER_MODEL_NAME_SIZE_FB]") ByteBuffer value) { XrRenderModelPropertiesFB.nmodelName(address(), value); return this; } - /** Sets the specified value to the {@link XrRenderModelPropertiesFB#modelKey} field. */ - public XrRenderModelPropertiesFB.Buffer modelKey(@NativeType("XrRenderModelKeyFB") long value) { XrRenderModelPropertiesFB.nmodelKey(address(), value); return this; } - /** Sets the specified value to the {@link XrRenderModelPropertiesFB#modelVersion} field. */ - public XrRenderModelPropertiesFB.Buffer modelVersion(@NativeType("uint32_t") int value) { XrRenderModelPropertiesFB.nmodelVersion(address(), value); return this; } - /** Sets the specified value to the {@link XrRenderModelPropertiesFB#flags} field. */ - public XrRenderModelPropertiesFB.Buffer flags(@NativeType("XrRenderModelFlagsFB") long value) { XrRenderModelPropertiesFB.nflags(address(), value); return this; } + + /** @return the value of the {@link XrRenderModelPropertiesFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrRenderModelPropertiesFB.ntype(address()); } + /** @return the value of the {@link XrRenderModelPropertiesFB#next} field. */ + @NativeType("void *") + public long next() { return XrRenderModelPropertiesFB.nnext(address()); } + /** @return the value of the {@link XrRenderModelPropertiesFB#vendorId} field. */ + @NativeType("uint32_t") + public int vendorId() { return XrRenderModelPropertiesFB.nvendorId(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrRenderModelPropertiesFB#modelName} field. */ + @NativeType("char[XR_MAX_RENDER_MODEL_NAME_SIZE_FB]") + public ByteBuffer modelName() { return XrRenderModelPropertiesFB.nmodelName(address()); } + /** @return the null-terminated string stored in the {@link XrRenderModelPropertiesFB#modelName} field. */ + @NativeType("char[XR_MAX_RENDER_MODEL_NAME_SIZE_FB]") + public String modelNameString() { return XrRenderModelPropertiesFB.nmodelNameString(address()); } + /** @return the value of the {@link XrRenderModelPropertiesFB#modelKey} field. */ + @NativeType("XrRenderModelKeyFB") + public long modelKey() { return XrRenderModelPropertiesFB.nmodelKey(address()); } + /** @return the value of the {@link XrRenderModelPropertiesFB#modelVersion} field. */ + @NativeType("uint32_t") + public int modelVersion() { return XrRenderModelPropertiesFB.nmodelVersion(address()); } + /** @return the value of the {@link XrRenderModelPropertiesFB#flags} field. */ + @NativeType("XrRenderModelFlagsFB") + public long flags() { return XrRenderModelPropertiesFB.nflags(address()); } + + /** Sets the specified value to the {@link XrRenderModelPropertiesFB#type} field. */ + public XrRenderModelPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrRenderModelPropertiesFB.ntype(address(), value); return this; } + /** Sets the {@link FBRenderModel#XR_TYPE_RENDER_MODEL_PROPERTIES_FB TYPE_RENDER_MODEL_PROPERTIES_FB} value to the {@link XrRenderModelPropertiesFB#type} field. */ + public XrRenderModelPropertiesFB.Buffer type$Default() { return type(FBRenderModel.XR_TYPE_RENDER_MODEL_PROPERTIES_FB); } + /** Sets the specified value to the {@link XrRenderModelPropertiesFB#next} field. */ + public XrRenderModelPropertiesFB.Buffer next(@NativeType("void *") long value) { XrRenderModelPropertiesFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrRenderModelPropertiesFB#vendorId} field. */ + public XrRenderModelPropertiesFB.Buffer vendorId(@NativeType("uint32_t") int value) { XrRenderModelPropertiesFB.nvendorId(address(), value); return this; } + /** Copies the specified encoded string to the {@link XrRenderModelPropertiesFB#modelName} field. */ + public XrRenderModelPropertiesFB.Buffer modelName(@NativeType("char[XR_MAX_RENDER_MODEL_NAME_SIZE_FB]") ByteBuffer value) { XrRenderModelPropertiesFB.nmodelName(address(), value); return this; } + /** Sets the specified value to the {@link XrRenderModelPropertiesFB#modelKey} field. */ + public XrRenderModelPropertiesFB.Buffer modelKey(@NativeType("XrRenderModelKeyFB") long value) { XrRenderModelPropertiesFB.nmodelKey(address(), value); return this; } + /** Sets the specified value to the {@link XrRenderModelPropertiesFB#modelVersion} field. */ + public XrRenderModelPropertiesFB.Buffer modelVersion(@NativeType("uint32_t") int value) { XrRenderModelPropertiesFB.nmodelVersion(address(), value); return this; } + /** Sets the specified value to the {@link XrRenderModelPropertiesFB#flags} field. */ + public XrRenderModelPropertiesFB.Buffer flags(@NativeType("XrRenderModelFlagsFB") long value) { XrRenderModelPropertiesFB.nflags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRoomLayoutFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRoomLayoutFB.java index 4ce7ee67e8..41ae66c8da 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRoomLayoutFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrRoomLayoutFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Provides additional context of a spatial entity representing a room. * @@ -27,7 +27,7 @@ *
                                                            *
                                                          • The {@link FBScene XR_FB_scene} extension must be enabled prior to using {@link XrRoomLayoutFB}
                                                          • *
                                                          • {@code type} must be {@link FBScene#XR_TYPE_ROOM_LAYOUT_FB TYPE_ROOM_LAYOUT_FB}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • + *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • *
                                                          • If {@code wallUuidCapacityInput} is not 0, {@code wallUuids} must be a pointer to an array of {@code wallUuidCapacityInput} {@link XrUuidEXT} structures
                                                          • *
                                                          * @@ -47,8 +47,8 @@ * uint32_t {@link #wallUuidCountOutput}; * {@link XrUuidEXT XrUuidEXT} * {@link #wallUuids}; * } - */ -public class XrRoomLayoutFB extends Struct implements NativeResource { + */ +public class XrRoomLayoutFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -58,36 +58,36 @@ public class XrRoomLayoutFB extends Struct implements NativeReso /** The struct member offsets. */ public static final int - TYPE, - NEXT, - FLOORUUID, - CEILINGUUID, - WALLUUIDCAPACITYINPUT, - WALLUUIDCOUNTOUTPUT, - WALLUUIDS; + TYPE, + NEXT, + FLOORUUID, + CEILINGUUID, + WALLUUIDCAPACITYINPUT, + WALLUUIDCOUNTOUTPUT, + WALLUUIDS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(XrUuidEXT.SIZEOF, XrUuidEXT.ALIGNOF), - __member(XrUuidEXT.SIZEOF, XrUuidEXT.ALIGNOF), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(XrUuidEXT.SIZEOF, XrUuidEXT.ALIGNOF), + __member(XrUuidEXT.SIZEOF, XrUuidEXT.ALIGNOF), + __member(4), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - FLOORUUID = layout.offsetof(2); - CEILINGUUID = layout.offsetof(3); - WALLUUIDCAPACITYINPUT = layout.offsetof(4); - WALLUUIDCOUNTOUTPUT = layout.offsetof(5); - WALLUUIDS = layout.offsetof(6); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + FLOORUUID = layout.offsetof(2); + CEILINGUUID = layout.offsetof(3); + WALLUUIDCAPACITYINPUT = layout.offsetof(4); + WALLUUIDCOUNTOUTPUT = layout.offsetof(5); + WALLUUIDS = layout.offsetof(6); + } protected XrRoomLayoutFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -110,66 +110,66 @@ public XrRoomLayoutFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** the UUID of the spatial entity representing the room floor */ - public XrUuidEXT floorUuid() { return nfloorUuid(address()); } - /** the UUID of the spatial entity representing the room ceiling */ - public XrUuidEXT ceilingUuid() { return nceilingUuid(address()); } - /** the capacity of the {@code wallUuids} array, in number of UUIDs, or 0 to indicate a request to retrieve the required capacity. */ - @NativeType("uint32_t") - public int wallUuidCapacityInput() { return nwallUuidCapacityInput(address()); } - /** the count of {@link XrUuidEXT} handles written, or the required capacity in the case that {@code wallUuidCapacityInput} is insufficient. */ - @NativeType("uint32_t") - public int wallUuidCountOutput() { return nwallUuidCountOutput(address()); } - /** a pointer to an array of {@link XrUuidEXT} handles, but can be {@code NULL} if {@code wallUuidCapacityInput} is 0. */ - @Nullable - @NativeType("XrUuidEXT *") - public XrUuidEXT.Buffer wallUuids() { return nwallUuids(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrRoomLayoutFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBScene#XR_TYPE_ROOM_LAYOUT_FB TYPE_ROOM_LAYOUT_FB} value to the {@link #type} field. */ - public XrRoomLayoutFB type$Default() { return type(FBScene.XR_TYPE_ROOM_LAYOUT_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrRoomLayoutFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Copies the specified {@link XrUuidEXT} to the {@link #floorUuid} field. */ - public XrRoomLayoutFB floorUuid(XrUuidEXT value) { nfloorUuid(address(), value); return this; } - /** Passes the {@link #floorUuid} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRoomLayoutFB floorUuid(java.util.function.Consumer consumer) { consumer.accept(floorUuid()); return this; } - /** Copies the specified {@link XrUuidEXT} to the {@link #ceilingUuid} field. */ - public XrRoomLayoutFB ceilingUuid(XrUuidEXT value) { nceilingUuid(address(), value); return this; } - /** Passes the {@link #ceilingUuid} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRoomLayoutFB ceilingUuid(java.util.function.Consumer consumer) { consumer.accept(ceilingUuid()); return this; } - /** Sets the specified value to the {@link #wallUuidCapacityInput} field. */ - public XrRoomLayoutFB wallUuidCapacityInput(@NativeType("uint32_t") int value) { nwallUuidCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #wallUuidCountOutput} field. */ - public XrRoomLayoutFB wallUuidCountOutput(@NativeType("uint32_t") int value) { nwallUuidCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrUuidEXT.Buffer} to the {@link #wallUuids} field. */ - public XrRoomLayoutFB wallUuids(@Nullable @NativeType("XrUuidEXT *") XrUuidEXT.Buffer value) { nwallUuids(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the UUID of the spatial entity representing the room floor */ + public XrUuidEXT floorUuid() { return nfloorUuid(address()); } + /** the UUID of the spatial entity representing the room ceiling */ + public XrUuidEXT ceilingUuid() { return nceilingUuid(address()); } + /** the capacity of the {@code wallUuids} array, in bytes, or 0 to indicate a request to retrieve the required capacity. */ + @NativeType("uint32_t") + public int wallUuidCapacityInput() { return nwallUuidCapacityInput(address()); } + /** a pointer to the count of {@link XrUuidEXT} handles written, or a pointer to the required capacity in the case that {@code wallUuidCapacityInput} is insufficient. */ + @NativeType("uint32_t") + public int wallUuidCountOutput() { return nwallUuidCountOutput(address()); } + /** a pointer to an array of {@link XrUuidEXT} handles, but can be {@code NULL} if {@code wallUuidCapacityInput} is 0. */ + @Nullable + @NativeType("XrUuidEXT *") + public XrUuidEXT.Buffer wallUuids() { return nwallUuids(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrRoomLayoutFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBScene#XR_TYPE_ROOM_LAYOUT_FB TYPE_ROOM_LAYOUT_FB} value to the {@link #type} field. */ + public XrRoomLayoutFB type$Default() { return type(FBScene.XR_TYPE_ROOM_LAYOUT_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrRoomLayoutFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link XrUuidEXT} to the {@link #floorUuid} field. */ + public XrRoomLayoutFB floorUuid(XrUuidEXT value) { nfloorUuid(address(), value); return this; } + /** Passes the {@link #floorUuid} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRoomLayoutFB floorUuid(java.util.function.Consumer consumer) { consumer.accept(floorUuid()); return this; } + /** Copies the specified {@link XrUuidEXT} to the {@link #ceilingUuid} field. */ + public XrRoomLayoutFB ceilingUuid(XrUuidEXT value) { nceilingUuid(address(), value); return this; } + /** Passes the {@link #ceilingUuid} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRoomLayoutFB ceilingUuid(java.util.function.Consumer consumer) { consumer.accept(ceilingUuid()); return this; } + /** Sets the specified value to the {@link #wallUuidCapacityInput} field. */ + public XrRoomLayoutFB wallUuidCapacityInput(@NativeType("uint32_t") int value) { nwallUuidCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #wallUuidCountOutput} field. */ + public XrRoomLayoutFB wallUuidCountOutput(@NativeType("uint32_t") int value) { nwallUuidCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrUuidEXT.Buffer} to the {@link #wallUuids} field. */ + public XrRoomLayoutFB wallUuids(@Nullable @NativeType("XrUuidEXT *") XrUuidEXT.Buffer value) { nwallUuids(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrRoomLayoutFB set( - int type, - long next, - XrUuidEXT floorUuid, - XrUuidEXT ceilingUuid, - int wallUuidCapacityInput, - int wallUuidCountOutput, + int type, + long next, + XrUuidEXT floorUuid, + XrUuidEXT ceilingUuid, + int wallUuidCapacityInput, + int wallUuidCountOutput, @Nullable XrUuidEXT.Buffer wallUuids - ) { - type(type); - next(next); - floorUuid(floorUuid); - ceilingUuid(ceilingUuid); - wallUuidCapacityInput(wallUuidCapacityInput); - wallUuidCountOutput(wallUuidCountOutput); - wallUuids(wallUuids); + ) { + type(type); + next(next); + floorUuid(floorUuid); + ceilingUuid(ceilingUuid); + wallUuidCapacityInput(wallUuidCapacityInput); + wallUuidCountOutput(wallUuidCountOutput); + wallUuids(wallUuids); return this; } @@ -298,38 +298,38 @@ public static XrRoomLayoutFB.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrRoomLayoutFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrRoomLayoutFB.NEXT); } - /** Unsafe version of {@link #floorUuid}. */ - public static XrUuidEXT nfloorUuid(long struct) { return XrUuidEXT.create(struct + XrRoomLayoutFB.FLOORUUID); } - /** Unsafe version of {@link #ceilingUuid}. */ - public static XrUuidEXT nceilingUuid(long struct) { return XrUuidEXT.create(struct + XrRoomLayoutFB.CEILINGUUID); } - /** Unsafe version of {@link #wallUuidCapacityInput}. */ - public static int nwallUuidCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrRoomLayoutFB.WALLUUIDCAPACITYINPUT); } - /** Unsafe version of {@link #wallUuidCountOutput}. */ - public static int nwallUuidCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrRoomLayoutFB.WALLUUIDCOUNTOUTPUT); } - /** Unsafe version of {@link #wallUuids}. */ - @Nullable public static XrUuidEXT.Buffer nwallUuids(long struct) { return XrUuidEXT.createSafe(memGetAddress(struct + XrRoomLayoutFB.WALLUUIDS), nwallUuidCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrRoomLayoutFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrRoomLayoutFB.NEXT, value); } - /** Unsafe version of {@link #floorUuid(XrUuidEXT) floorUuid}. */ - public static void nfloorUuid(long struct, XrUuidEXT value) { memCopy(value.address(), struct + XrRoomLayoutFB.FLOORUUID, XrUuidEXT.SIZEOF); } - /** Unsafe version of {@link #ceilingUuid(XrUuidEXT) ceilingUuid}. */ - public static void nceilingUuid(long struct, XrUuidEXT value) { memCopy(value.address(), struct + XrRoomLayoutFB.CEILINGUUID, XrUuidEXT.SIZEOF); } - /** Sets the specified value to the {@code wallUuidCapacityInput} field of the specified {@code struct}. */ - public static void nwallUuidCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrRoomLayoutFB.WALLUUIDCAPACITYINPUT, value); } - /** Unsafe version of {@link #wallUuidCountOutput(int) wallUuidCountOutput}. */ - public static void nwallUuidCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrRoomLayoutFB.WALLUUIDCOUNTOUTPUT, value); } - /** Unsafe version of {@link #wallUuids(XrUuidEXT.Buffer) wallUuids}. */ - public static void nwallUuids(long struct, @Nullable XrUuidEXT.Buffer value) { memPutAddress(struct + XrRoomLayoutFB.WALLUUIDS, memAddressSafe(value)); if (value != null) { nwallUuidCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrRoomLayoutFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrRoomLayoutFB.NEXT); } + /** Unsafe version of {@link #floorUuid}. */ + public static XrUuidEXT nfloorUuid(long struct) { return XrUuidEXT.create(struct + XrRoomLayoutFB.FLOORUUID); } + /** Unsafe version of {@link #ceilingUuid}. */ + public static XrUuidEXT nceilingUuid(long struct) { return XrUuidEXT.create(struct + XrRoomLayoutFB.CEILINGUUID); } + /** Unsafe version of {@link #wallUuidCapacityInput}. */ + public static int nwallUuidCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrRoomLayoutFB.WALLUUIDCAPACITYINPUT); } + /** Unsafe version of {@link #wallUuidCountOutput}. */ + public static int nwallUuidCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrRoomLayoutFB.WALLUUIDCOUNTOUTPUT); } + /** Unsafe version of {@link #wallUuids}. */ + @Nullable public static XrUuidEXT.Buffer nwallUuids(long struct) { return XrUuidEXT.createSafe(memGetAddress(struct + XrRoomLayoutFB.WALLUUIDS), nwallUuidCapacityInput(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrRoomLayoutFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrRoomLayoutFB.NEXT, value); } + /** Unsafe version of {@link #floorUuid(XrUuidEXT) floorUuid}. */ + public static void nfloorUuid(long struct, XrUuidEXT value) { memCopy(value.address(), struct + XrRoomLayoutFB.FLOORUUID, XrUuidEXT.SIZEOF); } + /** Unsafe version of {@link #ceilingUuid(XrUuidEXT) ceilingUuid}. */ + public static void nceilingUuid(long struct, XrUuidEXT value) { memCopy(value.address(), struct + XrRoomLayoutFB.CEILINGUUID, XrUuidEXT.SIZEOF); } + /** Sets the specified value to the {@code wallUuidCapacityInput} field of the specified {@code struct}. */ + public static void nwallUuidCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrRoomLayoutFB.WALLUUIDCAPACITYINPUT, value); } + /** Unsafe version of {@link #wallUuidCountOutput(int) wallUuidCountOutput}. */ + public static void nwallUuidCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrRoomLayoutFB.WALLUUIDCOUNTOUTPUT, value); } + /** Unsafe version of {@link #wallUuids(XrUuidEXT.Buffer) wallUuids}. */ + public static void nwallUuids(long struct, @Nullable XrUuidEXT.Buffer value) { memPutAddress(struct + XrRoomLayoutFB.WALLUUIDS, memAddressSafe(value)); if (value != null) { nwallUuidCapacityInput(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrRoomLayoutFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -366,48 +366,48 @@ protected Buffer self() { protected XrRoomLayoutFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrRoomLayoutFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrRoomLayoutFB.ntype(address()); } - /** @return the value of the {@link XrRoomLayoutFB#next} field. */ - @NativeType("void const *") - public long next() { return XrRoomLayoutFB.nnext(address()); } - /** @return a {@link XrUuidEXT} view of the {@link XrRoomLayoutFB#floorUuid} field. */ - public XrUuidEXT floorUuid() { return XrRoomLayoutFB.nfloorUuid(address()); } - /** @return a {@link XrUuidEXT} view of the {@link XrRoomLayoutFB#ceilingUuid} field. */ - public XrUuidEXT ceilingUuid() { return XrRoomLayoutFB.nceilingUuid(address()); } - /** @return the value of the {@link XrRoomLayoutFB#wallUuidCapacityInput} field. */ - @NativeType("uint32_t") - public int wallUuidCapacityInput() { return XrRoomLayoutFB.nwallUuidCapacityInput(address()); } - /** @return the value of the {@link XrRoomLayoutFB#wallUuidCountOutput} field. */ - @NativeType("uint32_t") - public int wallUuidCountOutput() { return XrRoomLayoutFB.nwallUuidCountOutput(address()); } - /** @return a {@link XrUuidEXT.Buffer} view of the struct array pointed to by the {@link XrRoomLayoutFB#wallUuids} field. */ - @Nullable - @NativeType("XrUuidEXT *") - public XrUuidEXT.Buffer wallUuids() { return XrRoomLayoutFB.nwallUuids(address()); } - - /** Sets the specified value to the {@link XrRoomLayoutFB#type} field. */ - public XrRoomLayoutFB.Buffer type(@NativeType("XrStructureType") int value) { XrRoomLayoutFB.ntype(address(), value); return this; } - /** Sets the {@link FBScene#XR_TYPE_ROOM_LAYOUT_FB TYPE_ROOM_LAYOUT_FB} value to the {@link XrRoomLayoutFB#type} field. */ - public XrRoomLayoutFB.Buffer type$Default() { return type(FBScene.XR_TYPE_ROOM_LAYOUT_FB); } - /** Sets the specified value to the {@link XrRoomLayoutFB#next} field. */ - public XrRoomLayoutFB.Buffer next(@NativeType("void const *") long value) { XrRoomLayoutFB.nnext(address(), value); return this; } - /** Copies the specified {@link XrUuidEXT} to the {@link XrRoomLayoutFB#floorUuid} field. */ - public XrRoomLayoutFB.Buffer floorUuid(XrUuidEXT value) { XrRoomLayoutFB.nfloorUuid(address(), value); return this; } - /** Passes the {@link XrRoomLayoutFB#floorUuid} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRoomLayoutFB.Buffer floorUuid(java.util.function.Consumer consumer) { consumer.accept(floorUuid()); return this; } - /** Copies the specified {@link XrUuidEXT} to the {@link XrRoomLayoutFB#ceilingUuid} field. */ - public XrRoomLayoutFB.Buffer ceilingUuid(XrUuidEXT value) { XrRoomLayoutFB.nceilingUuid(address(), value); return this; } - /** Passes the {@link XrRoomLayoutFB#ceilingUuid} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrRoomLayoutFB.Buffer ceilingUuid(java.util.function.Consumer consumer) { consumer.accept(ceilingUuid()); return this; } - /** Sets the specified value to the {@link XrRoomLayoutFB#wallUuidCapacityInput} field. */ - public XrRoomLayoutFB.Buffer wallUuidCapacityInput(@NativeType("uint32_t") int value) { XrRoomLayoutFB.nwallUuidCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrRoomLayoutFB#wallUuidCountOutput} field. */ - public XrRoomLayoutFB.Buffer wallUuidCountOutput(@NativeType("uint32_t") int value) { XrRoomLayoutFB.nwallUuidCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrUuidEXT.Buffer} to the {@link XrRoomLayoutFB#wallUuids} field. */ - public XrRoomLayoutFB.Buffer wallUuids(@Nullable @NativeType("XrUuidEXT *") XrUuidEXT.Buffer value) { XrRoomLayoutFB.nwallUuids(address(), value); return this; } + + /** @return the value of the {@link XrRoomLayoutFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrRoomLayoutFB.ntype(address()); } + /** @return the value of the {@link XrRoomLayoutFB#next} field. */ + @NativeType("void const *") + public long next() { return XrRoomLayoutFB.nnext(address()); } + /** @return a {@link XrUuidEXT} view of the {@link XrRoomLayoutFB#floorUuid} field. */ + public XrUuidEXT floorUuid() { return XrRoomLayoutFB.nfloorUuid(address()); } + /** @return a {@link XrUuidEXT} view of the {@link XrRoomLayoutFB#ceilingUuid} field. */ + public XrUuidEXT ceilingUuid() { return XrRoomLayoutFB.nceilingUuid(address()); } + /** @return the value of the {@link XrRoomLayoutFB#wallUuidCapacityInput} field. */ + @NativeType("uint32_t") + public int wallUuidCapacityInput() { return XrRoomLayoutFB.nwallUuidCapacityInput(address()); } + /** @return the value of the {@link XrRoomLayoutFB#wallUuidCountOutput} field. */ + @NativeType("uint32_t") + public int wallUuidCountOutput() { return XrRoomLayoutFB.nwallUuidCountOutput(address()); } + /** @return a {@link XrUuidEXT.Buffer} view of the struct array pointed to by the {@link XrRoomLayoutFB#wallUuids} field. */ + @Nullable + @NativeType("XrUuidEXT *") + public XrUuidEXT.Buffer wallUuids() { return XrRoomLayoutFB.nwallUuids(address()); } + + /** Sets the specified value to the {@link XrRoomLayoutFB#type} field. */ + public XrRoomLayoutFB.Buffer type(@NativeType("XrStructureType") int value) { XrRoomLayoutFB.ntype(address(), value); return this; } + /** Sets the {@link FBScene#XR_TYPE_ROOM_LAYOUT_FB TYPE_ROOM_LAYOUT_FB} value to the {@link XrRoomLayoutFB#type} field. */ + public XrRoomLayoutFB.Buffer type$Default() { return type(FBScene.XR_TYPE_ROOM_LAYOUT_FB); } + /** Sets the specified value to the {@link XrRoomLayoutFB#next} field. */ + public XrRoomLayoutFB.Buffer next(@NativeType("void const *") long value) { XrRoomLayoutFB.nnext(address(), value); return this; } + /** Copies the specified {@link XrUuidEXT} to the {@link XrRoomLayoutFB#floorUuid} field. */ + public XrRoomLayoutFB.Buffer floorUuid(XrUuidEXT value) { XrRoomLayoutFB.nfloorUuid(address(), value); return this; } + /** Passes the {@link XrRoomLayoutFB#floorUuid} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRoomLayoutFB.Buffer floorUuid(java.util.function.Consumer consumer) { consumer.accept(floorUuid()); return this; } + /** Copies the specified {@link XrUuidEXT} to the {@link XrRoomLayoutFB#ceilingUuid} field. */ + public XrRoomLayoutFB.Buffer ceilingUuid(XrUuidEXT value) { XrRoomLayoutFB.nceilingUuid(address(), value); return this; } + /** Passes the {@link XrRoomLayoutFB#ceilingUuid} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrRoomLayoutFB.Buffer ceilingUuid(java.util.function.Consumer consumer) { consumer.accept(ceilingUuid()); return this; } + /** Sets the specified value to the {@link XrRoomLayoutFB#wallUuidCapacityInput} field. */ + public XrRoomLayoutFB.Buffer wallUuidCapacityInput(@NativeType("uint32_t") int value) { XrRoomLayoutFB.nwallUuidCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrRoomLayoutFB#wallUuidCountOutput} field. */ + public XrRoomLayoutFB.Buffer wallUuidCountOutput(@NativeType("uint32_t") int value) { XrRoomLayoutFB.nwallUuidCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrUuidEXT.Buffer} to the {@link XrRoomLayoutFB#wallUuids} field. */ + public XrRoomLayoutFB.Buffer wallUuids(@Nullable @NativeType("XrUuidEXT *") XrUuidEXT.Buffer value) { XrRoomLayoutFB.nwallUuids(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneBoundsMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneBoundsMSFT.java index 9b7b64c235..6cd3ee0e38 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneBoundsMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneBoundsMSFT.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The scene bounds. * @@ -46,8 +46,8 @@ * uint32_t {@link #frustumCount}; * {@link XrSceneFrustumBoundMSFT XrSceneFrustumBoundMSFT} const * {@link #frustums}; * } - */ -public class XrSceneBoundsMSFT extends Struct implements NativeResource { + */ +public class XrSceneBoundsMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,39 +57,39 @@ public class XrSceneBoundsMSFT extends Struct implements Nati /** The struct member offsets. */ public static final int - SPACE, - TIME, - SPHERECOUNT, - SPHERES, - BOXCOUNT, - BOXES, - FRUSTUMCOUNT, - FRUSTUMS; + SPACE, + TIME, + SPHERECOUNT, + SPHERES, + BOXCOUNT, + BOXES, + FRUSTUMCOUNT, + FRUSTUMS; static { - Layout layout = __struct( - __member(POINTER_SIZE), - __member(8), - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(POINTER_SIZE), - __member(4), + Layout layout = __struct( + __member(POINTER_SIZE), + __member(8), + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(POINTER_SIZE), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - SPACE = layout.offsetof(0); - TIME = layout.offsetof(1); - SPHERECOUNT = layout.offsetof(2); - SPHERES = layout.offsetof(3); - BOXCOUNT = layout.offsetof(4); - BOXES = layout.offsetof(5); - FRUSTUMCOUNT = layout.offsetof(6); - FRUSTUMS = layout.offsetof(7); - } + SPACE = layout.offsetof(0); + TIME = layout.offsetof(1); + SPHERECOUNT = layout.offsetof(2); + SPHERES = layout.offsetof(3); + BOXCOUNT = layout.offsetof(4); + BOXES = layout.offsetof(5); + FRUSTUMCOUNT = layout.offsetof(6); + FRUSTUMS = layout.offsetof(7); + } protected XrSceneBoundsMSFT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -112,71 +112,71 @@ public XrSceneBoundsMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** a handle to the {@code XrSpace} in which the bounds are specified. */ - @NativeType("XrSpace") - public long space() { return nspace(address()); } - /** the {@code XrTime} at which the bounds will be evaluated within {@code space}. */ - @NativeType("XrTime") - public long time() { return ntime(address()); } - /** the number of sphere bounds. */ - @NativeType("uint32_t") - public int sphereCount() { return nsphereCount(address()); } - /** an array of {@link XrSceneSphereBoundMSFT}. */ - @Nullable - @NativeType("XrSceneSphereBoundMSFT const *") - public XrSceneSphereBoundMSFT.Buffer spheres() { return nspheres(address()); } - /** the number of oriented box bounds. */ - @NativeType("uint32_t") - public int boxCount() { return nboxCount(address()); } - /** an array of {@link XrSceneOrientedBoxBoundMSFT}. */ - @Nullable - @NativeType("XrSceneOrientedBoxBoundMSFT const *") - public XrSceneOrientedBoxBoundMSFT.Buffer boxes() { return nboxes(address()); } - /** the number of frustum bounds. */ - @NativeType("uint32_t") - public int frustumCount() { return nfrustumCount(address()); } - /** an array of {@link XrSceneFrustumBoundMSFT}. */ - @Nullable - @NativeType("XrSceneFrustumBoundMSFT const *") - public XrSceneFrustumBoundMSFT.Buffer frustums() { return nfrustums(address()); } - - /** Sets the specified value to the {@link #space} field. */ - public XrSceneBoundsMSFT space(XrSpace value) { nspace(address(), value); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrSceneBoundsMSFT time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } - /** Sets the specified value to the {@link #sphereCount} field. */ - public XrSceneBoundsMSFT sphereCount(@NativeType("uint32_t") int value) { nsphereCount(address(), value); return this; } - /** Sets the address of the specified {@link XrSceneSphereBoundMSFT.Buffer} to the {@link #spheres} field. */ - public XrSceneBoundsMSFT spheres(@Nullable @NativeType("XrSceneSphereBoundMSFT const *") XrSceneSphereBoundMSFT.Buffer value) { nspheres(address(), value); return this; } - /** Sets the specified value to the {@link #boxCount} field. */ - public XrSceneBoundsMSFT boxCount(@NativeType("uint32_t") int value) { nboxCount(address(), value); return this; } - /** Sets the address of the specified {@link XrSceneOrientedBoxBoundMSFT.Buffer} to the {@link #boxes} field. */ - public XrSceneBoundsMSFT boxes(@Nullable @NativeType("XrSceneOrientedBoxBoundMSFT const *") XrSceneOrientedBoxBoundMSFT.Buffer value) { nboxes(address(), value); return this; } - /** Sets the specified value to the {@link #frustumCount} field. */ - public XrSceneBoundsMSFT frustumCount(@NativeType("uint32_t") int value) { nfrustumCount(address(), value); return this; } - /** Sets the address of the specified {@link XrSceneFrustumBoundMSFT.Buffer} to the {@link #frustums} field. */ - public XrSceneBoundsMSFT frustums(@Nullable @NativeType("XrSceneFrustumBoundMSFT const *") XrSceneFrustumBoundMSFT.Buffer value) { nfrustums(address(), value); return this; } + + /** a handle to the {@code XrSpace} in which the bounds are specified. */ + @NativeType("XrSpace") + public long space() { return nspace(address()); } + /** the {@code XrTime} at which the bounds will be evaluated within {@code space}. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + /** the number of sphere bounds. */ + @NativeType("uint32_t") + public int sphereCount() { return nsphereCount(address()); } + /** an array of {@link XrSceneSphereBoundMSFT}. */ + @Nullable + @NativeType("XrSceneSphereBoundMSFT const *") + public XrSceneSphereBoundMSFT.Buffer spheres() { return nspheres(address()); } + /** the number of oriented box bounds. */ + @NativeType("uint32_t") + public int boxCount() { return nboxCount(address()); } + /** an array of {@link XrSceneOrientedBoxBoundMSFT}. */ + @Nullable + @NativeType("XrSceneOrientedBoxBoundMSFT const *") + public XrSceneOrientedBoxBoundMSFT.Buffer boxes() { return nboxes(address()); } + /** the number of frustum bounds. */ + @NativeType("uint32_t") + public int frustumCount() { return nfrustumCount(address()); } + /** an array of {@link XrSceneFrustumBoundMSFT}. */ + @Nullable + @NativeType("XrSceneFrustumBoundMSFT const *") + public XrSceneFrustumBoundMSFT.Buffer frustums() { return nfrustums(address()); } + + /** Sets the specified value to the {@link #space} field. */ + public XrSceneBoundsMSFT space(XrSpace value) { nspace(address(), value); return this; } + /** Sets the specified value to the {@link #time} field. */ + public XrSceneBoundsMSFT time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } + /** Sets the specified value to the {@link #sphereCount} field. */ + public XrSceneBoundsMSFT sphereCount(@NativeType("uint32_t") int value) { nsphereCount(address(), value); return this; } + /** Sets the address of the specified {@link XrSceneSphereBoundMSFT.Buffer} to the {@link #spheres} field. */ + public XrSceneBoundsMSFT spheres(@Nullable @NativeType("XrSceneSphereBoundMSFT const *") XrSceneSphereBoundMSFT.Buffer value) { nspheres(address(), value); return this; } + /** Sets the specified value to the {@link #boxCount} field. */ + public XrSceneBoundsMSFT boxCount(@NativeType("uint32_t") int value) { nboxCount(address(), value); return this; } + /** Sets the address of the specified {@link XrSceneOrientedBoxBoundMSFT.Buffer} to the {@link #boxes} field. */ + public XrSceneBoundsMSFT boxes(@Nullable @NativeType("XrSceneOrientedBoxBoundMSFT const *") XrSceneOrientedBoxBoundMSFT.Buffer value) { nboxes(address(), value); return this; } + /** Sets the specified value to the {@link #frustumCount} field. */ + public XrSceneBoundsMSFT frustumCount(@NativeType("uint32_t") int value) { nfrustumCount(address(), value); return this; } + /** Sets the address of the specified {@link XrSceneFrustumBoundMSFT.Buffer} to the {@link #frustums} field. */ + public XrSceneBoundsMSFT frustums(@Nullable @NativeType("XrSceneFrustumBoundMSFT const *") XrSceneFrustumBoundMSFT.Buffer value) { nfrustums(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSceneBoundsMSFT set( - XrSpace space, - long time, - int sphereCount, - @Nullable XrSceneSphereBoundMSFT.Buffer spheres, - int boxCount, - @Nullable XrSceneOrientedBoxBoundMSFT.Buffer boxes, - int frustumCount, + XrSpace space, + long time, + int sphereCount, + @Nullable XrSceneSphereBoundMSFT.Buffer spheres, + int boxCount, + @Nullable XrSceneOrientedBoxBoundMSFT.Buffer boxes, + int frustumCount, @Nullable XrSceneFrustumBoundMSFT.Buffer frustums - ) { - space(space); - time(time); - sphereCount(sphereCount); - spheres(spheres); - boxCount(boxCount); - boxes(boxes); - frustumCount(frustumCount); - frustums(frustums); + ) { + space(space); + time(time); + sphereCount(sphereCount); + spheres(spheres); + boxCount(boxCount); + boxes(boxes); + frustumCount(frustumCount); + frustums(frustums); return this; } @@ -305,40 +305,40 @@ public static XrSceneBoundsMSFT.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrSceneBoundsMSFT.SPACE); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrSceneBoundsMSFT.TIME); } - /** Unsafe version of {@link #sphereCount}. */ - public static int nsphereCount(long struct) { return UNSAFE.getInt(null, struct + XrSceneBoundsMSFT.SPHERECOUNT); } - /** Unsafe version of {@link #spheres}. */ - @Nullable public static XrSceneSphereBoundMSFT.Buffer nspheres(long struct) { return XrSceneSphereBoundMSFT.createSafe(memGetAddress(struct + XrSceneBoundsMSFT.SPHERES), nsphereCount(struct)); } - /** Unsafe version of {@link #boxCount}. */ - public static int nboxCount(long struct) { return UNSAFE.getInt(null, struct + XrSceneBoundsMSFT.BOXCOUNT); } - /** Unsafe version of {@link #boxes}. */ - @Nullable public static XrSceneOrientedBoxBoundMSFT.Buffer nboxes(long struct) { return XrSceneOrientedBoxBoundMSFT.createSafe(memGetAddress(struct + XrSceneBoundsMSFT.BOXES), nboxCount(struct)); } - /** Unsafe version of {@link #frustumCount}. */ - public static int nfrustumCount(long struct) { return UNSAFE.getInt(null, struct + XrSceneBoundsMSFT.FRUSTUMCOUNT); } - /** Unsafe version of {@link #frustums}. */ - @Nullable public static XrSceneFrustumBoundMSFT.Buffer nfrustums(long struct) { return XrSceneFrustumBoundMSFT.createSafe(memGetAddress(struct + XrSceneBoundsMSFT.FRUSTUMS), nfrustumCount(struct)); } - - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrSceneBoundsMSFT.SPACE, value.address()); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrSceneBoundsMSFT.TIME, value); } - /** Sets the specified value to the {@code sphereCount} field of the specified {@code struct}. */ - public static void nsphereCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneBoundsMSFT.SPHERECOUNT, value); } - /** Unsafe version of {@link #spheres(XrSceneSphereBoundMSFT.Buffer) spheres}. */ - public static void nspheres(long struct, @Nullable XrSceneSphereBoundMSFT.Buffer value) { memPutAddress(struct + XrSceneBoundsMSFT.SPHERES, memAddressSafe(value)); if (value != null) { nsphereCount(struct, value.remaining()); } } - /** Sets the specified value to the {@code boxCount} field of the specified {@code struct}. */ - public static void nboxCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneBoundsMSFT.BOXCOUNT, value); } - /** Unsafe version of {@link #boxes(XrSceneOrientedBoxBoundMSFT.Buffer) boxes}. */ - public static void nboxes(long struct, @Nullable XrSceneOrientedBoxBoundMSFT.Buffer value) { memPutAddress(struct + XrSceneBoundsMSFT.BOXES, memAddressSafe(value)); if (value != null) { nboxCount(struct, value.remaining()); } } - /** Sets the specified value to the {@code frustumCount} field of the specified {@code struct}. */ - public static void nfrustumCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneBoundsMSFT.FRUSTUMCOUNT, value); } - /** Unsafe version of {@link #frustums(XrSceneFrustumBoundMSFT.Buffer) frustums}. */ - public static void nfrustums(long struct, @Nullable XrSceneFrustumBoundMSFT.Buffer value) { memPutAddress(struct + XrSceneBoundsMSFT.FRUSTUMS, memAddressSafe(value)); if (value != null) { nfrustumCount(struct, value.remaining()); } } + + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrSceneBoundsMSFT.SPACE); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrSceneBoundsMSFT.TIME); } + /** Unsafe version of {@link #sphereCount}. */ + public static int nsphereCount(long struct) { return UNSAFE.getInt(null, struct + XrSceneBoundsMSFT.SPHERECOUNT); } + /** Unsafe version of {@link #spheres}. */ + @Nullable public static XrSceneSphereBoundMSFT.Buffer nspheres(long struct) { return XrSceneSphereBoundMSFT.createSafe(memGetAddress(struct + XrSceneBoundsMSFT.SPHERES), nsphereCount(struct)); } + /** Unsafe version of {@link #boxCount}. */ + public static int nboxCount(long struct) { return UNSAFE.getInt(null, struct + XrSceneBoundsMSFT.BOXCOUNT); } + /** Unsafe version of {@link #boxes}. */ + @Nullable public static XrSceneOrientedBoxBoundMSFT.Buffer nboxes(long struct) { return XrSceneOrientedBoxBoundMSFT.createSafe(memGetAddress(struct + XrSceneBoundsMSFT.BOXES), nboxCount(struct)); } + /** Unsafe version of {@link #frustumCount}. */ + public static int nfrustumCount(long struct) { return UNSAFE.getInt(null, struct + XrSceneBoundsMSFT.FRUSTUMCOUNT); } + /** Unsafe version of {@link #frustums}. */ + @Nullable public static XrSceneFrustumBoundMSFT.Buffer nfrustums(long struct) { return XrSceneFrustumBoundMSFT.createSafe(memGetAddress(struct + XrSceneBoundsMSFT.FRUSTUMS), nfrustumCount(struct)); } + + /** Unsafe version of {@link #space(XrSpace) space}. */ + public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrSceneBoundsMSFT.SPACE, value.address()); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrSceneBoundsMSFT.TIME, value); } + /** Sets the specified value to the {@code sphereCount} field of the specified {@code struct}. */ + public static void nsphereCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneBoundsMSFT.SPHERECOUNT, value); } + /** Unsafe version of {@link #spheres(XrSceneSphereBoundMSFT.Buffer) spheres}. */ + public static void nspheres(long struct, @Nullable XrSceneSphereBoundMSFT.Buffer value) { memPutAddress(struct + XrSceneBoundsMSFT.SPHERES, memAddressSafe(value)); if (value != null) { nsphereCount(struct, value.remaining()); } } + /** Sets the specified value to the {@code boxCount} field of the specified {@code struct}. */ + public static void nboxCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneBoundsMSFT.BOXCOUNT, value); } + /** Unsafe version of {@link #boxes(XrSceneOrientedBoxBoundMSFT.Buffer) boxes}. */ + public static void nboxes(long struct, @Nullable XrSceneOrientedBoxBoundMSFT.Buffer value) { memPutAddress(struct + XrSceneBoundsMSFT.BOXES, memAddressSafe(value)); if (value != null) { nboxCount(struct, value.remaining()); } } + /** Sets the specified value to the {@code frustumCount} field of the specified {@code struct}. */ + public static void nfrustumCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneBoundsMSFT.FRUSTUMCOUNT, value); } + /** Unsafe version of {@link #frustums(XrSceneFrustumBoundMSFT.Buffer) frustums}. */ + public static void nfrustums(long struct, @Nullable XrSceneFrustumBoundMSFT.Buffer value) { memPutAddress(struct + XrSceneBoundsMSFT.FRUSTUMS, memAddressSafe(value)); if (value != null) { nfrustumCount(struct, value.remaining()); } } /** * Validates pointer members that should not be {@code NULL}. @@ -347,9 +347,9 @@ public static XrSceneBoundsMSFT.Buffer calloc(int capacity, MemoryStack stack) { */ public static void validate(long struct) { check(memGetAddress(struct + XrSceneBoundsMSFT.SPACE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSceneBoundsMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -386,51 +386,51 @@ protected Buffer self() { protected XrSceneBoundsMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneBoundsMSFT#space} field. */ - @NativeType("XrSpace") - public long space() { return XrSceneBoundsMSFT.nspace(address()); } - /** @return the value of the {@link XrSceneBoundsMSFT#time} field. */ - @NativeType("XrTime") - public long time() { return XrSceneBoundsMSFT.ntime(address()); } - /** @return the value of the {@link XrSceneBoundsMSFT#sphereCount} field. */ - @NativeType("uint32_t") - public int sphereCount() { return XrSceneBoundsMSFT.nsphereCount(address()); } - /** @return a {@link XrSceneSphereBoundMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneBoundsMSFT#spheres} field. */ - @Nullable - @NativeType("XrSceneSphereBoundMSFT const *") - public XrSceneSphereBoundMSFT.Buffer spheres() { return XrSceneBoundsMSFT.nspheres(address()); } - /** @return the value of the {@link XrSceneBoundsMSFT#boxCount} field. */ - @NativeType("uint32_t") - public int boxCount() { return XrSceneBoundsMSFT.nboxCount(address()); } - /** @return a {@link XrSceneOrientedBoxBoundMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneBoundsMSFT#boxes} field. */ - @Nullable - @NativeType("XrSceneOrientedBoxBoundMSFT const *") - public XrSceneOrientedBoxBoundMSFT.Buffer boxes() { return XrSceneBoundsMSFT.nboxes(address()); } - /** @return the value of the {@link XrSceneBoundsMSFT#frustumCount} field. */ - @NativeType("uint32_t") - public int frustumCount() { return XrSceneBoundsMSFT.nfrustumCount(address()); } - /** @return a {@link XrSceneFrustumBoundMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneBoundsMSFT#frustums} field. */ - @Nullable - @NativeType("XrSceneFrustumBoundMSFT const *") - public XrSceneFrustumBoundMSFT.Buffer frustums() { return XrSceneBoundsMSFT.nfrustums(address()); } - - /** Sets the specified value to the {@link XrSceneBoundsMSFT#space} field. */ - public XrSceneBoundsMSFT.Buffer space(XrSpace value) { XrSceneBoundsMSFT.nspace(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneBoundsMSFT#time} field. */ - public XrSceneBoundsMSFT.Buffer time(@NativeType("XrTime") long value) { XrSceneBoundsMSFT.ntime(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneBoundsMSFT#sphereCount} field. */ - public XrSceneBoundsMSFT.Buffer sphereCount(@NativeType("uint32_t") int value) { XrSceneBoundsMSFT.nsphereCount(address(), value); return this; } - /** Sets the address of the specified {@link XrSceneSphereBoundMSFT.Buffer} to the {@link XrSceneBoundsMSFT#spheres} field. */ - public XrSceneBoundsMSFT.Buffer spheres(@Nullable @NativeType("XrSceneSphereBoundMSFT const *") XrSceneSphereBoundMSFT.Buffer value) { XrSceneBoundsMSFT.nspheres(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneBoundsMSFT#boxCount} field. */ - public XrSceneBoundsMSFT.Buffer boxCount(@NativeType("uint32_t") int value) { XrSceneBoundsMSFT.nboxCount(address(), value); return this; } - /** Sets the address of the specified {@link XrSceneOrientedBoxBoundMSFT.Buffer} to the {@link XrSceneBoundsMSFT#boxes} field. */ - public XrSceneBoundsMSFT.Buffer boxes(@Nullable @NativeType("XrSceneOrientedBoxBoundMSFT const *") XrSceneOrientedBoxBoundMSFT.Buffer value) { XrSceneBoundsMSFT.nboxes(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneBoundsMSFT#frustumCount} field. */ - public XrSceneBoundsMSFT.Buffer frustumCount(@NativeType("uint32_t") int value) { XrSceneBoundsMSFT.nfrustumCount(address(), value); return this; } - /** Sets the address of the specified {@link XrSceneFrustumBoundMSFT.Buffer} to the {@link XrSceneBoundsMSFT#frustums} field. */ - public XrSceneBoundsMSFT.Buffer frustums(@Nullable @NativeType("XrSceneFrustumBoundMSFT const *") XrSceneFrustumBoundMSFT.Buffer value) { XrSceneBoundsMSFT.nfrustums(address(), value); return this; } + + /** @return the value of the {@link XrSceneBoundsMSFT#space} field. */ + @NativeType("XrSpace") + public long space() { return XrSceneBoundsMSFT.nspace(address()); } + /** @return the value of the {@link XrSceneBoundsMSFT#time} field. */ + @NativeType("XrTime") + public long time() { return XrSceneBoundsMSFT.ntime(address()); } + /** @return the value of the {@link XrSceneBoundsMSFT#sphereCount} field. */ + @NativeType("uint32_t") + public int sphereCount() { return XrSceneBoundsMSFT.nsphereCount(address()); } + /** @return a {@link XrSceneSphereBoundMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneBoundsMSFT#spheres} field. */ + @Nullable + @NativeType("XrSceneSphereBoundMSFT const *") + public XrSceneSphereBoundMSFT.Buffer spheres() { return XrSceneBoundsMSFT.nspheres(address()); } + /** @return the value of the {@link XrSceneBoundsMSFT#boxCount} field. */ + @NativeType("uint32_t") + public int boxCount() { return XrSceneBoundsMSFT.nboxCount(address()); } + /** @return a {@link XrSceneOrientedBoxBoundMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneBoundsMSFT#boxes} field. */ + @Nullable + @NativeType("XrSceneOrientedBoxBoundMSFT const *") + public XrSceneOrientedBoxBoundMSFT.Buffer boxes() { return XrSceneBoundsMSFT.nboxes(address()); } + /** @return the value of the {@link XrSceneBoundsMSFT#frustumCount} field. */ + @NativeType("uint32_t") + public int frustumCount() { return XrSceneBoundsMSFT.nfrustumCount(address()); } + /** @return a {@link XrSceneFrustumBoundMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneBoundsMSFT#frustums} field. */ + @Nullable + @NativeType("XrSceneFrustumBoundMSFT const *") + public XrSceneFrustumBoundMSFT.Buffer frustums() { return XrSceneBoundsMSFT.nfrustums(address()); } + + /** Sets the specified value to the {@link XrSceneBoundsMSFT#space} field. */ + public XrSceneBoundsMSFT.Buffer space(XrSpace value) { XrSceneBoundsMSFT.nspace(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneBoundsMSFT#time} field. */ + public XrSceneBoundsMSFT.Buffer time(@NativeType("XrTime") long value) { XrSceneBoundsMSFT.ntime(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneBoundsMSFT#sphereCount} field. */ + public XrSceneBoundsMSFT.Buffer sphereCount(@NativeType("uint32_t") int value) { XrSceneBoundsMSFT.nsphereCount(address(), value); return this; } + /** Sets the address of the specified {@link XrSceneSphereBoundMSFT.Buffer} to the {@link XrSceneBoundsMSFT#spheres} field. */ + public XrSceneBoundsMSFT.Buffer spheres(@Nullable @NativeType("XrSceneSphereBoundMSFT const *") XrSceneSphereBoundMSFT.Buffer value) { XrSceneBoundsMSFT.nspheres(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneBoundsMSFT#boxCount} field. */ + public XrSceneBoundsMSFT.Buffer boxCount(@NativeType("uint32_t") int value) { XrSceneBoundsMSFT.nboxCount(address(), value); return this; } + /** Sets the address of the specified {@link XrSceneOrientedBoxBoundMSFT.Buffer} to the {@link XrSceneBoundsMSFT#boxes} field. */ + public XrSceneBoundsMSFT.Buffer boxes(@Nullable @NativeType("XrSceneOrientedBoxBoundMSFT const *") XrSceneOrientedBoxBoundMSFT.Buffer value) { XrSceneBoundsMSFT.nboxes(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneBoundsMSFT#frustumCount} field. */ + public XrSceneBoundsMSFT.Buffer frustumCount(@NativeType("uint32_t") int value) { XrSceneBoundsMSFT.nfrustumCount(address(), value); return this; } + /** Sets the address of the specified {@link XrSceneFrustumBoundMSFT.Buffer} to the {@link XrSceneBoundsMSFT#frustums} field. */ + public XrSceneBoundsMSFT.Buffer frustums(@Nullable @NativeType("XrSceneFrustumBoundMSFT const *") XrSceneFrustumBoundMSFT.Buffer value) { XrSceneBoundsMSFT.nfrustums(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneCaptureRequestInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneCaptureRequestInfoFB.java index b32252d868..f875745bfa 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneCaptureRequestInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneCaptureRequestInfoFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes how a scene capture should be conducted by the system. * @@ -27,7 +27,7 @@ *
                                                            *
                                                          • The {@link FBSceneCapture XR_FB_scene_capture} extension must be enabled prior to using {@link XrSceneCaptureRequestInfoFB}
                                                          • *
                                                          • {@code type} must be {@link FBSceneCapture#XR_TYPE_SCENE_CAPTURE_REQUEST_INFO_FB TYPE_SCENE_CAPTURE_REQUEST_INFO_FB}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • + *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • *
                                                          • If {@code requestByteCount} is not 0, {@code request} must be a pointer to an array of {@code requestByteCount} char values
                                                          • *
                                                          * @@ -44,8 +44,8 @@ * uint32_t {@link #requestByteCount}; * char const * {@link #request}; * } - */ -public class XrSceneCaptureRequestInfoFB extends Struct implements NativeResource { + */ +public class XrSceneCaptureRequestInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,27 +55,27 @@ public class XrSceneCaptureRequestInfoFB extends Structcan use to specify which type of scene capture should be initiated by the runtime. The contents of buffer pointed to by the {@code request} parameter is runtime-specific. */ - @Nullable - @NativeType("char const *") - public ByteBuffer request() { return nrequest(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSceneCaptureRequestInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBSceneCapture#XR_TYPE_SCENE_CAPTURE_REQUEST_INFO_FB TYPE_SCENE_CAPTURE_REQUEST_INFO_FB} value to the {@link #type} field. */ - public XrSceneCaptureRequestInfoFB type$Default() { return type(FBSceneCapture.XR_TYPE_SCENE_CAPTURE_REQUEST_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSceneCaptureRequestInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #requestByteCount} field. */ - public XrSceneCaptureRequestInfoFB requestByteCount(@NativeType("uint32_t") int value) { nrequestByteCount(address(), value); return this; } - /** Sets the address of the specified {@link ByteBuffer} to the {@link #request} field. */ - public XrSceneCaptureRequestInfoFB request(@Nullable @NativeType("char const *") ByteBuffer value) { nrequest(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** byte length of the {@code request} parameter. */ + @NativeType("uint32_t") + public int requestByteCount() { return nrequestByteCount(address()); } + /** a string which the application can use to specify which type of scene capture should be initiated by the runtime. The contents of buffer pointed to by the {@code request} parameter is runtime-specific. */ + @Nullable + @NativeType("char const *") + public ByteBuffer request() { return nrequest(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSceneCaptureRequestInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSceneCapture#XR_TYPE_SCENE_CAPTURE_REQUEST_INFO_FB TYPE_SCENE_CAPTURE_REQUEST_INFO_FB} value to the {@link #type} field. */ + public XrSceneCaptureRequestInfoFB type$Default() { return type(FBSceneCapture.XR_TYPE_SCENE_CAPTURE_REQUEST_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSceneCaptureRequestInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #requestByteCount} field. */ + public XrSceneCaptureRequestInfoFB requestByteCount(@NativeType("uint32_t") int value) { nrequestByteCount(address(), value); return this; } + /** Sets the address of the specified {@link ByteBuffer} to the {@link #request} field. */ + public XrSceneCaptureRequestInfoFB request(@Nullable @NativeType("char const *") ByteBuffer value) { nrequest(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSceneCaptureRequestInfoFB set( - int type, - long next, - int requestByteCount, + int type, + long next, + int requestByteCount, @Nullable ByteBuffer request - ) { - type(type); - next(next); - requestByteCount(requestByteCount); - request(request); + ) { + type(type); + next(next); + requestByteCount(requestByteCount); + request(request); return this; } @@ -263,26 +263,26 @@ public static XrSceneCaptureRequestInfoFB.Buffer calloc(int capacity, MemoryStac } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneCaptureRequestInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSceneCaptureRequestInfoFB.NEXT); } - /** Unsafe version of {@link #requestByteCount}. */ - public static int nrequestByteCount(long struct) { return UNSAFE.getInt(null, struct + XrSceneCaptureRequestInfoFB.REQUESTBYTECOUNT); } - /** Unsafe version of {@link #request() request}. */ - @Nullable public static ByteBuffer nrequest(long struct) { return memByteBufferSafe(memGetAddress(struct + XrSceneCaptureRequestInfoFB.REQUEST), nrequestByteCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneCaptureRequestInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneCaptureRequestInfoFB.NEXT, value); } - /** Sets the specified value to the {@code requestByteCount} field of the specified {@code struct}. */ - public static void nrequestByteCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneCaptureRequestInfoFB.REQUESTBYTECOUNT, value); } - /** Unsafe version of {@link #request(ByteBuffer) request}. */ - public static void nrequest(long struct, @Nullable ByteBuffer value) { memPutAddress(struct + XrSceneCaptureRequestInfoFB.REQUEST, memAddressSafe(value)); if (value != null) { nrequestByteCount(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneCaptureRequestInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSceneCaptureRequestInfoFB.NEXT); } + /** Unsafe version of {@link #requestByteCount}. */ + public static int nrequestByteCount(long struct) { return UNSAFE.getInt(null, struct + XrSceneCaptureRequestInfoFB.REQUESTBYTECOUNT); } + /** Unsafe version of {@link #request() request}. */ + @Nullable public static ByteBuffer nrequest(long struct) { return memByteBufferSafe(memGetAddress(struct + XrSceneCaptureRequestInfoFB.REQUEST), nrequestByteCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneCaptureRequestInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneCaptureRequestInfoFB.NEXT, value); } + /** Sets the specified value to the {@code requestByteCount} field of the specified {@code struct}. */ + public static void nrequestByteCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneCaptureRequestInfoFB.REQUESTBYTECOUNT, value); } + /** Unsafe version of {@link #request(ByteBuffer) request}. */ + public static void nrequest(long struct, @Nullable ByteBuffer value) { memPutAddress(struct + XrSceneCaptureRequestInfoFB.REQUEST, memAddressSafe(value)); if (value != null) { nrequestByteCount(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrSceneCaptureRequestInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -319,31 +319,31 @@ protected Buffer self() { protected XrSceneCaptureRequestInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneCaptureRequestInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneCaptureRequestInfoFB.ntype(address()); } - /** @return the value of the {@link XrSceneCaptureRequestInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSceneCaptureRequestInfoFB.nnext(address()); } - /** @return the value of the {@link XrSceneCaptureRequestInfoFB#requestByteCount} field. */ - @NativeType("uint32_t") - public int requestByteCount() { return XrSceneCaptureRequestInfoFB.nrequestByteCount(address()); } - /** @return a {@link ByteBuffer} view of the data pointed to by the {@link XrSceneCaptureRequestInfoFB#request} field. */ - @Nullable - @NativeType("char const *") - public ByteBuffer request() { return XrSceneCaptureRequestInfoFB.nrequest(address()); } - - /** Sets the specified value to the {@link XrSceneCaptureRequestInfoFB#type} field. */ - public XrSceneCaptureRequestInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSceneCaptureRequestInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBSceneCapture#XR_TYPE_SCENE_CAPTURE_REQUEST_INFO_FB TYPE_SCENE_CAPTURE_REQUEST_INFO_FB} value to the {@link XrSceneCaptureRequestInfoFB#type} field. */ - public XrSceneCaptureRequestInfoFB.Buffer type$Default() { return type(FBSceneCapture.XR_TYPE_SCENE_CAPTURE_REQUEST_INFO_FB); } - /** Sets the specified value to the {@link XrSceneCaptureRequestInfoFB#next} field. */ - public XrSceneCaptureRequestInfoFB.Buffer next(@NativeType("void const *") long value) { XrSceneCaptureRequestInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneCaptureRequestInfoFB#requestByteCount} field. */ - public XrSceneCaptureRequestInfoFB.Buffer requestByteCount(@NativeType("uint32_t") int value) { XrSceneCaptureRequestInfoFB.nrequestByteCount(address(), value); return this; } - /** Sets the address of the specified {@link ByteBuffer} to the {@link XrSceneCaptureRequestInfoFB#request} field. */ - public XrSceneCaptureRequestInfoFB.Buffer request(@Nullable @NativeType("char const *") ByteBuffer value) { XrSceneCaptureRequestInfoFB.nrequest(address(), value); return this; } + + /** @return the value of the {@link XrSceneCaptureRequestInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneCaptureRequestInfoFB.ntype(address()); } + /** @return the value of the {@link XrSceneCaptureRequestInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSceneCaptureRequestInfoFB.nnext(address()); } + /** @return the value of the {@link XrSceneCaptureRequestInfoFB#requestByteCount} field. */ + @NativeType("uint32_t") + public int requestByteCount() { return XrSceneCaptureRequestInfoFB.nrequestByteCount(address()); } + /** @return a {@link ByteBuffer} view of the data pointed to by the {@link XrSceneCaptureRequestInfoFB#request} field. */ + @Nullable + @NativeType("char const *") + public ByteBuffer request() { return XrSceneCaptureRequestInfoFB.nrequest(address()); } + + /** Sets the specified value to the {@link XrSceneCaptureRequestInfoFB#type} field. */ + public XrSceneCaptureRequestInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSceneCaptureRequestInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBSceneCapture#XR_TYPE_SCENE_CAPTURE_REQUEST_INFO_FB TYPE_SCENE_CAPTURE_REQUEST_INFO_FB} value to the {@link XrSceneCaptureRequestInfoFB#type} field. */ + public XrSceneCaptureRequestInfoFB.Buffer type$Default() { return type(FBSceneCapture.XR_TYPE_SCENE_CAPTURE_REQUEST_INFO_FB); } + /** Sets the specified value to the {@link XrSceneCaptureRequestInfoFB#next} field. */ + public XrSceneCaptureRequestInfoFB.Buffer next(@NativeType("void const *") long value) { XrSceneCaptureRequestInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneCaptureRequestInfoFB#requestByteCount} field. */ + public XrSceneCaptureRequestInfoFB.Buffer requestByteCount(@NativeType("uint32_t") int value) { XrSceneCaptureRequestInfoFB.nrequestByteCount(address(), value); return this; } + /** Sets the address of the specified {@link ByteBuffer} to the {@link XrSceneCaptureRequestInfoFB#request} field. */ + public XrSceneCaptureRequestInfoFB.Buffer request(@Nullable @NativeType("char const *") ByteBuffer value) { XrSceneCaptureRequestInfoFB.nrequest(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentLocationMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentLocationMSFT.java index 5cc6780785..fe591f8f10 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentLocationMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentLocationMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes the location of a scene component. * @@ -36,8 +36,8 @@ * XrSpaceLocationFlags {@link #flags}; * {@link XrPosef XrPosef} {@link #pose}; * } - */ -public class XrSceneComponentLocationMSFT extends Struct implements NativeResource { + */ +public class XrSceneComponentLocationMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -47,21 +47,21 @@ public class XrSceneComponentLocationMSFT extends Struct consumer) { consumer.accept(pose()); return this; } + + /** a bitfield, with bit masks defined in {@code XrSpaceLocationFlagBits}, to indicate which members contain valid data. */ + @NativeType("XrSpaceLocationFlags") + public long flags() { return nflags(address()); } + /** an {@link XrPosef} defining the position and orientation of the scene component within the reference frame of the corresponding {@link XrSceneComponentsLocateInfoMSFT}{@code ::baseSpace}. */ + public XrPosef pose() { return npose(address()); } + + /** Sets the specified value to the {@link #flags} field. */ + public XrSceneComponentLocationMSFT flags(@NativeType("XrSpaceLocationFlags") long value) { nflags(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrSceneComponentLocationMSFT pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneComponentLocationMSFT pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } /** Initializes this struct with the specified values. */ public XrSceneComponentLocationMSFT set( - long flags, + long flags, XrPosef pose - ) { - flags(flags); - pose(pose); + ) { + flags(flags); + pose(pose); return this; } @@ -233,18 +233,18 @@ public static XrSceneComponentLocationMSFT.Buffer calloc(int capacity, MemorySta } // ----------------------------------- - - /** Unsafe version of {@link #flags}. */ - public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrSceneComponentLocationMSFT.FLAGS); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrSceneComponentLocationMSFT.POSE); } - - /** Unsafe version of {@link #flags(long) flags}. */ - public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrSceneComponentLocationMSFT.FLAGS, value); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrSceneComponentLocationMSFT.POSE, XrPosef.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #flags}. */ + public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrSceneComponentLocationMSFT.FLAGS); } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrSceneComponentLocationMSFT.POSE); } + + /** Unsafe version of {@link #flags(long) flags}. */ + public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrSceneComponentLocationMSFT.FLAGS, value); } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrSceneComponentLocationMSFT.POSE, XrPosef.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrSceneComponentLocationMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -281,19 +281,19 @@ protected Buffer self() { protected XrSceneComponentLocationMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneComponentLocationMSFT#flags} field. */ - @NativeType("XrSpaceLocationFlags") - public long flags() { return XrSceneComponentLocationMSFT.nflags(address()); } - /** @return a {@link XrPosef} view of the {@link XrSceneComponentLocationMSFT#pose} field. */ - public XrPosef pose() { return XrSceneComponentLocationMSFT.npose(address()); } - - /** Sets the specified value to the {@link XrSceneComponentLocationMSFT#flags} field. */ - public XrSceneComponentLocationMSFT.Buffer flags(@NativeType("XrSpaceLocationFlags") long value) { XrSceneComponentLocationMSFT.nflags(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrSceneComponentLocationMSFT#pose} field. */ - public XrSceneComponentLocationMSFT.Buffer pose(XrPosef value) { XrSceneComponentLocationMSFT.npose(address(), value); return this; } - /** Passes the {@link XrSceneComponentLocationMSFT#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneComponentLocationMSFT.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + + /** @return the value of the {@link XrSceneComponentLocationMSFT#flags} field. */ + @NativeType("XrSpaceLocationFlags") + public long flags() { return XrSceneComponentLocationMSFT.nflags(address()); } + /** @return a {@link XrPosef} view of the {@link XrSceneComponentLocationMSFT#pose} field. */ + public XrPosef pose() { return XrSceneComponentLocationMSFT.npose(address()); } + + /** Sets the specified value to the {@link XrSceneComponentLocationMSFT#flags} field. */ + public XrSceneComponentLocationMSFT.Buffer flags(@NativeType("XrSpaceLocationFlags") long value) { XrSceneComponentLocationMSFT.nflags(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrSceneComponentLocationMSFT#pose} field. */ + public XrSceneComponentLocationMSFT.Buffer pose(XrPosef value) { XrSceneComponentLocationMSFT.npose(address(), value); return this; } + /** Passes the {@link XrSceneComponentLocationMSFT#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneComponentLocationMSFT.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentLocationsMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentLocationsMSFT.java index b52bb690ca..f2a38bac85 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentLocationsMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentLocationsMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Returns the scene component locations. * @@ -23,7 +23,7 @@ *
                                                            *
                                                          • The {@link MSFTSceneUnderstanding XR_MSFT_scene_understanding} extension must be enabled prior to using {@link XrSceneComponentLocationsMSFT}
                                                          • *
                                                          • {@code type} must be {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENT_LOCATIONS_MSFT TYPE_SCENE_COMPONENT_LOCATIONS_MSFT}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • + *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • *
                                                          • If {@code locationCount} is not 0, {@code locations} must be a pointer to an array of {@code locationCount} {@link XrSceneComponentLocationMSFT} structures
                                                          • *
                                                          * @@ -40,8 +40,8 @@ * uint32_t {@link #locationCount}; * {@link XrSceneComponentLocationMSFT XrSceneComponentLocationMSFT} * {@link #locations}; * } - */ -public class XrSceneComponentLocationsMSFT extends Struct implements NativeResource { + */ +public class XrSceneComponentLocationsMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,27 +51,27 @@ public class XrSceneComponentLocationsMSFT extends Struct implements NativeResource { @@ -315,31 +315,31 @@ protected Buffer self() { protected XrSceneComponentLocationsMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneComponentLocationsMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneComponentLocationsMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneComponentLocationsMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrSceneComponentLocationsMSFT.nnext(address()); } - /** @return the value of the {@link XrSceneComponentLocationsMSFT#locationCount} field. */ - @NativeType("uint32_t") - public int locationCount() { return XrSceneComponentLocationsMSFT.nlocationCount(address()); } - /** @return a {@link XrSceneComponentLocationMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneComponentLocationsMSFT#locations} field. */ - @Nullable - @NativeType("XrSceneComponentLocationMSFT *") - public XrSceneComponentLocationMSFT.Buffer locations() { return XrSceneComponentLocationsMSFT.nlocations(address()); } - - /** Sets the specified value to the {@link XrSceneComponentLocationsMSFT#type} field. */ - public XrSceneComponentLocationsMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneComponentLocationsMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENT_LOCATIONS_MSFT TYPE_SCENE_COMPONENT_LOCATIONS_MSFT} value to the {@link XrSceneComponentLocationsMSFT#type} field. */ - public XrSceneComponentLocationsMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_COMPONENT_LOCATIONS_MSFT); } - /** Sets the specified value to the {@link XrSceneComponentLocationsMSFT#next} field. */ - public XrSceneComponentLocationsMSFT.Buffer next(@NativeType("void *") long value) { XrSceneComponentLocationsMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneComponentLocationsMSFT#locationCount} field. */ - public XrSceneComponentLocationsMSFT.Buffer locationCount(@NativeType("uint32_t") int value) { XrSceneComponentLocationsMSFT.nlocationCount(address(), value); return this; } - /** Sets the address of the specified {@link XrSceneComponentLocationMSFT.Buffer} to the {@link XrSceneComponentLocationsMSFT#locations} field. */ - public XrSceneComponentLocationsMSFT.Buffer locations(@Nullable @NativeType("XrSceneComponentLocationMSFT *") XrSceneComponentLocationMSFT.Buffer value) { XrSceneComponentLocationsMSFT.nlocations(address(), value); return this; } + + /** @return the value of the {@link XrSceneComponentLocationsMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneComponentLocationsMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneComponentLocationsMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrSceneComponentLocationsMSFT.nnext(address()); } + /** @return the value of the {@link XrSceneComponentLocationsMSFT#locationCount} field. */ + @NativeType("uint32_t") + public int locationCount() { return XrSceneComponentLocationsMSFT.nlocationCount(address()); } + /** @return a {@link XrSceneComponentLocationMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneComponentLocationsMSFT#locations} field. */ + @Nullable + @NativeType("XrSceneComponentLocationMSFT *") + public XrSceneComponentLocationMSFT.Buffer locations() { return XrSceneComponentLocationsMSFT.nlocations(address()); } + + /** Sets the specified value to the {@link XrSceneComponentLocationsMSFT#type} field. */ + public XrSceneComponentLocationsMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneComponentLocationsMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENT_LOCATIONS_MSFT TYPE_SCENE_COMPONENT_LOCATIONS_MSFT} value to the {@link XrSceneComponentLocationsMSFT#type} field. */ + public XrSceneComponentLocationsMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_COMPONENT_LOCATIONS_MSFT); } + /** Sets the specified value to the {@link XrSceneComponentLocationsMSFT#next} field. */ + public XrSceneComponentLocationsMSFT.Buffer next(@NativeType("void *") long value) { XrSceneComponentLocationsMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneComponentLocationsMSFT#locationCount} field. */ + public XrSceneComponentLocationsMSFT.Buffer locationCount(@NativeType("uint32_t") int value) { XrSceneComponentLocationsMSFT.nlocationCount(address(), value); return this; } + /** Sets the address of the specified {@link XrSceneComponentLocationMSFT.Buffer} to the {@link XrSceneComponentLocationsMSFT#locations} field. */ + public XrSceneComponentLocationsMSFT.Buffer locations(@Nullable @NativeType("XrSceneComponentLocationMSFT *") XrSceneComponentLocationMSFT.Buffer value) { XrSceneComponentLocationsMSFT.nlocations(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentMSFT.java index 7bb077b57e..736570dbce 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Scene component. * @@ -47,8 +47,8 @@ * {@link XrUuidMSFT XrUuidMSFT} {@link #parentId}; * XrTime {@link #updateTime}; * } - */ -public class XrSceneComponentMSFT extends Struct implements NativeResource { + */ +public class XrSceneComponentMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -58,27 +58,27 @@ public class XrSceneComponentMSFT extends Struct implement /** The struct member offsets. */ public static final int - COMPONENTTYPE, - ID, - PARENTID, - UPDATETIME; + COMPONENTTYPE, + ID, + PARENTID, + UPDATETIME; static { - Layout layout = __struct( - __member(4), - __member(XrUuidMSFT.SIZEOF, XrUuidMSFT.ALIGNOF), - __member(XrUuidMSFT.SIZEOF, XrUuidMSFT.ALIGNOF), + Layout layout = __struct( + __member(4), + __member(XrUuidMSFT.SIZEOF, XrUuidMSFT.ALIGNOF), + __member(XrUuidMSFT.SIZEOF, XrUuidMSFT.ALIGNOF), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - COMPONENTTYPE = layout.offsetof(0); - ID = layout.offsetof(1); - PARENTID = layout.offsetof(2); - UPDATETIME = layout.offsetof(3); - } + COMPONENTTYPE = layout.offsetof(0); + ID = layout.offsetof(1); + PARENTID = layout.offsetof(2); + UPDATETIME = layout.offsetof(3); + } protected XrSceneComponentMSFT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -101,42 +101,42 @@ public XrSceneComponentMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrSceneComponentTypeMSFT} of the scene component. */ - @NativeType("XrSceneComponentTypeMSFT") - public int componentType() { return ncomponentType(address()); } - /** the {@link XrUuidMSFT} of the scene component. */ - public XrUuidMSFT id() { return nid(address()); } - /** the {@link XrUuidMSFT} of the parent scene object. If the scene component does not have a parent, then {@code parentId} will be equal to zero. */ - public XrUuidMSFT parentId() { return nparentId(address()); } - /** the {@code XrTime} that this scene component was last updated. */ - @NativeType("XrTime") - public long updateTime() { return nupdateTime(address()); } - - /** Sets the specified value to the {@link #componentType} field. */ - public XrSceneComponentMSFT componentType(@NativeType("XrSceneComponentTypeMSFT") int value) { ncomponentType(address(), value); return this; } - /** Copies the specified {@link XrUuidMSFT} to the {@link #id} field. */ - public XrSceneComponentMSFT id(XrUuidMSFT value) { nid(address(), value); return this; } - /** Passes the {@link #id} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneComponentMSFT id(java.util.function.Consumer consumer) { consumer.accept(id()); return this; } - /** Copies the specified {@link XrUuidMSFT} to the {@link #parentId} field. */ - public XrSceneComponentMSFT parentId(XrUuidMSFT value) { nparentId(address(), value); return this; } - /** Passes the {@link #parentId} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneComponentMSFT parentId(java.util.function.Consumer consumer) { consumer.accept(parentId()); return this; } - /** Sets the specified value to the {@link #updateTime} field. */ - public XrSceneComponentMSFT updateTime(@NativeType("XrTime") long value) { nupdateTime(address(), value); return this; } + + /** the {@code XrSceneComponentTypeMSFT} of the scene component. */ + @NativeType("XrSceneComponentTypeMSFT") + public int componentType() { return ncomponentType(address()); } + /** the {@link XrUuidMSFT} of the scene component. */ + public XrUuidMSFT id() { return nid(address()); } + /** the {@link XrUuidMSFT} of the parent scene object. If the scene component does not have a parent, then {@code parentId} will be equal to zero. */ + public XrUuidMSFT parentId() { return nparentId(address()); } + /** the {@code XrTime} that this scene component was last updated. */ + @NativeType("XrTime") + public long updateTime() { return nupdateTime(address()); } + + /** Sets the specified value to the {@link #componentType} field. */ + public XrSceneComponentMSFT componentType(@NativeType("XrSceneComponentTypeMSFT") int value) { ncomponentType(address(), value); return this; } + /** Copies the specified {@link XrUuidMSFT} to the {@link #id} field. */ + public XrSceneComponentMSFT id(XrUuidMSFT value) { nid(address(), value); return this; } + /** Passes the {@link #id} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneComponentMSFT id(java.util.function.Consumer consumer) { consumer.accept(id()); return this; } + /** Copies the specified {@link XrUuidMSFT} to the {@link #parentId} field. */ + public XrSceneComponentMSFT parentId(XrUuidMSFT value) { nparentId(address(), value); return this; } + /** Passes the {@link #parentId} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneComponentMSFT parentId(java.util.function.Consumer consumer) { consumer.accept(parentId()); return this; } + /** Sets the specified value to the {@link #updateTime} field. */ + public XrSceneComponentMSFT updateTime(@NativeType("XrTime") long value) { nupdateTime(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSceneComponentMSFT set( - int componentType, - XrUuidMSFT id, - XrUuidMSFT parentId, + int componentType, + XrUuidMSFT id, + XrUuidMSFT parentId, long updateTime - ) { - componentType(componentType); - id(id); - parentId(parentId); - updateTime(updateTime); + ) { + componentType(componentType); + id(id); + parentId(parentId); + updateTime(updateTime); return this; } @@ -265,26 +265,26 @@ public static XrSceneComponentMSFT.Buffer calloc(int capacity, MemoryStack stack } // ----------------------------------- - - /** Unsafe version of {@link #componentType}. */ - public static int ncomponentType(long struct) { return UNSAFE.getInt(null, struct + XrSceneComponentMSFT.COMPONENTTYPE); } - /** Unsafe version of {@link #id}. */ - public static XrUuidMSFT nid(long struct) { return XrUuidMSFT.create(struct + XrSceneComponentMSFT.ID); } - /** Unsafe version of {@link #parentId}. */ - public static XrUuidMSFT nparentId(long struct) { return XrUuidMSFT.create(struct + XrSceneComponentMSFT.PARENTID); } - /** Unsafe version of {@link #updateTime}. */ - public static long nupdateTime(long struct) { return UNSAFE.getLong(null, struct + XrSceneComponentMSFT.UPDATETIME); } - - /** Unsafe version of {@link #componentType(int) componentType}. */ - public static void ncomponentType(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneComponentMSFT.COMPONENTTYPE, value); } - /** Unsafe version of {@link #id(XrUuidMSFT) id}. */ - public static void nid(long struct, XrUuidMSFT value) { memCopy(value.address(), struct + XrSceneComponentMSFT.ID, XrUuidMSFT.SIZEOF); } - /** Unsafe version of {@link #parentId(XrUuidMSFT) parentId}. */ - public static void nparentId(long struct, XrUuidMSFT value) { memCopy(value.address(), struct + XrSceneComponentMSFT.PARENTID, XrUuidMSFT.SIZEOF); } - /** Unsafe version of {@link #updateTime(long) updateTime}. */ - public static void nupdateTime(long struct, long value) { UNSAFE.putLong(null, struct + XrSceneComponentMSFT.UPDATETIME, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #componentType}. */ + public static int ncomponentType(long struct) { return UNSAFE.getInt(null, struct + XrSceneComponentMSFT.COMPONENTTYPE); } + /** Unsafe version of {@link #id}. */ + public static XrUuidMSFT nid(long struct) { return XrUuidMSFT.create(struct + XrSceneComponentMSFT.ID); } + /** Unsafe version of {@link #parentId}. */ + public static XrUuidMSFT nparentId(long struct) { return XrUuidMSFT.create(struct + XrSceneComponentMSFT.PARENTID); } + /** Unsafe version of {@link #updateTime}. */ + public static long nupdateTime(long struct) { return UNSAFE.getLong(null, struct + XrSceneComponentMSFT.UPDATETIME); } + + /** Unsafe version of {@link #componentType(int) componentType}. */ + public static void ncomponentType(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneComponentMSFT.COMPONENTTYPE, value); } + /** Unsafe version of {@link #id(XrUuidMSFT) id}. */ + public static void nid(long struct, XrUuidMSFT value) { memCopy(value.address(), struct + XrSceneComponentMSFT.ID, XrUuidMSFT.SIZEOF); } + /** Unsafe version of {@link #parentId(XrUuidMSFT) parentId}. */ + public static void nparentId(long struct, XrUuidMSFT value) { memCopy(value.address(), struct + XrSceneComponentMSFT.PARENTID, XrUuidMSFT.SIZEOF); } + /** Unsafe version of {@link #updateTime(long) updateTime}. */ + public static void nupdateTime(long struct, long value) { UNSAFE.putLong(null, struct + XrSceneComponentMSFT.UPDATETIME, value); } + + // ----------------------------------- /** An array of {@link XrSceneComponentMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -321,30 +321,30 @@ protected Buffer self() { protected XrSceneComponentMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneComponentMSFT#componentType} field. */ - @NativeType("XrSceneComponentTypeMSFT") - public int componentType() { return XrSceneComponentMSFT.ncomponentType(address()); } - /** @return a {@link XrUuidMSFT} view of the {@link XrSceneComponentMSFT#id} field. */ - public XrUuidMSFT id() { return XrSceneComponentMSFT.nid(address()); } - /** @return a {@link XrUuidMSFT} view of the {@link XrSceneComponentMSFT#parentId} field. */ - public XrUuidMSFT parentId() { return XrSceneComponentMSFT.nparentId(address()); } - /** @return the value of the {@link XrSceneComponentMSFT#updateTime} field. */ - @NativeType("XrTime") - public long updateTime() { return XrSceneComponentMSFT.nupdateTime(address()); } - - /** Sets the specified value to the {@link XrSceneComponentMSFT#componentType} field. */ - public XrSceneComponentMSFT.Buffer componentType(@NativeType("XrSceneComponentTypeMSFT") int value) { XrSceneComponentMSFT.ncomponentType(address(), value); return this; } - /** Copies the specified {@link XrUuidMSFT} to the {@link XrSceneComponentMSFT#id} field. */ - public XrSceneComponentMSFT.Buffer id(XrUuidMSFT value) { XrSceneComponentMSFT.nid(address(), value); return this; } - /** Passes the {@link XrSceneComponentMSFT#id} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneComponentMSFT.Buffer id(java.util.function.Consumer consumer) { consumer.accept(id()); return this; } - /** Copies the specified {@link XrUuidMSFT} to the {@link XrSceneComponentMSFT#parentId} field. */ - public XrSceneComponentMSFT.Buffer parentId(XrUuidMSFT value) { XrSceneComponentMSFT.nparentId(address(), value); return this; } - /** Passes the {@link XrSceneComponentMSFT#parentId} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneComponentMSFT.Buffer parentId(java.util.function.Consumer consumer) { consumer.accept(parentId()); return this; } - /** Sets the specified value to the {@link XrSceneComponentMSFT#updateTime} field. */ - public XrSceneComponentMSFT.Buffer updateTime(@NativeType("XrTime") long value) { XrSceneComponentMSFT.nupdateTime(address(), value); return this; } + + /** @return the value of the {@link XrSceneComponentMSFT#componentType} field. */ + @NativeType("XrSceneComponentTypeMSFT") + public int componentType() { return XrSceneComponentMSFT.ncomponentType(address()); } + /** @return a {@link XrUuidMSFT} view of the {@link XrSceneComponentMSFT#id} field. */ + public XrUuidMSFT id() { return XrSceneComponentMSFT.nid(address()); } + /** @return a {@link XrUuidMSFT} view of the {@link XrSceneComponentMSFT#parentId} field. */ + public XrUuidMSFT parentId() { return XrSceneComponentMSFT.nparentId(address()); } + /** @return the value of the {@link XrSceneComponentMSFT#updateTime} field. */ + @NativeType("XrTime") + public long updateTime() { return XrSceneComponentMSFT.nupdateTime(address()); } + + /** Sets the specified value to the {@link XrSceneComponentMSFT#componentType} field. */ + public XrSceneComponentMSFT.Buffer componentType(@NativeType("XrSceneComponentTypeMSFT") int value) { XrSceneComponentMSFT.ncomponentType(address(), value); return this; } + /** Copies the specified {@link XrUuidMSFT} to the {@link XrSceneComponentMSFT#id} field. */ + public XrSceneComponentMSFT.Buffer id(XrUuidMSFT value) { XrSceneComponentMSFT.nid(address(), value); return this; } + /** Passes the {@link XrSceneComponentMSFT#id} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneComponentMSFT.Buffer id(java.util.function.Consumer consumer) { consumer.accept(id()); return this; } + /** Copies the specified {@link XrUuidMSFT} to the {@link XrSceneComponentMSFT#parentId} field. */ + public XrSceneComponentMSFT.Buffer parentId(XrUuidMSFT value) { XrSceneComponentMSFT.nparentId(address(), value); return this; } + /** Passes the {@link XrSceneComponentMSFT#parentId} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneComponentMSFT.Buffer parentId(java.util.function.Consumer consumer) { consumer.accept(parentId()); return this; } + /** Sets the specified value to the {@link XrSceneComponentMSFT#updateTime} field. */ + public XrSceneComponentMSFT.Buffer updateTime(@NativeType("XrTime") long value) { XrSceneComponentMSFT.nupdateTime(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentParentFilterInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentParentFilterInfoMSFT.java index 334c8997f2..9f5467da3d 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentParentFilterInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentParentFilterInfoMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Scene component parent filter. * @@ -27,7 +27,7 @@ *
                                                            *
                                                          • The {@link MSFTSceneUnderstanding XR_MSFT_scene_understanding} extension must be enabled prior to using {@link XrSceneComponentParentFilterInfoMSFT}
                                                          • *
                                                          • {@code type} must be {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT TYPE_SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • + *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • *
                                                          * *
                                                          See Also
                                                          @@ -42,8 +42,8 @@ * void const * {@link #next}; * {@link XrUuidMSFT XrUuidMSFT} {@link #parentId}; * } - */ -public class XrSceneComponentParentFilterInfoMSFT extends Struct implements NativeResource { + */ +public class XrSceneComponentParentFilterInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,24 +53,24 @@ public class XrSceneComponentParentFilterInfoMSFT extends Struct consumer) { consumer.accept(parentId()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the {@link XrUuidMSFT} of the parent scene component to filter by. */ + public XrUuidMSFT parentId() { return nparentId(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSceneComponentParentFilterInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT TYPE_SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT} value to the {@link #type} field. */ + public XrSceneComponentParentFilterInfoMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSceneComponentParentFilterInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link XrUuidMSFT} to the {@link #parentId} field. */ + public XrSceneComponentParentFilterInfoMSFT parentId(XrUuidMSFT value) { nparentId(address(), value); return this; } + /** Passes the {@link #parentId} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneComponentParentFilterInfoMSFT parentId(java.util.function.Consumer consumer) { consumer.accept(parentId()); return this; } /** Initializes this struct with the specified values. */ public XrSceneComponentParentFilterInfoMSFT set( - int type, - long next, + int type, + long next, XrUuidMSFT parentId - ) { - type(type); - next(next); - parentId(parentId); + ) { + type(type); + next(next); + parentId(parentId); return this; } @@ -251,22 +251,22 @@ public static XrSceneComponentParentFilterInfoMSFT.Buffer calloc(int capacity, M } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneComponentParentFilterInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSceneComponentParentFilterInfoMSFT.NEXT); } - /** Unsafe version of {@link #parentId}. */ - public static XrUuidMSFT nparentId(long struct) { return XrUuidMSFT.create(struct + XrSceneComponentParentFilterInfoMSFT.PARENTID); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneComponentParentFilterInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneComponentParentFilterInfoMSFT.NEXT, value); } - /** Unsafe version of {@link #parentId(XrUuidMSFT) parentId}. */ - public static void nparentId(long struct, XrUuidMSFT value) { memCopy(value.address(), struct + XrSceneComponentParentFilterInfoMSFT.PARENTID, XrUuidMSFT.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneComponentParentFilterInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSceneComponentParentFilterInfoMSFT.NEXT); } + /** Unsafe version of {@link #parentId}. */ + public static XrUuidMSFT nparentId(long struct) { return XrUuidMSFT.create(struct + XrSceneComponentParentFilterInfoMSFT.PARENTID); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneComponentParentFilterInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneComponentParentFilterInfoMSFT.NEXT, value); } + /** Unsafe version of {@link #parentId(XrUuidMSFT) parentId}. */ + public static void nparentId(long struct, XrUuidMSFT value) { memCopy(value.address(), struct + XrSceneComponentParentFilterInfoMSFT.PARENTID, XrUuidMSFT.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrSceneComponentParentFilterInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -303,26 +303,26 @@ protected Buffer self() { protected XrSceneComponentParentFilterInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneComponentParentFilterInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneComponentParentFilterInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneComponentParentFilterInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSceneComponentParentFilterInfoMSFT.nnext(address()); } - /** @return a {@link XrUuidMSFT} view of the {@link XrSceneComponentParentFilterInfoMSFT#parentId} field. */ - public XrUuidMSFT parentId() { return XrSceneComponentParentFilterInfoMSFT.nparentId(address()); } - - /** Sets the specified value to the {@link XrSceneComponentParentFilterInfoMSFT#type} field. */ - public XrSceneComponentParentFilterInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneComponentParentFilterInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT TYPE_SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT} value to the {@link XrSceneComponentParentFilterInfoMSFT#type} field. */ - public XrSceneComponentParentFilterInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT); } - /** Sets the specified value to the {@link XrSceneComponentParentFilterInfoMSFT#next} field. */ - public XrSceneComponentParentFilterInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneComponentParentFilterInfoMSFT.nnext(address(), value); return this; } - /** Copies the specified {@link XrUuidMSFT} to the {@link XrSceneComponentParentFilterInfoMSFT#parentId} field. */ - public XrSceneComponentParentFilterInfoMSFT.Buffer parentId(XrUuidMSFT value) { XrSceneComponentParentFilterInfoMSFT.nparentId(address(), value); return this; } - /** Passes the {@link XrSceneComponentParentFilterInfoMSFT#parentId} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneComponentParentFilterInfoMSFT.Buffer parentId(java.util.function.Consumer consumer) { consumer.accept(parentId()); return this; } + + /** @return the value of the {@link XrSceneComponentParentFilterInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneComponentParentFilterInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneComponentParentFilterInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSceneComponentParentFilterInfoMSFT.nnext(address()); } + /** @return a {@link XrUuidMSFT} view of the {@link XrSceneComponentParentFilterInfoMSFT#parentId} field. */ + public XrUuidMSFT parentId() { return XrSceneComponentParentFilterInfoMSFT.nparentId(address()); } + + /** Sets the specified value to the {@link XrSceneComponentParentFilterInfoMSFT#type} field. */ + public XrSceneComponentParentFilterInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneComponentParentFilterInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT TYPE_SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT} value to the {@link XrSceneComponentParentFilterInfoMSFT#type} field. */ + public XrSceneComponentParentFilterInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_COMPONENT_PARENT_FILTER_INFO_MSFT); } + /** Sets the specified value to the {@link XrSceneComponentParentFilterInfoMSFT#next} field. */ + public XrSceneComponentParentFilterInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneComponentParentFilterInfoMSFT.nnext(address(), value); return this; } + /** Copies the specified {@link XrUuidMSFT} to the {@link XrSceneComponentParentFilterInfoMSFT#parentId} field. */ + public XrSceneComponentParentFilterInfoMSFT.Buffer parentId(XrUuidMSFT value) { XrSceneComponentParentFilterInfoMSFT.nparentId(address(), value); return this; } + /** Passes the {@link XrSceneComponentParentFilterInfoMSFT#parentId} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneComponentParentFilterInfoMSFT.Buffer parentId(java.util.function.Consumer consumer) { consumer.accept(parentId()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentsGetInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentsGetInfoMSFT.java index ff53cfcf67..d38c2e4215 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentsGetInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentsGetInfoMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The information to get the scene components. * @@ -23,7 +23,7 @@ *
                                                            *
                                                          • The {@link MSFTSceneUnderstanding XR_MSFT_scene_understanding} extension must be enabled prior to using {@link XrSceneComponentsGetInfoMSFT}
                                                          • *
                                                          • {@code type} must be {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENTS_GET_INFO_MSFT TYPE_SCENE_COMPONENTS_GET_INFO_MSFT}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrSceneComponentParentFilterInfoMSFT}, {@link XrSceneObjectTypesFilterInfoMSFT}, {@link XrScenePlaneAlignmentFilterInfoMSFT}
                                                          • + *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrSceneComponentParentFilterInfoMSFT}, {@link XrSceneObjectTypesFilterInfoMSFT}, {@link XrScenePlaneAlignmentFilterInfoMSFT}
                                                          • *
                                                          • {@code componentType} must be a valid {@code XrSceneComponentTypeMSFT} value
                                                          • *
                                                          * @@ -39,8 +39,8 @@ * void const * {@link #next}; * XrSceneComponentTypeMSFT {@link #componentType}; * } - */ -public class XrSceneComponentsGetInfoMSFT extends Struct implements NativeResource { + */ +public class XrSceneComponentsGetInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,24 +50,24 @@ public class XrSceneComponentsGetInfoMSFT extends Struct implements NativeResource { @@ -305,31 +305,31 @@ protected Buffer self() { protected XrSceneComponentsGetInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneComponentsGetInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneComponentsGetInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneComponentsGetInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSceneComponentsGetInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSceneComponentsGetInfoMSFT#componentType} field. */ - @NativeType("XrSceneComponentTypeMSFT") - public int componentType() { return XrSceneComponentsGetInfoMSFT.ncomponentType(address()); } - - /** Sets the specified value to the {@link XrSceneComponentsGetInfoMSFT#type} field. */ - public XrSceneComponentsGetInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneComponentsGetInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENTS_GET_INFO_MSFT TYPE_SCENE_COMPONENTS_GET_INFO_MSFT} value to the {@link XrSceneComponentsGetInfoMSFT#type} field. */ - public XrSceneComponentsGetInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_COMPONENTS_GET_INFO_MSFT); } - /** Sets the specified value to the {@link XrSceneComponentsGetInfoMSFT#next} field. */ - public XrSceneComponentsGetInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneComponentsGetInfoMSFT.nnext(address(), value); return this; } - /** Prepends the specified {@link XrSceneComponentParentFilterInfoMSFT} value to the {@code next} chain. */ - public XrSceneComponentsGetInfoMSFT.Buffer next(XrSceneComponentParentFilterInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSceneObjectTypesFilterInfoMSFT} value to the {@code next} chain. */ - public XrSceneComponentsGetInfoMSFT.Buffer next(XrSceneObjectTypesFilterInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrScenePlaneAlignmentFilterInfoMSFT} value to the {@code next} chain. */ - public XrSceneComponentsGetInfoMSFT.Buffer next(XrScenePlaneAlignmentFilterInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrSceneComponentsGetInfoMSFT#componentType} field. */ - public XrSceneComponentsGetInfoMSFT.Buffer componentType(@NativeType("XrSceneComponentTypeMSFT") int value) { XrSceneComponentsGetInfoMSFT.ncomponentType(address(), value); return this; } + + /** @return the value of the {@link XrSceneComponentsGetInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneComponentsGetInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneComponentsGetInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSceneComponentsGetInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSceneComponentsGetInfoMSFT#componentType} field. */ + @NativeType("XrSceneComponentTypeMSFT") + public int componentType() { return XrSceneComponentsGetInfoMSFT.ncomponentType(address()); } + + /** Sets the specified value to the {@link XrSceneComponentsGetInfoMSFT#type} field. */ + public XrSceneComponentsGetInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneComponentsGetInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENTS_GET_INFO_MSFT TYPE_SCENE_COMPONENTS_GET_INFO_MSFT} value to the {@link XrSceneComponentsGetInfoMSFT#type} field. */ + public XrSceneComponentsGetInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_COMPONENTS_GET_INFO_MSFT); } + /** Sets the specified value to the {@link XrSceneComponentsGetInfoMSFT#next} field. */ + public XrSceneComponentsGetInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneComponentsGetInfoMSFT.nnext(address(), value); return this; } + /** Prepends the specified {@link XrSceneComponentParentFilterInfoMSFT} value to the {@code next} chain. */ + public XrSceneComponentsGetInfoMSFT.Buffer next(XrSceneComponentParentFilterInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSceneObjectTypesFilterInfoMSFT} value to the {@code next} chain. */ + public XrSceneComponentsGetInfoMSFT.Buffer next(XrSceneObjectTypesFilterInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrScenePlaneAlignmentFilterInfoMSFT} value to the {@code next} chain. */ + public XrSceneComponentsGetInfoMSFT.Buffer next(XrScenePlaneAlignmentFilterInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrSceneComponentsGetInfoMSFT#componentType} field. */ + public XrSceneComponentsGetInfoMSFT.Buffer componentType(@NativeType("XrSceneComponentTypeMSFT") int value) { XrSceneComponentsGetInfoMSFT.ncomponentType(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentsLocateInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentsLocateInfoMSFT.java index 36ab75f9f3..0da0214345 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentsLocateInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentsLocateInfoMSFT.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes the information to locate scene components. * @@ -24,7 +24,7 @@ *
                                                            *
                                                          • The {@link MSFTSceneUnderstanding XR_MSFT_scene_understanding} extension must be enabled prior to using {@link XrSceneComponentsLocateInfoMSFT}
                                                          • *
                                                          • {@code type} must be {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENTS_LOCATE_INFO_MSFT TYPE_SCENE_COMPONENTS_LOCATE_INFO_MSFT}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • + *
                                                          • {@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 componentIdCount} is not 0, {@code componentIds} must be a pointer to an array of {@code componentIdCount} {@link XrUuidMSFT} structures
                                                          • *
                                                          @@ -44,8 +44,8 @@ * uint32_t {@link #componentIdCount}; * {@link XrUuidMSFT XrUuidMSFT} const * {@link #componentIds}; * } - */ -public class XrSceneComponentsLocateInfoMSFT extends Struct implements NativeResource { + */ +public class XrSceneComponentsLocateInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,33 +55,33 @@ public class XrSceneComponentsLocateInfoMSFT extends Struct implements NativeResource { @@ -356,41 +356,41 @@ protected Buffer self() { protected XrSceneComponentsLocateInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneComponentsLocateInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneComponentsLocateInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneComponentsLocateInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSceneComponentsLocateInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSceneComponentsLocateInfoMSFT#baseSpace} field. */ - @NativeType("XrSpace") - public long baseSpace() { return XrSceneComponentsLocateInfoMSFT.nbaseSpace(address()); } - /** @return the value of the {@link XrSceneComponentsLocateInfoMSFT#time} field. */ - @NativeType("XrTime") - public long time() { return XrSceneComponentsLocateInfoMSFT.ntime(address()); } - /** @return the value of the {@link XrSceneComponentsLocateInfoMSFT#componentIdCount} field. */ - @NativeType("uint32_t") - public int componentIdCount() { return XrSceneComponentsLocateInfoMSFT.ncomponentIdCount(address()); } - /** @return a {@link XrUuidMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneComponentsLocateInfoMSFT#componentIds} field. */ - @Nullable - @NativeType("XrUuidMSFT const *") - public XrUuidMSFT.Buffer componentIds() { return XrSceneComponentsLocateInfoMSFT.ncomponentIds(address()); } - - /** Sets the specified value to the {@link XrSceneComponentsLocateInfoMSFT#type} field. */ - public XrSceneComponentsLocateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneComponentsLocateInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENTS_LOCATE_INFO_MSFT TYPE_SCENE_COMPONENTS_LOCATE_INFO_MSFT} value to the {@link XrSceneComponentsLocateInfoMSFT#type} field. */ - public XrSceneComponentsLocateInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_COMPONENTS_LOCATE_INFO_MSFT); } - /** Sets the specified value to the {@link XrSceneComponentsLocateInfoMSFT#next} field. */ - public XrSceneComponentsLocateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneComponentsLocateInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneComponentsLocateInfoMSFT#baseSpace} field. */ - public XrSceneComponentsLocateInfoMSFT.Buffer baseSpace(XrSpace value) { XrSceneComponentsLocateInfoMSFT.nbaseSpace(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneComponentsLocateInfoMSFT#time} field. */ - public XrSceneComponentsLocateInfoMSFT.Buffer time(@NativeType("XrTime") long value) { XrSceneComponentsLocateInfoMSFT.ntime(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneComponentsLocateInfoMSFT#componentIdCount} field. */ - public XrSceneComponentsLocateInfoMSFT.Buffer componentIdCount(@NativeType("uint32_t") int value) { XrSceneComponentsLocateInfoMSFT.ncomponentIdCount(address(), value); return this; } - /** Sets the address of the specified {@link XrUuidMSFT.Buffer} to the {@link XrSceneComponentsLocateInfoMSFT#componentIds} field. */ - public XrSceneComponentsLocateInfoMSFT.Buffer componentIds(@Nullable @NativeType("XrUuidMSFT const *") XrUuidMSFT.Buffer value) { XrSceneComponentsLocateInfoMSFT.ncomponentIds(address(), value); return this; } + + /** @return the value of the {@link XrSceneComponentsLocateInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneComponentsLocateInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneComponentsLocateInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSceneComponentsLocateInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSceneComponentsLocateInfoMSFT#baseSpace} field. */ + @NativeType("XrSpace") + public long baseSpace() { return XrSceneComponentsLocateInfoMSFT.nbaseSpace(address()); } + /** @return the value of the {@link XrSceneComponentsLocateInfoMSFT#time} field. */ + @NativeType("XrTime") + public long time() { return XrSceneComponentsLocateInfoMSFT.ntime(address()); } + /** @return the value of the {@link XrSceneComponentsLocateInfoMSFT#componentIdCount} field. */ + @NativeType("uint32_t") + public int componentIdCount() { return XrSceneComponentsLocateInfoMSFT.ncomponentIdCount(address()); } + /** @return a {@link XrUuidMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneComponentsLocateInfoMSFT#componentIds} field. */ + @Nullable + @NativeType("XrUuidMSFT const *") + public XrUuidMSFT.Buffer componentIds() { return XrSceneComponentsLocateInfoMSFT.ncomponentIds(address()); } + + /** Sets the specified value to the {@link XrSceneComponentsLocateInfoMSFT#type} field. */ + public XrSceneComponentsLocateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneComponentsLocateInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENTS_LOCATE_INFO_MSFT TYPE_SCENE_COMPONENTS_LOCATE_INFO_MSFT} value to the {@link XrSceneComponentsLocateInfoMSFT#type} field. */ + public XrSceneComponentsLocateInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_COMPONENTS_LOCATE_INFO_MSFT); } + /** Sets the specified value to the {@link XrSceneComponentsLocateInfoMSFT#next} field. */ + public XrSceneComponentsLocateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneComponentsLocateInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneComponentsLocateInfoMSFT#baseSpace} field. */ + public XrSceneComponentsLocateInfoMSFT.Buffer baseSpace(XrSpace value) { XrSceneComponentsLocateInfoMSFT.nbaseSpace(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneComponentsLocateInfoMSFT#time} field. */ + public XrSceneComponentsLocateInfoMSFT.Buffer time(@NativeType("XrTime") long value) { XrSceneComponentsLocateInfoMSFT.ntime(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneComponentsLocateInfoMSFT#componentIdCount} field. */ + public XrSceneComponentsLocateInfoMSFT.Buffer componentIdCount(@NativeType("uint32_t") int value) { XrSceneComponentsLocateInfoMSFT.ncomponentIdCount(address(), value); return this; } + /** Sets the address of the specified {@link XrUuidMSFT.Buffer} to the {@link XrSceneComponentsLocateInfoMSFT#componentIds} field. */ + public XrSceneComponentsLocateInfoMSFT.Buffer componentIds(@Nullable @NativeType("XrUuidMSFT const *") XrUuidMSFT.Buffer value) { XrSceneComponentsLocateInfoMSFT.ncomponentIds(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentsMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentsMSFT.java index 301a3718d8..24bb455227 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentsMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneComponentsMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Scene components. * @@ -23,7 +23,7 @@ *
                                                            *
                                                          • The {@link MSFTSceneUnderstanding XR_MSFT_scene_understanding} extension must be enabled prior to using {@link XrSceneComponentsMSFT}
                                                          • *
                                                          • {@code type} must be {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENTS_MSFT TYPE_SCENE_COMPONENTS_MSFT}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrSceneMeshesMSFT}, {@link XrSceneObjectsMSFT}, {@link XrScenePlanesMSFT}
                                                          • + *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrSceneMeshesMSFT}, {@link XrSceneObjectsMSFT}, {@link XrScenePlanesMSFT}
                                                          • *
                                                          • If {@code componentCapacityInput} is not 0, {@code components} must be a pointer to an array of {@code componentCapacityInput} {@link XrSceneComponentMSFT} structures
                                                          • *
                                                          * @@ -41,8 +41,8 @@ * uint32_t {@link #componentCountOutput}; * {@link XrSceneComponentMSFT XrSceneComponentMSFT} * {@link #components}; * } - */ -public class XrSceneComponentsMSFT extends Struct implements NativeResource { + */ +public class XrSceneComponentsMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,30 +52,30 @@ public class XrSceneComponentsMSFT extends Struct impleme /** The struct member offsets. */ public static final int - TYPE, - NEXT, - COMPONENTCAPACITYINPUT, - COMPONENTCOUNTOUTPUT, - COMPONENTS; + TYPE, + NEXT, + COMPONENTCAPACITYINPUT, + COMPONENTCOUNTOUTPUT, + COMPONENTS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - COMPONENTCAPACITYINPUT = layout.offsetof(2); - COMPONENTCOUNTOUTPUT = layout.offsetof(3); - COMPONENTS = layout.offsetof(4); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + COMPONENTCAPACITYINPUT = layout.offsetof(2); + COMPONENTCOUNTOUTPUT = layout.offsetof(3); + COMPONENTS = layout.offsetof(4); + } protected XrSceneComponentsMSFT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -98,56 +98,56 @@ public XrSceneComponentsMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** the capacity of the array, or 0 to indicate a request to retrieve the required capacity. */ - @NativeType("uint32_t") - public int componentCapacityInput() { return ncomponentCapacityInput(address()); } - /** a pointer to the count of components, or a pointer to the required capacity in the case that {@code componentCapacityInput} is insufficient. */ - @NativeType("uint32_t") - public int componentCountOutput() { return ncomponentCountOutput(address()); } - /** an array of {@link XrSceneComponentMSFT}. */ - @Nullable - @NativeType("XrSceneComponentMSFT *") - public XrSceneComponentMSFT.Buffer components() { return ncomponents(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSceneComponentsMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENTS_MSFT TYPE_SCENE_COMPONENTS_MSFT} value to the {@link #type} field. */ - public XrSceneComponentsMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_COMPONENTS_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrSceneComponentsMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrSceneMeshesMSFT} value to the {@code next} chain. */ - public XrSceneComponentsMSFT next(XrSceneMeshesMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSceneObjectsMSFT} value to the {@code next} chain. */ - public XrSceneComponentsMSFT next(XrSceneObjectsMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrScenePlanesMSFT} value to the {@code next} chain. */ - public XrSceneComponentsMSFT next(XrScenePlanesMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #componentCapacityInput} field. */ - public XrSceneComponentsMSFT componentCapacityInput(@NativeType("uint32_t") int value) { ncomponentCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #componentCountOutput} field. */ - public XrSceneComponentsMSFT componentCountOutput(@NativeType("uint32_t") int value) { ncomponentCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrSceneComponentMSFT.Buffer} to the {@link #components} field. */ - public XrSceneComponentsMSFT components(@Nullable @NativeType("XrSceneComponentMSFT *") XrSceneComponentMSFT.Buffer value) { ncomponents(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the capacity of the array, or 0 to indicate a request to retrieve the required capacity. */ + @NativeType("uint32_t") + public int componentCapacityInput() { return ncomponentCapacityInput(address()); } + /** a pointer to the count of components, or a pointer to the required capacity in the case that {@code componentCapacityInput} is insufficient. */ + @NativeType("uint32_t") + public int componentCountOutput() { return ncomponentCountOutput(address()); } + /** an array of {@link XrSceneComponentMSFT}. */ + @Nullable + @NativeType("XrSceneComponentMSFT *") + public XrSceneComponentMSFT.Buffer components() { return ncomponents(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSceneComponentsMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENTS_MSFT TYPE_SCENE_COMPONENTS_MSFT} value to the {@link #type} field. */ + public XrSceneComponentsMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_COMPONENTS_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSceneComponentsMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrSceneMeshesMSFT} value to the {@code next} chain. */ + public XrSceneComponentsMSFT next(XrSceneMeshesMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSceneObjectsMSFT} value to the {@code next} chain. */ + public XrSceneComponentsMSFT next(XrSceneObjectsMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrScenePlanesMSFT} value to the {@code next} chain. */ + public XrSceneComponentsMSFT next(XrScenePlanesMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #componentCapacityInput} field. */ + public XrSceneComponentsMSFT componentCapacityInput(@NativeType("uint32_t") int value) { ncomponentCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #componentCountOutput} field. */ + public XrSceneComponentsMSFT componentCountOutput(@NativeType("uint32_t") int value) { ncomponentCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrSceneComponentMSFT.Buffer} to the {@link #components} field. */ + public XrSceneComponentsMSFT components(@Nullable @NativeType("XrSceneComponentMSFT *") XrSceneComponentMSFT.Buffer value) { ncomponents(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSceneComponentsMSFT set( - int type, - long next, - int componentCapacityInput, - int componentCountOutput, + int type, + long next, + int componentCapacityInput, + int componentCountOutput, @Nullable XrSceneComponentMSFT.Buffer components - ) { - type(type); - next(next); - componentCapacityInput(componentCapacityInput); - componentCountOutput(componentCountOutput); - components(components); + ) { + type(type); + next(next); + componentCapacityInput(componentCapacityInput); + componentCountOutput(componentCountOutput); + components(components); return this; } @@ -276,30 +276,30 @@ public static XrSceneComponentsMSFT.Buffer calloc(int capacity, MemoryStack stac } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneComponentsMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSceneComponentsMSFT.NEXT); } - /** Unsafe version of {@link #componentCapacityInput}. */ - public static int ncomponentCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrSceneComponentsMSFT.COMPONENTCAPACITYINPUT); } - /** Unsafe version of {@link #componentCountOutput}. */ - public static int ncomponentCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrSceneComponentsMSFT.COMPONENTCOUNTOUTPUT); } - /** Unsafe version of {@link #components}. */ - @Nullable public static XrSceneComponentMSFT.Buffer ncomponents(long struct) { return XrSceneComponentMSFT.createSafe(memGetAddress(struct + XrSceneComponentsMSFT.COMPONENTS), ncomponentCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneComponentsMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneComponentsMSFT.NEXT, value); } - /** Sets the specified value to the {@code componentCapacityInput} field of the specified {@code struct}. */ - public static void ncomponentCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneComponentsMSFT.COMPONENTCAPACITYINPUT, value); } - /** Unsafe version of {@link #componentCountOutput(int) componentCountOutput}. */ - public static void ncomponentCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneComponentsMSFT.COMPONENTCOUNTOUTPUT, value); } - /** Unsafe version of {@link #components(XrSceneComponentMSFT.Buffer) components}. */ - public static void ncomponents(long struct, @Nullable XrSceneComponentMSFT.Buffer value) { memPutAddress(struct + XrSceneComponentsMSFT.COMPONENTS, memAddressSafe(value)); if (value != null) { ncomponentCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneComponentsMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSceneComponentsMSFT.NEXT); } + /** Unsafe version of {@link #componentCapacityInput}. */ + public static int ncomponentCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrSceneComponentsMSFT.COMPONENTCAPACITYINPUT); } + /** Unsafe version of {@link #componentCountOutput}. */ + public static int ncomponentCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrSceneComponentsMSFT.COMPONENTCOUNTOUTPUT); } + /** Unsafe version of {@link #components}. */ + @Nullable public static XrSceneComponentMSFT.Buffer ncomponents(long struct) { return XrSceneComponentMSFT.createSafe(memGetAddress(struct + XrSceneComponentsMSFT.COMPONENTS), ncomponentCapacityInput(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneComponentsMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneComponentsMSFT.NEXT, value); } + /** Sets the specified value to the {@code componentCapacityInput} field of the specified {@code struct}. */ + public static void ncomponentCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneComponentsMSFT.COMPONENTCAPACITYINPUT, value); } + /** Unsafe version of {@link #componentCountOutput(int) componentCountOutput}. */ + public static void ncomponentCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneComponentsMSFT.COMPONENTCOUNTOUTPUT, value); } + /** Unsafe version of {@link #components(XrSceneComponentMSFT.Buffer) components}. */ + public static void ncomponents(long struct, @Nullable XrSceneComponentMSFT.Buffer value) { memPutAddress(struct + XrSceneComponentsMSFT.COMPONENTS, memAddressSafe(value)); if (value != null) { ncomponentCapacityInput(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrSceneComponentsMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -336,42 +336,42 @@ protected Buffer self() { protected XrSceneComponentsMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneComponentsMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneComponentsMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneComponentsMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrSceneComponentsMSFT.nnext(address()); } - /** @return the value of the {@link XrSceneComponentsMSFT#componentCapacityInput} field. */ - @NativeType("uint32_t") - public int componentCapacityInput() { return XrSceneComponentsMSFT.ncomponentCapacityInput(address()); } - /** @return the value of the {@link XrSceneComponentsMSFT#componentCountOutput} field. */ - @NativeType("uint32_t") - public int componentCountOutput() { return XrSceneComponentsMSFT.ncomponentCountOutput(address()); } - /** @return a {@link XrSceneComponentMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneComponentsMSFT#components} field. */ - @Nullable - @NativeType("XrSceneComponentMSFT *") - public XrSceneComponentMSFT.Buffer components() { return XrSceneComponentsMSFT.ncomponents(address()); } - - /** Sets the specified value to the {@link XrSceneComponentsMSFT#type} field. */ - public XrSceneComponentsMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneComponentsMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENTS_MSFT TYPE_SCENE_COMPONENTS_MSFT} value to the {@link XrSceneComponentsMSFT#type} field. */ - public XrSceneComponentsMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_COMPONENTS_MSFT); } - /** Sets the specified value to the {@link XrSceneComponentsMSFT#next} field. */ - public XrSceneComponentsMSFT.Buffer next(@NativeType("void *") long value) { XrSceneComponentsMSFT.nnext(address(), value); return this; } - /** Prepends the specified {@link XrSceneMeshesMSFT} value to the {@code next} chain. */ - public XrSceneComponentsMSFT.Buffer next(XrSceneMeshesMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSceneObjectsMSFT} value to the {@code next} chain. */ - public XrSceneComponentsMSFT.Buffer next(XrSceneObjectsMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrScenePlanesMSFT} value to the {@code next} chain. */ - public XrSceneComponentsMSFT.Buffer next(XrScenePlanesMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrSceneComponentsMSFT#componentCapacityInput} field. */ - public XrSceneComponentsMSFT.Buffer componentCapacityInput(@NativeType("uint32_t") int value) { XrSceneComponentsMSFT.ncomponentCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneComponentsMSFT#componentCountOutput} field. */ - public XrSceneComponentsMSFT.Buffer componentCountOutput(@NativeType("uint32_t") int value) { XrSceneComponentsMSFT.ncomponentCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrSceneComponentMSFT.Buffer} to the {@link XrSceneComponentsMSFT#components} field. */ - public XrSceneComponentsMSFT.Buffer components(@Nullable @NativeType("XrSceneComponentMSFT *") XrSceneComponentMSFT.Buffer value) { XrSceneComponentsMSFT.ncomponents(address(), value); return this; } + + /** @return the value of the {@link XrSceneComponentsMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneComponentsMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneComponentsMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrSceneComponentsMSFT.nnext(address()); } + /** @return the value of the {@link XrSceneComponentsMSFT#componentCapacityInput} field. */ + @NativeType("uint32_t") + public int componentCapacityInput() { return XrSceneComponentsMSFT.ncomponentCapacityInput(address()); } + /** @return the value of the {@link XrSceneComponentsMSFT#componentCountOutput} field. */ + @NativeType("uint32_t") + public int componentCountOutput() { return XrSceneComponentsMSFT.ncomponentCountOutput(address()); } + /** @return a {@link XrSceneComponentMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneComponentsMSFT#components} field. */ + @Nullable + @NativeType("XrSceneComponentMSFT *") + public XrSceneComponentMSFT.Buffer components() { return XrSceneComponentsMSFT.ncomponents(address()); } + + /** Sets the specified value to the {@link XrSceneComponentsMSFT#type} field. */ + public XrSceneComponentsMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneComponentsMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_COMPONENTS_MSFT TYPE_SCENE_COMPONENTS_MSFT} value to the {@link XrSceneComponentsMSFT#type} field. */ + public XrSceneComponentsMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_COMPONENTS_MSFT); } + /** Sets the specified value to the {@link XrSceneComponentsMSFT#next} field. */ + public XrSceneComponentsMSFT.Buffer next(@NativeType("void *") long value) { XrSceneComponentsMSFT.nnext(address(), value); return this; } + /** Prepends the specified {@link XrSceneMeshesMSFT} value to the {@code next} chain. */ + public XrSceneComponentsMSFT.Buffer next(XrSceneMeshesMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSceneObjectsMSFT} value to the {@code next} chain. */ + public XrSceneComponentsMSFT.Buffer next(XrSceneObjectsMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrScenePlanesMSFT} value to the {@code next} chain. */ + public XrSceneComponentsMSFT.Buffer next(XrScenePlanesMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrSceneComponentsMSFT#componentCapacityInput} field. */ + public XrSceneComponentsMSFT.Buffer componentCapacityInput(@NativeType("uint32_t") int value) { XrSceneComponentsMSFT.ncomponentCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneComponentsMSFT#componentCountOutput} field. */ + public XrSceneComponentsMSFT.Buffer componentCountOutput(@NativeType("uint32_t") int value) { XrSceneComponentsMSFT.ncomponentCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrSceneComponentMSFT.Buffer} to the {@link XrSceneComponentsMSFT#components} field. */ + public XrSceneComponentsMSFT.Buffer components(@Nullable @NativeType("XrSceneComponentMSFT *") XrSceneComponentMSFT.Buffer value) { XrSceneComponentsMSFT.ncomponents(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneCreateInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneCreateInfoMSFT.java index 8275d96b06..b9d3ff7638 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneCreateInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneCreateInfoMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The information to create a scene handle. * @@ -23,7 +23,7 @@ *
                                                            *
                                                          • The {@link MSFTSceneUnderstanding XR_MSFT_scene_understanding} extension must be enabled prior to using {@link XrSceneCreateInfoMSFT}
                                                          • *
                                                          • {@code type} must be {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_CREATE_INFO_MSFT TYPE_SCENE_CREATE_INFO_MSFT}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • + *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • *
                                                          * *
                                                          See Also
                                                          @@ -37,8 +37,8 @@ * XrStructureType {@link #type}; * void const * {@link #next}; * } - */ -public class XrSceneCreateInfoMSFT extends Struct implements NativeResource { + */ +public class XrSceneCreateInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,21 +48,21 @@ public class XrSceneCreateInfoMSFT extends Struct impleme /** The struct member offsets. */ public static final int - TYPE, - NEXT; + TYPE, + NEXT; static { - Layout layout = __struct( - __member(4), + Layout layout = __struct( + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + } protected XrSceneCreateInfoMSFT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -85,28 +85,28 @@ public XrSceneCreateInfoMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSceneCreateInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_CREATE_INFO_MSFT TYPE_SCENE_CREATE_INFO_MSFT} value to the {@link #type} field. */ - public XrSceneCreateInfoMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_CREATE_INFO_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrSceneCreateInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSceneCreateInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_CREATE_INFO_MSFT TYPE_SCENE_CREATE_INFO_MSFT} value to the {@link #type} field. */ + public XrSceneCreateInfoMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSceneCreateInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSceneCreateInfoMSFT set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -235,18 +235,18 @@ public static XrSceneCreateInfoMSFT.Buffer calloc(int capacity, MemoryStack stac } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneCreateInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSceneCreateInfoMSFT.NEXT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneCreateInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneCreateInfoMSFT.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneCreateInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSceneCreateInfoMSFT.NEXT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneCreateInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneCreateInfoMSFT.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrSceneCreateInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -283,20 +283,20 @@ protected Buffer self() { protected XrSceneCreateInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneCreateInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneCreateInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneCreateInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSceneCreateInfoMSFT.nnext(address()); } - - /** Sets the specified value to the {@link XrSceneCreateInfoMSFT#type} field. */ - public XrSceneCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneCreateInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_CREATE_INFO_MSFT TYPE_SCENE_CREATE_INFO_MSFT} value to the {@link XrSceneCreateInfoMSFT#type} field. */ - public XrSceneCreateInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_CREATE_INFO_MSFT); } - /** Sets the specified value to the {@link XrSceneCreateInfoMSFT#next} field. */ - public XrSceneCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneCreateInfoMSFT.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSceneCreateInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneCreateInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneCreateInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSceneCreateInfoMSFT.nnext(address()); } + + /** Sets the specified value to the {@link XrSceneCreateInfoMSFT#type} field. */ + public XrSceneCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneCreateInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_CREATE_INFO_MSFT TYPE_SCENE_CREATE_INFO_MSFT} value to the {@link XrSceneCreateInfoMSFT#type} field. */ + public XrSceneCreateInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link XrSceneCreateInfoMSFT#next} field. */ + public XrSceneCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneCreateInfoMSFT.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneDeserializeInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneDeserializeInfoMSFT.java index 2bd1d0449b..b13ccf2580 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneDeserializeInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneDeserializeInfoMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The information to deserialize a binary scene. * @@ -27,7 +27,7 @@ *
                                                            *
                                                          • The {@link MSFTSceneUnderstandingSerialization XR_MSFT_scene_understanding_serialization} extension must be enabled prior to using {@link XrSceneDeserializeInfoMSFT}
                                                          • *
                                                          • {@code type} must be {@link MSFTSceneUnderstandingSerialization#XR_TYPE_SCENE_DESERIALIZE_INFO_MSFT TYPE_SCENE_DESERIALIZE_INFO_MSFT}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • + *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • *
                                                          • If {@code fragmentCount} is not 0, {@code fragments} must be a pointer to an array of {@code fragmentCount} valid {@link XrDeserializeSceneFragmentMSFT} structures
                                                          • *
                                                          * @@ -44,8 +44,8 @@ * uint32_t {@link #fragmentCount}; * {@link XrDeserializeSceneFragmentMSFT XrDeserializeSceneFragmentMSFT} const * {@link #fragments}; * } - */ -public class XrSceneDeserializeInfoMSFT extends Struct implements NativeResource { + */ +public class XrSceneDeserializeInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,27 +55,27 @@ public class XrSceneDeserializeInfoMSFT extends Struct implements NativeResource { @@ -319,31 +319,31 @@ protected Buffer self() { protected XrSceneDeserializeInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneDeserializeInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneDeserializeInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneDeserializeInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSceneDeserializeInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSceneDeserializeInfoMSFT#fragmentCount} field. */ - @NativeType("uint32_t") - public int fragmentCount() { return XrSceneDeserializeInfoMSFT.nfragmentCount(address()); } - /** @return a {@link XrDeserializeSceneFragmentMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneDeserializeInfoMSFT#fragments} field. */ - @Nullable - @NativeType("XrDeserializeSceneFragmentMSFT const *") - public XrDeserializeSceneFragmentMSFT.Buffer fragments() { return XrSceneDeserializeInfoMSFT.nfragments(address()); } - - /** Sets the specified value to the {@link XrSceneDeserializeInfoMSFT#type} field. */ - public XrSceneDeserializeInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneDeserializeInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstandingSerialization#XR_TYPE_SCENE_DESERIALIZE_INFO_MSFT TYPE_SCENE_DESERIALIZE_INFO_MSFT} value to the {@link XrSceneDeserializeInfoMSFT#type} field. */ - public XrSceneDeserializeInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstandingSerialization.XR_TYPE_SCENE_DESERIALIZE_INFO_MSFT); } - /** Sets the specified value to the {@link XrSceneDeserializeInfoMSFT#next} field. */ - public XrSceneDeserializeInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneDeserializeInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneDeserializeInfoMSFT#fragmentCount} field. */ - public XrSceneDeserializeInfoMSFT.Buffer fragmentCount(@NativeType("uint32_t") int value) { XrSceneDeserializeInfoMSFT.nfragmentCount(address(), value); return this; } - /** Sets the address of the specified {@link XrDeserializeSceneFragmentMSFT.Buffer} to the {@link XrSceneDeserializeInfoMSFT#fragments} field. */ - public XrSceneDeserializeInfoMSFT.Buffer fragments(@Nullable @NativeType("XrDeserializeSceneFragmentMSFT const *") XrDeserializeSceneFragmentMSFT.Buffer value) { XrSceneDeserializeInfoMSFT.nfragments(address(), value); return this; } + + /** @return the value of the {@link XrSceneDeserializeInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneDeserializeInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneDeserializeInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSceneDeserializeInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSceneDeserializeInfoMSFT#fragmentCount} field. */ + @NativeType("uint32_t") + public int fragmentCount() { return XrSceneDeserializeInfoMSFT.nfragmentCount(address()); } + /** @return a {@link XrDeserializeSceneFragmentMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneDeserializeInfoMSFT#fragments} field. */ + @Nullable + @NativeType("XrDeserializeSceneFragmentMSFT const *") + public XrDeserializeSceneFragmentMSFT.Buffer fragments() { return XrSceneDeserializeInfoMSFT.nfragments(address()); } + + /** Sets the specified value to the {@link XrSceneDeserializeInfoMSFT#type} field. */ + public XrSceneDeserializeInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneDeserializeInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstandingSerialization#XR_TYPE_SCENE_DESERIALIZE_INFO_MSFT TYPE_SCENE_DESERIALIZE_INFO_MSFT} value to the {@link XrSceneDeserializeInfoMSFT#type} field. */ + public XrSceneDeserializeInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstandingSerialization.XR_TYPE_SCENE_DESERIALIZE_INFO_MSFT); } + /** Sets the specified value to the {@link XrSceneDeserializeInfoMSFT#next} field. */ + public XrSceneDeserializeInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneDeserializeInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneDeserializeInfoMSFT#fragmentCount} field. */ + public XrSceneDeserializeInfoMSFT.Buffer fragmentCount(@NativeType("uint32_t") int value) { XrSceneDeserializeInfoMSFT.nfragmentCount(address(), value); return this; } + /** Sets the address of the specified {@link XrDeserializeSceneFragmentMSFT.Buffer} to the {@link XrSceneDeserializeInfoMSFT#fragments} field. */ + public XrSceneDeserializeInfoMSFT.Buffer fragments(@Nullable @NativeType("XrDeserializeSceneFragmentMSFT const *") XrDeserializeSceneFragmentMSFT.Buffer value) { XrSceneDeserializeInfoMSFT.nfragments(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneFrustumBoundMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneFrustumBoundMSFT.java index 33885b065c..8db0e57e69 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneFrustumBoundMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneFrustumBoundMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describe a scene frustum bounds. * @@ -40,8 +40,8 @@ * {@link XrFovf XrFovf} {@link #fov}; * float {@link #farDistance}; * } - */ -public class XrSceneFrustumBoundMSFT extends Struct implements NativeResource { + */ +public class XrSceneFrustumBoundMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,24 +51,24 @@ public class XrSceneFrustumBoundMSFT extends Struct imp /** The struct member offsets. */ public static final int - POSE, - FOV, - FARDISTANCE; + POSE, + FOV, + FARDISTANCE; static { - Layout layout = __struct( - __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), - __member(XrFovf.SIZEOF, XrFovf.ALIGNOF), + Layout layout = __struct( + __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), + __member(XrFovf.SIZEOF, XrFovf.ALIGNOF), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - POSE = layout.offsetof(0); - FOV = layout.offsetof(1); - FARDISTANCE = layout.offsetof(2); - } + POSE = layout.offsetof(0); + FOV = layout.offsetof(1); + FARDISTANCE = layout.offsetof(2); + } protected XrSceneFrustumBoundMSFT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -91,34 +91,34 @@ public XrSceneFrustumBoundMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** an {@link XrPosef} defining the position and orientation of the tip of the frustum bound within the reference frame of the corresponding {@link XrSceneBoundsMSFT}{@code ::space}. */ - public XrPosef pose() { return npose(address()); } - /** an {@link XrFovf} for the four sides of the frustum bound where {@code angleLeft} and {@code angleRight} are along the X axis and {@code angleUp} and {@code angleDown} are along the Y axis of the frustum bound space. */ - public XrFovf fov() { return nfov(address()); } - /** the positive distance of the far plane of the frustum bound along the -Z direction of the frustum bound space. */ - public float farDistance() { return nfarDistance(address()); } - - /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ - public XrSceneFrustumBoundMSFT pose(XrPosef value) { npose(address(), value); return this; } - /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneFrustumBoundMSFT pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrFovf} to the {@link #fov} field. */ - public XrSceneFrustumBoundMSFT fov(XrFovf value) { nfov(address(), value); return this; } - /** Passes the {@link #fov} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneFrustumBoundMSFT fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } - /** Sets the specified value to the {@link #farDistance} field. */ - public XrSceneFrustumBoundMSFT farDistance(float value) { nfarDistance(address(), value); return this; } + + /** an {@link XrPosef} defining the position and orientation of the tip of the frustum bound within the reference frame of the corresponding {@link XrSceneBoundsMSFT}{@code ::space}. */ + public XrPosef pose() { return npose(address()); } + /** an {@link XrFovf} for the four sides of the frustum bound where {@code angleLeft} and {@code angleRight} are along the X axis and {@code angleUp} and {@code angleDown} are along the Y axis of the frustum bound space. */ + public XrFovf fov() { return nfov(address()); } + /** the positive distance of the far plane of the frustum bound along the -Z direction of the frustum bound space. */ + public float farDistance() { return nfarDistance(address()); } + + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrSceneFrustumBoundMSFT pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneFrustumBoundMSFT pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrFovf} to the {@link #fov} field. */ + public XrSceneFrustumBoundMSFT fov(XrFovf value) { nfov(address(), value); return this; } + /** Passes the {@link #fov} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneFrustumBoundMSFT fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } + /** Sets the specified value to the {@link #farDistance} field. */ + public XrSceneFrustumBoundMSFT farDistance(float value) { nfarDistance(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSceneFrustumBoundMSFT set( - XrPosef pose, - XrFovf fov, + XrPosef pose, + XrFovf fov, float farDistance - ) { - pose(pose); - fov(fov); - farDistance(farDistance); + ) { + pose(pose); + fov(fov); + farDistance(farDistance); return this; } @@ -247,22 +247,22 @@ public static XrSceneFrustumBoundMSFT.Buffer calloc(int capacity, MemoryStack st } // ----------------------------------- - - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrSceneFrustumBoundMSFT.POSE); } - /** Unsafe version of {@link #fov}. */ - public static XrFovf nfov(long struct) { return XrFovf.create(struct + XrSceneFrustumBoundMSFT.FOV); } - /** Unsafe version of {@link #farDistance}. */ - public static float nfarDistance(long struct) { return UNSAFE.getFloat(null, struct + XrSceneFrustumBoundMSFT.FARDISTANCE); } - - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrSceneFrustumBoundMSFT.POSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #fov(XrFovf) fov}. */ - public static void nfov(long struct, XrFovf value) { memCopy(value.address(), struct + XrSceneFrustumBoundMSFT.FOV, XrFovf.SIZEOF); } - /** Unsafe version of {@link #farDistance(float) farDistance}. */ - public static void nfarDistance(long struct, float value) { UNSAFE.putFloat(null, struct + XrSceneFrustumBoundMSFT.FARDISTANCE, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrSceneFrustumBoundMSFT.POSE); } + /** Unsafe version of {@link #fov}. */ + public static XrFovf nfov(long struct) { return XrFovf.create(struct + XrSceneFrustumBoundMSFT.FOV); } + /** Unsafe version of {@link #farDistance}. */ + public static float nfarDistance(long struct) { return UNSAFE.getFloat(null, struct + XrSceneFrustumBoundMSFT.FARDISTANCE); } + + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrSceneFrustumBoundMSFT.POSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #fov(XrFovf) fov}. */ + public static void nfov(long struct, XrFovf value) { memCopy(value.address(), struct + XrSceneFrustumBoundMSFT.FOV, XrFovf.SIZEOF); } + /** Unsafe version of {@link #farDistance(float) farDistance}. */ + public static void nfarDistance(long struct, float value) { UNSAFE.putFloat(null, struct + XrSceneFrustumBoundMSFT.FARDISTANCE, value); } + + // ----------------------------------- /** An array of {@link XrSceneFrustumBoundMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -299,24 +299,24 @@ protected Buffer self() { protected XrSceneFrustumBoundMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return a {@link XrPosef} view of the {@link XrSceneFrustumBoundMSFT#pose} field. */ - public XrPosef pose() { return XrSceneFrustumBoundMSFT.npose(address()); } - /** @return a {@link XrFovf} view of the {@link XrSceneFrustumBoundMSFT#fov} field. */ - public XrFovf fov() { return XrSceneFrustumBoundMSFT.nfov(address()); } - /** @return the value of the {@link XrSceneFrustumBoundMSFT#farDistance} field. */ - public float farDistance() { return XrSceneFrustumBoundMSFT.nfarDistance(address()); } - - /** Copies the specified {@link XrPosef} to the {@link XrSceneFrustumBoundMSFT#pose} field. */ - public XrSceneFrustumBoundMSFT.Buffer pose(XrPosef value) { XrSceneFrustumBoundMSFT.npose(address(), value); return this; } - /** Passes the {@link XrSceneFrustumBoundMSFT#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneFrustumBoundMSFT.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrFovf} to the {@link XrSceneFrustumBoundMSFT#fov} field. */ - public XrSceneFrustumBoundMSFT.Buffer fov(XrFovf value) { XrSceneFrustumBoundMSFT.nfov(address(), value); return this; } - /** Passes the {@link XrSceneFrustumBoundMSFT#fov} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneFrustumBoundMSFT.Buffer fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } - /** Sets the specified value to the {@link XrSceneFrustumBoundMSFT#farDistance} field. */ - public XrSceneFrustumBoundMSFT.Buffer farDistance(float value) { XrSceneFrustumBoundMSFT.nfarDistance(address(), value); return this; } + + /** @return a {@link XrPosef} view of the {@link XrSceneFrustumBoundMSFT#pose} field. */ + public XrPosef pose() { return XrSceneFrustumBoundMSFT.npose(address()); } + /** @return a {@link XrFovf} view of the {@link XrSceneFrustumBoundMSFT#fov} field. */ + public XrFovf fov() { return XrSceneFrustumBoundMSFT.nfov(address()); } + /** @return the value of the {@link XrSceneFrustumBoundMSFT#farDistance} field. */ + public float farDistance() { return XrSceneFrustumBoundMSFT.nfarDistance(address()); } + + /** Copies the specified {@link XrPosef} to the {@link XrSceneFrustumBoundMSFT#pose} field. */ + public XrSceneFrustumBoundMSFT.Buffer pose(XrPosef value) { XrSceneFrustumBoundMSFT.npose(address(), value); return this; } + /** Passes the {@link XrSceneFrustumBoundMSFT#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneFrustumBoundMSFT.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrFovf} to the {@link XrSceneFrustumBoundMSFT#fov} field. */ + public XrSceneFrustumBoundMSFT.Buffer fov(XrFovf value) { XrSceneFrustumBoundMSFT.nfov(address(), value); return this; } + /** Passes the {@link XrSceneFrustumBoundMSFT#fov} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneFrustumBoundMSFT.Buffer fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } + /** Sets the specified value to the {@link XrSceneFrustumBoundMSFT#farDistance} field. */ + public XrSceneFrustumBoundMSFT.Buffer farDistance(float value) { XrSceneFrustumBoundMSFT.nfarDistance(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMSFT.java index 94f9868b24..ec47785db2 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMSFT.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrSceneMSFT} handle. */ + +/** Wraps an {@code XrSceneMSFT} handle. */ public class XrSceneMSFT extends DispatchableHandle { private final XrSceneObserverMSFT sceneObserverMSFT; @@ -26,4 +26,4 @@ public XrSceneObserverMSFT getSceneObserverMSFT() { return sceneObserverMSFT; } -} +} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshBuffersGetInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshBuffersGetInfoMSFT.java index 4f18cac1d9..da3a1fdb91 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshBuffersGetInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshBuffersGetInfoMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The information to get the scene mesh buffer data. * @@ -23,7 +23,7 @@ *
                                                            *
                                                          • The {@link MSFTSceneUnderstanding XR_MSFT_scene_understanding} extension must be enabled prior to using {@link XrSceneMeshBuffersGetInfoMSFT}
                                                          • *
                                                          • {@code type} must be {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_BUFFERS_GET_INFO_MSFT TYPE_SCENE_MESH_BUFFERS_GET_INFO_MSFT}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • + *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • *
                                                          * *
                                                          See Also
                                                          @@ -38,8 +38,8 @@ * void const * {@link #next}; * uint64_t {@link #meshBufferId}; * } - */ -public class XrSceneMeshBuffersGetInfoMSFT extends Struct implements NativeResource { + */ +public class XrSceneMeshBuffersGetInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -49,24 +49,24 @@ public class XrSceneMeshBuffersGetInfoMSFT extends Struct implements NativeResource { @@ -298,25 +298,25 @@ protected Buffer self() { protected XrSceneMeshBuffersGetInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneMeshBuffersGetInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneMeshBuffersGetInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneMeshBuffersGetInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSceneMeshBuffersGetInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSceneMeshBuffersGetInfoMSFT#meshBufferId} field. */ - @NativeType("uint64_t") - public long meshBufferId() { return XrSceneMeshBuffersGetInfoMSFT.nmeshBufferId(address()); } - - /** Sets the specified value to the {@link XrSceneMeshBuffersGetInfoMSFT#type} field. */ - public XrSceneMeshBuffersGetInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneMeshBuffersGetInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_BUFFERS_GET_INFO_MSFT TYPE_SCENE_MESH_BUFFERS_GET_INFO_MSFT} value to the {@link XrSceneMeshBuffersGetInfoMSFT#type} field. */ - public XrSceneMeshBuffersGetInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_BUFFERS_GET_INFO_MSFT); } - /** Sets the specified value to the {@link XrSceneMeshBuffersGetInfoMSFT#next} field. */ - public XrSceneMeshBuffersGetInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneMeshBuffersGetInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneMeshBuffersGetInfoMSFT#meshBufferId} field. */ - public XrSceneMeshBuffersGetInfoMSFT.Buffer meshBufferId(@NativeType("uint64_t") long value) { XrSceneMeshBuffersGetInfoMSFT.nmeshBufferId(address(), value); return this; } + + /** @return the value of the {@link XrSceneMeshBuffersGetInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneMeshBuffersGetInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneMeshBuffersGetInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSceneMeshBuffersGetInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSceneMeshBuffersGetInfoMSFT#meshBufferId} field. */ + @NativeType("uint64_t") + public long meshBufferId() { return XrSceneMeshBuffersGetInfoMSFT.nmeshBufferId(address()); } + + /** Sets the specified value to the {@link XrSceneMeshBuffersGetInfoMSFT#type} field. */ + public XrSceneMeshBuffersGetInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneMeshBuffersGetInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_BUFFERS_GET_INFO_MSFT TYPE_SCENE_MESH_BUFFERS_GET_INFO_MSFT} value to the {@link XrSceneMeshBuffersGetInfoMSFT#type} field. */ + public XrSceneMeshBuffersGetInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_BUFFERS_GET_INFO_MSFT); } + /** Sets the specified value to the {@link XrSceneMeshBuffersGetInfoMSFT#next} field. */ + public XrSceneMeshBuffersGetInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneMeshBuffersGetInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneMeshBuffersGetInfoMSFT#meshBufferId} field. */ + public XrSceneMeshBuffersGetInfoMSFT.Buffer meshBufferId(@NativeType("uint64_t") long value) { XrSceneMeshBuffersGetInfoMSFT.nmeshBufferId(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshBuffersMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshBuffersMSFT.java index 427d8859df..a662fc1855 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshBuffersMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshBuffersMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Scene mesh buffers. * @@ -23,7 +23,7 @@ *
                                                            *
                                                          • The {@link MSFTSceneUnderstanding XR_MSFT_scene_understanding} extension must be enabled prior to using {@link XrSceneMeshBuffersMSFT}
                                                          • *
                                                          • {@code type} must be {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_BUFFERS_MSFT TYPE_SCENE_MESH_BUFFERS_MSFT}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • + *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • *
                                                          * *
                                                          See Also
                                                          @@ -37,8 +37,8 @@ * XrStructureType {@link #type}; * void * {@link #next}; * } - */ -public class XrSceneMeshBuffersMSFT extends Struct implements NativeResource { + */ +public class XrSceneMeshBuffersMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,21 +48,21 @@ public class XrSceneMeshBuffersMSFT extends Struct imple /** The struct member offsets. */ public static final int - TYPE, - NEXT; + TYPE, + NEXT; static { - Layout layout = __struct( - __member(4), + Layout layout = __struct( + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + } protected XrSceneMeshBuffersMSFT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -85,28 +85,28 @@ public XrSceneMeshBuffersMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. */ - @NativeType("void *") - public long next() { return nnext(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSceneMeshBuffersMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_BUFFERS_MSFT TYPE_SCENE_MESH_BUFFERS_MSFT} value to the {@link #type} field. */ - public XrSceneMeshBuffersMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_BUFFERS_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrSceneMeshBuffersMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void *") + public long next() { return nnext(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSceneMeshBuffersMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_BUFFERS_MSFT TYPE_SCENE_MESH_BUFFERS_MSFT} value to the {@link #type} field. */ + public XrSceneMeshBuffersMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_BUFFERS_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSceneMeshBuffersMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSceneMeshBuffersMSFT set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -235,18 +235,18 @@ public static XrSceneMeshBuffersMSFT.Buffer calloc(int capacity, MemoryStack sta } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshBuffersMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSceneMeshBuffersMSFT.NEXT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshBuffersMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneMeshBuffersMSFT.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshBuffersMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSceneMeshBuffersMSFT.NEXT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshBuffersMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneMeshBuffersMSFT.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrSceneMeshBuffersMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -283,20 +283,20 @@ protected Buffer self() { protected XrSceneMeshBuffersMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneMeshBuffersMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneMeshBuffersMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneMeshBuffersMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrSceneMeshBuffersMSFT.nnext(address()); } - - /** Sets the specified value to the {@link XrSceneMeshBuffersMSFT#type} field. */ - public XrSceneMeshBuffersMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneMeshBuffersMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_BUFFERS_MSFT TYPE_SCENE_MESH_BUFFERS_MSFT} value to the {@link XrSceneMeshBuffersMSFT#type} field. */ - public XrSceneMeshBuffersMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_BUFFERS_MSFT); } - /** Sets the specified value to the {@link XrSceneMeshBuffersMSFT#next} field. */ - public XrSceneMeshBuffersMSFT.Buffer next(@NativeType("void *") long value) { XrSceneMeshBuffersMSFT.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSceneMeshBuffersMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneMeshBuffersMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneMeshBuffersMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrSceneMeshBuffersMSFT.nnext(address()); } + + /** Sets the specified value to the {@link XrSceneMeshBuffersMSFT#type} field. */ + public XrSceneMeshBuffersMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneMeshBuffersMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_BUFFERS_MSFT TYPE_SCENE_MESH_BUFFERS_MSFT} value to the {@link XrSceneMeshBuffersMSFT#type} field. */ + public XrSceneMeshBuffersMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_BUFFERS_MSFT); } + /** Sets the specified value to the {@link XrSceneMeshBuffersMSFT#next} field. */ + public XrSceneMeshBuffersMSFT.Buffer next(@NativeType("void *") long value) { XrSceneMeshBuffersMSFT.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshIndicesUint16MSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshIndicesUint16MSFT.java index 96eb30997a..531ce5d6ad 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshIndicesUint16MSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshIndicesUint16MSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Scene mesh 16-bit indices. * @@ -23,7 +23,7 @@ *
                                                            *
                                                          • The {@link MSFTSceneUnderstanding XR_MSFT_scene_understanding} extension must be enabled prior to using {@link XrSceneMeshIndicesUint16MSFT}
                                                          • *
                                                          • {@code type} must be {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_INDICES_UINT16_MSFT TYPE_SCENE_MESH_INDICES_UINT16_MSFT}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • + *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • *
                                                          • If {@code indexCapacityInput} is not 0, {@code indices} must be a pointer to an array of {@code indexCapacityInput} {@code uint16_t} values
                                                          • *
                                                          * @@ -41,8 +41,8 @@ * uint32_t {@link #indexCountOutput}; * uint16_t * {@link #indices}; * } - */ -public class XrSceneMeshIndicesUint16MSFT extends Struct implements NativeResource { + */ +public class XrSceneMeshIndicesUint16MSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,30 +52,30 @@ public class XrSceneMeshIndicesUint16MSFT extends Structmust be returned in counter-clockwise order and three indices denote one triangle. */ - @Nullable - @NativeType("uint16_t *") - public ShortBuffer indices() { return nindices(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSceneMeshIndicesUint16MSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_INDICES_UINT16_MSFT TYPE_SCENE_MESH_INDICES_UINT16_MSFT} value to the {@link #type} field. */ - public XrSceneMeshIndicesUint16MSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_INDICES_UINT16_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrSceneMeshIndicesUint16MSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #indexCapacityInput} field. */ - public XrSceneMeshIndicesUint16MSFT indexCapacityInput(@NativeType("uint32_t") int value) { nindexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #indexCountOutput} field. */ - public XrSceneMeshIndicesUint16MSFT indexCountOutput(@NativeType("uint32_t") int value) { nindexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link ShortBuffer} to the {@link #indices} field. */ - public XrSceneMeshIndicesUint16MSFT indices(@Nullable @NativeType("uint16_t *") ShortBuffer value) { nindices(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the capacity of the array, or 0 to indicate a request to retrieve the required capacity. */ + @NativeType("uint32_t") + public int indexCapacityInput() { return nindexCapacityInput(address()); } + /** a pointer to the count of indices, or a pointer to the required capacity in the case that {@code indexCapacityInput} is insufficient. */ + @NativeType("uint32_t") + public int indexCountOutput() { return nindexCountOutput(address()); } + /** an array of triangle indices filled in by the runtime, specifying the indices of the scene mesh buffer in the vertices array. The triangle indices must be returned in counter-clockwise order and three indices denote one triangle. */ + @Nullable + @NativeType("uint16_t *") + public ShortBuffer indices() { return nindices(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSceneMeshIndicesUint16MSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_INDICES_UINT16_MSFT TYPE_SCENE_MESH_INDICES_UINT16_MSFT} value to the {@link #type} field. */ + public XrSceneMeshIndicesUint16MSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_INDICES_UINT16_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSceneMeshIndicesUint16MSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #indexCapacityInput} field. */ + public XrSceneMeshIndicesUint16MSFT indexCapacityInput(@NativeType("uint32_t") int value) { nindexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #indexCountOutput} field. */ + public XrSceneMeshIndicesUint16MSFT indexCountOutput(@NativeType("uint32_t") int value) { nindexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link ShortBuffer} to the {@link #indices} field. */ + public XrSceneMeshIndicesUint16MSFT indices(@Nullable @NativeType("uint16_t *") ShortBuffer value) { nindices(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSceneMeshIndicesUint16MSFT set( - int type, - long next, - int indexCapacityInput, - int indexCountOutput, + int type, + long next, + int indexCapacityInput, + int indexCountOutput, @Nullable ShortBuffer indices - ) { - type(type); - next(next); - indexCapacityInput(indexCapacityInput); - indexCountOutput(indexCountOutput); - indices(indices); + ) { + type(type); + next(next); + indexCapacityInput(indexCapacityInput); + indexCountOutput(indexCountOutput); + indices(indices); return this; } @@ -270,30 +270,30 @@ public static XrSceneMeshIndicesUint16MSFT.Buffer calloc(int capacity, MemorySta } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshIndicesUint16MSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSceneMeshIndicesUint16MSFT.NEXT); } - /** Unsafe version of {@link #indexCapacityInput}. */ - public static int nindexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshIndicesUint16MSFT.INDEXCAPACITYINPUT); } - /** Unsafe version of {@link #indexCountOutput}. */ - public static int nindexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshIndicesUint16MSFT.INDEXCOUNTOUTPUT); } - /** Unsafe version of {@link #indices() indices}. */ - @Nullable public static ShortBuffer nindices(long struct) { return memShortBufferSafe(memGetAddress(struct + XrSceneMeshIndicesUint16MSFT.INDICES), nindexCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshIndicesUint16MSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneMeshIndicesUint16MSFT.NEXT, value); } - /** Sets the specified value to the {@code indexCapacityInput} field of the specified {@code struct}. */ - public static void nindexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshIndicesUint16MSFT.INDEXCAPACITYINPUT, value); } - /** Unsafe version of {@link #indexCountOutput(int) indexCountOutput}. */ - public static void nindexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshIndicesUint16MSFT.INDEXCOUNTOUTPUT, value); } - /** Unsafe version of {@link #indices(ShortBuffer) indices}. */ - public static void nindices(long struct, @Nullable ShortBuffer value) { memPutAddress(struct + XrSceneMeshIndicesUint16MSFT.INDICES, memAddressSafe(value)); if (value != null) { nindexCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshIndicesUint16MSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSceneMeshIndicesUint16MSFT.NEXT); } + /** Unsafe version of {@link #indexCapacityInput}. */ + public static int nindexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshIndicesUint16MSFT.INDEXCAPACITYINPUT); } + /** Unsafe version of {@link #indexCountOutput}. */ + public static int nindexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshIndicesUint16MSFT.INDEXCOUNTOUTPUT); } + /** Unsafe version of {@link #indices() indices}. */ + @Nullable public static ShortBuffer nindices(long struct) { return memShortBufferSafe(memGetAddress(struct + XrSceneMeshIndicesUint16MSFT.INDICES), nindexCapacityInput(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshIndicesUint16MSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneMeshIndicesUint16MSFT.NEXT, value); } + /** Sets the specified value to the {@code indexCapacityInput} field of the specified {@code struct}. */ + public static void nindexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshIndicesUint16MSFT.INDEXCAPACITYINPUT, value); } + /** Unsafe version of {@link #indexCountOutput(int) indexCountOutput}. */ + public static void nindexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshIndicesUint16MSFT.INDEXCOUNTOUTPUT, value); } + /** Unsafe version of {@link #indices(ShortBuffer) indices}. */ + public static void nindices(long struct, @Nullable ShortBuffer value) { memPutAddress(struct + XrSceneMeshIndicesUint16MSFT.INDICES, memAddressSafe(value)); if (value != null) { nindexCapacityInput(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrSceneMeshIndicesUint16MSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -330,36 +330,36 @@ protected Buffer self() { protected XrSceneMeshIndicesUint16MSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneMeshIndicesUint16MSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneMeshIndicesUint16MSFT.ntype(address()); } - /** @return the value of the {@link XrSceneMeshIndicesUint16MSFT#next} field. */ - @NativeType("void *") - public long next() { return XrSceneMeshIndicesUint16MSFT.nnext(address()); } - /** @return the value of the {@link XrSceneMeshIndicesUint16MSFT#indexCapacityInput} field. */ - @NativeType("uint32_t") - public int indexCapacityInput() { return XrSceneMeshIndicesUint16MSFT.nindexCapacityInput(address()); } - /** @return the value of the {@link XrSceneMeshIndicesUint16MSFT#indexCountOutput} field. */ - @NativeType("uint32_t") - public int indexCountOutput() { return XrSceneMeshIndicesUint16MSFT.nindexCountOutput(address()); } - /** @return a {@link ShortBuffer} view of the data pointed to by the {@link XrSceneMeshIndicesUint16MSFT#indices} field. */ - @Nullable - @NativeType("uint16_t *") - public ShortBuffer indices() { return XrSceneMeshIndicesUint16MSFT.nindices(address()); } - - /** Sets the specified value to the {@link XrSceneMeshIndicesUint16MSFT#type} field. */ - public XrSceneMeshIndicesUint16MSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneMeshIndicesUint16MSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_INDICES_UINT16_MSFT TYPE_SCENE_MESH_INDICES_UINT16_MSFT} value to the {@link XrSceneMeshIndicesUint16MSFT#type} field. */ - public XrSceneMeshIndicesUint16MSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_INDICES_UINT16_MSFT); } - /** Sets the specified value to the {@link XrSceneMeshIndicesUint16MSFT#next} field. */ - public XrSceneMeshIndicesUint16MSFT.Buffer next(@NativeType("void *") long value) { XrSceneMeshIndicesUint16MSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneMeshIndicesUint16MSFT#indexCapacityInput} field. */ - public XrSceneMeshIndicesUint16MSFT.Buffer indexCapacityInput(@NativeType("uint32_t") int value) { XrSceneMeshIndicesUint16MSFT.nindexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneMeshIndicesUint16MSFT#indexCountOutput} field. */ - public XrSceneMeshIndicesUint16MSFT.Buffer indexCountOutput(@NativeType("uint32_t") int value) { XrSceneMeshIndicesUint16MSFT.nindexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link ShortBuffer} to the {@link XrSceneMeshIndicesUint16MSFT#indices} field. */ - public XrSceneMeshIndicesUint16MSFT.Buffer indices(@Nullable @NativeType("uint16_t *") ShortBuffer value) { XrSceneMeshIndicesUint16MSFT.nindices(address(), value); return this; } + + /** @return the value of the {@link XrSceneMeshIndicesUint16MSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneMeshIndicesUint16MSFT.ntype(address()); } + /** @return the value of the {@link XrSceneMeshIndicesUint16MSFT#next} field. */ + @NativeType("void *") + public long next() { return XrSceneMeshIndicesUint16MSFT.nnext(address()); } + /** @return the value of the {@link XrSceneMeshIndicesUint16MSFT#indexCapacityInput} field. */ + @NativeType("uint32_t") + public int indexCapacityInput() { return XrSceneMeshIndicesUint16MSFT.nindexCapacityInput(address()); } + /** @return the value of the {@link XrSceneMeshIndicesUint16MSFT#indexCountOutput} field. */ + @NativeType("uint32_t") + public int indexCountOutput() { return XrSceneMeshIndicesUint16MSFT.nindexCountOutput(address()); } + /** @return a {@link ShortBuffer} view of the data pointed to by the {@link XrSceneMeshIndicesUint16MSFT#indices} field. */ + @Nullable + @NativeType("uint16_t *") + public ShortBuffer indices() { return XrSceneMeshIndicesUint16MSFT.nindices(address()); } + + /** Sets the specified value to the {@link XrSceneMeshIndicesUint16MSFT#type} field. */ + public XrSceneMeshIndicesUint16MSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneMeshIndicesUint16MSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_INDICES_UINT16_MSFT TYPE_SCENE_MESH_INDICES_UINT16_MSFT} value to the {@link XrSceneMeshIndicesUint16MSFT#type} field. */ + public XrSceneMeshIndicesUint16MSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_INDICES_UINT16_MSFT); } + /** Sets the specified value to the {@link XrSceneMeshIndicesUint16MSFT#next} field. */ + public XrSceneMeshIndicesUint16MSFT.Buffer next(@NativeType("void *") long value) { XrSceneMeshIndicesUint16MSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneMeshIndicesUint16MSFT#indexCapacityInput} field. */ + public XrSceneMeshIndicesUint16MSFT.Buffer indexCapacityInput(@NativeType("uint32_t") int value) { XrSceneMeshIndicesUint16MSFT.nindexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneMeshIndicesUint16MSFT#indexCountOutput} field. */ + public XrSceneMeshIndicesUint16MSFT.Buffer indexCountOutput(@NativeType("uint32_t") int value) { XrSceneMeshIndicesUint16MSFT.nindexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link ShortBuffer} to the {@link XrSceneMeshIndicesUint16MSFT#indices} field. */ + public XrSceneMeshIndicesUint16MSFT.Buffer indices(@Nullable @NativeType("uint16_t *") ShortBuffer value) { XrSceneMeshIndicesUint16MSFT.nindices(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshIndicesUint32MSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshIndicesUint32MSFT.java index 469c2ab327..c60405ed82 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshIndicesUint32MSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshIndicesUint32MSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Scene mesh 32-bit indices. * @@ -23,7 +23,7 @@ *
                                                            *
                                                          • The {@link MSFTSceneUnderstanding XR_MSFT_scene_understanding} extension must be enabled prior to using {@link XrSceneMeshIndicesUint32MSFT}
                                                          • *
                                                          • {@code type} must be {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_INDICES_UINT32_MSFT TYPE_SCENE_MESH_INDICES_UINT32_MSFT}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • + *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • *
                                                          • If {@code indexCapacityInput} is not 0, {@code indices} must be a pointer to an array of {@code indexCapacityInput} {@code uint32_t} values
                                                          • *
                                                          * @@ -41,8 +41,8 @@ * uint32_t {@link #indexCountOutput}; * uint32_t * {@link #indices}; * } - */ -public class XrSceneMeshIndicesUint32MSFT extends Struct implements NativeResource { + */ +public class XrSceneMeshIndicesUint32MSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,30 +52,30 @@ public class XrSceneMeshIndicesUint32MSFT extends Structmust be returned in counter-clockwise order and three indices denote one triangle. */ - @Nullable - @NativeType("uint32_t *") - public IntBuffer indices() { return nindices(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSceneMeshIndicesUint32MSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_INDICES_UINT32_MSFT TYPE_SCENE_MESH_INDICES_UINT32_MSFT} value to the {@link #type} field. */ - public XrSceneMeshIndicesUint32MSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_INDICES_UINT32_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrSceneMeshIndicesUint32MSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #indexCapacityInput} field. */ - public XrSceneMeshIndicesUint32MSFT indexCapacityInput(@NativeType("uint32_t") int value) { nindexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #indexCountOutput} field. */ - public XrSceneMeshIndicesUint32MSFT indexCountOutput(@NativeType("uint32_t") int value) { nindexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link #indices} field. */ - public XrSceneMeshIndicesUint32MSFT indices(@Nullable @NativeType("uint32_t *") IntBuffer value) { nindices(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the capacity of the array, or 0 to indicate a request to retrieve the required capacity. */ + @NativeType("uint32_t") + public int indexCapacityInput() { return nindexCapacityInput(address()); } + /** a pointer to the count of indices, or a pointer to the required capacity in the case that {@code indexCapacityInput} is insufficient. */ + @NativeType("uint32_t") + public int indexCountOutput() { return nindexCountOutput(address()); } + /** an array of triangle indices filled in by the runtime, specifying the indices of the scene mesh buffer in the vertices array. The triangle indices must be returned in counter-clockwise order and three indices denote one triangle. */ + @Nullable + @NativeType("uint32_t *") + public IntBuffer indices() { return nindices(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSceneMeshIndicesUint32MSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_INDICES_UINT32_MSFT TYPE_SCENE_MESH_INDICES_UINT32_MSFT} value to the {@link #type} field. */ + public XrSceneMeshIndicesUint32MSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_INDICES_UINT32_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSceneMeshIndicesUint32MSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #indexCapacityInput} field. */ + public XrSceneMeshIndicesUint32MSFT indexCapacityInput(@NativeType("uint32_t") int value) { nindexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #indexCountOutput} field. */ + public XrSceneMeshIndicesUint32MSFT indexCountOutput(@NativeType("uint32_t") int value) { nindexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link #indices} field. */ + public XrSceneMeshIndicesUint32MSFT indices(@Nullable @NativeType("uint32_t *") IntBuffer value) { nindices(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSceneMeshIndicesUint32MSFT set( - int type, - long next, - int indexCapacityInput, - int indexCountOutput, + int type, + long next, + int indexCapacityInput, + int indexCountOutput, @Nullable IntBuffer indices - ) { - type(type); - next(next); - indexCapacityInput(indexCapacityInput); - indexCountOutput(indexCountOutput); - indices(indices); + ) { + type(type); + next(next); + indexCapacityInput(indexCapacityInput); + indexCountOutput(indexCountOutput); + indices(indices); return this; } @@ -270,30 +270,30 @@ public static XrSceneMeshIndicesUint32MSFT.Buffer calloc(int capacity, MemorySta } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshIndicesUint32MSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSceneMeshIndicesUint32MSFT.NEXT); } - /** Unsafe version of {@link #indexCapacityInput}. */ - public static int nindexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshIndicesUint32MSFT.INDEXCAPACITYINPUT); } - /** Unsafe version of {@link #indexCountOutput}. */ - public static int nindexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshIndicesUint32MSFT.INDEXCOUNTOUTPUT); } - /** Unsafe version of {@link #indices() indices}. */ - @Nullable public static IntBuffer nindices(long struct) { return memIntBufferSafe(memGetAddress(struct + XrSceneMeshIndicesUint32MSFT.INDICES), nindexCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshIndicesUint32MSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneMeshIndicesUint32MSFT.NEXT, value); } - /** Sets the specified value to the {@code indexCapacityInput} field of the specified {@code struct}. */ - public static void nindexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshIndicesUint32MSFT.INDEXCAPACITYINPUT, value); } - /** Unsafe version of {@link #indexCountOutput(int) indexCountOutput}. */ - public static void nindexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshIndicesUint32MSFT.INDEXCOUNTOUTPUT, value); } - /** Unsafe version of {@link #indices(IntBuffer) indices}. */ - public static void nindices(long struct, @Nullable IntBuffer value) { memPutAddress(struct + XrSceneMeshIndicesUint32MSFT.INDICES, memAddressSafe(value)); if (value != null) { nindexCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshIndicesUint32MSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSceneMeshIndicesUint32MSFT.NEXT); } + /** Unsafe version of {@link #indexCapacityInput}. */ + public static int nindexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshIndicesUint32MSFT.INDEXCAPACITYINPUT); } + /** Unsafe version of {@link #indexCountOutput}. */ + public static int nindexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshIndicesUint32MSFT.INDEXCOUNTOUTPUT); } + /** Unsafe version of {@link #indices() indices}. */ + @Nullable public static IntBuffer nindices(long struct) { return memIntBufferSafe(memGetAddress(struct + XrSceneMeshIndicesUint32MSFT.INDICES), nindexCapacityInput(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshIndicesUint32MSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneMeshIndicesUint32MSFT.NEXT, value); } + /** Sets the specified value to the {@code indexCapacityInput} field of the specified {@code struct}. */ + public static void nindexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshIndicesUint32MSFT.INDEXCAPACITYINPUT, value); } + /** Unsafe version of {@link #indexCountOutput(int) indexCountOutput}. */ + public static void nindexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshIndicesUint32MSFT.INDEXCOUNTOUTPUT, value); } + /** Unsafe version of {@link #indices(IntBuffer) indices}. */ + public static void nindices(long struct, @Nullable IntBuffer value) { memPutAddress(struct + XrSceneMeshIndicesUint32MSFT.INDICES, memAddressSafe(value)); if (value != null) { nindexCapacityInput(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrSceneMeshIndicesUint32MSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -330,36 +330,36 @@ protected Buffer self() { protected XrSceneMeshIndicesUint32MSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneMeshIndicesUint32MSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneMeshIndicesUint32MSFT.ntype(address()); } - /** @return the value of the {@link XrSceneMeshIndicesUint32MSFT#next} field. */ - @NativeType("void *") - public long next() { return XrSceneMeshIndicesUint32MSFT.nnext(address()); } - /** @return the value of the {@link XrSceneMeshIndicesUint32MSFT#indexCapacityInput} field. */ - @NativeType("uint32_t") - public int indexCapacityInput() { return XrSceneMeshIndicesUint32MSFT.nindexCapacityInput(address()); } - /** @return the value of the {@link XrSceneMeshIndicesUint32MSFT#indexCountOutput} field. */ - @NativeType("uint32_t") - public int indexCountOutput() { return XrSceneMeshIndicesUint32MSFT.nindexCountOutput(address()); } - /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrSceneMeshIndicesUint32MSFT#indices} field. */ - @Nullable - @NativeType("uint32_t *") - public IntBuffer indices() { return XrSceneMeshIndicesUint32MSFT.nindices(address()); } - - /** Sets the specified value to the {@link XrSceneMeshIndicesUint32MSFT#type} field. */ - public XrSceneMeshIndicesUint32MSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneMeshIndicesUint32MSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_INDICES_UINT32_MSFT TYPE_SCENE_MESH_INDICES_UINT32_MSFT} value to the {@link XrSceneMeshIndicesUint32MSFT#type} field. */ - public XrSceneMeshIndicesUint32MSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_INDICES_UINT32_MSFT); } - /** Sets the specified value to the {@link XrSceneMeshIndicesUint32MSFT#next} field. */ - public XrSceneMeshIndicesUint32MSFT.Buffer next(@NativeType("void *") long value) { XrSceneMeshIndicesUint32MSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneMeshIndicesUint32MSFT#indexCapacityInput} field. */ - public XrSceneMeshIndicesUint32MSFT.Buffer indexCapacityInput(@NativeType("uint32_t") int value) { XrSceneMeshIndicesUint32MSFT.nindexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneMeshIndicesUint32MSFT#indexCountOutput} field. */ - public XrSceneMeshIndicesUint32MSFT.Buffer indexCountOutput(@NativeType("uint32_t") int value) { XrSceneMeshIndicesUint32MSFT.nindexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link XrSceneMeshIndicesUint32MSFT#indices} field. */ - public XrSceneMeshIndicesUint32MSFT.Buffer indices(@Nullable @NativeType("uint32_t *") IntBuffer value) { XrSceneMeshIndicesUint32MSFT.nindices(address(), value); return this; } + + /** @return the value of the {@link XrSceneMeshIndicesUint32MSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneMeshIndicesUint32MSFT.ntype(address()); } + /** @return the value of the {@link XrSceneMeshIndicesUint32MSFT#next} field. */ + @NativeType("void *") + public long next() { return XrSceneMeshIndicesUint32MSFT.nnext(address()); } + /** @return the value of the {@link XrSceneMeshIndicesUint32MSFT#indexCapacityInput} field. */ + @NativeType("uint32_t") + public int indexCapacityInput() { return XrSceneMeshIndicesUint32MSFT.nindexCapacityInput(address()); } + /** @return the value of the {@link XrSceneMeshIndicesUint32MSFT#indexCountOutput} field. */ + @NativeType("uint32_t") + public int indexCountOutput() { return XrSceneMeshIndicesUint32MSFT.nindexCountOutput(address()); } + /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrSceneMeshIndicesUint32MSFT#indices} field. */ + @Nullable + @NativeType("uint32_t *") + public IntBuffer indices() { return XrSceneMeshIndicesUint32MSFT.nindices(address()); } + + /** Sets the specified value to the {@link XrSceneMeshIndicesUint32MSFT#type} field. */ + public XrSceneMeshIndicesUint32MSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneMeshIndicesUint32MSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_INDICES_UINT32_MSFT TYPE_SCENE_MESH_INDICES_UINT32_MSFT} value to the {@link XrSceneMeshIndicesUint32MSFT#type} field. */ + public XrSceneMeshIndicesUint32MSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_INDICES_UINT32_MSFT); } + /** Sets the specified value to the {@link XrSceneMeshIndicesUint32MSFT#next} field. */ + public XrSceneMeshIndicesUint32MSFT.Buffer next(@NativeType("void *") long value) { XrSceneMeshIndicesUint32MSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneMeshIndicesUint32MSFT#indexCapacityInput} field. */ + public XrSceneMeshIndicesUint32MSFT.Buffer indexCapacityInput(@NativeType("uint32_t") int value) { XrSceneMeshIndicesUint32MSFT.nindexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneMeshIndicesUint32MSFT#indexCountOutput} field. */ + public XrSceneMeshIndicesUint32MSFT.Buffer indexCountOutput(@NativeType("uint32_t") int value) { XrSceneMeshIndicesUint32MSFT.nindexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link XrSceneMeshIndicesUint32MSFT#indices} field. */ + public XrSceneMeshIndicesUint32MSFT.Buffer indices(@Nullable @NativeType("uint32_t *") IntBuffer value) { XrSceneMeshIndicesUint32MSFT.nindices(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshMSFT.java index 50ee39e1a0..bfa772c4eb 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Scene mesh. * @@ -35,8 +35,8 @@ * uint64_t {@link #meshBufferId}; * XrBool32 {@link #supportsIndicesUint16}; * } - */ -public class XrSceneMeshMSFT extends Struct implements NativeResource { + */ +public class XrSceneMeshMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -46,21 +46,21 @@ public class XrSceneMeshMSFT extends Struct implements NativeRe /** The struct member offsets. */ public static final int - MESHBUFFERID, - SUPPORTSINDICESUINT16; + MESHBUFFERID, + SUPPORTSINDICESUINT16; static { - Layout layout = __struct( - __member(8), + Layout layout = __struct( + __member(8), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - MESHBUFFERID = layout.offsetof(0); - SUPPORTSINDICESUINT16 = layout.offsetof(1); - } + MESHBUFFERID = layout.offsetof(0); + SUPPORTSINDICESUINT16 = layout.offsetof(1); + } protected XrSceneMeshMSFT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -83,26 +83,26 @@ public XrSceneMeshMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code uint64_t} identifier that specifies the scene mesh buffer. If {@code meshBufferId} is zero then this scene component does not have mesh data of corresponding {@code XrSceneComponentTypeMSFT} in {@link MSFTSceneUnderstanding#xrGetSceneComponentsMSFT GetSceneComponentsMSFT}{@code ::getInfo}. */ - @NativeType("uint64_t") - public long meshBufferId() { return nmeshBufferId(address()); } - /** {@link XR10#XR_TRUE TRUE} if the mesh supports reading 16-bit unsigned indices. */ - @NativeType("XrBool32") - public boolean supportsIndicesUint16() { return nsupportsIndicesUint16(address()) != 0; } - - /** Sets the specified value to the {@link #meshBufferId} field. */ - public XrSceneMeshMSFT meshBufferId(@NativeType("uint64_t") long value) { nmeshBufferId(address(), value); return this; } - /** Sets the specified value to the {@link #supportsIndicesUint16} field. */ - public XrSceneMeshMSFT supportsIndicesUint16(@NativeType("XrBool32") boolean value) { nsupportsIndicesUint16(address(), value ? 1 : 0); return this; } + + /** the {@code uint64_t} identifier that specifies the scene mesh buffer. If {@code meshBufferId} is zero then this scene component does not have mesh data of corresponding {@code XrSceneComponentTypeMSFT} in {@link MSFTSceneUnderstanding#xrGetSceneComponentsMSFT GetSceneComponentsMSFT}{@code ::getInfo}. */ + @NativeType("uint64_t") + public long meshBufferId() { return nmeshBufferId(address()); } + /** {@link XR10#XR_TRUE TRUE} if the mesh supports reading 16-bit unsigned indices. */ + @NativeType("XrBool32") + public boolean supportsIndicesUint16() { return nsupportsIndicesUint16(address()) != 0; } + + /** Sets the specified value to the {@link #meshBufferId} field. */ + public XrSceneMeshMSFT meshBufferId(@NativeType("uint64_t") long value) { nmeshBufferId(address(), value); return this; } + /** Sets the specified value to the {@link #supportsIndicesUint16} field. */ + public XrSceneMeshMSFT supportsIndicesUint16(@NativeType("XrBool32") boolean value) { nsupportsIndicesUint16(address(), value ? 1 : 0); return this; } /** Initializes this struct with the specified values. */ public XrSceneMeshMSFT set( - long meshBufferId, + long meshBufferId, boolean supportsIndicesUint16 - ) { - meshBufferId(meshBufferId); - supportsIndicesUint16(supportsIndicesUint16); + ) { + meshBufferId(meshBufferId); + supportsIndicesUint16(supportsIndicesUint16); return this; } @@ -231,18 +231,18 @@ public static XrSceneMeshMSFT.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #meshBufferId}. */ - public static long nmeshBufferId(long struct) { return UNSAFE.getLong(null, struct + XrSceneMeshMSFT.MESHBUFFERID); } - /** Unsafe version of {@link #supportsIndicesUint16}. */ - public static int nsupportsIndicesUint16(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshMSFT.SUPPORTSINDICESUINT16); } - - /** Unsafe version of {@link #meshBufferId(long) meshBufferId}. */ - public static void nmeshBufferId(long struct, long value) { UNSAFE.putLong(null, struct + XrSceneMeshMSFT.MESHBUFFERID, value); } - /** Unsafe version of {@link #supportsIndicesUint16(boolean) supportsIndicesUint16}. */ - public static void nsupportsIndicesUint16(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshMSFT.SUPPORTSINDICESUINT16, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #meshBufferId}. */ + public static long nmeshBufferId(long struct) { return UNSAFE.getLong(null, struct + XrSceneMeshMSFT.MESHBUFFERID); } + /** Unsafe version of {@link #supportsIndicesUint16}. */ + public static int nsupportsIndicesUint16(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshMSFT.SUPPORTSINDICESUINT16); } + + /** Unsafe version of {@link #meshBufferId(long) meshBufferId}. */ + public static void nmeshBufferId(long struct, long value) { UNSAFE.putLong(null, struct + XrSceneMeshMSFT.MESHBUFFERID, value); } + /** Unsafe version of {@link #supportsIndicesUint16(boolean) supportsIndicesUint16}. */ + public static void nsupportsIndicesUint16(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshMSFT.SUPPORTSINDICESUINT16, value); } + + // ----------------------------------- /** An array of {@link XrSceneMeshMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -279,18 +279,18 @@ protected Buffer self() { protected XrSceneMeshMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneMeshMSFT#meshBufferId} field. */ - @NativeType("uint64_t") - public long meshBufferId() { return XrSceneMeshMSFT.nmeshBufferId(address()); } - /** @return the value of the {@link XrSceneMeshMSFT#supportsIndicesUint16} field. */ - @NativeType("XrBool32") - public boolean supportsIndicesUint16() { return XrSceneMeshMSFT.nsupportsIndicesUint16(address()) != 0; } - - /** Sets the specified value to the {@link XrSceneMeshMSFT#meshBufferId} field. */ - public XrSceneMeshMSFT.Buffer meshBufferId(@NativeType("uint64_t") long value) { XrSceneMeshMSFT.nmeshBufferId(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneMeshMSFT#supportsIndicesUint16} field. */ - public XrSceneMeshMSFT.Buffer supportsIndicesUint16(@NativeType("XrBool32") boolean value) { XrSceneMeshMSFT.nsupportsIndicesUint16(address(), value ? 1 : 0); return this; } + + /** @return the value of the {@link XrSceneMeshMSFT#meshBufferId} field. */ + @NativeType("uint64_t") + public long meshBufferId() { return XrSceneMeshMSFT.nmeshBufferId(address()); } + /** @return the value of the {@link XrSceneMeshMSFT#supportsIndicesUint16} field. */ + @NativeType("XrBool32") + public boolean supportsIndicesUint16() { return XrSceneMeshMSFT.nsupportsIndicesUint16(address()) != 0; } + + /** Sets the specified value to the {@link XrSceneMeshMSFT#meshBufferId} field. */ + public XrSceneMeshMSFT.Buffer meshBufferId(@NativeType("uint64_t") long value) { XrSceneMeshMSFT.nmeshBufferId(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneMeshMSFT#supportsIndicesUint16} field. */ + public XrSceneMeshMSFT.Buffer supportsIndicesUint16(@NativeType("XrBool32") boolean value) { XrSceneMeshMSFT.nsupportsIndicesUint16(address(), value ? 1 : 0); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshVertexBufferMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshVertexBufferMSFT.java index c909af90c7..e50e69ae9c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshVertexBufferMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshVertexBufferMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Scene mesh vertex buffer. * @@ -23,7 +23,7 @@ *
                                                            *
                                                          • The {@link MSFTSceneUnderstanding XR_MSFT_scene_understanding} extension must be enabled prior to using {@link XrSceneMeshVertexBufferMSFT}
                                                          • *
                                                          • {@code type} must be {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_VERTEX_BUFFER_MSFT TYPE_SCENE_MESH_VERTEX_BUFFER_MSFT}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • + *
                                                          • {@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 XrVector3f} structures
                                                          • *
                                                          * @@ -41,8 +41,8 @@ * uint32_t {@link #vertexCountOutput}; * {@link XrVector3f XrVector3f} * {@link #vertices}; * } - */ -public class XrSceneMeshVertexBufferMSFT extends Struct implements NativeResource { + */ +public class XrSceneMeshVertexBufferMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,30 +52,30 @@ public class XrSceneMeshVertexBufferMSFT extends Struct implements NativeResource { @@ -330,36 +330,36 @@ protected Buffer self() { protected XrSceneMeshVertexBufferMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneMeshVertexBufferMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneMeshVertexBufferMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneMeshVertexBufferMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrSceneMeshVertexBufferMSFT.nnext(address()); } - /** @return the value of the {@link XrSceneMeshVertexBufferMSFT#vertexCapacityInput} field. */ - @NativeType("uint32_t") - public int vertexCapacityInput() { return XrSceneMeshVertexBufferMSFT.nvertexCapacityInput(address()); } - /** @return the value of the {@link XrSceneMeshVertexBufferMSFT#vertexCountOutput} field. */ - @NativeType("uint32_t") - public int vertexCountOutput() { return XrSceneMeshVertexBufferMSFT.nvertexCountOutput(address()); } - /** @return a {@link XrVector3f.Buffer} view of the struct array pointed to by the {@link XrSceneMeshVertexBufferMSFT#vertices} field. */ - @Nullable - @NativeType("XrVector3f *") - public XrVector3f.Buffer vertices() { return XrSceneMeshVertexBufferMSFT.nvertices(address()); } - - /** Sets the specified value to the {@link XrSceneMeshVertexBufferMSFT#type} field. */ - public XrSceneMeshVertexBufferMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneMeshVertexBufferMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_VERTEX_BUFFER_MSFT TYPE_SCENE_MESH_VERTEX_BUFFER_MSFT} value to the {@link XrSceneMeshVertexBufferMSFT#type} field. */ - public XrSceneMeshVertexBufferMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_VERTEX_BUFFER_MSFT); } - /** Sets the specified value to the {@link XrSceneMeshVertexBufferMSFT#next} field. */ - public XrSceneMeshVertexBufferMSFT.Buffer next(@NativeType("void *") long value) { XrSceneMeshVertexBufferMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneMeshVertexBufferMSFT#vertexCapacityInput} field. */ - public XrSceneMeshVertexBufferMSFT.Buffer vertexCapacityInput(@NativeType("uint32_t") int value) { XrSceneMeshVertexBufferMSFT.nvertexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneMeshVertexBufferMSFT#vertexCountOutput} field. */ - public XrSceneMeshVertexBufferMSFT.Buffer vertexCountOutput(@NativeType("uint32_t") int value) { XrSceneMeshVertexBufferMSFT.nvertexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link XrSceneMeshVertexBufferMSFT#vertices} field. */ - public XrSceneMeshVertexBufferMSFT.Buffer vertices(@Nullable @NativeType("XrVector3f *") XrVector3f.Buffer value) { XrSceneMeshVertexBufferMSFT.nvertices(address(), value); return this; } + + /** @return the value of the {@link XrSceneMeshVertexBufferMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneMeshVertexBufferMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneMeshVertexBufferMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrSceneMeshVertexBufferMSFT.nnext(address()); } + /** @return the value of the {@link XrSceneMeshVertexBufferMSFT#vertexCapacityInput} field. */ + @NativeType("uint32_t") + public int vertexCapacityInput() { return XrSceneMeshVertexBufferMSFT.nvertexCapacityInput(address()); } + /** @return the value of the {@link XrSceneMeshVertexBufferMSFT#vertexCountOutput} field. */ + @NativeType("uint32_t") + public int vertexCountOutput() { return XrSceneMeshVertexBufferMSFT.nvertexCountOutput(address()); } + /** @return a {@link XrVector3f.Buffer} view of the struct array pointed to by the {@link XrSceneMeshVertexBufferMSFT#vertices} field. */ + @Nullable + @NativeType("XrVector3f *") + public XrVector3f.Buffer vertices() { return XrSceneMeshVertexBufferMSFT.nvertices(address()); } + + /** Sets the specified value to the {@link XrSceneMeshVertexBufferMSFT#type} field. */ + public XrSceneMeshVertexBufferMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneMeshVertexBufferMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESH_VERTEX_BUFFER_MSFT TYPE_SCENE_MESH_VERTEX_BUFFER_MSFT} value to the {@link XrSceneMeshVertexBufferMSFT#type} field. */ + public XrSceneMeshVertexBufferMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESH_VERTEX_BUFFER_MSFT); } + /** Sets the specified value to the {@link XrSceneMeshVertexBufferMSFT#next} field. */ + public XrSceneMeshVertexBufferMSFT.Buffer next(@NativeType("void *") long value) { XrSceneMeshVertexBufferMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneMeshVertexBufferMSFT#vertexCapacityInput} field. */ + public XrSceneMeshVertexBufferMSFT.Buffer vertexCapacityInput(@NativeType("uint32_t") int value) { XrSceneMeshVertexBufferMSFT.nvertexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneMeshVertexBufferMSFT#vertexCountOutput} field. */ + public XrSceneMeshVertexBufferMSFT.Buffer vertexCountOutput(@NativeType("uint32_t") int value) { XrSceneMeshVertexBufferMSFT.nvertexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrVector3f.Buffer} to the {@link XrSceneMeshVertexBufferMSFT#vertices} field. */ + public XrSceneMeshVertexBufferMSFT.Buffer vertices(@Nullable @NativeType("XrVector3f *") XrVector3f.Buffer value) { XrSceneMeshVertexBufferMSFT.nvertices(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshesMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshesMSFT.java index ff11fc338e..2856567f00 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshesMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneMeshesMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Scene meshes. * @@ -23,7 +23,7 @@ *
                                                            *
                                                          • The {@link MSFTSceneUnderstanding XR_MSFT_scene_understanding} extension must be enabled prior to using {@link XrSceneMeshesMSFT}
                                                          • *
                                                          • {@code type} must be {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESHES_MSFT TYPE_SCENE_MESHES_MSFT}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • + *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • *
                                                          • If {@code sceneMeshCount} is not 0, {@code sceneMeshes} must be a pointer to an array of {@code sceneMeshCount} {@link XrSceneMeshMSFT} structures
                                                          • *
                                                          * @@ -40,8 +40,8 @@ * uint32_t {@link #sceneMeshCount}; * {@link XrSceneMeshMSFT XrSceneMeshMSFT} * {@link #sceneMeshes}; * } - */ -public class XrSceneMeshesMSFT extends Struct implements NativeResource { + */ +public class XrSceneMeshesMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,27 +51,27 @@ public class XrSceneMeshesMSFT extends Struct implements Nati /** The struct member offsets. */ public static final int - TYPE, - NEXT, - SCENEMESHCOUNT, - SCENEMESHES; + TYPE, + NEXT, + SCENEMESHCOUNT, + SCENEMESHES; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - SCENEMESHCOUNT = layout.offsetof(2); - SCENEMESHES = layout.offsetof(3); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + SCENEMESHCOUNT = layout.offsetof(2); + SCENEMESHES = layout.offsetof(3); + } protected XrSceneMeshesMSFT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -94,43 +94,43 @@ public XrSceneMeshesMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** a {@code uint32_t} describing the count of elements in the {@code sceneMeshes} array. */ - @NativeType("uint32_t") - public int sceneMeshCount() { return nsceneMeshCount(address()); } - /** an array of {@link XrSceneMeshMSFT}. */ - @Nullable - @NativeType("XrSceneMeshMSFT *") - public XrSceneMeshMSFT.Buffer sceneMeshes() { return nsceneMeshes(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSceneMeshesMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESHES_MSFT TYPE_SCENE_MESHES_MSFT} value to the {@link #type} field. */ - public XrSceneMeshesMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESHES_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrSceneMeshesMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #sceneMeshCount} field. */ - public XrSceneMeshesMSFT sceneMeshCount(@NativeType("uint32_t") int value) { nsceneMeshCount(address(), value); return this; } - /** Sets the address of the specified {@link XrSceneMeshMSFT.Buffer} to the {@link #sceneMeshes} field. */ - public XrSceneMeshesMSFT sceneMeshes(@Nullable @NativeType("XrSceneMeshMSFT *") XrSceneMeshMSFT.Buffer value) { nsceneMeshes(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** a {@code uint32_t} describing the count of elements in the {@code sceneMeshes} array. */ + @NativeType("uint32_t") + public int sceneMeshCount() { return nsceneMeshCount(address()); } + /** an array of {@link XrSceneMeshMSFT}. */ + @Nullable + @NativeType("XrSceneMeshMSFT *") + public XrSceneMeshMSFT.Buffer sceneMeshes() { return nsceneMeshes(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSceneMeshesMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESHES_MSFT TYPE_SCENE_MESHES_MSFT} value to the {@link #type} field. */ + public XrSceneMeshesMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESHES_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSceneMeshesMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #sceneMeshCount} field. */ + public XrSceneMeshesMSFT sceneMeshCount(@NativeType("uint32_t") int value) { nsceneMeshCount(address(), value); return this; } + /** Sets the address of the specified {@link XrSceneMeshMSFT.Buffer} to the {@link #sceneMeshes} field. */ + public XrSceneMeshesMSFT sceneMeshes(@Nullable @NativeType("XrSceneMeshMSFT *") XrSceneMeshMSFT.Buffer value) { nsceneMeshes(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSceneMeshesMSFT set( - int type, - long next, - int sceneMeshCount, + int type, + long next, + int sceneMeshCount, @Nullable XrSceneMeshMSFT.Buffer sceneMeshes - ) { - type(type); - next(next); - sceneMeshCount(sceneMeshCount); - sceneMeshes(sceneMeshes); + ) { + type(type); + next(next); + sceneMeshCount(sceneMeshCount); + sceneMeshes(sceneMeshes); return this; } @@ -259,26 +259,26 @@ public static XrSceneMeshesMSFT.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshesMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSceneMeshesMSFT.NEXT); } - /** Unsafe version of {@link #sceneMeshCount}. */ - public static int nsceneMeshCount(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshesMSFT.SCENEMESHCOUNT); } - /** Unsafe version of {@link #sceneMeshes}. */ - @Nullable public static XrSceneMeshMSFT.Buffer nsceneMeshes(long struct) { return XrSceneMeshMSFT.createSafe(memGetAddress(struct + XrSceneMeshesMSFT.SCENEMESHES), nsceneMeshCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshesMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneMeshesMSFT.NEXT, value); } - /** Sets the specified value to the {@code sceneMeshCount} field of the specified {@code struct}. */ - public static void nsceneMeshCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshesMSFT.SCENEMESHCOUNT, value); } - /** Unsafe version of {@link #sceneMeshes(XrSceneMeshMSFT.Buffer) sceneMeshes}. */ - public static void nsceneMeshes(long struct, @Nullable XrSceneMeshMSFT.Buffer value) { memPutAddress(struct + XrSceneMeshesMSFT.SCENEMESHES, memAddressSafe(value)); if (value != null) { nsceneMeshCount(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshesMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSceneMeshesMSFT.NEXT); } + /** Unsafe version of {@link #sceneMeshCount}. */ + public static int nsceneMeshCount(long struct) { return UNSAFE.getInt(null, struct + XrSceneMeshesMSFT.SCENEMESHCOUNT); } + /** Unsafe version of {@link #sceneMeshes}. */ + @Nullable public static XrSceneMeshMSFT.Buffer nsceneMeshes(long struct) { return XrSceneMeshMSFT.createSafe(memGetAddress(struct + XrSceneMeshesMSFT.SCENEMESHES), nsceneMeshCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshesMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneMeshesMSFT.NEXT, value); } + /** Sets the specified value to the {@code sceneMeshCount} field of the specified {@code struct}. */ + public static void nsceneMeshCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneMeshesMSFT.SCENEMESHCOUNT, value); } + /** Unsafe version of {@link #sceneMeshes(XrSceneMeshMSFT.Buffer) sceneMeshes}. */ + public static void nsceneMeshes(long struct, @Nullable XrSceneMeshMSFT.Buffer value) { memPutAddress(struct + XrSceneMeshesMSFT.SCENEMESHES, memAddressSafe(value)); if (value != null) { nsceneMeshCount(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrSceneMeshesMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -315,31 +315,31 @@ protected Buffer self() { protected XrSceneMeshesMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneMeshesMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneMeshesMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneMeshesMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrSceneMeshesMSFT.nnext(address()); } - /** @return the value of the {@link XrSceneMeshesMSFT#sceneMeshCount} field. */ - @NativeType("uint32_t") - public int sceneMeshCount() { return XrSceneMeshesMSFT.nsceneMeshCount(address()); } - /** @return a {@link XrSceneMeshMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneMeshesMSFT#sceneMeshes} field. */ - @Nullable - @NativeType("XrSceneMeshMSFT *") - public XrSceneMeshMSFT.Buffer sceneMeshes() { return XrSceneMeshesMSFT.nsceneMeshes(address()); } - - /** Sets the specified value to the {@link XrSceneMeshesMSFT#type} field. */ - public XrSceneMeshesMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneMeshesMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESHES_MSFT TYPE_SCENE_MESHES_MSFT} value to the {@link XrSceneMeshesMSFT#type} field. */ - public XrSceneMeshesMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESHES_MSFT); } - /** Sets the specified value to the {@link XrSceneMeshesMSFT#next} field. */ - public XrSceneMeshesMSFT.Buffer next(@NativeType("void *") long value) { XrSceneMeshesMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneMeshesMSFT#sceneMeshCount} field. */ - public XrSceneMeshesMSFT.Buffer sceneMeshCount(@NativeType("uint32_t") int value) { XrSceneMeshesMSFT.nsceneMeshCount(address(), value); return this; } - /** Sets the address of the specified {@link XrSceneMeshMSFT.Buffer} to the {@link XrSceneMeshesMSFT#sceneMeshes} field. */ - public XrSceneMeshesMSFT.Buffer sceneMeshes(@Nullable @NativeType("XrSceneMeshMSFT *") XrSceneMeshMSFT.Buffer value) { XrSceneMeshesMSFT.nsceneMeshes(address(), value); return this; } + + /** @return the value of the {@link XrSceneMeshesMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneMeshesMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneMeshesMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrSceneMeshesMSFT.nnext(address()); } + /** @return the value of the {@link XrSceneMeshesMSFT#sceneMeshCount} field. */ + @NativeType("uint32_t") + public int sceneMeshCount() { return XrSceneMeshesMSFT.nsceneMeshCount(address()); } + /** @return a {@link XrSceneMeshMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneMeshesMSFT#sceneMeshes} field. */ + @Nullable + @NativeType("XrSceneMeshMSFT *") + public XrSceneMeshMSFT.Buffer sceneMeshes() { return XrSceneMeshesMSFT.nsceneMeshes(address()); } + + /** Sets the specified value to the {@link XrSceneMeshesMSFT#type} field. */ + public XrSceneMeshesMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneMeshesMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_MESHES_MSFT TYPE_SCENE_MESHES_MSFT} value to the {@link XrSceneMeshesMSFT#type} field. */ + public XrSceneMeshesMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_MESHES_MSFT); } + /** Sets the specified value to the {@link XrSceneMeshesMSFT#next} field. */ + public XrSceneMeshesMSFT.Buffer next(@NativeType("void *") long value) { XrSceneMeshesMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneMeshesMSFT#sceneMeshCount} field. */ + public XrSceneMeshesMSFT.Buffer sceneMeshCount(@NativeType("uint32_t") int value) { XrSceneMeshesMSFT.nsceneMeshCount(address(), value); return this; } + /** Sets the address of the specified {@link XrSceneMeshMSFT.Buffer} to the {@link XrSceneMeshesMSFT#sceneMeshes} field. */ + public XrSceneMeshesMSFT.Buffer sceneMeshes(@Nullable @NativeType("XrSceneMeshMSFT *") XrSceneMeshMSFT.Buffer value) { XrSceneMeshesMSFT.nsceneMeshes(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObjectMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObjectMSFT.java index 80156bd972..3a0b99cdec 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObjectMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObjectMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Scene object. * @@ -35,8 +35,8 @@ * struct XrSceneObjectMSFT { * XrSceneObjectTypeMSFT {@link #objectType}; * } - */ -public class XrSceneObjectMSFT extends Struct implements NativeResource { + */ +public class XrSceneObjectMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -46,18 +46,18 @@ public class XrSceneObjectMSFT extends Struct implements Nati /** The struct member offsets. */ public static final int - OBJECTTYPE; + OBJECTTYPE; static { - Layout layout = __struct( + Layout layout = __struct( __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - OBJECTTYPE = layout.offsetof(0); - } + OBJECTTYPE = layout.offsetof(0); + } protected XrSceneObjectMSFT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -80,13 +80,13 @@ public XrSceneObjectMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the type of the object specified by {@code XrSceneObjectTypeMSFT}. */ - @NativeType("XrSceneObjectTypeMSFT") - public int objectType() { return nobjectType(address()); } - - /** Sets the specified value to the {@link #objectType} field. */ - public XrSceneObjectMSFT objectType(@NativeType("XrSceneObjectTypeMSFT") int value) { nobjectType(address(), value); return this; } + + /** the type of the object specified by {@code XrSceneObjectTypeMSFT}. */ + @NativeType("XrSceneObjectTypeMSFT") + public int objectType() { return nobjectType(address()); } + + /** Sets the specified value to the {@link #objectType} field. */ + public XrSceneObjectMSFT objectType(@NativeType("XrSceneObjectTypeMSFT") int value) { nobjectType(address(), value); return this; } /** * Copies the specified struct data to this struct. @@ -212,14 +212,14 @@ public static XrSceneObjectMSFT.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- + + /** Unsafe version of {@link #objectType}. */ + public static int nobjectType(long struct) { return UNSAFE.getInt(null, struct + XrSceneObjectMSFT.OBJECTTYPE); } + + /** Unsafe version of {@link #objectType(int) objectType}. */ + public static void nobjectType(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneObjectMSFT.OBJECTTYPE, value); } - /** Unsafe version of {@link #objectType}. */ - public static int nobjectType(long struct) { return UNSAFE.getInt(null, struct + XrSceneObjectMSFT.OBJECTTYPE); } - - /** Unsafe version of {@link #objectType(int) objectType}. */ - public static void nobjectType(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneObjectMSFT.OBJECTTYPE, value); } - - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSceneObjectMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -256,13 +256,13 @@ protected Buffer self() { protected XrSceneObjectMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneObjectMSFT#objectType} field. */ - @NativeType("XrSceneObjectTypeMSFT") - public int objectType() { return XrSceneObjectMSFT.nobjectType(address()); } - - /** Sets the specified value to the {@link XrSceneObjectMSFT#objectType} field. */ - public XrSceneObjectMSFT.Buffer objectType(@NativeType("XrSceneObjectTypeMSFT") int value) { XrSceneObjectMSFT.nobjectType(address(), value); return this; } + + /** @return the value of the {@link XrSceneObjectMSFT#objectType} field. */ + @NativeType("XrSceneObjectTypeMSFT") + public int objectType() { return XrSceneObjectMSFT.nobjectType(address()); } + + /** Sets the specified value to the {@link XrSceneObjectMSFT#objectType} field. */ + public XrSceneObjectMSFT.Buffer objectType(@NativeType("XrSceneObjectTypeMSFT") int value) { XrSceneObjectMSFT.nobjectType(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObjectTypesFilterInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObjectTypesFilterInfoMSFT.java index 999e18b539..8c9dbfe5a9 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObjectTypesFilterInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObjectTypesFilterInfoMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Scene object types filter. * @@ -27,7 +27,7 @@ *
                                                            *
                                                          • The {@link MSFTSceneUnderstanding XR_MSFT_scene_understanding} extension must be enabled prior to using {@link XrSceneObjectTypesFilterInfoMSFT}
                                                          • *
                                                          • {@code type} must be {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_OBJECT_TYPES_FILTER_INFO_MSFT TYPE_SCENE_OBJECT_TYPES_FILTER_INFO_MSFT}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • + *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • *
                                                          • If {@code objectTypeCount} is not 0, {@code objectTypes} must be a pointer to an array of {@code objectTypeCount} valid {@code XrSceneObjectTypeMSFT} values
                                                          • *
                                                          * @@ -44,8 +44,8 @@ * uint32_t {@link #objectTypeCount}; * XrSceneObjectTypeMSFT const * {@link #objectTypes}; * } - */ -public class XrSceneObjectTypesFilterInfoMSFT extends Struct implements NativeResource { + */ +public class XrSceneObjectTypesFilterInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,27 +55,27 @@ public class XrSceneObjectTypesFilterInfoMSFT extends Struct implements NativeResource { @@ -319,31 +319,31 @@ protected Buffer self() { protected XrSceneObjectTypesFilterInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneObjectTypesFilterInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneObjectTypesFilterInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneObjectTypesFilterInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSceneObjectTypesFilterInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSceneObjectTypesFilterInfoMSFT#objectTypeCount} field. */ - @NativeType("uint32_t") - public int objectTypeCount() { return XrSceneObjectTypesFilterInfoMSFT.nobjectTypeCount(address()); } - /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrSceneObjectTypesFilterInfoMSFT#objectTypes} field. */ - @Nullable - @NativeType("XrSceneObjectTypeMSFT const *") - public IntBuffer objectTypes() { return XrSceneObjectTypesFilterInfoMSFT.nobjectTypes(address()); } - - /** Sets the specified value to the {@link XrSceneObjectTypesFilterInfoMSFT#type} field. */ - public XrSceneObjectTypesFilterInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneObjectTypesFilterInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_OBJECT_TYPES_FILTER_INFO_MSFT TYPE_SCENE_OBJECT_TYPES_FILTER_INFO_MSFT} value to the {@link XrSceneObjectTypesFilterInfoMSFT#type} field. */ - public XrSceneObjectTypesFilterInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_OBJECT_TYPES_FILTER_INFO_MSFT); } - /** Sets the specified value to the {@link XrSceneObjectTypesFilterInfoMSFT#next} field. */ - public XrSceneObjectTypesFilterInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneObjectTypesFilterInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneObjectTypesFilterInfoMSFT#objectTypeCount} field. */ - public XrSceneObjectTypesFilterInfoMSFT.Buffer objectTypeCount(@NativeType("uint32_t") int value) { XrSceneObjectTypesFilterInfoMSFT.nobjectTypeCount(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link XrSceneObjectTypesFilterInfoMSFT#objectTypes} field. */ - public XrSceneObjectTypesFilterInfoMSFT.Buffer objectTypes(@Nullable @NativeType("XrSceneObjectTypeMSFT const *") IntBuffer value) { XrSceneObjectTypesFilterInfoMSFT.nobjectTypes(address(), value); return this; } + + /** @return the value of the {@link XrSceneObjectTypesFilterInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneObjectTypesFilterInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneObjectTypesFilterInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSceneObjectTypesFilterInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSceneObjectTypesFilterInfoMSFT#objectTypeCount} field. */ + @NativeType("uint32_t") + public int objectTypeCount() { return XrSceneObjectTypesFilterInfoMSFT.nobjectTypeCount(address()); } + /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrSceneObjectTypesFilterInfoMSFT#objectTypes} field. */ + @Nullable + @NativeType("XrSceneObjectTypeMSFT const *") + public IntBuffer objectTypes() { return XrSceneObjectTypesFilterInfoMSFT.nobjectTypes(address()); } + + /** Sets the specified value to the {@link XrSceneObjectTypesFilterInfoMSFT#type} field. */ + public XrSceneObjectTypesFilterInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneObjectTypesFilterInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_OBJECT_TYPES_FILTER_INFO_MSFT TYPE_SCENE_OBJECT_TYPES_FILTER_INFO_MSFT} value to the {@link XrSceneObjectTypesFilterInfoMSFT#type} field. */ + public XrSceneObjectTypesFilterInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_OBJECT_TYPES_FILTER_INFO_MSFT); } + /** Sets the specified value to the {@link XrSceneObjectTypesFilterInfoMSFT#next} field. */ + public XrSceneObjectTypesFilterInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneObjectTypesFilterInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneObjectTypesFilterInfoMSFT#objectTypeCount} field. */ + public XrSceneObjectTypesFilterInfoMSFT.Buffer objectTypeCount(@NativeType("uint32_t") int value) { XrSceneObjectTypesFilterInfoMSFT.nobjectTypeCount(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link XrSceneObjectTypesFilterInfoMSFT#objectTypes} field. */ + public XrSceneObjectTypesFilterInfoMSFT.Buffer objectTypes(@Nullable @NativeType("XrSceneObjectTypeMSFT const *") IntBuffer value) { XrSceneObjectTypesFilterInfoMSFT.nobjectTypes(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObjectsMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObjectsMSFT.java index ce595ef476..4b7dd16c2c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObjectsMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObjectsMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Scene objects. * @@ -37,7 +37,7 @@ *
                                                            *
                                                          • The {@link MSFTSceneUnderstanding XR_MSFT_scene_understanding} extension must be enabled prior to using {@link XrSceneObjectsMSFT}
                                                          • *
                                                          • {@code type} must be {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_OBJECTS_MSFT TYPE_SCENE_OBJECTS_MSFT}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • + *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • *
                                                          • If {@code sceneObjectCount} is not 0, {@code sceneObjects} must be a pointer to an array of {@code sceneObjectCount} {@link XrSceneObjectMSFT} structures
                                                          • *
                                                          * @@ -54,8 +54,8 @@ * uint32_t {@link #sceneObjectCount}; * {@link XrSceneObjectMSFT XrSceneObjectMSFT} * {@link #sceneObjects}; * } - */ -public class XrSceneObjectsMSFT extends Struct implements NativeResource { + */ +public class XrSceneObjectsMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -65,27 +65,27 @@ public class XrSceneObjectsMSFT extends Struct implements Na /** The struct member offsets. */ public static final int - TYPE, - NEXT, - SCENEOBJECTCOUNT, - SCENEOBJECTS; + TYPE, + NEXT, + SCENEOBJECTCOUNT, + SCENEOBJECTS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - SCENEOBJECTCOUNT = layout.offsetof(2); - SCENEOBJECTS = layout.offsetof(3); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + SCENEOBJECTCOUNT = layout.offsetof(2); + SCENEOBJECTS = layout.offsetof(3); + } protected XrSceneObjectsMSFT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -108,43 +108,43 @@ public XrSceneObjectsMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** a {@code uint32_t} describing the count of elements in the {@code sceneObjects} array. */ - @NativeType("uint32_t") - public int sceneObjectCount() { return nsceneObjectCount(address()); } - /** an array of {@link XrSceneObjectMSFT}. */ - @Nullable - @NativeType("XrSceneObjectMSFT *") - public XrSceneObjectMSFT.Buffer sceneObjects() { return nsceneObjects(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSceneObjectsMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_OBJECTS_MSFT TYPE_SCENE_OBJECTS_MSFT} value to the {@link #type} field. */ - public XrSceneObjectsMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_OBJECTS_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrSceneObjectsMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #sceneObjectCount} field. */ - public XrSceneObjectsMSFT sceneObjectCount(@NativeType("uint32_t") int value) { nsceneObjectCount(address(), value); return this; } - /** Sets the address of the specified {@link XrSceneObjectMSFT.Buffer} to the {@link #sceneObjects} field. */ - public XrSceneObjectsMSFT sceneObjects(@Nullable @NativeType("XrSceneObjectMSFT *") XrSceneObjectMSFT.Buffer value) { nsceneObjects(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** a {@code uint32_t} describing the count of elements in the {@code sceneObjects} array. */ + @NativeType("uint32_t") + public int sceneObjectCount() { return nsceneObjectCount(address()); } + /** an array of {@link XrSceneObjectMSFT}. */ + @Nullable + @NativeType("XrSceneObjectMSFT *") + public XrSceneObjectMSFT.Buffer sceneObjects() { return nsceneObjects(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSceneObjectsMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_OBJECTS_MSFT TYPE_SCENE_OBJECTS_MSFT} value to the {@link #type} field. */ + public XrSceneObjectsMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_OBJECTS_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSceneObjectsMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #sceneObjectCount} field. */ + public XrSceneObjectsMSFT sceneObjectCount(@NativeType("uint32_t") int value) { nsceneObjectCount(address(), value); return this; } + /** Sets the address of the specified {@link XrSceneObjectMSFT.Buffer} to the {@link #sceneObjects} field. */ + public XrSceneObjectsMSFT sceneObjects(@Nullable @NativeType("XrSceneObjectMSFT *") XrSceneObjectMSFT.Buffer value) { nsceneObjects(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSceneObjectsMSFT set( - int type, - long next, - int sceneObjectCount, + int type, + long next, + int sceneObjectCount, @Nullable XrSceneObjectMSFT.Buffer sceneObjects - ) { - type(type); - next(next); - sceneObjectCount(sceneObjectCount); - sceneObjects(sceneObjects); + ) { + type(type); + next(next); + sceneObjectCount(sceneObjectCount); + sceneObjects(sceneObjects); return this; } @@ -273,26 +273,26 @@ public static XrSceneObjectsMSFT.Buffer calloc(int capacity, MemoryStack stack) } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneObjectsMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSceneObjectsMSFT.NEXT); } - /** Unsafe version of {@link #sceneObjectCount}. */ - public static int nsceneObjectCount(long struct) { return UNSAFE.getInt(null, struct + XrSceneObjectsMSFT.SCENEOBJECTCOUNT); } - /** Unsafe version of {@link #sceneObjects}. */ - @Nullable public static XrSceneObjectMSFT.Buffer nsceneObjects(long struct) { return XrSceneObjectMSFT.createSafe(memGetAddress(struct + XrSceneObjectsMSFT.SCENEOBJECTS), nsceneObjectCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneObjectsMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneObjectsMSFT.NEXT, value); } - /** Sets the specified value to the {@code sceneObjectCount} field of the specified {@code struct}. */ - public static void nsceneObjectCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneObjectsMSFT.SCENEOBJECTCOUNT, value); } - /** Unsafe version of {@link #sceneObjects(XrSceneObjectMSFT.Buffer) sceneObjects}. */ - public static void nsceneObjects(long struct, @Nullable XrSceneObjectMSFT.Buffer value) { memPutAddress(struct + XrSceneObjectsMSFT.SCENEOBJECTS, memAddressSafe(value)); if (value != null) { nsceneObjectCount(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSceneObjectsMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSceneObjectsMSFT.NEXT); } + /** Unsafe version of {@link #sceneObjectCount}. */ + public static int nsceneObjectCount(long struct) { return UNSAFE.getInt(null, struct + XrSceneObjectsMSFT.SCENEOBJECTCOUNT); } + /** Unsafe version of {@link #sceneObjects}. */ + @Nullable public static XrSceneObjectMSFT.Buffer nsceneObjects(long struct) { return XrSceneObjectMSFT.createSafe(memGetAddress(struct + XrSceneObjectsMSFT.SCENEOBJECTS), nsceneObjectCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneObjectsMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSceneObjectsMSFT.NEXT, value); } + /** Sets the specified value to the {@code sceneObjectCount} field of the specified {@code struct}. */ + public static void nsceneObjectCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSceneObjectsMSFT.SCENEOBJECTCOUNT, value); } + /** Unsafe version of {@link #sceneObjects(XrSceneObjectMSFT.Buffer) sceneObjects}. */ + public static void nsceneObjects(long struct, @Nullable XrSceneObjectMSFT.Buffer value) { memPutAddress(struct + XrSceneObjectsMSFT.SCENEOBJECTS, memAddressSafe(value)); if (value != null) { nsceneObjectCount(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrSceneObjectsMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -329,31 +329,31 @@ protected Buffer self() { protected XrSceneObjectsMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneObjectsMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneObjectsMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneObjectsMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrSceneObjectsMSFT.nnext(address()); } - /** @return the value of the {@link XrSceneObjectsMSFT#sceneObjectCount} field. */ - @NativeType("uint32_t") - public int sceneObjectCount() { return XrSceneObjectsMSFT.nsceneObjectCount(address()); } - /** @return a {@link XrSceneObjectMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneObjectsMSFT#sceneObjects} field. */ - @Nullable - @NativeType("XrSceneObjectMSFT *") - public XrSceneObjectMSFT.Buffer sceneObjects() { return XrSceneObjectsMSFT.nsceneObjects(address()); } - - /** Sets the specified value to the {@link XrSceneObjectsMSFT#type} field. */ - public XrSceneObjectsMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneObjectsMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_OBJECTS_MSFT TYPE_SCENE_OBJECTS_MSFT} value to the {@link XrSceneObjectsMSFT#type} field. */ - public XrSceneObjectsMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_OBJECTS_MSFT); } - /** Sets the specified value to the {@link XrSceneObjectsMSFT#next} field. */ - public XrSceneObjectsMSFT.Buffer next(@NativeType("void *") long value) { XrSceneObjectsMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSceneObjectsMSFT#sceneObjectCount} field. */ - public XrSceneObjectsMSFT.Buffer sceneObjectCount(@NativeType("uint32_t") int value) { XrSceneObjectsMSFT.nsceneObjectCount(address(), value); return this; } - /** Sets the address of the specified {@link XrSceneObjectMSFT.Buffer} to the {@link XrSceneObjectsMSFT#sceneObjects} field. */ - public XrSceneObjectsMSFT.Buffer sceneObjects(@Nullable @NativeType("XrSceneObjectMSFT *") XrSceneObjectMSFT.Buffer value) { XrSceneObjectsMSFT.nsceneObjects(address(), value); return this; } + + /** @return the value of the {@link XrSceneObjectsMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneObjectsMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneObjectsMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrSceneObjectsMSFT.nnext(address()); } + /** @return the value of the {@link XrSceneObjectsMSFT#sceneObjectCount} field. */ + @NativeType("uint32_t") + public int sceneObjectCount() { return XrSceneObjectsMSFT.nsceneObjectCount(address()); } + /** @return a {@link XrSceneObjectMSFT.Buffer} view of the struct array pointed to by the {@link XrSceneObjectsMSFT#sceneObjects} field. */ + @Nullable + @NativeType("XrSceneObjectMSFT *") + public XrSceneObjectMSFT.Buffer sceneObjects() { return XrSceneObjectsMSFT.nsceneObjects(address()); } + + /** Sets the specified value to the {@link XrSceneObjectsMSFT#type} field. */ + public XrSceneObjectsMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneObjectsMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_OBJECTS_MSFT TYPE_SCENE_OBJECTS_MSFT} value to the {@link XrSceneObjectsMSFT#type} field. */ + public XrSceneObjectsMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_OBJECTS_MSFT); } + /** Sets the specified value to the {@link XrSceneObjectsMSFT#next} field. */ + public XrSceneObjectsMSFT.Buffer next(@NativeType("void *") long value) { XrSceneObjectsMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSceneObjectsMSFT#sceneObjectCount} field. */ + public XrSceneObjectsMSFT.Buffer sceneObjectCount(@NativeType("uint32_t") int value) { XrSceneObjectsMSFT.nsceneObjectCount(address(), value); return this; } + /** Sets the address of the specified {@link XrSceneObjectMSFT.Buffer} to the {@link XrSceneObjectsMSFT#sceneObjects} field. */ + public XrSceneObjectsMSFT.Buffer sceneObjects(@Nullable @NativeType("XrSceneObjectMSFT *") XrSceneObjectMSFT.Buffer value) { XrSceneObjectsMSFT.nsceneObjects(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObserverCreateInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObserverCreateInfoMSFT.java index 73fc4c5520..17ca8c9c3b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObserverCreateInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObserverCreateInfoMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The information to create a scene observer handle. * @@ -23,7 +23,7 @@ *
                                                            *
                                                          • The {@link MSFTSceneUnderstanding XR_MSFT_scene_understanding} extension must be enabled prior to using {@link XrSceneObserverCreateInfoMSFT}
                                                          • *
                                                          • {@code type} must be {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_OBSERVER_CREATE_INFO_MSFT TYPE_SCENE_OBSERVER_CREATE_INFO_MSFT}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • + *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • *
                                                          * *
                                                          See Also
                                                          @@ -37,8 +37,8 @@ * XrStructureType {@link #type}; * void const * {@link #next}; * } - */ -public class XrSceneObserverCreateInfoMSFT extends Struct implements NativeResource { + */ +public class XrSceneObserverCreateInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,21 +48,21 @@ public class XrSceneObserverCreateInfoMSFT extends Struct implements NativeResource { @@ -283,20 +283,20 @@ protected Buffer self() { protected XrSceneObserverCreateInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSceneObserverCreateInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSceneObserverCreateInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSceneObserverCreateInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSceneObserverCreateInfoMSFT.nnext(address()); } - - /** Sets the specified value to the {@link XrSceneObserverCreateInfoMSFT#type} field. */ - public XrSceneObserverCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneObserverCreateInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_OBSERVER_CREATE_INFO_MSFT TYPE_SCENE_OBSERVER_CREATE_INFO_MSFT} value to the {@link XrSceneObserverCreateInfoMSFT#type} field. */ - public XrSceneObserverCreateInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_OBSERVER_CREATE_INFO_MSFT); } - /** Sets the specified value to the {@link XrSceneObserverCreateInfoMSFT#next} field. */ - public XrSceneObserverCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneObserverCreateInfoMSFT.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSceneObserverCreateInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSceneObserverCreateInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSceneObserverCreateInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSceneObserverCreateInfoMSFT.nnext(address()); } + + /** Sets the specified value to the {@link XrSceneObserverCreateInfoMSFT#type} field. */ + public XrSceneObserverCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSceneObserverCreateInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_OBSERVER_CREATE_INFO_MSFT TYPE_SCENE_OBSERVER_CREATE_INFO_MSFT} value to the {@link XrSceneObserverCreateInfoMSFT#type} field. */ + public XrSceneObserverCreateInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_OBSERVER_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link XrSceneObserverCreateInfoMSFT#next} field. */ + public XrSceneObserverCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSceneObserverCreateInfoMSFT.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObserverMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObserverMSFT.java index dd76add3bf..3689457e9a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObserverMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneObserverMSFT.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrSceneObserverMSFT} handle. */ + +/** Wraps an {@code XrSceneObserverMSFT} handle. */ public class XrSceneObserverMSFT extends DispatchableHandle { private final XrSession session; @@ -26,4 +26,4 @@ public XrSession getSession() { return session; } -} +} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneOrientedBoxBoundMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneOrientedBoxBoundMSFT.java index 58c2f9934e..caa05455fb 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneOrientedBoxBoundMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneOrientedBoxBoundMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describe a scene oriented box bounds. * @@ -39,8 +39,8 @@ * {@link XrPosef XrPosef} {@link #pose}; * {@link XrVector3f XrVector3f} {@link #extents}; * } - */ -public class XrSceneOrientedBoxBoundMSFT extends Struct implements NativeResource { + */ +public class XrSceneOrientedBoxBoundMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,21 +50,21 @@ public class XrSceneOrientedBoxBoundMSFT extends Struct consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link #extents} field. */ - public XrSceneOrientedBoxBoundMSFT extents(XrVector3f value) { nextents(address(), value); return this; } - /** Passes the {@link #extents} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneOrientedBoxBoundMSFT extents(java.util.function.Consumer consumer) { consumer.accept(extents()); return this; } + + /** an {@link XrPosef} defining the center position and orientation of the oriented bounding box bound within the reference frame of the corresponding {@link XrSceneBoundsMSFT}{@code ::space}. */ + public XrPosef pose() { return npose(address()); } + /** an {@link XrVector3f} defining the edge-to-edge length of the box along each dimension with {@code pose} as the center. */ + public XrVector3f extents() { return nextents(address()); } + + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrSceneOrientedBoxBoundMSFT pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneOrientedBoxBoundMSFT pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link #extents} field. */ + public XrSceneOrientedBoxBoundMSFT extents(XrVector3f value) { nextents(address(), value); return this; } + /** Passes the {@link #extents} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneOrientedBoxBoundMSFT extents(java.util.function.Consumer consumer) { consumer.accept(extents()); return this; } /** Initializes this struct with the specified values. */ public XrSceneOrientedBoxBoundMSFT set( - XrPosef pose, + XrPosef pose, XrVector3f extents - ) { - pose(pose); - extents(extents); + ) { + pose(pose); + extents(extents); return this; } @@ -237,18 +237,18 @@ public static XrSceneOrientedBoxBoundMSFT.Buffer calloc(int capacity, MemoryStac } // ----------------------------------- - - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrSceneOrientedBoxBoundMSFT.POSE); } - /** Unsafe version of {@link #extents}. */ - public static XrVector3f nextents(long struct) { return XrVector3f.create(struct + XrSceneOrientedBoxBoundMSFT.EXTENTS); } - - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrSceneOrientedBoxBoundMSFT.POSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #extents(XrVector3f) extents}. */ - public static void nextents(long struct, XrVector3f value) { memCopy(value.address(), struct + XrSceneOrientedBoxBoundMSFT.EXTENTS, XrVector3f.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrSceneOrientedBoxBoundMSFT.POSE); } + /** Unsafe version of {@link #extents}. */ + public static XrVector3f nextents(long struct) { return XrVector3f.create(struct + XrSceneOrientedBoxBoundMSFT.EXTENTS); } + + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrSceneOrientedBoxBoundMSFT.POSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #extents(XrVector3f) extents}. */ + public static void nextents(long struct, XrVector3f value) { memCopy(value.address(), struct + XrSceneOrientedBoxBoundMSFT.EXTENTS, XrVector3f.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrSceneOrientedBoxBoundMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -285,20 +285,20 @@ protected Buffer self() { protected XrSceneOrientedBoxBoundMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return a {@link XrPosef} view of the {@link XrSceneOrientedBoxBoundMSFT#pose} field. */ - public XrPosef pose() { return XrSceneOrientedBoxBoundMSFT.npose(address()); } - /** @return a {@link XrVector3f} view of the {@link XrSceneOrientedBoxBoundMSFT#extents} field. */ - public XrVector3f extents() { return XrSceneOrientedBoxBoundMSFT.nextents(address()); } - - /** Copies the specified {@link XrPosef} to the {@link XrSceneOrientedBoxBoundMSFT#pose} field. */ - public XrSceneOrientedBoxBoundMSFT.Buffer pose(XrPosef value) { XrSceneOrientedBoxBoundMSFT.npose(address(), value); return this; } - /** Passes the {@link XrSceneOrientedBoxBoundMSFT#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneOrientedBoxBoundMSFT.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link XrSceneOrientedBoxBoundMSFT#extents} field. */ - public XrSceneOrientedBoxBoundMSFT.Buffer extents(XrVector3f value) { XrSceneOrientedBoxBoundMSFT.nextents(address(), value); return this; } - /** Passes the {@link XrSceneOrientedBoxBoundMSFT#extents} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneOrientedBoxBoundMSFT.Buffer extents(java.util.function.Consumer consumer) { consumer.accept(extents()); return this; } + + /** @return a {@link XrPosef} view of the {@link XrSceneOrientedBoxBoundMSFT#pose} field. */ + public XrPosef pose() { return XrSceneOrientedBoxBoundMSFT.npose(address()); } + /** @return a {@link XrVector3f} view of the {@link XrSceneOrientedBoxBoundMSFT#extents} field. */ + public XrVector3f extents() { return XrSceneOrientedBoxBoundMSFT.nextents(address()); } + + /** Copies the specified {@link XrPosef} to the {@link XrSceneOrientedBoxBoundMSFT#pose} field. */ + public XrSceneOrientedBoxBoundMSFT.Buffer pose(XrPosef value) { XrSceneOrientedBoxBoundMSFT.npose(address(), value); return this; } + /** Passes the {@link XrSceneOrientedBoxBoundMSFT#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneOrientedBoxBoundMSFT.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link XrSceneOrientedBoxBoundMSFT#extents} field. */ + public XrSceneOrientedBoxBoundMSFT.Buffer extents(XrVector3f value) { XrSceneOrientedBoxBoundMSFT.nextents(address(), value); return this; } + /** Passes the {@link XrSceneOrientedBoxBoundMSFT#extents} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneOrientedBoxBoundMSFT.Buffer extents(java.util.function.Consumer consumer) { consumer.accept(extents()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrScenePlaneAlignmentFilterInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrScenePlaneAlignmentFilterInfoMSFT.java index bf5d5ae0d6..673ad0149c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrScenePlaneAlignmentFilterInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrScenePlaneAlignmentFilterInfoMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Plane alignment filter. * @@ -27,7 +27,7 @@ *
                                                            *
                                                          • The {@link MSFTSceneUnderstanding XR_MSFT_scene_understanding} extension must be enabled prior to using {@link XrScenePlaneAlignmentFilterInfoMSFT}
                                                          • *
                                                          • {@code type} must be {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_PLANE_ALIGNMENT_FILTER_INFO_MSFT TYPE_SCENE_PLANE_ALIGNMENT_FILTER_INFO_MSFT}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • + *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • *
                                                          • If {@code alignmentCount} is not 0, {@code alignments} must be a pointer to an array of {@code alignmentCount} valid {@code XrScenePlaneAlignmentTypeMSFT} values
                                                          • *
                                                          * @@ -44,8 +44,8 @@ * uint32_t {@link #alignmentCount}; * XrScenePlaneAlignmentTypeMSFT const * {@link #alignments}; * } - */ -public class XrScenePlaneAlignmentFilterInfoMSFT extends Struct implements NativeResource { + */ +public class XrScenePlaneAlignmentFilterInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,27 +55,27 @@ public class XrScenePlaneAlignmentFilterInfoMSFT extends Struct implements NativeResource { @@ -319,31 +319,31 @@ protected Buffer self() { protected XrScenePlaneAlignmentFilterInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrScenePlaneAlignmentFilterInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrScenePlaneAlignmentFilterInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrScenePlaneAlignmentFilterInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrScenePlaneAlignmentFilterInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrScenePlaneAlignmentFilterInfoMSFT#alignmentCount} field. */ - @NativeType("uint32_t") - public int alignmentCount() { return XrScenePlaneAlignmentFilterInfoMSFT.nalignmentCount(address()); } - /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrScenePlaneAlignmentFilterInfoMSFT#alignments} field. */ - @Nullable - @NativeType("XrScenePlaneAlignmentTypeMSFT const *") - public IntBuffer alignments() { return XrScenePlaneAlignmentFilterInfoMSFT.nalignments(address()); } - - /** Sets the specified value to the {@link XrScenePlaneAlignmentFilterInfoMSFT#type} field. */ - public XrScenePlaneAlignmentFilterInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrScenePlaneAlignmentFilterInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_PLANE_ALIGNMENT_FILTER_INFO_MSFT TYPE_SCENE_PLANE_ALIGNMENT_FILTER_INFO_MSFT} value to the {@link XrScenePlaneAlignmentFilterInfoMSFT#type} field. */ - public XrScenePlaneAlignmentFilterInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_PLANE_ALIGNMENT_FILTER_INFO_MSFT); } - /** Sets the specified value to the {@link XrScenePlaneAlignmentFilterInfoMSFT#next} field. */ - public XrScenePlaneAlignmentFilterInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrScenePlaneAlignmentFilterInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrScenePlaneAlignmentFilterInfoMSFT#alignmentCount} field. */ - public XrScenePlaneAlignmentFilterInfoMSFT.Buffer alignmentCount(@NativeType("uint32_t") int value) { XrScenePlaneAlignmentFilterInfoMSFT.nalignmentCount(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link XrScenePlaneAlignmentFilterInfoMSFT#alignments} field. */ - public XrScenePlaneAlignmentFilterInfoMSFT.Buffer alignments(@Nullable @NativeType("XrScenePlaneAlignmentTypeMSFT const *") IntBuffer value) { XrScenePlaneAlignmentFilterInfoMSFT.nalignments(address(), value); return this; } + + /** @return the value of the {@link XrScenePlaneAlignmentFilterInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrScenePlaneAlignmentFilterInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrScenePlaneAlignmentFilterInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrScenePlaneAlignmentFilterInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrScenePlaneAlignmentFilterInfoMSFT#alignmentCount} field. */ + @NativeType("uint32_t") + public int alignmentCount() { return XrScenePlaneAlignmentFilterInfoMSFT.nalignmentCount(address()); } + /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrScenePlaneAlignmentFilterInfoMSFT#alignments} field. */ + @Nullable + @NativeType("XrScenePlaneAlignmentTypeMSFT const *") + public IntBuffer alignments() { return XrScenePlaneAlignmentFilterInfoMSFT.nalignments(address()); } + + /** Sets the specified value to the {@link XrScenePlaneAlignmentFilterInfoMSFT#type} field. */ + public XrScenePlaneAlignmentFilterInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrScenePlaneAlignmentFilterInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_PLANE_ALIGNMENT_FILTER_INFO_MSFT TYPE_SCENE_PLANE_ALIGNMENT_FILTER_INFO_MSFT} value to the {@link XrScenePlaneAlignmentFilterInfoMSFT#type} field. */ + public XrScenePlaneAlignmentFilterInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_PLANE_ALIGNMENT_FILTER_INFO_MSFT); } + /** Sets the specified value to the {@link XrScenePlaneAlignmentFilterInfoMSFT#next} field. */ + public XrScenePlaneAlignmentFilterInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrScenePlaneAlignmentFilterInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrScenePlaneAlignmentFilterInfoMSFT#alignmentCount} field. */ + public XrScenePlaneAlignmentFilterInfoMSFT.Buffer alignmentCount(@NativeType("uint32_t") int value) { XrScenePlaneAlignmentFilterInfoMSFT.nalignmentCount(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link XrScenePlaneAlignmentFilterInfoMSFT#alignments} field. */ + public XrScenePlaneAlignmentFilterInfoMSFT.Buffer alignments(@Nullable @NativeType("XrScenePlaneAlignmentTypeMSFT const *") IntBuffer value) { XrScenePlaneAlignmentFilterInfoMSFT.nalignments(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrScenePlaneMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrScenePlaneMSFT.java index 8f9da45cc7..fd0bd40fac 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrScenePlaneMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrScenePlaneMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Scene plane. * @@ -47,8 +47,8 @@ * uint64_t {@link #meshBufferId}; * XrBool32 {@link #supportsIndicesUint16}; * } - */ -public class XrScenePlaneMSFT extends Struct implements NativeResource { + */ +public class XrScenePlaneMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -58,27 +58,27 @@ public class XrScenePlaneMSFT extends Struct implements Native /** The struct member offsets. */ public static final int - ALIGNMENT, - SIZE, - MESHBUFFERID, - SUPPORTSINDICESUINT16; + ALIGNMENT, + SIZE, + MESHBUFFERID, + SUPPORTSINDICESUINT16; static { - Layout layout = __struct( - __member(4), - __member(XrExtent2Df.SIZEOF, XrExtent2Df.ALIGNOF), - __member(8), + Layout layout = __struct( + __member(4), + __member(XrExtent2Df.SIZEOF, XrExtent2Df.ALIGNOF), + __member(8), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - ALIGNMENT = layout.offsetof(0); - SIZE = layout.offsetof(1); - MESHBUFFERID = layout.offsetof(2); - SUPPORTSINDICESUINT16 = layout.offsetof(3); - } + ALIGNMENT = layout.offsetof(0); + SIZE = layout.offsetof(1); + MESHBUFFERID = layout.offsetof(2); + SUPPORTSINDICESUINT16 = layout.offsetof(3); + } protected XrScenePlaneMSFT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -101,41 +101,41 @@ public XrScenePlaneMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the alignment type of the plane specified by {@code XrScenePlaneAlignmentTypeMSFT}. */ - @NativeType("XrScenePlaneAlignmentTypeMSFT") - public int alignment() { return nalignment(address()); } - /** the 2D size of the plane’s extent, where {@code size}{@code ::width} is the width of the plane along the X axis, and {@code size}{@code ::height} is the height of the plane along the Y axis. */ - public XrExtent2Df size() { return nsize(address()); } - /** the {@code uint64_t} identifier that specifies the scene mesh buffer of this plane’s triangle mesh. If {@code meshBufferId} is zero then this plane does not have a mesh. The triangles in a planar mesh are coplanar. */ - @NativeType("uint64_t") - public long meshBufferId() { return nmeshBufferId(address()); } - /** {@link XR10#XR_TRUE TRUE} if the mesh supports reading 16-bit unsigned indices. */ - @NativeType("XrBool32") - public boolean supportsIndicesUint16() { return nsupportsIndicesUint16(address()) != 0; } - - /** Sets the specified value to the {@link #alignment} field. */ - public XrScenePlaneMSFT alignment(@NativeType("XrScenePlaneAlignmentTypeMSFT") int value) { nalignment(address(), value); return this; } - /** Copies the specified {@link XrExtent2Df} to the {@link #size} field. */ - public XrScenePlaneMSFT size(XrExtent2Df value) { nsize(address(), value); return this; } - /** Passes the {@link #size} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrScenePlaneMSFT size(java.util.function.Consumer consumer) { consumer.accept(size()); return this; } - /** Sets the specified value to the {@link #meshBufferId} field. */ - public XrScenePlaneMSFT meshBufferId(@NativeType("uint64_t") long value) { nmeshBufferId(address(), value); return this; } - /** Sets the specified value to the {@link #supportsIndicesUint16} field. */ - public XrScenePlaneMSFT supportsIndicesUint16(@NativeType("XrBool32") boolean value) { nsupportsIndicesUint16(address(), value ? 1 : 0); return this; } + + /** the alignment type of the plane specified by {@code XrScenePlaneAlignmentTypeMSFT}. */ + @NativeType("XrScenePlaneAlignmentTypeMSFT") + public int alignment() { return nalignment(address()); } + /** the 2D size of the plane’s extent, where {@code size}{@code ::width} is the width of the plane along the X axis, and {@code size}{@code ::height} is the height of the plane along the Y axis. */ + public XrExtent2Df size() { return nsize(address()); } + /** the {@code uint64_t} identifier that specifies the scene mesh buffer of this plane’s triangle mesh. If {@code meshBufferId} is zero then this plane does not have a mesh. The triangles in a planar mesh are coplanar. */ + @NativeType("uint64_t") + public long meshBufferId() { return nmeshBufferId(address()); } + /** {@link XR10#XR_TRUE TRUE} if the mesh supports reading 16-bit unsigned indices. */ + @NativeType("XrBool32") + public boolean supportsIndicesUint16() { return nsupportsIndicesUint16(address()) != 0; } + + /** Sets the specified value to the {@link #alignment} field. */ + public XrScenePlaneMSFT alignment(@NativeType("XrScenePlaneAlignmentTypeMSFT") int value) { nalignment(address(), value); return this; } + /** Copies the specified {@link XrExtent2Df} to the {@link #size} field. */ + public XrScenePlaneMSFT size(XrExtent2Df value) { nsize(address(), value); return this; } + /** Passes the {@link #size} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrScenePlaneMSFT size(java.util.function.Consumer consumer) { consumer.accept(size()); return this; } + /** Sets the specified value to the {@link #meshBufferId} field. */ + public XrScenePlaneMSFT meshBufferId(@NativeType("uint64_t") long value) { nmeshBufferId(address(), value); return this; } + /** Sets the specified value to the {@link #supportsIndicesUint16} field. */ + public XrScenePlaneMSFT supportsIndicesUint16(@NativeType("XrBool32") boolean value) { nsupportsIndicesUint16(address(), value ? 1 : 0); return this; } /** Initializes this struct with the specified values. */ public XrScenePlaneMSFT set( - int alignment, - XrExtent2Df size, - long meshBufferId, + int alignment, + XrExtent2Df size, + long meshBufferId, boolean supportsIndicesUint16 - ) { - alignment(alignment); - size(size); - meshBufferId(meshBufferId); - supportsIndicesUint16(supportsIndicesUint16); + ) { + alignment(alignment); + size(size); + meshBufferId(meshBufferId); + supportsIndicesUint16(supportsIndicesUint16); return this; } @@ -264,26 +264,26 @@ public static XrScenePlaneMSFT.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #alignment}. */ - public static int nalignment(long struct) { return UNSAFE.getInt(null, struct + XrScenePlaneMSFT.ALIGNMENT); } - /** Unsafe version of {@link #size}. */ - public static XrExtent2Df nsize(long struct) { return XrExtent2Df.create(struct + XrScenePlaneMSFT.SIZE); } - /** Unsafe version of {@link #meshBufferId}. */ - public static long nmeshBufferId(long struct) { return UNSAFE.getLong(null, struct + XrScenePlaneMSFT.MESHBUFFERID); } - /** Unsafe version of {@link #supportsIndicesUint16}. */ - public static int nsupportsIndicesUint16(long struct) { return UNSAFE.getInt(null, struct + XrScenePlaneMSFT.SUPPORTSINDICESUINT16); } - - /** Unsafe version of {@link #alignment(int) alignment}. */ - public static void nalignment(long struct, int value) { UNSAFE.putInt(null, struct + XrScenePlaneMSFT.ALIGNMENT, value); } - /** Unsafe version of {@link #size(XrExtent2Df) size}. */ - public static void nsize(long struct, XrExtent2Df value) { memCopy(value.address(), struct + XrScenePlaneMSFT.SIZE, XrExtent2Df.SIZEOF); } - /** Unsafe version of {@link #meshBufferId(long) meshBufferId}. */ - public static void nmeshBufferId(long struct, long value) { UNSAFE.putLong(null, struct + XrScenePlaneMSFT.MESHBUFFERID, value); } - /** Unsafe version of {@link #supportsIndicesUint16(boolean) supportsIndicesUint16}. */ - public static void nsupportsIndicesUint16(long struct, int value) { UNSAFE.putInt(null, struct + XrScenePlaneMSFT.SUPPORTSINDICESUINT16, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #alignment}. */ + public static int nalignment(long struct) { return UNSAFE.getInt(null, struct + XrScenePlaneMSFT.ALIGNMENT); } + /** Unsafe version of {@link #size}. */ + public static XrExtent2Df nsize(long struct) { return XrExtent2Df.create(struct + XrScenePlaneMSFT.SIZE); } + /** Unsafe version of {@link #meshBufferId}. */ + public static long nmeshBufferId(long struct) { return UNSAFE.getLong(null, struct + XrScenePlaneMSFT.MESHBUFFERID); } + /** Unsafe version of {@link #supportsIndicesUint16}. */ + public static int nsupportsIndicesUint16(long struct) { return UNSAFE.getInt(null, struct + XrScenePlaneMSFT.SUPPORTSINDICESUINT16); } + + /** Unsafe version of {@link #alignment(int) alignment}. */ + public static void nalignment(long struct, int value) { UNSAFE.putInt(null, struct + XrScenePlaneMSFT.ALIGNMENT, value); } + /** Unsafe version of {@link #size(XrExtent2Df) size}. */ + public static void nsize(long struct, XrExtent2Df value) { memCopy(value.address(), struct + XrScenePlaneMSFT.SIZE, XrExtent2Df.SIZEOF); } + /** Unsafe version of {@link #meshBufferId(long) meshBufferId}. */ + public static void nmeshBufferId(long struct, long value) { UNSAFE.putLong(null, struct + XrScenePlaneMSFT.MESHBUFFERID, value); } + /** Unsafe version of {@link #supportsIndicesUint16(boolean) supportsIndicesUint16}. */ + public static void nsupportsIndicesUint16(long struct, int value) { UNSAFE.putInt(null, struct + XrScenePlaneMSFT.SUPPORTSINDICESUINT16, value); } + + // ----------------------------------- /** An array of {@link XrScenePlaneMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -320,29 +320,29 @@ protected Buffer self() { protected XrScenePlaneMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrScenePlaneMSFT#alignment} field. */ - @NativeType("XrScenePlaneAlignmentTypeMSFT") - public int alignment() { return XrScenePlaneMSFT.nalignment(address()); } - /** @return a {@link XrExtent2Df} view of the {@link XrScenePlaneMSFT#size} field. */ - public XrExtent2Df size() { return XrScenePlaneMSFT.nsize(address()); } - /** @return the value of the {@link XrScenePlaneMSFT#meshBufferId} field. */ - @NativeType("uint64_t") - public long meshBufferId() { return XrScenePlaneMSFT.nmeshBufferId(address()); } - /** @return the value of the {@link XrScenePlaneMSFT#supportsIndicesUint16} field. */ - @NativeType("XrBool32") - public boolean supportsIndicesUint16() { return XrScenePlaneMSFT.nsupportsIndicesUint16(address()) != 0; } - - /** Sets the specified value to the {@link XrScenePlaneMSFT#alignment} field. */ - public XrScenePlaneMSFT.Buffer alignment(@NativeType("XrScenePlaneAlignmentTypeMSFT") int value) { XrScenePlaneMSFT.nalignment(address(), value); return this; } - /** Copies the specified {@link XrExtent2Df} to the {@link XrScenePlaneMSFT#size} field. */ - public XrScenePlaneMSFT.Buffer size(XrExtent2Df value) { XrScenePlaneMSFT.nsize(address(), value); return this; } - /** Passes the {@link XrScenePlaneMSFT#size} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrScenePlaneMSFT.Buffer size(java.util.function.Consumer consumer) { consumer.accept(size()); return this; } - /** Sets the specified value to the {@link XrScenePlaneMSFT#meshBufferId} field. */ - public XrScenePlaneMSFT.Buffer meshBufferId(@NativeType("uint64_t") long value) { XrScenePlaneMSFT.nmeshBufferId(address(), value); return this; } - /** Sets the specified value to the {@link XrScenePlaneMSFT#supportsIndicesUint16} field. */ - public XrScenePlaneMSFT.Buffer supportsIndicesUint16(@NativeType("XrBool32") boolean value) { XrScenePlaneMSFT.nsupportsIndicesUint16(address(), value ? 1 : 0); return this; } + + /** @return the value of the {@link XrScenePlaneMSFT#alignment} field. */ + @NativeType("XrScenePlaneAlignmentTypeMSFT") + public int alignment() { return XrScenePlaneMSFT.nalignment(address()); } + /** @return a {@link XrExtent2Df} view of the {@link XrScenePlaneMSFT#size} field. */ + public XrExtent2Df size() { return XrScenePlaneMSFT.nsize(address()); } + /** @return the value of the {@link XrScenePlaneMSFT#meshBufferId} field. */ + @NativeType("uint64_t") + public long meshBufferId() { return XrScenePlaneMSFT.nmeshBufferId(address()); } + /** @return the value of the {@link XrScenePlaneMSFT#supportsIndicesUint16} field. */ + @NativeType("XrBool32") + public boolean supportsIndicesUint16() { return XrScenePlaneMSFT.nsupportsIndicesUint16(address()) != 0; } + + /** Sets the specified value to the {@link XrScenePlaneMSFT#alignment} field. */ + public XrScenePlaneMSFT.Buffer alignment(@NativeType("XrScenePlaneAlignmentTypeMSFT") int value) { XrScenePlaneMSFT.nalignment(address(), value); return this; } + /** Copies the specified {@link XrExtent2Df} to the {@link XrScenePlaneMSFT#size} field. */ + public XrScenePlaneMSFT.Buffer size(XrExtent2Df value) { XrScenePlaneMSFT.nsize(address(), value); return this; } + /** Passes the {@link XrScenePlaneMSFT#size} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrScenePlaneMSFT.Buffer size(java.util.function.Consumer consumer) { consumer.accept(size()); return this; } + /** Sets the specified value to the {@link XrScenePlaneMSFT#meshBufferId} field. */ + public XrScenePlaneMSFT.Buffer meshBufferId(@NativeType("uint64_t") long value) { XrScenePlaneMSFT.nmeshBufferId(address(), value); return this; } + /** Sets the specified value to the {@link XrScenePlaneMSFT#supportsIndicesUint16} field. */ + public XrScenePlaneMSFT.Buffer supportsIndicesUint16(@NativeType("XrBool32") boolean value) { XrScenePlaneMSFT.nsupportsIndicesUint16(address(), value ? 1 : 0); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrScenePlanesMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrScenePlanesMSFT.java index 1899ebdd6c..fe6b4163df 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrScenePlanesMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrScenePlanesMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Scene planes. * @@ -23,7 +23,7 @@ *
                                                            *
                                                          • The {@link MSFTSceneUnderstanding XR_MSFT_scene_understanding} extension must be enabled prior to using {@link XrScenePlanesMSFT}
                                                          • *
                                                          • {@code type} must be {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_PLANES_MSFT TYPE_SCENE_PLANES_MSFT}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • + *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • *
                                                          • If {@code scenePlaneCount} is not 0, {@code scenePlanes} must be a pointer to an array of {@code scenePlaneCount} {@link XrScenePlaneMSFT} structures
                                                          • *
                                                          * @@ -40,8 +40,8 @@ * uint32_t {@link #scenePlaneCount}; * {@link XrScenePlaneMSFT XrScenePlaneMSFT} * {@link #scenePlanes}; * } - */ -public class XrScenePlanesMSFT extends Struct implements NativeResource { + */ +public class XrScenePlanesMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,27 +51,27 @@ public class XrScenePlanesMSFT extends Struct implements Nati /** The struct member offsets. */ public static final int - TYPE, - NEXT, - SCENEPLANECOUNT, - SCENEPLANES; + TYPE, + NEXT, + SCENEPLANECOUNT, + SCENEPLANES; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - SCENEPLANECOUNT = layout.offsetof(2); - SCENEPLANES = layout.offsetof(3); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + SCENEPLANECOUNT = layout.offsetof(2); + SCENEPLANES = layout.offsetof(3); + } protected XrScenePlanesMSFT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -94,43 +94,43 @@ public XrScenePlanesMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** a {@code uint32_t} describing the count of elements in the {@link XrScenePlaneMSFT} array. */ - @NativeType("uint32_t") - public int scenePlaneCount() { return nscenePlaneCount(address()); } - /** an array of {@link XrScenePlaneMSFT}. */ - @Nullable - @NativeType("XrScenePlaneMSFT *") - public XrScenePlaneMSFT.Buffer scenePlanes() { return nscenePlanes(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrScenePlanesMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_PLANES_MSFT TYPE_SCENE_PLANES_MSFT} value to the {@link #type} field. */ - public XrScenePlanesMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_PLANES_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrScenePlanesMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #scenePlaneCount} field. */ - public XrScenePlanesMSFT scenePlaneCount(@NativeType("uint32_t") int value) { nscenePlaneCount(address(), value); return this; } - /** Sets the address of the specified {@link XrScenePlaneMSFT.Buffer} to the {@link #scenePlanes} field. */ - public XrScenePlanesMSFT scenePlanes(@Nullable @NativeType("XrScenePlaneMSFT *") XrScenePlaneMSFT.Buffer value) { nscenePlanes(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** a {@code uint32_t} describing the count of elements in the {@link XrScenePlaneMSFT} array. */ + @NativeType("uint32_t") + public int scenePlaneCount() { return nscenePlaneCount(address()); } + /** an array of {@link XrScenePlaneMSFT}. */ + @Nullable + @NativeType("XrScenePlaneMSFT *") + public XrScenePlaneMSFT.Buffer scenePlanes() { return nscenePlanes(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrScenePlanesMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_PLANES_MSFT TYPE_SCENE_PLANES_MSFT} value to the {@link #type} field. */ + public XrScenePlanesMSFT type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_PLANES_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrScenePlanesMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #scenePlaneCount} field. */ + public XrScenePlanesMSFT scenePlaneCount(@NativeType("uint32_t") int value) { nscenePlaneCount(address(), value); return this; } + /** Sets the address of the specified {@link XrScenePlaneMSFT.Buffer} to the {@link #scenePlanes} field. */ + public XrScenePlanesMSFT scenePlanes(@Nullable @NativeType("XrScenePlaneMSFT *") XrScenePlaneMSFT.Buffer value) { nscenePlanes(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrScenePlanesMSFT set( - int type, - long next, - int scenePlaneCount, + int type, + long next, + int scenePlaneCount, @Nullable XrScenePlaneMSFT.Buffer scenePlanes - ) { - type(type); - next(next); - scenePlaneCount(scenePlaneCount); - scenePlanes(scenePlanes); + ) { + type(type); + next(next); + scenePlaneCount(scenePlaneCount); + scenePlanes(scenePlanes); return this; } @@ -259,26 +259,26 @@ public static XrScenePlanesMSFT.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrScenePlanesMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrScenePlanesMSFT.NEXT); } - /** Unsafe version of {@link #scenePlaneCount}. */ - public static int nscenePlaneCount(long struct) { return UNSAFE.getInt(null, struct + XrScenePlanesMSFT.SCENEPLANECOUNT); } - /** Unsafe version of {@link #scenePlanes}. */ - @Nullable public static XrScenePlaneMSFT.Buffer nscenePlanes(long struct) { return XrScenePlaneMSFT.createSafe(memGetAddress(struct + XrScenePlanesMSFT.SCENEPLANES), nscenePlaneCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrScenePlanesMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrScenePlanesMSFT.NEXT, value); } - /** Sets the specified value to the {@code scenePlaneCount} field of the specified {@code struct}. */ - public static void nscenePlaneCount(long struct, int value) { UNSAFE.putInt(null, struct + XrScenePlanesMSFT.SCENEPLANECOUNT, value); } - /** Unsafe version of {@link #scenePlanes(XrScenePlaneMSFT.Buffer) scenePlanes}. */ - public static void nscenePlanes(long struct, @Nullable XrScenePlaneMSFT.Buffer value) { memPutAddress(struct + XrScenePlanesMSFT.SCENEPLANES, memAddressSafe(value)); if (value != null) { nscenePlaneCount(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrScenePlanesMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrScenePlanesMSFT.NEXT); } + /** Unsafe version of {@link #scenePlaneCount}. */ + public static int nscenePlaneCount(long struct) { return UNSAFE.getInt(null, struct + XrScenePlanesMSFT.SCENEPLANECOUNT); } + /** Unsafe version of {@link #scenePlanes}. */ + @Nullable public static XrScenePlaneMSFT.Buffer nscenePlanes(long struct) { return XrScenePlaneMSFT.createSafe(memGetAddress(struct + XrScenePlanesMSFT.SCENEPLANES), nscenePlaneCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrScenePlanesMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrScenePlanesMSFT.NEXT, value); } + /** Sets the specified value to the {@code scenePlaneCount} field of the specified {@code struct}. */ + public static void nscenePlaneCount(long struct, int value) { UNSAFE.putInt(null, struct + XrScenePlanesMSFT.SCENEPLANECOUNT, value); } + /** Unsafe version of {@link #scenePlanes(XrScenePlaneMSFT.Buffer) scenePlanes}. */ + public static void nscenePlanes(long struct, @Nullable XrScenePlaneMSFT.Buffer value) { memPutAddress(struct + XrScenePlanesMSFT.SCENEPLANES, memAddressSafe(value)); if (value != null) { nscenePlaneCount(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrScenePlanesMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -315,31 +315,31 @@ protected Buffer self() { protected XrScenePlanesMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrScenePlanesMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrScenePlanesMSFT.ntype(address()); } - /** @return the value of the {@link XrScenePlanesMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrScenePlanesMSFT.nnext(address()); } - /** @return the value of the {@link XrScenePlanesMSFT#scenePlaneCount} field. */ - @NativeType("uint32_t") - public int scenePlaneCount() { return XrScenePlanesMSFT.nscenePlaneCount(address()); } - /** @return a {@link XrScenePlaneMSFT.Buffer} view of the struct array pointed to by the {@link XrScenePlanesMSFT#scenePlanes} field. */ - @Nullable - @NativeType("XrScenePlaneMSFT *") - public XrScenePlaneMSFT.Buffer scenePlanes() { return XrScenePlanesMSFT.nscenePlanes(address()); } - - /** Sets the specified value to the {@link XrScenePlanesMSFT#type} field. */ - public XrScenePlanesMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrScenePlanesMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_PLANES_MSFT TYPE_SCENE_PLANES_MSFT} value to the {@link XrScenePlanesMSFT#type} field. */ - public XrScenePlanesMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_PLANES_MSFT); } - /** Sets the specified value to the {@link XrScenePlanesMSFT#next} field. */ - public XrScenePlanesMSFT.Buffer next(@NativeType("void *") long value) { XrScenePlanesMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrScenePlanesMSFT#scenePlaneCount} field. */ - public XrScenePlanesMSFT.Buffer scenePlaneCount(@NativeType("uint32_t") int value) { XrScenePlanesMSFT.nscenePlaneCount(address(), value); return this; } - /** Sets the address of the specified {@link XrScenePlaneMSFT.Buffer} to the {@link XrScenePlanesMSFT#scenePlanes} field. */ - public XrScenePlanesMSFT.Buffer scenePlanes(@Nullable @NativeType("XrScenePlaneMSFT *") XrScenePlaneMSFT.Buffer value) { XrScenePlanesMSFT.nscenePlanes(address(), value); return this; } + + /** @return the value of the {@link XrScenePlanesMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrScenePlanesMSFT.ntype(address()); } + /** @return the value of the {@link XrScenePlanesMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrScenePlanesMSFT.nnext(address()); } + /** @return the value of the {@link XrScenePlanesMSFT#scenePlaneCount} field. */ + @NativeType("uint32_t") + public int scenePlaneCount() { return XrScenePlanesMSFT.nscenePlaneCount(address()); } + /** @return a {@link XrScenePlaneMSFT.Buffer} view of the struct array pointed to by the {@link XrScenePlanesMSFT#scenePlanes} field. */ + @Nullable + @NativeType("XrScenePlaneMSFT *") + public XrScenePlaneMSFT.Buffer scenePlanes() { return XrScenePlanesMSFT.nscenePlanes(address()); } + + /** Sets the specified value to the {@link XrScenePlanesMSFT#type} field. */ + public XrScenePlanesMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrScenePlanesMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_SCENE_PLANES_MSFT TYPE_SCENE_PLANES_MSFT} value to the {@link XrScenePlanesMSFT#type} field. */ + public XrScenePlanesMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_SCENE_PLANES_MSFT); } + /** Sets the specified value to the {@link XrScenePlanesMSFT#next} field. */ + public XrScenePlanesMSFT.Buffer next(@NativeType("void *") long value) { XrScenePlanesMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrScenePlanesMSFT#scenePlaneCount} field. */ + public XrScenePlanesMSFT.Buffer scenePlaneCount(@NativeType("uint32_t") int value) { XrScenePlanesMSFT.nscenePlaneCount(address(), value); return this; } + /** Sets the address of the specified {@link XrScenePlaneMSFT.Buffer} to the {@link XrScenePlanesMSFT#scenePlanes} field. */ + public XrScenePlanesMSFT.Buffer scenePlanes(@Nullable @NativeType("XrScenePlaneMSFT *") XrScenePlaneMSFT.Buffer value) { XrScenePlanesMSFT.nscenePlanes(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneSphereBoundMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneSphereBoundMSFT.java index b5538cef24..1868a6f96c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneSphereBoundMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSceneSphereBoundMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describe a scene sphere bounds. * @@ -39,8 +39,8 @@ * {@link XrVector3f XrVector3f} {@link #center}; * float {@link #radius}; * } - */ -public class XrSceneSphereBoundMSFT extends Struct implements NativeResource { + */ +public class XrSceneSphereBoundMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,21 +50,21 @@ public class XrSceneSphereBoundMSFT extends Struct imple /** The struct member offsets. */ public static final int - CENTER, - RADIUS; + CENTER, + RADIUS; static { - Layout layout = __struct( - __member(XrVector3f.SIZEOF, XrVector3f.ALIGNOF), + Layout layout = __struct( + __member(XrVector3f.SIZEOF, XrVector3f.ALIGNOF), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - CENTER = layout.offsetof(0); - RADIUS = layout.offsetof(1); - } + CENTER = layout.offsetof(0); + RADIUS = layout.offsetof(1); + } protected XrSceneSphereBoundMSFT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -87,26 +87,26 @@ public XrSceneSphereBoundMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** an {@link XrVector3f} representing the center of the sphere bound within the reference frame of the corresponding {@link XrSceneBoundsMSFT}{@code ::space}. */ - public XrVector3f center() { return ncenter(address()); } - /** the finite positive radius of the sphere bound. */ - public float radius() { return nradius(address()); } - - /** Copies the specified {@link XrVector3f} to the {@link #center} field. */ - public XrSceneSphereBoundMSFT center(XrVector3f value) { ncenter(address(), value); return this; } - /** Passes the {@link #center} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneSphereBoundMSFT center(java.util.function.Consumer consumer) { consumer.accept(center()); return this; } - /** Sets the specified value to the {@link #radius} field. */ - public XrSceneSphereBoundMSFT radius(float value) { nradius(address(), value); return this; } + + /** an {@link XrVector3f} representing the center of the sphere bound within the reference frame of the corresponding {@link XrSceneBoundsMSFT}{@code ::space}. */ + public XrVector3f center() { return ncenter(address()); } + /** the finite positive radius of the sphere bound. */ + public float radius() { return nradius(address()); } + + /** Copies the specified {@link XrVector3f} to the {@link #center} field. */ + public XrSceneSphereBoundMSFT center(XrVector3f value) { ncenter(address(), value); return this; } + /** Passes the {@link #center} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneSphereBoundMSFT center(java.util.function.Consumer consumer) { consumer.accept(center()); return this; } + /** Sets the specified value to the {@link #radius} field. */ + public XrSceneSphereBoundMSFT radius(float value) { nradius(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSceneSphereBoundMSFT set( - XrVector3f center, + XrVector3f center, float radius - ) { - center(center); - radius(radius); + ) { + center(center); + radius(radius); return this; } @@ -235,18 +235,18 @@ public static XrSceneSphereBoundMSFT.Buffer calloc(int capacity, MemoryStack sta } // ----------------------------------- - - /** Unsafe version of {@link #center}. */ - public static XrVector3f ncenter(long struct) { return XrVector3f.create(struct + XrSceneSphereBoundMSFT.CENTER); } - /** Unsafe version of {@link #radius}. */ - public static float nradius(long struct) { return UNSAFE.getFloat(null, struct + XrSceneSphereBoundMSFT.RADIUS); } - - /** Unsafe version of {@link #center(XrVector3f) center}. */ - public static void ncenter(long struct, XrVector3f value) { memCopy(value.address(), struct + XrSceneSphereBoundMSFT.CENTER, XrVector3f.SIZEOF); } - /** Unsafe version of {@link #radius(float) radius}. */ - public static void nradius(long struct, float value) { UNSAFE.putFloat(null, struct + XrSceneSphereBoundMSFT.RADIUS, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #center}. */ + public static XrVector3f ncenter(long struct) { return XrVector3f.create(struct + XrSceneSphereBoundMSFT.CENTER); } + /** Unsafe version of {@link #radius}. */ + public static float nradius(long struct) { return UNSAFE.getFloat(null, struct + XrSceneSphereBoundMSFT.RADIUS); } + + /** Unsafe version of {@link #center(XrVector3f) center}. */ + public static void ncenter(long struct, XrVector3f value) { memCopy(value.address(), struct + XrSceneSphereBoundMSFT.CENTER, XrVector3f.SIZEOF); } + /** Unsafe version of {@link #radius(float) radius}. */ + public static void nradius(long struct, float value) { UNSAFE.putFloat(null, struct + XrSceneSphereBoundMSFT.RADIUS, value); } + + // ----------------------------------- /** An array of {@link XrSceneSphereBoundMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -283,18 +283,18 @@ protected Buffer self() { protected XrSceneSphereBoundMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return a {@link XrVector3f} view of the {@link XrSceneSphereBoundMSFT#center} field. */ - public XrVector3f center() { return XrSceneSphereBoundMSFT.ncenter(address()); } - /** @return the value of the {@link XrSceneSphereBoundMSFT#radius} field. */ - public float radius() { return XrSceneSphereBoundMSFT.nradius(address()); } - - /** Copies the specified {@link XrVector3f} to the {@link XrSceneSphereBoundMSFT#center} field. */ - public XrSceneSphereBoundMSFT.Buffer center(XrVector3f value) { XrSceneSphereBoundMSFT.ncenter(address(), value); return this; } - /** Passes the {@link XrSceneSphereBoundMSFT#center} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSceneSphereBoundMSFT.Buffer center(java.util.function.Consumer consumer) { consumer.accept(center()); return this; } - /** Sets the specified value to the {@link XrSceneSphereBoundMSFT#radius} field. */ - public XrSceneSphereBoundMSFT.Buffer radius(float value) { XrSceneSphereBoundMSFT.nradius(address(), value); return this; } + + /** @return a {@link XrVector3f} view of the {@link XrSceneSphereBoundMSFT#center} field. */ + public XrVector3f center() { return XrSceneSphereBoundMSFT.ncenter(address()); } + /** @return the value of the {@link XrSceneSphereBoundMSFT#radius} field. */ + public float radius() { return XrSceneSphereBoundMSFT.nradius(address()); } + + /** Copies the specified {@link XrVector3f} to the {@link XrSceneSphereBoundMSFT#center} field. */ + public XrSceneSphereBoundMSFT.Buffer center(XrVector3f value) { XrSceneSphereBoundMSFT.ncenter(address(), value); return this; } + /** Passes the {@link XrSceneSphereBoundMSFT#center} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSceneSphereBoundMSFT.Buffer center(java.util.function.Consumer consumer) { consumer.accept(center()); return this; } + /** Sets the specified value to the {@link XrSceneSphereBoundMSFT#radius} field. */ + public XrSceneSphereBoundMSFT.Buffer radius(float value) { XrSceneSphereBoundMSFT.nradius(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationFrameEndInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationFrameEndInfoMSFT.java index cff898843a..bc0ea3d50c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationFrameEndInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationFrameEndInfoMSFT.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Submit an array of {@link XrSecondaryViewConfigurationLayerInfoMSFT}, one for each secondary view configuration. * @@ -32,7 +32,7 @@ *
                                                            *
                                                          • The {@link MSFTSecondaryViewConfiguration XR_MSFT_secondary_view_configuration} extension must be enabled prior to using {@link XrSecondaryViewConfigurationFrameEndInfoMSFT}
                                                          • *
                                                          • {@code type} must be {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_END_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_END_INFO_MSFT}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • + *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • *
                                                          • {@code viewConfigurationLayersInfo} must be a pointer to an array of {@code viewConfigurationCount} valid {@link XrSecondaryViewConfigurationLayerInfoMSFT} structures
                                                          • *
                                                          • The {@code viewConfigurationCount} parameter must be greater than 0
                                                          • *
                                                          @@ -50,8 +50,8 @@ * uint32_t {@link #viewConfigurationCount}; * {@link XrSecondaryViewConfigurationLayerInfoMSFT XrSecondaryViewConfigurationLayerInfoMSFT} const * {@link #viewConfigurationLayersInfo}; * } - */ -public class XrSecondaryViewConfigurationFrameEndInfoMSFT extends Struct implements NativeResource { + */ +public class XrSecondaryViewConfigurationFrameEndInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -61,27 +61,27 @@ public class XrSecondaryViewConfigurationFrameEndInfoMSFT extends Struct implements NativeResource { @@ -332,28 +332,28 @@ protected Buffer self() { protected XrSecondaryViewConfigurationFrameEndInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSecondaryViewConfigurationFrameEndInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSecondaryViewConfigurationFrameEndInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#viewConfigurationCount} field. */ - @NativeType("uint32_t") - public int viewConfigurationCount() { return XrSecondaryViewConfigurationFrameEndInfoMSFT.nviewConfigurationCount(address()); } - /** @return a {@link XrSecondaryViewConfigurationLayerInfoMSFT.Buffer} view of the struct array pointed to by the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#viewConfigurationLayersInfo} field. */ - @NativeType("XrSecondaryViewConfigurationLayerInfoMSFT const *") - public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer viewConfigurationLayersInfo() { return XrSecondaryViewConfigurationFrameEndInfoMSFT.nviewConfigurationLayersInfo(address()); } - - /** Sets the specified value to the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#type} field. */ - public XrSecondaryViewConfigurationFrameEndInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSecondaryViewConfigurationFrameEndInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_END_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_END_INFO_MSFT} value to the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#type} field. */ - public XrSecondaryViewConfigurationFrameEndInfoMSFT.Buffer type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_END_INFO_MSFT); } - /** Sets the specified value to the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#next} field. */ - public XrSecondaryViewConfigurationFrameEndInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSecondaryViewConfigurationFrameEndInfoMSFT.nnext(address(), value); return this; } - /** Sets the address of the specified {@link XrSecondaryViewConfigurationLayerInfoMSFT.Buffer} to the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#viewConfigurationLayersInfo} field. */ - public XrSecondaryViewConfigurationFrameEndInfoMSFT.Buffer viewConfigurationLayersInfo(@NativeType("XrSecondaryViewConfigurationLayerInfoMSFT const *") XrSecondaryViewConfigurationLayerInfoMSFT.Buffer value) { XrSecondaryViewConfigurationFrameEndInfoMSFT.nviewConfigurationLayersInfo(address(), value); return this; } + + /** @return the value of the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSecondaryViewConfigurationFrameEndInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSecondaryViewConfigurationFrameEndInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#viewConfigurationCount} field. */ + @NativeType("uint32_t") + public int viewConfigurationCount() { return XrSecondaryViewConfigurationFrameEndInfoMSFT.nviewConfigurationCount(address()); } + /** @return a {@link XrSecondaryViewConfigurationLayerInfoMSFT.Buffer} view of the struct array pointed to by the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#viewConfigurationLayersInfo} field. */ + @NativeType("XrSecondaryViewConfigurationLayerInfoMSFT const *") + public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer viewConfigurationLayersInfo() { return XrSecondaryViewConfigurationFrameEndInfoMSFT.nviewConfigurationLayersInfo(address()); } + + /** Sets the specified value to the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#type} field. */ + public XrSecondaryViewConfigurationFrameEndInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSecondaryViewConfigurationFrameEndInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_END_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_END_INFO_MSFT} value to the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#type} field. */ + public XrSecondaryViewConfigurationFrameEndInfoMSFT.Buffer type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_END_INFO_MSFT); } + /** Sets the specified value to the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#next} field. */ + public XrSecondaryViewConfigurationFrameEndInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSecondaryViewConfigurationFrameEndInfoMSFT.nnext(address(), value); return this; } + /** Sets the address of the specified {@link XrSecondaryViewConfigurationLayerInfoMSFT.Buffer} to the {@link XrSecondaryViewConfigurationFrameEndInfoMSFT#viewConfigurationLayersInfo} field. */ + public XrSecondaryViewConfigurationFrameEndInfoMSFT.Buffer viewConfigurationLayersInfo(@NativeType("XrSecondaryViewConfigurationLayerInfoMSFT const *") XrSecondaryViewConfigurationLayerInfoMSFT.Buffer value) { XrSecondaryViewConfigurationFrameEndInfoMSFT.nviewConfigurationLayersInfo(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationFrameStateMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationFrameStateMSFT.java index ed87873b31..abe11164bc 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationFrameStateMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationFrameStateMSFT.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Extension structure to xrWaitFrame to return a list of secondary view configuration states. * @@ -28,7 +28,7 @@ *
                                                            *
                                                          • The {@link MSFTSecondaryViewConfiguration XR_MSFT_secondary_view_configuration} extension must be enabled prior to using {@link XrSecondaryViewConfigurationFrameStateMSFT}
                                                          • *
                                                          • {@code type} must be {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_STATE_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_STATE_MSFT}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • + *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • *
                                                          • {@code viewConfigurationStates} must be a pointer to an array of {@code viewConfigurationCount} {@link XrSecondaryViewConfigurationStateMSFT} structures
                                                          • *
                                                          • The {@code viewConfigurationCount} parameter must be greater than 0
                                                          • *
                                                          @@ -46,8 +46,8 @@ * uint32_t {@link #viewConfigurationCount}; * {@link XrSecondaryViewConfigurationStateMSFT XrSecondaryViewConfigurationStateMSFT} * {@link #viewConfigurationStates}; * } - */ -public class XrSecondaryViewConfigurationFrameStateMSFT extends Struct implements NativeResource { + */ +public class XrSecondaryViewConfigurationFrameStateMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,27 +57,27 @@ public class XrSecondaryViewConfigurationFrameStateMSFT extends Struct implements NativeResource { @@ -325,28 +325,28 @@ protected Buffer self() { protected XrSecondaryViewConfigurationFrameStateMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSecondaryViewConfigurationFrameStateMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSecondaryViewConfigurationFrameStateMSFT.ntype(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationFrameStateMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrSecondaryViewConfigurationFrameStateMSFT.nnext(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationFrameStateMSFT#viewConfigurationCount} field. */ - @NativeType("uint32_t") - public int viewConfigurationCount() { return XrSecondaryViewConfigurationFrameStateMSFT.nviewConfigurationCount(address()); } - /** @return a {@link XrSecondaryViewConfigurationStateMSFT.Buffer} view of the struct array pointed to by the {@link XrSecondaryViewConfigurationFrameStateMSFT#viewConfigurationStates} field. */ - @NativeType("XrSecondaryViewConfigurationStateMSFT *") - public XrSecondaryViewConfigurationStateMSFT.Buffer viewConfigurationStates() { return XrSecondaryViewConfigurationFrameStateMSFT.nviewConfigurationStates(address()); } - - /** Sets the specified value to the {@link XrSecondaryViewConfigurationFrameStateMSFT#type} field. */ - public XrSecondaryViewConfigurationFrameStateMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSecondaryViewConfigurationFrameStateMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_STATE_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_STATE_MSFT} value to the {@link XrSecondaryViewConfigurationFrameStateMSFT#type} field. */ - public XrSecondaryViewConfigurationFrameStateMSFT.Buffer type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_STATE_MSFT); } - /** Sets the specified value to the {@link XrSecondaryViewConfigurationFrameStateMSFT#next} field. */ - public XrSecondaryViewConfigurationFrameStateMSFT.Buffer next(@NativeType("void *") long value) { XrSecondaryViewConfigurationFrameStateMSFT.nnext(address(), value); return this; } - /** Sets the address of the specified {@link XrSecondaryViewConfigurationStateMSFT.Buffer} to the {@link XrSecondaryViewConfigurationFrameStateMSFT#viewConfigurationStates} field. */ - public XrSecondaryViewConfigurationFrameStateMSFT.Buffer viewConfigurationStates(@NativeType("XrSecondaryViewConfigurationStateMSFT *") XrSecondaryViewConfigurationStateMSFT.Buffer value) { XrSecondaryViewConfigurationFrameStateMSFT.nviewConfigurationStates(address(), value); return this; } + + /** @return the value of the {@link XrSecondaryViewConfigurationFrameStateMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSecondaryViewConfigurationFrameStateMSFT.ntype(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationFrameStateMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrSecondaryViewConfigurationFrameStateMSFT.nnext(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationFrameStateMSFT#viewConfigurationCount} field. */ + @NativeType("uint32_t") + public int viewConfigurationCount() { return XrSecondaryViewConfigurationFrameStateMSFT.nviewConfigurationCount(address()); } + /** @return a {@link XrSecondaryViewConfigurationStateMSFT.Buffer} view of the struct array pointed to by the {@link XrSecondaryViewConfigurationFrameStateMSFT#viewConfigurationStates} field. */ + @NativeType("XrSecondaryViewConfigurationStateMSFT *") + public XrSecondaryViewConfigurationStateMSFT.Buffer viewConfigurationStates() { return XrSecondaryViewConfigurationFrameStateMSFT.nviewConfigurationStates(address()); } + + /** Sets the specified value to the {@link XrSecondaryViewConfigurationFrameStateMSFT#type} field. */ + public XrSecondaryViewConfigurationFrameStateMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSecondaryViewConfigurationFrameStateMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_STATE_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_STATE_MSFT} value to the {@link XrSecondaryViewConfigurationFrameStateMSFT#type} field. */ + public XrSecondaryViewConfigurationFrameStateMSFT.Buffer type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_FRAME_STATE_MSFT); } + /** Sets the specified value to the {@link XrSecondaryViewConfigurationFrameStateMSFT#next} field. */ + public XrSecondaryViewConfigurationFrameStateMSFT.Buffer next(@NativeType("void *") long value) { XrSecondaryViewConfigurationFrameStateMSFT.nnext(address(), value); return this; } + /** Sets the address of the specified {@link XrSecondaryViewConfigurationStateMSFT.Buffer} to the {@link XrSecondaryViewConfigurationFrameStateMSFT#viewConfigurationStates} field. */ + public XrSecondaryViewConfigurationFrameStateMSFT.Buffer viewConfigurationStates(@NativeType("XrSecondaryViewConfigurationStateMSFT *") XrSecondaryViewConfigurationStateMSFT.Buffer value) { XrSecondaryViewConfigurationFrameStateMSFT.nviewConfigurationStates(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationLayerInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationLayerInfoMSFT.java index bae63b2ab1..5aab0a6415 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationLayerInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationLayerInfoMSFT.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describe an array of composition layers to be submitted to given {@code XrViewConfigurationType}. * @@ -34,7 +34,7 @@ *
                                                            *
                                                          • The {@link MSFTSecondaryViewConfiguration XR_MSFT_secondary_view_configuration} extension must be enabled prior to using {@link XrSecondaryViewConfigurationLayerInfoMSFT}
                                                          • *
                                                          • {@code type} must be {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT}
                                                          • - *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • + *
                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                          • *
                                                          • {@code viewConfigurationType} must be a valid {@code XrViewConfigurationType} value
                                                          • *
                                                          • {@code environmentBlendMode} must be a valid {@code XrEnvironmentBlendMode} value
                                                          • *
                                                          • {@code layers} must be a pointer to an array of {@code layerCount} valid {@link XrCompositionLayerBaseHeader}-based structures. See also: {@link XrCompositionLayerCubeKHR}, {@link XrCompositionLayerCylinderKHR}, {@link XrCompositionLayerEquirect2KHR}, {@link XrCompositionLayerEquirectKHR}, {@link XrCompositionLayerPassthroughHTC}, {@link XrCompositionLayerProjection}, {@link XrCompositionLayerQuad}
                                                          • @@ -56,8 +56,8 @@ * uint32_t {@link #layerCount}; * {@link XrCompositionLayerBaseHeader XrCompositionLayerBaseHeader} const * const * {@link #layers}; * } - */ -public class XrSecondaryViewConfigurationLayerInfoMSFT extends Struct implements NativeResource { + */ +public class XrSecondaryViewConfigurationLayerInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -67,33 +67,33 @@ public class XrSecondaryViewConfigurationLayerInfoMSFT extends Structenvironment blend mode for this view configuration. */ - @NativeType("XrEnvironmentBlendMode") - public int environmentBlendMode() { return nenvironmentBlendMode(address()); } - /** the number of composition layers in this frame for the secondary view configuration type. The maximum supported layer count is identified by {@link XrSystemGraphicsProperties}::maxLayerCount. If layerCount is greater than the maximum supported layer count then {@link XR10#XR_ERROR_LAYER_LIMIT_EXCEEDED ERROR_LAYER_LIMIT_EXCEEDED} is returned. */ - @NativeType("uint32_t") - public int layerCount() { return nlayerCount(address()); } - /** a pointer to an array of {@link XrCompositionLayerBaseHeader} pointers. */ - @NativeType("XrCompositionLayerBaseHeader const * const *") - public PointerBuffer layers() { return nlayers(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSecondaryViewConfigurationLayerInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT} value to the {@link #type} field. */ - public XrSecondaryViewConfigurationLayerInfoMSFT type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrSecondaryViewConfigurationLayerInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #viewConfigurationType} field. */ - public XrSecondaryViewConfigurationLayerInfoMSFT viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { nviewConfigurationType(address(), value); return this; } - /** Sets the specified value to the {@link #environmentBlendMode} field. */ - public XrSecondaryViewConfigurationLayerInfoMSFT environmentBlendMode(@NativeType("XrEnvironmentBlendMode") int value) { nenvironmentBlendMode(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@link #layers} field. */ - public XrSecondaryViewConfigurationLayerInfoMSFT layers(@NativeType("XrCompositionLayerBaseHeader const * const *") PointerBuffer value) { nlayers(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** {@code XrViewConfigurationType} to which the composition layers will be displayed. */ + @NativeType("XrViewConfigurationType") + public int viewConfigurationType() { return nviewConfigurationType(address()); } + /** the {@code XrEnvironmentBlendMode} value representing the desired environment blend mode for this view configuration. */ + @NativeType("XrEnvironmentBlendMode") + public int environmentBlendMode() { return nenvironmentBlendMode(address()); } + /** the number of composition layers in this frame for the secondary view configuration type. The maximum supported layer count is identified by {@link XrSystemGraphicsProperties}::maxLayerCount. If layerCount is greater than the maximum supported layer count then {@link XR10#XR_ERROR_LAYER_LIMIT_EXCEEDED ERROR_LAYER_LIMIT_EXCEEDED} is returned. */ + @NativeType("uint32_t") + public int layerCount() { return nlayerCount(address()); } + /** a pointer to an array of {@link XrCompositionLayerBaseHeader} pointers. */ + @NativeType("XrCompositionLayerBaseHeader const * const *") + public PointerBuffer layers() { return nlayers(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSecondaryViewConfigurationLayerInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT} value to the {@link #type} field. */ + public XrSecondaryViewConfigurationLayerInfoMSFT type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSecondaryViewConfigurationLayerInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #viewConfigurationType} field. */ + public XrSecondaryViewConfigurationLayerInfoMSFT viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { nviewConfigurationType(address(), value); return this; } + /** Sets the specified value to the {@link #environmentBlendMode} field. */ + public XrSecondaryViewConfigurationLayerInfoMSFT environmentBlendMode(@NativeType("XrEnvironmentBlendMode") int value) { nenvironmentBlendMode(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@link #layers} field. */ + public XrSecondaryViewConfigurationLayerInfoMSFT layers(@NativeType("XrCompositionLayerBaseHeader const * const *") PointerBuffer value) { nlayers(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSecondaryViewConfigurationLayerInfoMSFT set( - int type, - long next, - int viewConfigurationType, - int environmentBlendMode, + int type, + long next, + int viewConfigurationType, + int environmentBlendMode, PointerBuffer layers - ) { - type(type); - next(next); - viewConfigurationType(viewConfigurationType); - environmentBlendMode(environmentBlendMode); - layers(layers); + ) { + type(type); + next(next); + viewConfigurationType(viewConfigurationType); + environmentBlendMode(environmentBlendMode); + layers(layers); return this; } @@ -290,32 +290,32 @@ public static XrSecondaryViewConfigurationLayerInfoMSFT.Buffer calloc(int capaci } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSecondaryViewConfigurationLayerInfoMSFT.NEXT); } - /** Unsafe version of {@link #viewConfigurationType}. */ - public static int nviewConfigurationType(long struct) { return UNSAFE.getInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.VIEWCONFIGURATIONTYPE); } - /** Unsafe version of {@link #environmentBlendMode}. */ - public static int nenvironmentBlendMode(long struct) { return UNSAFE.getInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.ENVIRONMENTBLENDMODE); } - /** Unsafe version of {@link #layerCount}. */ - public static int nlayerCount(long struct) { return UNSAFE.getInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.LAYERCOUNT); } - /** Unsafe version of {@link #layers() layers}. */ - public static PointerBuffer nlayers(long struct) { return memPointerBuffer(memGetAddress(struct + XrSecondaryViewConfigurationLayerInfoMSFT.LAYERS), nlayerCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSecondaryViewConfigurationLayerInfoMSFT.NEXT, value); } - /** Unsafe version of {@link #viewConfigurationType(int) viewConfigurationType}. */ - public static void nviewConfigurationType(long struct, int value) { UNSAFE.putInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.VIEWCONFIGURATIONTYPE, value); } - /** Unsafe version of {@link #environmentBlendMode(int) environmentBlendMode}. */ - public static void nenvironmentBlendMode(long struct, int value) { UNSAFE.putInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.ENVIRONMENTBLENDMODE, value); } - /** Sets the specified value to the {@code layerCount} field of the specified {@code struct}. */ - public static void nlayerCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.LAYERCOUNT, value); } - /** Unsafe version of {@link #layers(PointerBuffer) layers}. */ - public static void nlayers(long struct, PointerBuffer value) { memPutAddress(struct + XrSecondaryViewConfigurationLayerInfoMSFT.LAYERS, memAddress(value)); nlayerCount(struct, value.remaining()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSecondaryViewConfigurationLayerInfoMSFT.NEXT); } + /** Unsafe version of {@link #viewConfigurationType}. */ + public static int nviewConfigurationType(long struct) { return UNSAFE.getInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.VIEWCONFIGURATIONTYPE); } + /** Unsafe version of {@link #environmentBlendMode}. */ + public static int nenvironmentBlendMode(long struct) { return UNSAFE.getInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.ENVIRONMENTBLENDMODE); } + /** Unsafe version of {@link #layerCount}. */ + public static int nlayerCount(long struct) { return UNSAFE.getInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.LAYERCOUNT); } + /** Unsafe version of {@link #layers() layers}. */ + public static PointerBuffer nlayers(long struct) { return memPointerBuffer(memGetAddress(struct + XrSecondaryViewConfigurationLayerInfoMSFT.LAYERS), nlayerCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSecondaryViewConfigurationLayerInfoMSFT.NEXT, value); } + /** Unsafe version of {@link #viewConfigurationType(int) viewConfigurationType}. */ + public static void nviewConfigurationType(long struct, int value) { UNSAFE.putInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.VIEWCONFIGURATIONTYPE, value); } + /** Unsafe version of {@link #environmentBlendMode(int) environmentBlendMode}. */ + public static void nenvironmentBlendMode(long struct, int value) { UNSAFE.putInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.ENVIRONMENTBLENDMODE, value); } + /** Sets the specified value to the {@code layerCount} field of the specified {@code struct}. */ + public static void nlayerCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSecondaryViewConfigurationLayerInfoMSFT.LAYERCOUNT, value); } + /** Unsafe version of {@link #layers(PointerBuffer) layers}. */ + public static void nlayers(long struct, PointerBuffer value) { memPutAddress(struct + XrSecondaryViewConfigurationLayerInfoMSFT.LAYERS, memAddress(value)); nlayerCount(struct, value.remaining()); } /** * Validates pointer members that should not be {@code NULL}. @@ -324,9 +324,9 @@ public static XrSecondaryViewConfigurationLayerInfoMSFT.Buffer calloc(int capaci */ public static void validate(long struct) { check(memGetAddress(struct + XrSecondaryViewConfigurationLayerInfoMSFT.LAYERS)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSecondaryViewConfigurationLayerInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -363,38 +363,38 @@ protected Buffer self() { protected XrSecondaryViewConfigurationLayerInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSecondaryViewConfigurationLayerInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSecondaryViewConfigurationLayerInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationLayerInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSecondaryViewConfigurationLayerInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationLayerInfoMSFT#viewConfigurationType} field. */ - @NativeType("XrViewConfigurationType") - public int viewConfigurationType() { return XrSecondaryViewConfigurationLayerInfoMSFT.nviewConfigurationType(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationLayerInfoMSFT#environmentBlendMode} field. */ - @NativeType("XrEnvironmentBlendMode") - public int environmentBlendMode() { return XrSecondaryViewConfigurationLayerInfoMSFT.nenvironmentBlendMode(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationLayerInfoMSFT#layerCount} field. */ - @NativeType("uint32_t") - public int layerCount() { return XrSecondaryViewConfigurationLayerInfoMSFT.nlayerCount(address()); } - /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrSecondaryViewConfigurationLayerInfoMSFT#layers} field. */ - @NativeType("XrCompositionLayerBaseHeader const * const *") - public PointerBuffer layers() { return XrSecondaryViewConfigurationLayerInfoMSFT.nlayers(address()); } - - /** Sets the specified value to the {@link XrSecondaryViewConfigurationLayerInfoMSFT#type} field. */ - public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSecondaryViewConfigurationLayerInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT} value to the {@link XrSecondaryViewConfigurationLayerInfoMSFT#type} field. */ - public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT); } - /** Sets the specified value to the {@link XrSecondaryViewConfigurationLayerInfoMSFT#next} field. */ - public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSecondaryViewConfigurationLayerInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSecondaryViewConfigurationLayerInfoMSFT#viewConfigurationType} field. */ - public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { XrSecondaryViewConfigurationLayerInfoMSFT.nviewConfigurationType(address(), value); return this; } - /** Sets the specified value to the {@link XrSecondaryViewConfigurationLayerInfoMSFT#environmentBlendMode} field. */ - public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer environmentBlendMode(@NativeType("XrEnvironmentBlendMode") int value) { XrSecondaryViewConfigurationLayerInfoMSFT.nenvironmentBlendMode(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@link XrSecondaryViewConfigurationLayerInfoMSFT#layers} field. */ - public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer layers(@NativeType("XrCompositionLayerBaseHeader const * const *") PointerBuffer value) { XrSecondaryViewConfigurationLayerInfoMSFT.nlayers(address(), value); return this; } + + /** @return the value of the {@link XrSecondaryViewConfigurationLayerInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSecondaryViewConfigurationLayerInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationLayerInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSecondaryViewConfigurationLayerInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationLayerInfoMSFT#viewConfigurationType} field. */ + @NativeType("XrViewConfigurationType") + public int viewConfigurationType() { return XrSecondaryViewConfigurationLayerInfoMSFT.nviewConfigurationType(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationLayerInfoMSFT#environmentBlendMode} field. */ + @NativeType("XrEnvironmentBlendMode") + public int environmentBlendMode() { return XrSecondaryViewConfigurationLayerInfoMSFT.nenvironmentBlendMode(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationLayerInfoMSFT#layerCount} field. */ + @NativeType("uint32_t") + public int layerCount() { return XrSecondaryViewConfigurationLayerInfoMSFT.nlayerCount(address()); } + /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrSecondaryViewConfigurationLayerInfoMSFT#layers} field. */ + @NativeType("XrCompositionLayerBaseHeader const * const *") + public PointerBuffer layers() { return XrSecondaryViewConfigurationLayerInfoMSFT.nlayers(address()); } + + /** Sets the specified value to the {@link XrSecondaryViewConfigurationLayerInfoMSFT#type} field. */ + public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSecondaryViewConfigurationLayerInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT} value to the {@link XrSecondaryViewConfigurationLayerInfoMSFT#type} field. */ + public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_LAYER_INFO_MSFT); } + /** Sets the specified value to the {@link XrSecondaryViewConfigurationLayerInfoMSFT#next} field. */ + public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSecondaryViewConfigurationLayerInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSecondaryViewConfigurationLayerInfoMSFT#viewConfigurationType} field. */ + public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { XrSecondaryViewConfigurationLayerInfoMSFT.nviewConfigurationType(address(), value); return this; } + /** Sets the specified value to the {@link XrSecondaryViewConfigurationLayerInfoMSFT#environmentBlendMode} field. */ + public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer environmentBlendMode(@NativeType("XrEnvironmentBlendMode") int value) { XrSecondaryViewConfigurationLayerInfoMSFT.nenvironmentBlendMode(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@link XrSecondaryViewConfigurationLayerInfoMSFT#layers} field. */ + public XrSecondaryViewConfigurationLayerInfoMSFT.Buffer layers(@NativeType("XrCompositionLayerBaseHeader const * const *") PointerBuffer value) { XrSecondaryViewConfigurationLayerInfoMSFT.nlayers(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationSessionBeginInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationSessionBeginInfoMSFT.java index 0e4d698b51..737d0d4cde 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationSessionBeginInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationSessionBeginInfoMSFT.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes an extension structure to {@link XR10#xrBeginSession BeginSession} indicating supported view configuration types. * @@ -32,7 +32,7 @@ *
                                                              *
                                                            • The {@link MSFTSecondaryViewConfiguration XR_MSFT_secondary_view_configuration} extension must be enabled prior to using {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT}
                                                            • *
                                                            • {@code type} must be {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SESSION_BEGIN_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_SESSION_BEGIN_INFO_MSFT}
                                                            • - *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                            • + *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                            • *
                                                            • {@code enabledViewConfigurationTypes} must be a pointer to an array of {@code viewConfigurationCount} valid {@code XrViewConfigurationType} values
                                                            • *
                                                            • The {@code viewConfigurationCount} parameter must be greater than 0
                                                            • *
                                                            @@ -50,8 +50,8 @@ * uint32_t {@link #viewConfigurationCount}; * XrViewConfigurationType const * {@link #enabledViewConfigurationTypes}; * } - */ -public class XrSecondaryViewConfigurationSessionBeginInfoMSFT extends Struct implements NativeResource { + */ +public class XrSecondaryViewConfigurationSessionBeginInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -61,27 +61,27 @@ public class XrSecondaryViewConfigurationSessionBeginInfoMSFT extends Struct implements NativeResource { @@ -329,28 +329,28 @@ protected Buffer self() { protected XrSecondaryViewConfigurationSessionBeginInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSecondaryViewConfigurationSessionBeginInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSecondaryViewConfigurationSessionBeginInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#viewConfigurationCount} field. */ - @NativeType("uint32_t") - public int viewConfigurationCount() { return XrSecondaryViewConfigurationSessionBeginInfoMSFT.nviewConfigurationCount(address()); } - /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#enabledViewConfigurationTypes} field. */ - @NativeType("XrViewConfigurationType const *") - public IntBuffer enabledViewConfigurationTypes() { return XrSecondaryViewConfigurationSessionBeginInfoMSFT.nenabledViewConfigurationTypes(address()); } - - /** Sets the specified value to the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#type} field. */ - public XrSecondaryViewConfigurationSessionBeginInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSecondaryViewConfigurationSessionBeginInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SESSION_BEGIN_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_SESSION_BEGIN_INFO_MSFT} value to the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#type} field. */ - public XrSecondaryViewConfigurationSessionBeginInfoMSFT.Buffer type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SESSION_BEGIN_INFO_MSFT); } - /** Sets the specified value to the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#next} field. */ - public XrSecondaryViewConfigurationSessionBeginInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSecondaryViewConfigurationSessionBeginInfoMSFT.nnext(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#enabledViewConfigurationTypes} field. */ - public XrSecondaryViewConfigurationSessionBeginInfoMSFT.Buffer enabledViewConfigurationTypes(@NativeType("XrViewConfigurationType const *") IntBuffer value) { XrSecondaryViewConfigurationSessionBeginInfoMSFT.nenabledViewConfigurationTypes(address(), value); return this; } + + /** @return the value of the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSecondaryViewConfigurationSessionBeginInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSecondaryViewConfigurationSessionBeginInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#viewConfigurationCount} field. */ + @NativeType("uint32_t") + public int viewConfigurationCount() { return XrSecondaryViewConfigurationSessionBeginInfoMSFT.nviewConfigurationCount(address()); } + /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#enabledViewConfigurationTypes} field. */ + @NativeType("XrViewConfigurationType const *") + public IntBuffer enabledViewConfigurationTypes() { return XrSecondaryViewConfigurationSessionBeginInfoMSFT.nenabledViewConfigurationTypes(address()); } + + /** Sets the specified value to the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#type} field. */ + public XrSecondaryViewConfigurationSessionBeginInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSecondaryViewConfigurationSessionBeginInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SESSION_BEGIN_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_SESSION_BEGIN_INFO_MSFT} value to the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#type} field. */ + public XrSecondaryViewConfigurationSessionBeginInfoMSFT.Buffer type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SESSION_BEGIN_INFO_MSFT); } + /** Sets the specified value to the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#next} field. */ + public XrSecondaryViewConfigurationSessionBeginInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSecondaryViewConfigurationSessionBeginInfoMSFT.nnext(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT#enabledViewConfigurationTypes} field. */ + public XrSecondaryViewConfigurationSessionBeginInfoMSFT.Buffer enabledViewConfigurationTypes(@NativeType("XrViewConfigurationType const *") IntBuffer value) { XrSecondaryViewConfigurationSessionBeginInfoMSFT.nenabledViewConfigurationTypes(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationStateMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationStateMSFT.java index 7733f8cde6..0fd9ad2046 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationStateMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationStateMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Returns the state of an enabled secondary view configuration. * @@ -31,7 +31,7 @@ *
                                                              *
                                                            • The {@link MSFTSecondaryViewConfiguration XR_MSFT_secondary_view_configuration} extension must be enabled prior to using {@link XrSecondaryViewConfigurationStateMSFT}
                                                            • *
                                                            • {@code type} must be {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_STATE_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_STATE_MSFT}
                                                            • - *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                            • + *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                            • *
                                                            • {@code viewConfigurationType} must be a valid {@code XrViewConfigurationType} value
                                                            • *
                                                            * @@ -48,8 +48,8 @@ * XrViewConfigurationType {@link #viewConfigurationType}; * XrBool32 {@link #active}; * } - */ -public class XrSecondaryViewConfigurationStateMSFT extends Struct implements NativeResource { + */ +public class XrSecondaryViewConfigurationStateMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -59,27 +59,27 @@ public class XrSecondaryViewConfigurationStateMSFT extends Struct implements NativeResource { @@ -322,30 +322,30 @@ protected Buffer self() { protected XrSecondaryViewConfigurationStateMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSecondaryViewConfigurationStateMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSecondaryViewConfigurationStateMSFT.ntype(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationStateMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrSecondaryViewConfigurationStateMSFT.nnext(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationStateMSFT#viewConfigurationType} field. */ - @NativeType("XrViewConfigurationType") - public int viewConfigurationType() { return XrSecondaryViewConfigurationStateMSFT.nviewConfigurationType(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationStateMSFT#active} field. */ - @NativeType("XrBool32") - public boolean active() { return XrSecondaryViewConfigurationStateMSFT.nactive(address()) != 0; } - - /** Sets the specified value to the {@link XrSecondaryViewConfigurationStateMSFT#type} field. */ - public XrSecondaryViewConfigurationStateMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSecondaryViewConfigurationStateMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_STATE_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_STATE_MSFT} value to the {@link XrSecondaryViewConfigurationStateMSFT#type} field. */ - public XrSecondaryViewConfigurationStateMSFT.Buffer type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_STATE_MSFT); } - /** Sets the specified value to the {@link XrSecondaryViewConfigurationStateMSFT#next} field. */ - public XrSecondaryViewConfigurationStateMSFT.Buffer next(@NativeType("void *") long value) { XrSecondaryViewConfigurationStateMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSecondaryViewConfigurationStateMSFT#viewConfigurationType} field. */ - public XrSecondaryViewConfigurationStateMSFT.Buffer viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { XrSecondaryViewConfigurationStateMSFT.nviewConfigurationType(address(), value); return this; } - /** Sets the specified value to the {@link XrSecondaryViewConfigurationStateMSFT#active} field. */ - public XrSecondaryViewConfigurationStateMSFT.Buffer active(@NativeType("XrBool32") boolean value) { XrSecondaryViewConfigurationStateMSFT.nactive(address(), value ? 1 : 0); return this; } + + /** @return the value of the {@link XrSecondaryViewConfigurationStateMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSecondaryViewConfigurationStateMSFT.ntype(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationStateMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrSecondaryViewConfigurationStateMSFT.nnext(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationStateMSFT#viewConfigurationType} field. */ + @NativeType("XrViewConfigurationType") + public int viewConfigurationType() { return XrSecondaryViewConfigurationStateMSFT.nviewConfigurationType(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationStateMSFT#active} field. */ + @NativeType("XrBool32") + public boolean active() { return XrSecondaryViewConfigurationStateMSFT.nactive(address()) != 0; } + + /** Sets the specified value to the {@link XrSecondaryViewConfigurationStateMSFT#type} field. */ + public XrSecondaryViewConfigurationStateMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSecondaryViewConfigurationStateMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_STATE_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_STATE_MSFT} value to the {@link XrSecondaryViewConfigurationStateMSFT#type} field. */ + public XrSecondaryViewConfigurationStateMSFT.Buffer type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_STATE_MSFT); } + /** Sets the specified value to the {@link XrSecondaryViewConfigurationStateMSFT#next} field. */ + public XrSecondaryViewConfigurationStateMSFT.Buffer next(@NativeType("void *") long value) { XrSecondaryViewConfigurationStateMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSecondaryViewConfigurationStateMSFT#viewConfigurationType} field. */ + public XrSecondaryViewConfigurationStateMSFT.Buffer viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { XrSecondaryViewConfigurationStateMSFT.nviewConfigurationType(address(), value); return this; } + /** Sets the specified value to the {@link XrSecondaryViewConfigurationStateMSFT#active} field. */ + public XrSecondaryViewConfigurationStateMSFT.Buffer active(@NativeType("XrBool32") boolean value) { XrSecondaryViewConfigurationStateMSFT.nactive(address(), value ? 1 : 0); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.java index a82885f507..aeb9a436df 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Hint to runtime that the created swapchain image will be used for given secondary view configuration. * @@ -29,7 +29,7 @@ *
                                                              *
                                                            • The {@link MSFTSecondaryViewConfiguration XR_MSFT_secondary_view_configuration} extension must be enabled prior to using {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT}
                                                            • *
                                                            • {@code type} must be {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT}
                                                            • - *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                            • + *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                            • *
                                                            • {@code viewConfigurationType} must be a valid {@code XrViewConfigurationType} value
                                                            • *
                                                            * @@ -45,8 +45,8 @@ * void const * {@link #next}; * XrViewConfigurationType {@link #viewConfigurationType}; * } - */ -public class XrSecondaryViewConfigurationSwapchainCreateInfoMSFT extends Struct implements NativeResource { + */ +public class XrSecondaryViewConfigurationSwapchainCreateInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,24 +56,24 @@ public class XrSecondaryViewConfigurationSwapchainCreateInfoMSFT extends Struct< /** The struct member offsets. */ public static final int - TYPE, - NEXT, - VIEWCONFIGURATIONTYPE; + TYPE, + NEXT, + VIEWCONFIGURATIONTYPE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - VIEWCONFIGURATIONTYPE = layout.offsetof(2); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + VIEWCONFIGURATIONTYPE = layout.offsetof(2); + } protected XrSecondaryViewConfigurationSwapchainCreateInfoMSFT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -96,35 +96,35 @@ public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT(ByteBuffer container) @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** the secondary view configuration type the application is intending to use this swapchain for. */ - @NativeType("XrViewConfigurationType") - public int viewConfigurationType() { return nviewConfigurationType(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT} value to the {@link #type} field. */ - public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT); } - /** Sets the specified value to the {@link #next} field. */ - public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #viewConfigurationType} field. */ - public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { nviewConfigurationType(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the secondary view configuration type the application is intending to use this swapchain for. */ + @NativeType("XrViewConfigurationType") + public int viewConfigurationType() { return nviewConfigurationType(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT} value to the {@link #type} field. */ + public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #viewConfigurationType} field. */ + public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { nviewConfigurationType(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT set( - int type, - long next, + int type, + long next, int viewConfigurationType - ) { - type(type); - next(next); - viewConfigurationType(viewConfigurationType); + ) { + type(type); + next(next); + viewConfigurationType(viewConfigurationType); return this; } @@ -253,22 +253,22 @@ public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer calloc( } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.NEXT); } - /** Unsafe version of {@link #viewConfigurationType}. */ - public static int nviewConfigurationType(long struct) { return UNSAFE.getInt(null, struct + XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.VIEWCONFIGURATIONTYPE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.NEXT, value); } - /** Unsafe version of {@link #viewConfigurationType(int) viewConfigurationType}. */ - public static void nviewConfigurationType(long struct, int value) { UNSAFE.putInt(null, struct + XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.VIEWCONFIGURATIONTYPE, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.NEXT); } + /** Unsafe version of {@link #viewConfigurationType}. */ + public static int nviewConfigurationType(long struct) { return UNSAFE.getInt(null, struct + XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.VIEWCONFIGURATIONTYPE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.NEXT, value); } + /** Unsafe version of {@link #viewConfigurationType(int) viewConfigurationType}. */ + public static void nviewConfigurationType(long struct, int value) { UNSAFE.putInt(null, struct + XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.VIEWCONFIGURATIONTYPE, value); } + + // ----------------------------------- /** An array of {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -305,25 +305,25 @@ protected Buffer self() { protected XrSecondaryViewConfigurationSwapchainCreateInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#viewConfigurationType} field. */ - @NativeType("XrViewConfigurationType") - public int viewConfigurationType() { return XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.nviewConfigurationType(address()); } - - /** Sets the specified value to the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#type} field. */ - public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT} value to the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#type} field. */ - public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT); } - /** Sets the specified value to the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#next} field. */ - public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#viewConfigurationType} field. */ - public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.nviewConfigurationType(address(), value); return this; } + + /** @return the value of the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#viewConfigurationType} field. */ + @NativeType("XrViewConfigurationType") + public int viewConfigurationType() { return XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.nviewConfigurationType(address()); } + + /** Sets the specified value to the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#type} field. */ + public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSecondaryViewConfiguration#XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT} value to the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#type} field. */ + public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer type$Default() { return type(MSFTSecondaryViewConfiguration.XR_TYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#next} field. */ + public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT#viewConfigurationType} field. */ + public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.nviewConfigurationType(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSemanticLabelsFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSemanticLabelsFB.java index 9f97aee084..a7c638b52b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSemanticLabelsFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSemanticLabelsFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Provides application with semantic usage of a spatial entity. * @@ -27,7 +27,7 @@ *
                                                              *
                                                            • 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
                                                            • + *
                                                            • {@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
                                                            • *
                                                            * @@ -45,8 +45,8 @@ * uint32_t {@link #bufferCountOutput}; * char * {@link #buffer}; * } - */ -public class XrSemanticLabelsFB extends Struct implements NativeResource { + */ +public class XrSemanticLabelsFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,30 +56,30 @@ public class XrSemanticLabelsFB extends Struct implements Na /** The struct member offsets. */ public static final int - TYPE, - NEXT, - BUFFERCAPACITYINPUT, - BUFFERCOUNTOUTPUT, - BUFFER; + TYPE, + NEXT, + BUFFERCAPACITYINPUT, + BUFFERCOUNTOUTPUT, + BUFFER; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - BUFFERCAPACITYINPUT = layout.offsetof(2); - BUFFERCOUNTOUTPUT = layout.offsetof(3); - BUFFER = layout.offsetof(4); - } + 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); @@ -102,50 +102,50 @@ public XrSemanticLabelsFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain, such as {@link XrSemanticLabelsSupportInfoFB}. */ - @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()); } - /** the count of bytes written, or the required capacity in the case that {@code bufferCapacityInput} is insufficient. */ - @NativeType("uint32_t") - public int bufferCountOutput() { return nbufferCountOutput(address()); } - /** a pointer to an array of bytes, but can be {@code NULL} if {@code bufferCapacityInput} is 0. Multiple labels represented by raw string, separated by a comma without spaces. */ - @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; } + + /** the {@code XrStructureType} 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, + int type, + long next, + int bufferCapacityInput, + int bufferCountOutput, @Nullable ByteBuffer buffer - ) { - type(type); - next(next); - bufferCapacityInput(bufferCapacityInput); - bufferCountOutput(bufferCountOutput); - buffer(buffer); + ) { + type(type); + next(next); + bufferCapacityInput(bufferCapacityInput); + bufferCountOutput(bufferCountOutput); + buffer(buffer); return this; } @@ -274,30 +274,30 @@ public static XrSemanticLabelsFB.Buffer calloc(int capacity, MemoryStack stack) } // ----------------------------------- - - /** 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()); } } - - // ----------------------------------- + + /** 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 { @@ -334,36 +334,36 @@ protected Buffer self() { 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; } + + /** @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; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSerializedSceneFragmentDataGetInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSerializedSceneFragmentDataGetInfoMSFT.java index c0f992f280..9aae25ae72 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSerializedSceneFragmentDataGetInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSerializedSceneFragmentDataGetInfoMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The information to get the serialized scene fragment data. * @@ -23,7 +23,7 @@ *
                                                              *
                                                            • The {@link MSFTSceneUnderstandingSerialization XR_MSFT_scene_understanding_serialization} extension must be enabled prior to using {@link XrSerializedSceneFragmentDataGetInfoMSFT}
                                                            • *
                                                            • {@code type} must be {@link MSFTSceneUnderstandingSerialization#XR_TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT}
                                                            • - *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                            • + *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                            • *
                                                            * *
                                                            See Also
                                                            @@ -38,8 +38,8 @@ * void const * {@link #next}; * {@link XrUuidMSFT XrUuidMSFT} {@link #sceneFragmentId}; * } - */ -public class XrSerializedSceneFragmentDataGetInfoMSFT extends Struct implements NativeResource { + */ +public class XrSerializedSceneFragmentDataGetInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -49,24 +49,24 @@ public class XrSerializedSceneFragmentDataGetInfoMSFT extends Struct consumer) { consumer.accept(sceneFragmentId()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the {@link XrUuidMSFT} of the serialized scene fragment that was previously read from {@link MSFTSceneUnderstanding#xrGetSceneComponentsMSFT GetSceneComponentsMSFT} with {@link MSFTSceneUnderstandingSerialization#XR_SCENE_COMPONENT_TYPE_SERIALIZED_SCENE_FRAGMENT_MSFT SCENE_COMPONENT_TYPE_SERIALIZED_SCENE_FRAGMENT_MSFT}. */ + public XrUuidMSFT sceneFragmentId() { return nsceneFragmentId(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSerializedSceneFragmentDataGetInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstandingSerialization#XR_TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT} value to the {@link #type} field. */ + public XrSerializedSceneFragmentDataGetInfoMSFT type$Default() { return type(MSFTSceneUnderstandingSerialization.XR_TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSerializedSceneFragmentDataGetInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link XrUuidMSFT} to the {@link #sceneFragmentId} field. */ + public XrSerializedSceneFragmentDataGetInfoMSFT sceneFragmentId(XrUuidMSFT value) { nsceneFragmentId(address(), value); return this; } + /** Passes the {@link #sceneFragmentId} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSerializedSceneFragmentDataGetInfoMSFT sceneFragmentId(java.util.function.Consumer consumer) { consumer.accept(sceneFragmentId()); return this; } /** Initializes this struct with the specified values. */ public XrSerializedSceneFragmentDataGetInfoMSFT set( - int type, - long next, + int type, + long next, XrUuidMSFT sceneFragmentId - ) { - type(type); - next(next); - sceneFragmentId(sceneFragmentId); + ) { + type(type); + next(next); + sceneFragmentId(sceneFragmentId); return this; } @@ -247,22 +247,22 @@ public static XrSerializedSceneFragmentDataGetInfoMSFT.Buffer calloc(int capacit } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSerializedSceneFragmentDataGetInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSerializedSceneFragmentDataGetInfoMSFT.NEXT); } - /** Unsafe version of {@link #sceneFragmentId}. */ - public static XrUuidMSFT nsceneFragmentId(long struct) { return XrUuidMSFT.create(struct + XrSerializedSceneFragmentDataGetInfoMSFT.SCENEFRAGMENTID); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSerializedSceneFragmentDataGetInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSerializedSceneFragmentDataGetInfoMSFT.NEXT, value); } - /** Unsafe version of {@link #sceneFragmentId(XrUuidMSFT) sceneFragmentId}. */ - public static void nsceneFragmentId(long struct, XrUuidMSFT value) { memCopy(value.address(), struct + XrSerializedSceneFragmentDataGetInfoMSFT.SCENEFRAGMENTID, XrUuidMSFT.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSerializedSceneFragmentDataGetInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSerializedSceneFragmentDataGetInfoMSFT.NEXT); } + /** Unsafe version of {@link #sceneFragmentId}. */ + public static XrUuidMSFT nsceneFragmentId(long struct) { return XrUuidMSFT.create(struct + XrSerializedSceneFragmentDataGetInfoMSFT.SCENEFRAGMENTID); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSerializedSceneFragmentDataGetInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSerializedSceneFragmentDataGetInfoMSFT.NEXT, value); } + /** Unsafe version of {@link #sceneFragmentId(XrUuidMSFT) sceneFragmentId}. */ + public static void nsceneFragmentId(long struct, XrUuidMSFT value) { memCopy(value.address(), struct + XrSerializedSceneFragmentDataGetInfoMSFT.SCENEFRAGMENTID, XrUuidMSFT.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrSerializedSceneFragmentDataGetInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -299,26 +299,26 @@ protected Buffer self() { protected XrSerializedSceneFragmentDataGetInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSerializedSceneFragmentDataGetInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSerializedSceneFragmentDataGetInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSerializedSceneFragmentDataGetInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSerializedSceneFragmentDataGetInfoMSFT.nnext(address()); } - /** @return a {@link XrUuidMSFT} view of the {@link XrSerializedSceneFragmentDataGetInfoMSFT#sceneFragmentId} field. */ - public XrUuidMSFT sceneFragmentId() { return XrSerializedSceneFragmentDataGetInfoMSFT.nsceneFragmentId(address()); } - - /** Sets the specified value to the {@link XrSerializedSceneFragmentDataGetInfoMSFT#type} field. */ - public XrSerializedSceneFragmentDataGetInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSerializedSceneFragmentDataGetInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstandingSerialization#XR_TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT} value to the {@link XrSerializedSceneFragmentDataGetInfoMSFT#type} field. */ - public XrSerializedSceneFragmentDataGetInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstandingSerialization.XR_TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT); } - /** Sets the specified value to the {@link XrSerializedSceneFragmentDataGetInfoMSFT#next} field. */ - public XrSerializedSceneFragmentDataGetInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSerializedSceneFragmentDataGetInfoMSFT.nnext(address(), value); return this; } - /** Copies the specified {@link XrUuidMSFT} to the {@link XrSerializedSceneFragmentDataGetInfoMSFT#sceneFragmentId} field. */ - public XrSerializedSceneFragmentDataGetInfoMSFT.Buffer sceneFragmentId(XrUuidMSFT value) { XrSerializedSceneFragmentDataGetInfoMSFT.nsceneFragmentId(address(), value); return this; } - /** Passes the {@link XrSerializedSceneFragmentDataGetInfoMSFT#sceneFragmentId} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSerializedSceneFragmentDataGetInfoMSFT.Buffer sceneFragmentId(java.util.function.Consumer consumer) { consumer.accept(sceneFragmentId()); return this; } + + /** @return the value of the {@link XrSerializedSceneFragmentDataGetInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSerializedSceneFragmentDataGetInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSerializedSceneFragmentDataGetInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSerializedSceneFragmentDataGetInfoMSFT.nnext(address()); } + /** @return a {@link XrUuidMSFT} view of the {@link XrSerializedSceneFragmentDataGetInfoMSFT#sceneFragmentId} field. */ + public XrUuidMSFT sceneFragmentId() { return XrSerializedSceneFragmentDataGetInfoMSFT.nsceneFragmentId(address()); } + + /** Sets the specified value to the {@link XrSerializedSceneFragmentDataGetInfoMSFT#type} field. */ + public XrSerializedSceneFragmentDataGetInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSerializedSceneFragmentDataGetInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstandingSerialization#XR_TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT} value to the {@link XrSerializedSceneFragmentDataGetInfoMSFT#type} field. */ + public XrSerializedSceneFragmentDataGetInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstandingSerialization.XR_TYPE_SERIALIZED_SCENE_FRAGMENT_DATA_GET_INFO_MSFT); } + /** Sets the specified value to the {@link XrSerializedSceneFragmentDataGetInfoMSFT#next} field. */ + public XrSerializedSceneFragmentDataGetInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSerializedSceneFragmentDataGetInfoMSFT.nnext(address(), value); return this; } + /** Copies the specified {@link XrUuidMSFT} to the {@link XrSerializedSceneFragmentDataGetInfoMSFT#sceneFragmentId} field. */ + public XrSerializedSceneFragmentDataGetInfoMSFT.Buffer sceneFragmentId(XrUuidMSFT value) { XrSerializedSceneFragmentDataGetInfoMSFT.nsceneFragmentId(address(), value); return this; } + /** Passes the {@link XrSerializedSceneFragmentDataGetInfoMSFT#sceneFragmentId} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSerializedSceneFragmentDataGetInfoMSFT.Buffer sceneFragmentId(java.util.function.Consumer consumer) { consumer.accept(sceneFragmentId()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSession.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSession.java index 5b32697e53..ab35368840 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSession.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSession.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrSession} handle. */ + +/** Wraps an {@code XrSession} handle. */ public class XrSession extends DispatchableHandle { private final XrInstance instance; @@ -26,4 +26,4 @@ public XrInstance getInstance() { return instance; } -} +} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionActionSetsAttachInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionActionSetsAttachInfo.java index 0d96664ee0..b91714aa14 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionActionSetsAttachInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionActionSetsAttachInfo.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Information to attach action sets to a session. * @@ -23,7 +23,7 @@ * *
                                                              *
                                                            • {@code type} must be {@link XR10#XR_TYPE_SESSION_ACTION_SETS_ATTACH_INFO TYPE_SESSION_ACTION_SETS_ATTACH_INFO}
                                                            • - *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                            • + *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                            • *
                                                            • {@code actionSets} must be a pointer to an array of {@code countActionSets} valid {@code XrActionSet} handles
                                                            • *
                                                            • The {@code countActionSets} parameter must be greater than 0
                                                            • *
                                                            @@ -41,8 +41,8 @@ * uint32_t {@link #countActionSets}; * XrActionSet const * {@link #actionSets}; * } - */ -public class XrSessionActionSetsAttachInfo extends Struct implements NativeResource { + */ +public class XrSessionActionSetsAttachInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,27 +52,27 @@ public class XrSessionActionSetsAttachInfo extends Struct implements NativeResource { @@ -320,28 +320,28 @@ protected Buffer self() { protected XrSessionActionSetsAttachInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSessionActionSetsAttachInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSessionActionSetsAttachInfo.ntype(address()); } - /** @return the value of the {@link XrSessionActionSetsAttachInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrSessionActionSetsAttachInfo.nnext(address()); } - /** @return the value of the {@link XrSessionActionSetsAttachInfo#countActionSets} field. */ - @NativeType("uint32_t") - public int countActionSets() { return XrSessionActionSetsAttachInfo.ncountActionSets(address()); } - /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrSessionActionSetsAttachInfo#actionSets} field. */ - @NativeType("XrActionSet const *") - public PointerBuffer actionSets() { return XrSessionActionSetsAttachInfo.nactionSets(address()); } - - /** Sets the specified value to the {@link XrSessionActionSetsAttachInfo#type} field. */ - public XrSessionActionSetsAttachInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSessionActionSetsAttachInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SESSION_ACTION_SETS_ATTACH_INFO TYPE_SESSION_ACTION_SETS_ATTACH_INFO} value to the {@link XrSessionActionSetsAttachInfo#type} field. */ - public XrSessionActionSetsAttachInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SESSION_ACTION_SETS_ATTACH_INFO); } - /** Sets the specified value to the {@link XrSessionActionSetsAttachInfo#next} field. */ - public XrSessionActionSetsAttachInfo.Buffer next(@NativeType("void const *") long value) { XrSessionActionSetsAttachInfo.nnext(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@link XrSessionActionSetsAttachInfo#actionSets} field. */ - public XrSessionActionSetsAttachInfo.Buffer actionSets(@NativeType("XrActionSet const *") PointerBuffer value) { XrSessionActionSetsAttachInfo.nactionSets(address(), value); return this; } + + /** @return the value of the {@link XrSessionActionSetsAttachInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSessionActionSetsAttachInfo.ntype(address()); } + /** @return the value of the {@link XrSessionActionSetsAttachInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrSessionActionSetsAttachInfo.nnext(address()); } + /** @return the value of the {@link XrSessionActionSetsAttachInfo#countActionSets} field. */ + @NativeType("uint32_t") + public int countActionSets() { return XrSessionActionSetsAttachInfo.ncountActionSets(address()); } + /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrSessionActionSetsAttachInfo#actionSets} field. */ + @NativeType("XrActionSet const *") + public PointerBuffer actionSets() { return XrSessionActionSetsAttachInfo.nactionSets(address()); } + + /** Sets the specified value to the {@link XrSessionActionSetsAttachInfo#type} field. */ + public XrSessionActionSetsAttachInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSessionActionSetsAttachInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SESSION_ACTION_SETS_ATTACH_INFO TYPE_SESSION_ACTION_SETS_ATTACH_INFO} value to the {@link XrSessionActionSetsAttachInfo#type} field. */ + public XrSessionActionSetsAttachInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SESSION_ACTION_SETS_ATTACH_INFO); } + /** Sets the specified value to the {@link XrSessionActionSetsAttachInfo#next} field. */ + public XrSessionActionSetsAttachInfo.Buffer next(@NativeType("void const *") long value) { XrSessionActionSetsAttachInfo.nnext(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@link XrSessionActionSetsAttachInfo#actionSets} field. */ + public XrSessionActionSetsAttachInfo.Buffer actionSets(@NativeType("XrActionSet const *") PointerBuffer value) { XrSessionActionSetsAttachInfo.nactionSets(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionBeginInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionBeginInfo.java index ebd452a341..54d7c3f962 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionBeginInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionBeginInfo.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Struct containing session begin info. * @@ -22,7 +22,7 @@ * *
                                                              *
                                                            • {@code type} must be {@link XR10#XR_TYPE_SESSION_BEGIN_INFO TYPE_SESSION_BEGIN_INFO}
                                                            • - *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT}
                                                            • + *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT}
                                                            • *
                                                            • {@code primaryViewConfigurationType} must be a valid {@code XrViewConfigurationType} value
                                                            • *
                                                            * @@ -38,8 +38,8 @@ * void const * {@link #next}; * XrViewConfigurationType {@link #primaryViewConfigurationType}; * } - */ -public class XrSessionBeginInfo extends Struct implements NativeResource { + */ +public class XrSessionBeginInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -49,24 +49,24 @@ public class XrSessionBeginInfo extends Struct implements Na /** The struct member offsets. */ public static final int - TYPE, - NEXT, - PRIMARYVIEWCONFIGURATIONTYPE; + TYPE, + NEXT, + PRIMARYVIEWCONFIGURATIONTYPE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - PRIMARYVIEWCONFIGURATIONTYPE = layout.offsetof(2); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + PRIMARYVIEWCONFIGURATIONTYPE = layout.offsetof(2); + } protected XrSessionBeginInfo(long address, @Nullable ByteBuffer container) { super(address, container); @@ -89,37 +89,37 @@ public XrSessionBeginInfo(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** the {@code XrViewConfigurationType} to use during this session to provide images for the form factor’s primary displays. */ - @NativeType("XrViewConfigurationType") - public int primaryViewConfigurationType() { return nprimaryViewConfigurationType(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSessionBeginInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SESSION_BEGIN_INFO TYPE_SESSION_BEGIN_INFO} value to the {@link #type} field. */ - public XrSessionBeginInfo type$Default() { return type(XR10.XR_TYPE_SESSION_BEGIN_INFO); } - /** Sets the specified value to the {@link #next} field. */ - public XrSessionBeginInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT} value to the {@code next} chain. */ - public XrSessionBeginInfo next(XrSecondaryViewConfigurationSessionBeginInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #primaryViewConfigurationType} field. */ - public XrSessionBeginInfo primaryViewConfigurationType(@NativeType("XrViewConfigurationType") int value) { nprimaryViewConfigurationType(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the {@code XrViewConfigurationType} to use during this session to provide images for the form factor’s primary displays. */ + @NativeType("XrViewConfigurationType") + public int primaryViewConfigurationType() { return nprimaryViewConfigurationType(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSessionBeginInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SESSION_BEGIN_INFO TYPE_SESSION_BEGIN_INFO} value to the {@link #type} field. */ + public XrSessionBeginInfo type$Default() { return type(XR10.XR_TYPE_SESSION_BEGIN_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrSessionBeginInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT} value to the {@code next} chain. */ + public XrSessionBeginInfo next(XrSecondaryViewConfigurationSessionBeginInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #primaryViewConfigurationType} field. */ + public XrSessionBeginInfo primaryViewConfigurationType(@NativeType("XrViewConfigurationType") int value) { nprimaryViewConfigurationType(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSessionBeginInfo set( - int type, - long next, + int type, + long next, int primaryViewConfigurationType - ) { - type(type); - next(next); - primaryViewConfigurationType(primaryViewConfigurationType); + ) { + type(type); + next(next); + primaryViewConfigurationType(primaryViewConfigurationType); return this; } @@ -248,22 +248,22 @@ public static XrSessionBeginInfo.Buffer calloc(int capacity, MemoryStack stack) } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSessionBeginInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSessionBeginInfo.NEXT); } - /** Unsafe version of {@link #primaryViewConfigurationType}. */ - public static int nprimaryViewConfigurationType(long struct) { return UNSAFE.getInt(null, struct + XrSessionBeginInfo.PRIMARYVIEWCONFIGURATIONTYPE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSessionBeginInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSessionBeginInfo.NEXT, value); } - /** Unsafe version of {@link #primaryViewConfigurationType(int) primaryViewConfigurationType}. */ - public static void nprimaryViewConfigurationType(long struct, int value) { UNSAFE.putInt(null, struct + XrSessionBeginInfo.PRIMARYVIEWCONFIGURATIONTYPE, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSessionBeginInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSessionBeginInfo.NEXT); } + /** Unsafe version of {@link #primaryViewConfigurationType}. */ + public static int nprimaryViewConfigurationType(long struct) { return UNSAFE.getInt(null, struct + XrSessionBeginInfo.PRIMARYVIEWCONFIGURATIONTYPE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSessionBeginInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSessionBeginInfo.NEXT, value); } + /** Unsafe version of {@link #primaryViewConfigurationType(int) primaryViewConfigurationType}. */ + public static void nprimaryViewConfigurationType(long struct, int value) { UNSAFE.putInt(null, struct + XrSessionBeginInfo.PRIMARYVIEWCONFIGURATIONTYPE, value); } + + // ----------------------------------- /** An array of {@link XrSessionBeginInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -300,27 +300,27 @@ protected Buffer self() { protected XrSessionBeginInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSessionBeginInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSessionBeginInfo.ntype(address()); } - /** @return the value of the {@link XrSessionBeginInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrSessionBeginInfo.nnext(address()); } - /** @return the value of the {@link XrSessionBeginInfo#primaryViewConfigurationType} field. */ - @NativeType("XrViewConfigurationType") - public int primaryViewConfigurationType() { return XrSessionBeginInfo.nprimaryViewConfigurationType(address()); } - - /** Sets the specified value to the {@link XrSessionBeginInfo#type} field. */ - public XrSessionBeginInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSessionBeginInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SESSION_BEGIN_INFO TYPE_SESSION_BEGIN_INFO} value to the {@link XrSessionBeginInfo#type} field. */ - public XrSessionBeginInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SESSION_BEGIN_INFO); } - /** Sets the specified value to the {@link XrSessionBeginInfo#next} field. */ - public XrSessionBeginInfo.Buffer next(@NativeType("void const *") long value) { XrSessionBeginInfo.nnext(address(), value); return this; } - /** Prepends the specified {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT} value to the {@code next} chain. */ - public XrSessionBeginInfo.Buffer next(XrSecondaryViewConfigurationSessionBeginInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrSessionBeginInfo#primaryViewConfigurationType} field. */ - public XrSessionBeginInfo.Buffer primaryViewConfigurationType(@NativeType("XrViewConfigurationType") int value) { XrSessionBeginInfo.nprimaryViewConfigurationType(address(), value); return this; } + + /** @return the value of the {@link XrSessionBeginInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSessionBeginInfo.ntype(address()); } + /** @return the value of the {@link XrSessionBeginInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrSessionBeginInfo.nnext(address()); } + /** @return the value of the {@link XrSessionBeginInfo#primaryViewConfigurationType} field. */ + @NativeType("XrViewConfigurationType") + public int primaryViewConfigurationType() { return XrSessionBeginInfo.nprimaryViewConfigurationType(address()); } + + /** Sets the specified value to the {@link XrSessionBeginInfo#type} field. */ + public XrSessionBeginInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSessionBeginInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SESSION_BEGIN_INFO TYPE_SESSION_BEGIN_INFO} value to the {@link XrSessionBeginInfo#type} field. */ + public XrSessionBeginInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SESSION_BEGIN_INFO); } + /** Sets the specified value to the {@link XrSessionBeginInfo#next} field. */ + public XrSessionBeginInfo.Buffer next(@NativeType("void const *") long value) { XrSessionBeginInfo.nnext(address(), value); return this; } + /** Prepends the specified {@link XrSecondaryViewConfigurationSessionBeginInfoMSFT} value to the {@code next} chain. */ + public XrSessionBeginInfo.Buffer next(XrSecondaryViewConfigurationSessionBeginInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrSessionBeginInfo#primaryViewConfigurationType} field. */ + public XrSessionBeginInfo.Buffer primaryViewConfigurationType(@NativeType("XrViewConfigurationType") int value) { XrSessionBeginInfo.nprimaryViewConfigurationType(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionCreateInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionCreateInfo.java index f50d1ef58c..8af106753d 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionCreateInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionCreateInfo.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Creates a session. * @@ -29,7 +29,7 @@ * *
                                                              *
                                                            • {@code type} must be {@link XR10#XR_TYPE_SESSION_CREATE_INFO TYPE_SESSION_CREATE_INFO}
                                                            • - *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrGraphicsBindingEGLMNDX}, {@link XrGraphicsBindingOpenGLWaylandKHR}, {@link XrGraphicsBindingOpenGLWin32KHR}, {@link XrGraphicsBindingOpenGLXcbKHR}, {@link XrGraphicsBindingOpenGLXlibKHR}, {@link XrGraphicsBindingVulkanKHR}, {@link XrHolographicWindowAttachmentMSFT}, {@link XrSessionCreateInfoOverlayEXTX}
                                                            • + *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrGraphicsBindingEGLMNDX}, {@link XrGraphicsBindingOpenGLESAndroidKHR}, {@link XrGraphicsBindingOpenGLWaylandKHR}, {@link XrGraphicsBindingOpenGLWin32KHR}, {@link XrGraphicsBindingOpenGLXcbKHR}, {@link XrGraphicsBindingOpenGLXlibKHR}, {@link XrGraphicsBindingVulkanKHR}, {@link XrHolographicWindowAttachmentMSFT}, {@link XrSessionCreateInfoOverlayEXTX}
                                                            • *
                                                            • {@code createFlags} must be 0
                                                            • *
                                                            * @@ -46,8 +46,8 @@ * XrSessionCreateFlags {@link #createFlags}; * XrSystemId {@link #systemId}; * } - */ -public class XrSessionCreateInfo extends Struct implements NativeResource { + */ +public class XrSessionCreateInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,27 +57,27 @@ public class XrSessionCreateInfo extends Struct implements /** The struct member offsets. */ public static final int - TYPE, - NEXT, - CREATEFLAGS, - SYSTEMID; + TYPE, + NEXT, + CREATEFLAGS, + SYSTEMID; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - CREATEFLAGS = layout.offsetof(2); - SYSTEMID = layout.offsetof(3); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + CREATEFLAGS = layout.offsetof(2); + SYSTEMID = layout.offsetof(3); + } protected XrSessionCreateInfo(long address, @Nullable ByteBuffer container) { super(address, container); @@ -100,60 +100,62 @@ public XrSessionCreateInfo(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. Note that in most cases one graphics API extension specific struct needs to be in this next chain. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** identifies {@code XrSessionCreateFlags} that apply to the creation. */ - @NativeType("XrSessionCreateFlags") - public long createFlags() { return ncreateFlags(address()); } - /** the {@code XrSystemId} representing the system of devices to be used by this session. */ - @NativeType("XrSystemId") - public long systemId() { return nsystemId(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSessionCreateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SESSION_CREATE_INFO TYPE_SESSION_CREATE_INFO} value to the {@link #type} field. */ - public XrSessionCreateInfo type$Default() { return type(XR10.XR_TYPE_SESSION_CREATE_INFO); } - /** Sets the specified value to the {@link #next} field. */ - public XrSessionCreateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrGraphicsBindingEGLMNDX} value to the {@code next} chain. */ - public XrSessionCreateInfo next(XrGraphicsBindingEGLMNDX value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGraphicsBindingOpenGLWaylandKHR} value to the {@code next} chain. */ - public XrSessionCreateInfo next(XrGraphicsBindingOpenGLWaylandKHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGraphicsBindingOpenGLWin32KHR} value to the {@code next} chain. */ - public XrSessionCreateInfo next(XrGraphicsBindingOpenGLWin32KHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGraphicsBindingOpenGLXcbKHR} value to the {@code next} chain. */ - public XrSessionCreateInfo next(XrGraphicsBindingOpenGLXcbKHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGraphicsBindingOpenGLXlibKHR} value to the {@code next} chain. */ - public XrSessionCreateInfo next(XrGraphicsBindingOpenGLXlibKHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGraphicsBindingVulkan2KHR} value to the {@code next} chain. */ - public XrSessionCreateInfo next(XrGraphicsBindingVulkan2KHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGraphicsBindingVulkanKHR} value to the {@code next} chain. */ - public XrSessionCreateInfo next(XrGraphicsBindingVulkanKHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrHolographicWindowAttachmentMSFT} value to the {@code next} chain. */ - public XrSessionCreateInfo next(XrHolographicWindowAttachmentMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSessionCreateInfoOverlayEXTX} value to the {@code next} chain. */ - public XrSessionCreateInfo next(XrSessionCreateInfoOverlayEXTX value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #createFlags} field. */ - public XrSessionCreateInfo createFlags(@NativeType("XrSessionCreateFlags") long value) { ncreateFlags(address(), value); return this; } - /** Sets the specified value to the {@link #systemId} field. */ - public XrSessionCreateInfo systemId(@NativeType("XrSystemId") long value) { nsystemId(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. Note that in most cases one graphics API extension specific struct needs to be in this next chain. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** identifies {@code XrSessionCreateFlags} that apply to the creation. */ + @NativeType("XrSessionCreateFlags") + public long createFlags() { return ncreateFlags(address()); } + /** the {@code XrSystemId} representing the system of devices to be used by this session. */ + @NativeType("XrSystemId") + public long systemId() { return nsystemId(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSessionCreateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SESSION_CREATE_INFO TYPE_SESSION_CREATE_INFO} value to the {@link #type} field. */ + public XrSessionCreateInfo type$Default() { return type(XR10.XR_TYPE_SESSION_CREATE_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrSessionCreateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrGraphicsBindingEGLMNDX} value to the {@code next} chain. */ + public XrSessionCreateInfo next(XrGraphicsBindingEGLMNDX value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingOpenGLESAndroidKHR} value to the {@code next} chain. */ + public XrSessionCreateInfo next(XrGraphicsBindingOpenGLESAndroidKHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingOpenGLWaylandKHR} value to the {@code next} chain. */ + public XrSessionCreateInfo next(XrGraphicsBindingOpenGLWaylandKHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingOpenGLWin32KHR} value to the {@code next} chain. */ + public XrSessionCreateInfo next(XrGraphicsBindingOpenGLWin32KHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingOpenGLXcbKHR} value to the {@code next} chain. */ + public XrSessionCreateInfo next(XrGraphicsBindingOpenGLXcbKHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingOpenGLXlibKHR} value to the {@code next} chain. */ + public XrSessionCreateInfo next(XrGraphicsBindingOpenGLXlibKHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingVulkan2KHR} value to the {@code next} chain. */ + public XrSessionCreateInfo next(XrGraphicsBindingVulkan2KHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingVulkanKHR} value to the {@code next} chain. */ + public XrSessionCreateInfo next(XrGraphicsBindingVulkanKHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrHolographicWindowAttachmentMSFT} value to the {@code next} chain. */ + public XrSessionCreateInfo next(XrHolographicWindowAttachmentMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSessionCreateInfoOverlayEXTX} value to the {@code next} chain. */ + public XrSessionCreateInfo next(XrSessionCreateInfoOverlayEXTX value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #createFlags} field. */ + public XrSessionCreateInfo createFlags(@NativeType("XrSessionCreateFlags") long value) { ncreateFlags(address(), value); return this; } + /** Sets the specified value to the {@link #systemId} field. */ + public XrSessionCreateInfo systemId(@NativeType("XrSystemId") long value) { nsystemId(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSessionCreateInfo set( - int type, - long next, - long createFlags, + int type, + long next, + long createFlags, long systemId - ) { - type(type); - next(next); - createFlags(createFlags); - systemId(systemId); + ) { + type(type); + next(next); + createFlags(createFlags); + systemId(systemId); return this; } @@ -282,26 +284,26 @@ public static XrSessionCreateInfo.Buffer calloc(int capacity, MemoryStack stack) } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSessionCreateInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSessionCreateInfo.NEXT); } - /** Unsafe version of {@link #createFlags}. */ - public static long ncreateFlags(long struct) { return UNSAFE.getLong(null, struct + XrSessionCreateInfo.CREATEFLAGS); } - /** Unsafe version of {@link #systemId}. */ - public static long nsystemId(long struct) { return UNSAFE.getLong(null, struct + XrSessionCreateInfo.SYSTEMID); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSessionCreateInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSessionCreateInfo.NEXT, value); } - /** Unsafe version of {@link #createFlags(long) createFlags}. */ - public static void ncreateFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrSessionCreateInfo.CREATEFLAGS, value); } - /** Unsafe version of {@link #systemId(long) systemId}. */ - public static void nsystemId(long struct, long value) { UNSAFE.putLong(null, struct + XrSessionCreateInfo.SYSTEMID, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSessionCreateInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSessionCreateInfo.NEXT); } + /** Unsafe version of {@link #createFlags}. */ + public static long ncreateFlags(long struct) { return UNSAFE.getLong(null, struct + XrSessionCreateInfo.CREATEFLAGS); } + /** Unsafe version of {@link #systemId}. */ + public static long nsystemId(long struct) { return UNSAFE.getLong(null, struct + XrSessionCreateInfo.SYSTEMID); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSessionCreateInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSessionCreateInfo.NEXT, value); } + /** Unsafe version of {@link #createFlags(long) createFlags}. */ + public static void ncreateFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrSessionCreateInfo.CREATEFLAGS, value); } + /** Unsafe version of {@link #systemId(long) systemId}. */ + public static void nsystemId(long struct, long value) { UNSAFE.putLong(null, struct + XrSessionCreateInfo.SYSTEMID, value); } + + // ----------------------------------- /** An array of {@link XrSessionCreateInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -338,48 +340,50 @@ protected Buffer self() { protected XrSessionCreateInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSessionCreateInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSessionCreateInfo.ntype(address()); } - /** @return the value of the {@link XrSessionCreateInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrSessionCreateInfo.nnext(address()); } - /** @return the value of the {@link XrSessionCreateInfo#createFlags} field. */ - @NativeType("XrSessionCreateFlags") - public long createFlags() { return XrSessionCreateInfo.ncreateFlags(address()); } - /** @return the value of the {@link XrSessionCreateInfo#systemId} field. */ - @NativeType("XrSystemId") - public long systemId() { return XrSessionCreateInfo.nsystemId(address()); } - - /** Sets the specified value to the {@link XrSessionCreateInfo#type} field. */ - public XrSessionCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSessionCreateInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SESSION_CREATE_INFO TYPE_SESSION_CREATE_INFO} value to the {@link XrSessionCreateInfo#type} field. */ - public XrSessionCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SESSION_CREATE_INFO); } - /** Sets the specified value to the {@link XrSessionCreateInfo#next} field. */ - public XrSessionCreateInfo.Buffer next(@NativeType("void const *") long value) { XrSessionCreateInfo.nnext(address(), value); return this; } - /** Prepends the specified {@link XrGraphicsBindingEGLMNDX} value to the {@code next} chain. */ - public XrSessionCreateInfo.Buffer next(XrGraphicsBindingEGLMNDX value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGraphicsBindingOpenGLWaylandKHR} value to the {@code next} chain. */ - public XrSessionCreateInfo.Buffer next(XrGraphicsBindingOpenGLWaylandKHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGraphicsBindingOpenGLWin32KHR} value to the {@code next} chain. */ - public XrSessionCreateInfo.Buffer next(XrGraphicsBindingOpenGLWin32KHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGraphicsBindingOpenGLXcbKHR} value to the {@code next} chain. */ - public XrSessionCreateInfo.Buffer next(XrGraphicsBindingOpenGLXcbKHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGraphicsBindingOpenGLXlibKHR} value to the {@code next} chain. */ - public XrSessionCreateInfo.Buffer next(XrGraphicsBindingOpenGLXlibKHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGraphicsBindingVulkan2KHR} value to the {@code next} chain. */ - public XrSessionCreateInfo.Buffer next(XrGraphicsBindingVulkan2KHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrGraphicsBindingVulkanKHR} value to the {@code next} chain. */ - public XrSessionCreateInfo.Buffer next(XrGraphicsBindingVulkanKHR value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrHolographicWindowAttachmentMSFT} value to the {@code next} chain. */ - public XrSessionCreateInfo.Buffer next(XrHolographicWindowAttachmentMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSessionCreateInfoOverlayEXTX} value to the {@code next} chain. */ - public XrSessionCreateInfo.Buffer next(XrSessionCreateInfoOverlayEXTX value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrSessionCreateInfo#createFlags} field. */ - public XrSessionCreateInfo.Buffer createFlags(@NativeType("XrSessionCreateFlags") long value) { XrSessionCreateInfo.ncreateFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrSessionCreateInfo#systemId} field. */ - public XrSessionCreateInfo.Buffer systemId(@NativeType("XrSystemId") long value) { XrSessionCreateInfo.nsystemId(address(), value); return this; } + + /** @return the value of the {@link XrSessionCreateInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSessionCreateInfo.ntype(address()); } + /** @return the value of the {@link XrSessionCreateInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrSessionCreateInfo.nnext(address()); } + /** @return the value of the {@link XrSessionCreateInfo#createFlags} field. */ + @NativeType("XrSessionCreateFlags") + public long createFlags() { return XrSessionCreateInfo.ncreateFlags(address()); } + /** @return the value of the {@link XrSessionCreateInfo#systemId} field. */ + @NativeType("XrSystemId") + public long systemId() { return XrSessionCreateInfo.nsystemId(address()); } + + /** Sets the specified value to the {@link XrSessionCreateInfo#type} field. */ + public XrSessionCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSessionCreateInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SESSION_CREATE_INFO TYPE_SESSION_CREATE_INFO} value to the {@link XrSessionCreateInfo#type} field. */ + public XrSessionCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SESSION_CREATE_INFO); } + /** Sets the specified value to the {@link XrSessionCreateInfo#next} field. */ + public XrSessionCreateInfo.Buffer next(@NativeType("void const *") long value) { XrSessionCreateInfo.nnext(address(), value); return this; } + /** Prepends the specified {@link XrGraphicsBindingEGLMNDX} value to the {@code next} chain. */ + public XrSessionCreateInfo.Buffer next(XrGraphicsBindingEGLMNDX value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingOpenGLESAndroidKHR} value to the {@code next} chain. */ + public XrSessionCreateInfo.Buffer next(XrGraphicsBindingOpenGLESAndroidKHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingOpenGLWaylandKHR} value to the {@code next} chain. */ + public XrSessionCreateInfo.Buffer next(XrGraphicsBindingOpenGLWaylandKHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingOpenGLWin32KHR} value to the {@code next} chain. */ + public XrSessionCreateInfo.Buffer next(XrGraphicsBindingOpenGLWin32KHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingOpenGLXcbKHR} value to the {@code next} chain. */ + public XrSessionCreateInfo.Buffer next(XrGraphicsBindingOpenGLXcbKHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingOpenGLXlibKHR} value to the {@code next} chain. */ + public XrSessionCreateInfo.Buffer next(XrGraphicsBindingOpenGLXlibKHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingVulkan2KHR} value to the {@code next} chain. */ + public XrSessionCreateInfo.Buffer next(XrGraphicsBindingVulkan2KHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrGraphicsBindingVulkanKHR} value to the {@code next} chain. */ + public XrSessionCreateInfo.Buffer next(XrGraphicsBindingVulkanKHR value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrHolographicWindowAttachmentMSFT} value to the {@code next} chain. */ + public XrSessionCreateInfo.Buffer next(XrHolographicWindowAttachmentMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSessionCreateInfoOverlayEXTX} value to the {@code next} chain. */ + public XrSessionCreateInfo.Buffer next(XrSessionCreateInfoOverlayEXTX value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrSessionCreateInfo#createFlags} field. */ + public XrSessionCreateInfo.Buffer createFlags(@NativeType("XrSessionCreateFlags") long value) { XrSessionCreateInfo.ncreateFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrSessionCreateInfo#systemId} field. */ + public XrSessionCreateInfo.Buffer systemId(@NativeType("XrSystemId") long value) { XrSessionCreateInfo.nsystemId(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionCreateInfoOverlayEXTX.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionCreateInfoOverlayEXTX.java index 21f4efef47..d41db0e459 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionCreateInfoOverlayEXTX.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSessionCreateInfoOverlayEXTX.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Session creation extension struct providing overlay session parameters. * @@ -23,7 +23,7 @@ *
                                                              *
                                                            • The {@link EXTXOverlay XR_EXTX_overlay} extension must be enabled prior to using {@link XrSessionCreateInfoOverlayEXTX}
                                                            • *
                                                            • {@code type} must be {@link EXTXOverlay#XR_TYPE_SESSION_CREATE_INFO_OVERLAY_EXTX TYPE_SESSION_CREATE_INFO_OVERLAY_EXTX}
                                                            • - *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                            • + *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                            • *
                                                            • {@code createFlags} must be 0
                                                            • *
                                                            * @@ -36,8 +36,8 @@ * XrOverlaySessionCreateFlagsEXTX {@link #createFlags}; * uint32_t {@link #sessionLayersPlacement}; * } - */ -public class XrSessionCreateInfoOverlayEXTX extends Struct implements NativeResource { + */ +public class XrSessionCreateInfoOverlayEXTX extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -47,27 +47,27 @@ public class XrSessionCreateInfoOverlayEXTX extends Struct implements NativeResource { @@ -310,30 +310,30 @@ protected Buffer self() { protected XrSessionCreateInfoOverlayEXTX getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSessionCreateInfoOverlayEXTX#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSessionCreateInfoOverlayEXTX.ntype(address()); } - /** @return the value of the {@link XrSessionCreateInfoOverlayEXTX#next} field. */ - @NativeType("void const *") - public long next() { return XrSessionCreateInfoOverlayEXTX.nnext(address()); } - /** @return the value of the {@link XrSessionCreateInfoOverlayEXTX#createFlags} field. */ - @NativeType("XrOverlaySessionCreateFlagsEXTX") - public long createFlags() { return XrSessionCreateInfoOverlayEXTX.ncreateFlags(address()); } - /** @return the value of the {@link XrSessionCreateInfoOverlayEXTX#sessionLayersPlacement} field. */ - @NativeType("uint32_t") - public int sessionLayersPlacement() { return XrSessionCreateInfoOverlayEXTX.nsessionLayersPlacement(address()); } - - /** Sets the specified value to the {@link XrSessionCreateInfoOverlayEXTX#type} field. */ - public XrSessionCreateInfoOverlayEXTX.Buffer type(@NativeType("XrStructureType") int value) { XrSessionCreateInfoOverlayEXTX.ntype(address(), value); return this; } - /** Sets the {@link EXTXOverlay#XR_TYPE_SESSION_CREATE_INFO_OVERLAY_EXTX TYPE_SESSION_CREATE_INFO_OVERLAY_EXTX} value to the {@link XrSessionCreateInfoOverlayEXTX#type} field. */ - public XrSessionCreateInfoOverlayEXTX.Buffer type$Default() { return type(EXTXOverlay.XR_TYPE_SESSION_CREATE_INFO_OVERLAY_EXTX); } - /** Sets the specified value to the {@link XrSessionCreateInfoOverlayEXTX#next} field. */ - public XrSessionCreateInfoOverlayEXTX.Buffer next(@NativeType("void const *") long value) { XrSessionCreateInfoOverlayEXTX.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSessionCreateInfoOverlayEXTX#createFlags} field. */ - public XrSessionCreateInfoOverlayEXTX.Buffer createFlags(@NativeType("XrOverlaySessionCreateFlagsEXTX") long value) { XrSessionCreateInfoOverlayEXTX.ncreateFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrSessionCreateInfoOverlayEXTX#sessionLayersPlacement} field. */ - public XrSessionCreateInfoOverlayEXTX.Buffer sessionLayersPlacement(@NativeType("uint32_t") int value) { XrSessionCreateInfoOverlayEXTX.nsessionLayersPlacement(address(), value); return this; } + + /** @return the value of the {@link XrSessionCreateInfoOverlayEXTX#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSessionCreateInfoOverlayEXTX.ntype(address()); } + /** @return the value of the {@link XrSessionCreateInfoOverlayEXTX#next} field. */ + @NativeType("void const *") + public long next() { return XrSessionCreateInfoOverlayEXTX.nnext(address()); } + /** @return the value of the {@link XrSessionCreateInfoOverlayEXTX#createFlags} field. */ + @NativeType("XrOverlaySessionCreateFlagsEXTX") + public long createFlags() { return XrSessionCreateInfoOverlayEXTX.ncreateFlags(address()); } + /** @return the value of the {@link XrSessionCreateInfoOverlayEXTX#sessionLayersPlacement} field. */ + @NativeType("uint32_t") + public int sessionLayersPlacement() { return XrSessionCreateInfoOverlayEXTX.nsessionLayersPlacement(address()); } + + /** Sets the specified value to the {@link XrSessionCreateInfoOverlayEXTX#type} field. */ + public XrSessionCreateInfoOverlayEXTX.Buffer type(@NativeType("XrStructureType") int value) { XrSessionCreateInfoOverlayEXTX.ntype(address(), value); return this; } + /** Sets the {@link EXTXOverlay#XR_TYPE_SESSION_CREATE_INFO_OVERLAY_EXTX TYPE_SESSION_CREATE_INFO_OVERLAY_EXTX} value to the {@link XrSessionCreateInfoOverlayEXTX#type} field. */ + public XrSessionCreateInfoOverlayEXTX.Buffer type$Default() { return type(EXTXOverlay.XR_TYPE_SESSION_CREATE_INFO_OVERLAY_EXTX); } + /** Sets the specified value to the {@link XrSessionCreateInfoOverlayEXTX#next} field. */ + public XrSessionCreateInfoOverlayEXTX.Buffer next(@NativeType("void const *") long value) { XrSessionCreateInfoOverlayEXTX.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSessionCreateInfoOverlayEXTX#createFlags} field. */ + public XrSessionCreateInfoOverlayEXTX.Buffer createFlags(@NativeType("XrOverlaySessionCreateFlagsEXTX") long value) { XrSessionCreateInfoOverlayEXTX.ncreateFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrSessionCreateInfoOverlayEXTX#sessionLayersPlacement} field. */ + public XrSessionCreateInfoOverlayEXTX.Buffer sessionLayersPlacement(@NativeType("uint32_t") int value) { XrSessionCreateInfoOverlayEXTX.nsessionLayersPlacement(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpace.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpace.java index 28b8cebafb..6e736b9644 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpace.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpace.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrSpace} handle. */ + +/** Wraps an {@code XrSpace} handle. */ public class XrSpace extends DispatchableHandle { private final XrSession session; @@ -26,4 +26,4 @@ public XrSession getSession() { return session; } -} +} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceComponentFilterInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceComponentFilterInfoFB.java index 97c9a3d51d..cd9c45de7b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceComponentFilterInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceComponentFilterInfoFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Filters for entities with specific components enabled. * @@ -27,7 +27,7 @@ *
                                                              *
                                                            • The {@link FBSpatialEntityQuery XR_FB_spatial_entity_query} extension must be enabled prior to using {@link XrSpaceComponentFilterInfoFB}
                                                            • *
                                                            • {@code type} must be {@link FBSpatialEntityQuery#XR_TYPE_SPACE_COMPONENT_FILTER_INFO_FB TYPE_SPACE_COMPONENT_FILTER_INFO_FB}
                                                            • - *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                            • + *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                            • *
                                                            • {@code componentType} must be a valid {@code XrSpaceComponentTypeFB} value
                                                            • *
                                                            * @@ -43,8 +43,8 @@ * void const * {@link #next}; * XrSpaceComponentTypeFB {@link #componentType}; * } - */ -public class XrSpaceComponentFilterInfoFB extends Struct implements NativeResource { + */ +public class XrSpaceComponentFilterInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,24 +54,24 @@ public class XrSpaceComponentFilterInfoFB extends Struct implements NativeResource { @@ -313,25 +313,25 @@ protected Buffer self() { protected XrSpaceComponentFilterInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceComponentFilterInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceComponentFilterInfoFB.ntype(address()); } - /** @return the value of the {@link XrSpaceComponentFilterInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSpaceComponentFilterInfoFB.nnext(address()); } - /** @return the value of the {@link XrSpaceComponentFilterInfoFB#componentType} field. */ - @NativeType("XrSpaceComponentTypeFB") - public int componentType() { return XrSpaceComponentFilterInfoFB.ncomponentType(address()); } - - /** Sets the specified value to the {@link XrSpaceComponentFilterInfoFB#type} field. */ - public XrSpaceComponentFilterInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceComponentFilterInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_COMPONENT_FILTER_INFO_FB TYPE_SPACE_COMPONENT_FILTER_INFO_FB} value to the {@link XrSpaceComponentFilterInfoFB#type} field. */ - public XrSpaceComponentFilterInfoFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_COMPONENT_FILTER_INFO_FB); } - /** Sets the specified value to the {@link XrSpaceComponentFilterInfoFB#next} field. */ - public XrSpaceComponentFilterInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceComponentFilterInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceComponentFilterInfoFB#componentType} field. */ - public XrSpaceComponentFilterInfoFB.Buffer componentType(@NativeType("XrSpaceComponentTypeFB") int value) { XrSpaceComponentFilterInfoFB.ncomponentType(address(), value); return this; } + + /** @return the value of the {@link XrSpaceComponentFilterInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceComponentFilterInfoFB.ntype(address()); } + /** @return the value of the {@link XrSpaceComponentFilterInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSpaceComponentFilterInfoFB.nnext(address()); } + /** @return the value of the {@link XrSpaceComponentFilterInfoFB#componentType} field. */ + @NativeType("XrSpaceComponentTypeFB") + public int componentType() { return XrSpaceComponentFilterInfoFB.ncomponentType(address()); } + + /** Sets the specified value to the {@link XrSpaceComponentFilterInfoFB#type} field. */ + public XrSpaceComponentFilterInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceComponentFilterInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_COMPONENT_FILTER_INFO_FB TYPE_SPACE_COMPONENT_FILTER_INFO_FB} value to the {@link XrSpaceComponentFilterInfoFB#type} field. */ + public XrSpaceComponentFilterInfoFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_COMPONENT_FILTER_INFO_FB); } + /** Sets the specified value to the {@link XrSpaceComponentFilterInfoFB#next} field. */ + public XrSpaceComponentFilterInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceComponentFilterInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceComponentFilterInfoFB#componentType} field. */ + public XrSpaceComponentFilterInfoFB.Buffer componentType(@NativeType("XrSpaceComponentTypeFB") int value) { XrSpaceComponentFilterInfoFB.ncomponentType(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceComponentStatusFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceComponentStatusFB.java index a5cfe37576..18bdaf26d7 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceComponentStatusFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceComponentStatusFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Current status of an entity. * @@ -27,7 +27,7 @@ *
                                                              *
                                                            • The {@link FBSpatialEntity XR_FB_spatial_entity} extension must be enabled prior to using {@link XrSpaceComponentStatusFB}
                                                            • *
                                                            • {@code type} must be {@link FBSpatialEntity#XR_TYPE_SPACE_COMPONENT_STATUS_FB TYPE_SPACE_COMPONENT_STATUS_FB}
                                                            • - *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                            • + *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                            • *
                                                            * *
                                                            See Also
                                                            @@ -43,8 +43,8 @@ * XrBool32 {@link #enabled}; * XrBool32 {@link #changePending}; * } - */ -public class XrSpaceComponentStatusFB extends Struct implements NativeResource { + */ +public class XrSpaceComponentStatusFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,27 +54,27 @@ public class XrSpaceComponentStatusFB extends Struct i /** The struct member offsets. */ public static final int - TYPE, - NEXT, - ENABLED, - CHANGEPENDING; + TYPE, + NEXT, + ENABLED, + CHANGEPENDING; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - ENABLED = layout.offsetof(2); - CHANGEPENDING = layout.offsetof(3); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + ENABLED = layout.offsetof(2); + CHANGEPENDING = layout.offsetof(3); + } protected XrSpaceComponentStatusFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -97,34 +97,34 @@ public XrSpaceComponentStatusFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** a boolean value that determines if a component is currently enabled or disabled. */ - @NativeType("XrBool32") - public boolean enabled() { return nenabled(address()) != 0; } - /** a boolean value that determines if the component’s enabled state is about to change. */ - @NativeType("XrBool32") - public boolean changePending() { return nchangePending(address()) != 0; } - - /** Sets the specified value to the {@link #type} field. */ - public XrSpaceComponentStatusFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntity#XR_TYPE_SPACE_COMPONENT_STATUS_FB TYPE_SPACE_COMPONENT_STATUS_FB} value to the {@link #type} field. */ - public XrSpaceComponentStatusFB type$Default() { return type(FBSpatialEntity.XR_TYPE_SPACE_COMPONENT_STATUS_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSpaceComponentStatusFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** a boolean value that determines if a component is currently enabled or disabled. */ + @NativeType("XrBool32") + public boolean enabled() { return nenabled(address()) != 0; } + /** a boolean value that determines if the component’s enabled state is about to change. */ + @NativeType("XrBool32") + public boolean changePending() { return nchangePending(address()) != 0; } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpaceComponentStatusFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntity#XR_TYPE_SPACE_COMPONENT_STATUS_FB TYPE_SPACE_COMPONENT_STATUS_FB} value to the {@link #type} field. */ + public XrSpaceComponentStatusFB type$Default() { return type(FBSpatialEntity.XR_TYPE_SPACE_COMPONENT_STATUS_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpaceComponentStatusFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpaceComponentStatusFB set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -253,22 +253,22 @@ public static XrSpaceComponentStatusFB.Buffer calloc(int capacity, MemoryStack s } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceComponentStatusFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpaceComponentStatusFB.NEXT); } - /** Unsafe version of {@link #enabled}. */ - public static int nenabled(long struct) { return UNSAFE.getInt(null, struct + XrSpaceComponentStatusFB.ENABLED); } - /** Unsafe version of {@link #changePending}. */ - public static int nchangePending(long struct) { return UNSAFE.getInt(null, struct + XrSpaceComponentStatusFB.CHANGEPENDING); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceComponentStatusFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceComponentStatusFB.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceComponentStatusFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpaceComponentStatusFB.NEXT); } + /** Unsafe version of {@link #enabled}. */ + public static int nenabled(long struct) { return UNSAFE.getInt(null, struct + XrSpaceComponentStatusFB.ENABLED); } + /** Unsafe version of {@link #changePending}. */ + public static int nchangePending(long struct) { return UNSAFE.getInt(null, struct + XrSpaceComponentStatusFB.CHANGEPENDING); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceComponentStatusFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceComponentStatusFB.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrSpaceComponentStatusFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -305,26 +305,26 @@ protected Buffer self() { protected XrSpaceComponentStatusFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceComponentStatusFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceComponentStatusFB.ntype(address()); } - /** @return the value of the {@link XrSpaceComponentStatusFB#next} field. */ - @NativeType("void *") - public long next() { return XrSpaceComponentStatusFB.nnext(address()); } - /** @return the value of the {@link XrSpaceComponentStatusFB#enabled} field. */ - @NativeType("XrBool32") - public boolean enabled() { return XrSpaceComponentStatusFB.nenabled(address()) != 0; } - /** @return the value of the {@link XrSpaceComponentStatusFB#changePending} field. */ - @NativeType("XrBool32") - public boolean changePending() { return XrSpaceComponentStatusFB.nchangePending(address()) != 0; } - - /** Sets the specified value to the {@link XrSpaceComponentStatusFB#type} field. */ - public XrSpaceComponentStatusFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceComponentStatusFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntity#XR_TYPE_SPACE_COMPONENT_STATUS_FB TYPE_SPACE_COMPONENT_STATUS_FB} value to the {@link XrSpaceComponentStatusFB#type} field. */ - public XrSpaceComponentStatusFB.Buffer type$Default() { return type(FBSpatialEntity.XR_TYPE_SPACE_COMPONENT_STATUS_FB); } - /** Sets the specified value to the {@link XrSpaceComponentStatusFB#next} field. */ - public XrSpaceComponentStatusFB.Buffer next(@NativeType("void *") long value) { XrSpaceComponentStatusFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSpaceComponentStatusFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceComponentStatusFB.ntype(address()); } + /** @return the value of the {@link XrSpaceComponentStatusFB#next} field. */ + @NativeType("void *") + public long next() { return XrSpaceComponentStatusFB.nnext(address()); } + /** @return the value of the {@link XrSpaceComponentStatusFB#enabled} field. */ + @NativeType("XrBool32") + public boolean enabled() { return XrSpaceComponentStatusFB.nenabled(address()) != 0; } + /** @return the value of the {@link XrSpaceComponentStatusFB#changePending} field. */ + @NativeType("XrBool32") + public boolean changePending() { return XrSpaceComponentStatusFB.nchangePending(address()) != 0; } + + /** Sets the specified value to the {@link XrSpaceComponentStatusFB#type} field. */ + public XrSpaceComponentStatusFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceComponentStatusFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntity#XR_TYPE_SPACE_COMPONENT_STATUS_FB TYPE_SPACE_COMPONENT_STATUS_FB} value to the {@link XrSpaceComponentStatusFB#type} field. */ + public XrSpaceComponentStatusFB.Buffer type$Default() { return type(FBSpatialEntity.XR_TYPE_SPACE_COMPONENT_STATUS_FB); } + /** Sets the specified value to the {@link XrSpaceComponentStatusFB#next} field. */ + public XrSpaceComponentStatusFB.Buffer next(@NativeType("void *") long value) { XrSpaceComponentStatusFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceComponentStatusSetInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceComponentStatusSetInfoFB.java index ce1580cce8..59e7fb504a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceComponentStatusSetInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceComponentStatusSetInfoFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Request info to enable or disable an entity. * @@ -27,7 +27,7 @@ *
                                                              *
                                                            • The {@link FBSpatialEntity XR_FB_spatial_entity} extension must be enabled prior to using {@link XrSpaceComponentStatusSetInfoFB}
                                                            • *
                                                            • {@code type} must be {@link FBSpatialEntity#XR_TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB}
                                                            • - *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                            • + *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                            • *
                                                            • {@code componentType} must be a valid {@code XrSpaceComponentTypeFB} value
                                                            • *
                                                            * @@ -45,8 +45,8 @@ * XrBool32 {@link #enabled}; * XrDuration {@link #timeout}; * } - */ -public class XrSpaceComponentStatusSetInfoFB extends Struct implements NativeResource { + */ +public class XrSpaceComponentStatusSetInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,30 +56,30 @@ public class XrSpaceComponentStatusSetInfoFB extends Structduration for more details. */ - @NativeType("XrDuration") - public long timeout() { return ntimeout(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSpaceComponentStatusSetInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntity#XR_TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB} value to the {@link #type} field. */ - public XrSpaceComponentStatusSetInfoFB type$Default() { return type(FBSpatialEntity.XR_TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSpaceComponentStatusSetInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #componentType} field. */ - public XrSpaceComponentStatusSetInfoFB componentType(@NativeType("XrSpaceComponentTypeFB") int value) { ncomponentType(address(), value); return this; } - /** Sets the specified value to the {@link #enabled} field. */ - public XrSpaceComponentStatusSetInfoFB enabled(@NativeType("XrBool32") boolean value) { nenabled(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link #timeout} field. */ - public XrSpaceComponentStatusSetInfoFB timeout(@NativeType("XrDuration") long value) { ntimeout(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the component whose status is to be set. */ + @NativeType("XrSpaceComponentTypeFB") + public int componentType() { return ncomponentType(address()); } + /** the value to set the component to. */ + @NativeType("XrBool32") + public boolean enabled() { return nenabled(address()) != 0; } + /** the number of nanoseconds before the operation should be cancelled. A value of {@link XR10#XR_INFINITE_DURATION INFINITE_DURATION} indicates to never time out. See duration for more details. */ + @NativeType("XrDuration") + public long timeout() { return ntimeout(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpaceComponentStatusSetInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntity#XR_TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB} value to the {@link #type} field. */ + public XrSpaceComponentStatusSetInfoFB type$Default() { return type(FBSpatialEntity.XR_TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpaceComponentStatusSetInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #componentType} field. */ + public XrSpaceComponentStatusSetInfoFB componentType(@NativeType("XrSpaceComponentTypeFB") int value) { ncomponentType(address(), value); return this; } + /** Sets the specified value to the {@link #enabled} field. */ + public XrSpaceComponentStatusSetInfoFB enabled(@NativeType("XrBool32") boolean value) { nenabled(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link #timeout} field. */ + public XrSpaceComponentStatusSetInfoFB timeout(@NativeType("XrDuration") long value) { ntimeout(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpaceComponentStatusSetInfoFB set( - int type, - long next, - int componentType, - boolean enabled, + int type, + long next, + int componentType, + boolean enabled, long timeout - ) { - type(type); - next(next); - componentType(componentType); - enabled(enabled); - timeout(timeout); + ) { + type(type); + next(next); + componentType(componentType); + enabled(enabled); + timeout(timeout); return this; } @@ -273,30 +273,30 @@ public static XrSpaceComponentStatusSetInfoFB.Buffer calloc(int capacity, Memory } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceComponentStatusSetInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpaceComponentStatusSetInfoFB.NEXT); } - /** Unsafe version of {@link #componentType}. */ - public static int ncomponentType(long struct) { return UNSAFE.getInt(null, struct + XrSpaceComponentStatusSetInfoFB.COMPONENTTYPE); } - /** Unsafe version of {@link #enabled}. */ - public static int nenabled(long struct) { return UNSAFE.getInt(null, struct + XrSpaceComponentStatusSetInfoFB.ENABLED); } - /** Unsafe version of {@link #timeout}. */ - public static long ntimeout(long struct) { return UNSAFE.getLong(null, struct + XrSpaceComponentStatusSetInfoFB.TIMEOUT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceComponentStatusSetInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceComponentStatusSetInfoFB.NEXT, value); } - /** Unsafe version of {@link #componentType(int) componentType}. */ - public static void ncomponentType(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceComponentStatusSetInfoFB.COMPONENTTYPE, value); } - /** Unsafe version of {@link #enabled(boolean) enabled}. */ - public static void nenabled(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceComponentStatusSetInfoFB.ENABLED, value); } - /** Unsafe version of {@link #timeout(long) timeout}. */ - public static void ntimeout(long struct, long value) { UNSAFE.putLong(null, struct + XrSpaceComponentStatusSetInfoFB.TIMEOUT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceComponentStatusSetInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpaceComponentStatusSetInfoFB.NEXT); } + /** Unsafe version of {@link #componentType}. */ + public static int ncomponentType(long struct) { return UNSAFE.getInt(null, struct + XrSpaceComponentStatusSetInfoFB.COMPONENTTYPE); } + /** Unsafe version of {@link #enabled}. */ + public static int nenabled(long struct) { return UNSAFE.getInt(null, struct + XrSpaceComponentStatusSetInfoFB.ENABLED); } + /** Unsafe version of {@link #timeout}. */ + public static long ntimeout(long struct) { return UNSAFE.getLong(null, struct + XrSpaceComponentStatusSetInfoFB.TIMEOUT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceComponentStatusSetInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceComponentStatusSetInfoFB.NEXT, value); } + /** Unsafe version of {@link #componentType(int) componentType}. */ + public static void ncomponentType(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceComponentStatusSetInfoFB.COMPONENTTYPE, value); } + /** Unsafe version of {@link #enabled(boolean) enabled}. */ + public static void nenabled(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceComponentStatusSetInfoFB.ENABLED, value); } + /** Unsafe version of {@link #timeout(long) timeout}. */ + public static void ntimeout(long struct, long value) { UNSAFE.putLong(null, struct + XrSpaceComponentStatusSetInfoFB.TIMEOUT, value); } + + // ----------------------------------- /** An array of {@link XrSpaceComponentStatusSetInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -333,35 +333,35 @@ protected Buffer self() { protected XrSpaceComponentStatusSetInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceComponentStatusSetInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceComponentStatusSetInfoFB.ntype(address()); } - /** @return the value of the {@link XrSpaceComponentStatusSetInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSpaceComponentStatusSetInfoFB.nnext(address()); } - /** @return the value of the {@link XrSpaceComponentStatusSetInfoFB#componentType} field. */ - @NativeType("XrSpaceComponentTypeFB") - public int componentType() { return XrSpaceComponentStatusSetInfoFB.ncomponentType(address()); } - /** @return the value of the {@link XrSpaceComponentStatusSetInfoFB#enabled} field. */ - @NativeType("XrBool32") - public boolean enabled() { return XrSpaceComponentStatusSetInfoFB.nenabled(address()) != 0; } - /** @return the value of the {@link XrSpaceComponentStatusSetInfoFB#timeout} field. */ - @NativeType("XrDuration") - public long timeout() { return XrSpaceComponentStatusSetInfoFB.ntimeout(address()); } - - /** Sets the specified value to the {@link XrSpaceComponentStatusSetInfoFB#type} field. */ - public XrSpaceComponentStatusSetInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceComponentStatusSetInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntity#XR_TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB} value to the {@link XrSpaceComponentStatusSetInfoFB#type} field. */ - public XrSpaceComponentStatusSetInfoFB.Buffer type$Default() { return type(FBSpatialEntity.XR_TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB); } - /** Sets the specified value to the {@link XrSpaceComponentStatusSetInfoFB#next} field. */ - public XrSpaceComponentStatusSetInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceComponentStatusSetInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceComponentStatusSetInfoFB#componentType} field. */ - public XrSpaceComponentStatusSetInfoFB.Buffer componentType(@NativeType("XrSpaceComponentTypeFB") int value) { XrSpaceComponentStatusSetInfoFB.ncomponentType(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceComponentStatusSetInfoFB#enabled} field. */ - public XrSpaceComponentStatusSetInfoFB.Buffer enabled(@NativeType("XrBool32") boolean value) { XrSpaceComponentStatusSetInfoFB.nenabled(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link XrSpaceComponentStatusSetInfoFB#timeout} field. */ - public XrSpaceComponentStatusSetInfoFB.Buffer timeout(@NativeType("XrDuration") long value) { XrSpaceComponentStatusSetInfoFB.ntimeout(address(), value); return this; } + + /** @return the value of the {@link XrSpaceComponentStatusSetInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceComponentStatusSetInfoFB.ntype(address()); } + /** @return the value of the {@link XrSpaceComponentStatusSetInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSpaceComponentStatusSetInfoFB.nnext(address()); } + /** @return the value of the {@link XrSpaceComponentStatusSetInfoFB#componentType} field. */ + @NativeType("XrSpaceComponentTypeFB") + public int componentType() { return XrSpaceComponentStatusSetInfoFB.ncomponentType(address()); } + /** @return the value of the {@link XrSpaceComponentStatusSetInfoFB#enabled} field. */ + @NativeType("XrBool32") + public boolean enabled() { return XrSpaceComponentStatusSetInfoFB.nenabled(address()) != 0; } + /** @return the value of the {@link XrSpaceComponentStatusSetInfoFB#timeout} field. */ + @NativeType("XrDuration") + public long timeout() { return XrSpaceComponentStatusSetInfoFB.ntimeout(address()); } + + /** Sets the specified value to the {@link XrSpaceComponentStatusSetInfoFB#type} field. */ + public XrSpaceComponentStatusSetInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceComponentStatusSetInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntity#XR_TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB} value to the {@link XrSpaceComponentStatusSetInfoFB#type} field. */ + public XrSpaceComponentStatusSetInfoFB.Buffer type$Default() { return type(FBSpatialEntity.XR_TYPE_SPACE_COMPONENT_STATUS_SET_INFO_FB); } + /** Sets the specified value to the {@link XrSpaceComponentStatusSetInfoFB#next} field. */ + public XrSpaceComponentStatusSetInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceComponentStatusSetInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceComponentStatusSetInfoFB#componentType} field. */ + public XrSpaceComponentStatusSetInfoFB.Buffer componentType(@NativeType("XrSpaceComponentTypeFB") int value) { XrSpaceComponentStatusSetInfoFB.ncomponentType(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceComponentStatusSetInfoFB#enabled} field. */ + public XrSpaceComponentStatusSetInfoFB.Buffer enabled(@NativeType("XrBool32") boolean value) { XrSpaceComponentStatusSetInfoFB.nenabled(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link XrSpaceComponentStatusSetInfoFB#timeout} field. */ + public XrSpaceComponentStatusSetInfoFB.Buffer timeout(@NativeType("XrDuration") long value) { XrSpaceComponentStatusSetInfoFB.ntimeout(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceContainerFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceContainerFB.java index c3358ea95d..56e401bb2c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceContainerFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceContainerFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Represents a collection of other spaces, represented by UUIDs, contained by this space. * @@ -27,7 +27,7 @@ *
                                                              *
                                                            • The {@link FBSpatialEntityContainer XR_FB_spatial_entity_container} extension must be enabled prior to using {@link XrSpaceContainerFB}
                                                            • *
                                                            • {@code type} must be {@link FBSpatialEntityContainer#XR_TYPE_SPACE_CONTAINER_FB TYPE_SPACE_CONTAINER_FB}
                                                            • - *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                            • + *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                            • *
                                                            • If {@code uuidCapacityInput} is not 0, {@code uuids} must be a pointer to an array of {@code uuidCapacityInput} {@link XrUuidEXT} structures
                                                            • *
                                                            * @@ -45,8 +45,8 @@ * uint32_t {@link #uuidCountOutput}; * {@link XrUuidEXT XrUuidEXT} * {@link #uuids}; * } - */ -public class XrSpaceContainerFB extends Struct implements NativeResource { + */ +public class XrSpaceContainerFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,30 +56,30 @@ public class XrSpaceContainerFB extends Struct implements Na /** The struct member offsets. */ public static final int - TYPE, - NEXT, - UUIDCAPACITYINPUT, - UUIDCOUNTOUTPUT, - UUIDS; + TYPE, + NEXT, + UUIDCAPACITYINPUT, + UUIDCOUNTOUTPUT, + UUIDS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - UUIDCAPACITYINPUT = layout.offsetof(2); - UUIDCOUNTOUTPUT = layout.offsetof(3); - UUIDS = layout.offsetof(4); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + UUIDCAPACITYINPUT = layout.offsetof(2); + UUIDCOUNTOUTPUT = layout.offsetof(3); + UUIDS = layout.offsetof(4); + } protected XrSpaceContainerFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -102,50 +102,50 @@ public XrSpaceContainerFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** the capacity of the {@code uuids} array, or 0 to indicate a request to retrieve the required capacity. */ - @NativeType("uint32_t") - public int uuidCapacityInput() { return nuuidCapacityInput(address()); } - /** an output parameter which will hold the number of UUIDs included in the output list, or the required capacity in the case that {@code uuidCapacityInput} is insufficient */ - @NativeType("uint32_t") - public int uuidCountOutput() { return nuuidCountOutput(address()); } - /** an output parameter which will hold a list of space UUIDs contained by the space to which the component is attached. */ - @Nullable - @NativeType("XrUuidEXT *") - public XrUuidEXT.Buffer uuids() { return nuuids(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSpaceContainerFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityContainer#XR_TYPE_SPACE_CONTAINER_FB TYPE_SPACE_CONTAINER_FB} value to the {@link #type} field. */ - public XrSpaceContainerFB type$Default() { return type(FBSpatialEntityContainer.XR_TYPE_SPACE_CONTAINER_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSpaceContainerFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #uuidCapacityInput} field. */ - public XrSpaceContainerFB uuidCapacityInput(@NativeType("uint32_t") int value) { nuuidCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #uuidCountOutput} field. */ - public XrSpaceContainerFB uuidCountOutput(@NativeType("uint32_t") int value) { nuuidCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrUuidEXT.Buffer} to the {@link #uuids} field. */ - public XrSpaceContainerFB uuids(@Nullable @NativeType("XrUuidEXT *") XrUuidEXT.Buffer value) { nuuids(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** an input parameter for the application to specify a capacity for the output list */ + @NativeType("uint32_t") + public int uuidCapacityInput() { return nuuidCapacityInput(address()); } + /** an output parameter which will hold the number of UUIDs included in the output list, or the required capacity in the case that {@code uuidCapacityInput} is insufficient */ + @NativeType("uint32_t") + public int uuidCountOutput() { return nuuidCountOutput(address()); } + /** an output parameter which will hold a list of space UUIDs contained by the space to which the component is attached. */ + @Nullable + @NativeType("XrUuidEXT *") + public XrUuidEXT.Buffer uuids() { return nuuids(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpaceContainerFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityContainer#XR_TYPE_SPACE_CONTAINER_FB TYPE_SPACE_CONTAINER_FB} value to the {@link #type} field. */ + public XrSpaceContainerFB type$Default() { return type(FBSpatialEntityContainer.XR_TYPE_SPACE_CONTAINER_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpaceContainerFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #uuidCapacityInput} field. */ + public XrSpaceContainerFB uuidCapacityInput(@NativeType("uint32_t") int value) { nuuidCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #uuidCountOutput} field. */ + public XrSpaceContainerFB uuidCountOutput(@NativeType("uint32_t") int value) { nuuidCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrUuidEXT.Buffer} to the {@link #uuids} field. */ + public XrSpaceContainerFB uuids(@Nullable @NativeType("XrUuidEXT *") XrUuidEXT.Buffer value) { nuuids(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpaceContainerFB set( - int type, - long next, - int uuidCapacityInput, - int uuidCountOutput, + int type, + long next, + int uuidCapacityInput, + int uuidCountOutput, @Nullable XrUuidEXT.Buffer uuids - ) { - type(type); - next(next); - uuidCapacityInput(uuidCapacityInput); - uuidCountOutput(uuidCountOutput); - uuids(uuids); + ) { + type(type); + next(next); + uuidCapacityInput(uuidCapacityInput); + uuidCountOutput(uuidCountOutput); + uuids(uuids); return this; } @@ -274,30 +274,30 @@ public static XrSpaceContainerFB.Buffer calloc(int capacity, MemoryStack stack) } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceContainerFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpaceContainerFB.NEXT); } - /** Unsafe version of {@link #uuidCapacityInput}. */ - public static int nuuidCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrSpaceContainerFB.UUIDCAPACITYINPUT); } - /** Unsafe version of {@link #uuidCountOutput}. */ - public static int nuuidCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrSpaceContainerFB.UUIDCOUNTOUTPUT); } - /** Unsafe version of {@link #uuids}. */ - @Nullable public static XrUuidEXT.Buffer nuuids(long struct) { return XrUuidEXT.createSafe(memGetAddress(struct + XrSpaceContainerFB.UUIDS), nuuidCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceContainerFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceContainerFB.NEXT, value); } - /** Sets the specified value to the {@code uuidCapacityInput} field of the specified {@code struct}. */ - public static void nuuidCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceContainerFB.UUIDCAPACITYINPUT, value); } - /** Unsafe version of {@link #uuidCountOutput(int) uuidCountOutput}. */ - public static void nuuidCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceContainerFB.UUIDCOUNTOUTPUT, value); } - /** Unsafe version of {@link #uuids(XrUuidEXT.Buffer) uuids}. */ - public static void nuuids(long struct, @Nullable XrUuidEXT.Buffer value) { memPutAddress(struct + XrSpaceContainerFB.UUIDS, memAddressSafe(value)); if (value != null) { nuuidCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceContainerFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpaceContainerFB.NEXT); } + /** Unsafe version of {@link #uuidCapacityInput}. */ + public static int nuuidCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrSpaceContainerFB.UUIDCAPACITYINPUT); } + /** Unsafe version of {@link #uuidCountOutput}. */ + public static int nuuidCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrSpaceContainerFB.UUIDCOUNTOUTPUT); } + /** Unsafe version of {@link #uuids}. */ + @Nullable public static XrUuidEXT.Buffer nuuids(long struct) { return XrUuidEXT.createSafe(memGetAddress(struct + XrSpaceContainerFB.UUIDS), nuuidCapacityInput(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceContainerFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceContainerFB.NEXT, value); } + /** Sets the specified value to the {@code uuidCapacityInput} field of the specified {@code struct}. */ + public static void nuuidCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceContainerFB.UUIDCAPACITYINPUT, value); } + /** Unsafe version of {@link #uuidCountOutput(int) uuidCountOutput}. */ + public static void nuuidCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceContainerFB.UUIDCOUNTOUTPUT, value); } + /** Unsafe version of {@link #uuids(XrUuidEXT.Buffer) uuids}. */ + public static void nuuids(long struct, @Nullable XrUuidEXT.Buffer value) { memPutAddress(struct + XrSpaceContainerFB.UUIDS, memAddressSafe(value)); if (value != null) { nuuidCapacityInput(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrSpaceContainerFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -334,36 +334,36 @@ protected Buffer self() { protected XrSpaceContainerFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceContainerFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceContainerFB.ntype(address()); } - /** @return the value of the {@link XrSpaceContainerFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSpaceContainerFB.nnext(address()); } - /** @return the value of the {@link XrSpaceContainerFB#uuidCapacityInput} field. */ - @NativeType("uint32_t") - public int uuidCapacityInput() { return XrSpaceContainerFB.nuuidCapacityInput(address()); } - /** @return the value of the {@link XrSpaceContainerFB#uuidCountOutput} field. */ - @NativeType("uint32_t") - public int uuidCountOutput() { return XrSpaceContainerFB.nuuidCountOutput(address()); } - /** @return a {@link XrUuidEXT.Buffer} view of the struct array pointed to by the {@link XrSpaceContainerFB#uuids} field. */ - @Nullable - @NativeType("XrUuidEXT *") - public XrUuidEXT.Buffer uuids() { return XrSpaceContainerFB.nuuids(address()); } - - /** Sets the specified value to the {@link XrSpaceContainerFB#type} field. */ - public XrSpaceContainerFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceContainerFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityContainer#XR_TYPE_SPACE_CONTAINER_FB TYPE_SPACE_CONTAINER_FB} value to the {@link XrSpaceContainerFB#type} field. */ - public XrSpaceContainerFB.Buffer type$Default() { return type(FBSpatialEntityContainer.XR_TYPE_SPACE_CONTAINER_FB); } - /** Sets the specified value to the {@link XrSpaceContainerFB#next} field. */ - public XrSpaceContainerFB.Buffer next(@NativeType("void const *") long value) { XrSpaceContainerFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceContainerFB#uuidCapacityInput} field. */ - public XrSpaceContainerFB.Buffer uuidCapacityInput(@NativeType("uint32_t") int value) { XrSpaceContainerFB.nuuidCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceContainerFB#uuidCountOutput} field. */ - public XrSpaceContainerFB.Buffer uuidCountOutput(@NativeType("uint32_t") int value) { XrSpaceContainerFB.nuuidCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrUuidEXT.Buffer} to the {@link XrSpaceContainerFB#uuids} field. */ - public XrSpaceContainerFB.Buffer uuids(@Nullable @NativeType("XrUuidEXT *") XrUuidEXT.Buffer value) { XrSpaceContainerFB.nuuids(address(), value); return this; } + + /** @return the value of the {@link XrSpaceContainerFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceContainerFB.ntype(address()); } + /** @return the value of the {@link XrSpaceContainerFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSpaceContainerFB.nnext(address()); } + /** @return the value of the {@link XrSpaceContainerFB#uuidCapacityInput} field. */ + @NativeType("uint32_t") + public int uuidCapacityInput() { return XrSpaceContainerFB.nuuidCapacityInput(address()); } + /** @return the value of the {@link XrSpaceContainerFB#uuidCountOutput} field. */ + @NativeType("uint32_t") + public int uuidCountOutput() { return XrSpaceContainerFB.nuuidCountOutput(address()); } + /** @return a {@link XrUuidEXT.Buffer} view of the struct array pointed to by the {@link XrSpaceContainerFB#uuids} field. */ + @Nullable + @NativeType("XrUuidEXT *") + public XrUuidEXT.Buffer uuids() { return XrSpaceContainerFB.nuuids(address()); } + + /** Sets the specified value to the {@link XrSpaceContainerFB#type} field. */ + public XrSpaceContainerFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceContainerFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityContainer#XR_TYPE_SPACE_CONTAINER_FB TYPE_SPACE_CONTAINER_FB} value to the {@link XrSpaceContainerFB#type} field. */ + public XrSpaceContainerFB.Buffer type$Default() { return type(FBSpatialEntityContainer.XR_TYPE_SPACE_CONTAINER_FB); } + /** Sets the specified value to the {@link XrSpaceContainerFB#next} field. */ + public XrSpaceContainerFB.Buffer next(@NativeType("void const *") long value) { XrSpaceContainerFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceContainerFB#uuidCapacityInput} field. */ + public XrSpaceContainerFB.Buffer uuidCapacityInput(@NativeType("uint32_t") int value) { XrSpaceContainerFB.nuuidCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceContainerFB#uuidCountOutput} field. */ + public XrSpaceContainerFB.Buffer uuidCountOutput(@NativeType("uint32_t") int value) { XrSpaceContainerFB.nuuidCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrUuidEXT.Buffer} to the {@link XrSpaceContainerFB#uuids} field. */ + public XrSpaceContainerFB.Buffer uuids(@Nullable @NativeType("XrUuidEXT *") XrUuidEXT.Buffer value) { XrSpaceContainerFB.nuuids(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceEraseInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceEraseInfoFB.java index 4a33f6888f..de8bf640a4 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceEraseInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceEraseInfoFB.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Parameters for an erase operation. * @@ -28,7 +28,7 @@ *
                                                              *
                                                            • The {@link FBSpatialEntityStorage XR_FB_spatial_entity_storage} extension must be enabled prior to using {@link XrSpaceEraseInfoFB}
                                                            • *
                                                            • {@code type} must be {@link FBSpatialEntityStorage#XR_TYPE_SPACE_ERASE_INFO_FB TYPE_SPACE_ERASE_INFO_FB}
                                                            • - *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                            • + *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                            • *
                                                            • {@code space} must be a valid {@code XrSpace} handle
                                                            • *
                                                            • {@code location} must be a valid {@code XrSpaceStorageLocationFB} value
                                                            • *
                                                            @@ -46,8 +46,8 @@ * XrSpace {@link #space}; * XrSpaceStorageLocationFB {@link #location}; * } - */ -public class XrSpaceEraseInfoFB extends Struct implements NativeResource { + */ +public class XrSpaceEraseInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,27 +57,27 @@ public class XrSpaceEraseInfoFB extends Struct implements Na /** The struct member offsets. */ public static final int - TYPE, - NEXT, - SPACE, - LOCATION; + TYPE, + NEXT, + SPACE, + LOCATION; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(POINTER_SIZE), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - SPACE = layout.offsetof(2); - LOCATION = layout.offsetof(3); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + SPACE = layout.offsetof(2); + LOCATION = layout.offsetof(3); + } protected XrSpaceEraseInfoFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -100,42 +100,42 @@ public XrSpaceEraseInfoFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** the {@code XrSpace} handle to the reference space that defines the entity to be erased. */ - @NativeType("XrSpace") - public long space() { return nspace(address()); } - /** the storage location. */ - @NativeType("XrSpaceStorageLocationFB") - public int location() { return nlocation(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSpaceEraseInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityStorage#XR_TYPE_SPACE_ERASE_INFO_FB TYPE_SPACE_ERASE_INFO_FB} value to the {@link #type} field. */ - public XrSpaceEraseInfoFB type$Default() { return type(FBSpatialEntityStorage.XR_TYPE_SPACE_ERASE_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSpaceEraseInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #space} field. */ - public XrSpaceEraseInfoFB space(XrSpace value) { nspace(address(), value); return this; } - /** Sets the specified value to the {@link #location} field. */ - public XrSpaceEraseInfoFB location(@NativeType("XrSpaceStorageLocationFB") int value) { nlocation(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the {@code XrSpace} handle to the reference space that defines the entity to be erased. */ + @NativeType("XrSpace") + public long space() { return nspace(address()); } + /** the storage location. */ + @NativeType("XrSpaceStorageLocationFB") + public int location() { return nlocation(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpaceEraseInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityStorage#XR_TYPE_SPACE_ERASE_INFO_FB TYPE_SPACE_ERASE_INFO_FB} value to the {@link #type} field. */ + public XrSpaceEraseInfoFB type$Default() { return type(FBSpatialEntityStorage.XR_TYPE_SPACE_ERASE_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpaceEraseInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #space} field. */ + public XrSpaceEraseInfoFB space(XrSpace value) { nspace(address(), value); return this; } + /** Sets the specified value to the {@link #location} field. */ + public XrSpaceEraseInfoFB location(@NativeType("XrSpaceStorageLocationFB") int value) { nlocation(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpaceEraseInfoFB set( - int type, - long next, - XrSpace space, + int type, + long next, + XrSpace space, int location - ) { - type(type); - next(next); - space(space); - location(location); + ) { + type(type); + next(next); + space(space); + location(location); return this; } @@ -264,24 +264,24 @@ public static XrSpaceEraseInfoFB.Buffer calloc(int capacity, MemoryStack stack) } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceEraseInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpaceEraseInfoFB.NEXT); } - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrSpaceEraseInfoFB.SPACE); } - /** Unsafe version of {@link #location}. */ - public static int nlocation(long struct) { return UNSAFE.getInt(null, struct + XrSpaceEraseInfoFB.LOCATION); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceEraseInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceEraseInfoFB.NEXT, value); } - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrSpaceEraseInfoFB.SPACE, value.address()); } - /** Unsafe version of {@link #location(int) location}. */ - public static void nlocation(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceEraseInfoFB.LOCATION, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceEraseInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpaceEraseInfoFB.NEXT); } + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrSpaceEraseInfoFB.SPACE); } + /** Unsafe version of {@link #location}. */ + public static int nlocation(long struct) { return UNSAFE.getInt(null, struct + XrSpaceEraseInfoFB.LOCATION); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceEraseInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceEraseInfoFB.NEXT, value); } + /** Unsafe version of {@link #space(XrSpace) space}. */ + public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrSpaceEraseInfoFB.SPACE, value.address()); } + /** Unsafe version of {@link #location(int) location}. */ + public static void nlocation(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceEraseInfoFB.LOCATION, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -290,9 +290,9 @@ public static XrSpaceEraseInfoFB.Buffer calloc(int capacity, MemoryStack stack) */ public static void validate(long struct) { check(memGetAddress(struct + XrSpaceEraseInfoFB.SPACE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSpaceEraseInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -329,30 +329,30 @@ protected Buffer self() { protected XrSpaceEraseInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceEraseInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceEraseInfoFB.ntype(address()); } - /** @return the value of the {@link XrSpaceEraseInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSpaceEraseInfoFB.nnext(address()); } - /** @return the value of the {@link XrSpaceEraseInfoFB#space} field. */ - @NativeType("XrSpace") - public long space() { return XrSpaceEraseInfoFB.nspace(address()); } - /** @return the value of the {@link XrSpaceEraseInfoFB#location} field. */ - @NativeType("XrSpaceStorageLocationFB") - public int location() { return XrSpaceEraseInfoFB.nlocation(address()); } - - /** Sets the specified value to the {@link XrSpaceEraseInfoFB#type} field. */ - public XrSpaceEraseInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceEraseInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityStorage#XR_TYPE_SPACE_ERASE_INFO_FB TYPE_SPACE_ERASE_INFO_FB} value to the {@link XrSpaceEraseInfoFB#type} field. */ - public XrSpaceEraseInfoFB.Buffer type$Default() { return type(FBSpatialEntityStorage.XR_TYPE_SPACE_ERASE_INFO_FB); } - /** Sets the specified value to the {@link XrSpaceEraseInfoFB#next} field. */ - public XrSpaceEraseInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceEraseInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceEraseInfoFB#space} field. */ - public XrSpaceEraseInfoFB.Buffer space(XrSpace value) { XrSpaceEraseInfoFB.nspace(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceEraseInfoFB#location} field. */ - public XrSpaceEraseInfoFB.Buffer location(@NativeType("XrSpaceStorageLocationFB") int value) { XrSpaceEraseInfoFB.nlocation(address(), value); return this; } + + /** @return the value of the {@link XrSpaceEraseInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceEraseInfoFB.ntype(address()); } + /** @return the value of the {@link XrSpaceEraseInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSpaceEraseInfoFB.nnext(address()); } + /** @return the value of the {@link XrSpaceEraseInfoFB#space} field. */ + @NativeType("XrSpace") + public long space() { return XrSpaceEraseInfoFB.nspace(address()); } + /** @return the value of the {@link XrSpaceEraseInfoFB#location} field. */ + @NativeType("XrSpaceStorageLocationFB") + public int location() { return XrSpaceEraseInfoFB.nlocation(address()); } + + /** Sets the specified value to the {@link XrSpaceEraseInfoFB#type} field. */ + public XrSpaceEraseInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceEraseInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityStorage#XR_TYPE_SPACE_ERASE_INFO_FB TYPE_SPACE_ERASE_INFO_FB} value to the {@link XrSpaceEraseInfoFB#type} field. */ + public XrSpaceEraseInfoFB.Buffer type$Default() { return type(FBSpatialEntityStorage.XR_TYPE_SPACE_ERASE_INFO_FB); } + /** Sets the specified value to the {@link XrSpaceEraseInfoFB#next} field. */ + public XrSpaceEraseInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceEraseInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceEraseInfoFB#space} field. */ + public XrSpaceEraseInfoFB.Buffer space(XrSpace value) { XrSpaceEraseInfoFB.nspace(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceEraseInfoFB#location} field. */ + public XrSpaceEraseInfoFB.Buffer location(@NativeType("XrSpaceStorageLocationFB") int value) { XrSpaceEraseInfoFB.nlocation(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceFilterInfoBaseHeaderFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceFilterInfoBaseHeaderFB.java index 97c78bb567..801d7a0b9d 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceFilterInfoBaseHeaderFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceFilterInfoBaseHeaderFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Base structure for all query filter structures. * @@ -27,7 +27,7 @@ *
                                                              *
                                                            • The {@link FBSpatialEntityQuery XR_FB_spatial_entity_query} extension must be enabled prior to using {@link XrSpaceFilterInfoBaseHeaderFB}
                                                            • *
                                                            • {@code type} must be one of the following XrStructureType values: {@link FBSpatialEntityQuery#XR_TYPE_SPACE_COMPONENT_FILTER_INFO_FB TYPE_SPACE_COMPONENT_FILTER_INFO_FB}, {@link FBSpatialEntityQuery#XR_TYPE_SPACE_UUID_FILTER_INFO_FB TYPE_SPACE_UUID_FILTER_INFO_FB}
                                                            • - *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrSpaceStorageLocationFilterInfoFB}
                                                            • + *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrSpaceStorageLocationFilterInfoFB}
                                                            • *
                                                            * *
                                                            See Also
                                                            @@ -41,8 +41,8 @@ * XrStructureType {@link #type}; * void const * {@link #next}; * } - */ -public class XrSpaceFilterInfoBaseHeaderFB extends Struct implements NativeResource { + */ +public class XrSpaceFilterInfoBaseHeaderFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,21 +52,21 @@ public class XrSpaceFilterInfoBaseHeaderFB extends Struct implements NativeResource { @@ -307,20 +307,20 @@ protected Buffer self() { protected XrSpaceFilterInfoBaseHeaderFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceFilterInfoBaseHeaderFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceFilterInfoBaseHeaderFB.ntype(address()); } - /** @return the value of the {@link XrSpaceFilterInfoBaseHeaderFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSpaceFilterInfoBaseHeaderFB.nnext(address()); } - - /** Sets the specified value to the {@link XrSpaceFilterInfoBaseHeaderFB#type} field. */ - public XrSpaceFilterInfoBaseHeaderFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceFilterInfoBaseHeaderFB.ntype(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceFilterInfoBaseHeaderFB#next} field. */ - public XrSpaceFilterInfoBaseHeaderFB.Buffer next(@NativeType("void const *") long value) { XrSpaceFilterInfoBaseHeaderFB.nnext(address(), value); return this; } - /** Prepends the specified {@link XrSpaceStorageLocationFilterInfoFB} value to the {@code next} chain. */ - public XrSpaceFilterInfoBaseHeaderFB.Buffer next(XrSpaceStorageLocationFilterInfoFB value) { return this.next(value.next(this.next()).address()); } + + /** @return the value of the {@link XrSpaceFilterInfoBaseHeaderFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceFilterInfoBaseHeaderFB.ntype(address()); } + /** @return the value of the {@link XrSpaceFilterInfoBaseHeaderFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSpaceFilterInfoBaseHeaderFB.nnext(address()); } + + /** Sets the specified value to the {@link XrSpaceFilterInfoBaseHeaderFB#type} field. */ + public XrSpaceFilterInfoBaseHeaderFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceFilterInfoBaseHeaderFB.ntype(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceFilterInfoBaseHeaderFB#next} field. */ + public XrSpaceFilterInfoBaseHeaderFB.Buffer next(@NativeType("void const *") long value) { XrSpaceFilterInfoBaseHeaderFB.nnext(address(), value); return this; } + /** Prepends the specified {@link XrSpaceStorageLocationFilterInfoFB} value to the {@code next} chain. */ + public XrSpaceFilterInfoBaseHeaderFB.Buffer next(XrSpaceStorageLocationFilterInfoFB value) { return this.next(value.next(this.next()).address()); } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceListSaveInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceListSaveInfoFB.java index 8909c8e417..1186a9a09b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceListSaveInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceListSaveInfoFB.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Parameters for a list save operation. * @@ -28,7 +28,7 @@ *
                                                              *
                                                            • The {@link FBSpatialEntityStorageBatch XR_FB_spatial_entity_storage_batch} extension must be enabled prior to using {@link XrSpaceListSaveInfoFB}
                                                            • *
                                                            • {@code type} must be {@link FBSpatialEntityStorageBatch#XR_TYPE_SPACE_LIST_SAVE_INFO_FB TYPE_SPACE_LIST_SAVE_INFO_FB}
                                                            • - *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                            • + *
                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                            • *
                                                            • {@code spaces} must be a pointer to an array of {@code spaceCount} {@code XrSpace} handles
                                                            • *
                                                            • {@code location} must be a valid {@code XrSpaceStorageLocationFB} value
                                                            • *
                                                            • The {@code spaceCount} parameter must be greater than 0
                                                            • @@ -48,8 +48,8 @@ * XrSpace * {@link #spaces}; * XrSpaceStorageLocationFB {@link #location}; * } - */ -public class XrSpaceListSaveInfoFB extends Struct implements NativeResource { + */ +public class XrSpaceListSaveInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -59,30 +59,30 @@ public class XrSpaceListSaveInfoFB extends Struct impleme /** The struct member offsets. */ public static final int - TYPE, - NEXT, - SPACECOUNT, - SPACES, - LOCATION; + TYPE, + NEXT, + SPACECOUNT, + SPACES, + LOCATION; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(POINTER_SIZE), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - SPACECOUNT = layout.offsetof(2); - SPACES = layout.offsetof(3); - LOCATION = layout.offsetof(4); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + SPACECOUNT = layout.offsetof(2); + SPACES = layout.offsetof(3); + LOCATION = layout.offsetof(4); + } protected XrSpaceListSaveInfoFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -105,45 +105,45 @@ public XrSpaceListSaveInfoFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** the number of spatial entities to save. */ - @NativeType("uint32_t") - public int spaceCount() { return nspaceCount(address()); } - /** a list of {@code XrSpace} handles for the entities to be saved. */ - @NativeType("XrSpace *") - public PointerBuffer spaces() { return nspaces(address()); } - /** the storage location. */ - @NativeType("XrSpaceStorageLocationFB") - public int location() { return nlocation(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSpaceListSaveInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityStorageBatch#XR_TYPE_SPACE_LIST_SAVE_INFO_FB TYPE_SPACE_LIST_SAVE_INFO_FB} value to the {@link #type} field. */ - public XrSpaceListSaveInfoFB type$Default() { return type(FBSpatialEntityStorageBatch.XR_TYPE_SPACE_LIST_SAVE_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSpaceListSaveInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@link #spaces} field. */ - public XrSpaceListSaveInfoFB spaces(@NativeType("XrSpace *") PointerBuffer value) { nspaces(address(), value); return this; } - /** Sets the specified value to the {@link #location} field. */ - public XrSpaceListSaveInfoFB location(@NativeType("XrSpaceStorageLocationFB") int value) { nlocation(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the number of spatial entities to save. */ + @NativeType("uint32_t") + public int spaceCount() { return nspaceCount(address()); } + /** a list of {@code XrSpace} handles for the entities to be saved. */ + @NativeType("XrSpace *") + public PointerBuffer spaces() { return nspaces(address()); } + /** the storage location. */ + @NativeType("XrSpaceStorageLocationFB") + public int location() { return nlocation(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpaceListSaveInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityStorageBatch#XR_TYPE_SPACE_LIST_SAVE_INFO_FB TYPE_SPACE_LIST_SAVE_INFO_FB} value to the {@link #type} field. */ + public XrSpaceListSaveInfoFB type$Default() { return type(FBSpatialEntityStorageBatch.XR_TYPE_SPACE_LIST_SAVE_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpaceListSaveInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@link #spaces} field. */ + public XrSpaceListSaveInfoFB spaces(@NativeType("XrSpace *") PointerBuffer value) { nspaces(address(), value); return this; } + /** Sets the specified value to the {@link #location} field. */ + public XrSpaceListSaveInfoFB location(@NativeType("XrSpaceStorageLocationFB") int value) { nlocation(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpaceListSaveInfoFB set( - int type, - long next, - PointerBuffer spaces, + int type, + long next, + PointerBuffer spaces, int location - ) { - type(type); - next(next); - spaces(spaces); - location(location); + ) { + type(type); + next(next); + spaces(spaces); + location(location); return this; } @@ -272,28 +272,28 @@ public static XrSpaceListSaveInfoFB.Buffer calloc(int capacity, MemoryStack stac } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceListSaveInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpaceListSaveInfoFB.NEXT); } - /** Unsafe version of {@link #spaceCount}. */ - public static int nspaceCount(long struct) { return UNSAFE.getInt(null, struct + XrSpaceListSaveInfoFB.SPACECOUNT); } - /** Unsafe version of {@link #spaces() spaces}. */ - public static PointerBuffer nspaces(long struct) { return memPointerBuffer(memGetAddress(struct + XrSpaceListSaveInfoFB.SPACES), nspaceCount(struct)); } - /** Unsafe version of {@link #location}. */ - public static int nlocation(long struct) { return UNSAFE.getInt(null, struct + XrSpaceListSaveInfoFB.LOCATION); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceListSaveInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceListSaveInfoFB.NEXT, value); } - /** Sets the specified value to the {@code spaceCount} field of the specified {@code struct}. */ - public static void nspaceCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceListSaveInfoFB.SPACECOUNT, value); } - /** Unsafe version of {@link #spaces(PointerBuffer) spaces}. */ - public static void nspaces(long struct, PointerBuffer value) { memPutAddress(struct + XrSpaceListSaveInfoFB.SPACES, memAddress(value)); nspaceCount(struct, value.remaining()); } - /** Unsafe version of {@link #location(int) location}. */ - public static void nlocation(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceListSaveInfoFB.LOCATION, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceListSaveInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpaceListSaveInfoFB.NEXT); } + /** Unsafe version of {@link #spaceCount}. */ + public static int nspaceCount(long struct) { return UNSAFE.getInt(null, struct + XrSpaceListSaveInfoFB.SPACECOUNT); } + /** Unsafe version of {@link #spaces() spaces}. */ + public static PointerBuffer nspaces(long struct) { return memPointerBuffer(memGetAddress(struct + XrSpaceListSaveInfoFB.SPACES), nspaceCount(struct)); } + /** Unsafe version of {@link #location}. */ + public static int nlocation(long struct) { return UNSAFE.getInt(null, struct + XrSpaceListSaveInfoFB.LOCATION); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceListSaveInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceListSaveInfoFB.NEXT, value); } + /** Sets the specified value to the {@code spaceCount} field of the specified {@code struct}. */ + public static void nspaceCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceListSaveInfoFB.SPACECOUNT, value); } + /** Unsafe version of {@link #spaces(PointerBuffer) spaces}. */ + public static void nspaces(long struct, PointerBuffer value) { memPutAddress(struct + XrSpaceListSaveInfoFB.SPACES, memAddress(value)); nspaceCount(struct, value.remaining()); } + /** Unsafe version of {@link #location(int) location}. */ + public static void nlocation(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceListSaveInfoFB.LOCATION, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -302,9 +302,9 @@ public static XrSpaceListSaveInfoFB.Buffer calloc(int capacity, MemoryStack stac */ public static void validate(long struct) { check(memGetAddress(struct + XrSpaceListSaveInfoFB.SPACES)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSpaceListSaveInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -341,33 +341,33 @@ protected Buffer self() { protected XrSpaceListSaveInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceListSaveInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceListSaveInfoFB.ntype(address()); } - /** @return the value of the {@link XrSpaceListSaveInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSpaceListSaveInfoFB.nnext(address()); } - /** @return the value of the {@link XrSpaceListSaveInfoFB#spaceCount} field. */ - @NativeType("uint32_t") - public int spaceCount() { return XrSpaceListSaveInfoFB.nspaceCount(address()); } - /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrSpaceListSaveInfoFB#spaces} field. */ - @NativeType("XrSpace *") - public PointerBuffer spaces() { return XrSpaceListSaveInfoFB.nspaces(address()); } - /** @return the value of the {@link XrSpaceListSaveInfoFB#location} field. */ - @NativeType("XrSpaceStorageLocationFB") - public int location() { return XrSpaceListSaveInfoFB.nlocation(address()); } - - /** Sets the specified value to the {@link XrSpaceListSaveInfoFB#type} field. */ - public XrSpaceListSaveInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceListSaveInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityStorageBatch#XR_TYPE_SPACE_LIST_SAVE_INFO_FB TYPE_SPACE_LIST_SAVE_INFO_FB} value to the {@link XrSpaceListSaveInfoFB#type} field. */ - public XrSpaceListSaveInfoFB.Buffer type$Default() { return type(FBSpatialEntityStorageBatch.XR_TYPE_SPACE_LIST_SAVE_INFO_FB); } - /** Sets the specified value to the {@link XrSpaceListSaveInfoFB#next} field. */ - public XrSpaceListSaveInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceListSaveInfoFB.nnext(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@link XrSpaceListSaveInfoFB#spaces} field. */ - public XrSpaceListSaveInfoFB.Buffer spaces(@NativeType("XrSpace *") PointerBuffer value) { XrSpaceListSaveInfoFB.nspaces(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceListSaveInfoFB#location} field. */ - public XrSpaceListSaveInfoFB.Buffer location(@NativeType("XrSpaceStorageLocationFB") int value) { XrSpaceListSaveInfoFB.nlocation(address(), value); return this; } + + /** @return the value of the {@link XrSpaceListSaveInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceListSaveInfoFB.ntype(address()); } + /** @return the value of the {@link XrSpaceListSaveInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSpaceListSaveInfoFB.nnext(address()); } + /** @return the value of the {@link XrSpaceListSaveInfoFB#spaceCount} field. */ + @NativeType("uint32_t") + public int spaceCount() { return XrSpaceListSaveInfoFB.nspaceCount(address()); } + /** @return a {@link PointerBuffer} view of the data pointed to by the {@link XrSpaceListSaveInfoFB#spaces} field. */ + @NativeType("XrSpace *") + public PointerBuffer spaces() { return XrSpaceListSaveInfoFB.nspaces(address()); } + /** @return the value of the {@link XrSpaceListSaveInfoFB#location} field. */ + @NativeType("XrSpaceStorageLocationFB") + public int location() { return XrSpaceListSaveInfoFB.nlocation(address()); } + + /** Sets the specified value to the {@link XrSpaceListSaveInfoFB#type} field. */ + public XrSpaceListSaveInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceListSaveInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityStorageBatch#XR_TYPE_SPACE_LIST_SAVE_INFO_FB TYPE_SPACE_LIST_SAVE_INFO_FB} value to the {@link XrSpaceListSaveInfoFB#type} field. */ + public XrSpaceListSaveInfoFB.Buffer type$Default() { return type(FBSpatialEntityStorageBatch.XR_TYPE_SPACE_LIST_SAVE_INFO_FB); } + /** Sets the specified value to the {@link XrSpaceListSaveInfoFB#next} field. */ + public XrSpaceListSaveInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceListSaveInfoFB.nnext(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@link XrSpaceListSaveInfoFB#spaces} field. */ + public XrSpaceListSaveInfoFB.Buffer spaces(@NativeType("XrSpace *") PointerBuffer value) { XrSpaceListSaveInfoFB.nspaces(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceListSaveInfoFB#location} field. */ + public XrSpaceListSaveInfoFB.Buffer location(@NativeType("XrSpaceStorageLocationFB") int value) { XrSpaceListSaveInfoFB.nlocation(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceLocation.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceLocation.java index 4697ce8166..412bd5c2ad 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceLocation.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceLocation.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Contains info about a space. * @@ -22,7 +22,7 @@ * *
                                                                *
                                                              • {@code type} must be {@link XR10#XR_TYPE_SPACE_LOCATION TYPE_SPACE_LOCATION}
                                                              • - *
                                                              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrEyeGazeSampleTimeEXT}, {@link XrSpaceVelocity}
                                                              • + *
                                                              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrEyeGazeSampleTimeEXT}, {@link XrSpaceVelocity}
                                                              • *
                                                              • {@code locationFlags} must be 0 or a valid combination of {@code XrSpaceLocationFlagBits} values
                                                              • *
                                                              * @@ -39,8 +39,8 @@ * XrSpaceLocationFlags {@link #locationFlags}; * {@link XrPosef XrPosef} {@link #pose}; * } - */ -public class XrSpaceLocation extends Struct implements NativeResource { + */ +public class XrSpaceLocation extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,27 +50,27 @@ public class XrSpaceLocation extends Struct implements NativeRe /** The struct member offsets. */ public static final int - TYPE, - NEXT, - LOCATIONFLAGS, - POSE; + TYPE, + NEXT, + LOCATIONFLAGS, + POSE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), __member(XrPosef.SIZEOF, XrPosef.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - LOCATIONFLAGS = layout.offsetof(2); - POSE = layout.offsetof(3); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + LOCATIONFLAGS = layout.offsetof(2); + POSE = layout.offsetof(3); + } protected XrSpaceLocation(long address, @Nullable ByteBuffer container) { super(address, container); @@ -93,47 +93,47 @@ public XrSpaceLocation(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain, such as {@link XrSpaceVelocity}. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** a bitfield, with bit masks defined in {@code XrSpaceLocationFlagBits}, to indicate which members contain valid data. If none of the bits are set, no other fields in this structure should be considered to be valid or meaningful. */ - @NativeType("XrSpaceLocationFlags") - public long locationFlags() { return nlocationFlags(address()); } - /** an {@link XrPosef} defining the position and orientation of the origin of {@link XR10#xrLocateSpace LocateSpace}{@code ::space} within the reference frame of {@link XR10#xrLocateSpace LocateSpace}{@code ::baseSpace}. */ - public XrPosef pose() { return npose(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSpaceLocation type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SPACE_LOCATION TYPE_SPACE_LOCATION} value to the {@link #type} field. */ - public XrSpaceLocation type$Default() { return type(XR10.XR_TYPE_SPACE_LOCATION); } - /** Sets the specified value to the {@link #next} field. */ - public XrSpaceLocation next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrEyeGazeSampleTimeEXT} value to the {@code next} chain. */ - public XrSpaceLocation next(XrEyeGazeSampleTimeEXT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSpaceVelocity} value to the {@code next} chain. */ - public XrSpaceLocation next(XrSpaceVelocity value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #locationFlags} field. */ - public XrSpaceLocation locationFlags(@NativeType("XrSpaceLocationFlags") long value) { nlocationFlags(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ - public XrSpaceLocation pose(XrPosef value) { npose(address(), value); return this; } - /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpaceLocation pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain, such as {@link XrSpaceVelocity}. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** a bitfield, with bit masks defined in {@code XrSpaceLocationFlagBits}, to indicate which members contain valid data. If none of the bits are set, no other fields in this structure should be considered to be valid or meaningful. */ + @NativeType("XrSpaceLocationFlags") + public long locationFlags() { return nlocationFlags(address()); } + /** an {@link XrPosef} defining the position and orientation of the origin of {@link XR10#xrLocateSpace LocateSpace}{@code ::space} within the reference frame of {@link XR10#xrLocateSpace LocateSpace}{@code ::baseSpace}. */ + public XrPosef pose() { return npose(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpaceLocation type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SPACE_LOCATION TYPE_SPACE_LOCATION} value to the {@link #type} field. */ + public XrSpaceLocation type$Default() { return type(XR10.XR_TYPE_SPACE_LOCATION); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpaceLocation next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrEyeGazeSampleTimeEXT} value to the {@code next} chain. */ + public XrSpaceLocation next(XrEyeGazeSampleTimeEXT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSpaceVelocity} value to the {@code next} chain. */ + public XrSpaceLocation next(XrSpaceVelocity value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #locationFlags} field. */ + public XrSpaceLocation locationFlags(@NativeType("XrSpaceLocationFlags") long value) { nlocationFlags(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrSpaceLocation pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpaceLocation pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } /** Initializes this struct with the specified values. */ public XrSpaceLocation set( - int type, - long next, - long locationFlags, + int type, + long next, + long locationFlags, XrPosef pose - ) { - type(type); - next(next); - locationFlags(locationFlags); - pose(pose); + ) { + type(type); + next(next); + locationFlags(locationFlags); + pose(pose); return this; } @@ -262,26 +262,26 @@ public static XrSpaceLocation.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceLocation.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpaceLocation.NEXT); } - /** Unsafe version of {@link #locationFlags}. */ - public static long nlocationFlags(long struct) { return UNSAFE.getLong(null, struct + XrSpaceLocation.LOCATIONFLAGS); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrSpaceLocation.POSE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceLocation.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceLocation.NEXT, value); } - /** Unsafe version of {@link #locationFlags(long) locationFlags}. */ - public static void nlocationFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrSpaceLocation.LOCATIONFLAGS, value); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpaceLocation.POSE, XrPosef.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceLocation.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpaceLocation.NEXT); } + /** Unsafe version of {@link #locationFlags}. */ + public static long nlocationFlags(long struct) { return UNSAFE.getLong(null, struct + XrSpaceLocation.LOCATIONFLAGS); } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrSpaceLocation.POSE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceLocation.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceLocation.NEXT, value); } + /** Unsafe version of {@link #locationFlags(long) locationFlags}. */ + public static void nlocationFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrSpaceLocation.LOCATIONFLAGS, value); } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpaceLocation.POSE, XrPosef.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrSpaceLocation} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -318,35 +318,35 @@ protected Buffer self() { protected XrSpaceLocation getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceLocation#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceLocation.ntype(address()); } - /** @return the value of the {@link XrSpaceLocation#next} field. */ - @NativeType("void *") - public long next() { return XrSpaceLocation.nnext(address()); } - /** @return the value of the {@link XrSpaceLocation#locationFlags} field. */ - @NativeType("XrSpaceLocationFlags") - public long locationFlags() { return XrSpaceLocation.nlocationFlags(address()); } - /** @return a {@link XrPosef} view of the {@link XrSpaceLocation#pose} field. */ - public XrPosef pose() { return XrSpaceLocation.npose(address()); } - - /** Sets the specified value to the {@link XrSpaceLocation#type} field. */ - public XrSpaceLocation.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceLocation.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SPACE_LOCATION TYPE_SPACE_LOCATION} value to the {@link XrSpaceLocation#type} field. */ - public XrSpaceLocation.Buffer type$Default() { return type(XR10.XR_TYPE_SPACE_LOCATION); } - /** Sets the specified value to the {@link XrSpaceLocation#next} field. */ - public XrSpaceLocation.Buffer next(@NativeType("void *") long value) { XrSpaceLocation.nnext(address(), value); return this; } - /** Prepends the specified {@link XrEyeGazeSampleTimeEXT} value to the {@code next} chain. */ - public XrSpaceLocation.Buffer next(XrEyeGazeSampleTimeEXT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSpaceVelocity} value to the {@code next} chain. */ - public XrSpaceLocation.Buffer next(XrSpaceVelocity value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrSpaceLocation#locationFlags} field. */ - public XrSpaceLocation.Buffer locationFlags(@NativeType("XrSpaceLocationFlags") long value) { XrSpaceLocation.nlocationFlags(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrSpaceLocation#pose} field. */ - public XrSpaceLocation.Buffer pose(XrPosef value) { XrSpaceLocation.npose(address(), value); return this; } - /** Passes the {@link XrSpaceLocation#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpaceLocation.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + + /** @return the value of the {@link XrSpaceLocation#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceLocation.ntype(address()); } + /** @return the value of the {@link XrSpaceLocation#next} field. */ + @NativeType("void *") + public long next() { return XrSpaceLocation.nnext(address()); } + /** @return the value of the {@link XrSpaceLocation#locationFlags} field. */ + @NativeType("XrSpaceLocationFlags") + public long locationFlags() { return XrSpaceLocation.nlocationFlags(address()); } + /** @return a {@link XrPosef} view of the {@link XrSpaceLocation#pose} field. */ + public XrPosef pose() { return XrSpaceLocation.npose(address()); } + + /** Sets the specified value to the {@link XrSpaceLocation#type} field. */ + public XrSpaceLocation.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceLocation.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SPACE_LOCATION TYPE_SPACE_LOCATION} value to the {@link XrSpaceLocation#type} field. */ + public XrSpaceLocation.Buffer type$Default() { return type(XR10.XR_TYPE_SPACE_LOCATION); } + /** Sets the specified value to the {@link XrSpaceLocation#next} field. */ + public XrSpaceLocation.Buffer next(@NativeType("void *") long value) { XrSpaceLocation.nnext(address(), value); return this; } + /** Prepends the specified {@link XrEyeGazeSampleTimeEXT} value to the {@code next} chain. */ + public XrSpaceLocation.Buffer next(XrEyeGazeSampleTimeEXT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSpaceVelocity} value to the {@code next} chain. */ + public XrSpaceLocation.Buffer next(XrSpaceVelocity value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrSpaceLocation#locationFlags} field. */ + public XrSpaceLocation.Buffer locationFlags(@NativeType("XrSpaceLocationFlags") long value) { XrSpaceLocation.nlocationFlags(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrSpaceLocation#pose} field. */ + public XrSpaceLocation.Buffer pose(XrPosef value) { XrSpaceLocation.npose(address(), value); return this; } + /** Passes the {@link XrSpaceLocation#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpaceLocation.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryInfoBaseHeaderFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryInfoBaseHeaderFB.java index 464e3f0cf9..37623e6b49 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryInfoBaseHeaderFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryInfoBaseHeaderFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Base structure for all query info structures. * @@ -23,7 +23,7 @@ *
                                                                *
                                                              • The {@link FBSpatialEntityQuery XR_FB_spatial_entity_query} extension must be enabled prior to using {@link XrSpaceQueryInfoBaseHeaderFB}
                                                              • *
                                                              • {@code type} must be {@link FBSpatialEntityQuery#XR_TYPE_SPACE_QUERY_INFO_FB TYPE_SPACE_QUERY_INFO_FB}
                                                              • - *
                                                              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                              • + *
                                                              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                              • *
                                                              * *
                                                              See Also
                                                              @@ -37,8 +37,8 @@ * XrStructureType type; * void const * next; * } - */ -public class XrSpaceQueryInfoBaseHeaderFB extends Struct implements NativeResource { + */ +public class XrSpaceQueryInfoBaseHeaderFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,21 +48,21 @@ public class XrSpaceQueryInfoBaseHeaderFB extends Struct implements NativeResource { @@ -291,18 +291,18 @@ protected Buffer self() { protected XrSpaceQueryInfoBaseHeaderFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceQueryInfoBaseHeaderFB.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrSpaceQueryInfoBaseHeaderFB.nnext(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrSpaceQueryInfoBaseHeaderFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceQueryInfoBaseHeaderFB.ntype(address(), value); return this; } - /** Sets the specified value to the {@code next} field. */ - public XrSpaceQueryInfoBaseHeaderFB.Buffer next(@NativeType("void const *") long value) { XrSpaceQueryInfoBaseHeaderFB.nnext(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceQueryInfoBaseHeaderFB.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrSpaceQueryInfoBaseHeaderFB.nnext(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrSpaceQueryInfoBaseHeaderFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceQueryInfoBaseHeaderFB.ntype(address(), value); return this; } + /** Sets the specified value to the {@code next} field. */ + public XrSpaceQueryInfoBaseHeaderFB.Buffer next(@NativeType("void const *") long value) { XrSpaceQueryInfoBaseHeaderFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryInfoFB.java index a7b4befa01..0e843ac3e8 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryInfoFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Query for entities and perform an action on any results. * @@ -27,7 +27,7 @@ *
                                                                *
                                                              • The {@link FBSpatialEntityQuery XR_FB_spatial_entity_query} extension must be enabled prior to using {@link XrSpaceQueryInfoFB}
                                                              • *
                                                              • {@code type} must be {@link FBSpatialEntityQuery#XR_TYPE_SPACE_QUERY_INFO_FB TYPE_SPACE_QUERY_INFO_FB}
                                                              • - *
                                                              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                              • + *
                                                              • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                              • *
                                                              • {@code queryAction} must be a valid {@code XrSpaceQueryActionFB} value
                                                              • *
                                                              • If {@code filter} is not {@code NULL}, {@code filter} must be a pointer to a valid {@link XrSpaceFilterInfoBaseHeaderFB}-based structure. See also: {@link XrSpaceComponentFilterInfoFB}, {@link XrSpaceUuidFilterInfoFB}
                                                              • *
                                                              • If {@code excludeFilter} is not {@code NULL}, {@code excludeFilter} must be a pointer to a valid {@link XrSpaceFilterInfoBaseHeaderFB}-based structure. See also: {@link XrSpaceComponentFilterInfoFB}, {@link XrSpaceUuidFilterInfoFB}
                                                              • @@ -49,8 +49,8 @@ * {@link XrSpaceFilterInfoBaseHeaderFB XrSpaceFilterInfoBaseHeaderFB} const * {@link #filter}; * {@link XrSpaceFilterInfoBaseHeaderFB XrSpaceFilterInfoBaseHeaderFB} const * {@link #excludeFilter}; * } - */ -public class XrSpaceQueryInfoFB extends Struct implements NativeResource { + */ +public class XrSpaceQueryInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -60,36 +60,36 @@ public class XrSpaceQueryInfoFB extends Struct implements Na /** The struct member offsets. */ public static final int - TYPE, - NEXT, - QUERYACTION, - MAXRESULTCOUNT, - TIMEOUT, - FILTER, - EXCLUDEFILTER; + TYPE, + NEXT, + QUERYACTION, + MAXRESULTCOUNT, + TIMEOUT, + FILTER, + EXCLUDEFILTER; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), - __member(8), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), + __member(8), + __member(POINTER_SIZE), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - QUERYACTION = layout.offsetof(2); - MAXRESULTCOUNT = layout.offsetof(3); - TIMEOUT = layout.offsetof(4); - FILTER = layout.offsetof(5); - EXCLUDEFILTER = layout.offsetof(6); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + QUERYACTION = layout.offsetof(2); + MAXRESULTCOUNT = layout.offsetof(3); + TIMEOUT = layout.offsetof(4); + FILTER = layout.offsetof(5); + EXCLUDEFILTER = layout.offsetof(6); + } protected XrSpaceQueryInfoFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -112,65 +112,65 @@ public XrSpaceQueryInfoFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** the type of query to perform. */ - @NativeType("XrSpaceQueryActionFB") - public int queryAction() { return nqueryAction(address()); } - /** the maximum number of entities to be found. */ - @NativeType("uint32_t") - public int maxResultCount() { return nmaxResultCount(address()); } - /** the number of nanoseconds before the operation should time out. A value of {@link XR10#XR_INFINITE_DURATION INFINITE_DURATION} indicates no timeout. */ - @NativeType("XrDuration") - public long timeout() { return ntimeout(address()); } - /** NULL or a pointer to a valid structure based on {@link XrSpaceFilterInfoBaseHeaderFB}. */ - @Nullable - @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") - public XrSpaceFilterInfoBaseHeaderFB filter() { return nfilter(address()); } - /** NULL or a pointer to a valid structure based on {@link XrSpaceFilterInfoBaseHeaderFB}. */ - @Nullable - @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") - public XrSpaceFilterInfoBaseHeaderFB excludeFilter() { return nexcludeFilter(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSpaceQueryInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_QUERY_INFO_FB TYPE_SPACE_QUERY_INFO_FB} value to the {@link #type} field. */ - public XrSpaceQueryInfoFB type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_QUERY_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSpaceQueryInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #queryAction} field. */ - public XrSpaceQueryInfoFB queryAction(@NativeType("XrSpaceQueryActionFB") int value) { nqueryAction(address(), value); return this; } - /** Sets the specified value to the {@link #maxResultCount} field. */ - public XrSpaceQueryInfoFB maxResultCount(@NativeType("uint32_t") int value) { nmaxResultCount(address(), value); return this; } - /** Sets the specified value to the {@link #timeout} field. */ - public XrSpaceQueryInfoFB timeout(@NativeType("XrDuration") long value) { ntimeout(address(), value); return this; } - /** Sets the address of the specified {@link XrSpaceFilterInfoBaseHeaderFB} to the {@link #filter} field. */ - public XrSpaceQueryInfoFB filter(@Nullable @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") XrSpaceFilterInfoBaseHeaderFB value) { nfilter(address(), value); return this; } - /** Sets the address of the specified {@link XrSpaceFilterInfoBaseHeaderFB} to the {@link #excludeFilter} field. */ - public XrSpaceQueryInfoFB excludeFilter(@Nullable @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") XrSpaceFilterInfoBaseHeaderFB value) { nexcludeFilter(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the type of query to perform. */ + @NativeType("XrSpaceQueryActionFB") + public int queryAction() { return nqueryAction(address()); } + /** the maximum number of entities to be found. */ + @NativeType("uint32_t") + public int maxResultCount() { return nmaxResultCount(address()); } + /** the number of nanoseconds before the operation should time out. A value of {@link XR10#XR_INFINITE_DURATION INFINITE_DURATION} indicates no timeout. */ + @NativeType("XrDuration") + public long timeout() { return ntimeout(address()); } + /** NULL or a pointer to a valid structure based on {@link XrSpaceFilterInfoBaseHeaderFB}. */ + @Nullable + @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") + public XrSpaceFilterInfoBaseHeaderFB filter() { return nfilter(address()); } + /** NULL or a pointer to a valid structure based on {@link XrSpaceFilterInfoBaseHeaderFB}. */ + @Nullable + @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") + public XrSpaceFilterInfoBaseHeaderFB excludeFilter() { return nexcludeFilter(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpaceQueryInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_QUERY_INFO_FB TYPE_SPACE_QUERY_INFO_FB} value to the {@link #type} field. */ + public XrSpaceQueryInfoFB type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_QUERY_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpaceQueryInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #queryAction} field. */ + public XrSpaceQueryInfoFB queryAction(@NativeType("XrSpaceQueryActionFB") int value) { nqueryAction(address(), value); return this; } + /** Sets the specified value to the {@link #maxResultCount} field. */ + public XrSpaceQueryInfoFB maxResultCount(@NativeType("uint32_t") int value) { nmaxResultCount(address(), value); return this; } + /** Sets the specified value to the {@link #timeout} field. */ + public XrSpaceQueryInfoFB timeout(@NativeType("XrDuration") long value) { ntimeout(address(), value); return this; } + /** Sets the address of the specified {@link XrSpaceFilterInfoBaseHeaderFB} to the {@link #filter} field. */ + public XrSpaceQueryInfoFB filter(@Nullable @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") XrSpaceFilterInfoBaseHeaderFB value) { nfilter(address(), value); return this; } + /** Sets the address of the specified {@link XrSpaceFilterInfoBaseHeaderFB} to the {@link #excludeFilter} field. */ + public XrSpaceQueryInfoFB excludeFilter(@Nullable @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") XrSpaceFilterInfoBaseHeaderFB value) { nexcludeFilter(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpaceQueryInfoFB set( - int type, - long next, - int queryAction, - int maxResultCount, - long timeout, - @Nullable XrSpaceFilterInfoBaseHeaderFB filter, + int type, + long next, + int queryAction, + int maxResultCount, + long timeout, + @Nullable XrSpaceFilterInfoBaseHeaderFB filter, @Nullable XrSpaceFilterInfoBaseHeaderFB excludeFilter - ) { - type(type); - next(next); - queryAction(queryAction); - maxResultCount(maxResultCount); - timeout(timeout); - filter(filter); - excludeFilter(excludeFilter); + ) { + type(type); + next(next); + queryAction(queryAction); + maxResultCount(maxResultCount); + timeout(timeout); + filter(filter); + excludeFilter(excludeFilter); return this; } @@ -309,38 +309,38 @@ public static XrSpaceQueryInfoFB.Buffer calloc(int capacity, MemoryStack stack) } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceQueryInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpaceQueryInfoFB.NEXT); } - /** Unsafe version of {@link #queryAction}. */ - public static int nqueryAction(long struct) { return UNSAFE.getInt(null, struct + XrSpaceQueryInfoFB.QUERYACTION); } - /** Unsafe version of {@link #maxResultCount}. */ - public static int nmaxResultCount(long struct) { return UNSAFE.getInt(null, struct + XrSpaceQueryInfoFB.MAXRESULTCOUNT); } - /** Unsafe version of {@link #timeout}. */ - public static long ntimeout(long struct) { return UNSAFE.getLong(null, struct + XrSpaceQueryInfoFB.TIMEOUT); } - /** Unsafe version of {@link #filter}. */ - @Nullable public static XrSpaceFilterInfoBaseHeaderFB nfilter(long struct) { return XrSpaceFilterInfoBaseHeaderFB.createSafe(memGetAddress(struct + XrSpaceQueryInfoFB.FILTER)); } - /** Unsafe version of {@link #excludeFilter}. */ - @Nullable public static XrSpaceFilterInfoBaseHeaderFB nexcludeFilter(long struct) { return XrSpaceFilterInfoBaseHeaderFB.createSafe(memGetAddress(struct + XrSpaceQueryInfoFB.EXCLUDEFILTER)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceQueryInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceQueryInfoFB.NEXT, value); } - /** Unsafe version of {@link #queryAction(int) queryAction}. */ - public static void nqueryAction(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceQueryInfoFB.QUERYACTION, value); } - /** Unsafe version of {@link #maxResultCount(int) maxResultCount}. */ - public static void nmaxResultCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceQueryInfoFB.MAXRESULTCOUNT, value); } - /** Unsafe version of {@link #timeout(long) timeout}. */ - public static void ntimeout(long struct, long value) { UNSAFE.putLong(null, struct + XrSpaceQueryInfoFB.TIMEOUT, value); } - /** Unsafe version of {@link #filter(XrSpaceFilterInfoBaseHeaderFB) filter}. */ - public static void nfilter(long struct, @Nullable XrSpaceFilterInfoBaseHeaderFB value) { memPutAddress(struct + XrSpaceQueryInfoFB.FILTER, memAddressSafe(value)); } - /** Unsafe version of {@link #excludeFilter(XrSpaceFilterInfoBaseHeaderFB) excludeFilter}. */ - public static void nexcludeFilter(long struct, @Nullable XrSpaceFilterInfoBaseHeaderFB value) { memPutAddress(struct + XrSpaceQueryInfoFB.EXCLUDEFILTER, memAddressSafe(value)); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceQueryInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpaceQueryInfoFB.NEXT); } + /** Unsafe version of {@link #queryAction}. */ + public static int nqueryAction(long struct) { return UNSAFE.getInt(null, struct + XrSpaceQueryInfoFB.QUERYACTION); } + /** Unsafe version of {@link #maxResultCount}. */ + public static int nmaxResultCount(long struct) { return UNSAFE.getInt(null, struct + XrSpaceQueryInfoFB.MAXRESULTCOUNT); } + /** Unsafe version of {@link #timeout}. */ + public static long ntimeout(long struct) { return UNSAFE.getLong(null, struct + XrSpaceQueryInfoFB.TIMEOUT); } + /** Unsafe version of {@link #filter}. */ + @Nullable public static XrSpaceFilterInfoBaseHeaderFB nfilter(long struct) { return XrSpaceFilterInfoBaseHeaderFB.createSafe(memGetAddress(struct + XrSpaceQueryInfoFB.FILTER)); } + /** Unsafe version of {@link #excludeFilter}. */ + @Nullable public static XrSpaceFilterInfoBaseHeaderFB nexcludeFilter(long struct) { return XrSpaceFilterInfoBaseHeaderFB.createSafe(memGetAddress(struct + XrSpaceQueryInfoFB.EXCLUDEFILTER)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceQueryInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceQueryInfoFB.NEXT, value); } + /** Unsafe version of {@link #queryAction(int) queryAction}. */ + public static void nqueryAction(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceQueryInfoFB.QUERYACTION, value); } + /** Unsafe version of {@link #maxResultCount(int) maxResultCount}. */ + public static void nmaxResultCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceQueryInfoFB.MAXRESULTCOUNT, value); } + /** Unsafe version of {@link #timeout(long) timeout}. */ + public static void ntimeout(long struct, long value) { UNSAFE.putLong(null, struct + XrSpaceQueryInfoFB.TIMEOUT, value); } + /** Unsafe version of {@link #filter(XrSpaceFilterInfoBaseHeaderFB) filter}. */ + public static void nfilter(long struct, @Nullable XrSpaceFilterInfoBaseHeaderFB value) { memPutAddress(struct + XrSpaceQueryInfoFB.FILTER, memAddressSafe(value)); } + /** Unsafe version of {@link #excludeFilter(XrSpaceFilterInfoBaseHeaderFB) excludeFilter}. */ + public static void nexcludeFilter(long struct, @Nullable XrSpaceFilterInfoBaseHeaderFB value) { memPutAddress(struct + XrSpaceQueryInfoFB.EXCLUDEFILTER, memAddressSafe(value)); } + + // ----------------------------------- /** An array of {@link XrSpaceQueryInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -377,47 +377,47 @@ protected Buffer self() { protected XrSpaceQueryInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceQueryInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceQueryInfoFB.ntype(address()); } - /** @return the value of the {@link XrSpaceQueryInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSpaceQueryInfoFB.nnext(address()); } - /** @return the value of the {@link XrSpaceQueryInfoFB#queryAction} field. */ - @NativeType("XrSpaceQueryActionFB") - public int queryAction() { return XrSpaceQueryInfoFB.nqueryAction(address()); } - /** @return the value of the {@link XrSpaceQueryInfoFB#maxResultCount} field. */ - @NativeType("uint32_t") - public int maxResultCount() { return XrSpaceQueryInfoFB.nmaxResultCount(address()); } - /** @return the value of the {@link XrSpaceQueryInfoFB#timeout} field. */ - @NativeType("XrDuration") - public long timeout() { return XrSpaceQueryInfoFB.ntimeout(address()); } - /** @return a {@link XrSpaceFilterInfoBaseHeaderFB} view of the struct pointed to by the {@link XrSpaceQueryInfoFB#filter} field. */ - @Nullable - @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") - public XrSpaceFilterInfoBaseHeaderFB filter() { return XrSpaceQueryInfoFB.nfilter(address()); } - /** @return a {@link XrSpaceFilterInfoBaseHeaderFB} view of the struct pointed to by the {@link XrSpaceQueryInfoFB#excludeFilter} field. */ - @Nullable - @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") - public XrSpaceFilterInfoBaseHeaderFB excludeFilter() { return XrSpaceQueryInfoFB.nexcludeFilter(address()); } - - /** Sets the specified value to the {@link XrSpaceQueryInfoFB#type} field. */ - public XrSpaceQueryInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceQueryInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_QUERY_INFO_FB TYPE_SPACE_QUERY_INFO_FB} value to the {@link XrSpaceQueryInfoFB#type} field. */ - public XrSpaceQueryInfoFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_QUERY_INFO_FB); } - /** Sets the specified value to the {@link XrSpaceQueryInfoFB#next} field. */ - public XrSpaceQueryInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceQueryInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceQueryInfoFB#queryAction} field. */ - public XrSpaceQueryInfoFB.Buffer queryAction(@NativeType("XrSpaceQueryActionFB") int value) { XrSpaceQueryInfoFB.nqueryAction(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceQueryInfoFB#maxResultCount} field. */ - public XrSpaceQueryInfoFB.Buffer maxResultCount(@NativeType("uint32_t") int value) { XrSpaceQueryInfoFB.nmaxResultCount(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceQueryInfoFB#timeout} field. */ - public XrSpaceQueryInfoFB.Buffer timeout(@NativeType("XrDuration") long value) { XrSpaceQueryInfoFB.ntimeout(address(), value); return this; } - /** Sets the address of the specified {@link XrSpaceFilterInfoBaseHeaderFB} to the {@link XrSpaceQueryInfoFB#filter} field. */ - public XrSpaceQueryInfoFB.Buffer filter(@Nullable @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") XrSpaceFilterInfoBaseHeaderFB value) { XrSpaceQueryInfoFB.nfilter(address(), value); return this; } - /** Sets the address of the specified {@link XrSpaceFilterInfoBaseHeaderFB} to the {@link XrSpaceQueryInfoFB#excludeFilter} field. */ - public XrSpaceQueryInfoFB.Buffer excludeFilter(@Nullable @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") XrSpaceFilterInfoBaseHeaderFB value) { XrSpaceQueryInfoFB.nexcludeFilter(address(), value); return this; } + + /** @return the value of the {@link XrSpaceQueryInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceQueryInfoFB.ntype(address()); } + /** @return the value of the {@link XrSpaceQueryInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSpaceQueryInfoFB.nnext(address()); } + /** @return the value of the {@link XrSpaceQueryInfoFB#queryAction} field. */ + @NativeType("XrSpaceQueryActionFB") + public int queryAction() { return XrSpaceQueryInfoFB.nqueryAction(address()); } + /** @return the value of the {@link XrSpaceQueryInfoFB#maxResultCount} field. */ + @NativeType("uint32_t") + public int maxResultCount() { return XrSpaceQueryInfoFB.nmaxResultCount(address()); } + /** @return the value of the {@link XrSpaceQueryInfoFB#timeout} field. */ + @NativeType("XrDuration") + public long timeout() { return XrSpaceQueryInfoFB.ntimeout(address()); } + /** @return a {@link XrSpaceFilterInfoBaseHeaderFB} view of the struct pointed to by the {@link XrSpaceQueryInfoFB#filter} field. */ + @Nullable + @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") + public XrSpaceFilterInfoBaseHeaderFB filter() { return XrSpaceQueryInfoFB.nfilter(address()); } + /** @return a {@link XrSpaceFilterInfoBaseHeaderFB} view of the struct pointed to by the {@link XrSpaceQueryInfoFB#excludeFilter} field. */ + @Nullable + @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") + public XrSpaceFilterInfoBaseHeaderFB excludeFilter() { return XrSpaceQueryInfoFB.nexcludeFilter(address()); } + + /** Sets the specified value to the {@link XrSpaceQueryInfoFB#type} field. */ + public XrSpaceQueryInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceQueryInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_QUERY_INFO_FB TYPE_SPACE_QUERY_INFO_FB} value to the {@link XrSpaceQueryInfoFB#type} field. */ + public XrSpaceQueryInfoFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_QUERY_INFO_FB); } + /** Sets the specified value to the {@link XrSpaceQueryInfoFB#next} field. */ + public XrSpaceQueryInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceQueryInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceQueryInfoFB#queryAction} field. */ + public XrSpaceQueryInfoFB.Buffer queryAction(@NativeType("XrSpaceQueryActionFB") int value) { XrSpaceQueryInfoFB.nqueryAction(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceQueryInfoFB#maxResultCount} field. */ + public XrSpaceQueryInfoFB.Buffer maxResultCount(@NativeType("uint32_t") int value) { XrSpaceQueryInfoFB.nmaxResultCount(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceQueryInfoFB#timeout} field. */ + public XrSpaceQueryInfoFB.Buffer timeout(@NativeType("XrDuration") long value) { XrSpaceQueryInfoFB.ntimeout(address(), value); return this; } + /** Sets the address of the specified {@link XrSpaceFilterInfoBaseHeaderFB} to the {@link XrSpaceQueryInfoFB#filter} field. */ + public XrSpaceQueryInfoFB.Buffer filter(@Nullable @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") XrSpaceFilterInfoBaseHeaderFB value) { XrSpaceQueryInfoFB.nfilter(address(), value); return this; } + /** Sets the address of the specified {@link XrSpaceFilterInfoBaseHeaderFB} to the {@link XrSpaceQueryInfoFB#excludeFilter} field. */ + public XrSpaceQueryInfoFB.Buffer excludeFilter(@Nullable @NativeType("XrSpaceFilterInfoBaseHeaderFB const *") XrSpaceFilterInfoBaseHeaderFB value) { XrSpaceQueryInfoFB.nexcludeFilter(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryResultFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryResultFB.java index 1bdca46959..7d938922e5 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryResultFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryResultFB.java @@ -4,15 +4,15 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - + import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; - + +import static org.lwjgl.system.MemoryUtil.*; + /** * Query result. * @@ -37,8 +37,8 @@ * XrSpace {@link #space}; * {@link XrUuidEXT XrUuidEXT} {@link #uuid}; * } - */ -public class XrSpaceQueryResultFB extends Struct { + */ +public class XrSpaceQueryResultFB extends Struct { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,21 +48,21 @@ public class XrSpaceQueryResultFB extends Struct { /** The struct member offsets. */ public static final int - SPACE, - UUID; + SPACE, + UUID; static { - Layout layout = __struct( - __member(POINTER_SIZE), + Layout layout = __struct( + __member(POINTER_SIZE), __member(XrUuidEXT.SIZEOF, XrUuidEXT.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - SPACE = layout.offsetof(0); - UUID = layout.offsetof(1); - } + SPACE = layout.offsetof(0); + UUID = layout.offsetof(1); + } protected XrSpaceQueryResultFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -85,12 +85,12 @@ public XrSpaceQueryResultFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrSpace} handle to the spatial entity found by the query. */ - @NativeType("XrSpace") - public long space() { return nspace(address()); } - /** the UUID that identifies the entity. */ - public XrUuidEXT uuid() { return nuuid(address()); } + + /** the {@code XrSpace} handle to the spatial entity found by the query. */ + @NativeType("XrSpace") + public long space() { return nspace(address()); } + /** the UUID that identifies the entity. */ + public XrUuidEXT uuid() { return nuuid(address()); } // ----------------------------------- @@ -122,13 +122,13 @@ public static XrSpaceQueryResultFB.Buffer createSafe(long address, int capacity) } // ----------------------------------- + + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrSpaceQueryResultFB.SPACE); } + /** Unsafe version of {@link #uuid}. */ + public static XrUuidEXT nuuid(long struct) { return XrUuidEXT.create(struct + XrSpaceQueryResultFB.UUID); } - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrSpaceQueryResultFB.SPACE); } - /** Unsafe version of {@link #uuid}. */ - public static XrUuidEXT nuuid(long struct) { return XrUuidEXT.create(struct + XrSpaceQueryResultFB.UUID); } - - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSpaceQueryResultFB} structs. */ public static class Buffer extends StructBuffer { @@ -165,12 +165,12 @@ protected Buffer self() { protected XrSpaceQueryResultFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceQueryResultFB#space} field. */ - @NativeType("XrSpace") - public long space() { return XrSpaceQueryResultFB.nspace(address()); } - /** @return a {@link XrUuidEXT} view of the {@link XrSpaceQueryResultFB#uuid} field. */ - public XrUuidEXT uuid() { return XrSpaceQueryResultFB.nuuid(address()); } + + /** @return the value of the {@link XrSpaceQueryResultFB#space} field. */ + @NativeType("XrSpace") + public long space() { return XrSpaceQueryResultFB.nspace(address()); } + /** @return a {@link XrUuidEXT} view of the {@link XrSpaceQueryResultFB#uuid} field. */ + public XrUuidEXT uuid() { return XrSpaceQueryResultFB.nuuid(address()); } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryResultsFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryResultsFB.java index 3b6b0f8c36..e61122a0b0 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryResultsFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceQueryResultsFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Used to retrieve query results. * @@ -27,7 +27,7 @@ *
                                                                  *
                                                                • The {@link FBSpatialEntityQuery XR_FB_spatial_entity_query} extension must be enabled prior to using {@link XrSpaceQueryResultsFB}
                                                                • *
                                                                • {@code type} must be {@link FBSpatialEntityQuery#XR_TYPE_SPACE_QUERY_RESULTS_FB TYPE_SPACE_QUERY_RESULTS_FB}
                                                                • - *
                                                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                • + *
                                                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                • *
                                                                • If {@code resultCapacityInput} is not 0, {@code results} must be a pointer to an array of {@code resultCapacityInput} {@link XrSpaceQueryResultFB} structures
                                                                • *
                                                                * @@ -45,8 +45,8 @@ * uint32_t {@link #resultCountOutput}; * {@link XrSpaceQueryResultFB XrSpaceQueryResultFB} * {@link #results}; * } - */ -public class XrSpaceQueryResultsFB extends Struct implements NativeResource { + */ +public class XrSpaceQueryResultsFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,30 +56,30 @@ public class XrSpaceQueryResultsFB extends Struct impleme /** The struct member offsets. */ public static final int - TYPE, - NEXT, - RESULTCAPACITYINPUT, - RESULTCOUNTOUTPUT, - RESULTS; + TYPE, + NEXT, + RESULTCAPACITYINPUT, + RESULTCOUNTOUTPUT, + RESULTS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - RESULTCAPACITYINPUT = layout.offsetof(2); - RESULTCOUNTOUTPUT = layout.offsetof(3); - RESULTS = layout.offsetof(4); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + RESULTCAPACITYINPUT = layout.offsetof(2); + RESULTCOUNTOUTPUT = layout.offsetof(3); + RESULTS = layout.offsetof(4); + } protected XrSpaceQueryResultsFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -102,50 +102,50 @@ public XrSpaceQueryResultsFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** the capacity of the {@code results} array, or 0 to indicate a request to retrieve the required capacity. */ - @NativeType("uint32_t") - public int resultCapacityInput() { return nresultCapacityInput(address()); } - /** an output parameter containing the count of results retrieved, or returns the required capacity in the case that {@code resultCapacityInput} is insufficient. */ - @NativeType("uint32_t") - public int resultCountOutput() { return nresultCountOutput(address()); } - /** a pointer to an array of results, but can be {@code NULL} if {@code resultCapacityInput} is 0. */ - @Nullable - @NativeType("XrSpaceQueryResultFB *") - public XrSpaceQueryResultFB.Buffer results() { return nresults(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSpaceQueryResultsFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_QUERY_RESULTS_FB TYPE_SPACE_QUERY_RESULTS_FB} value to the {@link #type} field. */ - public XrSpaceQueryResultsFB type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_QUERY_RESULTS_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSpaceQueryResultsFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #resultCapacityInput} field. */ - public XrSpaceQueryResultsFB resultCapacityInput(@NativeType("uint32_t") int value) { nresultCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #resultCountOutput} field. */ - public XrSpaceQueryResultsFB resultCountOutput(@NativeType("uint32_t") int value) { nresultCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrSpaceQueryResultFB.Buffer} to the {@link #results} field. */ - public XrSpaceQueryResultsFB results(@Nullable @NativeType("XrSpaceQueryResultFB *") XrSpaceQueryResultFB.Buffer value) { nresults(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the capacity of the {@code results} array, or 0 to indicate a request to retrieve the required capacity. */ + @NativeType("uint32_t") + public int resultCapacityInput() { return nresultCapacityInput(address()); } + /** an output parameter containing the count of results retrieved, or returns the required capacity in the case that {@code resultCapacityInput} is insufficient. */ + @NativeType("uint32_t") + public int resultCountOutput() { return nresultCountOutput(address()); } + /** a pointer to an array of results, but can be {@code NULL} if {@code resultCapacityInput} is 0. */ + @Nullable + @NativeType("XrSpaceQueryResultFB *") + public XrSpaceQueryResultFB.Buffer results() { return nresults(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpaceQueryResultsFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_QUERY_RESULTS_FB TYPE_SPACE_QUERY_RESULTS_FB} value to the {@link #type} field. */ + public XrSpaceQueryResultsFB type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_QUERY_RESULTS_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpaceQueryResultsFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #resultCapacityInput} field. */ + public XrSpaceQueryResultsFB resultCapacityInput(@NativeType("uint32_t") int value) { nresultCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #resultCountOutput} field. */ + public XrSpaceQueryResultsFB resultCountOutput(@NativeType("uint32_t") int value) { nresultCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrSpaceQueryResultFB.Buffer} to the {@link #results} field. */ + public XrSpaceQueryResultsFB results(@Nullable @NativeType("XrSpaceQueryResultFB *") XrSpaceQueryResultFB.Buffer value) { nresults(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpaceQueryResultsFB set( - int type, - long next, - int resultCapacityInput, - int resultCountOutput, + int type, + long next, + int resultCapacityInput, + int resultCountOutput, @Nullable XrSpaceQueryResultFB.Buffer results - ) { - type(type); - next(next); - resultCapacityInput(resultCapacityInput); - resultCountOutput(resultCountOutput); - results(results); + ) { + type(type); + next(next); + resultCapacityInput(resultCapacityInput); + resultCountOutput(resultCountOutput); + results(results); return this; } @@ -274,30 +274,30 @@ public static XrSpaceQueryResultsFB.Buffer calloc(int capacity, MemoryStack stac } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceQueryResultsFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpaceQueryResultsFB.NEXT); } - /** Unsafe version of {@link #resultCapacityInput}. */ - public static int nresultCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrSpaceQueryResultsFB.RESULTCAPACITYINPUT); } - /** Unsafe version of {@link #resultCountOutput}. */ - public static int nresultCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrSpaceQueryResultsFB.RESULTCOUNTOUTPUT); } - /** Unsafe version of {@link #results}. */ - @Nullable public static XrSpaceQueryResultFB.Buffer nresults(long struct) { return XrSpaceQueryResultFB.createSafe(memGetAddress(struct + XrSpaceQueryResultsFB.RESULTS), nresultCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceQueryResultsFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceQueryResultsFB.NEXT, value); } - /** Sets the specified value to the {@code resultCapacityInput} field of the specified {@code struct}. */ - public static void nresultCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceQueryResultsFB.RESULTCAPACITYINPUT, value); } - /** Unsafe version of {@link #resultCountOutput(int) resultCountOutput}. */ - public static void nresultCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceQueryResultsFB.RESULTCOUNTOUTPUT, value); } - /** Unsafe version of {@link #results(XrSpaceQueryResultFB.Buffer) results}. */ - public static void nresults(long struct, @Nullable XrSpaceQueryResultFB.Buffer value) { memPutAddress(struct + XrSpaceQueryResultsFB.RESULTS, memAddressSafe(value)); if (value != null) { nresultCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceQueryResultsFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpaceQueryResultsFB.NEXT); } + /** Unsafe version of {@link #resultCapacityInput}. */ + public static int nresultCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrSpaceQueryResultsFB.RESULTCAPACITYINPUT); } + /** Unsafe version of {@link #resultCountOutput}. */ + public static int nresultCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrSpaceQueryResultsFB.RESULTCOUNTOUTPUT); } + /** Unsafe version of {@link #results}. */ + @Nullable public static XrSpaceQueryResultFB.Buffer nresults(long struct) { return XrSpaceQueryResultFB.createSafe(memGetAddress(struct + XrSpaceQueryResultsFB.RESULTS), nresultCapacityInput(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceQueryResultsFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceQueryResultsFB.NEXT, value); } + /** Sets the specified value to the {@code resultCapacityInput} field of the specified {@code struct}. */ + public static void nresultCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceQueryResultsFB.RESULTCAPACITYINPUT, value); } + /** Unsafe version of {@link #resultCountOutput(int) resultCountOutput}. */ + public static void nresultCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceQueryResultsFB.RESULTCOUNTOUTPUT, value); } + /** Unsafe version of {@link #results(XrSpaceQueryResultFB.Buffer) results}. */ + public static void nresults(long struct, @Nullable XrSpaceQueryResultFB.Buffer value) { memPutAddress(struct + XrSpaceQueryResultsFB.RESULTS, memAddressSafe(value)); if (value != null) { nresultCapacityInput(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrSpaceQueryResultsFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -334,36 +334,36 @@ protected Buffer self() { protected XrSpaceQueryResultsFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceQueryResultsFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceQueryResultsFB.ntype(address()); } - /** @return the value of the {@link XrSpaceQueryResultsFB#next} field. */ - @NativeType("void *") - public long next() { return XrSpaceQueryResultsFB.nnext(address()); } - /** @return the value of the {@link XrSpaceQueryResultsFB#resultCapacityInput} field. */ - @NativeType("uint32_t") - public int resultCapacityInput() { return XrSpaceQueryResultsFB.nresultCapacityInput(address()); } - /** @return the value of the {@link XrSpaceQueryResultsFB#resultCountOutput} field. */ - @NativeType("uint32_t") - public int resultCountOutput() { return XrSpaceQueryResultsFB.nresultCountOutput(address()); } - /** @return a {@link XrSpaceQueryResultFB.Buffer} view of the struct array pointed to by the {@link XrSpaceQueryResultsFB#results} field. */ - @Nullable - @NativeType("XrSpaceQueryResultFB *") - public XrSpaceQueryResultFB.Buffer results() { return XrSpaceQueryResultsFB.nresults(address()); } - - /** Sets the specified value to the {@link XrSpaceQueryResultsFB#type} field. */ - public XrSpaceQueryResultsFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceQueryResultsFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_QUERY_RESULTS_FB TYPE_SPACE_QUERY_RESULTS_FB} value to the {@link XrSpaceQueryResultsFB#type} field. */ - public XrSpaceQueryResultsFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_QUERY_RESULTS_FB); } - /** Sets the specified value to the {@link XrSpaceQueryResultsFB#next} field. */ - public XrSpaceQueryResultsFB.Buffer next(@NativeType("void *") long value) { XrSpaceQueryResultsFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceQueryResultsFB#resultCapacityInput} field. */ - public XrSpaceQueryResultsFB.Buffer resultCapacityInput(@NativeType("uint32_t") int value) { XrSpaceQueryResultsFB.nresultCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceQueryResultsFB#resultCountOutput} field. */ - public XrSpaceQueryResultsFB.Buffer resultCountOutput(@NativeType("uint32_t") int value) { XrSpaceQueryResultsFB.nresultCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrSpaceQueryResultFB.Buffer} to the {@link XrSpaceQueryResultsFB#results} field. */ - public XrSpaceQueryResultsFB.Buffer results(@Nullable @NativeType("XrSpaceQueryResultFB *") XrSpaceQueryResultFB.Buffer value) { XrSpaceQueryResultsFB.nresults(address(), value); return this; } + + /** @return the value of the {@link XrSpaceQueryResultsFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceQueryResultsFB.ntype(address()); } + /** @return the value of the {@link XrSpaceQueryResultsFB#next} field. */ + @NativeType("void *") + public long next() { return XrSpaceQueryResultsFB.nnext(address()); } + /** @return the value of the {@link XrSpaceQueryResultsFB#resultCapacityInput} field. */ + @NativeType("uint32_t") + public int resultCapacityInput() { return XrSpaceQueryResultsFB.nresultCapacityInput(address()); } + /** @return the value of the {@link XrSpaceQueryResultsFB#resultCountOutput} field. */ + @NativeType("uint32_t") + public int resultCountOutput() { return XrSpaceQueryResultsFB.nresultCountOutput(address()); } + /** @return a {@link XrSpaceQueryResultFB.Buffer} view of the struct array pointed to by the {@link XrSpaceQueryResultsFB#results} field. */ + @Nullable + @NativeType("XrSpaceQueryResultFB *") + public XrSpaceQueryResultFB.Buffer results() { return XrSpaceQueryResultsFB.nresults(address()); } + + /** Sets the specified value to the {@link XrSpaceQueryResultsFB#type} field. */ + public XrSpaceQueryResultsFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceQueryResultsFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_QUERY_RESULTS_FB TYPE_SPACE_QUERY_RESULTS_FB} value to the {@link XrSpaceQueryResultsFB#type} field. */ + public XrSpaceQueryResultsFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_QUERY_RESULTS_FB); } + /** Sets the specified value to the {@link XrSpaceQueryResultsFB#next} field. */ + public XrSpaceQueryResultsFB.Buffer next(@NativeType("void *") long value) { XrSpaceQueryResultsFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceQueryResultsFB#resultCapacityInput} field. */ + public XrSpaceQueryResultsFB.Buffer resultCapacityInput(@NativeType("uint32_t") int value) { XrSpaceQueryResultsFB.nresultCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceQueryResultsFB#resultCountOutput} field. */ + public XrSpaceQueryResultsFB.Buffer resultCountOutput(@NativeType("uint32_t") int value) { XrSpaceQueryResultsFB.nresultCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrSpaceQueryResultFB.Buffer} to the {@link XrSpaceQueryResultsFB#results} field. */ + public XrSpaceQueryResultsFB.Buffer results(@Nullable @NativeType("XrSpaceQueryResultFB *") XrSpaceQueryResultFB.Buffer value) { XrSpaceQueryResultsFB.nresults(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceSaveInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceSaveInfoFB.java index 9d19124273..185ebdea28 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceSaveInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceSaveInfoFB.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Parameters for a save operation. * @@ -28,7 +28,7 @@ *
                                                                  *
                                                                • The {@link FBSpatialEntityStorage XR_FB_spatial_entity_storage} extension must be enabled prior to using {@link XrSpaceSaveInfoFB}
                                                                • *
                                                                • {@code type} must be {@link FBSpatialEntityStorage#XR_TYPE_SPACE_SAVE_INFO_FB TYPE_SPACE_SAVE_INFO_FB}
                                                                • - *
                                                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                • + *
                                                                • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                • *
                                                                • {@code space} must be a valid {@code XrSpace} handle
                                                                • *
                                                                • {@code location} must be a valid {@code XrSpaceStorageLocationFB} value
                                                                • *
                                                                • {@code persistenceMode} must be a valid {@code XrSpacePersistenceModeFB} value
                                                                • @@ -48,8 +48,8 @@ * XrSpaceStorageLocationFB {@link #location}; * XrSpacePersistenceModeFB {@link #persistenceMode}; * } - */ -public class XrSpaceSaveInfoFB extends Struct implements NativeResource { + */ +public class XrSpaceSaveInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -59,30 +59,30 @@ public class XrSpaceSaveInfoFB extends Struct implements Nati /** The struct member offsets. */ public static final int - TYPE, - NEXT, - SPACE, - LOCATION, - PERSISTENCEMODE; + TYPE, + NEXT, + SPACE, + LOCATION, + PERSISTENCEMODE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(POINTER_SIZE), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(POINTER_SIZE), + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - SPACE = layout.offsetof(2); - LOCATION = layout.offsetof(3); - PERSISTENCEMODE = layout.offsetof(4); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + SPACE = layout.offsetof(2); + LOCATION = layout.offsetof(3); + PERSISTENCEMODE = layout.offsetof(4); + } protected XrSpaceSaveInfoFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -105,49 +105,49 @@ public XrSpaceSaveInfoFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** the {@code XrSpace} handle to the reference space that defines the {@code poseInSpace} of the entity to be saved. */ - @NativeType("XrSpace") - public long space() { return nspace(address()); } - /** the storage location. */ - @NativeType("XrSpaceStorageLocationFB") - public int location() { return nlocation(address()); } - /** the persistence mode. */ - @NativeType("XrSpacePersistenceModeFB") - public int persistenceMode() { return npersistenceMode(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSpaceSaveInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityStorage#XR_TYPE_SPACE_SAVE_INFO_FB TYPE_SPACE_SAVE_INFO_FB} value to the {@link #type} field. */ - public XrSpaceSaveInfoFB type$Default() { return type(FBSpatialEntityStorage.XR_TYPE_SPACE_SAVE_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSpaceSaveInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #space} field. */ - public XrSpaceSaveInfoFB space(XrSpace value) { nspace(address(), value); return this; } - /** Sets the specified value to the {@link #location} field. */ - public XrSpaceSaveInfoFB location(@NativeType("XrSpaceStorageLocationFB") int value) { nlocation(address(), value); return this; } - /** Sets the specified value to the {@link #persistenceMode} field. */ - public XrSpaceSaveInfoFB persistenceMode(@NativeType("XrSpacePersistenceModeFB") int value) { npersistenceMode(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the {@code XrSpace} handle to the reference space that defines the {@code poseInSpace} of the entity to be saved. */ + @NativeType("XrSpace") + public long space() { return nspace(address()); } + /** the storage location. */ + @NativeType("XrSpaceStorageLocationFB") + public int location() { return nlocation(address()); } + /** the persistence mode. */ + @NativeType("XrSpacePersistenceModeFB") + public int persistenceMode() { return npersistenceMode(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpaceSaveInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityStorage#XR_TYPE_SPACE_SAVE_INFO_FB TYPE_SPACE_SAVE_INFO_FB} value to the {@link #type} field. */ + public XrSpaceSaveInfoFB type$Default() { return type(FBSpatialEntityStorage.XR_TYPE_SPACE_SAVE_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpaceSaveInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #space} field. */ + public XrSpaceSaveInfoFB space(XrSpace value) { nspace(address(), value); return this; } + /** Sets the specified value to the {@link #location} field. */ + public XrSpaceSaveInfoFB location(@NativeType("XrSpaceStorageLocationFB") int value) { nlocation(address(), value); return this; } + /** Sets the specified value to the {@link #persistenceMode} field. */ + public XrSpaceSaveInfoFB persistenceMode(@NativeType("XrSpacePersistenceModeFB") int value) { npersistenceMode(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpaceSaveInfoFB set( - int type, - long next, - XrSpace space, - int location, + int type, + long next, + XrSpace space, + int location, int persistenceMode - ) { - type(type); - next(next); - space(space); - location(location); - persistenceMode(persistenceMode); + ) { + type(type); + next(next); + space(space); + location(location); + persistenceMode(persistenceMode); return this; } @@ -276,28 +276,28 @@ public static XrSpaceSaveInfoFB.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceSaveInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpaceSaveInfoFB.NEXT); } - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrSpaceSaveInfoFB.SPACE); } - /** Unsafe version of {@link #location}. */ - public static int nlocation(long struct) { return UNSAFE.getInt(null, struct + XrSpaceSaveInfoFB.LOCATION); } - /** Unsafe version of {@link #persistenceMode}. */ - public static int npersistenceMode(long struct) { return UNSAFE.getInt(null, struct + XrSpaceSaveInfoFB.PERSISTENCEMODE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceSaveInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceSaveInfoFB.NEXT, value); } - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrSpaceSaveInfoFB.SPACE, value.address()); } - /** Unsafe version of {@link #location(int) location}. */ - public static void nlocation(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceSaveInfoFB.LOCATION, value); } - /** Unsafe version of {@link #persistenceMode(int) persistenceMode}. */ - public static void npersistenceMode(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceSaveInfoFB.PERSISTENCEMODE, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceSaveInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpaceSaveInfoFB.NEXT); } + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrSpaceSaveInfoFB.SPACE); } + /** Unsafe version of {@link #location}. */ + public static int nlocation(long struct) { return UNSAFE.getInt(null, struct + XrSpaceSaveInfoFB.LOCATION); } + /** Unsafe version of {@link #persistenceMode}. */ + public static int npersistenceMode(long struct) { return UNSAFE.getInt(null, struct + XrSpaceSaveInfoFB.PERSISTENCEMODE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceSaveInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceSaveInfoFB.NEXT, value); } + /** Unsafe version of {@link #space(XrSpace) space}. */ + public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrSpaceSaveInfoFB.SPACE, value.address()); } + /** Unsafe version of {@link #location(int) location}. */ + public static void nlocation(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceSaveInfoFB.LOCATION, value); } + /** Unsafe version of {@link #persistenceMode(int) persistenceMode}. */ + public static void npersistenceMode(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceSaveInfoFB.PERSISTENCEMODE, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -306,9 +306,9 @@ public static XrSpaceSaveInfoFB.Buffer calloc(int capacity, MemoryStack stack) { */ public static void validate(long struct) { check(memGetAddress(struct + XrSpaceSaveInfoFB.SPACE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSpaceSaveInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -345,35 +345,35 @@ protected Buffer self() { protected XrSpaceSaveInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceSaveInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceSaveInfoFB.ntype(address()); } - /** @return the value of the {@link XrSpaceSaveInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSpaceSaveInfoFB.nnext(address()); } - /** @return the value of the {@link XrSpaceSaveInfoFB#space} field. */ - @NativeType("XrSpace") - public long space() { return XrSpaceSaveInfoFB.nspace(address()); } - /** @return the value of the {@link XrSpaceSaveInfoFB#location} field. */ - @NativeType("XrSpaceStorageLocationFB") - public int location() { return XrSpaceSaveInfoFB.nlocation(address()); } - /** @return the value of the {@link XrSpaceSaveInfoFB#persistenceMode} field. */ - @NativeType("XrSpacePersistenceModeFB") - public int persistenceMode() { return XrSpaceSaveInfoFB.npersistenceMode(address()); } - - /** Sets the specified value to the {@link XrSpaceSaveInfoFB#type} field. */ - public XrSpaceSaveInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceSaveInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityStorage#XR_TYPE_SPACE_SAVE_INFO_FB TYPE_SPACE_SAVE_INFO_FB} value to the {@link XrSpaceSaveInfoFB#type} field. */ - public XrSpaceSaveInfoFB.Buffer type$Default() { return type(FBSpatialEntityStorage.XR_TYPE_SPACE_SAVE_INFO_FB); } - /** Sets the specified value to the {@link XrSpaceSaveInfoFB#next} field. */ - public XrSpaceSaveInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceSaveInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceSaveInfoFB#space} field. */ - public XrSpaceSaveInfoFB.Buffer space(XrSpace value) { XrSpaceSaveInfoFB.nspace(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceSaveInfoFB#location} field. */ - public XrSpaceSaveInfoFB.Buffer location(@NativeType("XrSpaceStorageLocationFB") int value) { XrSpaceSaveInfoFB.nlocation(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceSaveInfoFB#persistenceMode} field. */ - public XrSpaceSaveInfoFB.Buffer persistenceMode(@NativeType("XrSpacePersistenceModeFB") int value) { XrSpaceSaveInfoFB.npersistenceMode(address(), value); return this; } + + /** @return the value of the {@link XrSpaceSaveInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceSaveInfoFB.ntype(address()); } + /** @return the value of the {@link XrSpaceSaveInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSpaceSaveInfoFB.nnext(address()); } + /** @return the value of the {@link XrSpaceSaveInfoFB#space} field. */ + @NativeType("XrSpace") + public long space() { return XrSpaceSaveInfoFB.nspace(address()); } + /** @return the value of the {@link XrSpaceSaveInfoFB#location} field. */ + @NativeType("XrSpaceStorageLocationFB") + public int location() { return XrSpaceSaveInfoFB.nlocation(address()); } + /** @return the value of the {@link XrSpaceSaveInfoFB#persistenceMode} field. */ + @NativeType("XrSpacePersistenceModeFB") + public int persistenceMode() { return XrSpaceSaveInfoFB.npersistenceMode(address()); } + + /** Sets the specified value to the {@link XrSpaceSaveInfoFB#type} field. */ + public XrSpaceSaveInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceSaveInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityStorage#XR_TYPE_SPACE_SAVE_INFO_FB TYPE_SPACE_SAVE_INFO_FB} value to the {@link XrSpaceSaveInfoFB#type} field. */ + public XrSpaceSaveInfoFB.Buffer type$Default() { return type(FBSpatialEntityStorage.XR_TYPE_SPACE_SAVE_INFO_FB); } + /** Sets the specified value to the {@link XrSpaceSaveInfoFB#next} field. */ + public XrSpaceSaveInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceSaveInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceSaveInfoFB#space} field. */ + public XrSpaceSaveInfoFB.Buffer space(XrSpace value) { XrSpaceSaveInfoFB.nspace(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceSaveInfoFB#location} field. */ + public XrSpaceSaveInfoFB.Buffer location(@NativeType("XrSpaceStorageLocationFB") int value) { XrSpaceSaveInfoFB.nlocation(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceSaveInfoFB#persistenceMode} field. */ + public XrSpaceSaveInfoFB.Buffer persistenceMode(@NativeType("XrSpacePersistenceModeFB") int value) { XrSpaceSaveInfoFB.npersistenceMode(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceShareInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceShareInfoFB.java index 79f392696c..488c98a574 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceShareInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceShareInfoFB.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes a request to share some number of spatial entities. * @@ -28,7 +28,7 @@ *
                                                                    *
                                                                  • The {@link FBSpatialEntitySharing XR_FB_spatial_entity_sharing} extension must be enabled prior to using {@link XrSpaceShareInfoFB}
                                                                  • *
                                                                  • {@code type} must be {@link FBSpatialEntitySharing#XR_TYPE_SPACE_SHARE_INFO_FB TYPE_SPACE_SHARE_INFO_FB}
                                                                  • - *
                                                                  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                  • + *
                                                                  • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                  • *
                                                                  • {@code spaces} must be a pointer to an array of {@code spaceCount} {@code XrSpace} handles
                                                                  • *
                                                                  • {@code users} must be a pointer to an array of {@code userCount} {@code XrSpaceUserFB} handles
                                                                  • *
                                                                  • The {@code spaceCount} parameter must be greater than 0
                                                                  • @@ -50,8 +50,8 @@ * uint32_t userCount; * XrSpaceUserFB * users; * } - */ -public class XrSpaceShareInfoFB extends Struct implements NativeResource { + */ +public class XrSpaceShareInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -61,33 +61,33 @@ public class XrSpaceShareInfoFB extends Struct implements Na /** The struct member offsets. */ public static final int - TYPE, - NEXT, - SPACECOUNT, - SPACES, - USERCOUNT, - USERS; + TYPE, + NEXT, + SPACECOUNT, + SPACES, + USERCOUNT, + USERS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(POINTER_SIZE), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(POINTER_SIZE), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - SPACECOUNT = layout.offsetof(2); - SPACES = layout.offsetof(3); - USERCOUNT = layout.offsetof(4); - USERS = layout.offsetof(5); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + SPACECOUNT = layout.offsetof(2); + SPACES = layout.offsetof(3); + USERCOUNT = layout.offsetof(4); + USERS = layout.offsetof(5); + } protected XrSpaceShareInfoFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -110,48 +110,48 @@ public XrSpaceShareInfoFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. {@code spaceCount} is the number of elements in the {@code spaces} list. {@code spaces} is a list containing all spatial entities to be shared. {@code userCount} is the number of elements in the {@code users} list. {@code users} is a list of the users with which the {@code spaces} will: be shared. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** @return the value of the {@code spaceCount} field. */ - @NativeType("uint32_t") - public int spaceCount() { return nspaceCount(address()); } - /** @return a {@link PointerBuffer} view of the data pointed to by the {@code spaces} field. */ - @NativeType("XrSpace *") - public PointerBuffer spaces() { return nspaces(address()); } - /** @return the value of the {@code userCount} field. */ - @NativeType("uint32_t") - public int userCount() { return nuserCount(address()); } - /** @return a {@link PointerBuffer} view of the data pointed to by the {@code users} field. */ - @NativeType("XrSpaceUserFB *") - public PointerBuffer users() { return nusers(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSpaceShareInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntitySharing#XR_TYPE_SPACE_SHARE_INFO_FB TYPE_SPACE_SHARE_INFO_FB} value to the {@link #type} field. */ - public XrSpaceShareInfoFB type$Default() { return type(FBSpatialEntitySharing.XR_TYPE_SPACE_SHARE_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSpaceShareInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@code spaces} field. */ - public XrSpaceShareInfoFB spaces(@NativeType("XrSpace *") PointerBuffer value) { nspaces(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@code users} field. */ - public XrSpaceShareInfoFB users(@NativeType("XrSpaceUserFB *") PointerBuffer value) { nusers(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. {@code spaceCount} is the number of elements in the {@code spaces} list. {@code spaces} is a list containing all spatial entities to be shared. {@code userCount} is the number of elements in the {@code users} list. {@code users} is a list of the users with which the {@code spaces} will: be shared. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** @return the value of the {@code spaceCount} field. */ + @NativeType("uint32_t") + public int spaceCount() { return nspaceCount(address()); } + /** @return a {@link PointerBuffer} view of the data pointed to by the {@code spaces} field. */ + @NativeType("XrSpace *") + public PointerBuffer spaces() { return nspaces(address()); } + /** @return the value of the {@code userCount} field. */ + @NativeType("uint32_t") + public int userCount() { return nuserCount(address()); } + /** @return a {@link PointerBuffer} view of the data pointed to by the {@code users} field. */ + @NativeType("XrSpaceUserFB *") + public PointerBuffer users() { return nusers(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpaceShareInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntitySharing#XR_TYPE_SPACE_SHARE_INFO_FB TYPE_SPACE_SHARE_INFO_FB} value to the {@link #type} field. */ + public XrSpaceShareInfoFB type$Default() { return type(FBSpatialEntitySharing.XR_TYPE_SPACE_SHARE_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpaceShareInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@code spaces} field. */ + public XrSpaceShareInfoFB spaces(@NativeType("XrSpace *") PointerBuffer value) { nspaces(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@code users} field. */ + public XrSpaceShareInfoFB users(@NativeType("XrSpaceUserFB *") PointerBuffer value) { nusers(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpaceShareInfoFB set( - int type, - long next, - PointerBuffer spaces, + int type, + long next, + PointerBuffer spaces, PointerBuffer users - ) { - type(type); - next(next); - spaces(spaces); - users(users); + ) { + type(type); + next(next); + spaces(spaces); + users(users); return this; } @@ -280,32 +280,32 @@ public static XrSpaceShareInfoFB.Buffer calloc(int capacity, MemoryStack stack) } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceShareInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpaceShareInfoFB.NEXT); } - /** Unsafe version of {@link #spaceCount}. */ - public static int nspaceCount(long struct) { return UNSAFE.getInt(null, struct + XrSpaceShareInfoFB.SPACECOUNT); } - /** Unsafe version of {@link #spaces() spaces}. */ - public static PointerBuffer nspaces(long struct) { return memPointerBuffer(memGetAddress(struct + XrSpaceShareInfoFB.SPACES), nspaceCount(struct)); } - /** Unsafe version of {@link #userCount}. */ - public static int nuserCount(long struct) { return UNSAFE.getInt(null, struct + XrSpaceShareInfoFB.USERCOUNT); } - /** Unsafe version of {@link #users() users}. */ - public static PointerBuffer nusers(long struct) { return memPointerBuffer(memGetAddress(struct + XrSpaceShareInfoFB.USERS), nuserCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceShareInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceShareInfoFB.NEXT, value); } - /** Sets the specified value to the {@code spaceCount} field of the specified {@code struct}. */ - public static void nspaceCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceShareInfoFB.SPACECOUNT, value); } - /** Unsafe version of {@link #spaces(PointerBuffer) spaces}. */ - public static void nspaces(long struct, PointerBuffer value) { memPutAddress(struct + XrSpaceShareInfoFB.SPACES, memAddress(value)); nspaceCount(struct, value.remaining()); } - /** Sets the specified value to the {@code userCount} field of the specified {@code struct}. */ - public static void nuserCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceShareInfoFB.USERCOUNT, value); } - /** Unsafe version of {@link #users(PointerBuffer) users}. */ - public static void nusers(long struct, PointerBuffer value) { memPutAddress(struct + XrSpaceShareInfoFB.USERS, memAddress(value)); nuserCount(struct, value.remaining()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceShareInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpaceShareInfoFB.NEXT); } + /** Unsafe version of {@link #spaceCount}. */ + public static int nspaceCount(long struct) { return UNSAFE.getInt(null, struct + XrSpaceShareInfoFB.SPACECOUNT); } + /** Unsafe version of {@link #spaces() spaces}. */ + public static PointerBuffer nspaces(long struct) { return memPointerBuffer(memGetAddress(struct + XrSpaceShareInfoFB.SPACES), nspaceCount(struct)); } + /** Unsafe version of {@link #userCount}. */ + public static int nuserCount(long struct) { return UNSAFE.getInt(null, struct + XrSpaceShareInfoFB.USERCOUNT); } + /** Unsafe version of {@link #users() users}. */ + public static PointerBuffer nusers(long struct) { return memPointerBuffer(memGetAddress(struct + XrSpaceShareInfoFB.USERS), nuserCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceShareInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceShareInfoFB.NEXT, value); } + /** Sets the specified value to the {@code spaceCount} field of the specified {@code struct}. */ + public static void nspaceCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceShareInfoFB.SPACECOUNT, value); } + /** Unsafe version of {@link #spaces(PointerBuffer) spaces}. */ + public static void nspaces(long struct, PointerBuffer value) { memPutAddress(struct + XrSpaceShareInfoFB.SPACES, memAddress(value)); nspaceCount(struct, value.remaining()); } + /** Sets the specified value to the {@code userCount} field of the specified {@code struct}. */ + public static void nuserCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceShareInfoFB.USERCOUNT, value); } + /** Unsafe version of {@link #users(PointerBuffer) users}. */ + public static void nusers(long struct, PointerBuffer value) { memPutAddress(struct + XrSpaceShareInfoFB.USERS, memAddress(value)); nuserCount(struct, value.remaining()); } /** * Validates pointer members that should not be {@code NULL}. @@ -315,9 +315,9 @@ public static XrSpaceShareInfoFB.Buffer calloc(int capacity, MemoryStack stack) public static void validate(long struct) { check(memGetAddress(struct + XrSpaceShareInfoFB.SPACES)); check(memGetAddress(struct + XrSpaceShareInfoFB.USERS)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSpaceShareInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -354,36 +354,36 @@ protected Buffer self() { protected XrSpaceShareInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceShareInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceShareInfoFB.ntype(address()); } - /** @return the value of the {@link XrSpaceShareInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSpaceShareInfoFB.nnext(address()); } - /** @return the value of the {@code spaceCount} field. */ - @NativeType("uint32_t") - public int spaceCount() { return XrSpaceShareInfoFB.nspaceCount(address()); } - /** @return a {@link PointerBuffer} view of the data pointed to by the {@code spaces} field. */ - @NativeType("XrSpace *") - public PointerBuffer spaces() { return XrSpaceShareInfoFB.nspaces(address()); } - /** @return the value of the {@code userCount} field. */ - @NativeType("uint32_t") - public int userCount() { return XrSpaceShareInfoFB.nuserCount(address()); } - /** @return a {@link PointerBuffer} view of the data pointed to by the {@code users} field. */ - @NativeType("XrSpaceUserFB *") - public PointerBuffer users() { return XrSpaceShareInfoFB.nusers(address()); } - - /** Sets the specified value to the {@link XrSpaceShareInfoFB#type} field. */ - public XrSpaceShareInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceShareInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntitySharing#XR_TYPE_SPACE_SHARE_INFO_FB TYPE_SPACE_SHARE_INFO_FB} value to the {@link XrSpaceShareInfoFB#type} field. */ - public XrSpaceShareInfoFB.Buffer type$Default() { return type(FBSpatialEntitySharing.XR_TYPE_SPACE_SHARE_INFO_FB); } - /** Sets the specified value to the {@link XrSpaceShareInfoFB#next} field. */ - public XrSpaceShareInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceShareInfoFB.nnext(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@code spaces} field. */ - public XrSpaceShareInfoFB.Buffer spaces(@NativeType("XrSpace *") PointerBuffer value) { XrSpaceShareInfoFB.nspaces(address(), value); return this; } - /** Sets the address of the specified {@link PointerBuffer} to the {@code users} field. */ - public XrSpaceShareInfoFB.Buffer users(@NativeType("XrSpaceUserFB *") PointerBuffer value) { XrSpaceShareInfoFB.nusers(address(), value); return this; } + + /** @return the value of the {@link XrSpaceShareInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceShareInfoFB.ntype(address()); } + /** @return the value of the {@link XrSpaceShareInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSpaceShareInfoFB.nnext(address()); } + /** @return the value of the {@code spaceCount} field. */ + @NativeType("uint32_t") + public int spaceCount() { return XrSpaceShareInfoFB.nspaceCount(address()); } + /** @return a {@link PointerBuffer} view of the data pointed to by the {@code spaces} field. */ + @NativeType("XrSpace *") + public PointerBuffer spaces() { return XrSpaceShareInfoFB.nspaces(address()); } + /** @return the value of the {@code userCount} field. */ + @NativeType("uint32_t") + public int userCount() { return XrSpaceShareInfoFB.nuserCount(address()); } + /** @return a {@link PointerBuffer} view of the data pointed to by the {@code users} field. */ + @NativeType("XrSpaceUserFB *") + public PointerBuffer users() { return XrSpaceShareInfoFB.nusers(address()); } + + /** Sets the specified value to the {@link XrSpaceShareInfoFB#type} field. */ + public XrSpaceShareInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceShareInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntitySharing#XR_TYPE_SPACE_SHARE_INFO_FB TYPE_SPACE_SHARE_INFO_FB} value to the {@link XrSpaceShareInfoFB#type} field. */ + public XrSpaceShareInfoFB.Buffer type$Default() { return type(FBSpatialEntitySharing.XR_TYPE_SPACE_SHARE_INFO_FB); } + /** Sets the specified value to the {@link XrSpaceShareInfoFB#next} field. */ + public XrSpaceShareInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceShareInfoFB.nnext(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@code spaces} field. */ + public XrSpaceShareInfoFB.Buffer spaces(@NativeType("XrSpace *") PointerBuffer value) { XrSpaceShareInfoFB.nspaces(address(), value); return this; } + /** Sets the address of the specified {@link PointerBuffer} to the {@code users} field. */ + public XrSpaceShareInfoFB.Buffer users(@NativeType("XrSpaceUserFB *") PointerBuffer value) { XrSpaceShareInfoFB.nusers(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceStorageLocationFilterInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceStorageLocationFilterInfoFB.java index 2a23a846cb..5fc4934c27 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceStorageLocationFilterInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceStorageLocationFilterInfoFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes where a spatial entity is stored. * @@ -27,7 +27,7 @@ *
                                                                      *
                                                                    • The {@link FBSpatialEntityQuery XR_FB_spatial_entity_query} extension must be enabled prior to using {@link XrSpaceStorageLocationFilterInfoFB}
                                                                    • *
                                                                    • {@code type} must be {@link FBSpatialEntityQuery#XR_TYPE_SPACE_STORAGE_LOCATION_FILTER_INFO_FB TYPE_SPACE_STORAGE_LOCATION_FILTER_INFO_FB}
                                                                    • - *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • + *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • *
                                                                    • {@code location} must be a valid {@code XrSpaceStorageLocationFB} value
                                                                    • *
                                                                    * @@ -39,8 +39,8 @@ * void const * {@link #next}; * XrSpaceStorageLocationFB {@link #location}; * } - */ -public class XrSpaceStorageLocationFilterInfoFB extends Struct implements NativeResource { + */ +public class XrSpaceStorageLocationFilterInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,24 +50,24 @@ public class XrSpaceStorageLocationFilterInfoFB extends Struct implements NativeResource { @@ -299,25 +299,25 @@ protected Buffer self() { protected XrSpaceStorageLocationFilterInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceStorageLocationFilterInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceStorageLocationFilterInfoFB.ntype(address()); } - /** @return the value of the {@link XrSpaceStorageLocationFilterInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSpaceStorageLocationFilterInfoFB.nnext(address()); } - /** @return the value of the {@link XrSpaceStorageLocationFilterInfoFB#location} field. */ - @NativeType("XrSpaceStorageLocationFB") - public int location() { return XrSpaceStorageLocationFilterInfoFB.nlocation(address()); } - - /** Sets the specified value to the {@link XrSpaceStorageLocationFilterInfoFB#type} field. */ - public XrSpaceStorageLocationFilterInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceStorageLocationFilterInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_STORAGE_LOCATION_FILTER_INFO_FB TYPE_SPACE_STORAGE_LOCATION_FILTER_INFO_FB} value to the {@link XrSpaceStorageLocationFilterInfoFB#type} field. */ - public XrSpaceStorageLocationFilterInfoFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_STORAGE_LOCATION_FILTER_INFO_FB); } - /** Sets the specified value to the {@link XrSpaceStorageLocationFilterInfoFB#next} field. */ - public XrSpaceStorageLocationFilterInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceStorageLocationFilterInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceStorageLocationFilterInfoFB#location} field. */ - public XrSpaceStorageLocationFilterInfoFB.Buffer location(@NativeType("XrSpaceStorageLocationFB") int value) { XrSpaceStorageLocationFilterInfoFB.nlocation(address(), value); return this; } + + /** @return the value of the {@link XrSpaceStorageLocationFilterInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceStorageLocationFilterInfoFB.ntype(address()); } + /** @return the value of the {@link XrSpaceStorageLocationFilterInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSpaceStorageLocationFilterInfoFB.nnext(address()); } + /** @return the value of the {@link XrSpaceStorageLocationFilterInfoFB#location} field. */ + @NativeType("XrSpaceStorageLocationFB") + public int location() { return XrSpaceStorageLocationFilterInfoFB.nlocation(address()); } + + /** Sets the specified value to the {@link XrSpaceStorageLocationFilterInfoFB#type} field. */ + public XrSpaceStorageLocationFilterInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceStorageLocationFilterInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_STORAGE_LOCATION_FILTER_INFO_FB TYPE_SPACE_STORAGE_LOCATION_FILTER_INFO_FB} value to the {@link XrSpaceStorageLocationFilterInfoFB#type} field. */ + public XrSpaceStorageLocationFilterInfoFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_STORAGE_LOCATION_FILTER_INFO_FB); } + /** Sets the specified value to the {@link XrSpaceStorageLocationFilterInfoFB#next} field. */ + public XrSpaceStorageLocationFilterInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceStorageLocationFilterInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceStorageLocationFilterInfoFB#location} field. */ + public XrSpaceStorageLocationFilterInfoFB.Buffer location(@NativeType("XrSpaceStorageLocationFB") int value) { XrSpaceStorageLocationFilterInfoFB.nlocation(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceUserCreateInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceUserCreateInfoFB.java index 6f1ea7536a..df01a99c40 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceUserCreateInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceUserCreateInfoFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes a user. * @@ -27,7 +27,7 @@ *
                                                                      *
                                                                    • The {@link FBSpatialEntityUser XR_FB_spatial_entity_user} extension must be enabled prior to using {@link XrSpaceUserCreateInfoFB}
                                                                    • *
                                                                    • {@code type} must be {@link FBSpatialEntityUser#XR_TYPE_SPACE_USER_CREATE_INFO_FB TYPE_SPACE_USER_CREATE_INFO_FB}
                                                                    • - *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • + *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • *
                                                                    * *
                                                                    See Also
                                                                    @@ -42,8 +42,8 @@ * void const * {@link #next}; * XrSpaceUserIdFB {@link #userId}; * } - */ -public class XrSpaceUserCreateInfoFB extends Struct implements NativeResource { + */ +public class XrSpaceUserCreateInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,24 +53,24 @@ public class XrSpaceUserCreateInfoFB extends Struct imp /** The struct member offsets. */ public static final int - TYPE, - NEXT, - USERID; + TYPE, + NEXT, + USERID; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - USERID = layout.offsetof(2); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + USERID = layout.offsetof(2); + } protected XrSpaceUserCreateInfoFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -93,35 +93,35 @@ public XrSpaceUserCreateInfoFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** the user ID with which the application can reference. */ - @NativeType("XrSpaceUserIdFB") - public long userId() { return nuserId(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSpaceUserCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityUser#XR_TYPE_SPACE_USER_CREATE_INFO_FB TYPE_SPACE_USER_CREATE_INFO_FB} value to the {@link #type} field. */ - public XrSpaceUserCreateInfoFB type$Default() { return type(FBSpatialEntityUser.XR_TYPE_SPACE_USER_CREATE_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSpaceUserCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #userId} field. */ - public XrSpaceUserCreateInfoFB userId(@NativeType("XrSpaceUserIdFB") long value) { nuserId(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the user ID with which the application can reference. */ + @NativeType("XrSpaceUserIdFB") + public long userId() { return nuserId(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpaceUserCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityUser#XR_TYPE_SPACE_USER_CREATE_INFO_FB TYPE_SPACE_USER_CREATE_INFO_FB} value to the {@link #type} field. */ + public XrSpaceUserCreateInfoFB type$Default() { return type(FBSpatialEntityUser.XR_TYPE_SPACE_USER_CREATE_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpaceUserCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #userId} field. */ + public XrSpaceUserCreateInfoFB userId(@NativeType("XrSpaceUserIdFB") long value) { nuserId(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpaceUserCreateInfoFB set( - int type, - long next, + int type, + long next, long userId - ) { - type(type); - next(next); - userId(userId); + ) { + type(type); + next(next); + userId(userId); return this; } @@ -250,22 +250,22 @@ public static XrSpaceUserCreateInfoFB.Buffer calloc(int capacity, MemoryStack st } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceUserCreateInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpaceUserCreateInfoFB.NEXT); } - /** Unsafe version of {@link #userId}. */ - public static long nuserId(long struct) { return UNSAFE.getLong(null, struct + XrSpaceUserCreateInfoFB.USERID); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceUserCreateInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceUserCreateInfoFB.NEXT, value); } - /** Unsafe version of {@link #userId(long) userId}. */ - public static void nuserId(long struct, long value) { UNSAFE.putLong(null, struct + XrSpaceUserCreateInfoFB.USERID, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceUserCreateInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpaceUserCreateInfoFB.NEXT); } + /** Unsafe version of {@link #userId}. */ + public static long nuserId(long struct) { return UNSAFE.getLong(null, struct + XrSpaceUserCreateInfoFB.USERID); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceUserCreateInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceUserCreateInfoFB.NEXT, value); } + /** Unsafe version of {@link #userId(long) userId}. */ + public static void nuserId(long struct, long value) { UNSAFE.putLong(null, struct + XrSpaceUserCreateInfoFB.USERID, value); } + + // ----------------------------------- /** An array of {@link XrSpaceUserCreateInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -302,25 +302,25 @@ protected Buffer self() { protected XrSpaceUserCreateInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceUserCreateInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceUserCreateInfoFB.ntype(address()); } - /** @return the value of the {@link XrSpaceUserCreateInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSpaceUserCreateInfoFB.nnext(address()); } - /** @return the value of the {@link XrSpaceUserCreateInfoFB#userId} field. */ - @NativeType("XrSpaceUserIdFB") - public long userId() { return XrSpaceUserCreateInfoFB.nuserId(address()); } - - /** Sets the specified value to the {@link XrSpaceUserCreateInfoFB#type} field. */ - public XrSpaceUserCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceUserCreateInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityUser#XR_TYPE_SPACE_USER_CREATE_INFO_FB TYPE_SPACE_USER_CREATE_INFO_FB} value to the {@link XrSpaceUserCreateInfoFB#type} field. */ - public XrSpaceUserCreateInfoFB.Buffer type$Default() { return type(FBSpatialEntityUser.XR_TYPE_SPACE_USER_CREATE_INFO_FB); } - /** Sets the specified value to the {@link XrSpaceUserCreateInfoFB#next} field. */ - public XrSpaceUserCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceUserCreateInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceUserCreateInfoFB#userId} field. */ - public XrSpaceUserCreateInfoFB.Buffer userId(@NativeType("XrSpaceUserIdFB") long value) { XrSpaceUserCreateInfoFB.nuserId(address(), value); return this; } + + /** @return the value of the {@link XrSpaceUserCreateInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceUserCreateInfoFB.ntype(address()); } + /** @return the value of the {@link XrSpaceUserCreateInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSpaceUserCreateInfoFB.nnext(address()); } + /** @return the value of the {@link XrSpaceUserCreateInfoFB#userId} field. */ + @NativeType("XrSpaceUserIdFB") + public long userId() { return XrSpaceUserCreateInfoFB.nuserId(address()); } + + /** Sets the specified value to the {@link XrSpaceUserCreateInfoFB#type} field. */ + public XrSpaceUserCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceUserCreateInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityUser#XR_TYPE_SPACE_USER_CREATE_INFO_FB TYPE_SPACE_USER_CREATE_INFO_FB} value to the {@link XrSpaceUserCreateInfoFB#type} field. */ + public XrSpaceUserCreateInfoFB.Buffer type$Default() { return type(FBSpatialEntityUser.XR_TYPE_SPACE_USER_CREATE_INFO_FB); } + /** Sets the specified value to the {@link XrSpaceUserCreateInfoFB#next} field. */ + public XrSpaceUserCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceUserCreateInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceUserCreateInfoFB#userId} field. */ + public XrSpaceUserCreateInfoFB.Buffer userId(@NativeType("XrSpaceUserIdFB") long value) { XrSpaceUserCreateInfoFB.nuserId(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceUserFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceUserFB.java index 0aba9b22b9..bedced3241 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceUserFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceUserFB.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrSpaceUserFB} handle. */ + +/** Wraps an {@code XrSpaceUserFB} handle. */ public class XrSpaceUserFB extends DispatchableHandle { private final XrSession session; @@ -26,4 +26,4 @@ public XrSession getSession() { return session; } -} +} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceUuidFilterInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceUuidFilterInfoFB.java index b258e067f7..e87679a629 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceUuidFilterInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceUuidFilterInfoFB.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Filters for entities with specific unique identifiers. * @@ -28,7 +28,7 @@ *
                                                                      *
                                                                    • The {@link FBSpatialEntityQuery XR_FB_spatial_entity_query} extension must be enabled prior to using {@link XrSpaceUuidFilterInfoFB}
                                                                    • *
                                                                    • {@code type} must be {@link FBSpatialEntityQuery#XR_TYPE_SPACE_UUID_FILTER_INFO_FB TYPE_SPACE_UUID_FILTER_INFO_FB}
                                                                    • - *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • + *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • *
                                                                    • {@code uuids} must be a pointer to an array of {@code uuidCount} {@link XrUuidEXT} structures
                                                                    • *
                                                                    • The {@code uuidCount} parameter must be greater than 0
                                                                    • *
                                                                    @@ -46,8 +46,8 @@ * uint32_t {@link #uuidCount}; * {@link XrUuidEXT XrUuidEXT} * {@link #uuids}; * } - */ -public class XrSpaceUuidFilterInfoFB extends Struct implements NativeResource { + */ +public class XrSpaceUuidFilterInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,27 +57,27 @@ public class XrSpaceUuidFilterInfoFB extends Struct imp /** The struct member offsets. */ public static final int - TYPE, - NEXT, - UUIDCOUNT, - UUIDS; + TYPE, + NEXT, + UUIDCOUNT, + UUIDS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - UUIDCOUNT = layout.offsetof(2); - UUIDS = layout.offsetof(3); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + UUIDCOUNT = layout.offsetof(2); + UUIDS = layout.offsetof(3); + } protected XrSpaceUuidFilterInfoFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -100,38 +100,38 @@ public XrSpaceUuidFilterInfoFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** the number of UUIDs to be matched. */ - @NativeType("uint32_t") - public int uuidCount() { return nuuidCount(address()); } - /** an array of {@link XrUuidEXT} that contains the UUIDs to be matched. */ - @NativeType("XrUuidEXT *") - public XrUuidEXT.Buffer uuids() { return nuuids(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSpaceUuidFilterInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_UUID_FILTER_INFO_FB TYPE_SPACE_UUID_FILTER_INFO_FB} value to the {@link #type} field. */ - public XrSpaceUuidFilterInfoFB type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_UUID_FILTER_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSpaceUuidFilterInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the address of the specified {@link XrUuidEXT.Buffer} to the {@link #uuids} field. */ - public XrSpaceUuidFilterInfoFB uuids(@NativeType("XrUuidEXT *") XrUuidEXT.Buffer value) { nuuids(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the number of UUIDs to be matched. */ + @NativeType("uint32_t") + public int uuidCount() { return nuuidCount(address()); } + /** an array of {@link XrUuidEXT} that contains the UUIDs to be matched. */ + @NativeType("XrUuidEXT *") + public XrUuidEXT.Buffer uuids() { return nuuids(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpaceUuidFilterInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_UUID_FILTER_INFO_FB TYPE_SPACE_UUID_FILTER_INFO_FB} value to the {@link #type} field. */ + public XrSpaceUuidFilterInfoFB type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_UUID_FILTER_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpaceUuidFilterInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the address of the specified {@link XrUuidEXT.Buffer} to the {@link #uuids} field. */ + public XrSpaceUuidFilterInfoFB uuids(@NativeType("XrUuidEXT *") XrUuidEXT.Buffer value) { nuuids(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpaceUuidFilterInfoFB set( - int type, - long next, + int type, + long next, XrUuidEXT.Buffer uuids - ) { - type(type); - next(next); - uuids(uuids); + ) { + type(type); + next(next); + uuids(uuids); return this; } @@ -270,24 +270,24 @@ public static XrSpaceUuidFilterInfoFB.Buffer calloc(int capacity, MemoryStack st } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceUuidFilterInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpaceUuidFilterInfoFB.NEXT); } - /** Unsafe version of {@link #uuidCount}. */ - public static int nuuidCount(long struct) { return UNSAFE.getInt(null, struct + XrSpaceUuidFilterInfoFB.UUIDCOUNT); } - /** Unsafe version of {@link #uuids}. */ - public static XrUuidEXT.Buffer nuuids(long struct) { return XrUuidEXT.create(memGetAddress(struct + XrSpaceUuidFilterInfoFB.UUIDS), nuuidCount(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceUuidFilterInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceUuidFilterInfoFB.NEXT, value); } - /** Sets the specified value to the {@code uuidCount} field of the specified {@code struct}. */ - public static void nuuidCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceUuidFilterInfoFB.UUIDCOUNT, value); } - /** Unsafe version of {@link #uuids(XrUuidEXT.Buffer) uuids}. */ - public static void nuuids(long struct, XrUuidEXT.Buffer value) { memPutAddress(struct + XrSpaceUuidFilterInfoFB.UUIDS, value.address()); nuuidCount(struct, value.remaining()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceUuidFilterInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpaceUuidFilterInfoFB.NEXT); } + /** Unsafe version of {@link #uuidCount}. */ + public static int nuuidCount(long struct) { return UNSAFE.getInt(null, struct + XrSpaceUuidFilterInfoFB.UUIDCOUNT); } + /** Unsafe version of {@link #uuids}. */ + public static XrUuidEXT.Buffer nuuids(long struct) { return XrUuidEXT.create(memGetAddress(struct + XrSpaceUuidFilterInfoFB.UUIDS), nuuidCount(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceUuidFilterInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceUuidFilterInfoFB.NEXT, value); } + /** Sets the specified value to the {@code uuidCount} field of the specified {@code struct}. */ + public static void nuuidCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceUuidFilterInfoFB.UUIDCOUNT, value); } + /** Unsafe version of {@link #uuids(XrUuidEXT.Buffer) uuids}. */ + public static void nuuids(long struct, XrUuidEXT.Buffer value) { memPutAddress(struct + XrSpaceUuidFilterInfoFB.UUIDS, value.address()); nuuidCount(struct, value.remaining()); } /** * Validates pointer members that should not be {@code NULL}. @@ -296,9 +296,9 @@ public static XrSpaceUuidFilterInfoFB.Buffer calloc(int capacity, MemoryStack st */ public static void validate(long struct) { check(memGetAddress(struct + XrSpaceUuidFilterInfoFB.UUIDS)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSpaceUuidFilterInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -335,28 +335,28 @@ protected Buffer self() { protected XrSpaceUuidFilterInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceUuidFilterInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceUuidFilterInfoFB.ntype(address()); } - /** @return the value of the {@link XrSpaceUuidFilterInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSpaceUuidFilterInfoFB.nnext(address()); } - /** @return the value of the {@link XrSpaceUuidFilterInfoFB#uuidCount} field. */ - @NativeType("uint32_t") - public int uuidCount() { return XrSpaceUuidFilterInfoFB.nuuidCount(address()); } - /** @return a {@link XrUuidEXT.Buffer} view of the struct array pointed to by the {@link XrSpaceUuidFilterInfoFB#uuids} field. */ - @NativeType("XrUuidEXT *") - public XrUuidEXT.Buffer uuids() { return XrSpaceUuidFilterInfoFB.nuuids(address()); } - - /** Sets the specified value to the {@link XrSpaceUuidFilterInfoFB#type} field. */ - public XrSpaceUuidFilterInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceUuidFilterInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_UUID_FILTER_INFO_FB TYPE_SPACE_UUID_FILTER_INFO_FB} value to the {@link XrSpaceUuidFilterInfoFB#type} field. */ - public XrSpaceUuidFilterInfoFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_UUID_FILTER_INFO_FB); } - /** Sets the specified value to the {@link XrSpaceUuidFilterInfoFB#next} field. */ - public XrSpaceUuidFilterInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceUuidFilterInfoFB.nnext(address(), value); return this; } - /** Sets the address of the specified {@link XrUuidEXT.Buffer} to the {@link XrSpaceUuidFilterInfoFB#uuids} field. */ - public XrSpaceUuidFilterInfoFB.Buffer uuids(@NativeType("XrUuidEXT *") XrUuidEXT.Buffer value) { XrSpaceUuidFilterInfoFB.nuuids(address(), value); return this; } + + /** @return the value of the {@link XrSpaceUuidFilterInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceUuidFilterInfoFB.ntype(address()); } + /** @return the value of the {@link XrSpaceUuidFilterInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSpaceUuidFilterInfoFB.nnext(address()); } + /** @return the value of the {@link XrSpaceUuidFilterInfoFB#uuidCount} field. */ + @NativeType("uint32_t") + public int uuidCount() { return XrSpaceUuidFilterInfoFB.nuuidCount(address()); } + /** @return a {@link XrUuidEXT.Buffer} view of the struct array pointed to by the {@link XrSpaceUuidFilterInfoFB#uuids} field. */ + @NativeType("XrUuidEXT *") + public XrUuidEXT.Buffer uuids() { return XrSpaceUuidFilterInfoFB.nuuids(address()); } + + /** Sets the specified value to the {@link XrSpaceUuidFilterInfoFB#type} field. */ + public XrSpaceUuidFilterInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceUuidFilterInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntityQuery#XR_TYPE_SPACE_UUID_FILTER_INFO_FB TYPE_SPACE_UUID_FILTER_INFO_FB} value to the {@link XrSpaceUuidFilterInfoFB#type} field. */ + public XrSpaceUuidFilterInfoFB.Buffer type$Default() { return type(FBSpatialEntityQuery.XR_TYPE_SPACE_UUID_FILTER_INFO_FB); } + /** Sets the specified value to the {@link XrSpaceUuidFilterInfoFB#next} field. */ + public XrSpaceUuidFilterInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpaceUuidFilterInfoFB.nnext(address(), value); return this; } + /** Sets the address of the specified {@link XrUuidEXT.Buffer} to the {@link XrSpaceUuidFilterInfoFB#uuids} field. */ + public XrSpaceUuidFilterInfoFB.Buffer uuids(@NativeType("XrUuidEXT *") XrUuidEXT.Buffer value) { XrSpaceUuidFilterInfoFB.nuuids(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceVelocity.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceVelocity.java index e234df69e3..65f92bf12e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceVelocity.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpaceVelocity.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Contains info about a space. * @@ -22,7 +22,7 @@ * *
                                                                      *
                                                                    • {@code type} must be {@link XR10#XR_TYPE_SPACE_VELOCITY TYPE_SPACE_VELOCITY}
                                                                    • - *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • + *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • *
                                                                    • {@code velocityFlags} must be 0 or a valid combination of {@code XrSpaceVelocityFlagBits} values
                                                                    • *
                                                                    * @@ -40,8 +40,8 @@ * {@link XrVector3f XrVector3f} {@link #linearVelocity}; * {@link XrVector3f XrVector3f} {@link #angularVelocity}; * } - */ -public class XrSpaceVelocity extends Struct implements NativeResource { + */ +public class XrSpaceVelocity extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,30 +51,30 @@ public class XrSpaceVelocity extends Struct implements NativeRe /** The struct member offsets. */ public static final int - TYPE, - NEXT, - VELOCITYFLAGS, - LINEARVELOCITY, - ANGULARVELOCITY; + TYPE, + NEXT, + VELOCITYFLAGS, + LINEARVELOCITY, + ANGULARVELOCITY; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), - __member(XrVector3f.SIZEOF, XrVector3f.ALIGNOF), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), + __member(XrVector3f.SIZEOF, XrVector3f.ALIGNOF), __member(XrVector3f.SIZEOF, XrVector3f.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - VELOCITYFLAGS = layout.offsetof(2); - LINEARVELOCITY = layout.offsetof(3); - ANGULARVELOCITY = layout.offsetof(4); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + VELOCITYFLAGS = layout.offsetof(2); + LINEARVELOCITY = layout.offsetof(3); + ANGULARVELOCITY = layout.offsetof(4); + } protected XrSpaceVelocity(long address, @Nullable ByteBuffer container) { super(address, container); @@ -97,51 +97,51 @@ public XrSpaceVelocity(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** a bitfield, with bit masks defined in {@code XrSpaceVelocityFlagBits}, to indicate which members contain valid data. If none of the bits are set, no other fields in this structure should be considered to be valid or meaningful. */ - @NativeType("XrSpaceVelocityFlags") - public long velocityFlags() { return nvelocityFlags(address()); } - /** the relative linear velocity of the origin of {@link XR10#xrLocateSpace LocateSpace}{@code ::space} with respect to and expressed in the reference frame of {@link XR10#xrLocateSpace LocateSpace}{@code ::baseSpace}, in units of meters per second. */ - public XrVector3f linearVelocity() { return nlinearVelocity(address()); } - /** the relative angular velocity of {@link XR10#xrLocateSpace LocateSpace}{@code ::space} with respect to {@link XR10#xrLocateSpace LocateSpace}{@code ::baseSpace}. The vector’s direction is expressed in the reference frame of {@link XR10#xrLocateSpace LocateSpace}{@code ::baseSpace} and is parallel to the rotational axis of {@link XR10#xrLocateSpace LocateSpace}{@code ::space}. The vector’s magnitude is the relative angular speed of {@link XR10#xrLocateSpace LocateSpace}{@code ::space} in radians per second. The vector follows the right-hand rule for torque/rotation. */ - public XrVector3f angularVelocity() { return nangularVelocity(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSpaceVelocity type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SPACE_VELOCITY TYPE_SPACE_VELOCITY} value to the {@link #type} field. */ - public XrSpaceVelocity type$Default() { return type(XR10.XR_TYPE_SPACE_VELOCITY); } - /** Sets the specified value to the {@link #next} field. */ - public XrSpaceVelocity next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #velocityFlags} field. */ - public XrSpaceVelocity velocityFlags(@NativeType("XrSpaceVelocityFlags") long value) { nvelocityFlags(address(), value); return this; } - /** Copies the specified {@link XrVector3f} to the {@link #linearVelocity} field. */ - public XrSpaceVelocity linearVelocity(XrVector3f value) { nlinearVelocity(address(), value); return this; } - /** Passes the {@link #linearVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpaceVelocity linearVelocity(java.util.function.Consumer consumer) { consumer.accept(linearVelocity()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link #angularVelocity} field. */ - public XrSpaceVelocity angularVelocity(XrVector3f value) { nangularVelocity(address(), value); return this; } - /** Passes the {@link #angularVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpaceVelocity angularVelocity(java.util.function.Consumer consumer) { consumer.accept(angularVelocity()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** a bitfield, with bit masks defined in {@code XrSpaceVelocityFlagBits}, to indicate which members contain valid data. If none of the bits are set, no other fields in this structure should be considered to be valid or meaningful. */ + @NativeType("XrSpaceVelocityFlags") + public long velocityFlags() { return nvelocityFlags(address()); } + /** the relative linear velocity of the origin of {@link XR10#xrLocateSpace LocateSpace}{@code ::space} with respect to and expressed in the reference frame of {@link XR10#xrLocateSpace LocateSpace}{@code ::baseSpace}, in units of meters per second. */ + public XrVector3f linearVelocity() { return nlinearVelocity(address()); } + /** the relative angular velocity of {@link XR10#xrLocateSpace LocateSpace}{@code ::space} with respect to {@link XR10#xrLocateSpace LocateSpace}{@code ::baseSpace}. The vector’s direction is expressed in the reference frame of {@link XR10#xrLocateSpace LocateSpace}{@code ::baseSpace} and is parallel to the rotational axis of {@link XR10#xrLocateSpace LocateSpace}{@code ::space}. The vector’s magnitude is the relative angular speed of {@link XR10#xrLocateSpace LocateSpace}{@code ::space} in radians per second. The vector follows the right-hand rule for torque/rotation. */ + public XrVector3f angularVelocity() { return nangularVelocity(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpaceVelocity type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SPACE_VELOCITY TYPE_SPACE_VELOCITY} value to the {@link #type} field. */ + public XrSpaceVelocity type$Default() { return type(XR10.XR_TYPE_SPACE_VELOCITY); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpaceVelocity next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #velocityFlags} field. */ + public XrSpaceVelocity velocityFlags(@NativeType("XrSpaceVelocityFlags") long value) { nvelocityFlags(address(), value); return this; } + /** Copies the specified {@link XrVector3f} to the {@link #linearVelocity} field. */ + public XrSpaceVelocity linearVelocity(XrVector3f value) { nlinearVelocity(address(), value); return this; } + /** Passes the {@link #linearVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpaceVelocity linearVelocity(java.util.function.Consumer consumer) { consumer.accept(linearVelocity()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link #angularVelocity} field. */ + public XrSpaceVelocity angularVelocity(XrVector3f value) { nangularVelocity(address(), value); return this; } + /** Passes the {@link #angularVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpaceVelocity angularVelocity(java.util.function.Consumer consumer) { consumer.accept(angularVelocity()); return this; } /** Initializes this struct with the specified values. */ public XrSpaceVelocity set( - int type, - long next, - long velocityFlags, - XrVector3f linearVelocity, + int type, + long next, + long velocityFlags, + XrVector3f linearVelocity, XrVector3f angularVelocity - ) { - type(type); - next(next); - velocityFlags(velocityFlags); - linearVelocity(linearVelocity); - angularVelocity(angularVelocity); + ) { + type(type); + next(next); + velocityFlags(velocityFlags); + linearVelocity(linearVelocity); + angularVelocity(angularVelocity); return this; } @@ -270,30 +270,30 @@ public static XrSpaceVelocity.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceVelocity.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpaceVelocity.NEXT); } - /** Unsafe version of {@link #velocityFlags}. */ - public static long nvelocityFlags(long struct) { return UNSAFE.getLong(null, struct + XrSpaceVelocity.VELOCITYFLAGS); } - /** Unsafe version of {@link #linearVelocity}. */ - public static XrVector3f nlinearVelocity(long struct) { return XrVector3f.create(struct + XrSpaceVelocity.LINEARVELOCITY); } - /** Unsafe version of {@link #angularVelocity}. */ - public static XrVector3f nangularVelocity(long struct) { return XrVector3f.create(struct + XrSpaceVelocity.ANGULARVELOCITY); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceVelocity.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceVelocity.NEXT, value); } - /** Unsafe version of {@link #velocityFlags(long) velocityFlags}. */ - public static void nvelocityFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrSpaceVelocity.VELOCITYFLAGS, value); } - /** Unsafe version of {@link #linearVelocity(XrVector3f) linearVelocity}. */ - public static void nlinearVelocity(long struct, XrVector3f value) { memCopy(value.address(), struct + XrSpaceVelocity.LINEARVELOCITY, XrVector3f.SIZEOF); } - /** Unsafe version of {@link #angularVelocity(XrVector3f) angularVelocity}. */ - public static void nangularVelocity(long struct, XrVector3f value) { memCopy(value.address(), struct + XrSpaceVelocity.ANGULARVELOCITY, XrVector3f.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpaceVelocity.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpaceVelocity.NEXT); } + /** Unsafe version of {@link #velocityFlags}. */ + public static long nvelocityFlags(long struct) { return UNSAFE.getLong(null, struct + XrSpaceVelocity.VELOCITYFLAGS); } + /** Unsafe version of {@link #linearVelocity}. */ + public static XrVector3f nlinearVelocity(long struct) { return XrVector3f.create(struct + XrSpaceVelocity.LINEARVELOCITY); } + /** Unsafe version of {@link #angularVelocity}. */ + public static XrVector3f nangularVelocity(long struct) { return XrVector3f.create(struct + XrSpaceVelocity.ANGULARVELOCITY); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpaceVelocity.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpaceVelocity.NEXT, value); } + /** Unsafe version of {@link #velocityFlags(long) velocityFlags}. */ + public static void nvelocityFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrSpaceVelocity.VELOCITYFLAGS, value); } + /** Unsafe version of {@link #linearVelocity(XrVector3f) linearVelocity}. */ + public static void nlinearVelocity(long struct, XrVector3f value) { memCopy(value.address(), struct + XrSpaceVelocity.LINEARVELOCITY, XrVector3f.SIZEOF); } + /** Unsafe version of {@link #angularVelocity(XrVector3f) angularVelocity}. */ + public static void nangularVelocity(long struct, XrVector3f value) { memCopy(value.address(), struct + XrSpaceVelocity.ANGULARVELOCITY, XrVector3f.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrSpaceVelocity} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -330,37 +330,37 @@ protected Buffer self() { protected XrSpaceVelocity getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpaceVelocity#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpaceVelocity.ntype(address()); } - /** @return the value of the {@link XrSpaceVelocity#next} field. */ - @NativeType("void *") - public long next() { return XrSpaceVelocity.nnext(address()); } - /** @return the value of the {@link XrSpaceVelocity#velocityFlags} field. */ - @NativeType("XrSpaceVelocityFlags") - public long velocityFlags() { return XrSpaceVelocity.nvelocityFlags(address()); } - /** @return a {@link XrVector3f} view of the {@link XrSpaceVelocity#linearVelocity} field. */ - public XrVector3f linearVelocity() { return XrSpaceVelocity.nlinearVelocity(address()); } - /** @return a {@link XrVector3f} view of the {@link XrSpaceVelocity#angularVelocity} field. */ - public XrVector3f angularVelocity() { return XrSpaceVelocity.nangularVelocity(address()); } - - /** Sets the specified value to the {@link XrSpaceVelocity#type} field. */ - public XrSpaceVelocity.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceVelocity.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SPACE_VELOCITY TYPE_SPACE_VELOCITY} value to the {@link XrSpaceVelocity#type} field. */ - public XrSpaceVelocity.Buffer type$Default() { return type(XR10.XR_TYPE_SPACE_VELOCITY); } - /** Sets the specified value to the {@link XrSpaceVelocity#next} field. */ - public XrSpaceVelocity.Buffer next(@NativeType("void *") long value) { XrSpaceVelocity.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpaceVelocity#velocityFlags} field. */ - public XrSpaceVelocity.Buffer velocityFlags(@NativeType("XrSpaceVelocityFlags") long value) { XrSpaceVelocity.nvelocityFlags(address(), value); return this; } - /** Copies the specified {@link XrVector3f} to the {@link XrSpaceVelocity#linearVelocity} field. */ - public XrSpaceVelocity.Buffer linearVelocity(XrVector3f value) { XrSpaceVelocity.nlinearVelocity(address(), value); return this; } - /** Passes the {@link XrSpaceVelocity#linearVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpaceVelocity.Buffer linearVelocity(java.util.function.Consumer consumer) { consumer.accept(linearVelocity()); return this; } - /** Copies the specified {@link XrVector3f} to the {@link XrSpaceVelocity#angularVelocity} field. */ - public XrSpaceVelocity.Buffer angularVelocity(XrVector3f value) { XrSpaceVelocity.nangularVelocity(address(), value); return this; } - /** Passes the {@link XrSpaceVelocity#angularVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpaceVelocity.Buffer angularVelocity(java.util.function.Consumer consumer) { consumer.accept(angularVelocity()); return this; } + + /** @return the value of the {@link XrSpaceVelocity#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpaceVelocity.ntype(address()); } + /** @return the value of the {@link XrSpaceVelocity#next} field. */ + @NativeType("void *") + public long next() { return XrSpaceVelocity.nnext(address()); } + /** @return the value of the {@link XrSpaceVelocity#velocityFlags} field. */ + @NativeType("XrSpaceVelocityFlags") + public long velocityFlags() { return XrSpaceVelocity.nvelocityFlags(address()); } + /** @return a {@link XrVector3f} view of the {@link XrSpaceVelocity#linearVelocity} field. */ + public XrVector3f linearVelocity() { return XrSpaceVelocity.nlinearVelocity(address()); } + /** @return a {@link XrVector3f} view of the {@link XrSpaceVelocity#angularVelocity} field. */ + public XrVector3f angularVelocity() { return XrSpaceVelocity.nangularVelocity(address()); } + + /** Sets the specified value to the {@link XrSpaceVelocity#type} field. */ + public XrSpaceVelocity.Buffer type(@NativeType("XrStructureType") int value) { XrSpaceVelocity.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SPACE_VELOCITY TYPE_SPACE_VELOCITY} value to the {@link XrSpaceVelocity#type} field. */ + public XrSpaceVelocity.Buffer type$Default() { return type(XR10.XR_TYPE_SPACE_VELOCITY); } + /** Sets the specified value to the {@link XrSpaceVelocity#next} field. */ + public XrSpaceVelocity.Buffer next(@NativeType("void *") long value) { XrSpaceVelocity.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpaceVelocity#velocityFlags} field. */ + public XrSpaceVelocity.Buffer velocityFlags(@NativeType("XrSpaceVelocityFlags") long value) { XrSpaceVelocity.nvelocityFlags(address(), value); return this; } + /** Copies the specified {@link XrVector3f} to the {@link XrSpaceVelocity#linearVelocity} field. */ + public XrSpaceVelocity.Buffer linearVelocity(XrVector3f value) { XrSpaceVelocity.nlinearVelocity(address(), value); return this; } + /** Passes the {@link XrSpaceVelocity#linearVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpaceVelocity.Buffer linearVelocity(java.util.function.Consumer consumer) { consumer.accept(linearVelocity()); return this; } + /** Copies the specified {@link XrVector3f} to the {@link XrSpaceVelocity#angularVelocity} field. */ + public XrSpaceVelocity.Buffer angularVelocity(XrVector3f value) { XrSpaceVelocity.nangularVelocity(address(), value); return this; } + /** Passes the {@link XrSpaceVelocity#angularVelocity} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpaceVelocity.Buffer angularVelocity(java.util.function.Consumer consumer) { consumer.accept(angularVelocity()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorCreateInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorCreateInfoFB.java index 2765fddcec..473aaccc4b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorCreateInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorCreateInfoFB.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Parameters to create a new spatial anchor. * @@ -28,7 +28,7 @@ *
                                                                      *
                                                                    • The {@link FBSpatialEntity XR_FB_spatial_entity} extension must be enabled prior to using {@link XrSpatialAnchorCreateInfoFB}
                                                                    • *
                                                                    • {@code type} must be {@link FBSpatialEntity#XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB}
                                                                    • - *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • + *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • *
                                                                    • {@code space} must be a valid {@code XrSpace} handle
                                                                    • *
                                                                    * @@ -46,8 +46,8 @@ * {@link XrPosef XrPosef} {@link #poseInSpace}; * XrTime {@link #time}; * } - */ -public class XrSpatialAnchorCreateInfoFB extends Struct implements NativeResource { + */ +public class XrSpatialAnchorCreateInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,30 +57,30 @@ public class XrSpatialAnchorCreateInfoFB extends Struct consumer) { consumer.accept(poseInSpace()); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrSpatialAnchorCreateInfoFB time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the {@code XrSpace} handle to the reference space that defines the {@code poseInSpace} of the anchor to be defined. */ + @NativeType("XrSpace") + public long space() { return nspace(address()); } + /** the {@link XrPosef} location and orientation of the Spatial Anchor in the specified reference space. */ + public XrPosef poseInSpace() { return nposeInSpace(address()); } + /** the {@code XrTime} timestamp associated with the specified pose. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpatialAnchorCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntity#XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB} value to the {@link #type} field. */ + public XrSpatialAnchorCreateInfoFB type$Default() { return type(FBSpatialEntity.XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpatialAnchorCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #space} field. */ + public XrSpatialAnchorCreateInfoFB space(XrSpace value) { nspace(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #poseInSpace} field. */ + public XrSpatialAnchorCreateInfoFB poseInSpace(XrPosef value) { nposeInSpace(address(), value); return this; } + /** Passes the {@link #poseInSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialAnchorCreateInfoFB poseInSpace(java.util.function.Consumer consumer) { consumer.accept(poseInSpace()); return this; } + /** Sets the specified value to the {@link #time} field. */ + public XrSpatialAnchorCreateInfoFB time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpatialAnchorCreateInfoFB set( - int type, - long next, - XrSpace space, - XrPosef poseInSpace, + int type, + long next, + XrSpace space, + XrPosef poseInSpace, long time - ) { - type(type); - next(next); - space(space); - poseInSpace(poseInSpace); - time(time); + ) { + type(type); + next(next); + space(space); + poseInSpace(poseInSpace); + time(time); return this; } @@ -275,28 +275,28 @@ public static XrSpatialAnchorCreateInfoFB.Buffer calloc(int capacity, MemoryStac } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpatialAnchorCreateInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpatialAnchorCreateInfoFB.NEXT); } - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrSpatialAnchorCreateInfoFB.SPACE); } - /** Unsafe version of {@link #poseInSpace}. */ - public static XrPosef nposeInSpace(long struct) { return XrPosef.create(struct + XrSpatialAnchorCreateInfoFB.POSEINSPACE); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrSpatialAnchorCreateInfoFB.TIME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialAnchorCreateInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialAnchorCreateInfoFB.NEXT, value); } - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrSpatialAnchorCreateInfoFB.SPACE, value.address()); } - /** Unsafe version of {@link #poseInSpace(XrPosef) poseInSpace}. */ - public static void nposeInSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpatialAnchorCreateInfoFB.POSEINSPACE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrSpatialAnchorCreateInfoFB.TIME, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpatialAnchorCreateInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpatialAnchorCreateInfoFB.NEXT); } + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrSpatialAnchorCreateInfoFB.SPACE); } + /** Unsafe version of {@link #poseInSpace}. */ + public static XrPosef nposeInSpace(long struct) { return XrPosef.create(struct + XrSpatialAnchorCreateInfoFB.POSEINSPACE); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrSpatialAnchorCreateInfoFB.TIME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialAnchorCreateInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialAnchorCreateInfoFB.NEXT, value); } + /** Unsafe version of {@link #space(XrSpace) space}. */ + public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrSpatialAnchorCreateInfoFB.SPACE, value.address()); } + /** Unsafe version of {@link #poseInSpace(XrPosef) poseInSpace}. */ + public static void nposeInSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpatialAnchorCreateInfoFB.POSEINSPACE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrSpatialAnchorCreateInfoFB.TIME, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -305,9 +305,9 @@ public static XrSpatialAnchorCreateInfoFB.Buffer calloc(int capacity, MemoryStac */ public static void validate(long struct) { check(memGetAddress(struct + XrSpatialAnchorCreateInfoFB.SPACE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSpatialAnchorCreateInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -344,36 +344,36 @@ protected Buffer self() { protected XrSpatialAnchorCreateInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpatialAnchorCreateInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpatialAnchorCreateInfoFB.ntype(address()); } - /** @return the value of the {@link XrSpatialAnchorCreateInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSpatialAnchorCreateInfoFB.nnext(address()); } - /** @return the value of the {@link XrSpatialAnchorCreateInfoFB#space} field. */ - @NativeType("XrSpace") - public long space() { return XrSpatialAnchorCreateInfoFB.nspace(address()); } - /** @return a {@link XrPosef} view of the {@link XrSpatialAnchorCreateInfoFB#poseInSpace} field. */ - public XrPosef poseInSpace() { return XrSpatialAnchorCreateInfoFB.nposeInSpace(address()); } - /** @return the value of the {@link XrSpatialAnchorCreateInfoFB#time} field. */ - @NativeType("XrTime") - public long time() { return XrSpatialAnchorCreateInfoFB.ntime(address()); } - - /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoFB#type} field. */ - public XrSpatialAnchorCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialAnchorCreateInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntity#XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB} value to the {@link XrSpatialAnchorCreateInfoFB#type} field. */ - public XrSpatialAnchorCreateInfoFB.Buffer type$Default() { return type(FBSpatialEntity.XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB); } - /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoFB#next} field. */ - public XrSpatialAnchorCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpatialAnchorCreateInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoFB#space} field. */ - public XrSpatialAnchorCreateInfoFB.Buffer space(XrSpace value) { XrSpatialAnchorCreateInfoFB.nspace(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrSpatialAnchorCreateInfoFB#poseInSpace} field. */ - public XrSpatialAnchorCreateInfoFB.Buffer poseInSpace(XrPosef value) { XrSpatialAnchorCreateInfoFB.nposeInSpace(address(), value); return this; } - /** Passes the {@link XrSpatialAnchorCreateInfoFB#poseInSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpatialAnchorCreateInfoFB.Buffer poseInSpace(java.util.function.Consumer consumer) { consumer.accept(poseInSpace()); return this; } - /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoFB#time} field. */ - public XrSpatialAnchorCreateInfoFB.Buffer time(@NativeType("XrTime") long value) { XrSpatialAnchorCreateInfoFB.ntime(address(), value); return this; } + + /** @return the value of the {@link XrSpatialAnchorCreateInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpatialAnchorCreateInfoFB.ntype(address()); } + /** @return the value of the {@link XrSpatialAnchorCreateInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSpatialAnchorCreateInfoFB.nnext(address()); } + /** @return the value of the {@link XrSpatialAnchorCreateInfoFB#space} field. */ + @NativeType("XrSpace") + public long space() { return XrSpatialAnchorCreateInfoFB.nspace(address()); } + /** @return a {@link XrPosef} view of the {@link XrSpatialAnchorCreateInfoFB#poseInSpace} field. */ + public XrPosef poseInSpace() { return XrSpatialAnchorCreateInfoFB.nposeInSpace(address()); } + /** @return the value of the {@link XrSpatialAnchorCreateInfoFB#time} field. */ + @NativeType("XrTime") + public long time() { return XrSpatialAnchorCreateInfoFB.ntime(address()); } + + /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoFB#type} field. */ + public XrSpatialAnchorCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialAnchorCreateInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntity#XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB} value to the {@link XrSpatialAnchorCreateInfoFB#type} field. */ + public XrSpatialAnchorCreateInfoFB.Buffer type$Default() { return type(FBSpatialEntity.XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_FB); } + /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoFB#next} field. */ + public XrSpatialAnchorCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrSpatialAnchorCreateInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoFB#space} field. */ + public XrSpatialAnchorCreateInfoFB.Buffer space(XrSpace value) { XrSpatialAnchorCreateInfoFB.nspace(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrSpatialAnchorCreateInfoFB#poseInSpace} field. */ + public XrSpatialAnchorCreateInfoFB.Buffer poseInSpace(XrPosef value) { XrSpatialAnchorCreateInfoFB.nposeInSpace(address(), value); return this; } + /** Passes the {@link XrSpatialAnchorCreateInfoFB#poseInSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialAnchorCreateInfoFB.Buffer poseInSpace(java.util.function.Consumer consumer) { consumer.accept(poseInSpace()); return this; } + /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoFB#time} field. */ + public XrSpatialAnchorCreateInfoFB.Buffer time(@NativeType("XrTime") long value) { XrSpatialAnchorCreateInfoFB.ntime(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorCreateInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorCreateInfoMSFT.java index fd5127c34e..f062267632 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorCreateInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorCreateInfoMSFT.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Information to create a spatial anchor. * @@ -24,7 +24,7 @@ *
                                                                      *
                                                                    • The {@link MSFTSpatialAnchor XR_MSFT_spatial_anchor} extension must be enabled prior to using {@link XrSpatialAnchorCreateInfoMSFT}
                                                                    • *
                                                                    • {@code type} must be {@link MSFTSpatialAnchor#XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT}
                                                                    • - *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • + *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • *
                                                                    • {@code space} must be a valid {@code XrSpace} handle
                                                                    • *
                                                                    * @@ -42,8 +42,8 @@ * {@link XrPosef XrPosef} {@link #pose}; * XrTime {@link #time}; * } - */ -public class XrSpatialAnchorCreateInfoMSFT extends Struct implements NativeResource { + */ +public class XrSpatialAnchorCreateInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,30 +53,30 @@ public class XrSpatialAnchorCreateInfoMSFT extends Struct consumer) { consumer.accept(pose()); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrSpatialAnchorCreateInfoMSFT time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** a handle to the {@code XrSpace} in which {@code pose} is specified. */ + @NativeType("XrSpace") + public long space() { return nspace(address()); } + /** the {@link XrPosef} within {@code space} at {@code time} that specifies the point in the real world used to initialize the new anchor. */ + public XrPosef pose() { return npose(address()); } + /** the {@code XrTime} at which {@code pose} will be evaluated within {@code space}. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpatialAnchorCreateInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialAnchor#XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT} value to the {@link #type} field. */ + public XrSpatialAnchorCreateInfoMSFT type$Default() { return type(MSFTSpatialAnchor.XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpatialAnchorCreateInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #space} field. */ + public XrSpatialAnchorCreateInfoMSFT space(XrSpace value) { nspace(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrSpatialAnchorCreateInfoMSFT pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialAnchorCreateInfoMSFT pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Sets the specified value to the {@link #time} field. */ + public XrSpatialAnchorCreateInfoMSFT time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpatialAnchorCreateInfoMSFT set( - int type, - long next, - XrSpace space, - XrPosef pose, + int type, + long next, + XrSpace space, + XrPosef pose, long time - ) { - type(type); - next(next); - space(space); - pose(pose); - time(time); + ) { + type(type); + next(next); + space(space); + pose(pose); + time(time); return this; } @@ -271,28 +271,28 @@ public static XrSpatialAnchorCreateInfoMSFT.Buffer calloc(int capacity, MemorySt } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpatialAnchorCreateInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpatialAnchorCreateInfoMSFT.NEXT); } - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrSpatialAnchorCreateInfoMSFT.SPACE); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrSpatialAnchorCreateInfoMSFT.POSE); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrSpatialAnchorCreateInfoMSFT.TIME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialAnchorCreateInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialAnchorCreateInfoMSFT.NEXT, value); } - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrSpatialAnchorCreateInfoMSFT.SPACE, value.address()); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpatialAnchorCreateInfoMSFT.POSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrSpatialAnchorCreateInfoMSFT.TIME, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpatialAnchorCreateInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpatialAnchorCreateInfoMSFT.NEXT); } + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrSpatialAnchorCreateInfoMSFT.SPACE); } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrSpatialAnchorCreateInfoMSFT.POSE); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrSpatialAnchorCreateInfoMSFT.TIME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialAnchorCreateInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialAnchorCreateInfoMSFT.NEXT, value); } + /** Unsafe version of {@link #space(XrSpace) space}. */ + public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrSpatialAnchorCreateInfoMSFT.SPACE, value.address()); } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpatialAnchorCreateInfoMSFT.POSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrSpatialAnchorCreateInfoMSFT.TIME, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -301,9 +301,9 @@ public static XrSpatialAnchorCreateInfoMSFT.Buffer calloc(int capacity, MemorySt */ public static void validate(long struct) { check(memGetAddress(struct + XrSpatialAnchorCreateInfoMSFT.SPACE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSpatialAnchorCreateInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -340,36 +340,36 @@ protected Buffer self() { protected XrSpatialAnchorCreateInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpatialAnchorCreateInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpatialAnchorCreateInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSpatialAnchorCreateInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSpatialAnchorCreateInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSpatialAnchorCreateInfoMSFT#space} field. */ - @NativeType("XrSpace") - public long space() { return XrSpatialAnchorCreateInfoMSFT.nspace(address()); } - /** @return a {@link XrPosef} view of the {@link XrSpatialAnchorCreateInfoMSFT#pose} field. */ - public XrPosef pose() { return XrSpatialAnchorCreateInfoMSFT.npose(address()); } - /** @return the value of the {@link XrSpatialAnchorCreateInfoMSFT#time} field. */ - @NativeType("XrTime") - public long time() { return XrSpatialAnchorCreateInfoMSFT.ntime(address()); } - - /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoMSFT#type} field. */ - public XrSpatialAnchorCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialAnchorCreateInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSpatialAnchor#XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT} value to the {@link XrSpatialAnchorCreateInfoMSFT#type} field. */ - public XrSpatialAnchorCreateInfoMSFT.Buffer type$Default() { return type(MSFTSpatialAnchor.XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT); } - /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoMSFT#next} field. */ - public XrSpatialAnchorCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialAnchorCreateInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoMSFT#space} field. */ - public XrSpatialAnchorCreateInfoMSFT.Buffer space(XrSpace value) { XrSpatialAnchorCreateInfoMSFT.nspace(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrSpatialAnchorCreateInfoMSFT#pose} field. */ - public XrSpatialAnchorCreateInfoMSFT.Buffer pose(XrPosef value) { XrSpatialAnchorCreateInfoMSFT.npose(address(), value); return this; } - /** Passes the {@link XrSpatialAnchorCreateInfoMSFT#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpatialAnchorCreateInfoMSFT.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoMSFT#time} field. */ - public XrSpatialAnchorCreateInfoMSFT.Buffer time(@NativeType("XrTime") long value) { XrSpatialAnchorCreateInfoMSFT.ntime(address(), value); return this; } + + /** @return the value of the {@link XrSpatialAnchorCreateInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpatialAnchorCreateInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSpatialAnchorCreateInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSpatialAnchorCreateInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSpatialAnchorCreateInfoMSFT#space} field. */ + @NativeType("XrSpace") + public long space() { return XrSpatialAnchorCreateInfoMSFT.nspace(address()); } + /** @return a {@link XrPosef} view of the {@link XrSpatialAnchorCreateInfoMSFT#pose} field. */ + public XrPosef pose() { return XrSpatialAnchorCreateInfoMSFT.npose(address()); } + /** @return the value of the {@link XrSpatialAnchorCreateInfoMSFT#time} field. */ + @NativeType("XrTime") + public long time() { return XrSpatialAnchorCreateInfoMSFT.ntime(address()); } + + /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoMSFT#type} field. */ + public XrSpatialAnchorCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialAnchorCreateInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialAnchor#XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT} value to the {@link XrSpatialAnchorCreateInfoMSFT#type} field. */ + public XrSpatialAnchorCreateInfoMSFT.Buffer type$Default() { return type(MSFTSpatialAnchor.XR_TYPE_SPATIAL_ANCHOR_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoMSFT#next} field. */ + public XrSpatialAnchorCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialAnchorCreateInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoMSFT#space} field. */ + public XrSpatialAnchorCreateInfoMSFT.Buffer space(XrSpace value) { XrSpatialAnchorCreateInfoMSFT.nspace(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrSpatialAnchorCreateInfoMSFT#pose} field. */ + public XrSpatialAnchorCreateInfoMSFT.Buffer pose(XrPosef value) { XrSpatialAnchorCreateInfoMSFT.npose(address(), value); return this; } + /** Passes the {@link XrSpatialAnchorCreateInfoMSFT#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialAnchorCreateInfoMSFT.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Sets the specified value to the {@link XrSpatialAnchorCreateInfoMSFT#time} field. */ + public XrSpatialAnchorCreateInfoMSFT.Buffer time(@NativeType("XrTime") long value) { XrSpatialAnchorCreateInfoMSFT.ntime(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.java index 586e2bc150..318b2e7fa2 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Creation info for creating a spatial anchor handle from a persisted anchor. * @@ -28,7 +28,7 @@ *
                                                                      *
                                                                    • The {@link MSFTSpatialAnchorPersistence XR_MSFT_spatial_anchor_persistence} extension must be enabled prior to using {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT}
                                                                    • *
                                                                    • {@code type} must be {@link MSFTSpatialAnchorPersistence#XR_TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT}
                                                                    • - *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • + *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • *
                                                                    • {@code spatialAnchorStore} must be a valid {@code XrSpatialAnchorStoreConnectionMSFT} handle
                                                                    • *
                                                                    • {@code spatialAnchorPersistenceName} must be a valid {@link XrSpatialAnchorPersistenceNameMSFT} structure
                                                                    • *
                                                                    @@ -46,8 +46,8 @@ * XrSpatialAnchorStoreConnectionMSFT {@link #spatialAnchorStore}; * {@link XrSpatialAnchorPersistenceNameMSFT XrSpatialAnchorPersistenceNameMSFT} {@link #spatialAnchorPersistenceName}; * } - */ -public class XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT extends Struct implements NativeResource { + */ +public class XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,27 +57,27 @@ public class XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT extends Struct consumer) { consumer.accept(spatialAnchorPersistenceName()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the {@code XrSpatialAnchorStoreConnectionMSFT} from which the spatial anchor will be loaded from. */ + @NativeType("XrSpatialAnchorStoreConnectionMSFT") + public long spatialAnchorStore() { return nspatialAnchorStore(address()); } + /** the {@link XrSpatialAnchorPersistenceNameMSFT} associated with the {@code XrSpatialAnchorMSFT} in the spatial anchor store. This name is used to create an {@code XrSpatialAnchorMSFT} handle from a spatial anchor persisted in the spatial anchor store. */ + public XrSpatialAnchorPersistenceNameMSFT spatialAnchorPersistenceName() { return nspatialAnchorPersistenceName(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialAnchorPersistence#XR_TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT} value to the {@link #type} field. */ + public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT type$Default() { return type(MSFTSpatialAnchorPersistence.XR_TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #spatialAnchorStore} field. */ + public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT spatialAnchorStore(XrSpatialAnchorStoreConnectionMSFT value) { nspatialAnchorStore(address(), value); return this; } + /** Copies the specified {@link XrSpatialAnchorPersistenceNameMSFT} to the {@link #spatialAnchorPersistenceName} field. */ + public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT spatialAnchorPersistenceName(XrSpatialAnchorPersistenceNameMSFT value) { nspatialAnchorPersistenceName(address(), value); return this; } + /** Passes the {@link #spatialAnchorPersistenceName} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT spatialAnchorPersistenceName(java.util.function.Consumer consumer) { consumer.accept(spatialAnchorPersistenceName()); return this; } /** Initializes this struct with the specified values. */ public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT set( - int type, - long next, - XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, + int type, + long next, + XrSpatialAnchorStoreConnectionMSFT spatialAnchorStore, XrSpatialAnchorPersistenceNameMSFT spatialAnchorPersistenceName - ) { - type(type); - next(next); - spatialAnchorStore(spatialAnchorStore); - spatialAnchorPersistenceName(spatialAnchorPersistenceName); + ) { + type(type); + next(next); + spatialAnchorStore(spatialAnchorStore); + spatialAnchorPersistenceName(spatialAnchorPersistenceName); return this; } @@ -265,24 +265,24 @@ public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer calloc(int } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.NEXT); } - /** Unsafe version of {@link #spatialAnchorStore}. */ - public static long nspatialAnchorStore(long struct) { return memGetAddress(struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.SPATIALANCHORSTORE); } - /** Unsafe version of {@link #spatialAnchorPersistenceName}. */ - public static XrSpatialAnchorPersistenceNameMSFT nspatialAnchorPersistenceName(long struct) { return XrSpatialAnchorPersistenceNameMSFT.create(struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.SPATIALANCHORPERSISTENCENAME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.NEXT, value); } - /** Unsafe version of {@link #spatialAnchorStore(XrSpatialAnchorStoreConnectionMSFT) spatialAnchorStore}. */ - public static void nspatialAnchorStore(long struct, XrSpatialAnchorStoreConnectionMSFT value) { memPutAddress(struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.SPATIALANCHORSTORE, value.address()); } - /** Unsafe version of {@link #spatialAnchorPersistenceName(XrSpatialAnchorPersistenceNameMSFT) spatialAnchorPersistenceName}. */ - public static void nspatialAnchorPersistenceName(long struct, XrSpatialAnchorPersistenceNameMSFT value) { memCopy(value.address(), struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.SPATIALANCHORPERSISTENCENAME, XrSpatialAnchorPersistenceNameMSFT.SIZEOF); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.NEXT); } + /** Unsafe version of {@link #spatialAnchorStore}. */ + public static long nspatialAnchorStore(long struct) { return memGetAddress(struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.SPATIALANCHORSTORE); } + /** Unsafe version of {@link #spatialAnchorPersistenceName}. */ + public static XrSpatialAnchorPersistenceNameMSFT nspatialAnchorPersistenceName(long struct) { return XrSpatialAnchorPersistenceNameMSFT.create(struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.SPATIALANCHORPERSISTENCENAME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.NEXT, value); } + /** Unsafe version of {@link #spatialAnchorStore(XrSpatialAnchorStoreConnectionMSFT) spatialAnchorStore}. */ + public static void nspatialAnchorStore(long struct, XrSpatialAnchorStoreConnectionMSFT value) { memPutAddress(struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.SPATIALANCHORSTORE, value.address()); } + /** Unsafe version of {@link #spatialAnchorPersistenceName(XrSpatialAnchorPersistenceNameMSFT) spatialAnchorPersistenceName}. */ + public static void nspatialAnchorPersistenceName(long struct, XrSpatialAnchorPersistenceNameMSFT value) { memCopy(value.address(), struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.SPATIALANCHORPERSISTENCENAME, XrSpatialAnchorPersistenceNameMSFT.SIZEOF); } /** * Validates pointer members that should not be {@code NULL}. @@ -291,9 +291,9 @@ public static XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer calloc(int */ public static void validate(long struct) { check(memGetAddress(struct + XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.SPATIALANCHORSTORE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -330,31 +330,31 @@ protected Buffer self() { protected XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#spatialAnchorStore} field. */ - @NativeType("XrSpatialAnchorStoreConnectionMSFT") - public long spatialAnchorStore() { return XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.nspatialAnchorStore(address()); } - /** @return a {@link XrSpatialAnchorPersistenceNameMSFT} view of the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#spatialAnchorPersistenceName} field. */ - public XrSpatialAnchorPersistenceNameMSFT spatialAnchorPersistenceName() { return XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.nspatialAnchorPersistenceName(address()); } - - /** Sets the specified value to the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#type} field. */ - public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSpatialAnchorPersistence#XR_TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT} value to the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#type} field. */ - public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer type$Default() { return type(MSFTSpatialAnchorPersistence.XR_TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT); } - /** Sets the specified value to the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#next} field. */ - public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#spatialAnchorStore} field. */ - public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer spatialAnchorStore(XrSpatialAnchorStoreConnectionMSFT value) { XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.nspatialAnchorStore(address(), value); return this; } - /** Copies the specified {@link XrSpatialAnchorPersistenceNameMSFT} to the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#spatialAnchorPersistenceName} field. */ - public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer spatialAnchorPersistenceName(XrSpatialAnchorPersistenceNameMSFT value) { XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.nspatialAnchorPersistenceName(address(), value); return this; } - /** Passes the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#spatialAnchorPersistenceName} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer spatialAnchorPersistenceName(java.util.function.Consumer consumer) { consumer.accept(spatialAnchorPersistenceName()); return this; } + + /** @return the value of the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#spatialAnchorStore} field. */ + @NativeType("XrSpatialAnchorStoreConnectionMSFT") + public long spatialAnchorStore() { return XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.nspatialAnchorStore(address()); } + /** @return a {@link XrSpatialAnchorPersistenceNameMSFT} view of the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#spatialAnchorPersistenceName} field. */ + public XrSpatialAnchorPersistenceNameMSFT spatialAnchorPersistenceName() { return XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.nspatialAnchorPersistenceName(address()); } + + /** Sets the specified value to the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#type} field. */ + public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialAnchorPersistence#XR_TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT} value to the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#type} field. */ + public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer type$Default() { return type(MSFTSpatialAnchorPersistence.XR_TYPE_SPATIAL_ANCHOR_FROM_PERSISTED_ANCHOR_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#next} field. */ + public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#spatialAnchorStore} field. */ + public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer spatialAnchorStore(XrSpatialAnchorStoreConnectionMSFT value) { XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.nspatialAnchorStore(address(), value); return this; } + /** Copies the specified {@link XrSpatialAnchorPersistenceNameMSFT} to the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#spatialAnchorPersistenceName} field. */ + public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer spatialAnchorPersistenceName(XrSpatialAnchorPersistenceNameMSFT value) { XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.nspatialAnchorPersistenceName(address(), value); return this; } + /** Passes the {@link XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT#spatialAnchorPersistenceName} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT.Buffer spatialAnchorPersistenceName(java.util.function.Consumer consumer) { consumer.accept(spatialAnchorPersistenceName()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorMSFT.java index e8a3b1036d..40e5b061d7 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorMSFT.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrSpatialAnchorMSFT} handle. */ + +/** Wraps an {@code XrSpatialAnchorMSFT} handle. */ public class XrSpatialAnchorMSFT extends DispatchableHandle { private final XrSession session; @@ -26,4 +26,4 @@ public XrSession getSession() { return session; } -} +} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorPersistenceInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorPersistenceInfoMSFT.java index a386b18517..88d0837250 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorPersistenceInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorPersistenceInfoMSFT.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Persistence info for a spatial anchor. * @@ -24,7 +24,7 @@ *
                                                                      *
                                                                    • The {@link MSFTSpatialAnchorPersistence XR_MSFT_spatial_anchor_persistence} extension must be enabled prior to using {@link XrSpatialAnchorPersistenceInfoMSFT}
                                                                    • *
                                                                    • {@code type} must be {@link MSFTSpatialAnchorPersistence#XR_TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT}
                                                                    • - *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • + *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • *
                                                                    • {@code spatialAnchorPersistenceName} must be a valid {@link XrSpatialAnchorPersistenceNameMSFT} structure
                                                                    • *
                                                                    • {@code spatialAnchor} must be a valid {@code XrSpatialAnchorMSFT} handle
                                                                    • *
                                                                    @@ -42,8 +42,8 @@ * {@link XrSpatialAnchorPersistenceNameMSFT XrSpatialAnchorPersistenceNameMSFT} {@link #spatialAnchorPersistenceName}; * XrSpatialAnchorMSFT {@link #spatialAnchor}; * } - */ -public class XrSpatialAnchorPersistenceInfoMSFT extends Struct implements NativeResource { + */ +public class XrSpatialAnchorPersistenceInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,27 +53,27 @@ public class XrSpatialAnchorPersistenceInfoMSFT extends Struct consumer) { consumer.accept(spatialAnchorPersistenceName()); return this; } - /** Sets the specified value to the {@link #spatialAnchor} field. */ - public XrSpatialAnchorPersistenceInfoMSFT spatialAnchor(XrSpatialAnchorMSFT value) { nspatialAnchor(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** an {@link XrSpatialAnchorPersistenceNameMSFT} containing the name associated with the {@code XrSpatialAnchorMSFT} in the spatial anchor store. */ + public XrSpatialAnchorPersistenceNameMSFT spatialAnchorPersistenceName() { return nspatialAnchorPersistenceName(address()); } + /** the {@code XrSpatialAnchorMSFT} that the application wishes to perform persistence operations on. */ + @NativeType("XrSpatialAnchorMSFT") + public long spatialAnchor() { return nspatialAnchor(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpatialAnchorPersistenceInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialAnchorPersistence#XR_TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT} value to the {@link #type} field. */ + public XrSpatialAnchorPersistenceInfoMSFT type$Default() { return type(MSFTSpatialAnchorPersistence.XR_TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpatialAnchorPersistenceInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link XrSpatialAnchorPersistenceNameMSFT} to the {@link #spatialAnchorPersistenceName} field. */ + public XrSpatialAnchorPersistenceInfoMSFT spatialAnchorPersistenceName(XrSpatialAnchorPersistenceNameMSFT value) { nspatialAnchorPersistenceName(address(), value); return this; } + /** Passes the {@link #spatialAnchorPersistenceName} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialAnchorPersistenceInfoMSFT spatialAnchorPersistenceName(java.util.function.Consumer consumer) { consumer.accept(spatialAnchorPersistenceName()); return this; } + /** Sets the specified value to the {@link #spatialAnchor} field. */ + public XrSpatialAnchorPersistenceInfoMSFT spatialAnchor(XrSpatialAnchorMSFT value) { nspatialAnchor(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpatialAnchorPersistenceInfoMSFT set( - int type, - long next, - XrSpatialAnchorPersistenceNameMSFT spatialAnchorPersistenceName, + int type, + long next, + XrSpatialAnchorPersistenceNameMSFT spatialAnchorPersistenceName, XrSpatialAnchorMSFT spatialAnchor - ) { - type(type); - next(next); - spatialAnchorPersistenceName(spatialAnchorPersistenceName); - spatialAnchor(spatialAnchor); + ) { + type(type); + next(next); + spatialAnchorPersistenceName(spatialAnchorPersistenceName); + spatialAnchor(spatialAnchor); return this; } @@ -261,24 +261,24 @@ public static XrSpatialAnchorPersistenceInfoMSFT.Buffer calloc(int capacity, Mem } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpatialAnchorPersistenceInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpatialAnchorPersistenceInfoMSFT.NEXT); } - /** Unsafe version of {@link #spatialAnchorPersistenceName}. */ - public static XrSpatialAnchorPersistenceNameMSFT nspatialAnchorPersistenceName(long struct) { return XrSpatialAnchorPersistenceNameMSFT.create(struct + XrSpatialAnchorPersistenceInfoMSFT.SPATIALANCHORPERSISTENCENAME); } - /** Unsafe version of {@link #spatialAnchor}. */ - public static long nspatialAnchor(long struct) { return memGetAddress(struct + XrSpatialAnchorPersistenceInfoMSFT.SPATIALANCHOR); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialAnchorPersistenceInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialAnchorPersistenceInfoMSFT.NEXT, value); } - /** Unsafe version of {@link #spatialAnchorPersistenceName(XrSpatialAnchorPersistenceNameMSFT) spatialAnchorPersistenceName}. */ - public static void nspatialAnchorPersistenceName(long struct, XrSpatialAnchorPersistenceNameMSFT value) { memCopy(value.address(), struct + XrSpatialAnchorPersistenceInfoMSFT.SPATIALANCHORPERSISTENCENAME, XrSpatialAnchorPersistenceNameMSFT.SIZEOF); } - /** Unsafe version of {@link #spatialAnchor(XrSpatialAnchorMSFT) spatialAnchor}. */ - public static void nspatialAnchor(long struct, XrSpatialAnchorMSFT value) { memPutAddress(struct + XrSpatialAnchorPersistenceInfoMSFT.SPATIALANCHOR, value.address()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpatialAnchorPersistenceInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpatialAnchorPersistenceInfoMSFT.NEXT); } + /** Unsafe version of {@link #spatialAnchorPersistenceName}. */ + public static XrSpatialAnchorPersistenceNameMSFT nspatialAnchorPersistenceName(long struct) { return XrSpatialAnchorPersistenceNameMSFT.create(struct + XrSpatialAnchorPersistenceInfoMSFT.SPATIALANCHORPERSISTENCENAME); } + /** Unsafe version of {@link #spatialAnchor}. */ + public static long nspatialAnchor(long struct) { return memGetAddress(struct + XrSpatialAnchorPersistenceInfoMSFT.SPATIALANCHOR); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialAnchorPersistenceInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialAnchorPersistenceInfoMSFT.NEXT, value); } + /** Unsafe version of {@link #spatialAnchorPersistenceName(XrSpatialAnchorPersistenceNameMSFT) spatialAnchorPersistenceName}. */ + public static void nspatialAnchorPersistenceName(long struct, XrSpatialAnchorPersistenceNameMSFT value) { memCopy(value.address(), struct + XrSpatialAnchorPersistenceInfoMSFT.SPATIALANCHORPERSISTENCENAME, XrSpatialAnchorPersistenceNameMSFT.SIZEOF); } + /** Unsafe version of {@link #spatialAnchor(XrSpatialAnchorMSFT) spatialAnchor}. */ + public static void nspatialAnchor(long struct, XrSpatialAnchorMSFT value) { memPutAddress(struct + XrSpatialAnchorPersistenceInfoMSFT.SPATIALANCHOR, value.address()); } /** * Validates pointer members that should not be {@code NULL}. @@ -287,9 +287,9 @@ public static XrSpatialAnchorPersistenceInfoMSFT.Buffer calloc(int capacity, Mem */ public static void validate(long struct) { check(memGetAddress(struct + XrSpatialAnchorPersistenceInfoMSFT.SPATIALANCHOR)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSpatialAnchorPersistenceInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -326,31 +326,31 @@ protected Buffer self() { protected XrSpatialAnchorPersistenceInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpatialAnchorPersistenceInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpatialAnchorPersistenceInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSpatialAnchorPersistenceInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSpatialAnchorPersistenceInfoMSFT.nnext(address()); } - /** @return a {@link XrSpatialAnchorPersistenceNameMSFT} view of the {@link XrSpatialAnchorPersistenceInfoMSFT#spatialAnchorPersistenceName} field. */ - public XrSpatialAnchorPersistenceNameMSFT spatialAnchorPersistenceName() { return XrSpatialAnchorPersistenceInfoMSFT.nspatialAnchorPersistenceName(address()); } - /** @return the value of the {@link XrSpatialAnchorPersistenceInfoMSFT#spatialAnchor} field. */ - @NativeType("XrSpatialAnchorMSFT") - public long spatialAnchor() { return XrSpatialAnchorPersistenceInfoMSFT.nspatialAnchor(address()); } - - /** Sets the specified value to the {@link XrSpatialAnchorPersistenceInfoMSFT#type} field. */ - public XrSpatialAnchorPersistenceInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialAnchorPersistenceInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSpatialAnchorPersistence#XR_TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT} value to the {@link XrSpatialAnchorPersistenceInfoMSFT#type} field. */ - public XrSpatialAnchorPersistenceInfoMSFT.Buffer type$Default() { return type(MSFTSpatialAnchorPersistence.XR_TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT); } - /** Sets the specified value to the {@link XrSpatialAnchorPersistenceInfoMSFT#next} field. */ - public XrSpatialAnchorPersistenceInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialAnchorPersistenceInfoMSFT.nnext(address(), value); return this; } - /** Copies the specified {@link XrSpatialAnchorPersistenceNameMSFT} to the {@link XrSpatialAnchorPersistenceInfoMSFT#spatialAnchorPersistenceName} field. */ - public XrSpatialAnchorPersistenceInfoMSFT.Buffer spatialAnchorPersistenceName(XrSpatialAnchorPersistenceNameMSFT value) { XrSpatialAnchorPersistenceInfoMSFT.nspatialAnchorPersistenceName(address(), value); return this; } - /** Passes the {@link XrSpatialAnchorPersistenceInfoMSFT#spatialAnchorPersistenceName} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpatialAnchorPersistenceInfoMSFT.Buffer spatialAnchorPersistenceName(java.util.function.Consumer consumer) { consumer.accept(spatialAnchorPersistenceName()); return this; } - /** Sets the specified value to the {@link XrSpatialAnchorPersistenceInfoMSFT#spatialAnchor} field. */ - public XrSpatialAnchorPersistenceInfoMSFT.Buffer spatialAnchor(XrSpatialAnchorMSFT value) { XrSpatialAnchorPersistenceInfoMSFT.nspatialAnchor(address(), value); return this; } + + /** @return the value of the {@link XrSpatialAnchorPersistenceInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpatialAnchorPersistenceInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSpatialAnchorPersistenceInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSpatialAnchorPersistenceInfoMSFT.nnext(address()); } + /** @return a {@link XrSpatialAnchorPersistenceNameMSFT} view of the {@link XrSpatialAnchorPersistenceInfoMSFT#spatialAnchorPersistenceName} field. */ + public XrSpatialAnchorPersistenceNameMSFT spatialAnchorPersistenceName() { return XrSpatialAnchorPersistenceInfoMSFT.nspatialAnchorPersistenceName(address()); } + /** @return the value of the {@link XrSpatialAnchorPersistenceInfoMSFT#spatialAnchor} field. */ + @NativeType("XrSpatialAnchorMSFT") + public long spatialAnchor() { return XrSpatialAnchorPersistenceInfoMSFT.nspatialAnchor(address()); } + + /** Sets the specified value to the {@link XrSpatialAnchorPersistenceInfoMSFT#type} field. */ + public XrSpatialAnchorPersistenceInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialAnchorPersistenceInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialAnchorPersistence#XR_TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT} value to the {@link XrSpatialAnchorPersistenceInfoMSFT#type} field. */ + public XrSpatialAnchorPersistenceInfoMSFT.Buffer type$Default() { return type(MSFTSpatialAnchorPersistence.XR_TYPE_SPATIAL_ANCHOR_PERSISTENCE_INFO_MSFT); } + /** Sets the specified value to the {@link XrSpatialAnchorPersistenceInfoMSFT#next} field. */ + public XrSpatialAnchorPersistenceInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialAnchorPersistenceInfoMSFT.nnext(address(), value); return this; } + /** Copies the specified {@link XrSpatialAnchorPersistenceNameMSFT} to the {@link XrSpatialAnchorPersistenceInfoMSFT#spatialAnchorPersistenceName} field. */ + public XrSpatialAnchorPersistenceInfoMSFT.Buffer spatialAnchorPersistenceName(XrSpatialAnchorPersistenceNameMSFT value) { XrSpatialAnchorPersistenceInfoMSFT.nspatialAnchorPersistenceName(address(), value); return this; } + /** Passes the {@link XrSpatialAnchorPersistenceInfoMSFT#spatialAnchorPersistenceName} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialAnchorPersistenceInfoMSFT.Buffer spatialAnchorPersistenceName(java.util.function.Consumer consumer) { consumer.accept(spatialAnchorPersistenceName()); return this; } + /** Sets the specified value to the {@link XrSpatialAnchorPersistenceInfoMSFT#spatialAnchor} field. */ + public XrSpatialAnchorPersistenceInfoMSFT.Buffer spatialAnchor(XrSpatialAnchorMSFT value) { XrSpatialAnchorPersistenceInfoMSFT.nspatialAnchor(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorPersistenceNameMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorPersistenceNameMSFT.java index 2f245a1824..5b379267eb 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorPersistenceNameMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorPersistenceNameMSFT.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import static org.lwjgl.openxr.MSFTSpatialAnchorPersistence.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.MSFTSpatialAnchorPersistence.*; + /** * The name to identify a Spatial anchor persistence operations. * @@ -42,8 +42,8 @@ * struct XrSpatialAnchorPersistenceNameMSFT { * char {@link #name}[XR_MAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT]; * } - */ -public class XrSpatialAnchorPersistenceNameMSFT extends Struct implements NativeResource { + */ +public class XrSpatialAnchorPersistenceNameMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,18 +53,18 @@ public class XrSpatialAnchorPersistenceNameMSFT extends Struct implements NativeResource { @@ -274,16 +274,16 @@ protected Buffer self() { protected XrSpatialAnchorPersistenceNameMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return a {@link ByteBuffer} view of the {@link XrSpatialAnchorPersistenceNameMSFT#name} field. */ - @NativeType("char[XR_MAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT]") - public ByteBuffer name() { return XrSpatialAnchorPersistenceNameMSFT.nname(address()); } - /** @return the null-terminated string stored in the {@link XrSpatialAnchorPersistenceNameMSFT#name} field. */ - @NativeType("char[XR_MAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT]") - public String nameString() { return XrSpatialAnchorPersistenceNameMSFT.nnameString(address()); } - - /** Copies the specified encoded string to the {@link XrSpatialAnchorPersistenceNameMSFT#name} field. */ - public XrSpatialAnchorPersistenceNameMSFT.Buffer name(@NativeType("char[XR_MAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT]") ByteBuffer value) { XrSpatialAnchorPersistenceNameMSFT.nname(address(), value); return this; } + + /** @return a {@link ByteBuffer} view of the {@link XrSpatialAnchorPersistenceNameMSFT#name} field. */ + @NativeType("char[XR_MAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT]") + public ByteBuffer name() { return XrSpatialAnchorPersistenceNameMSFT.nname(address()); } + /** @return the null-terminated string stored in the {@link XrSpatialAnchorPersistenceNameMSFT#name} field. */ + @NativeType("char[XR_MAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT]") + public String nameString() { return XrSpatialAnchorPersistenceNameMSFT.nnameString(address()); } + + /** Copies the specified encoded string to the {@link XrSpatialAnchorPersistenceNameMSFT#name} field. */ + public XrSpatialAnchorPersistenceNameMSFT.Buffer name(@NativeType("char[XR_MAX_SPATIAL_ANCHOR_NAME_SIZE_MSFT]") ByteBuffer value) { XrSpatialAnchorPersistenceNameMSFT.nname(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorSpaceCreateInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorSpaceCreateInfoMSFT.java index 940bf9490e..cee1a7e767 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorSpaceCreateInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorSpaceCreateInfoMSFT.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Information to create a space from a spatial anchor. * @@ -24,7 +24,7 @@ *
                                                                      *
                                                                    • The {@link MSFTSpatialAnchor XR_MSFT_spatial_anchor} extension must be enabled prior to using {@link XrSpatialAnchorSpaceCreateInfoMSFT}
                                                                    • *
                                                                    • {@code type} must be {@link MSFTSpatialAnchor#XR_TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT}
                                                                    • - *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • + *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • *
                                                                    • {@code anchor} must be a valid {@code XrSpatialAnchorMSFT} handle
                                                                    • *
                                                                    * @@ -41,8 +41,8 @@ * XrSpatialAnchorMSFT {@link #anchor}; * {@link XrPosef XrPosef} {@link #poseInAnchorSpace}; * } - */ -public class XrSpatialAnchorSpaceCreateInfoMSFT extends Struct implements NativeResource { + */ +public class XrSpatialAnchorSpaceCreateInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,27 +52,27 @@ public class XrSpatialAnchorSpaceCreateInfoMSFT extends Struct consumer) { consumer.accept(poseInAnchorSpace()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** a handle to an {@code XrSpatialAnchorMSFT} previously created with {@link MSFTSpatialAnchor#xrCreateSpatialAnchorMSFT CreateSpatialAnchorMSFT}. */ + @NativeType("XrSpatialAnchorMSFT") + public long anchor() { return nanchor(address()); } + /** an {@link XrPosef} defining the position and orientation of the new space’s origin relative to the anchor’s natural origin. */ + public XrPosef poseInAnchorSpace() { return nposeInAnchorSpace(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpatialAnchorSpaceCreateInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialAnchor#XR_TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT} value to the {@link #type} field. */ + public XrSpatialAnchorSpaceCreateInfoMSFT type$Default() { return type(MSFTSpatialAnchor.XR_TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpatialAnchorSpaceCreateInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #anchor} field. */ + public XrSpatialAnchorSpaceCreateInfoMSFT anchor(XrSpatialAnchorMSFT value) { nanchor(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #poseInAnchorSpace} field. */ + public XrSpatialAnchorSpaceCreateInfoMSFT poseInAnchorSpace(XrPosef value) { nposeInAnchorSpace(address(), value); return this; } + /** Passes the {@link #poseInAnchorSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialAnchorSpaceCreateInfoMSFT poseInAnchorSpace(java.util.function.Consumer consumer) { consumer.accept(poseInAnchorSpace()); return this; } /** Initializes this struct with the specified values. */ public XrSpatialAnchorSpaceCreateInfoMSFT set( - int type, - long next, - XrSpatialAnchorMSFT anchor, + int type, + long next, + XrSpatialAnchorMSFT anchor, XrPosef poseInAnchorSpace - ) { - type(type); - next(next); - anchor(anchor); - poseInAnchorSpace(poseInAnchorSpace); + ) { + type(type); + next(next); + anchor(anchor); + poseInAnchorSpace(poseInAnchorSpace); return this; } @@ -260,24 +260,24 @@ public static XrSpatialAnchorSpaceCreateInfoMSFT.Buffer calloc(int capacity, Mem } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpatialAnchorSpaceCreateInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpatialAnchorSpaceCreateInfoMSFT.NEXT); } - /** Unsafe version of {@link #anchor}. */ - public static long nanchor(long struct) { return memGetAddress(struct + XrSpatialAnchorSpaceCreateInfoMSFT.ANCHOR); } - /** Unsafe version of {@link #poseInAnchorSpace}. */ - public static XrPosef nposeInAnchorSpace(long struct) { return XrPosef.create(struct + XrSpatialAnchorSpaceCreateInfoMSFT.POSEINANCHORSPACE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialAnchorSpaceCreateInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialAnchorSpaceCreateInfoMSFT.NEXT, value); } - /** Unsafe version of {@link #anchor(XrSpatialAnchorMSFT) anchor}. */ - public static void nanchor(long struct, XrSpatialAnchorMSFT value) { memPutAddress(struct + XrSpatialAnchorSpaceCreateInfoMSFT.ANCHOR, value.address()); } - /** Unsafe version of {@link #poseInAnchorSpace(XrPosef) poseInAnchorSpace}. */ - public static void nposeInAnchorSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpatialAnchorSpaceCreateInfoMSFT.POSEINANCHORSPACE, XrPosef.SIZEOF); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpatialAnchorSpaceCreateInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpatialAnchorSpaceCreateInfoMSFT.NEXT); } + /** Unsafe version of {@link #anchor}. */ + public static long nanchor(long struct) { return memGetAddress(struct + XrSpatialAnchorSpaceCreateInfoMSFT.ANCHOR); } + /** Unsafe version of {@link #poseInAnchorSpace}. */ + public static XrPosef nposeInAnchorSpace(long struct) { return XrPosef.create(struct + XrSpatialAnchorSpaceCreateInfoMSFT.POSEINANCHORSPACE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialAnchorSpaceCreateInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialAnchorSpaceCreateInfoMSFT.NEXT, value); } + /** Unsafe version of {@link #anchor(XrSpatialAnchorMSFT) anchor}. */ + public static void nanchor(long struct, XrSpatialAnchorMSFT value) { memPutAddress(struct + XrSpatialAnchorSpaceCreateInfoMSFT.ANCHOR, value.address()); } + /** Unsafe version of {@link #poseInAnchorSpace(XrPosef) poseInAnchorSpace}. */ + public static void nposeInAnchorSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpatialAnchorSpaceCreateInfoMSFT.POSEINANCHORSPACE, XrPosef.SIZEOF); } /** * Validates pointer members that should not be {@code NULL}. @@ -286,9 +286,9 @@ public static XrSpatialAnchorSpaceCreateInfoMSFT.Buffer calloc(int capacity, Mem */ public static void validate(long struct) { check(memGetAddress(struct + XrSpatialAnchorSpaceCreateInfoMSFT.ANCHOR)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSpatialAnchorSpaceCreateInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -325,31 +325,31 @@ protected Buffer self() { protected XrSpatialAnchorSpaceCreateInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpatialAnchorSpaceCreateInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpatialAnchorSpaceCreateInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSpatialAnchorSpaceCreateInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSpatialAnchorSpaceCreateInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSpatialAnchorSpaceCreateInfoMSFT#anchor} field. */ - @NativeType("XrSpatialAnchorMSFT") - public long anchor() { return XrSpatialAnchorSpaceCreateInfoMSFT.nanchor(address()); } - /** @return a {@link XrPosef} view of the {@link XrSpatialAnchorSpaceCreateInfoMSFT#poseInAnchorSpace} field. */ - public XrPosef poseInAnchorSpace() { return XrSpatialAnchorSpaceCreateInfoMSFT.nposeInAnchorSpace(address()); } - - /** Sets the specified value to the {@link XrSpatialAnchorSpaceCreateInfoMSFT#type} field. */ - public XrSpatialAnchorSpaceCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialAnchorSpaceCreateInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSpatialAnchor#XR_TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT} value to the {@link XrSpatialAnchorSpaceCreateInfoMSFT#type} field. */ - public XrSpatialAnchorSpaceCreateInfoMSFT.Buffer type$Default() { return type(MSFTSpatialAnchor.XR_TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT); } - /** Sets the specified value to the {@link XrSpatialAnchorSpaceCreateInfoMSFT#next} field. */ - public XrSpatialAnchorSpaceCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialAnchorSpaceCreateInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpatialAnchorSpaceCreateInfoMSFT#anchor} field. */ - public XrSpatialAnchorSpaceCreateInfoMSFT.Buffer anchor(XrSpatialAnchorMSFT value) { XrSpatialAnchorSpaceCreateInfoMSFT.nanchor(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrSpatialAnchorSpaceCreateInfoMSFT#poseInAnchorSpace} field. */ - public XrSpatialAnchorSpaceCreateInfoMSFT.Buffer poseInAnchorSpace(XrPosef value) { XrSpatialAnchorSpaceCreateInfoMSFT.nposeInAnchorSpace(address(), value); return this; } - /** Passes the {@link XrSpatialAnchorSpaceCreateInfoMSFT#poseInAnchorSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpatialAnchorSpaceCreateInfoMSFT.Buffer poseInAnchorSpace(java.util.function.Consumer consumer) { consumer.accept(poseInAnchorSpace()); return this; } + + /** @return the value of the {@link XrSpatialAnchorSpaceCreateInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpatialAnchorSpaceCreateInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSpatialAnchorSpaceCreateInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSpatialAnchorSpaceCreateInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSpatialAnchorSpaceCreateInfoMSFT#anchor} field. */ + @NativeType("XrSpatialAnchorMSFT") + public long anchor() { return XrSpatialAnchorSpaceCreateInfoMSFT.nanchor(address()); } + /** @return a {@link XrPosef} view of the {@link XrSpatialAnchorSpaceCreateInfoMSFT#poseInAnchorSpace} field. */ + public XrPosef poseInAnchorSpace() { return XrSpatialAnchorSpaceCreateInfoMSFT.nposeInAnchorSpace(address()); } + + /** Sets the specified value to the {@link XrSpatialAnchorSpaceCreateInfoMSFT#type} field. */ + public XrSpatialAnchorSpaceCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialAnchorSpaceCreateInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialAnchor#XR_TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT} value to the {@link XrSpatialAnchorSpaceCreateInfoMSFT#type} field. */ + public XrSpatialAnchorSpaceCreateInfoMSFT.Buffer type$Default() { return type(MSFTSpatialAnchor.XR_TYPE_SPATIAL_ANCHOR_SPACE_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link XrSpatialAnchorSpaceCreateInfoMSFT#next} field. */ + public XrSpatialAnchorSpaceCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialAnchorSpaceCreateInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpatialAnchorSpaceCreateInfoMSFT#anchor} field. */ + public XrSpatialAnchorSpaceCreateInfoMSFT.Buffer anchor(XrSpatialAnchorMSFT value) { XrSpatialAnchorSpaceCreateInfoMSFT.nanchor(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrSpatialAnchorSpaceCreateInfoMSFT#poseInAnchorSpace} field. */ + public XrSpatialAnchorSpaceCreateInfoMSFT.Buffer poseInAnchorSpace(XrPosef value) { XrSpatialAnchorSpaceCreateInfoMSFT.nposeInAnchorSpace(address(), value); return this; } + /** Passes the {@link XrSpatialAnchorSpaceCreateInfoMSFT#poseInAnchorSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialAnchorSpaceCreateInfoMSFT.Buffer poseInAnchorSpace(java.util.function.Consumer consumer) { consumer.accept(poseInAnchorSpace()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorStoreConnectionMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorStoreConnectionMSFT.java index 51dbbeb73d..c12a7fd6af 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorStoreConnectionMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialAnchorStoreConnectionMSFT.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrSpatialAnchorStoreConnectionMSFT} handle. */ + +/** Wraps an {@code XrSpatialAnchorStoreConnectionMSFT} handle. */ public class XrSpatialAnchorStoreConnectionMSFT extends DispatchableHandle { private final XrSession session; @@ -26,4 +26,4 @@ public XrSession getSession() { return session; } -} +} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeBindingMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeBindingMSFT.java index 9fdfdc8938..11f62b20cd 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeBindingMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeBindingMSFT.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrSpatialGraphNodeBindingMSFT} handle. */ + +/** Wraps an {@code XrSpatialGraphNodeBindingMSFT} handle. */ public class XrSpatialGraphNodeBindingMSFT extends DispatchableHandle { private final XrSession session; @@ -26,4 +26,4 @@ public XrSession getSession() { return session; } -} +} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.java index 2d4b28c5fc..1555282b04 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The information to get node binding properties. * @@ -23,7 +23,7 @@ *
                                                                      *
                                                                    • The {@link MSFTSpatialGraphBridge XR_MSFT_spatial_graph_bridge} extension must be enabled prior to using {@link XrSpatialGraphNodeBindingPropertiesGetInfoMSFT}
                                                                    • *
                                                                    • {@code type} must be {@link MSFTSpatialGraphBridge#XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_GET_INFO_MSFT TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_GET_INFO_MSFT}
                                                                    • - *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • + *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • *
                                                                    * *
                                                                    See Also
                                                                    @@ -37,8 +37,8 @@ * XrStructureType {@link #type}; * void const * {@link #next}; * } - */ -public class XrSpatialGraphNodeBindingPropertiesGetInfoMSFT extends Struct implements NativeResource { + */ +public class XrSpatialGraphNodeBindingPropertiesGetInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,21 +48,21 @@ public class XrSpatialGraphNodeBindingPropertiesGetInfoMSFT extends Struct implements NativeResource { @@ -283,20 +283,20 @@ protected Buffer self() { protected XrSpatialGraphNodeBindingPropertiesGetInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpatialGraphNodeBindingPropertiesGetInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSpatialGraphNodeBindingPropertiesGetInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.nnext(address()); } - - /** Sets the specified value to the {@link XrSpatialGraphNodeBindingPropertiesGetInfoMSFT#type} field. */ - public XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSpatialGraphBridge#XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_GET_INFO_MSFT TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_GET_INFO_MSFT} value to the {@link XrSpatialGraphNodeBindingPropertiesGetInfoMSFT#type} field. */ - public XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.Buffer type$Default() { return type(MSFTSpatialGraphBridge.XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_GET_INFO_MSFT); } - /** Sets the specified value to the {@link XrSpatialGraphNodeBindingPropertiesGetInfoMSFT#next} field. */ - public XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSpatialGraphNodeBindingPropertiesGetInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSpatialGraphNodeBindingPropertiesGetInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.nnext(address()); } + + /** Sets the specified value to the {@link XrSpatialGraphNodeBindingPropertiesGetInfoMSFT#type} field. */ + public XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialGraphBridge#XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_GET_INFO_MSFT TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_GET_INFO_MSFT} value to the {@link XrSpatialGraphNodeBindingPropertiesGetInfoMSFT#type} field. */ + public XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.Buffer type$Default() { return type(MSFTSpatialGraphBridge.XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_GET_INFO_MSFT); } + /** Sets the specified value to the {@link XrSpatialGraphNodeBindingPropertiesGetInfoMSFT#next} field. */ + public XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialGraphNodeBindingPropertiesGetInfoMSFT.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeBindingPropertiesMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeBindingPropertiesMSFT.java index f2e113ef10..8bc9eb7c0a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeBindingPropertiesMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeBindingPropertiesMSFT.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import static org.lwjgl.openxr.MSFTSpatialGraphBridge.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.MSFTSpatialGraphBridge.*; + /** * The spatial graph node binding properties. * @@ -26,7 +26,7 @@ *
                                                                      *
                                                                    • The {@link MSFTSpatialGraphBridge XR_MSFT_spatial_graph_bridge} extension must be enabled prior to using {@link XrSpatialGraphNodeBindingPropertiesMSFT}
                                                                    • *
                                                                    • {@code type} must be {@link MSFTSpatialGraphBridge#XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT}
                                                                    • - *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • + *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • *
                                                                    * *
                                                                    See Also
                                                                    @@ -42,8 +42,8 @@ * uint8_t {@link #nodeId}[XR_GUID_SIZE_MSFT]; * {@link XrPosef XrPosef} {@link #poseInNodeSpace}; * } - */ -public class XrSpatialGraphNodeBindingPropertiesMSFT extends Struct implements NativeResource { + */ +public class XrSpatialGraphNodeBindingPropertiesMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,27 +53,27 @@ public class XrSpatialGraphNodeBindingPropertiesMSFT extends Struct consumer) { consumer.accept(poseInNodeSpace()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** a global unique identifier (a.k.a. GUID or 16 byte array), representing the spatial graph node. */ + @NativeType("uint8_t[XR_GUID_SIZE_MSFT]") + public ByteBuffer nodeId() { return nnodeId(address()); } + /** a global unique identifier (a.k.a. GUID or 16 byte array), representing the spatial graph node. */ + @NativeType("uint8_t") + public byte nodeId(int index) { return nnodeId(address(), index); } + /** an {@link XrPosef} defining the pose in the underlying node’s space. */ + public XrPosef poseInNodeSpace() { return nposeInNodeSpace(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpatialGraphNodeBindingPropertiesMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialGraphBridge#XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT} value to the {@link #type} field. */ + public XrSpatialGraphNodeBindingPropertiesMSFT type$Default() { return type(MSFTSpatialGraphBridge.XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpatialGraphNodeBindingPropertiesMSFT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link ByteBuffer} to the {@link #nodeId} field. */ + public XrSpatialGraphNodeBindingPropertiesMSFT nodeId(@NativeType("uint8_t[XR_GUID_SIZE_MSFT]") ByteBuffer value) { nnodeId(address(), value); return this; } + /** Sets the specified value at the specified index of the {@link #nodeId} field. */ + public XrSpatialGraphNodeBindingPropertiesMSFT nodeId(int index, @NativeType("uint8_t") byte value) { nnodeId(address(), index, value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #poseInNodeSpace} field. */ + public XrSpatialGraphNodeBindingPropertiesMSFT poseInNodeSpace(XrPosef value) { nposeInNodeSpace(address(), value); return this; } + /** Passes the {@link #poseInNodeSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialGraphNodeBindingPropertiesMSFT poseInNodeSpace(java.util.function.Consumer consumer) { consumer.accept(poseInNodeSpace()); return this; } /** Initializes this struct with the specified values. */ public XrSpatialGraphNodeBindingPropertiesMSFT set( - int type, - long next, - ByteBuffer nodeId, + int type, + long next, + ByteBuffer nodeId, XrPosef poseInNodeSpace - ) { - type(type); - next(next); - nodeId(nodeId); - poseInNodeSpace(poseInNodeSpace); + ) { + type(type); + next(next); + nodeId(nodeId); + poseInNodeSpace(poseInNodeSpace); return this; } @@ -266,37 +266,37 @@ public static XrSpatialGraphNodeBindingPropertiesMSFT.Buffer calloc(int capacity } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpatialGraphNodeBindingPropertiesMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpatialGraphNodeBindingPropertiesMSFT.NEXT); } - /** Unsafe version of {@link #nodeId}. */ - public static ByteBuffer nnodeId(long struct) { return memByteBuffer(struct + XrSpatialGraphNodeBindingPropertiesMSFT.NODEID, XR_GUID_SIZE_MSFT); } - /** Unsafe version of {@link #nodeId(int) nodeId}. */ - public static byte nnodeId(long struct, int index) { + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpatialGraphNodeBindingPropertiesMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpatialGraphNodeBindingPropertiesMSFT.NEXT); } + /** Unsafe version of {@link #nodeId}. */ + public static ByteBuffer nnodeId(long struct) { return memByteBuffer(struct + XrSpatialGraphNodeBindingPropertiesMSFT.NODEID, XR_GUID_SIZE_MSFT); } + /** Unsafe version of {@link #nodeId(int) nodeId}. */ + public static byte nnodeId(long struct, int index) { return UNSAFE.getByte(null, struct + XrSpatialGraphNodeBindingPropertiesMSFT.NODEID + check(index, XR_GUID_SIZE_MSFT) * 1); - } - /** Unsafe version of {@link #poseInNodeSpace}. */ - public static XrPosef nposeInNodeSpace(long struct) { return XrPosef.create(struct + XrSpatialGraphNodeBindingPropertiesMSFT.POSEINNODESPACE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialGraphNodeBindingPropertiesMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialGraphNodeBindingPropertiesMSFT.NEXT, value); } - /** Unsafe version of {@link #nodeId(ByteBuffer) nodeId}. */ - public static void nnodeId(long struct, ByteBuffer value) { - if (CHECKS) { checkGT(value, XR_GUID_SIZE_MSFT); } - memCopy(memAddress(value), struct + XrSpatialGraphNodeBindingPropertiesMSFT.NODEID, value.remaining() * 1); - } - /** Unsafe version of {@link #nodeId(int, byte) nodeId}. */ - public static void nnodeId(long struct, int index, byte value) { - UNSAFE.putByte(null, struct + XrSpatialGraphNodeBindingPropertiesMSFT.NODEID + check(index, XR_GUID_SIZE_MSFT) * 1, value); - } - /** Unsafe version of {@link #poseInNodeSpace(XrPosef) poseInNodeSpace}. */ - public static void nposeInNodeSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpatialGraphNodeBindingPropertiesMSFT.POSEINNODESPACE, XrPosef.SIZEOF); } - - // ----------------------------------- + } + /** Unsafe version of {@link #poseInNodeSpace}. */ + public static XrPosef nposeInNodeSpace(long struct) { return XrPosef.create(struct + XrSpatialGraphNodeBindingPropertiesMSFT.POSEINNODESPACE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialGraphNodeBindingPropertiesMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialGraphNodeBindingPropertiesMSFT.NEXT, value); } + /** Unsafe version of {@link #nodeId(ByteBuffer) nodeId}. */ + public static void nnodeId(long struct, ByteBuffer value) { + if (CHECKS) { checkGT(value, XR_GUID_SIZE_MSFT); } + memCopy(memAddress(value), struct + XrSpatialGraphNodeBindingPropertiesMSFT.NODEID, value.remaining() * 1); + } + /** Unsafe version of {@link #nodeId(int, byte) nodeId}. */ + public static void nnodeId(long struct, int index, byte value) { + UNSAFE.putByte(null, struct + XrSpatialGraphNodeBindingPropertiesMSFT.NODEID + check(index, XR_GUID_SIZE_MSFT) * 1, value); + } + /** Unsafe version of {@link #poseInNodeSpace(XrPosef) poseInNodeSpace}. */ + public static void nposeInNodeSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpatialGraphNodeBindingPropertiesMSFT.POSEINNODESPACE, XrPosef.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrSpatialGraphNodeBindingPropertiesMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -333,36 +333,36 @@ protected Buffer self() { protected XrSpatialGraphNodeBindingPropertiesMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpatialGraphNodeBindingPropertiesMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpatialGraphNodeBindingPropertiesMSFT.ntype(address()); } - /** @return the value of the {@link XrSpatialGraphNodeBindingPropertiesMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrSpatialGraphNodeBindingPropertiesMSFT.nnext(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrSpatialGraphNodeBindingPropertiesMSFT#nodeId} field. */ - @NativeType("uint8_t[XR_GUID_SIZE_MSFT]") - public ByteBuffer nodeId() { return XrSpatialGraphNodeBindingPropertiesMSFT.nnodeId(address()); } - /** @return the value at the specified index of the {@link XrSpatialGraphNodeBindingPropertiesMSFT#nodeId} field. */ - @NativeType("uint8_t") - public byte nodeId(int index) { return XrSpatialGraphNodeBindingPropertiesMSFT.nnodeId(address(), index); } - /** @return a {@link XrPosef} view of the {@link XrSpatialGraphNodeBindingPropertiesMSFT#poseInNodeSpace} field. */ - public XrPosef poseInNodeSpace() { return XrSpatialGraphNodeBindingPropertiesMSFT.nposeInNodeSpace(address()); } - - /** Sets the specified value to the {@link XrSpatialGraphNodeBindingPropertiesMSFT#type} field. */ - public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialGraphNodeBindingPropertiesMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSpatialGraphBridge#XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT} value to the {@link XrSpatialGraphNodeBindingPropertiesMSFT#type} field. */ - public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer type$Default() { return type(MSFTSpatialGraphBridge.XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT); } - /** Sets the specified value to the {@link XrSpatialGraphNodeBindingPropertiesMSFT#next} field. */ - public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer next(@NativeType("void *") long value) { XrSpatialGraphNodeBindingPropertiesMSFT.nnext(address(), value); return this; } - /** Copies the specified {@link ByteBuffer} to the {@link XrSpatialGraphNodeBindingPropertiesMSFT#nodeId} field. */ - public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer nodeId(@NativeType("uint8_t[XR_GUID_SIZE_MSFT]") ByteBuffer value) { XrSpatialGraphNodeBindingPropertiesMSFT.nnodeId(address(), value); return this; } - /** Sets the specified value at the specified index of the {@link XrSpatialGraphNodeBindingPropertiesMSFT#nodeId} field. */ - public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer nodeId(int index, @NativeType("uint8_t") byte value) { XrSpatialGraphNodeBindingPropertiesMSFT.nnodeId(address(), index, value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrSpatialGraphNodeBindingPropertiesMSFT#poseInNodeSpace} field. */ - public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer poseInNodeSpace(XrPosef value) { XrSpatialGraphNodeBindingPropertiesMSFT.nposeInNodeSpace(address(), value); return this; } - /** Passes the {@link XrSpatialGraphNodeBindingPropertiesMSFT#poseInNodeSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer poseInNodeSpace(java.util.function.Consumer consumer) { consumer.accept(poseInNodeSpace()); return this; } + + /** @return the value of the {@link XrSpatialGraphNodeBindingPropertiesMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpatialGraphNodeBindingPropertiesMSFT.ntype(address()); } + /** @return the value of the {@link XrSpatialGraphNodeBindingPropertiesMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrSpatialGraphNodeBindingPropertiesMSFT.nnext(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrSpatialGraphNodeBindingPropertiesMSFT#nodeId} field. */ + @NativeType("uint8_t[XR_GUID_SIZE_MSFT]") + public ByteBuffer nodeId() { return XrSpatialGraphNodeBindingPropertiesMSFT.nnodeId(address()); } + /** @return the value at the specified index of the {@link XrSpatialGraphNodeBindingPropertiesMSFT#nodeId} field. */ + @NativeType("uint8_t") + public byte nodeId(int index) { return XrSpatialGraphNodeBindingPropertiesMSFT.nnodeId(address(), index); } + /** @return a {@link XrPosef} view of the {@link XrSpatialGraphNodeBindingPropertiesMSFT#poseInNodeSpace} field. */ + public XrPosef poseInNodeSpace() { return XrSpatialGraphNodeBindingPropertiesMSFT.nposeInNodeSpace(address()); } + + /** Sets the specified value to the {@link XrSpatialGraphNodeBindingPropertiesMSFT#type} field. */ + public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialGraphNodeBindingPropertiesMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialGraphBridge#XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT} value to the {@link XrSpatialGraphNodeBindingPropertiesMSFT#type} field. */ + public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer type$Default() { return type(MSFTSpatialGraphBridge.XR_TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT); } + /** Sets the specified value to the {@link XrSpatialGraphNodeBindingPropertiesMSFT#next} field. */ + public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer next(@NativeType("void *") long value) { XrSpatialGraphNodeBindingPropertiesMSFT.nnext(address(), value); return this; } + /** Copies the specified {@link ByteBuffer} to the {@link XrSpatialGraphNodeBindingPropertiesMSFT#nodeId} field. */ + public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer nodeId(@NativeType("uint8_t[XR_GUID_SIZE_MSFT]") ByteBuffer value) { XrSpatialGraphNodeBindingPropertiesMSFT.nnodeId(address(), value); return this; } + /** Sets the specified value at the specified index of the {@link XrSpatialGraphNodeBindingPropertiesMSFT#nodeId} field. */ + public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer nodeId(int index, @NativeType("uint8_t") byte value) { XrSpatialGraphNodeBindingPropertiesMSFT.nnodeId(address(), index, value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrSpatialGraphNodeBindingPropertiesMSFT#poseInNodeSpace} field. */ + public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer poseInNodeSpace(XrPosef value) { XrSpatialGraphNodeBindingPropertiesMSFT.nposeInNodeSpace(address(), value); return this; } + /** Passes the {@link XrSpatialGraphNodeBindingPropertiesMSFT#poseInNodeSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialGraphNodeBindingPropertiesMSFT.Buffer poseInNodeSpace(java.util.function.Consumer consumer) { consumer.accept(poseInNodeSpace()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeSpaceCreateInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeSpaceCreateInfoMSFT.java index ff5b2f9ee7..59fc6302b1 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeSpaceCreateInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphNodeSpaceCreateInfoMSFT.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import static org.lwjgl.openxr.MSFTSpatialGraphBridge.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.MSFTSpatialGraphBridge.*; + /** * The information to create space from a spatial graph node. * @@ -26,7 +26,7 @@ *
                                                                      *
                                                                    • The {@link MSFTSpatialGraphBridge XR_MSFT_spatial_graph_bridge} extension must be enabled prior to using {@link XrSpatialGraphNodeSpaceCreateInfoMSFT}
                                                                    • *
                                                                    • {@code type} must be {@link MSFTSpatialGraphBridge#XR_TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT}
                                                                    • - *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • + *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • *
                                                                    • {@code nodeType} must be a valid {@code XrSpatialGraphNodeTypeMSFT} value
                                                                    • *
                                                                    * @@ -44,8 +44,8 @@ * uint8_t {@link #nodeId}[XR_GUID_SIZE_MSFT]; * {@link XrPosef XrPosef} {@link #pose}; * } - */ -public class XrSpatialGraphNodeSpaceCreateInfoMSFT extends Struct implements NativeResource { + */ +public class XrSpatialGraphNodeSpaceCreateInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,30 +55,30 @@ public class XrSpatialGraphNodeSpaceCreateInfoMSFT extends Struct consumer) { consumer.accept(pose()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** an {@code XrSpatialGraphNodeTypeMSFT} specifying the spatial node type. */ + @NativeType("XrSpatialGraphNodeTypeMSFT") + public int nodeType() { return nnodeType(address()); } + /** a global unique identifier (a.k.a. GUID or 16 byte array), representing the spatial node that is being tracked. */ + @NativeType("uint8_t[XR_GUID_SIZE_MSFT]") + public ByteBuffer nodeId() { return nnodeId(address()); } + /** a global unique identifier (a.k.a. GUID or 16 byte array), representing the spatial node that is being tracked. */ + @NativeType("uint8_t") + public byte nodeId(int index) { return nnodeId(address(), index); } + /** an {@link XrPosef} defining the position and orientation of the new space’s origin within the natural reference frame of the spatial graph node. */ + public XrPosef pose() { return npose(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialGraphBridge#XR_TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT} value to the {@link #type} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT type$Default() { return type(MSFTSpatialGraphBridge.XR_TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #nodeType} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT nodeType(@NativeType("XrSpatialGraphNodeTypeMSFT") int value) { nnodeType(address(), value); return this; } + /** Copies the specified {@link ByteBuffer} to the {@link #nodeId} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT nodeId(@NativeType("uint8_t[XR_GUID_SIZE_MSFT]") ByteBuffer value) { nnodeId(address(), value); return this; } + /** Sets the specified value at the specified index of the {@link #nodeId} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT nodeId(int index, @NativeType("uint8_t") byte value) { nnodeId(address(), index, value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } /** Initializes this struct with the specified values. */ public XrSpatialGraphNodeSpaceCreateInfoMSFT set( - int type, - long next, - int nodeType, - ByteBuffer nodeId, + int type, + long next, + int nodeType, + ByteBuffer nodeId, XrPosef pose - ) { - type(type); - next(next); - nodeType(nodeType); - nodeId(nodeId); - pose(pose); + ) { + type(type); + next(next); + nodeType(nodeType); + nodeId(nodeId); + pose(pose); return this; } @@ -278,41 +278,41 @@ public static XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer calloc(int capacity, } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NEXT); } - /** Unsafe version of {@link #nodeType}. */ - public static int nnodeType(long struct) { return UNSAFE.getInt(null, struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NODETYPE); } - /** Unsafe version of {@link #nodeId}. */ - public static ByteBuffer nnodeId(long struct) { return memByteBuffer(struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NODEID, XR_GUID_SIZE_MSFT); } - /** Unsafe version of {@link #nodeId(int) nodeId}. */ - public static byte nnodeId(long struct, int index) { + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NEXT); } + /** Unsafe version of {@link #nodeType}. */ + public static int nnodeType(long struct) { return UNSAFE.getInt(null, struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NODETYPE); } + /** Unsafe version of {@link #nodeId}. */ + public static ByteBuffer nnodeId(long struct) { return memByteBuffer(struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NODEID, XR_GUID_SIZE_MSFT); } + /** Unsafe version of {@link #nodeId(int) nodeId}. */ + public static byte nnodeId(long struct, int index) { return UNSAFE.getByte(null, struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NODEID + check(index, XR_GUID_SIZE_MSFT) * 1); - } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.POSE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NEXT, value); } - /** Unsafe version of {@link #nodeType(int) nodeType}. */ - public static void nnodeType(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NODETYPE, value); } - /** Unsafe version of {@link #nodeId(ByteBuffer) nodeId}. */ - public static void nnodeId(long struct, ByteBuffer value) { - if (CHECKS) { checkGT(value, XR_GUID_SIZE_MSFT); } - memCopy(memAddress(value), struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NODEID, value.remaining() * 1); - } - /** Unsafe version of {@link #nodeId(int, byte) nodeId}. */ - public static void nnodeId(long struct, int index, byte value) { - UNSAFE.putByte(null, struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NODEID + check(index, XR_GUID_SIZE_MSFT) * 1, value); - } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.POSE, XrPosef.SIZEOF); } - - // ----------------------------------- + } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.POSE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NEXT, value); } + /** Unsafe version of {@link #nodeType(int) nodeType}. */ + public static void nnodeType(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NODETYPE, value); } + /** Unsafe version of {@link #nodeId(ByteBuffer) nodeId}. */ + public static void nnodeId(long struct, ByteBuffer value) { + if (CHECKS) { checkGT(value, XR_GUID_SIZE_MSFT); } + memCopy(memAddress(value), struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NODEID, value.remaining() * 1); + } + /** Unsafe version of {@link #nodeId(int, byte) nodeId}. */ + public static void nnodeId(long struct, int index, byte value) { + UNSAFE.putByte(null, struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.NODEID + check(index, XR_GUID_SIZE_MSFT) * 1, value); + } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpatialGraphNodeSpaceCreateInfoMSFT.POSE, XrPosef.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrSpatialGraphNodeSpaceCreateInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -349,41 +349,41 @@ protected Buffer self() { protected XrSpatialGraphNodeSpaceCreateInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpatialGraphNodeSpaceCreateInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSpatialGraphNodeSpaceCreateInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#nodeType} field. */ - @NativeType("XrSpatialGraphNodeTypeMSFT") - public int nodeType() { return XrSpatialGraphNodeSpaceCreateInfoMSFT.nnodeType(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#nodeId} field. */ - @NativeType("uint8_t[XR_GUID_SIZE_MSFT]") - public ByteBuffer nodeId() { return XrSpatialGraphNodeSpaceCreateInfoMSFT.nnodeId(address()); } - /** @return the value at the specified index of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#nodeId} field. */ - @NativeType("uint8_t") - public byte nodeId(int index) { return XrSpatialGraphNodeSpaceCreateInfoMSFT.nnodeId(address(), index); } - /** @return a {@link XrPosef} view of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#pose} field. */ - public XrPosef pose() { return XrSpatialGraphNodeSpaceCreateInfoMSFT.npose(address()); } - - /** Sets the specified value to the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#type} field. */ - public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialGraphNodeSpaceCreateInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSpatialGraphBridge#XR_TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT} value to the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#type} field. */ - public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer type$Default() { return type(MSFTSpatialGraphBridge.XR_TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT); } - /** Sets the specified value to the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#next} field. */ - public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialGraphNodeSpaceCreateInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#nodeType} field. */ - public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer nodeType(@NativeType("XrSpatialGraphNodeTypeMSFT") int value) { XrSpatialGraphNodeSpaceCreateInfoMSFT.nnodeType(address(), value); return this; } - /** Copies the specified {@link ByteBuffer} to the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#nodeId} field. */ - public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer nodeId(@NativeType("uint8_t[XR_GUID_SIZE_MSFT]") ByteBuffer value) { XrSpatialGraphNodeSpaceCreateInfoMSFT.nnodeId(address(), value); return this; } - /** Sets the specified value at the specified index of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#nodeId} field. */ - public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer nodeId(int index, @NativeType("uint8_t") byte value) { XrSpatialGraphNodeSpaceCreateInfoMSFT.nnodeId(address(), index, value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#pose} field. */ - public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer pose(XrPosef value) { XrSpatialGraphNodeSpaceCreateInfoMSFT.npose(address(), value); return this; } - /** Passes the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + + /** @return the value of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpatialGraphNodeSpaceCreateInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSpatialGraphNodeSpaceCreateInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#nodeType} field. */ + @NativeType("XrSpatialGraphNodeTypeMSFT") + public int nodeType() { return XrSpatialGraphNodeSpaceCreateInfoMSFT.nnodeType(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#nodeId} field. */ + @NativeType("uint8_t[XR_GUID_SIZE_MSFT]") + public ByteBuffer nodeId() { return XrSpatialGraphNodeSpaceCreateInfoMSFT.nnodeId(address()); } + /** @return the value at the specified index of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#nodeId} field. */ + @NativeType("uint8_t") + public byte nodeId(int index) { return XrSpatialGraphNodeSpaceCreateInfoMSFT.nnodeId(address(), index); } + /** @return a {@link XrPosef} view of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#pose} field. */ + public XrPosef pose() { return XrSpatialGraphNodeSpaceCreateInfoMSFT.npose(address()); } + + /** Sets the specified value to the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#type} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialGraphNodeSpaceCreateInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialGraphBridge#XR_TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT} value to the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#type} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer type$Default() { return type(MSFTSpatialGraphBridge.XR_TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#next} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialGraphNodeSpaceCreateInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#nodeType} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer nodeType(@NativeType("XrSpatialGraphNodeTypeMSFT") int value) { XrSpatialGraphNodeSpaceCreateInfoMSFT.nnodeType(address(), value); return this; } + /** Copies the specified {@link ByteBuffer} to the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#nodeId} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer nodeId(@NativeType("uint8_t[XR_GUID_SIZE_MSFT]") ByteBuffer value) { XrSpatialGraphNodeSpaceCreateInfoMSFT.nnodeId(address(), value); return this; } + /** Sets the specified value at the specified index of the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#nodeId} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer nodeId(int index, @NativeType("uint8_t") byte value) { XrSpatialGraphNodeSpaceCreateInfoMSFT.nnodeId(address(), index, value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#pose} field. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer pose(XrPosef value) { XrSpatialGraphNodeSpaceCreateInfoMSFT.npose(address(), value); return this; } + /** Passes the {@link XrSpatialGraphNodeSpaceCreateInfoMSFT#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialGraphNodeSpaceCreateInfoMSFT.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphStaticNodeBindingCreateInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphStaticNodeBindingCreateInfoMSFT.java index 6b7e0bda3d..f6ab1900ec 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphStaticNodeBindingCreateInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSpatialGraphStaticNodeBindingCreateInfoMSFT.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The information to create a spatial graph static node binding handle. * @@ -24,7 +24,7 @@ *
                                                                      *
                                                                    • The {@link MSFTSpatialGraphBridge XR_MSFT_spatial_graph_bridge} extension must be enabled prior to using {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT}
                                                                    • *
                                                                    • {@code type} must be {@link MSFTSpatialGraphBridge#XR_TYPE_SPATIAL_GRAPH_STATIC_NODE_BINDING_CREATE_INFO_MSFT TYPE_SPATIAL_GRAPH_STATIC_NODE_BINDING_CREATE_INFO_MSFT}
                                                                    • - *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • + *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • *
                                                                    • {@code space} must be a valid {@code XrSpace} handle
                                                                    • *
                                                                    * @@ -42,8 +42,8 @@ * {@link XrPosef XrPosef} {@link #poseInSpace}; * XrTime {@link #time}; * } - */ -public class XrSpatialGraphStaticNodeBindingCreateInfoMSFT extends Struct implements NativeResource { + */ +public class XrSpatialGraphStaticNodeBindingCreateInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,30 +53,30 @@ public class XrSpatialGraphStaticNodeBindingCreateInfoMSFT extends Struct consumer) { consumer.accept(poseInSpace()); return this; } - /** Sets the specified value to the {@link #time} field. */ - public XrSpatialGraphStaticNodeBindingCreateInfoMSFT time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** a handle to the {@code XrSpace} in which {@code poseInSpace} is specified. */ + @NativeType("XrSpace") + public long space() { return nspace(address()); } + /** the {@link XrPosef} within {@code space} at {@code time}. */ + public XrPosef poseInSpace() { return nposeInSpace(address()); } + /** the {@code XrTime} at which {@code poseInSpace} will be evaluated within {@code space}. */ + @NativeType("XrTime") + public long time() { return ntime(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialGraphBridge#XR_TYPE_SPATIAL_GRAPH_STATIC_NODE_BINDING_CREATE_INFO_MSFT TYPE_SPATIAL_GRAPH_STATIC_NODE_BINDING_CREATE_INFO_MSFT} value to the {@link #type} field. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT type$Default() { return type(MSFTSpatialGraphBridge.XR_TYPE_SPATIAL_GRAPH_STATIC_NODE_BINDING_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #space} field. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT space(XrSpace value) { nspace(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #poseInSpace} field. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT poseInSpace(XrPosef value) { nposeInSpace(address(), value); return this; } + /** Passes the {@link #poseInSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT poseInSpace(java.util.function.Consumer consumer) { consumer.accept(poseInSpace()); return this; } + /** Sets the specified value to the {@link #time} field. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT time(@NativeType("XrTime") long value) { ntime(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSpatialGraphStaticNodeBindingCreateInfoMSFT set( - int type, - long next, - XrSpace space, - XrPosef poseInSpace, + int type, + long next, + XrSpace space, + XrPosef poseInSpace, long time - ) { - type(type); - next(next); - space(space); - poseInSpace(poseInSpace); - time(time); + ) { + type(type); + next(next); + space(space); + poseInSpace(poseInSpace); + time(time); return this; } @@ -271,28 +271,28 @@ public static XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer calloc(int ca } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.NEXT); } - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.SPACE); } - /** Unsafe version of {@link #poseInSpace}. */ - public static XrPosef nposeInSpace(long struct) { return XrPosef.create(struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.POSEINSPACE); } - /** Unsafe version of {@link #time}. */ - public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.TIME); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.NEXT, value); } - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.SPACE, value.address()); } - /** Unsafe version of {@link #poseInSpace(XrPosef) poseInSpace}. */ - public static void nposeInSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.POSEINSPACE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #time(long) time}. */ - public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.TIME, value); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.NEXT); } + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.SPACE); } + /** Unsafe version of {@link #poseInSpace}. */ + public static XrPosef nposeInSpace(long struct) { return XrPosef.create(struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.POSEINSPACE); } + /** Unsafe version of {@link #time}. */ + public static long ntime(long struct) { return UNSAFE.getLong(null, struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.TIME); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.NEXT, value); } + /** Unsafe version of {@link #space(XrSpace) space}. */ + public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.SPACE, value.address()); } + /** Unsafe version of {@link #poseInSpace(XrPosef) poseInSpace}. */ + public static void nposeInSpace(long struct, XrPosef value) { memCopy(value.address(), struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.POSEINSPACE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #time(long) time}. */ + public static void ntime(long struct, long value) { UNSAFE.putLong(null, struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.TIME, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -301,9 +301,9 @@ public static XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer calloc(int ca */ public static void validate(long struct) { check(memGetAddress(struct + XrSpatialGraphStaticNodeBindingCreateInfoMSFT.SPACE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -340,36 +340,36 @@ protected Buffer self() { protected XrSpatialGraphStaticNodeBindingCreateInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSpatialGraphStaticNodeBindingCreateInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrSpatialGraphStaticNodeBindingCreateInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#space} field. */ - @NativeType("XrSpace") - public long space() { return XrSpatialGraphStaticNodeBindingCreateInfoMSFT.nspace(address()); } - /** @return a {@link XrPosef} view of the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#poseInSpace} field. */ - public XrPosef poseInSpace() { return XrSpatialGraphStaticNodeBindingCreateInfoMSFT.nposeInSpace(address()); } - /** @return the value of the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#time} field. */ - @NativeType("XrTime") - public long time() { return XrSpatialGraphStaticNodeBindingCreateInfoMSFT.ntime(address()); } - - /** Sets the specified value to the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#type} field. */ - public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialGraphStaticNodeBindingCreateInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSpatialGraphBridge#XR_TYPE_SPATIAL_GRAPH_STATIC_NODE_BINDING_CREATE_INFO_MSFT TYPE_SPATIAL_GRAPH_STATIC_NODE_BINDING_CREATE_INFO_MSFT} value to the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#type} field. */ - public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer type$Default() { return type(MSFTSpatialGraphBridge.XR_TYPE_SPATIAL_GRAPH_STATIC_NODE_BINDING_CREATE_INFO_MSFT); } - /** Sets the specified value to the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#next} field. */ - public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialGraphStaticNodeBindingCreateInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#space} field. */ - public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer space(XrSpace value) { XrSpatialGraphStaticNodeBindingCreateInfoMSFT.nspace(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#poseInSpace} field. */ - public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer poseInSpace(XrPosef value) { XrSpatialGraphStaticNodeBindingCreateInfoMSFT.nposeInSpace(address(), value); return this; } - /** Passes the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#poseInSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer poseInSpace(java.util.function.Consumer consumer) { consumer.accept(poseInSpace()); return this; } - /** Sets the specified value to the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#time} field. */ - public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer time(@NativeType("XrTime") long value) { XrSpatialGraphStaticNodeBindingCreateInfoMSFT.ntime(address(), value); return this; } + + /** @return the value of the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSpatialGraphStaticNodeBindingCreateInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrSpatialGraphStaticNodeBindingCreateInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#space} field. */ + @NativeType("XrSpace") + public long space() { return XrSpatialGraphStaticNodeBindingCreateInfoMSFT.nspace(address()); } + /** @return a {@link XrPosef} view of the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#poseInSpace} field. */ + public XrPosef poseInSpace() { return XrSpatialGraphStaticNodeBindingCreateInfoMSFT.nposeInSpace(address()); } + /** @return the value of the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#time} field. */ + @NativeType("XrTime") + public long time() { return XrSpatialGraphStaticNodeBindingCreateInfoMSFT.ntime(address()); } + + /** Sets the specified value to the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#type} field. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSpatialGraphStaticNodeBindingCreateInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSpatialGraphBridge#XR_TYPE_SPATIAL_GRAPH_STATIC_NODE_BINDING_CREATE_INFO_MSFT TYPE_SPATIAL_GRAPH_STATIC_NODE_BINDING_CREATE_INFO_MSFT} value to the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#type} field. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer type$Default() { return type(MSFTSpatialGraphBridge.XR_TYPE_SPATIAL_GRAPH_STATIC_NODE_BINDING_CREATE_INFO_MSFT); } + /** Sets the specified value to the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#next} field. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrSpatialGraphStaticNodeBindingCreateInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#space} field. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer space(XrSpace value) { XrSpatialGraphStaticNodeBindingCreateInfoMSFT.nspace(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#poseInSpace} field. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer poseInSpace(XrPosef value) { XrSpatialGraphStaticNodeBindingCreateInfoMSFT.nposeInSpace(address(), value); return this; } + /** Passes the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#poseInSpace} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer poseInSpace(java.util.function.Consumer consumer) { consumer.accept(poseInSpace()); return this; } + /** Sets the specified value to the {@link XrSpatialGraphStaticNodeBindingCreateInfoMSFT#time} field. */ + public XrSpatialGraphStaticNodeBindingCreateInfoMSFT.Buffer time(@NativeType("XrTime") long value) { XrSpatialGraphStaticNodeBindingCreateInfoMSFT.ntime(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchain.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchain.java index cea87886cb..026a6ec09c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchain.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchain.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrSwapchain} handle. */ + +/** Wraps an {@code XrSwapchain} handle. */ public class XrSwapchain extends DispatchableHandle { private final XrSession session; @@ -26,4 +26,4 @@ public XrSession getSession() { return session; } -} +} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainCreateInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainCreateInfo.java index e6cece895c..a2c8e77063 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainCreateInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainCreateInfo.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Creation info for a swapchain. * @@ -22,7 +22,7 @@ * *
                                                                      *
                                                                    • {@code type} must be {@link XR10#XR_TYPE_SWAPCHAIN_CREATE_INFO TYPE_SWAPCHAIN_CREATE_INFO}
                                                                    • - *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT}, {@link XrSwapchainCreateInfoFoveationFB}, {@link XrVulkanSwapchainCreateInfoMETA}
                                                                    • + *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT}, {@link XrSwapchainCreateInfoFoveationFB}, {@link XrVulkanSwapchainCreateInfoMETA}
                                                                    • *
                                                                    • {@code createFlags} must be 0 or a valid combination of {@code XrSwapchainCreateFlagBits} values
                                                                    • *
                                                                    • {@code usageFlags} must be 0 or a valid combination of {@code XrSwapchainUsageFlagBits} values
                                                                    • *
                                                                    @@ -47,8 +47,8 @@ * uint32_t {@link #arraySize}; * uint32_t {@link #mipCount}; * } - */ -public class XrSwapchainCreateInfo extends Struct implements NativeResource { + */ +public class XrSwapchainCreateInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -58,48 +58,48 @@ public class XrSwapchainCreateInfo extends Struct impleme /** The struct member offsets. */ public static final int - TYPE, - NEXT, - CREATEFLAGS, - USAGEFLAGS, - FORMAT, - SAMPLECOUNT, - WIDTH, - HEIGHT, - FACECOUNT, - ARRAYSIZE, - MIPCOUNT; + TYPE, + NEXT, + CREATEFLAGS, + USAGEFLAGS, + FORMAT, + SAMPLECOUNT, + WIDTH, + HEIGHT, + FACECOUNT, + ARRAYSIZE, + MIPCOUNT; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), - __member(8), - __member(8), - __member(4), - __member(4), - __member(4), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), + __member(8), + __member(8), + __member(4), + __member(4), + __member(4), + __member(4), + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - CREATEFLAGS = layout.offsetof(2); - USAGEFLAGS = layout.offsetof(3); - FORMAT = layout.offsetof(4); - SAMPLECOUNT = layout.offsetof(5); - WIDTH = layout.offsetof(6); - HEIGHT = layout.offsetof(7); - FACECOUNT = layout.offsetof(8); - ARRAYSIZE = layout.offsetof(9); - MIPCOUNT = layout.offsetof(10); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + CREATEFLAGS = layout.offsetof(2); + USAGEFLAGS = layout.offsetof(3); + FORMAT = layout.offsetof(4); + SAMPLECOUNT = layout.offsetof(5); + WIDTH = layout.offsetof(6); + HEIGHT = layout.offsetof(7); + FACECOUNT = layout.offsetof(8); + ARRAYSIZE = layout.offsetof(9); + MIPCOUNT = layout.offsetof(10); + } protected XrSwapchainCreateInfo(long address, @Nullable ByteBuffer container) { super(address, container); @@ -122,97 +122,97 @@ public XrSwapchainCreateInfo(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** a bitmask of {@code XrSwapchainCreateFlagBits} describing additional properties of the swapchain. */ - @NativeType("XrSwapchainCreateFlags") - public long createFlags() { return ncreateFlags(address()); } - /** a bitmask of {@code XrSwapchainUsageFlagBits} describing the intended usage of the swapchain’s images. The usage flags define how the corresponding graphics API objects are created. A mismatch may result in swapchain images that do not support the application’s usage. */ - @NativeType("XrSwapchainUsageFlags") - public long usageFlags() { return nusageFlags(address()); } - /** a graphics API-specific texture format identifier. For example, if the graphics API specified in {@link XR10#xrCreateSession CreateSession} is Vulkan, then this format is a Vulkan format such as {@code VK_FORMAT_R8G8B8A8_SRGB}. The format identifies the format that the runtime will interpret the texture as upon submission. Valid formats are indicated by {@link XR10#xrEnumerateSwapchainFormats EnumerateSwapchainFormats}. */ - @NativeType("int64_t") - public long format() { return nformat(address()); } - /** the number of sub-data element samples in the image, must not be 0 or greater than the graphics API’s maximum limit. */ - @NativeType("uint32_t") - public int sampleCount() { return nsampleCount(address()); } - /** the width of the image, must not be 0 or greater than the graphics API’s maximum limit. */ - @NativeType("uint32_t") - public int width() { return nwidth(address()); } - /** the height of the image, must not be 0 or greater than the graphics API’s maximum limit. */ - @NativeType("uint32_t") - public int height() { return nheight(address()); } - /** the number of faces, which can be either 6 (for cubemaps) or 1. */ - @NativeType("uint32_t") - public int faceCount() { return nfaceCount(address()); } - /** the number of array layers in the image or 1 for a 2D image, must not be 0 or greater than the graphics API’s maximum limit. */ - @NativeType("uint32_t") - public int arraySize() { return narraySize(address()); } - /** describes the number of levels of detail available for minified sampling of the image, must not be 0 or greater than the graphics API’s maximum limit. */ - @NativeType("uint32_t") - public int mipCount() { return nmipCount(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSwapchainCreateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SWAPCHAIN_CREATE_INFO TYPE_SWAPCHAIN_CREATE_INFO} value to the {@link #type} field. */ - public XrSwapchainCreateInfo type$Default() { return type(XR10.XR_TYPE_SWAPCHAIN_CREATE_INFO); } - /** Sets the specified value to the {@link #next} field. */ - public XrSwapchainCreateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT} value to the {@code next} chain. */ - public XrSwapchainCreateInfo next(XrSecondaryViewConfigurationSwapchainCreateInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSwapchainCreateInfoFoveationFB} value to the {@code next} chain. */ - public XrSwapchainCreateInfo next(XrSwapchainCreateInfoFoveationFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrVulkanSwapchainCreateInfoMETA} value to the {@code next} chain. */ - public XrSwapchainCreateInfo next(XrVulkanSwapchainCreateInfoMETA value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #createFlags} field. */ - public XrSwapchainCreateInfo createFlags(@NativeType("XrSwapchainCreateFlags") long value) { ncreateFlags(address(), value); return this; } - /** Sets the specified value to the {@link #usageFlags} field. */ - public XrSwapchainCreateInfo usageFlags(@NativeType("XrSwapchainUsageFlags") long value) { nusageFlags(address(), value); return this; } - /** Sets the specified value to the {@link #format} field. */ - public XrSwapchainCreateInfo format(@NativeType("int64_t") long value) { nformat(address(), value); return this; } - /** Sets the specified value to the {@link #sampleCount} field. */ - public XrSwapchainCreateInfo sampleCount(@NativeType("uint32_t") int value) { nsampleCount(address(), value); return this; } - /** Sets the specified value to the {@link #width} field. */ - public XrSwapchainCreateInfo width(@NativeType("uint32_t") int value) { nwidth(address(), value); return this; } - /** Sets the specified value to the {@link #height} field. */ - public XrSwapchainCreateInfo height(@NativeType("uint32_t") int value) { nheight(address(), value); return this; } - /** Sets the specified value to the {@link #faceCount} field. */ - public XrSwapchainCreateInfo faceCount(@NativeType("uint32_t") int value) { nfaceCount(address(), value); return this; } - /** Sets the specified value to the {@link #arraySize} field. */ - public XrSwapchainCreateInfo arraySize(@NativeType("uint32_t") int value) { narraySize(address(), value); return this; } - /** Sets the specified value to the {@link #mipCount} field. */ - public XrSwapchainCreateInfo mipCount(@NativeType("uint32_t") int value) { nmipCount(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** a bitmask of {@code XrSwapchainCreateFlagBits} describing additional properties of the swapchain. */ + @NativeType("XrSwapchainCreateFlags") + public long createFlags() { return ncreateFlags(address()); } + /** a bitmask of {@code XrSwapchainUsageFlagBits} describing the intended usage of the swapchain’s images. The usage flags define how the corresponding graphics API objects are created. A mismatch may result in swapchain images that do not support the application’s usage. */ + @NativeType("XrSwapchainUsageFlags") + public long usageFlags() { return nusageFlags(address()); } + /** a graphics API-specific texture format identifier. For example, if the graphics API specified in {@link XR10#xrCreateSession CreateSession} is Vulkan, then this format is a Vulkan format such as {@code VK_FORMAT_R8G8B8A8_SRGB}. The format identifies the format that the runtime will interpret the texture as upon submission. Valid formats are indicated by {@link XR10#xrEnumerateSwapchainFormats EnumerateSwapchainFormats}. */ + @NativeType("int64_t") + public long format() { return nformat(address()); } + /** the number of sub-data element samples in the image, must not be 0 or greater than the graphics API’s maximum limit. */ + @NativeType("uint32_t") + public int sampleCount() { return nsampleCount(address()); } + /** the width of the image, must not be 0 or greater than the graphics API’s maximum limit. */ + @NativeType("uint32_t") + public int width() { return nwidth(address()); } + /** the height of the image, must not be 0 or greater than the graphics API’s maximum limit. */ + @NativeType("uint32_t") + public int height() { return nheight(address()); } + /** the number of faces, which can be either 6 (for cubemaps) or 1. */ + @NativeType("uint32_t") + public int faceCount() { return nfaceCount(address()); } + /** the number of array layers in the image or 1 for a 2D image, must not be 0 or greater than the graphics API’s maximum limit. */ + @NativeType("uint32_t") + public int arraySize() { return narraySize(address()); } + /** describes the number of levels of detail available for minified sampling of the image, must not be 0 or greater than the graphics API’s maximum limit. */ + @NativeType("uint32_t") + public int mipCount() { return nmipCount(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSwapchainCreateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SWAPCHAIN_CREATE_INFO TYPE_SWAPCHAIN_CREATE_INFO} value to the {@link #type} field. */ + public XrSwapchainCreateInfo type$Default() { return type(XR10.XR_TYPE_SWAPCHAIN_CREATE_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrSwapchainCreateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT} value to the {@code next} chain. */ + public XrSwapchainCreateInfo next(XrSecondaryViewConfigurationSwapchainCreateInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSwapchainCreateInfoFoveationFB} value to the {@code next} chain. */ + public XrSwapchainCreateInfo next(XrSwapchainCreateInfoFoveationFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrVulkanSwapchainCreateInfoMETA} value to the {@code next} chain. */ + public XrSwapchainCreateInfo next(XrVulkanSwapchainCreateInfoMETA value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #createFlags} field. */ + public XrSwapchainCreateInfo createFlags(@NativeType("XrSwapchainCreateFlags") long value) { ncreateFlags(address(), value); return this; } + /** Sets the specified value to the {@link #usageFlags} field. */ + public XrSwapchainCreateInfo usageFlags(@NativeType("XrSwapchainUsageFlags") long value) { nusageFlags(address(), value); return this; } + /** Sets the specified value to the {@link #format} field. */ + public XrSwapchainCreateInfo format(@NativeType("int64_t") long value) { nformat(address(), value); return this; } + /** Sets the specified value to the {@link #sampleCount} field. */ + public XrSwapchainCreateInfo sampleCount(@NativeType("uint32_t") int value) { nsampleCount(address(), value); return this; } + /** Sets the specified value to the {@link #width} field. */ + public XrSwapchainCreateInfo width(@NativeType("uint32_t") int value) { nwidth(address(), value); return this; } + /** Sets the specified value to the {@link #height} field. */ + public XrSwapchainCreateInfo height(@NativeType("uint32_t") int value) { nheight(address(), value); return this; } + /** Sets the specified value to the {@link #faceCount} field. */ + public XrSwapchainCreateInfo faceCount(@NativeType("uint32_t") int value) { nfaceCount(address(), value); return this; } + /** Sets the specified value to the {@link #arraySize} field. */ + public XrSwapchainCreateInfo arraySize(@NativeType("uint32_t") int value) { narraySize(address(), value); return this; } + /** Sets the specified value to the {@link #mipCount} field. */ + public XrSwapchainCreateInfo mipCount(@NativeType("uint32_t") int value) { nmipCount(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSwapchainCreateInfo set( - int type, - long next, - long createFlags, - long usageFlags, - long format, - int sampleCount, - int width, - int height, - int faceCount, - int arraySize, + int type, + long next, + long createFlags, + long usageFlags, + long format, + int sampleCount, + int width, + int height, + int faceCount, + int arraySize, int mipCount - ) { - type(type); - next(next); - createFlags(createFlags); - usageFlags(usageFlags); - format(format); - sampleCount(sampleCount); - width(width); - height(height); - faceCount(faceCount); - arraySize(arraySize); - mipCount(mipCount); + ) { + type(type); + next(next); + createFlags(createFlags); + usageFlags(usageFlags); + format(format); + sampleCount(sampleCount); + width(width); + height(height); + faceCount(faceCount); + arraySize(arraySize); + mipCount(mipCount); return this; } @@ -341,54 +341,54 @@ public static XrSwapchainCreateInfo.Buffer calloc(int capacity, MemoryStack stac } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainCreateInfo.NEXT); } - /** Unsafe version of {@link #createFlags}. */ - public static long ncreateFlags(long struct) { return UNSAFE.getLong(null, struct + XrSwapchainCreateInfo.CREATEFLAGS); } - /** Unsafe version of {@link #usageFlags}. */ - public static long nusageFlags(long struct) { return UNSAFE.getLong(null, struct + XrSwapchainCreateInfo.USAGEFLAGS); } - /** Unsafe version of {@link #format}. */ - public static long nformat(long struct) { return UNSAFE.getLong(null, struct + XrSwapchainCreateInfo.FORMAT); } - /** Unsafe version of {@link #sampleCount}. */ - public static int nsampleCount(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.SAMPLECOUNT); } - /** Unsafe version of {@link #width}. */ - public static int nwidth(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.WIDTH); } - /** Unsafe version of {@link #height}. */ - public static int nheight(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.HEIGHT); } - /** Unsafe version of {@link #faceCount}. */ - public static int nfaceCount(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.FACECOUNT); } - /** Unsafe version of {@link #arraySize}. */ - public static int narraySize(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.ARRAYSIZE); } - /** Unsafe version of {@link #mipCount}. */ - public static int nmipCount(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.MIPCOUNT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainCreateInfo.NEXT, value); } - /** Unsafe version of {@link #createFlags(long) createFlags}. */ - public static void ncreateFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrSwapchainCreateInfo.CREATEFLAGS, value); } - /** Unsafe version of {@link #usageFlags(long) usageFlags}. */ - public static void nusageFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrSwapchainCreateInfo.USAGEFLAGS, value); } - /** Unsafe version of {@link #format(long) format}. */ - public static void nformat(long struct, long value) { UNSAFE.putLong(null, struct + XrSwapchainCreateInfo.FORMAT, value); } - /** Unsafe version of {@link #sampleCount(int) sampleCount}. */ - public static void nsampleCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.SAMPLECOUNT, value); } - /** Unsafe version of {@link #width(int) width}. */ - public static void nwidth(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.WIDTH, value); } - /** Unsafe version of {@link #height(int) height}. */ - public static void nheight(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.HEIGHT, value); } - /** Unsafe version of {@link #faceCount(int) faceCount}. */ - public static void nfaceCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.FACECOUNT, value); } - /** Unsafe version of {@link #arraySize(int) arraySize}. */ - public static void narraySize(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.ARRAYSIZE, value); } - /** Unsafe version of {@link #mipCount(int) mipCount}. */ - public static void nmipCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.MIPCOUNT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainCreateInfo.NEXT); } + /** Unsafe version of {@link #createFlags}. */ + public static long ncreateFlags(long struct) { return UNSAFE.getLong(null, struct + XrSwapchainCreateInfo.CREATEFLAGS); } + /** Unsafe version of {@link #usageFlags}. */ + public static long nusageFlags(long struct) { return UNSAFE.getLong(null, struct + XrSwapchainCreateInfo.USAGEFLAGS); } + /** Unsafe version of {@link #format}. */ + public static long nformat(long struct) { return UNSAFE.getLong(null, struct + XrSwapchainCreateInfo.FORMAT); } + /** Unsafe version of {@link #sampleCount}. */ + public static int nsampleCount(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.SAMPLECOUNT); } + /** Unsafe version of {@link #width}. */ + public static int nwidth(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.WIDTH); } + /** Unsafe version of {@link #height}. */ + public static int nheight(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.HEIGHT); } + /** Unsafe version of {@link #faceCount}. */ + public static int nfaceCount(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.FACECOUNT); } + /** Unsafe version of {@link #arraySize}. */ + public static int narraySize(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.ARRAYSIZE); } + /** Unsafe version of {@link #mipCount}. */ + public static int nmipCount(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainCreateInfo.MIPCOUNT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainCreateInfo.NEXT, value); } + /** Unsafe version of {@link #createFlags(long) createFlags}. */ + public static void ncreateFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrSwapchainCreateInfo.CREATEFLAGS, value); } + /** Unsafe version of {@link #usageFlags(long) usageFlags}. */ + public static void nusageFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrSwapchainCreateInfo.USAGEFLAGS, value); } + /** Unsafe version of {@link #format(long) format}. */ + public static void nformat(long struct, long value) { UNSAFE.putLong(null, struct + XrSwapchainCreateInfo.FORMAT, value); } + /** Unsafe version of {@link #sampleCount(int) sampleCount}. */ + public static void nsampleCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.SAMPLECOUNT, value); } + /** Unsafe version of {@link #width(int) width}. */ + public static void nwidth(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.WIDTH, value); } + /** Unsafe version of {@link #height(int) height}. */ + public static void nheight(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.HEIGHT, value); } + /** Unsafe version of {@link #faceCount(int) faceCount}. */ + public static void nfaceCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.FACECOUNT, value); } + /** Unsafe version of {@link #arraySize(int) arraySize}. */ + public static void narraySize(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.ARRAYSIZE, value); } + /** Unsafe version of {@link #mipCount(int) mipCount}. */ + public static void nmipCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainCreateInfo.MIPCOUNT, value); } + + // ----------------------------------- /** An array of {@link XrSwapchainCreateInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -425,71 +425,71 @@ protected Buffer self() { protected XrSwapchainCreateInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainCreateInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainCreateInfo.ntype(address()); } - /** @return the value of the {@link XrSwapchainCreateInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrSwapchainCreateInfo.nnext(address()); } - /** @return the value of the {@link XrSwapchainCreateInfo#createFlags} field. */ - @NativeType("XrSwapchainCreateFlags") - public long createFlags() { return XrSwapchainCreateInfo.ncreateFlags(address()); } - /** @return the value of the {@link XrSwapchainCreateInfo#usageFlags} field. */ - @NativeType("XrSwapchainUsageFlags") - public long usageFlags() { return XrSwapchainCreateInfo.nusageFlags(address()); } - /** @return the value of the {@link XrSwapchainCreateInfo#format} field. */ - @NativeType("int64_t") - public long format() { return XrSwapchainCreateInfo.nformat(address()); } - /** @return the value of the {@link XrSwapchainCreateInfo#sampleCount} field. */ - @NativeType("uint32_t") - public int sampleCount() { return XrSwapchainCreateInfo.nsampleCount(address()); } - /** @return the value of the {@link XrSwapchainCreateInfo#width} field. */ - @NativeType("uint32_t") - public int width() { return XrSwapchainCreateInfo.nwidth(address()); } - /** @return the value of the {@link XrSwapchainCreateInfo#height} field. */ - @NativeType("uint32_t") - public int height() { return XrSwapchainCreateInfo.nheight(address()); } - /** @return the value of the {@link XrSwapchainCreateInfo#faceCount} field. */ - @NativeType("uint32_t") - public int faceCount() { return XrSwapchainCreateInfo.nfaceCount(address()); } - /** @return the value of the {@link XrSwapchainCreateInfo#arraySize} field. */ - @NativeType("uint32_t") - public int arraySize() { return XrSwapchainCreateInfo.narraySize(address()); } - /** @return the value of the {@link XrSwapchainCreateInfo#mipCount} field. */ - @NativeType("uint32_t") - public int mipCount() { return XrSwapchainCreateInfo.nmipCount(address()); } - - /** Sets the specified value to the {@link XrSwapchainCreateInfo#type} field. */ - public XrSwapchainCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainCreateInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SWAPCHAIN_CREATE_INFO TYPE_SWAPCHAIN_CREATE_INFO} value to the {@link XrSwapchainCreateInfo#type} field. */ - public XrSwapchainCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SWAPCHAIN_CREATE_INFO); } - /** Sets the specified value to the {@link XrSwapchainCreateInfo#next} field. */ - public XrSwapchainCreateInfo.Buffer next(@NativeType("void const *") long value) { XrSwapchainCreateInfo.nnext(address(), value); return this; } - /** Prepends the specified {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT} value to the {@code next} chain. */ - public XrSwapchainCreateInfo.Buffer next(XrSecondaryViewConfigurationSwapchainCreateInfoMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSwapchainCreateInfoFoveationFB} value to the {@code next} chain. */ - public XrSwapchainCreateInfo.Buffer next(XrSwapchainCreateInfoFoveationFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrVulkanSwapchainCreateInfoMETA} value to the {@code next} chain. */ - public XrSwapchainCreateInfo.Buffer next(XrVulkanSwapchainCreateInfoMETA value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrSwapchainCreateInfo#createFlags} field. */ - public XrSwapchainCreateInfo.Buffer createFlags(@NativeType("XrSwapchainCreateFlags") long value) { XrSwapchainCreateInfo.ncreateFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainCreateInfo#usageFlags} field. */ - public XrSwapchainCreateInfo.Buffer usageFlags(@NativeType("XrSwapchainUsageFlags") long value) { XrSwapchainCreateInfo.nusageFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainCreateInfo#format} field. */ - public XrSwapchainCreateInfo.Buffer format(@NativeType("int64_t") long value) { XrSwapchainCreateInfo.nformat(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainCreateInfo#sampleCount} field. */ - public XrSwapchainCreateInfo.Buffer sampleCount(@NativeType("uint32_t") int value) { XrSwapchainCreateInfo.nsampleCount(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainCreateInfo#width} field. */ - public XrSwapchainCreateInfo.Buffer width(@NativeType("uint32_t") int value) { XrSwapchainCreateInfo.nwidth(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainCreateInfo#height} field. */ - public XrSwapchainCreateInfo.Buffer height(@NativeType("uint32_t") int value) { XrSwapchainCreateInfo.nheight(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainCreateInfo#faceCount} field. */ - public XrSwapchainCreateInfo.Buffer faceCount(@NativeType("uint32_t") int value) { XrSwapchainCreateInfo.nfaceCount(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainCreateInfo#arraySize} field. */ - public XrSwapchainCreateInfo.Buffer arraySize(@NativeType("uint32_t") int value) { XrSwapchainCreateInfo.narraySize(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainCreateInfo#mipCount} field. */ - public XrSwapchainCreateInfo.Buffer mipCount(@NativeType("uint32_t") int value) { XrSwapchainCreateInfo.nmipCount(address(), value); return this; } + + /** @return the value of the {@link XrSwapchainCreateInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainCreateInfo.ntype(address()); } + /** @return the value of the {@link XrSwapchainCreateInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrSwapchainCreateInfo.nnext(address()); } + /** @return the value of the {@link XrSwapchainCreateInfo#createFlags} field. */ + @NativeType("XrSwapchainCreateFlags") + public long createFlags() { return XrSwapchainCreateInfo.ncreateFlags(address()); } + /** @return the value of the {@link XrSwapchainCreateInfo#usageFlags} field. */ + @NativeType("XrSwapchainUsageFlags") + public long usageFlags() { return XrSwapchainCreateInfo.nusageFlags(address()); } + /** @return the value of the {@link XrSwapchainCreateInfo#format} field. */ + @NativeType("int64_t") + public long format() { return XrSwapchainCreateInfo.nformat(address()); } + /** @return the value of the {@link XrSwapchainCreateInfo#sampleCount} field. */ + @NativeType("uint32_t") + public int sampleCount() { return XrSwapchainCreateInfo.nsampleCount(address()); } + /** @return the value of the {@link XrSwapchainCreateInfo#width} field. */ + @NativeType("uint32_t") + public int width() { return XrSwapchainCreateInfo.nwidth(address()); } + /** @return the value of the {@link XrSwapchainCreateInfo#height} field. */ + @NativeType("uint32_t") + public int height() { return XrSwapchainCreateInfo.nheight(address()); } + /** @return the value of the {@link XrSwapchainCreateInfo#faceCount} field. */ + @NativeType("uint32_t") + public int faceCount() { return XrSwapchainCreateInfo.nfaceCount(address()); } + /** @return the value of the {@link XrSwapchainCreateInfo#arraySize} field. */ + @NativeType("uint32_t") + public int arraySize() { return XrSwapchainCreateInfo.narraySize(address()); } + /** @return the value of the {@link XrSwapchainCreateInfo#mipCount} field. */ + @NativeType("uint32_t") + public int mipCount() { return XrSwapchainCreateInfo.nmipCount(address()); } + + /** Sets the specified value to the {@link XrSwapchainCreateInfo#type} field. */ + public XrSwapchainCreateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainCreateInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SWAPCHAIN_CREATE_INFO TYPE_SWAPCHAIN_CREATE_INFO} value to the {@link XrSwapchainCreateInfo#type} field. */ + public XrSwapchainCreateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SWAPCHAIN_CREATE_INFO); } + /** Sets the specified value to the {@link XrSwapchainCreateInfo#next} field. */ + public XrSwapchainCreateInfo.Buffer next(@NativeType("void const *") long value) { XrSwapchainCreateInfo.nnext(address(), value); return this; } + /** Prepends the specified {@link XrSecondaryViewConfigurationSwapchainCreateInfoMSFT} value to the {@code next} chain. */ + public XrSwapchainCreateInfo.Buffer next(XrSecondaryViewConfigurationSwapchainCreateInfoMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSwapchainCreateInfoFoveationFB} value to the {@code next} chain. */ + public XrSwapchainCreateInfo.Buffer next(XrSwapchainCreateInfoFoveationFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrVulkanSwapchainCreateInfoMETA} value to the {@code next} chain. */ + public XrSwapchainCreateInfo.Buffer next(XrVulkanSwapchainCreateInfoMETA value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrSwapchainCreateInfo#createFlags} field. */ + public XrSwapchainCreateInfo.Buffer createFlags(@NativeType("XrSwapchainCreateFlags") long value) { XrSwapchainCreateInfo.ncreateFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainCreateInfo#usageFlags} field. */ + public XrSwapchainCreateInfo.Buffer usageFlags(@NativeType("XrSwapchainUsageFlags") long value) { XrSwapchainCreateInfo.nusageFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainCreateInfo#format} field. */ + public XrSwapchainCreateInfo.Buffer format(@NativeType("int64_t") long value) { XrSwapchainCreateInfo.nformat(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainCreateInfo#sampleCount} field. */ + public XrSwapchainCreateInfo.Buffer sampleCount(@NativeType("uint32_t") int value) { XrSwapchainCreateInfo.nsampleCount(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainCreateInfo#width} field. */ + public XrSwapchainCreateInfo.Buffer width(@NativeType("uint32_t") int value) { XrSwapchainCreateInfo.nwidth(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainCreateInfo#height} field. */ + public XrSwapchainCreateInfo.Buffer height(@NativeType("uint32_t") int value) { XrSwapchainCreateInfo.nheight(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainCreateInfo#faceCount} field. */ + public XrSwapchainCreateInfo.Buffer faceCount(@NativeType("uint32_t") int value) { XrSwapchainCreateInfo.nfaceCount(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainCreateInfo#arraySize} field. */ + public XrSwapchainCreateInfo.Buffer arraySize(@NativeType("uint32_t") int value) { XrSwapchainCreateInfo.narraySize(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainCreateInfo#mipCount} field. */ + public XrSwapchainCreateInfo.Buffer mipCount(@NativeType("uint32_t") int value) { XrSwapchainCreateInfo.nmipCount(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainCreateInfoFoveationFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainCreateInfoFoveationFB.java index 57c0a7bf61..3dda4bd1b1 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainCreateInfoFoveationFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainCreateInfoFoveationFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The information to create a swapchain supporting foveation. * @@ -23,7 +23,7 @@ *
                                                                      *
                                                                    • The {@link FBFoveation XR_FB_foveation} extension must be enabled prior to using {@link XrSwapchainCreateInfoFoveationFB}
                                                                    • *
                                                                    • {@code type} must be {@link FBFoveation#XR_TYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FB TYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FB}
                                                                    • - *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • + *
                                                                    • {@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 XrSwapchainCreateFoveationFlagBitsFB} values
                                                                    • *
                                                                    * @@ -35,8 +35,8 @@ * void * {@link #next}; * XrSwapchainCreateFoveationFlagsFB {@link #flags}; * } - */ -public class XrSwapchainCreateInfoFoveationFB extends Struct implements NativeResource { + */ +public class XrSwapchainCreateInfoFoveationFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -46,24 +46,24 @@ public class XrSwapchainCreateInfoFoveationFB extends Struct implements NativeResource { @@ -295,25 +295,25 @@ protected Buffer self() { protected XrSwapchainCreateInfoFoveationFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainCreateInfoFoveationFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainCreateInfoFoveationFB.ntype(address()); } - /** @return the value of the {@link XrSwapchainCreateInfoFoveationFB#next} field. */ - @NativeType("void *") - public long next() { return XrSwapchainCreateInfoFoveationFB.nnext(address()); } - /** @return the value of the {@link XrSwapchainCreateInfoFoveationFB#flags} field. */ - @NativeType("XrSwapchainCreateFoveationFlagsFB") - public long flags() { return XrSwapchainCreateInfoFoveationFB.nflags(address()); } - - /** Sets the specified value to the {@link XrSwapchainCreateInfoFoveationFB#type} field. */ - public XrSwapchainCreateInfoFoveationFB.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainCreateInfoFoveationFB.ntype(address(), value); return this; } - /** Sets the {@link FBFoveation#XR_TYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FB TYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FB} value to the {@link XrSwapchainCreateInfoFoveationFB#type} field. */ - public XrSwapchainCreateInfoFoveationFB.Buffer type$Default() { return type(FBFoveation.XR_TYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FB); } - /** Sets the specified value to the {@link XrSwapchainCreateInfoFoveationFB#next} field. */ - public XrSwapchainCreateInfoFoveationFB.Buffer next(@NativeType("void *") long value) { XrSwapchainCreateInfoFoveationFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainCreateInfoFoveationFB#flags} field. */ - public XrSwapchainCreateInfoFoveationFB.Buffer flags(@NativeType("XrSwapchainCreateFoveationFlagsFB") long value) { XrSwapchainCreateInfoFoveationFB.nflags(address(), value); return this; } + + /** @return the value of the {@link XrSwapchainCreateInfoFoveationFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainCreateInfoFoveationFB.ntype(address()); } + /** @return the value of the {@link XrSwapchainCreateInfoFoveationFB#next} field. */ + @NativeType("void *") + public long next() { return XrSwapchainCreateInfoFoveationFB.nnext(address()); } + /** @return the value of the {@link XrSwapchainCreateInfoFoveationFB#flags} field. */ + @NativeType("XrSwapchainCreateFoveationFlagsFB") + public long flags() { return XrSwapchainCreateInfoFoveationFB.nflags(address()); } + + /** Sets the specified value to the {@link XrSwapchainCreateInfoFoveationFB#type} field. */ + public XrSwapchainCreateInfoFoveationFB.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainCreateInfoFoveationFB.ntype(address(), value); return this; } + /** Sets the {@link FBFoveation#XR_TYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FB TYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FB} value to the {@link XrSwapchainCreateInfoFoveationFB#type} field. */ + public XrSwapchainCreateInfoFoveationFB.Buffer type$Default() { return type(FBFoveation.XR_TYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FB); } + /** Sets the specified value to the {@link XrSwapchainCreateInfoFoveationFB#next} field. */ + public XrSwapchainCreateInfoFoveationFB.Buffer next(@NativeType("void *") long value) { XrSwapchainCreateInfoFoveationFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainCreateInfoFoveationFB#flags} field. */ + public XrSwapchainCreateInfoFoveationFB.Buffer flags(@NativeType("XrSwapchainCreateFoveationFlagsFB") long value) { XrSwapchainCreateInfoFoveationFB.nflags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageAcquireInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageAcquireInfo.java index 55317910fa..78a53dea8f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageAcquireInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageAcquireInfo.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes a swapchain image acquisition. * @@ -26,7 +26,7 @@ * * * *
                                                                    See Also
                                                                    @@ -40,8 +40,8 @@ * XrStructureType {@link #type}; * void const * {@link #next}; * } - */ -public class XrSwapchainImageAcquireInfo extends Struct implements NativeResource { + */ +public class XrSwapchainImageAcquireInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,21 +51,21 @@ public class XrSwapchainImageAcquireInfo extends Struct implements NativeResource { @@ -286,20 +286,20 @@ protected Buffer self() { protected XrSwapchainImageAcquireInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainImageAcquireInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainImageAcquireInfo.ntype(address()); } - /** @return the value of the {@link XrSwapchainImageAcquireInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrSwapchainImageAcquireInfo.nnext(address()); } - - /** Sets the specified value to the {@link XrSwapchainImageAcquireInfo#type} field. */ - public XrSwapchainImageAcquireInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageAcquireInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SWAPCHAIN_IMAGE_ACQUIRE_INFO TYPE_SWAPCHAIN_IMAGE_ACQUIRE_INFO} value to the {@link XrSwapchainImageAcquireInfo#type} field. */ - public XrSwapchainImageAcquireInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SWAPCHAIN_IMAGE_ACQUIRE_INFO); } - /** Sets the specified value to the {@link XrSwapchainImageAcquireInfo#next} field. */ - public XrSwapchainImageAcquireInfo.Buffer next(@NativeType("void const *") long value) { XrSwapchainImageAcquireInfo.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSwapchainImageAcquireInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainImageAcquireInfo.ntype(address()); } + /** @return the value of the {@link XrSwapchainImageAcquireInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrSwapchainImageAcquireInfo.nnext(address()); } + + /** Sets the specified value to the {@link XrSwapchainImageAcquireInfo#type} field. */ + public XrSwapchainImageAcquireInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageAcquireInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SWAPCHAIN_IMAGE_ACQUIRE_INFO TYPE_SWAPCHAIN_IMAGE_ACQUIRE_INFO} value to the {@link XrSwapchainImageAcquireInfo#type} field. */ + public XrSwapchainImageAcquireInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SWAPCHAIN_IMAGE_ACQUIRE_INFO); } + /** Sets the specified value to the {@link XrSwapchainImageAcquireInfo#next} field. */ + public XrSwapchainImageAcquireInfo.Buffer next(@NativeType("void const *") long value) { XrSwapchainImageAcquireInfo.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageBaseHeader.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageBaseHeader.java index 641a24fdcd..b2fc033484 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageBaseHeader.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageBaseHeader.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Image base header for a swapchain image. * @@ -25,8 +25,8 @@ *
                                                                    Valid Usage (Implicit)
                                                                    * *
                                                                      - *
                                                                    • {@code type} must be one of the following XrStructureType values: {@link KHROpenGLEnable#XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR}, {@link KHRVulkanEnable#XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR}
                                                                    • - *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • + *
                                                                    • {@code type} must be one of the following XrStructureType values: {@link KHROpenGLESEnable#XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR}, {@link KHROpenGLEnable#XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR}, {@link KHRVulkanEnable#XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR}
                                                                    • + *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • *
                                                                    * *
                                                                    See Also
                                                                    @@ -40,8 +40,8 @@ * XrStructureType {@link #type}; * void * {@link #next}; * } - */ -public class XrSwapchainImageBaseHeader extends Struct implements NativeResource { + */ +public class XrSwapchainImageBaseHeader extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,21 +51,21 @@ public class XrSwapchainImageBaseHeader extends Struct implements NativeResource { @@ -304,18 +314,18 @@ protected Buffer self() { protected XrSwapchainImageBaseHeader getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainImageBaseHeader#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainImageBaseHeader.ntype(address()); } - /** @return the value of the {@link XrSwapchainImageBaseHeader#next} field. */ - @NativeType("void *") - public long next() { return XrSwapchainImageBaseHeader.nnext(address()); } - - /** Sets the specified value to the {@link XrSwapchainImageBaseHeader#type} field. */ - public XrSwapchainImageBaseHeader.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageBaseHeader.ntype(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainImageBaseHeader#next} field. */ - public XrSwapchainImageBaseHeader.Buffer next(@NativeType("void *") long value) { XrSwapchainImageBaseHeader.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSwapchainImageBaseHeader#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainImageBaseHeader.ntype(address()); } + /** @return the value of the {@link XrSwapchainImageBaseHeader#next} field. */ + @NativeType("void *") + public long next() { return XrSwapchainImageBaseHeader.nnext(address()); } + + /** Sets the specified value to the {@link XrSwapchainImageBaseHeader#type} field. */ + public XrSwapchainImageBaseHeader.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageBaseHeader.ntype(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainImageBaseHeader#next} field. */ + public XrSwapchainImageBaseHeader.Buffer next(@NativeType("void *") long value) { XrSwapchainImageBaseHeader.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageFoveationVulkanFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageFoveationVulkanFB.java index 6688228c24..03b3d083d8 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageFoveationVulkanFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageFoveationVulkanFB.java @@ -4,19 +4,19 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import org.lwjgl.vulkan.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.vulkan.*; + /** * Profile with properties defining a foveation pattern. * @@ -25,7 +25,7 @@ *
                                                                      *
                                                                    • The {@link FBFoveationVulkan XR_FB_foveation_vulkan} extension must be enabled prior to using {@link XrSwapchainImageFoveationVulkanFB}
                                                                    • *
                                                                    • {@code type} must be {@link FBFoveationVulkan#XR_TYPE_SWAPCHAIN_IMAGE_FOVEATION_VULKAN_FB TYPE_SWAPCHAIN_IMAGE_FOVEATION_VULKAN_FB}
                                                                    • - *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • + *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • *
                                                                    * *
                                                                    See Also
                                                                    @@ -42,8 +42,8 @@ * uint32_t {@link #width}; * uint32_t {@link #height}; * } - */ -public class XrSwapchainImageFoveationVulkanFB extends Struct implements NativeResource { + */ +public class XrSwapchainImageFoveationVulkanFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,30 +53,30 @@ public class XrSwapchainImageFoveationVulkanFB extends Struct implements NativeResource { @@ -312,29 +312,29 @@ protected Buffer self() { protected XrSwapchainImageFoveationVulkanFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainImageFoveationVulkanFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainImageFoveationVulkanFB.ntype(address()); } - /** @return the value of the {@link XrSwapchainImageFoveationVulkanFB#next} field. */ - @NativeType("void *") - public long next() { return XrSwapchainImageFoveationVulkanFB.nnext(address()); } - /** @return the value of the {@link XrSwapchainImageFoveationVulkanFB#image} field. */ - @NativeType("VkImage") - public long image() { return XrSwapchainImageFoveationVulkanFB.nimage(address()); } - /** @return the value of the {@link XrSwapchainImageFoveationVulkanFB#width} field. */ - @NativeType("uint32_t") - public int width() { return XrSwapchainImageFoveationVulkanFB.nwidth(address()); } - /** @return the value of the {@link XrSwapchainImageFoveationVulkanFB#height} field. */ - @NativeType("uint32_t") - public int height() { return XrSwapchainImageFoveationVulkanFB.nheight(address()); } - - /** Sets the specified value to the {@link XrSwapchainImageFoveationVulkanFB#type} field. */ - public XrSwapchainImageFoveationVulkanFB.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageFoveationVulkanFB.ntype(address(), value); return this; } - /** Sets the {@link FBFoveationVulkan#XR_TYPE_SWAPCHAIN_IMAGE_FOVEATION_VULKAN_FB TYPE_SWAPCHAIN_IMAGE_FOVEATION_VULKAN_FB} value to the {@link XrSwapchainImageFoveationVulkanFB#type} field. */ - public XrSwapchainImageFoveationVulkanFB.Buffer type$Default() { return type(FBFoveationVulkan.XR_TYPE_SWAPCHAIN_IMAGE_FOVEATION_VULKAN_FB); } - /** Sets the specified value to the {@link XrSwapchainImageFoveationVulkanFB#next} field. */ - public XrSwapchainImageFoveationVulkanFB.Buffer next(@NativeType("void *") long value) { XrSwapchainImageFoveationVulkanFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSwapchainImageFoveationVulkanFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainImageFoveationVulkanFB.ntype(address()); } + /** @return the value of the {@link XrSwapchainImageFoveationVulkanFB#next} field. */ + @NativeType("void *") + public long next() { return XrSwapchainImageFoveationVulkanFB.nnext(address()); } + /** @return the value of the {@link XrSwapchainImageFoveationVulkanFB#image} field. */ + @NativeType("VkImage") + public long image() { return XrSwapchainImageFoveationVulkanFB.nimage(address()); } + /** @return the value of the {@link XrSwapchainImageFoveationVulkanFB#width} field. */ + @NativeType("uint32_t") + public int width() { return XrSwapchainImageFoveationVulkanFB.nwidth(address()); } + /** @return the value of the {@link XrSwapchainImageFoveationVulkanFB#height} field. */ + @NativeType("uint32_t") + public int height() { return XrSwapchainImageFoveationVulkanFB.nheight(address()); } + + /** Sets the specified value to the {@link XrSwapchainImageFoveationVulkanFB#type} field. */ + public XrSwapchainImageFoveationVulkanFB.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageFoveationVulkanFB.ntype(address(), value); return this; } + /** Sets the {@link FBFoveationVulkan#XR_TYPE_SWAPCHAIN_IMAGE_FOVEATION_VULKAN_FB TYPE_SWAPCHAIN_IMAGE_FOVEATION_VULKAN_FB} value to the {@link XrSwapchainImageFoveationVulkanFB#type} field. */ + public XrSwapchainImageFoveationVulkanFB.Buffer type$Default() { return type(FBFoveationVulkan.XR_TYPE_SWAPCHAIN_IMAGE_FOVEATION_VULKAN_FB); } + /** Sets the specified value to the {@link XrSwapchainImageFoveationVulkanFB#next} field. */ + public XrSwapchainImageFoveationVulkanFB.Buffer next(@NativeType("void *") long value) { XrSwapchainImageFoveationVulkanFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageOpenGLESKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageOpenGLESKHR.java new file mode 100644 index 0000000000..b922547bf4 --- /dev/null +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageOpenGLESKHR.java @@ -0,0 +1,338 @@ +/* + * 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.*; + +/** + * OpenGL ES-specific swapchain image structure. + * + *
                                                                    Description
                                                                    + * + *

                                                                    If a given session was created with a stext:XrGraphicsBindingOpenGLES*KHR, the following conditions must apply.

                                                                    + * + *
                                                                      + *
                                                                    • Calls to {@link XR10#xrEnumerateSwapchainImages EnumerateSwapchainImages} on an {@code XrSwapchain} in that session must return an array of {@link XrSwapchainImageOpenGLESKHR} structures.
                                                                    • + *
                                                                    • Whenever an OpenXR function accepts an {@link XrSwapchainImageBaseHeader} pointer as a parameter in that session, the runtime must also accept a pointer to an {@link XrSwapchainImageOpenGLESKHR} structure.
                                                                    • + *
                                                                    + * + *

                                                                    The OpenXR runtime must interpret the bottom-left corner of the swapchain image as the coordinate origin unless specified otherwise by extension functionality.

                                                                    + * + *

                                                                    The OpenXR runtime must interpret the swapchain images in a clip space of positive Y pointing up, near Z plane at -1, and far Z plane at 1.

                                                                    + * + *
                                                                    Valid Usage (Implicit)
                                                                    + * + *
                                                                      + *
                                                                    • The {@link KHROpenGLESEnable XR_KHR_opengl_es_enable} extension must be enabled prior to using {@link XrSwapchainImageOpenGLESKHR}
                                                                    • + *
                                                                    • {@code type} must be {@link KHROpenGLESEnable#XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR}
                                                                    • + *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • + *
                                                                    + * + *
                                                                    See Also
                                                                    + * + *

                                                                    {@link XrSwapchainImageBaseHeader}

                                                                    + * + *

                                                                    Layout

                                                                    + * + *
                                                                    
                                                                    + * struct XrSwapchainImageOpenGLESKHR {
                                                                    + *     XrStructureType {@link #type};
                                                                    + *     void * {@link #next};
                                                                    + *     uint32_t {@link #image};
                                                                    + * }
                                                                    + */ +public class XrSwapchainImageOpenGLESKHR 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, + IMAGE; + + 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); + IMAGE = layout.offsetof(2); + } + + protected XrSwapchainImageOpenGLESKHR(long address, @Nullable ByteBuffer container) { + super(address, container); + } + + @Override + protected XrSwapchainImageOpenGLESKHR create(long address, @Nullable ByteBuffer container) { + return new XrSwapchainImageOpenGLESKHR(address, container); + } + + /** + * Creates a {@code XrSwapchainImageOpenGLESKHR} 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 XrSwapchainImageOpenGLESKHR(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 index indicating the current OpenGL ES swapchain image to use. */ + @NativeType("uint32_t") + public int image() { return nimage(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSwapchainImageOpenGLESKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHROpenGLESEnable#XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR} value to the {@link #type} field. */ + public XrSwapchainImageOpenGLESKHR type$Default() { return type(KHROpenGLESEnable.XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR); } + /** Sets the specified value to the {@link #next} field. */ + public XrSwapchainImageOpenGLESKHR next(@NativeType("void *") long value) { nnext(address(), value); return this; } + + /** Initializes this struct with the specified values. */ + public XrSwapchainImageOpenGLESKHR 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 XrSwapchainImageOpenGLESKHR set(XrSwapchainImageOpenGLESKHR src) { + memCopy(src.address(), address(), SIZEOF); + return this; + } + + // ----------------------------------- + + /** Returns a new {@code XrSwapchainImageOpenGLESKHR} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ + public static XrSwapchainImageOpenGLESKHR malloc() { + return new XrSwapchainImageOpenGLESKHR(nmemAllocChecked(SIZEOF), null); + } + + /** Returns a new {@code XrSwapchainImageOpenGLESKHR} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ + public static XrSwapchainImageOpenGLESKHR calloc() { + return new XrSwapchainImageOpenGLESKHR(nmemCallocChecked(1, SIZEOF), null); + } + + /** Returns a new {@code XrSwapchainImageOpenGLESKHR} instance allocated with {@link BufferUtils}. */ + public static XrSwapchainImageOpenGLESKHR create() { + ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); + return new XrSwapchainImageOpenGLESKHR(memAddress(container), container); + } + + /** Returns a new {@code XrSwapchainImageOpenGLESKHR} instance for the specified memory address. */ + public static XrSwapchainImageOpenGLESKHR create(long address) { + return new XrSwapchainImageOpenGLESKHR(address, null); + } + + /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ + @Nullable + public static XrSwapchainImageOpenGLESKHR createSafe(long address) { + return address == NULL ? null : new XrSwapchainImageOpenGLESKHR(address, null); + } + + /** Downcasts the specified {@code XrSwapchainImageBaseHeader} instance to {@code XrSwapchainImageOpenGLESKHR}. */ + public static XrSwapchainImageOpenGLESKHR create(XrSwapchainImageBaseHeader value) { + return new XrSwapchainImageOpenGLESKHR(value.address(), __getContainer(value)); + } + + /** + * Returns a new {@link XrSwapchainImageOpenGLESKHR.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. + * + * @param capacity the buffer capacity + */ + public static XrSwapchainImageOpenGLESKHR.Buffer malloc(int capacity) { + return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); + } + + /** + * Returns a new {@link XrSwapchainImageOpenGLESKHR.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. + * + * @param capacity the buffer capacity + */ + public static XrSwapchainImageOpenGLESKHR.Buffer calloc(int capacity) { + return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); + } + + /** + * Returns a new {@link XrSwapchainImageOpenGLESKHR.Buffer} instance allocated with {@link BufferUtils}. + * + * @param capacity the buffer capacity + */ + public static XrSwapchainImageOpenGLESKHR.Buffer create(int capacity) { + ByteBuffer container = __create(capacity, SIZEOF); + return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); + } + + /** + * Create a {@link XrSwapchainImageOpenGLESKHR.Buffer} instance at the specified memory. + * + * @param address the memory address + * @param capacity the buffer capacity + */ + public static XrSwapchainImageOpenGLESKHR.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 XrSwapchainImageOpenGLESKHR.Buffer createSafe(long address, int capacity) { + return address == NULL ? null : new Buffer(address, capacity); + } + + /** Downcasts the specified {@code XrSwapchainImageBaseHeader.Buffer} instance to {@code XrSwapchainImageOpenGLESKHR.Buffer}. */ + public static XrSwapchainImageOpenGLESKHR.Buffer create(XrSwapchainImageBaseHeader.Buffer value) { + return new XrSwapchainImageOpenGLESKHR.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); + } + + /** + * Returns a new {@code XrSwapchainImageOpenGLESKHR} instance allocated on the specified {@link MemoryStack}. + * + * @param stack the stack from which to allocate + */ + public static XrSwapchainImageOpenGLESKHR malloc(MemoryStack stack) { + return new XrSwapchainImageOpenGLESKHR(stack.nmalloc(ALIGNOF, SIZEOF), null); + } + + /** + * Returns a new {@code XrSwapchainImageOpenGLESKHR} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. + * + * @param stack the stack from which to allocate + */ + public static XrSwapchainImageOpenGLESKHR calloc(MemoryStack stack) { + return new XrSwapchainImageOpenGLESKHR(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); + } + + /** + * Returns a new {@link XrSwapchainImageOpenGLESKHR.Buffer} instance allocated on the specified {@link MemoryStack}. + * + * @param stack the stack from which to allocate + * @param capacity the buffer capacity + */ + public static XrSwapchainImageOpenGLESKHR.Buffer malloc(int capacity, MemoryStack stack) { + return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); + } + + /** + * Returns a new {@link XrSwapchainImageOpenGLESKHR.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 XrSwapchainImageOpenGLESKHR.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 + XrSwapchainImageOpenGLESKHR.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainImageOpenGLESKHR.NEXT); } + /** Unsafe version of {@link #image}. */ + public static int nimage(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainImageOpenGLESKHR.IMAGE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainImageOpenGLESKHR.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainImageOpenGLESKHR.NEXT, value); } + + // ----------------------------------- + + /** An array of {@link XrSwapchainImageOpenGLESKHR} structs. */ + public static class Buffer extends StructBuffer implements NativeResource { + + private static final XrSwapchainImageOpenGLESKHR ELEMENT_FACTORY = XrSwapchainImageOpenGLESKHR.create(-1L); + + /** + * Creates a new {@code XrSwapchainImageOpenGLESKHR.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 XrSwapchainImageOpenGLESKHR#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 XrSwapchainImageOpenGLESKHR getElementFactory() { + return ELEMENT_FACTORY; + } + + /** @return the value of the {@link XrSwapchainImageOpenGLESKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainImageOpenGLESKHR.ntype(address()); } + /** @return the value of the {@link XrSwapchainImageOpenGLESKHR#next} field. */ + @NativeType("void *") + public long next() { return XrSwapchainImageOpenGLESKHR.nnext(address()); } + /** @return the value of the {@link XrSwapchainImageOpenGLESKHR#image} field. */ + @NativeType("uint32_t") + public int image() { return XrSwapchainImageOpenGLESKHR.nimage(address()); } + + /** Sets the specified value to the {@link XrSwapchainImageOpenGLESKHR#type} field. */ + public XrSwapchainImageOpenGLESKHR.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageOpenGLESKHR.ntype(address(), value); return this; } + /** Sets the {@link KHROpenGLESEnable#XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR} value to the {@link XrSwapchainImageOpenGLESKHR#type} field. */ + public XrSwapchainImageOpenGLESKHR.Buffer type$Default() { return type(KHROpenGLESEnable.XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR); } + /** Sets the specified value to the {@link XrSwapchainImageOpenGLESKHR#next} field. */ + public XrSwapchainImageOpenGLESKHR.Buffer next(@NativeType("void *") long value) { XrSwapchainImageOpenGLESKHR.nnext(address(), value); return this; } + + } + +} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageOpenGLKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageOpenGLKHR.java index 706f8274ab..7eec4e6e8d 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageOpenGLKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageOpenGLKHR.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * OpenGL-specific swapchain image structure. * @@ -36,7 +36,7 @@ *
                                                                      *
                                                                    • The {@link KHROpenGLEnable XR_KHR_opengl_enable} extension must be enabled prior to using {@link XrSwapchainImageOpenGLKHR}
                                                                    • *
                                                                    • {@code type} must be {@link KHROpenGLEnable#XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR}
                                                                    • - *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • + *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • *
                                                                    * *
                                                                    See Also
                                                                    @@ -51,8 +51,8 @@ * void * {@link #next}; * uint32_t {@link #image}; * } - */ -public class XrSwapchainImageOpenGLKHR extends Struct implements NativeResource { + */ +public class XrSwapchainImageOpenGLKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -62,24 +62,24 @@ public class XrSwapchainImageOpenGLKHR extends Struct /** The struct member offsets. */ public static final int - TYPE, - NEXT, - IMAGE; + TYPE, + NEXT, + IMAGE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - IMAGE = layout.offsetof(2); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + IMAGE = layout.offsetof(2); + } protected XrSwapchainImageOpenGLKHR(long address, @Nullable ByteBuffer container) { super(address, container); @@ -102,31 +102,31 @@ public XrSwapchainImageOpenGLKHR(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** the OpenGL texture handle associated with this swapchain image. */ - @NativeType("uint32_t") - public int image() { return nimage(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSwapchainImageOpenGLKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link KHROpenGLEnable#XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR} value to the {@link #type} field. */ - public XrSwapchainImageOpenGLKHR type$Default() { return type(KHROpenGLEnable.XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR); } - /** Sets the specified value to the {@link #next} field. */ - public XrSwapchainImageOpenGLKHR next(@NativeType("void *") long value) { nnext(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the OpenGL texture handle associated with this swapchain image. */ + @NativeType("uint32_t") + public int image() { return nimage(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSwapchainImageOpenGLKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHROpenGLEnable#XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR} value to the {@link #type} field. */ + public XrSwapchainImageOpenGLKHR type$Default() { return type(KHROpenGLEnable.XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR); } + /** Sets the specified value to the {@link #next} field. */ + public XrSwapchainImageOpenGLKHR next(@NativeType("void *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSwapchainImageOpenGLKHR set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -265,20 +265,20 @@ public static XrSwapchainImageOpenGLKHR.Buffer calloc(int capacity, MemoryStack } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainImageOpenGLKHR.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainImageOpenGLKHR.NEXT); } - /** Unsafe version of {@link #image}. */ - public static int nimage(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainImageOpenGLKHR.IMAGE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainImageOpenGLKHR.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainImageOpenGLKHR.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainImageOpenGLKHR.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainImageOpenGLKHR.NEXT); } + /** Unsafe version of {@link #image}. */ + public static int nimage(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainImageOpenGLKHR.IMAGE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainImageOpenGLKHR.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainImageOpenGLKHR.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrSwapchainImageOpenGLKHR} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -315,23 +315,23 @@ protected Buffer self() { protected XrSwapchainImageOpenGLKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainImageOpenGLKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainImageOpenGLKHR.ntype(address()); } - /** @return the value of the {@link XrSwapchainImageOpenGLKHR#next} field. */ - @NativeType("void *") - public long next() { return XrSwapchainImageOpenGLKHR.nnext(address()); } - /** @return the value of the {@link XrSwapchainImageOpenGLKHR#image} field. */ - @NativeType("uint32_t") - public int image() { return XrSwapchainImageOpenGLKHR.nimage(address()); } - - /** Sets the specified value to the {@link XrSwapchainImageOpenGLKHR#type} field. */ - public XrSwapchainImageOpenGLKHR.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageOpenGLKHR.ntype(address(), value); return this; } - /** Sets the {@link KHROpenGLEnable#XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR} value to the {@link XrSwapchainImageOpenGLKHR#type} field. */ - public XrSwapchainImageOpenGLKHR.Buffer type$Default() { return type(KHROpenGLEnable.XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR); } - /** Sets the specified value to the {@link XrSwapchainImageOpenGLKHR#next} field. */ - public XrSwapchainImageOpenGLKHR.Buffer next(@NativeType("void *") long value) { XrSwapchainImageOpenGLKHR.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSwapchainImageOpenGLKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainImageOpenGLKHR.ntype(address()); } + /** @return the value of the {@link XrSwapchainImageOpenGLKHR#next} field. */ + @NativeType("void *") + public long next() { return XrSwapchainImageOpenGLKHR.nnext(address()); } + /** @return the value of the {@link XrSwapchainImageOpenGLKHR#image} field. */ + @NativeType("uint32_t") + public int image() { return XrSwapchainImageOpenGLKHR.nimage(address()); } + + /** Sets the specified value to the {@link XrSwapchainImageOpenGLKHR#type} field. */ + public XrSwapchainImageOpenGLKHR.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageOpenGLKHR.ntype(address(), value); return this; } + /** Sets the {@link KHROpenGLEnable#XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR} value to the {@link XrSwapchainImageOpenGLKHR#type} field. */ + public XrSwapchainImageOpenGLKHR.Buffer type$Default() { return type(KHROpenGLEnable.XR_TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR); } + /** Sets the specified value to the {@link XrSwapchainImageOpenGLKHR#next} field. */ + public XrSwapchainImageOpenGLKHR.Buffer next(@NativeType("void *") long value) { XrSwapchainImageOpenGLKHR.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageReleaseInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageReleaseInfo.java index 9b7f2bb644..5a138d84a9 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageReleaseInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageReleaseInfo.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes a swapchain image release. * @@ -26,7 +26,7 @@ * * * *
                                                                    See Also
                                                                    @@ -40,8 +40,8 @@ * XrStructureType {@link #type}; * void const * {@link #next}; * } - */ -public class XrSwapchainImageReleaseInfo extends Struct implements NativeResource { + */ +public class XrSwapchainImageReleaseInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,21 +51,21 @@ public class XrSwapchainImageReleaseInfo extends Struct implements NativeResource { @@ -286,20 +286,20 @@ protected Buffer self() { protected XrSwapchainImageReleaseInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainImageReleaseInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainImageReleaseInfo.ntype(address()); } - /** @return the value of the {@link XrSwapchainImageReleaseInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrSwapchainImageReleaseInfo.nnext(address()); } - - /** Sets the specified value to the {@link XrSwapchainImageReleaseInfo#type} field. */ - public XrSwapchainImageReleaseInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageReleaseInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SWAPCHAIN_IMAGE_RELEASE_INFO TYPE_SWAPCHAIN_IMAGE_RELEASE_INFO} value to the {@link XrSwapchainImageReleaseInfo#type} field. */ - public XrSwapchainImageReleaseInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SWAPCHAIN_IMAGE_RELEASE_INFO); } - /** Sets the specified value to the {@link XrSwapchainImageReleaseInfo#next} field. */ - public XrSwapchainImageReleaseInfo.Buffer next(@NativeType("void const *") long value) { XrSwapchainImageReleaseInfo.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSwapchainImageReleaseInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainImageReleaseInfo.ntype(address()); } + /** @return the value of the {@link XrSwapchainImageReleaseInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrSwapchainImageReleaseInfo.nnext(address()); } + + /** Sets the specified value to the {@link XrSwapchainImageReleaseInfo#type} field. */ + public XrSwapchainImageReleaseInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageReleaseInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SWAPCHAIN_IMAGE_RELEASE_INFO TYPE_SWAPCHAIN_IMAGE_RELEASE_INFO} value to the {@link XrSwapchainImageReleaseInfo#type} field. */ + public XrSwapchainImageReleaseInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SWAPCHAIN_IMAGE_RELEASE_INFO); } + /** Sets the specified value to the {@link XrSwapchainImageReleaseInfo#next} field. */ + public XrSwapchainImageReleaseInfo.Buffer next(@NativeType("void const *") long value) { XrSwapchainImageReleaseInfo.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageVulkan2KHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageVulkan2KHR.java index 2b3316c2fa..20e1dbe8ac 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageVulkan2KHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageVulkan2KHR.java @@ -4,19 +4,19 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import org.lwjgl.vulkan.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.vulkan.*; + /** * See {@link XrSwapchainImageVulkanKHR}. * @@ -28,8 +28,8 @@ * void * next; * VkImage image; * } - */ -public class XrSwapchainImageVulkan2KHR extends XrSwapchainImageVulkanKHR { + */ +public class XrSwapchainImageVulkan2KHR extends XrSwapchainImageVulkanKHR { protected XrSwapchainImageVulkan2KHR(long address, @Nullable ByteBuffer container) { super(address, container); @@ -49,25 +49,25 @@ protected XrSwapchainImageVulkan2KHR create(long address, @Nullable ByteBuffer c public XrSwapchainImageVulkan2KHR(ByteBuffer container) { super(container); } - - /** Sets the specified value to the {@code type} field. */ - @Override - public XrSwapchainImageVulkan2KHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable#XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR} value to the {@code type} field. */ - @Override - public XrSwapchainImageVulkan2KHR type$Default() { return type(KHRVulkanEnable.XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR); } - /** Sets the specified value to the {@code next} field. */ - @Override - public XrSwapchainImageVulkan2KHR next(@NativeType("void *") long value) { nnext(address(), value); return this; } + + /** Sets the specified value to the {@code type} field. */ + @Override + public XrSwapchainImageVulkan2KHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable#XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR} value to the {@code type} field. */ + @Override + public XrSwapchainImageVulkan2KHR type$Default() { return type(KHRVulkanEnable.XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR); } + /** Sets the specified value to the {@code next} field. */ + @Override + public XrSwapchainImageVulkan2KHR next(@NativeType("void *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ @Override public XrSwapchainImageVulkan2KHR set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -195,7 +195,7 @@ public static XrSwapchainImageVulkan2KHR.Buffer calloc(int capacity, MemoryStack return new Buffer(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSwapchainImageVulkan2KHR} structs. */ public static class Buffer extends XrSwapchainImageVulkanKHR.Buffer { @@ -232,16 +232,16 @@ protected Buffer self() { protected XrSwapchainImageVulkan2KHR getElementFactory() { return ELEMENT_FACTORY; } - - /** Sets the specified value to the {@code type} field. */ - @Override - public XrSwapchainImageVulkan2KHR.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageVulkan2KHR.ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable#XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR} value to the {@code type} field. */ - @Override - public XrSwapchainImageVulkan2KHR.Buffer type$Default() { return type(KHRVulkanEnable.XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR); } - /** Sets the specified value to the {@code next} field. */ - @Override - public XrSwapchainImageVulkan2KHR.Buffer next(@NativeType("void *") long value) { XrSwapchainImageVulkan2KHR.nnext(address(), value); return this; } + + /** Sets the specified value to the {@code type} field. */ + @Override + public XrSwapchainImageVulkan2KHR.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageVulkan2KHR.ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable#XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR} value to the {@code type} field. */ + @Override + public XrSwapchainImageVulkan2KHR.Buffer type$Default() { return type(KHRVulkanEnable.XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR); } + /** Sets the specified value to the {@code next} field. */ + @Override + public XrSwapchainImageVulkan2KHR.Buffer next(@NativeType("void *") long value) { XrSwapchainImageVulkan2KHR.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageVulkanKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageVulkanKHR.java index 1fce9804bd..53d39265e5 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageVulkanKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageVulkanKHR.java @@ -4,19 +4,19 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import org.lwjgl.vulkan.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.vulkan.*; + /** * Vulkan-specific swapchain image structure. * @@ -38,7 +38,7 @@ *
                                                                      *
                                                                    • The {@link KHRVulkanEnable XR_KHR_vulkan_enable} extension must be enabled prior to using {@link XrSwapchainImageVulkanKHR}
                                                                    • *
                                                                    • {@code type} must be {@link KHRVulkanEnable#XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR}
                                                                    • - *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrSwapchainImageFoveationVulkanFB}
                                                                    • + *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrSwapchainImageFoveationVulkanFB}
                                                                    • *
                                                                    * *
                                                                    See Also
                                                                    @@ -53,8 +53,8 @@ * void * {@link #next}; * VkImage {@link #image}; * } - */ -public class XrSwapchainImageVulkanKHR extends Struct implements NativeResource { + */ +public class XrSwapchainImageVulkanKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -64,24 +64,24 @@ public class XrSwapchainImageVulkanKHR extends Struct /** The struct member offsets. */ public static final int - TYPE, - NEXT, - IMAGE; + TYPE, + NEXT, + IMAGE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - IMAGE = layout.offsetof(2); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + IMAGE = layout.offsetof(2); + } protected XrSwapchainImageVulkanKHR(long address, @Nullable ByteBuffer container) { super(address, container); @@ -104,33 +104,33 @@ public XrSwapchainImageVulkanKHR(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** a valid Vulkan {@code VkImage} to use. */ - @NativeType("VkImage") - public long image() { return nimage(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSwapchainImageVulkanKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable#XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR} value to the {@link #type} field. */ - public XrSwapchainImageVulkanKHR type$Default() { return type(KHRVulkanEnable.XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR); } - /** Sets the specified value to the {@link #next} field. */ - public XrSwapchainImageVulkanKHR next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrSwapchainImageFoveationVulkanFB} value to the {@code next} chain. */ - public XrSwapchainImageVulkanKHR next(XrSwapchainImageFoveationVulkanFB value) { return this.next(value.next(this.next()).address()); } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** a valid Vulkan {@code VkImage} to use. */ + @NativeType("VkImage") + public long image() { return nimage(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSwapchainImageVulkanKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable#XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR} value to the {@link #type} field. */ + public XrSwapchainImageVulkanKHR type$Default() { return type(KHRVulkanEnable.XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR); } + /** Sets the specified value to the {@link #next} field. */ + public XrSwapchainImageVulkanKHR next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrSwapchainImageFoveationVulkanFB} value to the {@code next} chain. */ + public XrSwapchainImageVulkanKHR next(XrSwapchainImageFoveationVulkanFB value) { return this.next(value.next(this.next()).address()); } /** Initializes this struct with the specified values. */ public XrSwapchainImageVulkanKHR set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -269,20 +269,20 @@ public static XrSwapchainImageVulkanKHR.Buffer calloc(int capacity, MemoryStack } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainImageVulkanKHR.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainImageVulkanKHR.NEXT); } - /** Unsafe version of {@link #image}. */ - public static long nimage(long struct) { return UNSAFE.getLong(null, struct + XrSwapchainImageVulkanKHR.IMAGE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainImageVulkanKHR.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainImageVulkanKHR.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainImageVulkanKHR.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainImageVulkanKHR.NEXT); } + /** Unsafe version of {@link #image}. */ + public static long nimage(long struct) { return UNSAFE.getLong(null, struct + XrSwapchainImageVulkanKHR.IMAGE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainImageVulkanKHR.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainImageVulkanKHR.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrSwapchainImageVulkanKHR} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -319,25 +319,25 @@ protected Buffer self() { protected XrSwapchainImageVulkanKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainImageVulkanKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainImageVulkanKHR.ntype(address()); } - /** @return the value of the {@link XrSwapchainImageVulkanKHR#next} field. */ - @NativeType("void *") - public long next() { return XrSwapchainImageVulkanKHR.nnext(address()); } - /** @return the value of the {@link XrSwapchainImageVulkanKHR#image} field. */ - @NativeType("VkImage") - public long image() { return XrSwapchainImageVulkanKHR.nimage(address()); } - - /** Sets the specified value to the {@link XrSwapchainImageVulkanKHR#type} field. */ - public XrSwapchainImageVulkanKHR.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageVulkanKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable#XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR} value to the {@link XrSwapchainImageVulkanKHR#type} field. */ - public XrSwapchainImageVulkanKHR.Buffer type$Default() { return type(KHRVulkanEnable.XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR); } - /** Sets the specified value to the {@link XrSwapchainImageVulkanKHR#next} field. */ - public XrSwapchainImageVulkanKHR.Buffer next(@NativeType("void *") long value) { XrSwapchainImageVulkanKHR.nnext(address(), value); return this; } - /** Prepends the specified {@link XrSwapchainImageFoveationVulkanFB} value to the {@code next} chain. */ - public XrSwapchainImageVulkanKHR.Buffer next(XrSwapchainImageFoveationVulkanFB value) { return this.next(value.next(this.next()).address()); } + + /** @return the value of the {@link XrSwapchainImageVulkanKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainImageVulkanKHR.ntype(address()); } + /** @return the value of the {@link XrSwapchainImageVulkanKHR#next} field. */ + @NativeType("void *") + public long next() { return XrSwapchainImageVulkanKHR.nnext(address()); } + /** @return the value of the {@link XrSwapchainImageVulkanKHR#image} field. */ + @NativeType("VkImage") + public long image() { return XrSwapchainImageVulkanKHR.nimage(address()); } + + /** Sets the specified value to the {@link XrSwapchainImageVulkanKHR#type} field. */ + public XrSwapchainImageVulkanKHR.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageVulkanKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable#XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR} value to the {@link XrSwapchainImageVulkanKHR#type} field. */ + public XrSwapchainImageVulkanKHR.Buffer type$Default() { return type(KHRVulkanEnable.XR_TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR); } + /** Sets the specified value to the {@link XrSwapchainImageVulkanKHR#next} field. */ + public XrSwapchainImageVulkanKHR.Buffer next(@NativeType("void *") long value) { XrSwapchainImageVulkanKHR.nnext(address(), value); return this; } + /** Prepends the specified {@link XrSwapchainImageFoveationVulkanFB} value to the {@code next} chain. */ + public XrSwapchainImageVulkanKHR.Buffer next(XrSwapchainImageFoveationVulkanFB value) { return this.next(value.next(this.next()).address()); } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageWaitInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageWaitInfo.java index 86b0136788..49f564fedd 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageWaitInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainImageWaitInfo.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Describes a swapchain image wait operation. * @@ -22,7 +22,7 @@ * * * *
                                                                    See Also
                                                                    @@ -37,8 +37,8 @@ * void const * {@link #next}; * XrDuration {@link #timeout}; * } - */ -public class XrSwapchainImageWaitInfo extends Struct implements NativeResource { + */ +public class XrSwapchainImageWaitInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,24 +48,24 @@ public class XrSwapchainImageWaitInfo extends Struct i /** The struct member offsets. */ public static final int - TYPE, - NEXT, - TIMEOUT; + TYPE, + NEXT, + TIMEOUT; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - TIMEOUT = layout.offsetof(2); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + TIMEOUT = layout.offsetof(2); + } protected XrSwapchainImageWaitInfo(long address, @Nullable ByteBuffer container) { super(address, container); @@ -88,35 +88,35 @@ public XrSwapchainImageWaitInfo(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** indicates how many nanoseconds the call should block waiting for the image to become available for writing. */ - @NativeType("XrDuration") - public long timeout() { return ntimeout(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSwapchainImageWaitInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SWAPCHAIN_IMAGE_WAIT_INFO TYPE_SWAPCHAIN_IMAGE_WAIT_INFO} value to the {@link #type} field. */ - public XrSwapchainImageWaitInfo type$Default() { return type(XR10.XR_TYPE_SWAPCHAIN_IMAGE_WAIT_INFO); } - /** Sets the specified value to the {@link #next} field. */ - public XrSwapchainImageWaitInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #timeout} field. */ - public XrSwapchainImageWaitInfo timeout(@NativeType("XrDuration") long value) { ntimeout(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** indicates how many nanoseconds the call should block waiting for the image to become available for writing. */ + @NativeType("XrDuration") + public long timeout() { return ntimeout(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSwapchainImageWaitInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SWAPCHAIN_IMAGE_WAIT_INFO TYPE_SWAPCHAIN_IMAGE_WAIT_INFO} value to the {@link #type} field. */ + public XrSwapchainImageWaitInfo type$Default() { return type(XR10.XR_TYPE_SWAPCHAIN_IMAGE_WAIT_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrSwapchainImageWaitInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #timeout} field. */ + public XrSwapchainImageWaitInfo timeout(@NativeType("XrDuration") long value) { ntimeout(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSwapchainImageWaitInfo set( - int type, - long next, + int type, + long next, long timeout - ) { - type(type); - next(next); - timeout(timeout); + ) { + type(type); + next(next); + timeout(timeout); return this; } @@ -245,22 +245,22 @@ public static XrSwapchainImageWaitInfo.Buffer calloc(int capacity, MemoryStack s } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainImageWaitInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainImageWaitInfo.NEXT); } - /** Unsafe version of {@link #timeout}. */ - public static long ntimeout(long struct) { return UNSAFE.getLong(null, struct + XrSwapchainImageWaitInfo.TIMEOUT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainImageWaitInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainImageWaitInfo.NEXT, value); } - /** Unsafe version of {@link #timeout(long) timeout}. */ - public static void ntimeout(long struct, long value) { UNSAFE.putLong(null, struct + XrSwapchainImageWaitInfo.TIMEOUT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainImageWaitInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainImageWaitInfo.NEXT); } + /** Unsafe version of {@link #timeout}. */ + public static long ntimeout(long struct) { return UNSAFE.getLong(null, struct + XrSwapchainImageWaitInfo.TIMEOUT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainImageWaitInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainImageWaitInfo.NEXT, value); } + /** Unsafe version of {@link #timeout(long) timeout}. */ + public static void ntimeout(long struct, long value) { UNSAFE.putLong(null, struct + XrSwapchainImageWaitInfo.TIMEOUT, value); } + + // ----------------------------------- /** An array of {@link XrSwapchainImageWaitInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -297,25 +297,25 @@ protected Buffer self() { protected XrSwapchainImageWaitInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainImageWaitInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainImageWaitInfo.ntype(address()); } - /** @return the value of the {@link XrSwapchainImageWaitInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrSwapchainImageWaitInfo.nnext(address()); } - /** @return the value of the {@link XrSwapchainImageWaitInfo#timeout} field. */ - @NativeType("XrDuration") - public long timeout() { return XrSwapchainImageWaitInfo.ntimeout(address()); } - - /** Sets the specified value to the {@link XrSwapchainImageWaitInfo#type} field. */ - public XrSwapchainImageWaitInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageWaitInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SWAPCHAIN_IMAGE_WAIT_INFO TYPE_SWAPCHAIN_IMAGE_WAIT_INFO} value to the {@link XrSwapchainImageWaitInfo#type} field. */ - public XrSwapchainImageWaitInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SWAPCHAIN_IMAGE_WAIT_INFO); } - /** Sets the specified value to the {@link XrSwapchainImageWaitInfo#next} field. */ - public XrSwapchainImageWaitInfo.Buffer next(@NativeType("void const *") long value) { XrSwapchainImageWaitInfo.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainImageWaitInfo#timeout} field. */ - public XrSwapchainImageWaitInfo.Buffer timeout(@NativeType("XrDuration") long value) { XrSwapchainImageWaitInfo.ntimeout(address(), value); return this; } + + /** @return the value of the {@link XrSwapchainImageWaitInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainImageWaitInfo.ntype(address()); } + /** @return the value of the {@link XrSwapchainImageWaitInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrSwapchainImageWaitInfo.nnext(address()); } + /** @return the value of the {@link XrSwapchainImageWaitInfo#timeout} field. */ + @NativeType("XrDuration") + public long timeout() { return XrSwapchainImageWaitInfo.ntimeout(address()); } + + /** Sets the specified value to the {@link XrSwapchainImageWaitInfo#type} field. */ + public XrSwapchainImageWaitInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainImageWaitInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SWAPCHAIN_IMAGE_WAIT_INFO TYPE_SWAPCHAIN_IMAGE_WAIT_INFO} value to the {@link XrSwapchainImageWaitInfo#type} field. */ + public XrSwapchainImageWaitInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SWAPCHAIN_IMAGE_WAIT_INFO); } + /** Sets the specified value to the {@link XrSwapchainImageWaitInfo#next} field. */ + public XrSwapchainImageWaitInfo.Buffer next(@NativeType("void const *") long value) { XrSwapchainImageWaitInfo.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainImageWaitInfo#timeout} field. */ + public XrSwapchainImageWaitInfo.Buffer timeout(@NativeType("XrDuration") long value) { XrSwapchainImageWaitInfo.ntimeout(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateBaseHeaderFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateBaseHeaderFB.java index 59b066c4ef..92d2c83dea 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateBaseHeaderFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateBaseHeaderFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Base header for swapchain update state. * @@ -27,7 +27,7 @@ *
                                                                      *
                                                                    • The {@link FBSwapchainUpdateState XR_FB_swapchain_update_state} extension must be enabled prior to using {@link XrSwapchainStateBaseHeaderFB}
                                                                    • *
                                                                    • {@code type} must be one of the following XrStructureType values: {@link FBFoveation#XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB TYPE_SWAPCHAIN_STATE_FOVEATION_FB}, {@link FBSwapchainUpdateStateOpenGLES#XR_TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB}, {@link FBSwapchainUpdateStateVulkan#XR_TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB}
                                                                    • - *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • + *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • *
                                                                    * *
                                                                    See Also
                                                                    @@ -41,8 +41,8 @@ * XrStructureType {@link #type}; * void * {@link #next}; * } - */ -public class XrSwapchainStateBaseHeaderFB extends Struct implements NativeResource { + */ +public class XrSwapchainStateBaseHeaderFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,21 +52,21 @@ public class XrSwapchainStateBaseHeaderFB extends Struct implements NativeResource { @@ -315,18 +315,18 @@ protected Buffer self() { protected XrSwapchainStateBaseHeaderFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainStateBaseHeaderFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainStateBaseHeaderFB.ntype(address()); } - /** @return the value of the {@link XrSwapchainStateBaseHeaderFB#next} field. */ - @NativeType("void *") - public long next() { return XrSwapchainStateBaseHeaderFB.nnext(address()); } - - /** Sets the specified value to the {@link XrSwapchainStateBaseHeaderFB#type} field. */ - public XrSwapchainStateBaseHeaderFB.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainStateBaseHeaderFB.ntype(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateBaseHeaderFB#next} field. */ - public XrSwapchainStateBaseHeaderFB.Buffer next(@NativeType("void *") long value) { XrSwapchainStateBaseHeaderFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSwapchainStateBaseHeaderFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainStateBaseHeaderFB.ntype(address()); } + /** @return the value of the {@link XrSwapchainStateBaseHeaderFB#next} field. */ + @NativeType("void *") + public long next() { return XrSwapchainStateBaseHeaderFB.nnext(address()); } + + /** Sets the specified value to the {@link XrSwapchainStateBaseHeaderFB#type} field. */ + public XrSwapchainStateBaseHeaderFB.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainStateBaseHeaderFB.ntype(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateBaseHeaderFB#next} field. */ + public XrSwapchainStateBaseHeaderFB.Buffer next(@NativeType("void *") long value) { XrSwapchainStateBaseHeaderFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateFoveationFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateFoveationFB.java index 5bcea3ae22..689c6966e5 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateFoveationFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateFoveationFB.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Foveation swapchain state,xrefs=. * @@ -24,7 +24,7 @@ *
                                                                      *
                                                                    • The {@link FBFoveation XR_FB_foveation} extension must be enabled prior to using {@link XrSwapchainStateFoveationFB}
                                                                    • *
                                                                    • {@code type} must be {@link FBFoveation#XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB TYPE_SWAPCHAIN_STATE_FOVEATION_FB}
                                                                    • - *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • + *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • *
                                                                    • {@code flags} must be 0
                                                                    • *
                                                                    • {@code profile} must be a valid {@code XrFoveationProfileFB} handle
                                                                    • *
                                                                    @@ -38,8 +38,8 @@ * XrSwapchainStateFoveationFlagsFB {@link #flags}; * XrFoveationProfileFB {@link #profile}; * } - */ -public class XrSwapchainStateFoveationFB extends Struct implements NativeResource { + */ +public class XrSwapchainStateFoveationFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -49,27 +49,27 @@ public class XrSwapchainStateFoveationFB extends Structmust be updated. */ - @NativeType("XrSwapchainStateFoveationFlagsFB") - public long flags() { return nflags(address()); } - /** an {@code XrFoveationProfileFB} defining the desired foveation properties to be applied to the swapchain. */ - @NativeType("XrFoveationProfileFB") - public long profile() { return nprofile(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSwapchainStateFoveationFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBFoveation#XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB TYPE_SWAPCHAIN_STATE_FOVEATION_FB} value to the {@link #type} field. */ - public XrSwapchainStateFoveationFB type$Default() { return type(FBFoveation.XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrSwapchainStateFoveationFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #flags} field. */ - public XrSwapchainStateFoveationFB flags(@NativeType("XrSwapchainStateFoveationFlagsFB") long value) { nflags(address(), value); return this; } - /** Sets the specified value to the {@link #profile} field. */ - public XrSwapchainStateFoveationFB profile(XrFoveationProfileFB value) { nprofile(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** a bitmask of {@code XrSwapchainStateFoveationFlagBitsFB} which indicate various characteristics of how and when the foveation properties of the swapchain must be updated. */ + @NativeType("XrSwapchainStateFoveationFlagsFB") + public long flags() { return nflags(address()); } + /** an {@code XrFoveationProfileFB} defining the desired foveation properties to be applied to the swapchain. */ + @NativeType("XrFoveationProfileFB") + public long profile() { return nprofile(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSwapchainStateFoveationFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBFoveation#XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB TYPE_SWAPCHAIN_STATE_FOVEATION_FB} value to the {@link #type} field. */ + public XrSwapchainStateFoveationFB type$Default() { return type(FBFoveation.XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSwapchainStateFoveationFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #flags} field. */ + public XrSwapchainStateFoveationFB flags(@NativeType("XrSwapchainStateFoveationFlagsFB") long value) { nflags(address(), value); return this; } + /** Sets the specified value to the {@link #profile} field. */ + public XrSwapchainStateFoveationFB profile(XrFoveationProfileFB value) { nprofile(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSwapchainStateFoveationFB set( - int type, - long next, - long flags, + int type, + long next, + long flags, XrFoveationProfileFB profile - ) { - type(type); - next(next); - flags(flags); - profile(profile); + ) { + type(type); + next(next); + flags(flags); + profile(profile); return this; } @@ -266,24 +266,24 @@ public static XrSwapchainStateFoveationFB.Buffer calloc(int capacity, MemoryStac } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateFoveationFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainStateFoveationFB.NEXT); } - /** Unsafe version of {@link #flags}. */ - public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrSwapchainStateFoveationFB.FLAGS); } - /** Unsafe version of {@link #profile}. */ - public static long nprofile(long struct) { return memGetAddress(struct + XrSwapchainStateFoveationFB.PROFILE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateFoveationFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainStateFoveationFB.NEXT, value); } - /** Unsafe version of {@link #flags(long) flags}. */ - public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrSwapchainStateFoveationFB.FLAGS, value); } - /** Unsafe version of {@link #profile(XrFoveationProfileFB) profile}. */ - public static void nprofile(long struct, XrFoveationProfileFB value) { memPutAddress(struct + XrSwapchainStateFoveationFB.PROFILE, value.address()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateFoveationFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainStateFoveationFB.NEXT); } + /** Unsafe version of {@link #flags}. */ + public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrSwapchainStateFoveationFB.FLAGS); } + /** Unsafe version of {@link #profile}. */ + public static long nprofile(long struct) { return memGetAddress(struct + XrSwapchainStateFoveationFB.PROFILE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateFoveationFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainStateFoveationFB.NEXT, value); } + /** Unsafe version of {@link #flags(long) flags}. */ + public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrSwapchainStateFoveationFB.FLAGS, value); } + /** Unsafe version of {@link #profile(XrFoveationProfileFB) profile}. */ + public static void nprofile(long struct, XrFoveationProfileFB value) { memPutAddress(struct + XrSwapchainStateFoveationFB.PROFILE, value.address()); } /** * Validates pointer members that should not be {@code NULL}. @@ -292,9 +292,9 @@ public static XrSwapchainStateFoveationFB.Buffer calloc(int capacity, MemoryStac */ public static void validate(long struct) { check(memGetAddress(struct + XrSwapchainStateFoveationFB.PROFILE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSwapchainStateFoveationFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -331,30 +331,30 @@ protected Buffer self() { protected XrSwapchainStateFoveationFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainStateFoveationFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainStateFoveationFB.ntype(address()); } - /** @return the value of the {@link XrSwapchainStateFoveationFB#next} field. */ - @NativeType("void *") - public long next() { return XrSwapchainStateFoveationFB.nnext(address()); } - /** @return the value of the {@link XrSwapchainStateFoveationFB#flags} field. */ - @NativeType("XrSwapchainStateFoveationFlagsFB") - public long flags() { return XrSwapchainStateFoveationFB.nflags(address()); } - /** @return the value of the {@link XrSwapchainStateFoveationFB#profile} field. */ - @NativeType("XrFoveationProfileFB") - public long profile() { return XrSwapchainStateFoveationFB.nprofile(address()); } - - /** Sets the specified value to the {@link XrSwapchainStateFoveationFB#type} field. */ - public XrSwapchainStateFoveationFB.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainStateFoveationFB.ntype(address(), value); return this; } - /** Sets the {@link FBFoveation#XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB TYPE_SWAPCHAIN_STATE_FOVEATION_FB} value to the {@link XrSwapchainStateFoveationFB#type} field. */ - public XrSwapchainStateFoveationFB.Buffer type$Default() { return type(FBFoveation.XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB); } - /** Sets the specified value to the {@link XrSwapchainStateFoveationFB#next} field. */ - public XrSwapchainStateFoveationFB.Buffer next(@NativeType("void *") long value) { XrSwapchainStateFoveationFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateFoveationFB#flags} field. */ - public XrSwapchainStateFoveationFB.Buffer flags(@NativeType("XrSwapchainStateFoveationFlagsFB") long value) { XrSwapchainStateFoveationFB.nflags(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateFoveationFB#profile} field. */ - public XrSwapchainStateFoveationFB.Buffer profile(XrFoveationProfileFB value) { XrSwapchainStateFoveationFB.nprofile(address(), value); return this; } + + /** @return the value of the {@link XrSwapchainStateFoveationFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainStateFoveationFB.ntype(address()); } + /** @return the value of the {@link XrSwapchainStateFoveationFB#next} field. */ + @NativeType("void *") + public long next() { return XrSwapchainStateFoveationFB.nnext(address()); } + /** @return the value of the {@link XrSwapchainStateFoveationFB#flags} field. */ + @NativeType("XrSwapchainStateFoveationFlagsFB") + public long flags() { return XrSwapchainStateFoveationFB.nflags(address()); } + /** @return the value of the {@link XrSwapchainStateFoveationFB#profile} field. */ + @NativeType("XrFoveationProfileFB") + public long profile() { return XrSwapchainStateFoveationFB.nprofile(address()); } + + /** Sets the specified value to the {@link XrSwapchainStateFoveationFB#type} field. */ + public XrSwapchainStateFoveationFB.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainStateFoveationFB.ntype(address(), value); return this; } + /** Sets the {@link FBFoveation#XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB TYPE_SWAPCHAIN_STATE_FOVEATION_FB} value to the {@link XrSwapchainStateFoveationFB#type} field. */ + public XrSwapchainStateFoveationFB.Buffer type$Default() { return type(FBFoveation.XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB); } + /** Sets the specified value to the {@link XrSwapchainStateFoveationFB#next} field. */ + public XrSwapchainStateFoveationFB.Buffer next(@NativeType("void *") long value) { XrSwapchainStateFoveationFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateFoveationFB#flags} field. */ + public XrSwapchainStateFoveationFB.Buffer flags(@NativeType("XrSwapchainStateFoveationFlagsFB") long value) { XrSwapchainStateFoveationFB.nflags(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateFoveationFB#profile} field. */ + public XrSwapchainStateFoveationFB.Buffer profile(XrFoveationProfileFB value) { XrSwapchainStateFoveationFB.nprofile(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateSamplerOpenGLESFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateSamplerOpenGLESFB.java index 44f22b1e39..6db55504de 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateSamplerOpenGLESFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateSamplerOpenGLESFB.java @@ -4,19 +4,19 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import org.lwjgl.egl.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.egl.*; + /** * OpenGL ES-specific swapchain sampler state structure. * @@ -39,7 +39,7 @@ *
                                                                      *
                                                                    • The {@link FBSwapchainUpdateStateOpenGLES XR_FB_swapchain_update_state_opengl_es} extension must be enabled prior to using {@link XrSwapchainStateSamplerOpenGLESFB}
                                                                    • *
                                                                    • {@code type} must be {@link FBSwapchainUpdateStateOpenGLES#XR_TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB}
                                                                    • - *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • + *
                                                                    • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                    • *
                                                                    • {@code minFilter} must be a valid {@code EGLenum} value
                                                                    • *
                                                                    • {@code magFilter} must be a valid {@code EGLenum} value
                                                                    • *
                                                                    • {@code wrapModeS} must be a valid {@code EGLenum} value
                                                                    • @@ -71,8 +71,8 @@ * float {@link #maxAnisotropy}; * {@link XrColor4f XrColor4f} {@link #borderColor}; * } - */ -public class XrSwapchainStateSamplerOpenGLESFB extends Struct implements NativeResource { + */ +public class XrSwapchainStateSamplerOpenGLESFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -82,51 +82,51 @@ public class XrSwapchainStateSamplerOpenGLESFB extends Struct consumer) { consumer.accept(borderColor()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** a valid Android OpenGL ES {@code EGLenum}. */ + @NativeType("EGLenum") + public int minFilter() { return nminFilter(address()); } + /** a valid Android OpenGL ES {@code EGLenum}. */ + @NativeType("EGLenum") + public int magFilter() { return nmagFilter(address()); } + /** a valid Android OpenGL ES {@code EGLenum}. */ + @NativeType("EGLenum") + public int wrapModeS() { return nwrapModeS(address()); } + /** a valid Android OpenGL ES {@code EGLenum}. */ + @NativeType("EGLenum") + public int wrapModeT() { return nwrapModeT(address()); } + /** a valid Android OpenGL ES {@code EGLenum}. */ + @NativeType("EGLenum") + public int swizzleRed() { return nswizzleRed(address()); } + /** a valid Android OpenGL ES {@code EGLenum}. */ + @NativeType("EGLenum") + public int swizzleGreen() { return nswizzleGreen(address()); } + /** a valid Android OpenGL ES {@code EGLenum}. */ + @NativeType("EGLenum") + public int swizzleBlue() { return nswizzleBlue(address()); } + /** a valid Android OpenGL ES {@code EGLenum}. */ + @NativeType("EGLenum") + public int swizzleAlpha() { return nswizzleAlpha(address()); } + /** a valid float used to represent max anisotropy. */ + public float maxAnisotropy() { return nmaxAnisotropy(address()); } + /** an RGBA color to be used as border texels. */ + public XrColor4f borderColor() { return nborderColor(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSwapchainStateSamplerOpenGLESFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSwapchainUpdateStateOpenGLES#XR_TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB} value to the {@link #type} field. */ + public XrSwapchainStateSamplerOpenGLESFB type$Default() { return type(FBSwapchainUpdateStateOpenGLES.XR_TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSwapchainStateSamplerOpenGLESFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #minFilter} field. */ + public XrSwapchainStateSamplerOpenGLESFB minFilter(@NativeType("EGLenum") int value) { nminFilter(address(), value); return this; } + /** Sets the specified value to the {@link #magFilter} field. */ + public XrSwapchainStateSamplerOpenGLESFB magFilter(@NativeType("EGLenum") int value) { nmagFilter(address(), value); return this; } + /** Sets the specified value to the {@link #wrapModeS} field. */ + public XrSwapchainStateSamplerOpenGLESFB wrapModeS(@NativeType("EGLenum") int value) { nwrapModeS(address(), value); return this; } + /** Sets the specified value to the {@link #wrapModeT} field. */ + public XrSwapchainStateSamplerOpenGLESFB wrapModeT(@NativeType("EGLenum") int value) { nwrapModeT(address(), value); return this; } + /** Sets the specified value to the {@link #swizzleRed} field. */ + public XrSwapchainStateSamplerOpenGLESFB swizzleRed(@NativeType("EGLenum") int value) { nswizzleRed(address(), value); return this; } + /** Sets the specified value to the {@link #swizzleGreen} field. */ + public XrSwapchainStateSamplerOpenGLESFB swizzleGreen(@NativeType("EGLenum") int value) { nswizzleGreen(address(), value); return this; } + /** Sets the specified value to the {@link #swizzleBlue} field. */ + public XrSwapchainStateSamplerOpenGLESFB swizzleBlue(@NativeType("EGLenum") int value) { nswizzleBlue(address(), value); return this; } + /** Sets the specified value to the {@link #swizzleAlpha} field. */ + public XrSwapchainStateSamplerOpenGLESFB swizzleAlpha(@NativeType("EGLenum") int value) { nswizzleAlpha(address(), value); return this; } + /** Sets the specified value to the {@link #maxAnisotropy} field. */ + public XrSwapchainStateSamplerOpenGLESFB maxAnisotropy(float value) { nmaxAnisotropy(address(), value); return this; } + /** Copies the specified {@link XrColor4f} to the {@link #borderColor} field. */ + public XrSwapchainStateSamplerOpenGLESFB borderColor(XrColor4f value) { nborderColor(address(), value); return this; } + /** Passes the {@link #borderColor} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSwapchainStateSamplerOpenGLESFB borderColor(java.util.function.Consumer consumer) { consumer.accept(borderColor()); return this; } /** Initializes this struct with the specified values. */ public XrSwapchainStateSamplerOpenGLESFB set( - int type, - long next, - int minFilter, - int magFilter, - int wrapModeS, - int wrapModeT, - int swizzleRed, - int swizzleGreen, - int swizzleBlue, - int swizzleAlpha, - float maxAnisotropy, + int type, + long next, + int minFilter, + int magFilter, + int wrapModeS, + int wrapModeT, + int swizzleRed, + int swizzleGreen, + int swizzleBlue, + int swizzleAlpha, + float maxAnisotropy, XrColor4f borderColor - ) { - type(type); - next(next); - minFilter(minFilter); - magFilter(magFilter); - wrapModeS(wrapModeS); - wrapModeT(wrapModeT); - swizzleRed(swizzleRed); - swizzleGreen(swizzleGreen); - swizzleBlue(swizzleBlue); - swizzleAlpha(swizzleAlpha); - maxAnisotropy(maxAnisotropy); - borderColor(borderColor); + ) { + type(type); + next(next); + minFilter(minFilter); + magFilter(magFilter); + wrapModeS(wrapModeS); + wrapModeT(wrapModeT); + swizzleRed(swizzleRed); + swizzleGreen(swizzleGreen); + swizzleBlue(swizzleBlue); + swizzleAlpha(swizzleAlpha); + maxAnisotropy(maxAnisotropy); + borderColor(borderColor); return this; } @@ -379,58 +379,58 @@ public static XrSwapchainStateSamplerOpenGLESFB.Buffer calloc(int capacity, Memo } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainStateSamplerOpenGLESFB.NEXT); } - /** Unsafe version of {@link #minFilter}. */ - public static int nminFilter(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.MINFILTER); } - /** Unsafe version of {@link #magFilter}. */ - public static int nmagFilter(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.MAGFILTER); } - /** Unsafe version of {@link #wrapModeS}. */ - public static int nwrapModeS(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.WRAPMODES); } - /** Unsafe version of {@link #wrapModeT}. */ - public static int nwrapModeT(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.WRAPMODET); } - /** Unsafe version of {@link #swizzleRed}. */ - public static int nswizzleRed(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLERED); } - /** Unsafe version of {@link #swizzleGreen}. */ - public static int nswizzleGreen(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLEGREEN); } - /** Unsafe version of {@link #swizzleBlue}. */ - public static int nswizzleBlue(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLEBLUE); } - /** Unsafe version of {@link #swizzleAlpha}. */ - public static int nswizzleAlpha(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLEALPHA); } - /** Unsafe version of {@link #maxAnisotropy}. */ - public static float nmaxAnisotropy(long struct) { return UNSAFE.getFloat(null, struct + XrSwapchainStateSamplerOpenGLESFB.MAXANISOTROPY); } - /** Unsafe version of {@link #borderColor}. */ - public static XrColor4f nborderColor(long struct) { return XrColor4f.create(struct + XrSwapchainStateSamplerOpenGLESFB.BORDERCOLOR); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainStateSamplerOpenGLESFB.NEXT, value); } - /** Unsafe version of {@link #minFilter(int) minFilter}. */ - public static void nminFilter(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.MINFILTER, value); } - /** Unsafe version of {@link #magFilter(int) magFilter}. */ - public static void nmagFilter(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.MAGFILTER, value); } - /** Unsafe version of {@link #wrapModeS(int) wrapModeS}. */ - public static void nwrapModeS(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.WRAPMODES, value); } - /** Unsafe version of {@link #wrapModeT(int) wrapModeT}. */ - public static void nwrapModeT(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.WRAPMODET, value); } - /** Unsafe version of {@link #swizzleRed(int) swizzleRed}. */ - public static void nswizzleRed(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLERED, value); } - /** Unsafe version of {@link #swizzleGreen(int) swizzleGreen}. */ - public static void nswizzleGreen(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLEGREEN, value); } - /** Unsafe version of {@link #swizzleBlue(int) swizzleBlue}. */ - public static void nswizzleBlue(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLEBLUE, value); } - /** Unsafe version of {@link #swizzleAlpha(int) swizzleAlpha}. */ - public static void nswizzleAlpha(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLEALPHA, value); } - /** Unsafe version of {@link #maxAnisotropy(float) maxAnisotropy}. */ - public static void nmaxAnisotropy(long struct, float value) { UNSAFE.putFloat(null, struct + XrSwapchainStateSamplerOpenGLESFB.MAXANISOTROPY, value); } - /** Unsafe version of {@link #borderColor(XrColor4f) borderColor}. */ - public static void nborderColor(long struct, XrColor4f value) { memCopy(value.address(), struct + XrSwapchainStateSamplerOpenGLESFB.BORDERCOLOR, XrColor4f.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainStateSamplerOpenGLESFB.NEXT); } + /** Unsafe version of {@link #minFilter}. */ + public static int nminFilter(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.MINFILTER); } + /** Unsafe version of {@link #magFilter}. */ + public static int nmagFilter(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.MAGFILTER); } + /** Unsafe version of {@link #wrapModeS}. */ + public static int nwrapModeS(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.WRAPMODES); } + /** Unsafe version of {@link #wrapModeT}. */ + public static int nwrapModeT(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.WRAPMODET); } + /** Unsafe version of {@link #swizzleRed}. */ + public static int nswizzleRed(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLERED); } + /** Unsafe version of {@link #swizzleGreen}. */ + public static int nswizzleGreen(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLEGREEN); } + /** Unsafe version of {@link #swizzleBlue}. */ + public static int nswizzleBlue(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLEBLUE); } + /** Unsafe version of {@link #swizzleAlpha}. */ + public static int nswizzleAlpha(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLEALPHA); } + /** Unsafe version of {@link #maxAnisotropy}. */ + public static float nmaxAnisotropy(long struct) { return UNSAFE.getFloat(null, struct + XrSwapchainStateSamplerOpenGLESFB.MAXANISOTROPY); } + /** Unsafe version of {@link #borderColor}. */ + public static XrColor4f nborderColor(long struct) { return XrColor4f.create(struct + XrSwapchainStateSamplerOpenGLESFB.BORDERCOLOR); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainStateSamplerOpenGLESFB.NEXT, value); } + /** Unsafe version of {@link #minFilter(int) minFilter}. */ + public static void nminFilter(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.MINFILTER, value); } + /** Unsafe version of {@link #magFilter(int) magFilter}. */ + public static void nmagFilter(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.MAGFILTER, value); } + /** Unsafe version of {@link #wrapModeS(int) wrapModeS}. */ + public static void nwrapModeS(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.WRAPMODES, value); } + /** Unsafe version of {@link #wrapModeT(int) wrapModeT}. */ + public static void nwrapModeT(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.WRAPMODET, value); } + /** Unsafe version of {@link #swizzleRed(int) swizzleRed}. */ + public static void nswizzleRed(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLERED, value); } + /** Unsafe version of {@link #swizzleGreen(int) swizzleGreen}. */ + public static void nswizzleGreen(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLEGREEN, value); } + /** Unsafe version of {@link #swizzleBlue(int) swizzleBlue}. */ + public static void nswizzleBlue(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLEBLUE, value); } + /** Unsafe version of {@link #swizzleAlpha(int) swizzleAlpha}. */ + public static void nswizzleAlpha(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerOpenGLESFB.SWIZZLEALPHA, value); } + /** Unsafe version of {@link #maxAnisotropy(float) maxAnisotropy}. */ + public static void nmaxAnisotropy(long struct, float value) { UNSAFE.putFloat(null, struct + XrSwapchainStateSamplerOpenGLESFB.MAXANISOTROPY, value); } + /** Unsafe version of {@link #borderColor(XrColor4f) borderColor}. */ + public static void nborderColor(long struct, XrColor4f value) { memCopy(value.address(), struct + XrSwapchainStateSamplerOpenGLESFB.BORDERCOLOR, XrColor4f.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrSwapchainStateSamplerOpenGLESFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -467,70 +467,70 @@ protected Buffer self() { protected XrSwapchainStateSamplerOpenGLESFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainStateSamplerOpenGLESFB.ntype(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#next} field. */ - @NativeType("void *") - public long next() { return XrSwapchainStateSamplerOpenGLESFB.nnext(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#minFilter} field. */ - @NativeType("EGLenum") - public int minFilter() { return XrSwapchainStateSamplerOpenGLESFB.nminFilter(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#magFilter} field. */ - @NativeType("EGLenum") - public int magFilter() { return XrSwapchainStateSamplerOpenGLESFB.nmagFilter(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#wrapModeS} field. */ - @NativeType("EGLenum") - public int wrapModeS() { return XrSwapchainStateSamplerOpenGLESFB.nwrapModeS(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#wrapModeT} field. */ - @NativeType("EGLenum") - public int wrapModeT() { return XrSwapchainStateSamplerOpenGLESFB.nwrapModeT(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleRed} field. */ - @NativeType("EGLenum") - public int swizzleRed() { return XrSwapchainStateSamplerOpenGLESFB.nswizzleRed(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleGreen} field. */ - @NativeType("EGLenum") - public int swizzleGreen() { return XrSwapchainStateSamplerOpenGLESFB.nswizzleGreen(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleBlue} field. */ - @NativeType("EGLenum") - public int swizzleBlue() { return XrSwapchainStateSamplerOpenGLESFB.nswizzleBlue(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleAlpha} field. */ - @NativeType("EGLenum") - public int swizzleAlpha() { return XrSwapchainStateSamplerOpenGLESFB.nswizzleAlpha(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#maxAnisotropy} field. */ - public float maxAnisotropy() { return XrSwapchainStateSamplerOpenGLESFB.nmaxAnisotropy(address()); } - /** @return a {@link XrColor4f} view of the {@link XrSwapchainStateSamplerOpenGLESFB#borderColor} field. */ - public XrColor4f borderColor() { return XrSwapchainStateSamplerOpenGLESFB.nborderColor(address()); } - - /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#type} field. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainStateSamplerOpenGLESFB.ntype(address(), value); return this; } - /** Sets the {@link FBSwapchainUpdateStateOpenGLES#XR_TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB} value to the {@link XrSwapchainStateSamplerOpenGLESFB#type} field. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer type$Default() { return type(FBSwapchainUpdateStateOpenGLES.XR_TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB); } - /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#next} field. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer next(@NativeType("void *") long value) { XrSwapchainStateSamplerOpenGLESFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#minFilter} field. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer minFilter(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nminFilter(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#magFilter} field. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer magFilter(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nmagFilter(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#wrapModeS} field. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer wrapModeS(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nwrapModeS(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#wrapModeT} field. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer wrapModeT(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nwrapModeT(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleRed} field. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer swizzleRed(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nswizzleRed(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleGreen} field. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer swizzleGreen(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nswizzleGreen(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleBlue} field. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer swizzleBlue(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nswizzleBlue(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleAlpha} field. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer swizzleAlpha(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nswizzleAlpha(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#maxAnisotropy} field. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer maxAnisotropy(float value) { XrSwapchainStateSamplerOpenGLESFB.nmaxAnisotropy(address(), value); return this; } - /** Copies the specified {@link XrColor4f} to the {@link XrSwapchainStateSamplerOpenGLESFB#borderColor} field. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer borderColor(XrColor4f value) { XrSwapchainStateSamplerOpenGLESFB.nborderColor(address(), value); return this; } - /** Passes the {@link XrSwapchainStateSamplerOpenGLESFB#borderColor} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSwapchainStateSamplerOpenGLESFB.Buffer borderColor(java.util.function.Consumer consumer) { consumer.accept(borderColor()); return this; } + + /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainStateSamplerOpenGLESFB.ntype(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#next} field. */ + @NativeType("void *") + public long next() { return XrSwapchainStateSamplerOpenGLESFB.nnext(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#minFilter} field. */ + @NativeType("EGLenum") + public int minFilter() { return XrSwapchainStateSamplerOpenGLESFB.nminFilter(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#magFilter} field. */ + @NativeType("EGLenum") + public int magFilter() { return XrSwapchainStateSamplerOpenGLESFB.nmagFilter(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#wrapModeS} field. */ + @NativeType("EGLenum") + public int wrapModeS() { return XrSwapchainStateSamplerOpenGLESFB.nwrapModeS(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#wrapModeT} field. */ + @NativeType("EGLenum") + public int wrapModeT() { return XrSwapchainStateSamplerOpenGLESFB.nwrapModeT(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleRed} field. */ + @NativeType("EGLenum") + public int swizzleRed() { return XrSwapchainStateSamplerOpenGLESFB.nswizzleRed(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleGreen} field. */ + @NativeType("EGLenum") + public int swizzleGreen() { return XrSwapchainStateSamplerOpenGLESFB.nswizzleGreen(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleBlue} field. */ + @NativeType("EGLenum") + public int swizzleBlue() { return XrSwapchainStateSamplerOpenGLESFB.nswizzleBlue(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleAlpha} field. */ + @NativeType("EGLenum") + public int swizzleAlpha() { return XrSwapchainStateSamplerOpenGLESFB.nswizzleAlpha(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerOpenGLESFB#maxAnisotropy} field. */ + public float maxAnisotropy() { return XrSwapchainStateSamplerOpenGLESFB.nmaxAnisotropy(address()); } + /** @return a {@link XrColor4f} view of the {@link XrSwapchainStateSamplerOpenGLESFB#borderColor} field. */ + public XrColor4f borderColor() { return XrSwapchainStateSamplerOpenGLESFB.nborderColor(address()); } + + /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#type} field. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainStateSamplerOpenGLESFB.ntype(address(), value); return this; } + /** Sets the {@link FBSwapchainUpdateStateOpenGLES#XR_TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB} value to the {@link XrSwapchainStateSamplerOpenGLESFB#type} field. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer type$Default() { return type(FBSwapchainUpdateStateOpenGLES.XR_TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB); } + /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#next} field. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer next(@NativeType("void *") long value) { XrSwapchainStateSamplerOpenGLESFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#minFilter} field. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer minFilter(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nminFilter(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#magFilter} field. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer magFilter(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nmagFilter(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#wrapModeS} field. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer wrapModeS(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nwrapModeS(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#wrapModeT} field. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer wrapModeT(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nwrapModeT(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleRed} field. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer swizzleRed(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nswizzleRed(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleGreen} field. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer swizzleGreen(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nswizzleGreen(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleBlue} field. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer swizzleBlue(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nswizzleBlue(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#swizzleAlpha} field. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer swizzleAlpha(@NativeType("EGLenum") int value) { XrSwapchainStateSamplerOpenGLESFB.nswizzleAlpha(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerOpenGLESFB#maxAnisotropy} field. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer maxAnisotropy(float value) { XrSwapchainStateSamplerOpenGLESFB.nmaxAnisotropy(address(), value); return this; } + /** Copies the specified {@link XrColor4f} to the {@link XrSwapchainStateSamplerOpenGLESFB#borderColor} field. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer borderColor(XrColor4f value) { XrSwapchainStateSamplerOpenGLESFB.nborderColor(address(), value); return this; } + /** Passes the {@link XrSwapchainStateSamplerOpenGLESFB#borderColor} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSwapchainStateSamplerOpenGLESFB.Buffer borderColor(java.util.function.Consumer consumer) { consumer.accept(borderColor()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateSamplerVulkanFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateSamplerVulkanFB.java index 829903ebc4..87a4b557a7 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateSamplerVulkanFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainStateSamplerVulkanFB.java @@ -4,19 +4,19 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import org.lwjgl.vulkan.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.vulkan.*; + /** * Vulkan-specific swapchain sampler state structure. * @@ -33,7 +33,7 @@ *
                                                                        *
                                                                      • The {@link FBSwapchainUpdateStateVulkan XR_FB_swapchain_update_state_vulkan} extension must be enabled prior to using {@link XrSwapchainStateSamplerVulkanFB}
                                                                      • *
                                                                      • {@code type} must be {@link FBSwapchainUpdateStateVulkan#XR_TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB}
                                                                      • - *
                                                                      • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                      • + *
                                                                      • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                      • *
                                                                      • {@code minFilter} must be a valid {@code VkFilter} value
                                                                      • *
                                                                      • {@code magFilter} must be a valid {@code VkFilter} value
                                                                      • *
                                                                      • {@code mipmapMode} must be a valid {@code VkSamplerMipmapMode} value
                                                                      • @@ -67,8 +67,8 @@ * float {@link #maxAnisotropy}; * {@link XrColor4f XrColor4f} {@link #borderColor}; * } - */ -public class XrSwapchainStateSamplerVulkanFB extends Struct implements NativeResource { + */ +public class XrSwapchainStateSamplerVulkanFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -78,54 +78,54 @@ public class XrSwapchainStateSamplerVulkanFB extends Struct consumer) { consumer.accept(borderColor()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** a valid Vulkan {@code VkFilter}. */ + @NativeType("VkFilter") + public int minFilter() { return nminFilter(address()); } + /** a valid Vulkan {@code VkFilter}. */ + @NativeType("VkFilter") + public int magFilter() { return nmagFilter(address()); } + /** a valid Vulkan {@code VkSamplerMipmapMode}. */ + @NativeType("VkSamplerMipmapMode") + public int mipmapMode() { return nmipmapMode(address()); } + /** a valid Vulkan {@code VkSamplerAddressMode}. */ + @NativeType("VkSamplerAddressMode") + public int wrapModeS() { return nwrapModeS(address()); } + /** a valid Vulkan {@code VkSamplerAddressMode}. */ + @NativeType("VkSamplerAddressMode") + public int wrapModeT() { return nwrapModeT(address()); } + /** a valid Vulkan {@code VkComponentSwizzle}. */ + @NativeType("VkComponentSwizzle") + public int swizzleRed() { return nswizzleRed(address()); } + /** a valid Vulkan {@code VkComponentSwizzle}. */ + @NativeType("VkComponentSwizzle") + public int swizzleGreen() { return nswizzleGreen(address()); } + /** a valid Vulkan {@code VkComponentSwizzle}. */ + @NativeType("VkComponentSwizzle") + public int swizzleBlue() { return nswizzleBlue(address()); } + /** a valid Vulkan {@code VkComponentSwizzle}. */ + @NativeType("VkComponentSwizzle") + public int swizzleAlpha() { return nswizzleAlpha(address()); } + /** a valid float used to represent max anisotropy. */ + public float maxAnisotropy() { return nmaxAnisotropy(address()); } + /** an RGBA color to be used as border texels. */ + public XrColor4f borderColor() { return nborderColor(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSwapchainStateSamplerVulkanFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBSwapchainUpdateStateVulkan#XR_TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB} value to the {@link #type} field. */ + public XrSwapchainStateSamplerVulkanFB type$Default() { return type(FBSwapchainUpdateStateVulkan.XR_TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrSwapchainStateSamplerVulkanFB next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #minFilter} field. */ + public XrSwapchainStateSamplerVulkanFB minFilter(@NativeType("VkFilter") int value) { nminFilter(address(), value); return this; } + /** Sets the specified value to the {@link #magFilter} field. */ + public XrSwapchainStateSamplerVulkanFB magFilter(@NativeType("VkFilter") int value) { nmagFilter(address(), value); return this; } + /** Sets the specified value to the {@link #mipmapMode} field. */ + public XrSwapchainStateSamplerVulkanFB mipmapMode(@NativeType("VkSamplerMipmapMode") int value) { nmipmapMode(address(), value); return this; } + /** Sets the specified value to the {@link #wrapModeS} field. */ + public XrSwapchainStateSamplerVulkanFB wrapModeS(@NativeType("VkSamplerAddressMode") int value) { nwrapModeS(address(), value); return this; } + /** Sets the specified value to the {@link #wrapModeT} field. */ + public XrSwapchainStateSamplerVulkanFB wrapModeT(@NativeType("VkSamplerAddressMode") int value) { nwrapModeT(address(), value); return this; } + /** Sets the specified value to the {@link #swizzleRed} field. */ + public XrSwapchainStateSamplerVulkanFB swizzleRed(@NativeType("VkComponentSwizzle") int value) { nswizzleRed(address(), value); return this; } + /** Sets the specified value to the {@link #swizzleGreen} field. */ + public XrSwapchainStateSamplerVulkanFB swizzleGreen(@NativeType("VkComponentSwizzle") int value) { nswizzleGreen(address(), value); return this; } + /** Sets the specified value to the {@link #swizzleBlue} field. */ + public XrSwapchainStateSamplerVulkanFB swizzleBlue(@NativeType("VkComponentSwizzle") int value) { nswizzleBlue(address(), value); return this; } + /** Sets the specified value to the {@link #swizzleAlpha} field. */ + public XrSwapchainStateSamplerVulkanFB swizzleAlpha(@NativeType("VkComponentSwizzle") int value) { nswizzleAlpha(address(), value); return this; } + /** Sets the specified value to the {@link #maxAnisotropy} field. */ + public XrSwapchainStateSamplerVulkanFB maxAnisotropy(float value) { nmaxAnisotropy(address(), value); return this; } + /** Copies the specified {@link XrColor4f} to the {@link #borderColor} field. */ + public XrSwapchainStateSamplerVulkanFB borderColor(XrColor4f value) { nborderColor(address(), value); return this; } + /** Passes the {@link #borderColor} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSwapchainStateSamplerVulkanFB borderColor(java.util.function.Consumer consumer) { consumer.accept(borderColor()); return this; } /** Initializes this struct with the specified values. */ public XrSwapchainStateSamplerVulkanFB set( - int type, - long next, - int minFilter, - int magFilter, - int mipmapMode, - int wrapModeS, - int wrapModeT, - int swizzleRed, - int swizzleGreen, - int swizzleBlue, - int swizzleAlpha, - float maxAnisotropy, + int type, + long next, + int minFilter, + int magFilter, + int mipmapMode, + int wrapModeS, + int wrapModeT, + int swizzleRed, + int swizzleGreen, + int swizzleBlue, + int swizzleAlpha, + float maxAnisotropy, XrColor4f borderColor - ) { - type(type); - next(next); - minFilter(minFilter); - magFilter(magFilter); - mipmapMode(mipmapMode); - wrapModeS(wrapModeS); - wrapModeT(wrapModeT); - swizzleRed(swizzleRed); - swizzleGreen(swizzleGreen); - swizzleBlue(swizzleBlue); - swizzleAlpha(swizzleAlpha); - maxAnisotropy(maxAnisotropy); - borderColor(borderColor); + ) { + type(type); + next(next); + minFilter(minFilter); + magFilter(magFilter); + mipmapMode(mipmapMode); + wrapModeS(wrapModeS); + wrapModeT(wrapModeT); + swizzleRed(swizzleRed); + swizzleGreen(swizzleGreen); + swizzleBlue(swizzleBlue); + swizzleAlpha(swizzleAlpha); + maxAnisotropy(maxAnisotropy); + borderColor(borderColor); return this; } @@ -385,62 +385,62 @@ public static XrSwapchainStateSamplerVulkanFB.Buffer calloc(int capacity, Memory } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainStateSamplerVulkanFB.NEXT); } - /** Unsafe version of {@link #minFilter}. */ - public static int nminFilter(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.MINFILTER); } - /** Unsafe version of {@link #magFilter}. */ - public static int nmagFilter(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.MAGFILTER); } - /** Unsafe version of {@link #mipmapMode}. */ - public static int nmipmapMode(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.MIPMAPMODE); } - /** Unsafe version of {@link #wrapModeS}. */ - public static int nwrapModeS(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.WRAPMODES); } - /** Unsafe version of {@link #wrapModeT}. */ - public static int nwrapModeT(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.WRAPMODET); } - /** Unsafe version of {@link #swizzleRed}. */ - public static int nswizzleRed(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLERED); } - /** Unsafe version of {@link #swizzleGreen}. */ - public static int nswizzleGreen(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLEGREEN); } - /** Unsafe version of {@link #swizzleBlue}. */ - public static int nswizzleBlue(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLEBLUE); } - /** Unsafe version of {@link #swizzleAlpha}. */ - public static int nswizzleAlpha(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLEALPHA); } - /** Unsafe version of {@link #maxAnisotropy}. */ - public static float nmaxAnisotropy(long struct) { return UNSAFE.getFloat(null, struct + XrSwapchainStateSamplerVulkanFB.MAXANISOTROPY); } - /** Unsafe version of {@link #borderColor}. */ - public static XrColor4f nborderColor(long struct) { return XrColor4f.create(struct + XrSwapchainStateSamplerVulkanFB.BORDERCOLOR); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainStateSamplerVulkanFB.NEXT, value); } - /** Unsafe version of {@link #minFilter(int) minFilter}. */ - public static void nminFilter(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.MINFILTER, value); } - /** Unsafe version of {@link #magFilter(int) magFilter}. */ - public static void nmagFilter(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.MAGFILTER, value); } - /** Unsafe version of {@link #mipmapMode(int) mipmapMode}. */ - public static void nmipmapMode(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.MIPMAPMODE, value); } - /** Unsafe version of {@link #wrapModeS(int) wrapModeS}. */ - public static void nwrapModeS(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.WRAPMODES, value); } - /** Unsafe version of {@link #wrapModeT(int) wrapModeT}. */ - public static void nwrapModeT(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.WRAPMODET, value); } - /** Unsafe version of {@link #swizzleRed(int) swizzleRed}. */ - public static void nswizzleRed(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLERED, value); } - /** Unsafe version of {@link #swizzleGreen(int) swizzleGreen}. */ - public static void nswizzleGreen(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLEGREEN, value); } - /** Unsafe version of {@link #swizzleBlue(int) swizzleBlue}. */ - public static void nswizzleBlue(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLEBLUE, value); } - /** Unsafe version of {@link #swizzleAlpha(int) swizzleAlpha}. */ - public static void nswizzleAlpha(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLEALPHA, value); } - /** Unsafe version of {@link #maxAnisotropy(float) maxAnisotropy}. */ - public static void nmaxAnisotropy(long struct, float value) { UNSAFE.putFloat(null, struct + XrSwapchainStateSamplerVulkanFB.MAXANISOTROPY, value); } - /** Unsafe version of {@link #borderColor(XrColor4f) borderColor}. */ - public static void nborderColor(long struct, XrColor4f value) { memCopy(value.address(), struct + XrSwapchainStateSamplerVulkanFB.BORDERCOLOR, XrColor4f.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSwapchainStateSamplerVulkanFB.NEXT); } + /** Unsafe version of {@link #minFilter}. */ + public static int nminFilter(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.MINFILTER); } + /** Unsafe version of {@link #magFilter}. */ + public static int nmagFilter(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.MAGFILTER); } + /** Unsafe version of {@link #mipmapMode}. */ + public static int nmipmapMode(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.MIPMAPMODE); } + /** Unsafe version of {@link #wrapModeS}. */ + public static int nwrapModeS(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.WRAPMODES); } + /** Unsafe version of {@link #wrapModeT}. */ + public static int nwrapModeT(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.WRAPMODET); } + /** Unsafe version of {@link #swizzleRed}. */ + public static int nswizzleRed(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLERED); } + /** Unsafe version of {@link #swizzleGreen}. */ + public static int nswizzleGreen(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLEGREEN); } + /** Unsafe version of {@link #swizzleBlue}. */ + public static int nswizzleBlue(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLEBLUE); } + /** Unsafe version of {@link #swizzleAlpha}. */ + public static int nswizzleAlpha(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLEALPHA); } + /** Unsafe version of {@link #maxAnisotropy}. */ + public static float nmaxAnisotropy(long struct) { return UNSAFE.getFloat(null, struct + XrSwapchainStateSamplerVulkanFB.MAXANISOTROPY); } + /** Unsafe version of {@link #borderColor}. */ + public static XrColor4f nborderColor(long struct) { return XrColor4f.create(struct + XrSwapchainStateSamplerVulkanFB.BORDERCOLOR); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSwapchainStateSamplerVulkanFB.NEXT, value); } + /** Unsafe version of {@link #minFilter(int) minFilter}. */ + public static void nminFilter(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.MINFILTER, value); } + /** Unsafe version of {@link #magFilter(int) magFilter}. */ + public static void nmagFilter(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.MAGFILTER, value); } + /** Unsafe version of {@link #mipmapMode(int) mipmapMode}. */ + public static void nmipmapMode(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.MIPMAPMODE, value); } + /** Unsafe version of {@link #wrapModeS(int) wrapModeS}. */ + public static void nwrapModeS(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.WRAPMODES, value); } + /** Unsafe version of {@link #wrapModeT(int) wrapModeT}. */ + public static void nwrapModeT(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.WRAPMODET, value); } + /** Unsafe version of {@link #swizzleRed(int) swizzleRed}. */ + public static void nswizzleRed(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLERED, value); } + /** Unsafe version of {@link #swizzleGreen(int) swizzleGreen}. */ + public static void nswizzleGreen(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLEGREEN, value); } + /** Unsafe version of {@link #swizzleBlue(int) swizzleBlue}. */ + public static void nswizzleBlue(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLEBLUE, value); } + /** Unsafe version of {@link #swizzleAlpha(int) swizzleAlpha}. */ + public static void nswizzleAlpha(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainStateSamplerVulkanFB.SWIZZLEALPHA, value); } + /** Unsafe version of {@link #maxAnisotropy(float) maxAnisotropy}. */ + public static void nmaxAnisotropy(long struct, float value) { UNSAFE.putFloat(null, struct + XrSwapchainStateSamplerVulkanFB.MAXANISOTROPY, value); } + /** Unsafe version of {@link #borderColor(XrColor4f) borderColor}. */ + public static void nborderColor(long struct, XrColor4f value) { memCopy(value.address(), struct + XrSwapchainStateSamplerVulkanFB.BORDERCOLOR, XrColor4f.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrSwapchainStateSamplerVulkanFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -477,75 +477,75 @@ protected Buffer self() { protected XrSwapchainStateSamplerVulkanFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSwapchainStateSamplerVulkanFB.ntype(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#next} field. */ - @NativeType("void *") - public long next() { return XrSwapchainStateSamplerVulkanFB.nnext(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#minFilter} field. */ - @NativeType("VkFilter") - public int minFilter() { return XrSwapchainStateSamplerVulkanFB.nminFilter(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#magFilter} field. */ - @NativeType("VkFilter") - public int magFilter() { return XrSwapchainStateSamplerVulkanFB.nmagFilter(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#mipmapMode} field. */ - @NativeType("VkSamplerMipmapMode") - public int mipmapMode() { return XrSwapchainStateSamplerVulkanFB.nmipmapMode(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#wrapModeS} field. */ - @NativeType("VkSamplerAddressMode") - public int wrapModeS() { return XrSwapchainStateSamplerVulkanFB.nwrapModeS(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#wrapModeT} field. */ - @NativeType("VkSamplerAddressMode") - public int wrapModeT() { return XrSwapchainStateSamplerVulkanFB.nwrapModeT(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#swizzleRed} field. */ - @NativeType("VkComponentSwizzle") - public int swizzleRed() { return XrSwapchainStateSamplerVulkanFB.nswizzleRed(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#swizzleGreen} field. */ - @NativeType("VkComponentSwizzle") - public int swizzleGreen() { return XrSwapchainStateSamplerVulkanFB.nswizzleGreen(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#swizzleBlue} field. */ - @NativeType("VkComponentSwizzle") - public int swizzleBlue() { return XrSwapchainStateSamplerVulkanFB.nswizzleBlue(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#swizzleAlpha} field. */ - @NativeType("VkComponentSwizzle") - public int swizzleAlpha() { return XrSwapchainStateSamplerVulkanFB.nswizzleAlpha(address()); } - /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#maxAnisotropy} field. */ - public float maxAnisotropy() { return XrSwapchainStateSamplerVulkanFB.nmaxAnisotropy(address()); } - /** @return a {@link XrColor4f} view of the {@link XrSwapchainStateSamplerVulkanFB#borderColor} field. */ - public XrColor4f borderColor() { return XrSwapchainStateSamplerVulkanFB.nborderColor(address()); } - - /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#type} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainStateSamplerVulkanFB.ntype(address(), value); return this; } - /** Sets the {@link FBSwapchainUpdateStateVulkan#XR_TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB} value to the {@link XrSwapchainStateSamplerVulkanFB#type} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer type$Default() { return type(FBSwapchainUpdateStateVulkan.XR_TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB); } - /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#next} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer next(@NativeType("void *") long value) { XrSwapchainStateSamplerVulkanFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#minFilter} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer minFilter(@NativeType("VkFilter") int value) { XrSwapchainStateSamplerVulkanFB.nminFilter(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#magFilter} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer magFilter(@NativeType("VkFilter") int value) { XrSwapchainStateSamplerVulkanFB.nmagFilter(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#mipmapMode} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer mipmapMode(@NativeType("VkSamplerMipmapMode") int value) { XrSwapchainStateSamplerVulkanFB.nmipmapMode(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#wrapModeS} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer wrapModeS(@NativeType("VkSamplerAddressMode") int value) { XrSwapchainStateSamplerVulkanFB.nwrapModeS(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#wrapModeT} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer wrapModeT(@NativeType("VkSamplerAddressMode") int value) { XrSwapchainStateSamplerVulkanFB.nwrapModeT(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#swizzleRed} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer swizzleRed(@NativeType("VkComponentSwizzle") int value) { XrSwapchainStateSamplerVulkanFB.nswizzleRed(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#swizzleGreen} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer swizzleGreen(@NativeType("VkComponentSwizzle") int value) { XrSwapchainStateSamplerVulkanFB.nswizzleGreen(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#swizzleBlue} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer swizzleBlue(@NativeType("VkComponentSwizzle") int value) { XrSwapchainStateSamplerVulkanFB.nswizzleBlue(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#swizzleAlpha} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer swizzleAlpha(@NativeType("VkComponentSwizzle") int value) { XrSwapchainStateSamplerVulkanFB.nswizzleAlpha(address(), value); return this; } - /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#maxAnisotropy} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer maxAnisotropy(float value) { XrSwapchainStateSamplerVulkanFB.nmaxAnisotropy(address(), value); return this; } - /** Copies the specified {@link XrColor4f} to the {@link XrSwapchainStateSamplerVulkanFB#borderColor} field. */ - public XrSwapchainStateSamplerVulkanFB.Buffer borderColor(XrColor4f value) { XrSwapchainStateSamplerVulkanFB.nborderColor(address(), value); return this; } - /** Passes the {@link XrSwapchainStateSamplerVulkanFB#borderColor} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSwapchainStateSamplerVulkanFB.Buffer borderColor(java.util.function.Consumer consumer) { consumer.accept(borderColor()); return this; } + + /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSwapchainStateSamplerVulkanFB.ntype(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#next} field. */ + @NativeType("void *") + public long next() { return XrSwapchainStateSamplerVulkanFB.nnext(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#minFilter} field. */ + @NativeType("VkFilter") + public int minFilter() { return XrSwapchainStateSamplerVulkanFB.nminFilter(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#magFilter} field. */ + @NativeType("VkFilter") + public int magFilter() { return XrSwapchainStateSamplerVulkanFB.nmagFilter(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#mipmapMode} field. */ + @NativeType("VkSamplerMipmapMode") + public int mipmapMode() { return XrSwapchainStateSamplerVulkanFB.nmipmapMode(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#wrapModeS} field. */ + @NativeType("VkSamplerAddressMode") + public int wrapModeS() { return XrSwapchainStateSamplerVulkanFB.nwrapModeS(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#wrapModeT} field. */ + @NativeType("VkSamplerAddressMode") + public int wrapModeT() { return XrSwapchainStateSamplerVulkanFB.nwrapModeT(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#swizzleRed} field. */ + @NativeType("VkComponentSwizzle") + public int swizzleRed() { return XrSwapchainStateSamplerVulkanFB.nswizzleRed(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#swizzleGreen} field. */ + @NativeType("VkComponentSwizzle") + public int swizzleGreen() { return XrSwapchainStateSamplerVulkanFB.nswizzleGreen(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#swizzleBlue} field. */ + @NativeType("VkComponentSwizzle") + public int swizzleBlue() { return XrSwapchainStateSamplerVulkanFB.nswizzleBlue(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#swizzleAlpha} field. */ + @NativeType("VkComponentSwizzle") + public int swizzleAlpha() { return XrSwapchainStateSamplerVulkanFB.nswizzleAlpha(address()); } + /** @return the value of the {@link XrSwapchainStateSamplerVulkanFB#maxAnisotropy} field. */ + public float maxAnisotropy() { return XrSwapchainStateSamplerVulkanFB.nmaxAnisotropy(address()); } + /** @return a {@link XrColor4f} view of the {@link XrSwapchainStateSamplerVulkanFB#borderColor} field. */ + public XrColor4f borderColor() { return XrSwapchainStateSamplerVulkanFB.nborderColor(address()); } + + /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#type} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer type(@NativeType("XrStructureType") int value) { XrSwapchainStateSamplerVulkanFB.ntype(address(), value); return this; } + /** Sets the {@link FBSwapchainUpdateStateVulkan#XR_TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB} value to the {@link XrSwapchainStateSamplerVulkanFB#type} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer type$Default() { return type(FBSwapchainUpdateStateVulkan.XR_TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB); } + /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#next} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer next(@NativeType("void *") long value) { XrSwapchainStateSamplerVulkanFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#minFilter} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer minFilter(@NativeType("VkFilter") int value) { XrSwapchainStateSamplerVulkanFB.nminFilter(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#magFilter} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer magFilter(@NativeType("VkFilter") int value) { XrSwapchainStateSamplerVulkanFB.nmagFilter(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#mipmapMode} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer mipmapMode(@NativeType("VkSamplerMipmapMode") int value) { XrSwapchainStateSamplerVulkanFB.nmipmapMode(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#wrapModeS} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer wrapModeS(@NativeType("VkSamplerAddressMode") int value) { XrSwapchainStateSamplerVulkanFB.nwrapModeS(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#wrapModeT} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer wrapModeT(@NativeType("VkSamplerAddressMode") int value) { XrSwapchainStateSamplerVulkanFB.nwrapModeT(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#swizzleRed} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer swizzleRed(@NativeType("VkComponentSwizzle") int value) { XrSwapchainStateSamplerVulkanFB.nswizzleRed(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#swizzleGreen} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer swizzleGreen(@NativeType("VkComponentSwizzle") int value) { XrSwapchainStateSamplerVulkanFB.nswizzleGreen(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#swizzleBlue} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer swizzleBlue(@NativeType("VkComponentSwizzle") int value) { XrSwapchainStateSamplerVulkanFB.nswizzleBlue(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#swizzleAlpha} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer swizzleAlpha(@NativeType("VkComponentSwizzle") int value) { XrSwapchainStateSamplerVulkanFB.nswizzleAlpha(address(), value); return this; } + /** Sets the specified value to the {@link XrSwapchainStateSamplerVulkanFB#maxAnisotropy} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer maxAnisotropy(float value) { XrSwapchainStateSamplerVulkanFB.nmaxAnisotropy(address(), value); return this; } + /** Copies the specified {@link XrColor4f} to the {@link XrSwapchainStateSamplerVulkanFB#borderColor} field. */ + public XrSwapchainStateSamplerVulkanFB.Buffer borderColor(XrColor4f value) { XrSwapchainStateSamplerVulkanFB.nborderColor(address(), value); return this; } + /** Passes the {@link XrSwapchainStateSamplerVulkanFB#borderColor} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSwapchainStateSamplerVulkanFB.Buffer borderColor(java.util.function.Consumer consumer) { consumer.accept(borderColor()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainSubImage.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainSubImage.java index 55351ee436..2d51177b18 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainSubImage.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSwapchainSubImage.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Composition layer data. * @@ -37,8 +37,8 @@ * {@link XrRect2Di XrRect2Di} {@link #imageRect}; * uint32_t {@link #imageArrayIndex}; * } - */ -public class XrSwapchainSubImage extends Struct implements NativeResource { + */ +public class XrSwapchainSubImage extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -48,24 +48,24 @@ public class XrSwapchainSubImage extends Struct implements /** The struct member offsets. */ public static final int - SWAPCHAIN, - IMAGERECT, - IMAGEARRAYINDEX; + SWAPCHAIN, + IMAGERECT, + IMAGEARRAYINDEX; static { - Layout layout = __struct( - __member(POINTER_SIZE), - __member(XrRect2Di.SIZEOF, XrRect2Di.ALIGNOF), + Layout layout = __struct( + __member(POINTER_SIZE), + __member(XrRect2Di.SIZEOF, XrRect2Di.ALIGNOF), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - SWAPCHAIN = layout.offsetof(0); - IMAGERECT = layout.offsetof(1); - IMAGEARRAYINDEX = layout.offsetof(2); - } + SWAPCHAIN = layout.offsetof(0); + IMAGERECT = layout.offsetof(1); + IMAGEARRAYINDEX = layout.offsetof(2); + } protected XrSwapchainSubImage(long address, @Nullable ByteBuffer container) { super(address, container); @@ -88,34 +88,34 @@ public XrSwapchainSubImage(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrSwapchain} to be displayed. */ - @NativeType("XrSwapchain") - public long swapchain() { return nswapchain(address()); } - /** an {@link XrRect2Di} representing the valid portion of the image to use, in pixels. It also implicitly defines the transform from normalized image coordinates into pixel coordinates. The coordinate origin depends on which graphics API is being used. See the graphics API extension details for more information on the coordinate origin definition. Note that the compositor may bleed in pixels from outside the bounds in some cases, for instance due to mipmapping. */ - public XrRect2Di imageRect() { return nimageRect(address()); } - /** the image array index, with 0 meaning the first or only array element. */ - @NativeType("uint32_t") - public int imageArrayIndex() { return nimageArrayIndex(address()); } - - /** Sets the specified value to the {@link #swapchain} field. */ - public XrSwapchainSubImage swapchain(XrSwapchain value) { nswapchain(address(), value); return this; } - /** Copies the specified {@link XrRect2Di} to the {@link #imageRect} field. */ - public XrSwapchainSubImage imageRect(XrRect2Di value) { nimageRect(address(), value); return this; } - /** Passes the {@link #imageRect} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSwapchainSubImage imageRect(java.util.function.Consumer consumer) { consumer.accept(imageRect()); return this; } - /** Sets the specified value to the {@link #imageArrayIndex} field. */ - public XrSwapchainSubImage imageArrayIndex(@NativeType("uint32_t") int value) { nimageArrayIndex(address(), value); return this; } + + /** the {@code XrSwapchain} to be displayed. */ + @NativeType("XrSwapchain") + public long swapchain() { return nswapchain(address()); } + /** an {@link XrRect2Di} representing the valid portion of the image to use, in pixels. It also implicitly defines the transform from normalized image coordinates into pixel coordinates. The coordinate origin depends on which graphics API is being used. See the graphics API extension details for more information on the coordinate origin definition. Note that the compositor may bleed in pixels from outside the bounds in some cases, for instance due to mipmapping. */ + public XrRect2Di imageRect() { return nimageRect(address()); } + /** the image array index, with 0 meaning the first or only array element. */ + @NativeType("uint32_t") + public int imageArrayIndex() { return nimageArrayIndex(address()); } + + /** Sets the specified value to the {@link #swapchain} field. */ + public XrSwapchainSubImage swapchain(XrSwapchain value) { nswapchain(address(), value); return this; } + /** Copies the specified {@link XrRect2Di} to the {@link #imageRect} field. */ + public XrSwapchainSubImage imageRect(XrRect2Di value) { nimageRect(address(), value); return this; } + /** Passes the {@link #imageRect} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSwapchainSubImage imageRect(java.util.function.Consumer consumer) { consumer.accept(imageRect()); return this; } + /** Sets the specified value to the {@link #imageArrayIndex} field. */ + public XrSwapchainSubImage imageArrayIndex(@NativeType("uint32_t") int value) { nimageArrayIndex(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSwapchainSubImage set( - XrSwapchain swapchain, - XrRect2Di imageRect, + XrSwapchain swapchain, + XrRect2Di imageRect, int imageArrayIndex - ) { - swapchain(swapchain); - imageRect(imageRect); - imageArrayIndex(imageArrayIndex); + ) { + swapchain(swapchain); + imageRect(imageRect); + imageArrayIndex(imageArrayIndex); return this; } @@ -244,20 +244,20 @@ public static XrSwapchainSubImage.Buffer calloc(int capacity, MemoryStack stack) } // ----------------------------------- - - /** Unsafe version of {@link #swapchain}. */ - public static long nswapchain(long struct) { return memGetAddress(struct + XrSwapchainSubImage.SWAPCHAIN); } - /** Unsafe version of {@link #imageRect}. */ - public static XrRect2Di nimageRect(long struct) { return XrRect2Di.create(struct + XrSwapchainSubImage.IMAGERECT); } - /** Unsafe version of {@link #imageArrayIndex}. */ - public static int nimageArrayIndex(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainSubImage.IMAGEARRAYINDEX); } - - /** Unsafe version of {@link #swapchain(XrSwapchain) swapchain}. */ - public static void nswapchain(long struct, XrSwapchain value) { memPutAddress(struct + XrSwapchainSubImage.SWAPCHAIN, value.address()); } - /** Unsafe version of {@link #imageRect(XrRect2Di) imageRect}. */ - public static void nimageRect(long struct, XrRect2Di value) { memCopy(value.address(), struct + XrSwapchainSubImage.IMAGERECT, XrRect2Di.SIZEOF); } - /** Unsafe version of {@link #imageArrayIndex(int) imageArrayIndex}. */ - public static void nimageArrayIndex(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainSubImage.IMAGEARRAYINDEX, value); } + + /** Unsafe version of {@link #swapchain}. */ + public static long nswapchain(long struct) { return memGetAddress(struct + XrSwapchainSubImage.SWAPCHAIN); } + /** Unsafe version of {@link #imageRect}. */ + public static XrRect2Di nimageRect(long struct) { return XrRect2Di.create(struct + XrSwapchainSubImage.IMAGERECT); } + /** Unsafe version of {@link #imageArrayIndex}. */ + public static int nimageArrayIndex(long struct) { return UNSAFE.getInt(null, struct + XrSwapchainSubImage.IMAGEARRAYINDEX); } + + /** Unsafe version of {@link #swapchain(XrSwapchain) swapchain}. */ + public static void nswapchain(long struct, XrSwapchain value) { memPutAddress(struct + XrSwapchainSubImage.SWAPCHAIN, value.address()); } + /** Unsafe version of {@link #imageRect(XrRect2Di) imageRect}. */ + public static void nimageRect(long struct, XrRect2Di value) { memCopy(value.address(), struct + XrSwapchainSubImage.IMAGERECT, XrRect2Di.SIZEOF); } + /** Unsafe version of {@link #imageArrayIndex(int) imageArrayIndex}. */ + public static void nimageArrayIndex(long struct, int value) { UNSAFE.putInt(null, struct + XrSwapchainSubImage.IMAGEARRAYINDEX, value); } /** * Validates pointer members that should not be {@code NULL}. @@ -266,9 +266,9 @@ public static XrSwapchainSubImage.Buffer calloc(int capacity, MemoryStack stack) */ public static void validate(long struct) { check(memGetAddress(struct + XrSwapchainSubImage.SWAPCHAIN)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrSwapchainSubImage} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -305,24 +305,24 @@ protected Buffer self() { protected XrSwapchainSubImage getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSwapchainSubImage#swapchain} field. */ - @NativeType("XrSwapchain") - public long swapchain() { return XrSwapchainSubImage.nswapchain(address()); } - /** @return a {@link XrRect2Di} view of the {@link XrSwapchainSubImage#imageRect} field. */ - public XrRect2Di imageRect() { return XrSwapchainSubImage.nimageRect(address()); } - /** @return the value of the {@link XrSwapchainSubImage#imageArrayIndex} field. */ - @NativeType("uint32_t") - public int imageArrayIndex() { return XrSwapchainSubImage.nimageArrayIndex(address()); } - - /** Sets the specified value to the {@link XrSwapchainSubImage#swapchain} field. */ - public XrSwapchainSubImage.Buffer swapchain(XrSwapchain value) { XrSwapchainSubImage.nswapchain(address(), value); return this; } - /** Copies the specified {@link XrRect2Di} to the {@link XrSwapchainSubImage#imageRect} field. */ - public XrSwapchainSubImage.Buffer imageRect(XrRect2Di value) { XrSwapchainSubImage.nimageRect(address(), value); return this; } - /** Passes the {@link XrSwapchainSubImage#imageRect} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrSwapchainSubImage.Buffer imageRect(java.util.function.Consumer consumer) { consumer.accept(imageRect()); return this; } - /** Sets the specified value to the {@link XrSwapchainSubImage#imageArrayIndex} field. */ - public XrSwapchainSubImage.Buffer imageArrayIndex(@NativeType("uint32_t") int value) { XrSwapchainSubImage.nimageArrayIndex(address(), value); return this; } + + /** @return the value of the {@link XrSwapchainSubImage#swapchain} field. */ + @NativeType("XrSwapchain") + public long swapchain() { return XrSwapchainSubImage.nswapchain(address()); } + /** @return a {@link XrRect2Di} view of the {@link XrSwapchainSubImage#imageRect} field. */ + public XrRect2Di imageRect() { return XrSwapchainSubImage.nimageRect(address()); } + /** @return the value of the {@link XrSwapchainSubImage#imageArrayIndex} field. */ + @NativeType("uint32_t") + public int imageArrayIndex() { return XrSwapchainSubImage.nimageArrayIndex(address()); } + + /** Sets the specified value to the {@link XrSwapchainSubImage#swapchain} field. */ + public XrSwapchainSubImage.Buffer swapchain(XrSwapchain value) { XrSwapchainSubImage.nswapchain(address(), value); return this; } + /** Copies the specified {@link XrRect2Di} to the {@link XrSwapchainSubImage#imageRect} field. */ + public XrSwapchainSubImage.Buffer imageRect(XrRect2Di value) { XrSwapchainSubImage.nimageRect(address(), value); return this; } + /** Passes the {@link XrSwapchainSubImage#imageRect} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrSwapchainSubImage.Buffer imageRect(java.util.function.Consumer consumer) { consumer.accept(imageRect()); return this; } + /** Sets the specified value to the {@link XrSwapchainSubImage#imageArrayIndex} field. */ + public XrSwapchainSubImage.Buffer imageArrayIndex(@NativeType("uint32_t") int value) { XrSwapchainSubImage.nimageArrayIndex(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemBodyTrackingPropertiesFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemBodyTrackingPropertiesFB.java index 416a787753..78a5cf1a5a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemBodyTrackingPropertiesFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemBodyTrackingPropertiesFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * System property for body tracking. * @@ -27,7 +27,7 @@ *
                                                                          *
                                                                        • The {@link FBBodyTracking XR_FB_body_tracking} extension must be enabled prior to using {@link XrSystemBodyTrackingPropertiesFB}
                                                                        • *
                                                                        • {@code type} must be {@link FBBodyTracking#XR_TYPE_SYSTEM_BODY_TRACKING_PROPERTIES_FB TYPE_SYSTEM_BODY_TRACKING_PROPERTIES_FB}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        * *

                                                                        Layout

                                                                        @@ -38,8 +38,8 @@ * void * {@link #next}; * XrBool32 {@link #supportsBodyTracking}; * } - */ -public class XrSystemBodyTrackingPropertiesFB extends Struct implements NativeResource { + */ +public class XrSystemBodyTrackingPropertiesFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -49,24 +49,24 @@ public class XrSystemBodyTrackingPropertiesFB extends Struct implements NativeResource { @@ -292,23 +292,23 @@ protected Buffer self() { protected XrSystemBodyTrackingPropertiesFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemBodyTrackingPropertiesFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemBodyTrackingPropertiesFB.ntype(address()); } - /** @return the value of the {@link XrSystemBodyTrackingPropertiesFB#next} field. */ - @NativeType("void *") - public long next() { return XrSystemBodyTrackingPropertiesFB.nnext(address()); } - /** @return the value of the {@link XrSystemBodyTrackingPropertiesFB#supportsBodyTracking} field. */ - @NativeType("XrBool32") - public boolean supportsBodyTracking() { return XrSystemBodyTrackingPropertiesFB.nsupportsBodyTracking(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemBodyTrackingPropertiesFB#type} field. */ - public XrSystemBodyTrackingPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemBodyTrackingPropertiesFB.ntype(address(), value); return this; } - /** Sets the {@link FBBodyTracking#XR_TYPE_SYSTEM_BODY_TRACKING_PROPERTIES_FB TYPE_SYSTEM_BODY_TRACKING_PROPERTIES_FB} value to the {@link XrSystemBodyTrackingPropertiesFB#type} field. */ - public XrSystemBodyTrackingPropertiesFB.Buffer type$Default() { return type(FBBodyTracking.XR_TYPE_SYSTEM_BODY_TRACKING_PROPERTIES_FB); } - /** Sets the specified value to the {@link XrSystemBodyTrackingPropertiesFB#next} field. */ - public XrSystemBodyTrackingPropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemBodyTrackingPropertiesFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemBodyTrackingPropertiesFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemBodyTrackingPropertiesFB.ntype(address()); } + /** @return the value of the {@link XrSystemBodyTrackingPropertiesFB#next} field. */ + @NativeType("void *") + public long next() { return XrSystemBodyTrackingPropertiesFB.nnext(address()); } + /** @return the value of the {@link XrSystemBodyTrackingPropertiesFB#supportsBodyTracking} field. */ + @NativeType("XrBool32") + public boolean supportsBodyTracking() { return XrSystemBodyTrackingPropertiesFB.nsupportsBodyTracking(address()) != 0; } + + /** Sets the specified value to the {@link XrSystemBodyTrackingPropertiesFB#type} field. */ + public XrSystemBodyTrackingPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemBodyTrackingPropertiesFB.ntype(address(), value); return this; } + /** Sets the {@link FBBodyTracking#XR_TYPE_SYSTEM_BODY_TRACKING_PROPERTIES_FB TYPE_SYSTEM_BODY_TRACKING_PROPERTIES_FB} value to the {@link XrSystemBodyTrackingPropertiesFB#type} field. */ + public XrSystemBodyTrackingPropertiesFB.Buffer type$Default() { return type(FBBodyTracking.XR_TYPE_SYSTEM_BODY_TRACKING_PROPERTIES_FB); } + /** Sets the specified value to the {@link XrSystemBodyTrackingPropertiesFB#next} field. */ + public XrSystemBodyTrackingPropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemBodyTrackingPropertiesFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemColorSpacePropertiesFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemColorSpacePropertiesFB.java index f070a848d4..de40cc9876 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemColorSpacePropertiesFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemColorSpacePropertiesFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * System property for color space. * @@ -23,7 +23,7 @@ *
                                                                          *
                                                                        • The {@link FBColorSpace XR_FB_color_space} extension must be enabled prior to using {@link XrSystemColorSpacePropertiesFB}
                                                                        • *
                                                                        • {@code type} must be {@link FBColorSpace#XR_TYPE_SYSTEM_COLOR_SPACE_PROPERTIES_FB TYPE_SYSTEM_COLOR_SPACE_PROPERTIES_FB}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        * *

                                                                        Layout

                                                                        @@ -34,8 +34,8 @@ * void * {@link #next}; * XrColorSpaceFB {@link #colorSpace}; * } - */ -public class XrSystemColorSpacePropertiesFB extends Struct implements NativeResource { + */ +public class XrSystemColorSpacePropertiesFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -45,24 +45,24 @@ public class XrSystemColorSpacePropertiesFB extends Struct implements NativeResource { @@ -288,23 +288,23 @@ protected Buffer self() { protected XrSystemColorSpacePropertiesFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemColorSpacePropertiesFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemColorSpacePropertiesFB.ntype(address()); } - /** @return the value of the {@link XrSystemColorSpacePropertiesFB#next} field. */ - @NativeType("void *") - public long next() { return XrSystemColorSpacePropertiesFB.nnext(address()); } - /** @return the value of the {@link XrSystemColorSpacePropertiesFB#colorSpace} field. */ - @NativeType("XrColorSpaceFB") - public int colorSpace() { return XrSystemColorSpacePropertiesFB.ncolorSpace(address()); } - - /** Sets the specified value to the {@link XrSystemColorSpacePropertiesFB#type} field. */ - public XrSystemColorSpacePropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemColorSpacePropertiesFB.ntype(address(), value); return this; } - /** Sets the {@link FBColorSpace#XR_TYPE_SYSTEM_COLOR_SPACE_PROPERTIES_FB TYPE_SYSTEM_COLOR_SPACE_PROPERTIES_FB} value to the {@link XrSystemColorSpacePropertiesFB#type} field. */ - public XrSystemColorSpacePropertiesFB.Buffer type$Default() { return type(FBColorSpace.XR_TYPE_SYSTEM_COLOR_SPACE_PROPERTIES_FB); } - /** Sets the specified value to the {@link XrSystemColorSpacePropertiesFB#next} field. */ - public XrSystemColorSpacePropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemColorSpacePropertiesFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemColorSpacePropertiesFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemColorSpacePropertiesFB.ntype(address()); } + /** @return the value of the {@link XrSystemColorSpacePropertiesFB#next} field. */ + @NativeType("void *") + public long next() { return XrSystemColorSpacePropertiesFB.nnext(address()); } + /** @return the value of the {@link XrSystemColorSpacePropertiesFB#colorSpace} field. */ + @NativeType("XrColorSpaceFB") + public int colorSpace() { return XrSystemColorSpacePropertiesFB.ncolorSpace(address()); } + + /** Sets the specified value to the {@link XrSystemColorSpacePropertiesFB#type} field. */ + public XrSystemColorSpacePropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemColorSpacePropertiesFB.ntype(address(), value); return this; } + /** Sets the {@link FBColorSpace#XR_TYPE_SYSTEM_COLOR_SPACE_PROPERTIES_FB TYPE_SYSTEM_COLOR_SPACE_PROPERTIES_FB} value to the {@link XrSystemColorSpacePropertiesFB#type} field. */ + public XrSystemColorSpacePropertiesFB.Buffer type$Default() { return type(FBColorSpace.XR_TYPE_SYSTEM_COLOR_SPACE_PROPERTIES_FB); } + /** Sets the specified value to the {@link XrSystemColorSpacePropertiesFB#next} field. */ + public XrSystemColorSpacePropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemColorSpacePropertiesFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemEyeGazeInteractionPropertiesEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemEyeGazeInteractionPropertiesEXT.java index 1f36c791a4..e699b87c4e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemEyeGazeInteractionPropertiesEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemEyeGazeInteractionPropertiesEXT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Eye gaze interaction system properties. * @@ -23,7 +23,7 @@ *
                                                                          *
                                                                        • The {@link EXTEyeGazeInteraction XR_EXT_eye_gaze_interaction} extension must be enabled prior to using {@link XrSystemEyeGazeInteractionPropertiesEXT}
                                                                        • *
                                                                        • {@code type} must be {@link EXTEyeGazeInteraction#XR_TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        * *

                                                                        Layout

                                                                        @@ -34,8 +34,8 @@ * void * {@link #next}; * XrBool32 {@link #supportsEyeGazeInteraction}; * } - */ -public class XrSystemEyeGazeInteractionPropertiesEXT extends Struct implements NativeResource { + */ +public class XrSystemEyeGazeInteractionPropertiesEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -45,24 +45,24 @@ public class XrSystemEyeGazeInteractionPropertiesEXT extends Structmust set this value to {@link XR10#XR_TRUE TRUE} when eye gaze sufficient for use cases such as aiming or targeting is supported by the current device, otherwise the runtime must set this to {@link XR10#XR_FALSE FALSE}. */ - @NativeType("XrBool32") - public boolean supportsEyeGazeInteraction() { return nsupportsEyeGazeInteraction(address()) != 0; } - - /** Sets the specified value to the {@link #type} field. */ - public XrSystemEyeGazeInteractionPropertiesEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link EXTEyeGazeInteraction#XR_TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT} value to the {@link #type} field. */ - public XrSystemEyeGazeInteractionPropertiesEXT type$Default() { return type(EXTEyeGazeInteraction.XR_TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT); } - /** Sets the specified value to the {@link #next} field. */ - public XrSystemEyeGazeInteractionPropertiesEXT next(@NativeType("void *") long value) { nnext(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the runtime must set this value to {@link XR10#XR_TRUE TRUE} when eye gaze sufficient for use cases such as aiming or targeting is supported by the current device, otherwise the runtime must set this to {@link XR10#XR_FALSE FALSE}. */ + @NativeType("XrBool32") + public boolean supportsEyeGazeInteraction() { return nsupportsEyeGazeInteraction(address()) != 0; } + + /** Sets the specified value to the {@link #type} field. */ + public XrSystemEyeGazeInteractionPropertiesEXT type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link EXTEyeGazeInteraction#XR_TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT} value to the {@link #type} field. */ + public XrSystemEyeGazeInteractionPropertiesEXT type$Default() { return type(EXTEyeGazeInteraction.XR_TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT); } + /** Sets the specified value to the {@link #next} field. */ + public XrSystemEyeGazeInteractionPropertiesEXT next(@NativeType("void *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSystemEyeGazeInteractionPropertiesEXT set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -238,20 +238,20 @@ public static XrSystemEyeGazeInteractionPropertiesEXT.Buffer calloc(int capacity } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSystemEyeGazeInteractionPropertiesEXT.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSystemEyeGazeInteractionPropertiesEXT.NEXT); } - /** Unsafe version of {@link #supportsEyeGazeInteraction}. */ - public static int nsupportsEyeGazeInteraction(long struct) { return UNSAFE.getInt(null, struct + XrSystemEyeGazeInteractionPropertiesEXT.SUPPORTSEYEGAZEINTERACTION); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemEyeGazeInteractionPropertiesEXT.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSystemEyeGazeInteractionPropertiesEXT.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSystemEyeGazeInteractionPropertiesEXT.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSystemEyeGazeInteractionPropertiesEXT.NEXT); } + /** Unsafe version of {@link #supportsEyeGazeInteraction}. */ + public static int nsupportsEyeGazeInteraction(long struct) { return UNSAFE.getInt(null, struct + XrSystemEyeGazeInteractionPropertiesEXT.SUPPORTSEYEGAZEINTERACTION); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemEyeGazeInteractionPropertiesEXT.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSystemEyeGazeInteractionPropertiesEXT.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrSystemEyeGazeInteractionPropertiesEXT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -288,23 +288,23 @@ protected Buffer self() { protected XrSystemEyeGazeInteractionPropertiesEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemEyeGazeInteractionPropertiesEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemEyeGazeInteractionPropertiesEXT.ntype(address()); } - /** @return the value of the {@link XrSystemEyeGazeInteractionPropertiesEXT#next} field. */ - @NativeType("void *") - public long next() { return XrSystemEyeGazeInteractionPropertiesEXT.nnext(address()); } - /** @return the value of the {@link XrSystemEyeGazeInteractionPropertiesEXT#supportsEyeGazeInteraction} field. */ - @NativeType("XrBool32") - public boolean supportsEyeGazeInteraction() { return XrSystemEyeGazeInteractionPropertiesEXT.nsupportsEyeGazeInteraction(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemEyeGazeInteractionPropertiesEXT#type} field. */ - public XrSystemEyeGazeInteractionPropertiesEXT.Buffer type(@NativeType("XrStructureType") int value) { XrSystemEyeGazeInteractionPropertiesEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTEyeGazeInteraction#XR_TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT} value to the {@link XrSystemEyeGazeInteractionPropertiesEXT#type} field. */ - public XrSystemEyeGazeInteractionPropertiesEXT.Buffer type$Default() { return type(EXTEyeGazeInteraction.XR_TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT); } - /** Sets the specified value to the {@link XrSystemEyeGazeInteractionPropertiesEXT#next} field. */ - public XrSystemEyeGazeInteractionPropertiesEXT.Buffer next(@NativeType("void *") long value) { XrSystemEyeGazeInteractionPropertiesEXT.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemEyeGazeInteractionPropertiesEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemEyeGazeInteractionPropertiesEXT.ntype(address()); } + /** @return the value of the {@link XrSystemEyeGazeInteractionPropertiesEXT#next} field. */ + @NativeType("void *") + public long next() { return XrSystemEyeGazeInteractionPropertiesEXT.nnext(address()); } + /** @return the value of the {@link XrSystemEyeGazeInteractionPropertiesEXT#supportsEyeGazeInteraction} field. */ + @NativeType("XrBool32") + public boolean supportsEyeGazeInteraction() { return XrSystemEyeGazeInteractionPropertiesEXT.nsupportsEyeGazeInteraction(address()) != 0; } + + /** Sets the specified value to the {@link XrSystemEyeGazeInteractionPropertiesEXT#type} field. */ + public XrSystemEyeGazeInteractionPropertiesEXT.Buffer type(@NativeType("XrStructureType") int value) { XrSystemEyeGazeInteractionPropertiesEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTEyeGazeInteraction#XR_TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT} value to the {@link XrSystemEyeGazeInteractionPropertiesEXT#type} field. */ + public XrSystemEyeGazeInteractionPropertiesEXT.Buffer type$Default() { return type(EXTEyeGazeInteraction.XR_TYPE_SYSTEM_EYE_GAZE_INTERACTION_PROPERTIES_EXT); } + /** Sets the specified value to the {@link XrSystemEyeGazeInteractionPropertiesEXT#next} field. */ + public XrSystemEyeGazeInteractionPropertiesEXT.Buffer next(@NativeType("void *") long value) { XrSystemEyeGazeInteractionPropertiesEXT.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemEyeTrackingPropertiesFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemEyeTrackingPropertiesFB.java index 521414de21..91c35b94cb 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemEyeTrackingPropertiesFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemEyeTrackingPropertiesFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * System property for eye tracking. * @@ -29,7 +29,7 @@ *
                                                                          *
                                                                        • The {@link FBEyeTrackingSocial XR_FB_eye_tracking_social} extension must be enabled prior to using {@link XrSystemEyeTrackingPropertiesFB}
                                                                        • *
                                                                        • {@code type} must be {@link FBEyeTrackingSocial#XR_TYPE_SYSTEM_EYE_TRACKING_PROPERTIES_FB TYPE_SYSTEM_EYE_TRACKING_PROPERTIES_FB}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        * *

                                                                        Layout

                                                                        @@ -40,8 +40,8 @@ * void * {@link #next}; * XrBool32 {@link #supportsEyeTracking}; * } - */ -public class XrSystemEyeTrackingPropertiesFB extends Struct implements NativeResource { + */ +public class XrSystemEyeTrackingPropertiesFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,24 +51,24 @@ public class XrSystemEyeTrackingPropertiesFB extends Struct implements NativeResource { @@ -294,23 +294,23 @@ protected Buffer self() { protected XrSystemEyeTrackingPropertiesFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemEyeTrackingPropertiesFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemEyeTrackingPropertiesFB.ntype(address()); } - /** @return the value of the {@link XrSystemEyeTrackingPropertiesFB#next} field. */ - @NativeType("void *") - public long next() { return XrSystemEyeTrackingPropertiesFB.nnext(address()); } - /** @return the value of the {@link XrSystemEyeTrackingPropertiesFB#supportsEyeTracking} field. */ - @NativeType("XrBool32") - public boolean supportsEyeTracking() { return XrSystemEyeTrackingPropertiesFB.nsupportsEyeTracking(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemEyeTrackingPropertiesFB#type} field. */ - public XrSystemEyeTrackingPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemEyeTrackingPropertiesFB.ntype(address(), value); return this; } - /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_SYSTEM_EYE_TRACKING_PROPERTIES_FB TYPE_SYSTEM_EYE_TRACKING_PROPERTIES_FB} value to the {@link XrSystemEyeTrackingPropertiesFB#type} field. */ - public XrSystemEyeTrackingPropertiesFB.Buffer type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_SYSTEM_EYE_TRACKING_PROPERTIES_FB); } - /** Sets the specified value to the {@link XrSystemEyeTrackingPropertiesFB#next} field. */ - public XrSystemEyeTrackingPropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemEyeTrackingPropertiesFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemEyeTrackingPropertiesFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemEyeTrackingPropertiesFB.ntype(address()); } + /** @return the value of the {@link XrSystemEyeTrackingPropertiesFB#next} field. */ + @NativeType("void *") + public long next() { return XrSystemEyeTrackingPropertiesFB.nnext(address()); } + /** @return the value of the {@link XrSystemEyeTrackingPropertiesFB#supportsEyeTracking} field. */ + @NativeType("XrBool32") + public boolean supportsEyeTracking() { return XrSystemEyeTrackingPropertiesFB.nsupportsEyeTracking(address()) != 0; } + + /** Sets the specified value to the {@link XrSystemEyeTrackingPropertiesFB#type} field. */ + public XrSystemEyeTrackingPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemEyeTrackingPropertiesFB.ntype(address(), value); return this; } + /** Sets the {@link FBEyeTrackingSocial#XR_TYPE_SYSTEM_EYE_TRACKING_PROPERTIES_FB TYPE_SYSTEM_EYE_TRACKING_PROPERTIES_FB} value to the {@link XrSystemEyeTrackingPropertiesFB#type} field. */ + public XrSystemEyeTrackingPropertiesFB.Buffer type$Default() { return type(FBEyeTrackingSocial.XR_TYPE_SYSTEM_EYE_TRACKING_PROPERTIES_FB); } + /** Sets the specified value to the {@link XrSystemEyeTrackingPropertiesFB#next} field. */ + public XrSystemEyeTrackingPropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemEyeTrackingPropertiesFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFaceTrackingPropertiesFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFaceTrackingPropertiesFB.java index 1b40dd00ac..ba01376359 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFaceTrackingPropertiesFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFaceTrackingPropertiesFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * System property for face tracking. * @@ -29,7 +29,7 @@ *
                                                                          *
                                                                        • The {@link FBFaceTracking XR_FB_face_tracking} extension must be enabled prior to using {@link XrSystemFaceTrackingPropertiesFB}
                                                                        • *
                                                                        • {@code type} must be {@link FBFaceTracking#XR_TYPE_SYSTEM_FACE_TRACKING_PROPERTIES_FB TYPE_SYSTEM_FACE_TRACKING_PROPERTIES_FB}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        * *

                                                                        Layout

                                                                        @@ -40,8 +40,8 @@ * void * {@link #next}; * XrBool32 {@link #supportsFaceTracking}; * } - */ -public class XrSystemFaceTrackingPropertiesFB extends Struct implements NativeResource { + */ +public class XrSystemFaceTrackingPropertiesFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -51,24 +51,24 @@ public class XrSystemFaceTrackingPropertiesFB extends Struct implements NativeResource { @@ -294,23 +294,23 @@ protected Buffer self() { protected XrSystemFaceTrackingPropertiesFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemFaceTrackingPropertiesFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemFaceTrackingPropertiesFB.ntype(address()); } - /** @return the value of the {@link XrSystemFaceTrackingPropertiesFB#next} field. */ - @NativeType("void *") - public long next() { return XrSystemFaceTrackingPropertiesFB.nnext(address()); } - /** @return the value of the {@link XrSystemFaceTrackingPropertiesFB#supportsFaceTracking} field. */ - @NativeType("XrBool32") - public boolean supportsFaceTracking() { return XrSystemFaceTrackingPropertiesFB.nsupportsFaceTracking(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemFaceTrackingPropertiesFB#type} field. */ - public XrSystemFaceTrackingPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemFaceTrackingPropertiesFB.ntype(address(), value); return this; } - /** Sets the {@link FBFaceTracking#XR_TYPE_SYSTEM_FACE_TRACKING_PROPERTIES_FB TYPE_SYSTEM_FACE_TRACKING_PROPERTIES_FB} value to the {@link XrSystemFaceTrackingPropertiesFB#type} field. */ - public XrSystemFaceTrackingPropertiesFB.Buffer type$Default() { return type(FBFaceTracking.XR_TYPE_SYSTEM_FACE_TRACKING_PROPERTIES_FB); } - /** Sets the specified value to the {@link XrSystemFaceTrackingPropertiesFB#next} field. */ - public XrSystemFaceTrackingPropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemFaceTrackingPropertiesFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemFaceTrackingPropertiesFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemFaceTrackingPropertiesFB.ntype(address()); } + /** @return the value of the {@link XrSystemFaceTrackingPropertiesFB#next} field. */ + @NativeType("void *") + public long next() { return XrSystemFaceTrackingPropertiesFB.nnext(address()); } + /** @return the value of the {@link XrSystemFaceTrackingPropertiesFB#supportsFaceTracking} field. */ + @NativeType("XrBool32") + public boolean supportsFaceTracking() { return XrSystemFaceTrackingPropertiesFB.nsupportsFaceTracking(address()) != 0; } + + /** Sets the specified value to the {@link XrSystemFaceTrackingPropertiesFB#type} field. */ + public XrSystemFaceTrackingPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemFaceTrackingPropertiesFB.ntype(address(), value); return this; } + /** Sets the {@link FBFaceTracking#XR_TYPE_SYSTEM_FACE_TRACKING_PROPERTIES_FB TYPE_SYSTEM_FACE_TRACKING_PROPERTIES_FB} value to the {@link XrSystemFaceTrackingPropertiesFB#type} field. */ + public XrSystemFaceTrackingPropertiesFB.Buffer type$Default() { return type(FBFaceTracking.XR_TYPE_SYSTEM_FACE_TRACKING_PROPERTIES_FB); } + /** Sets the specified value to the {@link XrSystemFaceTrackingPropertiesFB#next} field. */ + public XrSystemFaceTrackingPropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemFaceTrackingPropertiesFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFacialTrackingPropertiesHTC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFacialTrackingPropertiesHTC.java index cba6db1a98..7f014e993c 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFacialTrackingPropertiesHTC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFacialTrackingPropertiesHTC.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * System property for facial tracking. * @@ -27,7 +27,7 @@ *
                                                                          *
                                                                        • The {@link HTCFacialTracking XR_HTC_facial_tracking} extension must be enabled prior to using {@link XrSystemFacialTrackingPropertiesHTC}
                                                                        • *
                                                                        • {@code type} must be {@link HTCFacialTracking#XR_TYPE_SYSTEM_FACIAL_TRACKING_PROPERTIES_HTC TYPE_SYSTEM_FACIAL_TRACKING_PROPERTIES_HTC}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        * *

                                                                        If a runtime returns {@link XR10#XR_FALSE FALSE} for {@code supportEyeFacialTracking}, the runtime must return {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED} from {@link HTCFacialTracking#xrCreateFacialTrackerHTC CreateFacialTrackerHTC} with {@link HTCFacialTracking#XR_FACIAL_TRACKING_TYPE_EYE_DEFAULT_HTC FACIAL_TRACKING_TYPE_EYE_DEFAULT_HTC} set for {@code XrFacialTrackingTypeHTC} in {@link XrFacialTrackerCreateInfoHTC}. Similarly, if a runtime returns {@link XR10#XR_FALSE FALSE} for {@code supportLipFacialTracking} the runtime must return {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED} from {@link HTCFacialTracking#xrCreateFacialTrackerHTC CreateFacialTrackerHTC} with {@link HTCFacialTracking#XR_FACIAL_TRACKING_TYPE_LIP_DEFAULT_HTC FACIAL_TRACKING_TYPE_LIP_DEFAULT_HTC} set for {@code XrFacialTrackingTypeHTC} in {@link XrFacialTrackerCreateInfoHTC}.

                                                                        @@ -41,8 +41,8 @@ * XrBool32 {@link #supportEyeFacialTracking}; * XrBool32 {@link #supportLipFacialTracking}; * } - */ -public class XrSystemFacialTrackingPropertiesHTC extends Struct implements NativeResource { + */ +public class XrSystemFacialTrackingPropertiesHTC extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,27 +52,27 @@ public class XrSystemFacialTrackingPropertiesHTC extends Struct implements NativeResource { @@ -303,26 +303,26 @@ protected Buffer self() { protected XrSystemFacialTrackingPropertiesHTC getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemFacialTrackingPropertiesHTC#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemFacialTrackingPropertiesHTC.ntype(address()); } - /** @return the value of the {@link XrSystemFacialTrackingPropertiesHTC#next} field. */ - @NativeType("void *") - public long next() { return XrSystemFacialTrackingPropertiesHTC.nnext(address()); } - /** @return the value of the {@link XrSystemFacialTrackingPropertiesHTC#supportEyeFacialTracking} field. */ - @NativeType("XrBool32") - public boolean supportEyeFacialTracking() { return XrSystemFacialTrackingPropertiesHTC.nsupportEyeFacialTracking(address()) != 0; } - /** @return the value of the {@link XrSystemFacialTrackingPropertiesHTC#supportLipFacialTracking} field. */ - @NativeType("XrBool32") - public boolean supportLipFacialTracking() { return XrSystemFacialTrackingPropertiesHTC.nsupportLipFacialTracking(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemFacialTrackingPropertiesHTC#type} field. */ - public XrSystemFacialTrackingPropertiesHTC.Buffer type(@NativeType("XrStructureType") int value) { XrSystemFacialTrackingPropertiesHTC.ntype(address(), value); return this; } - /** Sets the {@link HTCFacialTracking#XR_TYPE_SYSTEM_FACIAL_TRACKING_PROPERTIES_HTC TYPE_SYSTEM_FACIAL_TRACKING_PROPERTIES_HTC} value to the {@link XrSystemFacialTrackingPropertiesHTC#type} field. */ - public XrSystemFacialTrackingPropertiesHTC.Buffer type$Default() { return type(HTCFacialTracking.XR_TYPE_SYSTEM_FACIAL_TRACKING_PROPERTIES_HTC); } - /** Sets the specified value to the {@link XrSystemFacialTrackingPropertiesHTC#next} field. */ - public XrSystemFacialTrackingPropertiesHTC.Buffer next(@NativeType("void *") long value) { XrSystemFacialTrackingPropertiesHTC.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemFacialTrackingPropertiesHTC#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemFacialTrackingPropertiesHTC.ntype(address()); } + /** @return the value of the {@link XrSystemFacialTrackingPropertiesHTC#next} field. */ + @NativeType("void *") + public long next() { return XrSystemFacialTrackingPropertiesHTC.nnext(address()); } + /** @return the value of the {@link XrSystemFacialTrackingPropertiesHTC#supportEyeFacialTracking} field. */ + @NativeType("XrBool32") + public boolean supportEyeFacialTracking() { return XrSystemFacialTrackingPropertiesHTC.nsupportEyeFacialTracking(address()) != 0; } + /** @return the value of the {@link XrSystemFacialTrackingPropertiesHTC#supportLipFacialTracking} field. */ + @NativeType("XrBool32") + public boolean supportLipFacialTracking() { return XrSystemFacialTrackingPropertiesHTC.nsupportLipFacialTracking(address()) != 0; } + + /** Sets the specified value to the {@link XrSystemFacialTrackingPropertiesHTC#type} field. */ + public XrSystemFacialTrackingPropertiesHTC.Buffer type(@NativeType("XrStructureType") int value) { XrSystemFacialTrackingPropertiesHTC.ntype(address(), value); return this; } + /** Sets the {@link HTCFacialTracking#XR_TYPE_SYSTEM_FACIAL_TRACKING_PROPERTIES_HTC TYPE_SYSTEM_FACIAL_TRACKING_PROPERTIES_HTC} value to the {@link XrSystemFacialTrackingPropertiesHTC#type} field. */ + public XrSystemFacialTrackingPropertiesHTC.Buffer type$Default() { return type(HTCFacialTracking.XR_TYPE_SYSTEM_FACIAL_TRACKING_PROPERTIES_HTC); } + /** Sets the specified value to the {@link XrSystemFacialTrackingPropertiesHTC#next} field. */ + public XrSystemFacialTrackingPropertiesHTC.Buffer next(@NativeType("void *") long value) { XrSystemFacialTrackingPropertiesHTC.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemForceFeedbackCurlPropertiesMNDX.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemForceFeedbackCurlPropertiesMNDX.java index 577f9c223d..cb8b30f0d2 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemForceFeedbackCurlPropertiesMNDX.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemForceFeedbackCurlPropertiesMNDX.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * System property for force feedback curl. * @@ -29,7 +29,7 @@ *
                                                                          *
                                                                        • The {@link MNDXForceFeedbackCurl XR_MNDX_force_feedback_curl} extension must be enabled prior to using {@link XrSystemForceFeedbackCurlPropertiesMNDX}
                                                                        • *
                                                                        • {@code type} must be {@link MNDXForceFeedbackCurl#XR_TYPE_SYSTEM_FORCE_FEEDBACK_CURL_PROPERTIES_MNDX TYPE_SYSTEM_FORCE_FEEDBACK_CURL_PROPERTIES_MNDX}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        * *
                                                                        See Also
                                                                        @@ -44,8 +44,8 @@ * void * {@link #next}; * XrBool32 {@link #supportsForceFeedbackCurl}; * } - */ -public class XrSystemForceFeedbackCurlPropertiesMNDX extends Struct implements NativeResource { + */ +public class XrSystemForceFeedbackCurlPropertiesMNDX extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,24 +55,24 @@ public class XrSystemForceFeedbackCurlPropertiesMNDX extends Struct implements NativeResource { @@ -298,23 +298,23 @@ protected Buffer self() { protected XrSystemForceFeedbackCurlPropertiesMNDX getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemForceFeedbackCurlPropertiesMNDX#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemForceFeedbackCurlPropertiesMNDX.ntype(address()); } - /** @return the value of the {@link XrSystemForceFeedbackCurlPropertiesMNDX#next} field. */ - @NativeType("void *") - public long next() { return XrSystemForceFeedbackCurlPropertiesMNDX.nnext(address()); } - /** @return the value of the {@link XrSystemForceFeedbackCurlPropertiesMNDX#supportsForceFeedbackCurl} field. */ - @NativeType("XrBool32") - public boolean supportsForceFeedbackCurl() { return XrSystemForceFeedbackCurlPropertiesMNDX.nsupportsForceFeedbackCurl(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemForceFeedbackCurlPropertiesMNDX#type} field. */ - public XrSystemForceFeedbackCurlPropertiesMNDX.Buffer type(@NativeType("XrStructureType") int value) { XrSystemForceFeedbackCurlPropertiesMNDX.ntype(address(), value); return this; } - /** Sets the {@link MNDXForceFeedbackCurl#XR_TYPE_SYSTEM_FORCE_FEEDBACK_CURL_PROPERTIES_MNDX TYPE_SYSTEM_FORCE_FEEDBACK_CURL_PROPERTIES_MNDX} value to the {@link XrSystemForceFeedbackCurlPropertiesMNDX#type} field. */ - public XrSystemForceFeedbackCurlPropertiesMNDX.Buffer type$Default() { return type(MNDXForceFeedbackCurl.XR_TYPE_SYSTEM_FORCE_FEEDBACK_CURL_PROPERTIES_MNDX); } - /** Sets the specified value to the {@link XrSystemForceFeedbackCurlPropertiesMNDX#next} field. */ - public XrSystemForceFeedbackCurlPropertiesMNDX.Buffer next(@NativeType("void *") long value) { XrSystemForceFeedbackCurlPropertiesMNDX.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemForceFeedbackCurlPropertiesMNDX#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemForceFeedbackCurlPropertiesMNDX.ntype(address()); } + /** @return the value of the {@link XrSystemForceFeedbackCurlPropertiesMNDX#next} field. */ + @NativeType("void *") + public long next() { return XrSystemForceFeedbackCurlPropertiesMNDX.nnext(address()); } + /** @return the value of the {@link XrSystemForceFeedbackCurlPropertiesMNDX#supportsForceFeedbackCurl} field. */ + @NativeType("XrBool32") + public boolean supportsForceFeedbackCurl() { return XrSystemForceFeedbackCurlPropertiesMNDX.nsupportsForceFeedbackCurl(address()) != 0; } + + /** Sets the specified value to the {@link XrSystemForceFeedbackCurlPropertiesMNDX#type} field. */ + public XrSystemForceFeedbackCurlPropertiesMNDX.Buffer type(@NativeType("XrStructureType") int value) { XrSystemForceFeedbackCurlPropertiesMNDX.ntype(address(), value); return this; } + /** Sets the {@link MNDXForceFeedbackCurl#XR_TYPE_SYSTEM_FORCE_FEEDBACK_CURL_PROPERTIES_MNDX TYPE_SYSTEM_FORCE_FEEDBACK_CURL_PROPERTIES_MNDX} value to the {@link XrSystemForceFeedbackCurlPropertiesMNDX#type} field. */ + public XrSystemForceFeedbackCurlPropertiesMNDX.Buffer type$Default() { return type(MNDXForceFeedbackCurl.XR_TYPE_SYSTEM_FORCE_FEEDBACK_CURL_PROPERTIES_MNDX); } + /** Sets the specified value to the {@link XrSystemForceFeedbackCurlPropertiesMNDX#next} field. */ + public XrSystemForceFeedbackCurlPropertiesMNDX.Buffer next(@NativeType("void *") long value) { XrSystemForceFeedbackCurlPropertiesMNDX.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFoveatedRenderingPropertiesVARJO.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFoveatedRenderingPropertiesVARJO.java index f1613ffd85..843a1f330f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFoveatedRenderingPropertiesVARJO.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFoveatedRenderingPropertiesVARJO.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * System property for foveated rendering. * @@ -27,7 +27,7 @@ *
                                                                          *
                                                                        • The {@link VARJOFoveatedRendering XR_VARJO_foveated_rendering} extension must be enabled prior to using {@link XrSystemFoveatedRenderingPropertiesVARJO}
                                                                        • *
                                                                        • {@code type} must be {@link VARJOFoveatedRendering#XR_TYPE_SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJO TYPE_SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJO}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        * *

                                                                        Layout

                                                                        @@ -38,8 +38,8 @@ * void * {@link #next}; * XrBool32 {@link #supportsFoveatedRendering}; * } - */ -public class XrSystemFoveatedRenderingPropertiesVARJO extends Struct implements NativeResource { + */ +public class XrSystemFoveatedRenderingPropertiesVARJO extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -49,24 +49,24 @@ public class XrSystemFoveatedRenderingPropertiesVARJO extends Struct implements NativeResource { @@ -292,23 +292,23 @@ protected Buffer self() { protected XrSystemFoveatedRenderingPropertiesVARJO getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemFoveatedRenderingPropertiesVARJO#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemFoveatedRenderingPropertiesVARJO.ntype(address()); } - /** @return the value of the {@link XrSystemFoveatedRenderingPropertiesVARJO#next} field. */ - @NativeType("void *") - public long next() { return XrSystemFoveatedRenderingPropertiesVARJO.nnext(address()); } - /** @return the value of the {@link XrSystemFoveatedRenderingPropertiesVARJO#supportsFoveatedRendering} field. */ - @NativeType("XrBool32") - public boolean supportsFoveatedRendering() { return XrSystemFoveatedRenderingPropertiesVARJO.nsupportsFoveatedRendering(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemFoveatedRenderingPropertiesVARJO#type} field. */ - public XrSystemFoveatedRenderingPropertiesVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrSystemFoveatedRenderingPropertiesVARJO.ntype(address(), value); return this; } - /** Sets the {@link VARJOFoveatedRendering#XR_TYPE_SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJO TYPE_SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJO} value to the {@link XrSystemFoveatedRenderingPropertiesVARJO#type} field. */ - public XrSystemFoveatedRenderingPropertiesVARJO.Buffer type$Default() { return type(VARJOFoveatedRendering.XR_TYPE_SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJO); } - /** Sets the specified value to the {@link XrSystemFoveatedRenderingPropertiesVARJO#next} field. */ - public XrSystemFoveatedRenderingPropertiesVARJO.Buffer next(@NativeType("void *") long value) { XrSystemFoveatedRenderingPropertiesVARJO.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemFoveatedRenderingPropertiesVARJO#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemFoveatedRenderingPropertiesVARJO.ntype(address()); } + /** @return the value of the {@link XrSystemFoveatedRenderingPropertiesVARJO#next} field. */ + @NativeType("void *") + public long next() { return XrSystemFoveatedRenderingPropertiesVARJO.nnext(address()); } + /** @return the value of the {@link XrSystemFoveatedRenderingPropertiesVARJO#supportsFoveatedRendering} field. */ + @NativeType("XrBool32") + public boolean supportsFoveatedRendering() { return XrSystemFoveatedRenderingPropertiesVARJO.nsupportsFoveatedRendering(address()) != 0; } + + /** Sets the specified value to the {@link XrSystemFoveatedRenderingPropertiesVARJO#type} field. */ + public XrSystemFoveatedRenderingPropertiesVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrSystemFoveatedRenderingPropertiesVARJO.ntype(address(), value); return this; } + /** Sets the {@link VARJOFoveatedRendering#XR_TYPE_SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJO TYPE_SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJO} value to the {@link XrSystemFoveatedRenderingPropertiesVARJO#type} field. */ + public XrSystemFoveatedRenderingPropertiesVARJO.Buffer type$Default() { return type(VARJOFoveatedRendering.XR_TYPE_SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJO); } + /** Sets the specified value to the {@link XrSystemFoveatedRenderingPropertiesVARJO#next} field. */ + public XrSystemFoveatedRenderingPropertiesVARJO.Buffer next(@NativeType("void *") long value) { XrSystemFoveatedRenderingPropertiesVARJO.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFoveationEyeTrackedPropertiesMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFoveationEyeTrackedPropertiesMETA.java index 94fce5140f..72fbe2b3cc 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFoveationEyeTrackedPropertiesMETA.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemFoveationEyeTrackedPropertiesMETA.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Information about the current system support for eye tracked foveation. * @@ -27,7 +27,7 @@ *
                                                                          *
                                                                        • The {@link METAFoveationEyeTracked XR_META_foveation_eye_tracked} extension must be enabled prior to using {@link XrSystemFoveationEyeTrackedPropertiesMETA}
                                                                        • *
                                                                        • {@code type} must be {@link METAFoveationEyeTracked#XR_TYPE_SYSTEM_FOVEATION_EYE_TRACKED_PROPERTIES_META TYPE_SYSTEM_FOVEATION_EYE_TRACKED_PROPERTIES_META}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        * *
                                                                        See Also
                                                                        @@ -42,8 +42,8 @@ * void * {@link #next}; * XrBool32 {@link #supportsFoveationEyeTracked}; * } - */ -public class XrSystemFoveationEyeTrackedPropertiesMETA extends Struct implements NativeResource { + */ +public class XrSystemFoveationEyeTrackedPropertiesMETA extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,24 +53,24 @@ public class XrSystemFoveationEyeTrackedPropertiesMETA extends Struct implements NativeResource { @@ -296,23 +296,23 @@ protected Buffer self() { protected XrSystemFoveationEyeTrackedPropertiesMETA getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemFoveationEyeTrackedPropertiesMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemFoveationEyeTrackedPropertiesMETA.ntype(address()); } - /** @return the value of the {@link XrSystemFoveationEyeTrackedPropertiesMETA#next} field. */ - @NativeType("void *") - public long next() { return XrSystemFoveationEyeTrackedPropertiesMETA.nnext(address()); } - /** @return the value of the {@link XrSystemFoveationEyeTrackedPropertiesMETA#supportsFoveationEyeTracked} field. */ - @NativeType("XrBool32") - public boolean supportsFoveationEyeTracked() { return XrSystemFoveationEyeTrackedPropertiesMETA.nsupportsFoveationEyeTracked(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemFoveationEyeTrackedPropertiesMETA#type} field. */ - public XrSystemFoveationEyeTrackedPropertiesMETA.Buffer type(@NativeType("XrStructureType") int value) { XrSystemFoveationEyeTrackedPropertiesMETA.ntype(address(), value); return this; } - /** Sets the {@link METAFoveationEyeTracked#XR_TYPE_SYSTEM_FOVEATION_EYE_TRACKED_PROPERTIES_META TYPE_SYSTEM_FOVEATION_EYE_TRACKED_PROPERTIES_META} value to the {@link XrSystemFoveationEyeTrackedPropertiesMETA#type} field. */ - public XrSystemFoveationEyeTrackedPropertiesMETA.Buffer type$Default() { return type(METAFoveationEyeTracked.XR_TYPE_SYSTEM_FOVEATION_EYE_TRACKED_PROPERTIES_META); } - /** Sets the specified value to the {@link XrSystemFoveationEyeTrackedPropertiesMETA#next} field. */ - public XrSystemFoveationEyeTrackedPropertiesMETA.Buffer next(@NativeType("void *") long value) { XrSystemFoveationEyeTrackedPropertiesMETA.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemFoveationEyeTrackedPropertiesMETA#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemFoveationEyeTrackedPropertiesMETA.ntype(address()); } + /** @return the value of the {@link XrSystemFoveationEyeTrackedPropertiesMETA#next} field. */ + @NativeType("void *") + public long next() { return XrSystemFoveationEyeTrackedPropertiesMETA.nnext(address()); } + /** @return the value of the {@link XrSystemFoveationEyeTrackedPropertiesMETA#supportsFoveationEyeTracked} field. */ + @NativeType("XrBool32") + public boolean supportsFoveationEyeTracked() { return XrSystemFoveationEyeTrackedPropertiesMETA.nsupportsFoveationEyeTracked(address()) != 0; } + + /** Sets the specified value to the {@link XrSystemFoveationEyeTrackedPropertiesMETA#type} field. */ + public XrSystemFoveationEyeTrackedPropertiesMETA.Buffer type(@NativeType("XrStructureType") int value) { XrSystemFoveationEyeTrackedPropertiesMETA.ntype(address(), value); return this; } + /** Sets the {@link METAFoveationEyeTracked#XR_TYPE_SYSTEM_FOVEATION_EYE_TRACKED_PROPERTIES_META TYPE_SYSTEM_FOVEATION_EYE_TRACKED_PROPERTIES_META} value to the {@link XrSystemFoveationEyeTrackedPropertiesMETA#type} field. */ + public XrSystemFoveationEyeTrackedPropertiesMETA.Buffer type$Default() { return type(METAFoveationEyeTracked.XR_TYPE_SYSTEM_FOVEATION_EYE_TRACKED_PROPERTIES_META); } + /** Sets the specified value to the {@link XrSystemFoveationEyeTrackedPropertiesMETA#next} field. */ + public XrSystemFoveationEyeTrackedPropertiesMETA.Buffer next(@NativeType("void *") long value) { XrSystemFoveationEyeTrackedPropertiesMETA.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemGetInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemGetInfo.java index 0811b0b125..3bc27614a9 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemGetInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemGetInfo.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Specifies desired attributes of the system. * @@ -26,7 +26,7 @@ * * * @@ -42,8 +42,8 @@ * void const * {@link #next}; * XrFormFactor {@link #formFactor}; * } - */ -public class XrSystemGetInfo extends Struct implements NativeResource { + */ +public class XrSystemGetInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,24 +53,24 @@ public class XrSystemGetInfo extends Struct implements NativeRe /** The struct member offsets. */ public static final int - TYPE, - NEXT, - FORMFACTOR; + TYPE, + NEXT, + FORMFACTOR; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - FORMFACTOR = layout.offsetof(2); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + FORMFACTOR = layout.offsetof(2); + } protected XrSystemGetInfo(long address, @Nullable ByteBuffer container) { super(address, container); @@ -93,35 +93,35 @@ public XrSystemGetInfo(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** the {@code XrFormFactor} requested by the application. */ - @NativeType("XrFormFactor") - public int formFactor() { return nformFactor(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSystemGetInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SYSTEM_GET_INFO TYPE_SYSTEM_GET_INFO} value to the {@link #type} field. */ - public XrSystemGetInfo type$Default() { return type(XR10.XR_TYPE_SYSTEM_GET_INFO); } - /** Sets the specified value to the {@link #next} field. */ - public XrSystemGetInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #formFactor} field. */ - public XrSystemGetInfo formFactor(@NativeType("XrFormFactor") int value) { nformFactor(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the {@code XrFormFactor} requested by the application. */ + @NativeType("XrFormFactor") + public int formFactor() { return nformFactor(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSystemGetInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SYSTEM_GET_INFO TYPE_SYSTEM_GET_INFO} value to the {@link #type} field. */ + public XrSystemGetInfo type$Default() { return type(XR10.XR_TYPE_SYSTEM_GET_INFO); } + /** Sets the specified value to the {@link #next} field. */ + public XrSystemGetInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #formFactor} field. */ + public XrSystemGetInfo formFactor(@NativeType("XrFormFactor") int value) { nformFactor(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSystemGetInfo set( - int type, - long next, + int type, + long next, int formFactor - ) { - type(type); - next(next); - formFactor(formFactor); + ) { + type(type); + next(next); + formFactor(formFactor); return this; } @@ -250,22 +250,22 @@ public static XrSystemGetInfo.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSystemGetInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSystemGetInfo.NEXT); } - /** Unsafe version of {@link #formFactor}. */ - public static int nformFactor(long struct) { return UNSAFE.getInt(null, struct + XrSystemGetInfo.FORMFACTOR); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemGetInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSystemGetInfo.NEXT, value); } - /** Unsafe version of {@link #formFactor(int) formFactor}. */ - public static void nformFactor(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemGetInfo.FORMFACTOR, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSystemGetInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSystemGetInfo.NEXT); } + /** Unsafe version of {@link #formFactor}. */ + public static int nformFactor(long struct) { return UNSAFE.getInt(null, struct + XrSystemGetInfo.FORMFACTOR); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemGetInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSystemGetInfo.NEXT, value); } + /** Unsafe version of {@link #formFactor(int) formFactor}. */ + public static void nformFactor(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemGetInfo.FORMFACTOR, value); } + + // ----------------------------------- /** An array of {@link XrSystemGetInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -302,25 +302,25 @@ protected Buffer self() { protected XrSystemGetInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemGetInfo#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemGetInfo.ntype(address()); } - /** @return the value of the {@link XrSystemGetInfo#next} field. */ - @NativeType("void const *") - public long next() { return XrSystemGetInfo.nnext(address()); } - /** @return the value of the {@link XrSystemGetInfo#formFactor} field. */ - @NativeType("XrFormFactor") - public int formFactor() { return XrSystemGetInfo.nformFactor(address()); } - - /** Sets the specified value to the {@link XrSystemGetInfo#type} field. */ - public XrSystemGetInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSystemGetInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SYSTEM_GET_INFO TYPE_SYSTEM_GET_INFO} value to the {@link XrSystemGetInfo#type} field. */ - public XrSystemGetInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SYSTEM_GET_INFO); } - /** Sets the specified value to the {@link XrSystemGetInfo#next} field. */ - public XrSystemGetInfo.Buffer next(@NativeType("void const *") long value) { XrSystemGetInfo.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrSystemGetInfo#formFactor} field. */ - public XrSystemGetInfo.Buffer formFactor(@NativeType("XrFormFactor") int value) { XrSystemGetInfo.nformFactor(address(), value); return this; } + + /** @return the value of the {@link XrSystemGetInfo#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemGetInfo.ntype(address()); } + /** @return the value of the {@link XrSystemGetInfo#next} field. */ + @NativeType("void const *") + public long next() { return XrSystemGetInfo.nnext(address()); } + /** @return the value of the {@link XrSystemGetInfo#formFactor} field. */ + @NativeType("XrFormFactor") + public int formFactor() { return XrSystemGetInfo.nformFactor(address()); } + + /** Sets the specified value to the {@link XrSystemGetInfo#type} field. */ + public XrSystemGetInfo.Buffer type(@NativeType("XrStructureType") int value) { XrSystemGetInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SYSTEM_GET_INFO TYPE_SYSTEM_GET_INFO} value to the {@link XrSystemGetInfo#type} field. */ + public XrSystemGetInfo.Buffer type$Default() { return type(XR10.XR_TYPE_SYSTEM_GET_INFO); } + /** Sets the specified value to the {@link XrSystemGetInfo#next} field. */ + public XrSystemGetInfo.Buffer next(@NativeType("void const *") long value) { XrSystemGetInfo.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrSystemGetInfo#formFactor} field. */ + public XrSystemGetInfo.Buffer formFactor(@NativeType("XrFormFactor") int value) { XrSystemGetInfo.nformFactor(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemGraphicsProperties.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemGraphicsProperties.java index 66682f9095..34c3d92935 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemGraphicsProperties.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemGraphicsProperties.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Graphics-related properties of a particular system. * @@ -30,8 +30,8 @@ * uint32_t {@link #maxSwapchainImageWidth}; * uint32_t {@link #maxLayerCount}; * } - */ -public class XrSystemGraphicsProperties extends Struct implements NativeResource { + */ +public class XrSystemGraphicsProperties extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -41,24 +41,24 @@ public class XrSystemGraphicsProperties extends Structmust support at least {@link XR10#XR_MIN_COMPOSITION_LAYERS_SUPPORTED MIN_COMPOSITION_LAYERS_SUPPORTED} layers. */ - @NativeType("uint32_t") - public int maxLayerCount() { return nmaxLayerCount(address()); } - - /** Sets the specified value to the {@link #maxSwapchainImageHeight} field. */ - public XrSystemGraphicsProperties maxSwapchainImageHeight(@NativeType("uint32_t") int value) { nmaxSwapchainImageHeight(address(), value); return this; } - /** Sets the specified value to the {@link #maxSwapchainImageWidth} field. */ - public XrSystemGraphicsProperties maxSwapchainImageWidth(@NativeType("uint32_t") int value) { nmaxSwapchainImageWidth(address(), value); return this; } - /** Sets the specified value to the {@link #maxLayerCount} field. */ - public XrSystemGraphicsProperties maxLayerCount(@NativeType("uint32_t") int value) { nmaxLayerCount(address(), value); return this; } + + /** the maximum swapchain image pixel height supported by this system. */ + @NativeType("uint32_t") + public int maxSwapchainImageHeight() { return nmaxSwapchainImageHeight(address()); } + /** the maximum swapchain image pixel width supported by this system. */ + @NativeType("uint32_t") + public int maxSwapchainImageWidth() { return nmaxSwapchainImageWidth(address()); } + /** the maximum number of composition layers supported by this system. The runtime must support at least {@link XR10#XR_MIN_COMPOSITION_LAYERS_SUPPORTED MIN_COMPOSITION_LAYERS_SUPPORTED} layers. */ + @NativeType("uint32_t") + public int maxLayerCount() { return nmaxLayerCount(address()); } + + /** Sets the specified value to the {@link #maxSwapchainImageHeight} field. */ + public XrSystemGraphicsProperties maxSwapchainImageHeight(@NativeType("uint32_t") int value) { nmaxSwapchainImageHeight(address(), value); return this; } + /** Sets the specified value to the {@link #maxSwapchainImageWidth} field. */ + public XrSystemGraphicsProperties maxSwapchainImageWidth(@NativeType("uint32_t") int value) { nmaxSwapchainImageWidth(address(), value); return this; } + /** Sets the specified value to the {@link #maxLayerCount} field. */ + public XrSystemGraphicsProperties maxLayerCount(@NativeType("uint32_t") int value) { nmaxLayerCount(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrSystemGraphicsProperties set( - int maxSwapchainImageHeight, - int maxSwapchainImageWidth, + int maxSwapchainImageHeight, + int maxSwapchainImageWidth, int maxLayerCount - ) { - maxSwapchainImageHeight(maxSwapchainImageHeight); - maxSwapchainImageWidth(maxSwapchainImageWidth); - maxLayerCount(maxLayerCount); + ) { + maxSwapchainImageHeight(maxSwapchainImageHeight); + maxSwapchainImageWidth(maxSwapchainImageWidth); + maxLayerCount(maxLayerCount); return this; } @@ -236,22 +236,22 @@ public static XrSystemGraphicsProperties.Buffer calloc(int capacity, MemoryStack } // ----------------------------------- - - /** Unsafe version of {@link #maxSwapchainImageHeight}. */ - public static int nmaxSwapchainImageHeight(long struct) { return UNSAFE.getInt(null, struct + XrSystemGraphicsProperties.MAXSWAPCHAINIMAGEHEIGHT); } - /** Unsafe version of {@link #maxSwapchainImageWidth}. */ - public static int nmaxSwapchainImageWidth(long struct) { return UNSAFE.getInt(null, struct + XrSystemGraphicsProperties.MAXSWAPCHAINIMAGEWIDTH); } - /** Unsafe version of {@link #maxLayerCount}. */ - public static int nmaxLayerCount(long struct) { return UNSAFE.getInt(null, struct + XrSystemGraphicsProperties.MAXLAYERCOUNT); } - - /** Unsafe version of {@link #maxSwapchainImageHeight(int) maxSwapchainImageHeight}. */ - public static void nmaxSwapchainImageHeight(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemGraphicsProperties.MAXSWAPCHAINIMAGEHEIGHT, value); } - /** Unsafe version of {@link #maxSwapchainImageWidth(int) maxSwapchainImageWidth}. */ - public static void nmaxSwapchainImageWidth(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemGraphicsProperties.MAXSWAPCHAINIMAGEWIDTH, value); } - /** Unsafe version of {@link #maxLayerCount(int) maxLayerCount}. */ - public static void nmaxLayerCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemGraphicsProperties.MAXLAYERCOUNT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #maxSwapchainImageHeight}. */ + public static int nmaxSwapchainImageHeight(long struct) { return UNSAFE.getInt(null, struct + XrSystemGraphicsProperties.MAXSWAPCHAINIMAGEHEIGHT); } + /** Unsafe version of {@link #maxSwapchainImageWidth}. */ + public static int nmaxSwapchainImageWidth(long struct) { return UNSAFE.getInt(null, struct + XrSystemGraphicsProperties.MAXSWAPCHAINIMAGEWIDTH); } + /** Unsafe version of {@link #maxLayerCount}. */ + public static int nmaxLayerCount(long struct) { return UNSAFE.getInt(null, struct + XrSystemGraphicsProperties.MAXLAYERCOUNT); } + + /** Unsafe version of {@link #maxSwapchainImageHeight(int) maxSwapchainImageHeight}. */ + public static void nmaxSwapchainImageHeight(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemGraphicsProperties.MAXSWAPCHAINIMAGEHEIGHT, value); } + /** Unsafe version of {@link #maxSwapchainImageWidth(int) maxSwapchainImageWidth}. */ + public static void nmaxSwapchainImageWidth(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemGraphicsProperties.MAXSWAPCHAINIMAGEWIDTH, value); } + /** Unsafe version of {@link #maxLayerCount(int) maxLayerCount}. */ + public static void nmaxLayerCount(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemGraphicsProperties.MAXLAYERCOUNT, value); } + + // ----------------------------------- /** An array of {@link XrSystemGraphicsProperties} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -288,23 +288,23 @@ protected Buffer self() { protected XrSystemGraphicsProperties getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemGraphicsProperties#maxSwapchainImageHeight} field. */ - @NativeType("uint32_t") - public int maxSwapchainImageHeight() { return XrSystemGraphicsProperties.nmaxSwapchainImageHeight(address()); } - /** @return the value of the {@link XrSystemGraphicsProperties#maxSwapchainImageWidth} field. */ - @NativeType("uint32_t") - public int maxSwapchainImageWidth() { return XrSystemGraphicsProperties.nmaxSwapchainImageWidth(address()); } - /** @return the value of the {@link XrSystemGraphicsProperties#maxLayerCount} field. */ - @NativeType("uint32_t") - public int maxLayerCount() { return XrSystemGraphicsProperties.nmaxLayerCount(address()); } - - /** Sets the specified value to the {@link XrSystemGraphicsProperties#maxSwapchainImageHeight} field. */ - public XrSystemGraphicsProperties.Buffer maxSwapchainImageHeight(@NativeType("uint32_t") int value) { XrSystemGraphicsProperties.nmaxSwapchainImageHeight(address(), value); return this; } - /** Sets the specified value to the {@link XrSystemGraphicsProperties#maxSwapchainImageWidth} field. */ - public XrSystemGraphicsProperties.Buffer maxSwapchainImageWidth(@NativeType("uint32_t") int value) { XrSystemGraphicsProperties.nmaxSwapchainImageWidth(address(), value); return this; } - /** Sets the specified value to the {@link XrSystemGraphicsProperties#maxLayerCount} field. */ - public XrSystemGraphicsProperties.Buffer maxLayerCount(@NativeType("uint32_t") int value) { XrSystemGraphicsProperties.nmaxLayerCount(address(), value); return this; } + + /** @return the value of the {@link XrSystemGraphicsProperties#maxSwapchainImageHeight} field. */ + @NativeType("uint32_t") + public int maxSwapchainImageHeight() { return XrSystemGraphicsProperties.nmaxSwapchainImageHeight(address()); } + /** @return the value of the {@link XrSystemGraphicsProperties#maxSwapchainImageWidth} field. */ + @NativeType("uint32_t") + public int maxSwapchainImageWidth() { return XrSystemGraphicsProperties.nmaxSwapchainImageWidth(address()); } + /** @return the value of the {@link XrSystemGraphicsProperties#maxLayerCount} field. */ + @NativeType("uint32_t") + public int maxLayerCount() { return XrSystemGraphicsProperties.nmaxLayerCount(address()); } + + /** Sets the specified value to the {@link XrSystemGraphicsProperties#maxSwapchainImageHeight} field. */ + public XrSystemGraphicsProperties.Buffer maxSwapchainImageHeight(@NativeType("uint32_t") int value) { XrSystemGraphicsProperties.nmaxSwapchainImageHeight(address(), value); return this; } + /** Sets the specified value to the {@link XrSystemGraphicsProperties#maxSwapchainImageWidth} field. */ + public XrSystemGraphicsProperties.Buffer maxSwapchainImageWidth(@NativeType("uint32_t") int value) { XrSystemGraphicsProperties.nmaxSwapchainImageWidth(address(), value); return this; } + /** Sets the specified value to the {@link XrSystemGraphicsProperties#maxLayerCount} field. */ + public XrSystemGraphicsProperties.Buffer maxLayerCount(@NativeType("uint32_t") int value) { XrSystemGraphicsProperties.nmaxLayerCount(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemHandTrackingMeshPropertiesMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemHandTrackingMeshPropertiesMSFT.java index a2556e5df4..1828b63d10 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemHandTrackingMeshPropertiesMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemHandTrackingMeshPropertiesMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * System property for hand tracking mesh. * @@ -29,7 +29,7 @@ *
                                                                          *
                                                                        • The {@link MSFTHandTrackingMesh XR_MSFT_hand_tracking_mesh} extension must be enabled prior to using {@link XrSystemHandTrackingMeshPropertiesMSFT}
                                                                        • *
                                                                        • {@code type} must be {@link MSFTHandTrackingMesh#XR_TYPE_SYSTEM_HAND_TRACKING_MESH_PROPERTIES_MSFT TYPE_SYSTEM_HAND_TRACKING_MESH_PROPERTIES_MSFT}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        * *
                                                                        See Also
                                                                        @@ -46,8 +46,8 @@ * uint32_t {@link #maxHandMeshIndexCount}; * uint32_t {@link #maxHandMeshVertexCount}; * } - */ -public class XrSystemHandTrackingMeshPropertiesMSFT extends Struct implements NativeResource { + */ +public class XrSystemHandTrackingMeshPropertiesMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,30 +57,30 @@ public class XrSystemHandTrackingMeshPropertiesMSFT extends Struct implements NativeResource { @@ -316,29 +316,29 @@ protected Buffer self() { protected XrSystemHandTrackingMeshPropertiesMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemHandTrackingMeshPropertiesMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemHandTrackingMeshPropertiesMSFT.ntype(address()); } - /** @return the value of the {@link XrSystemHandTrackingMeshPropertiesMSFT#next} field. */ - @NativeType("void *") - public long next() { return XrSystemHandTrackingMeshPropertiesMSFT.nnext(address()); } - /** @return the value of the {@link XrSystemHandTrackingMeshPropertiesMSFT#supportsHandTrackingMesh} field. */ - @NativeType("XrBool32") - public boolean supportsHandTrackingMesh() { return XrSystemHandTrackingMeshPropertiesMSFT.nsupportsHandTrackingMesh(address()) != 0; } - /** @return the value of the {@link XrSystemHandTrackingMeshPropertiesMSFT#maxHandMeshIndexCount} field. */ - @NativeType("uint32_t") - public int maxHandMeshIndexCount() { return XrSystemHandTrackingMeshPropertiesMSFT.nmaxHandMeshIndexCount(address()); } - /** @return the value of the {@link XrSystemHandTrackingMeshPropertiesMSFT#maxHandMeshVertexCount} field. */ - @NativeType("uint32_t") - public int maxHandMeshVertexCount() { return XrSystemHandTrackingMeshPropertiesMSFT.nmaxHandMeshVertexCount(address()); } - - /** Sets the specified value to the {@link XrSystemHandTrackingMeshPropertiesMSFT#type} field. */ - public XrSystemHandTrackingMeshPropertiesMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSystemHandTrackingMeshPropertiesMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_SYSTEM_HAND_TRACKING_MESH_PROPERTIES_MSFT TYPE_SYSTEM_HAND_TRACKING_MESH_PROPERTIES_MSFT} value to the {@link XrSystemHandTrackingMeshPropertiesMSFT#type} field. */ - public XrSystemHandTrackingMeshPropertiesMSFT.Buffer type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_SYSTEM_HAND_TRACKING_MESH_PROPERTIES_MSFT); } - /** Sets the specified value to the {@link XrSystemHandTrackingMeshPropertiesMSFT#next} field. */ - public XrSystemHandTrackingMeshPropertiesMSFT.Buffer next(@NativeType("void *") long value) { XrSystemHandTrackingMeshPropertiesMSFT.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemHandTrackingMeshPropertiesMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemHandTrackingMeshPropertiesMSFT.ntype(address()); } + /** @return the value of the {@link XrSystemHandTrackingMeshPropertiesMSFT#next} field. */ + @NativeType("void *") + public long next() { return XrSystemHandTrackingMeshPropertiesMSFT.nnext(address()); } + /** @return the value of the {@link XrSystemHandTrackingMeshPropertiesMSFT#supportsHandTrackingMesh} field. */ + @NativeType("XrBool32") + public boolean supportsHandTrackingMesh() { return XrSystemHandTrackingMeshPropertiesMSFT.nsupportsHandTrackingMesh(address()) != 0; } + /** @return the value of the {@link XrSystemHandTrackingMeshPropertiesMSFT#maxHandMeshIndexCount} field. */ + @NativeType("uint32_t") + public int maxHandMeshIndexCount() { return XrSystemHandTrackingMeshPropertiesMSFT.nmaxHandMeshIndexCount(address()); } + /** @return the value of the {@link XrSystemHandTrackingMeshPropertiesMSFT#maxHandMeshVertexCount} field. */ + @NativeType("uint32_t") + public int maxHandMeshVertexCount() { return XrSystemHandTrackingMeshPropertiesMSFT.nmaxHandMeshVertexCount(address()); } + + /** Sets the specified value to the {@link XrSystemHandTrackingMeshPropertiesMSFT#type} field. */ + public XrSystemHandTrackingMeshPropertiesMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrSystemHandTrackingMeshPropertiesMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTHandTrackingMesh#XR_TYPE_SYSTEM_HAND_TRACKING_MESH_PROPERTIES_MSFT TYPE_SYSTEM_HAND_TRACKING_MESH_PROPERTIES_MSFT} value to the {@link XrSystemHandTrackingMeshPropertiesMSFT#type} field. */ + public XrSystemHandTrackingMeshPropertiesMSFT.Buffer type$Default() { return type(MSFTHandTrackingMesh.XR_TYPE_SYSTEM_HAND_TRACKING_MESH_PROPERTIES_MSFT); } + /** Sets the specified value to the {@link XrSystemHandTrackingMeshPropertiesMSFT#next} field. */ + public XrSystemHandTrackingMeshPropertiesMSFT.Buffer next(@NativeType("void *") long value) { XrSystemHandTrackingMeshPropertiesMSFT.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemHandTrackingPropertiesEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemHandTrackingPropertiesEXT.java index 6c8556992c..8d72a94b5f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemHandTrackingPropertiesEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemHandTrackingPropertiesEXT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * System property for hand tracking. * @@ -23,7 +23,7 @@ *
                                                                          *
                                                                        • The {@link EXTHandTracking XR_EXT_hand_tracking} extension must be enabled prior to using {@link XrSystemHandTrackingPropertiesEXT}
                                                                        • *
                                                                        • {@code type} must be {@link EXTHandTracking#XR_TYPE_SYSTEM_HAND_TRACKING_PROPERTIES_EXT TYPE_SYSTEM_HAND_TRACKING_PROPERTIES_EXT}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        * *

                                                                        If a runtime returns {@link XR10#XR_FALSE FALSE} for {@code supportsHandTracking}, the runtime must return {@link XR10#XR_ERROR_FEATURE_UNSUPPORTED ERROR_FEATURE_UNSUPPORTED} from {@link EXTHandTracking#xrCreateHandTrackerEXT CreateHandTrackerEXT}.

                                                                        @@ -36,8 +36,8 @@ * void * {@link #next}; * XrBool32 {@link #supportsHandTracking}; * } - */ -public class XrSystemHandTrackingPropertiesEXT extends Struct implements NativeResource { + */ +public class XrSystemHandTrackingPropertiesEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -47,24 +47,24 @@ public class XrSystemHandTrackingPropertiesEXT extends Struct implements NativeResource { @@ -290,23 +290,23 @@ protected Buffer self() { protected XrSystemHandTrackingPropertiesEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemHandTrackingPropertiesEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemHandTrackingPropertiesEXT.ntype(address()); } - /** @return the value of the {@link XrSystemHandTrackingPropertiesEXT#next} field. */ - @NativeType("void *") - public long next() { return XrSystemHandTrackingPropertiesEXT.nnext(address()); } - /** @return the value of the {@link XrSystemHandTrackingPropertiesEXT#supportsHandTracking} field. */ - @NativeType("XrBool32") - public boolean supportsHandTracking() { return XrSystemHandTrackingPropertiesEXT.nsupportsHandTracking(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemHandTrackingPropertiesEXT#type} field. */ - public XrSystemHandTrackingPropertiesEXT.Buffer type(@NativeType("XrStructureType") int value) { XrSystemHandTrackingPropertiesEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTHandTracking#XR_TYPE_SYSTEM_HAND_TRACKING_PROPERTIES_EXT TYPE_SYSTEM_HAND_TRACKING_PROPERTIES_EXT} value to the {@link XrSystemHandTrackingPropertiesEXT#type} field. */ - public XrSystemHandTrackingPropertiesEXT.Buffer type$Default() { return type(EXTHandTracking.XR_TYPE_SYSTEM_HAND_TRACKING_PROPERTIES_EXT); } - /** Sets the specified value to the {@link XrSystemHandTrackingPropertiesEXT#next} field. */ - public XrSystemHandTrackingPropertiesEXT.Buffer next(@NativeType("void *") long value) { XrSystemHandTrackingPropertiesEXT.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemHandTrackingPropertiesEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemHandTrackingPropertiesEXT.ntype(address()); } + /** @return the value of the {@link XrSystemHandTrackingPropertiesEXT#next} field. */ + @NativeType("void *") + public long next() { return XrSystemHandTrackingPropertiesEXT.nnext(address()); } + /** @return the value of the {@link XrSystemHandTrackingPropertiesEXT#supportsHandTracking} field. */ + @NativeType("XrBool32") + public boolean supportsHandTracking() { return XrSystemHandTrackingPropertiesEXT.nsupportsHandTracking(address()) != 0; } + + /** Sets the specified value to the {@link XrSystemHandTrackingPropertiesEXT#type} field. */ + public XrSystemHandTrackingPropertiesEXT.Buffer type(@NativeType("XrStructureType") int value) { XrSystemHandTrackingPropertiesEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTHandTracking#XR_TYPE_SYSTEM_HAND_TRACKING_PROPERTIES_EXT TYPE_SYSTEM_HAND_TRACKING_PROPERTIES_EXT} value to the {@link XrSystemHandTrackingPropertiesEXT#type} field. */ + public XrSystemHandTrackingPropertiesEXT.Buffer type$Default() { return type(EXTHandTracking.XR_TYPE_SYSTEM_HAND_TRACKING_PROPERTIES_EXT); } + /** Sets the specified value to the {@link XrSystemHandTrackingPropertiesEXT#next} field. */ + public XrSystemHandTrackingPropertiesEXT.Buffer next(@NativeType("void *") long value) { XrSystemHandTrackingPropertiesEXT.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemHeadsetIdPropertiesMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemHeadsetIdPropertiesMETA.java index 141d60398d..b319a11a97 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemHeadsetIdPropertiesMETA.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemHeadsetIdPropertiesMETA.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * get headset model id from xrGetSystemProperties. * @@ -30,14 +30,14 @@ * *

                                                                        This is in contrast to the {@code systemName} field in {@link XrSystemProperties} which is not required to be consistent across product renames.

                                                                        * - *

                                                                        This is intended to be a temporary feature that will be deprecated along with its extension as soon as motivating use cases are resolved in a better way. See the disclaimer at the start of the {@link METAHeadsetId XR_META_headset_id} extension documentation for more details.

                                                                        + *

                                                                        This is intended to be a temporary feature that will be deprecated along with its extension as soon as motivating use cases are resolved in a better way. See the disclaimer at the start of the XR_META_headset_id extension documentation for more details.

                                                                        * *
                                                                        Valid Usage (Implicit)
                                                                        * *
                                                                          *
                                                                        • The {@link METAHeadsetId XR_META_headset_id} extension must be enabled prior to using {@link XrSystemHeadsetIdPropertiesMETA}
                                                                        • *
                                                                        • {@code type} must be {@link METAHeadsetId#XR_TYPE_SYSTEM_HEADSET_ID_PROPERTIES_META TYPE_SYSTEM_HEADSET_ID_PROPERTIES_META}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        * *
                                                                        See Also
                                                                        @@ -52,8 +52,8 @@ * void * {@link #next}; * {@link XrUuidEXT XrUuidEXT} {@link #id}; * } - */ -public class XrSystemHeadsetIdPropertiesMETA extends Struct implements NativeResource { + */ +public class XrSystemHeadsetIdPropertiesMETA extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -63,24 +63,24 @@ public class XrSystemHeadsetIdPropertiesMETA extends Struct implements NativeResource { @@ -305,22 +305,22 @@ protected Buffer self() { protected XrSystemHeadsetIdPropertiesMETA getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemHeadsetIdPropertiesMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemHeadsetIdPropertiesMETA.ntype(address()); } - /** @return the value of the {@link XrSystemHeadsetIdPropertiesMETA#next} field. */ - @NativeType("void *") - public long next() { return XrSystemHeadsetIdPropertiesMETA.nnext(address()); } - /** @return a {@link XrUuidEXT} view of the {@link XrSystemHeadsetIdPropertiesMETA#id} field. */ - public XrUuidEXT id() { return XrSystemHeadsetIdPropertiesMETA.nid(address()); } - - /** Sets the specified value to the {@link XrSystemHeadsetIdPropertiesMETA#type} field. */ - public XrSystemHeadsetIdPropertiesMETA.Buffer type(@NativeType("XrStructureType") int value) { XrSystemHeadsetIdPropertiesMETA.ntype(address(), value); return this; } - /** Sets the {@link METAHeadsetId#XR_TYPE_SYSTEM_HEADSET_ID_PROPERTIES_META TYPE_SYSTEM_HEADSET_ID_PROPERTIES_META} value to the {@link XrSystemHeadsetIdPropertiesMETA#type} field. */ - public XrSystemHeadsetIdPropertiesMETA.Buffer type$Default() { return type(METAHeadsetId.XR_TYPE_SYSTEM_HEADSET_ID_PROPERTIES_META); } - /** Sets the specified value to the {@link XrSystemHeadsetIdPropertiesMETA#next} field. */ - public XrSystemHeadsetIdPropertiesMETA.Buffer next(@NativeType("void *") long value) { XrSystemHeadsetIdPropertiesMETA.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemHeadsetIdPropertiesMETA#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemHeadsetIdPropertiesMETA.ntype(address()); } + /** @return the value of the {@link XrSystemHeadsetIdPropertiesMETA#next} field. */ + @NativeType("void *") + public long next() { return XrSystemHeadsetIdPropertiesMETA.nnext(address()); } + /** @return a {@link XrUuidEXT} view of the {@link XrSystemHeadsetIdPropertiesMETA#id} field. */ + public XrUuidEXT id() { return XrSystemHeadsetIdPropertiesMETA.nid(address()); } + + /** Sets the specified value to the {@link XrSystemHeadsetIdPropertiesMETA#type} field. */ + public XrSystemHeadsetIdPropertiesMETA.Buffer type(@NativeType("XrStructureType") int value) { XrSystemHeadsetIdPropertiesMETA.ntype(address(), value); return this; } + /** Sets the {@link METAHeadsetId#XR_TYPE_SYSTEM_HEADSET_ID_PROPERTIES_META TYPE_SYSTEM_HEADSET_ID_PROPERTIES_META} value to the {@link XrSystemHeadsetIdPropertiesMETA#type} field. */ + public XrSystemHeadsetIdPropertiesMETA.Buffer type$Default() { return type(METAHeadsetId.XR_TYPE_SYSTEM_HEADSET_ID_PROPERTIES_META); } + /** Sets the specified value to the {@link XrSystemHeadsetIdPropertiesMETA#next} field. */ + public XrSystemHeadsetIdPropertiesMETA.Buffer next(@NativeType("void *") long value) { XrSystemHeadsetIdPropertiesMETA.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemKeyboardTrackingPropertiesFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemKeyboardTrackingPropertiesFB.java index 1bf76fa496..7e58172148 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemKeyboardTrackingPropertiesFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemKeyboardTrackingPropertiesFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Information from the system about tracked keyboard support. * @@ -27,7 +27,7 @@ *
                                                                          *
                                                                        • The {@link FBKeyboardTracking XR_FB_keyboard_tracking} extension must be enabled prior to using {@link XrSystemKeyboardTrackingPropertiesFB}
                                                                        • *
                                                                        • {@code type} must be {@link FBKeyboardTracking#XR_TYPE_SYSTEM_KEYBOARD_TRACKING_PROPERTIES_FB TYPE_SYSTEM_KEYBOARD_TRACKING_PROPERTIES_FB}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        * *
                                                                        See Also
                                                                        @@ -42,8 +42,8 @@ * void * {@link #next}; * XrBool32 {@link #supportsKeyboardTracking}; * } - */ -public class XrSystemKeyboardTrackingPropertiesFB extends Struct implements NativeResource { + */ +public class XrSystemKeyboardTrackingPropertiesFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,24 +53,24 @@ public class XrSystemKeyboardTrackingPropertiesFB extends Struct implements NativeResource { @@ -296,23 +296,23 @@ protected Buffer self() { protected XrSystemKeyboardTrackingPropertiesFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemKeyboardTrackingPropertiesFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemKeyboardTrackingPropertiesFB.ntype(address()); } - /** @return the value of the {@link XrSystemKeyboardTrackingPropertiesFB#next} field. */ - @NativeType("void *") - public long next() { return XrSystemKeyboardTrackingPropertiesFB.nnext(address()); } - /** @return the value of the {@link XrSystemKeyboardTrackingPropertiesFB#supportsKeyboardTracking} field. */ - @NativeType("XrBool32") - public boolean supportsKeyboardTracking() { return XrSystemKeyboardTrackingPropertiesFB.nsupportsKeyboardTracking(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemKeyboardTrackingPropertiesFB#type} field. */ - public XrSystemKeyboardTrackingPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemKeyboardTrackingPropertiesFB.ntype(address(), value); return this; } - /** Sets the {@link FBKeyboardTracking#XR_TYPE_SYSTEM_KEYBOARD_TRACKING_PROPERTIES_FB TYPE_SYSTEM_KEYBOARD_TRACKING_PROPERTIES_FB} value to the {@link XrSystemKeyboardTrackingPropertiesFB#type} field. */ - public XrSystemKeyboardTrackingPropertiesFB.Buffer type$Default() { return type(FBKeyboardTracking.XR_TYPE_SYSTEM_KEYBOARD_TRACKING_PROPERTIES_FB); } - /** Sets the specified value to the {@link XrSystemKeyboardTrackingPropertiesFB#next} field. */ - public XrSystemKeyboardTrackingPropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemKeyboardTrackingPropertiesFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemKeyboardTrackingPropertiesFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemKeyboardTrackingPropertiesFB.ntype(address()); } + /** @return the value of the {@link XrSystemKeyboardTrackingPropertiesFB#next} field. */ + @NativeType("void *") + public long next() { return XrSystemKeyboardTrackingPropertiesFB.nnext(address()); } + /** @return the value of the {@link XrSystemKeyboardTrackingPropertiesFB#supportsKeyboardTracking} field. */ + @NativeType("XrBool32") + public boolean supportsKeyboardTracking() { return XrSystemKeyboardTrackingPropertiesFB.nsupportsKeyboardTracking(address()) != 0; } + + /** Sets the specified value to the {@link XrSystemKeyboardTrackingPropertiesFB#type} field. */ + public XrSystemKeyboardTrackingPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemKeyboardTrackingPropertiesFB.ntype(address(), value); return this; } + /** Sets the {@link FBKeyboardTracking#XR_TYPE_SYSTEM_KEYBOARD_TRACKING_PROPERTIES_FB TYPE_SYSTEM_KEYBOARD_TRACKING_PROPERTIES_FB} value to the {@link XrSystemKeyboardTrackingPropertiesFB#type} field. */ + public XrSystemKeyboardTrackingPropertiesFB.Buffer type$Default() { return type(FBKeyboardTracking.XR_TYPE_SYSTEM_KEYBOARD_TRACKING_PROPERTIES_FB); } + /** Sets the specified value to the {@link XrSystemKeyboardTrackingPropertiesFB#next} field. */ + public XrSystemKeyboardTrackingPropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemKeyboardTrackingPropertiesFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemMarkerTrackingPropertiesVARJO.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemMarkerTrackingPropertiesVARJO.java index c4eaae71a4..d489b42dae 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemMarkerTrackingPropertiesVARJO.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemMarkerTrackingPropertiesVARJO.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * System property for marker tracking. * @@ -29,7 +29,7 @@ *
                                                                          *
                                                                        • The {@link VARJOMarkerTracking XR_VARJO_marker_tracking} extension must be enabled prior to using {@link XrSystemMarkerTrackingPropertiesVARJO}
                                                                        • *
                                                                        • {@code type} must be {@link VARJOMarkerTracking#XR_TYPE_SYSTEM_MARKER_TRACKING_PROPERTIES_VARJO TYPE_SYSTEM_MARKER_TRACKING_PROPERTIES_VARJO}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        * *
                                                                        See Also
                                                                        @@ -44,8 +44,8 @@ * void * {@link #next}; * XrBool32 {@link #supportsMarkerTracking}; * } - */ -public class XrSystemMarkerTrackingPropertiesVARJO extends Struct implements NativeResource { + */ +public class XrSystemMarkerTrackingPropertiesVARJO extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,24 +55,24 @@ public class XrSystemMarkerTrackingPropertiesVARJO extends Struct implements NativeResource { @@ -298,23 +298,23 @@ protected Buffer self() { protected XrSystemMarkerTrackingPropertiesVARJO getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemMarkerTrackingPropertiesVARJO#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemMarkerTrackingPropertiesVARJO.ntype(address()); } - /** @return the value of the {@link XrSystemMarkerTrackingPropertiesVARJO#next} field. */ - @NativeType("void *") - public long next() { return XrSystemMarkerTrackingPropertiesVARJO.nnext(address()); } - /** @return the value of the {@link XrSystemMarkerTrackingPropertiesVARJO#supportsMarkerTracking} field. */ - @NativeType("XrBool32") - public boolean supportsMarkerTracking() { return XrSystemMarkerTrackingPropertiesVARJO.nsupportsMarkerTracking(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemMarkerTrackingPropertiesVARJO#type} field. */ - public XrSystemMarkerTrackingPropertiesVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrSystemMarkerTrackingPropertiesVARJO.ntype(address(), value); return this; } - /** Sets the {@link VARJOMarkerTracking#XR_TYPE_SYSTEM_MARKER_TRACKING_PROPERTIES_VARJO TYPE_SYSTEM_MARKER_TRACKING_PROPERTIES_VARJO} value to the {@link XrSystemMarkerTrackingPropertiesVARJO#type} field. */ - public XrSystemMarkerTrackingPropertiesVARJO.Buffer type$Default() { return type(VARJOMarkerTracking.XR_TYPE_SYSTEM_MARKER_TRACKING_PROPERTIES_VARJO); } - /** Sets the specified value to the {@link XrSystemMarkerTrackingPropertiesVARJO#next} field. */ - public XrSystemMarkerTrackingPropertiesVARJO.Buffer next(@NativeType("void *") long value) { XrSystemMarkerTrackingPropertiesVARJO.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemMarkerTrackingPropertiesVARJO#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemMarkerTrackingPropertiesVARJO.ntype(address()); } + /** @return the value of the {@link XrSystemMarkerTrackingPropertiesVARJO#next} field. */ + @NativeType("void *") + public long next() { return XrSystemMarkerTrackingPropertiesVARJO.nnext(address()); } + /** @return the value of the {@link XrSystemMarkerTrackingPropertiesVARJO#supportsMarkerTracking} field. */ + @NativeType("XrBool32") + public boolean supportsMarkerTracking() { return XrSystemMarkerTrackingPropertiesVARJO.nsupportsMarkerTracking(address()) != 0; } + + /** Sets the specified value to the {@link XrSystemMarkerTrackingPropertiesVARJO#type} field. */ + public XrSystemMarkerTrackingPropertiesVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrSystemMarkerTrackingPropertiesVARJO.ntype(address(), value); return this; } + /** Sets the {@link VARJOMarkerTracking#XR_TYPE_SYSTEM_MARKER_TRACKING_PROPERTIES_VARJO TYPE_SYSTEM_MARKER_TRACKING_PROPERTIES_VARJO} value to the {@link XrSystemMarkerTrackingPropertiesVARJO#type} field. */ + public XrSystemMarkerTrackingPropertiesVARJO.Buffer type$Default() { return type(VARJOMarkerTracking.XR_TYPE_SYSTEM_MARKER_TRACKING_PROPERTIES_VARJO); } + /** Sets the specified value to the {@link XrSystemMarkerTrackingPropertiesVARJO#next} field. */ + public XrSystemMarkerTrackingPropertiesVARJO.Buffer next(@NativeType("void *") long value) { XrSystemMarkerTrackingPropertiesVARJO.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemPassthroughProperties2FB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemPassthroughProperties2FB.java index 4c616d4e17..17ad1d377a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemPassthroughProperties2FB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemPassthroughProperties2FB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Passthrough system properties. * @@ -31,7 +31,7 @@ *
                                                                          *
                                                                        • The {@link FBPassthrough XR_FB_passthrough} extension must be enabled prior to using {@link XrSystemPassthroughProperties2FB}
                                                                        • *
                                                                        • {@code type} must be {@link FBPassthrough#XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FB TYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FB}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        * *

                                                                        Layout

                                                                        @@ -42,8 +42,8 @@ * void const * next; * XrPassthroughCapabilityFlagsFB capabilities; * } - */ -public class XrSystemPassthroughProperties2FB extends Struct implements NativeResource { + */ +public class XrSystemPassthroughProperties2FB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,24 +53,24 @@ public class XrSystemPassthroughProperties2FB extends Struct implements NativeResource { @@ -296,23 +296,23 @@ protected Buffer self() { protected XrSystemPassthroughProperties2FB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemPassthroughProperties2FB.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrSystemPassthroughProperties2FB.nnext(address()); } - /** @return the value of the {@code capabilities} field. */ - @NativeType("XrPassthroughCapabilityFlagsFB") - public long capabilities() { return XrSystemPassthroughProperties2FB.ncapabilities(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrSystemPassthroughProperties2FB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemPassthroughProperties2FB.ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FB TYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FB} value to the {@code type} field. */ - public XrSystemPassthroughProperties2FB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FB); } - /** Sets the specified value to the {@code next} field. */ - public XrSystemPassthroughProperties2FB.Buffer next(@NativeType("void const *") long value) { XrSystemPassthroughProperties2FB.nnext(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemPassthroughProperties2FB.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrSystemPassthroughProperties2FB.nnext(address()); } + /** @return the value of the {@code capabilities} field. */ + @NativeType("XrPassthroughCapabilityFlagsFB") + public long capabilities() { return XrSystemPassthroughProperties2FB.ncapabilities(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrSystemPassthroughProperties2FB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemPassthroughProperties2FB.ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FB TYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FB} value to the {@code type} field. */ + public XrSystemPassthroughProperties2FB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES2_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrSystemPassthroughProperties2FB.Buffer next(@NativeType("void const *") long value) { XrSystemPassthroughProperties2FB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemPassthroughPropertiesFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemPassthroughPropertiesFB.java index e2ff492ab1..f9de89f278 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemPassthroughPropertiesFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemPassthroughPropertiesFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * A passthrough system property. * @@ -31,7 +31,7 @@ *
                                                                          *
                                                                        • The {@link FBPassthrough XR_FB_passthrough} extension must be enabled prior to using {@link XrSystemPassthroughPropertiesFB}
                                                                        • *
                                                                        • {@code type} must be {@link FBPassthrough#XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FB TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FB}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        * *

                                                                        Layout

                                                                        @@ -42,8 +42,8 @@ * void const * next; * XrBool32 supportsPassthrough; * } - */ -public class XrSystemPassthroughPropertiesFB extends Struct implements NativeResource { + */ +public class XrSystemPassthroughPropertiesFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,24 +53,24 @@ public class XrSystemPassthroughPropertiesFB extends Struct implements NativeResource { @@ -296,23 +296,23 @@ protected Buffer self() { protected XrSystemPassthroughPropertiesFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemPassthroughPropertiesFB.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrSystemPassthroughPropertiesFB.nnext(address()); } - /** @return the value of the {@code supportsPassthrough} field. */ - @NativeType("XrBool32") - public boolean supportsPassthrough() { return XrSystemPassthroughPropertiesFB.nsupportsPassthrough(address()) != 0; } - - /** Sets the specified value to the {@code type} field. */ - public XrSystemPassthroughPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemPassthroughPropertiesFB.ntype(address(), value); return this; } - /** Sets the {@link FBPassthrough#XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FB TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FB} value to the {@code type} field. */ - public XrSystemPassthroughPropertiesFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FB); } - /** Sets the specified value to the {@code next} field. */ - public XrSystemPassthroughPropertiesFB.Buffer next(@NativeType("void const *") long value) { XrSystemPassthroughPropertiesFB.nnext(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemPassthroughPropertiesFB.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrSystemPassthroughPropertiesFB.nnext(address()); } + /** @return the value of the {@code supportsPassthrough} field. */ + @NativeType("XrBool32") + public boolean supportsPassthrough() { return XrSystemPassthroughPropertiesFB.nsupportsPassthrough(address()) != 0; } + + /** Sets the specified value to the {@code type} field. */ + public XrSystemPassthroughPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemPassthroughPropertiesFB.ntype(address(), value); return this; } + /** Sets the {@link FBPassthrough#XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FB TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FB} value to the {@code type} field. */ + public XrSystemPassthroughPropertiesFB.Buffer type$Default() { return type(FBPassthrough.XR_TYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrSystemPassthroughPropertiesFB.Buffer next(@NativeType("void const *") long value) { XrSystemPassthroughPropertiesFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemProperties.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemProperties.java index c42957d117..a547a6a976 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemProperties.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemProperties.java @@ -4,19 +4,19 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import static org.lwjgl.openxr.XR10.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.XR10.*; + /** * Properties of a particular system. * @@ -24,7 +24,7 @@ * *
                                                                          *
                                                                        • {@code type} must be {@link XR10#XR_TYPE_SYSTEM_PROPERTIES TYPE_SYSTEM_PROPERTIES}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrRenderModelCapabilitiesRequestFB}, {@link XrSystemBodyTrackingPropertiesFB}, {@link XrSystemColorSpacePropertiesFB}, {@link XrSystemEyeGazeInteractionPropertiesEXT}, {@link XrSystemEyeTrackingPropertiesFB}, {@link XrSystemFaceTrackingPropertiesFB}, {@link XrSystemFacialTrackingPropertiesHTC}, {@link XrSystemForceFeedbackCurlPropertiesMNDX}, {@link XrSystemFoveatedRenderingPropertiesVARJO}, {@link XrSystemFoveationEyeTrackedPropertiesMETA}, {@link XrSystemHandTrackingMeshPropertiesMSFT}, {@link XrSystemHandTrackingPropertiesEXT}, {@link XrSystemHeadsetIdPropertiesMETA}, {@link XrSystemKeyboardTrackingPropertiesFB}, {@link XrSystemMarkerTrackingPropertiesVARJO}, {@link XrSystemPassthroughColorLutPropertiesMETA}, {@link XrSystemPassthroughProperties2FB}, {@link XrSystemPassthroughPropertiesFB}, {@link XrSystemPlaneDetectionPropertiesEXT}, {@link XrSystemRenderModelPropertiesFB}, {@link XrSystemSpaceWarpPropertiesFB}, {@link XrSystemSpatialEntityPropertiesFB}, {@link XrSystemVirtualKeyboardPropertiesMETA}
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrRenderModelCapabilitiesRequestFB}, {@link XrSystemBodyTrackingPropertiesFB}, {@link XrSystemColorSpacePropertiesFB}, {@link XrSystemEyeGazeInteractionPropertiesEXT}, {@link XrSystemEyeTrackingPropertiesFB}, {@link XrSystemFaceTrackingPropertiesFB}, {@link XrSystemFacialTrackingPropertiesHTC}, {@link XrSystemForceFeedbackCurlPropertiesMNDX}, {@link XrSystemFoveatedRenderingPropertiesVARJO}, {@link XrSystemFoveationEyeTrackedPropertiesMETA}, {@link XrSystemHandTrackingMeshPropertiesMSFT}, {@link XrSystemHandTrackingPropertiesEXT}, {@link XrSystemHeadsetIdPropertiesMETA}, {@link XrSystemKeyboardTrackingPropertiesFB}, {@link XrSystemMarkerTrackingPropertiesVARJO}, {@link XrSystemPassthroughProperties2FB}, {@link XrSystemPassthroughPropertiesFB}, {@link XrSystemRenderModelPropertiesFB}, {@link XrSystemSpaceWarpPropertiesFB}, {@link XrSystemSpatialEntityPropertiesFB}
                                                                        • *
                                                                        * *
                                                                        See Also
                                                                        @@ -43,8 +43,8 @@ * {@link XrSystemGraphicsProperties XrSystemGraphicsProperties} {@link #graphicsProperties}; * {@link XrSystemTrackingProperties XrSystemTrackingProperties} {@link #trackingProperties}; * } - */ -public class XrSystemProperties extends Struct implements NativeResource { + */ +public class XrSystemProperties extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,36 +54,36 @@ public class XrSystemProperties extends Struct implements Na /** The struct member offsets. */ public static final int - TYPE, - NEXT, - SYSTEMID, - VENDORID, - SYSTEMNAME, - GRAPHICSPROPERTIES, - TRACKINGPROPERTIES; + TYPE, + NEXT, + SYSTEMID, + VENDORID, + SYSTEMNAME, + GRAPHICSPROPERTIES, + TRACKINGPROPERTIES; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), - __member(4), - __array(1, XR_MAX_SYSTEM_NAME_SIZE), - __member(XrSystemGraphicsProperties.SIZEOF, XrSystemGraphicsProperties.ALIGNOF), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), + __member(4), + __array(1, XR_MAX_SYSTEM_NAME_SIZE), + __member(XrSystemGraphicsProperties.SIZEOF, XrSystemGraphicsProperties.ALIGNOF), __member(XrSystemTrackingProperties.SIZEOF, XrSystemTrackingProperties.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - SYSTEMID = layout.offsetof(2); - VENDORID = layout.offsetof(3); - SYSTEMNAME = layout.offsetof(4); - GRAPHICSPROPERTIES = layout.offsetof(5); - TRACKINGPROPERTIES = layout.offsetof(6); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + SYSTEMID = layout.offsetof(2); + VENDORID = layout.offsetof(3); + SYSTEMNAME = layout.offsetof(4); + GRAPHICSPROPERTIES = layout.offsetof(5); + TRACKINGPROPERTIES = layout.offsetof(6); + } protected XrSystemProperties(long address, @Nullable ByteBuffer container) { super(address, container); @@ -106,90 +106,84 @@ public XrSystemProperties(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** the {@code XrSystemId} identifying the system. */ - @NativeType("XrSystemId") - public long systemId() { return nsystemId(address()); } - /** a unique identifier for the vendor of the system. */ - @NativeType("uint32_t") - public int vendorId() { return nvendorId(address()); } - /** a string containing the name of the system. */ - @NativeType("char[XR_MAX_SYSTEM_NAME_SIZE]") - public ByteBuffer systemName() { return nsystemName(address()); } - /** a string containing the name of the system. */ - @NativeType("char[XR_MAX_SYSTEM_NAME_SIZE]") - public String systemNameString() { return nsystemNameString(address()); } - /** an {@link XrSystemGraphicsProperties} structure specifying the system graphics properties. */ - public XrSystemGraphicsProperties graphicsProperties() { return ngraphicsProperties(address()); } - /** an {@link XrSystemTrackingProperties} structure specifying system tracking properties. */ - public XrSystemTrackingProperties trackingProperties() { return ntrackingProperties(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrSystemProperties type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SYSTEM_PROPERTIES TYPE_SYSTEM_PROPERTIES} value to the {@link #type} field. */ - public XrSystemProperties type$Default() { return type(XR10.XR_TYPE_SYSTEM_PROPERTIES); } - /** Sets the specified value to the {@link #next} field. */ - public XrSystemProperties next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrRenderModelCapabilitiesRequestFB} value to the {@code next} chain. */ - public XrSystemProperties next(XrRenderModelCapabilitiesRequestFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemBodyTrackingPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemBodyTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemColorSpacePropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemColorSpacePropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemEyeGazeInteractionPropertiesEXT} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemEyeGazeInteractionPropertiesEXT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemEyeTrackingPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemEyeTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemFaceTrackingPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemFaceTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemFacialTrackingPropertiesHTC} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemFacialTrackingPropertiesHTC value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemForceFeedbackCurlPropertiesMNDX} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemForceFeedbackCurlPropertiesMNDX value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemFoveatedRenderingPropertiesVARJO} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemFoveatedRenderingPropertiesVARJO value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemFoveationEyeTrackedPropertiesMETA} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemFoveationEyeTrackedPropertiesMETA value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemHandTrackingMeshPropertiesMSFT} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemHandTrackingMeshPropertiesMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemHandTrackingPropertiesEXT} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemHandTrackingPropertiesEXT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemHeadsetIdPropertiesMETA} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemHeadsetIdPropertiesMETA value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemKeyboardTrackingPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemKeyboardTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemMarkerTrackingPropertiesVARJO} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemMarkerTrackingPropertiesVARJO value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemPassthroughColorLutPropertiesMETA} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemPassthroughColorLutPropertiesMETA value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemPassthroughProperties2FB} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemPassthroughProperties2FB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemPassthroughPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemPassthroughPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemPlaneDetectionPropertiesEXT} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemPlaneDetectionPropertiesEXT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemRenderModelPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemRenderModelPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemSpaceWarpPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemSpaceWarpPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemSpatialEntityPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemSpatialEntityPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemVirtualKeyboardPropertiesMETA} value to the {@code next} chain. */ - public XrSystemProperties next(XrSystemVirtualKeyboardPropertiesMETA value) { return this.next(value.next(this.next()).address()); } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the {@code XrSystemId} identifying the system. */ + @NativeType("XrSystemId") + public long systemId() { return nsystemId(address()); } + /** a unique identifier for the vendor of the system. */ + @NativeType("uint32_t") + public int vendorId() { return nvendorId(address()); } + /** a string containing the name of the system. */ + @NativeType("char[XR_MAX_SYSTEM_NAME_SIZE]") + public ByteBuffer systemName() { return nsystemName(address()); } + /** a string containing the name of the system. */ + @NativeType("char[XR_MAX_SYSTEM_NAME_SIZE]") + public String systemNameString() { return nsystemNameString(address()); } + /** an {@link XrSystemGraphicsProperties} structure specifying the system graphics properties. */ + public XrSystemGraphicsProperties graphicsProperties() { return ngraphicsProperties(address()); } + /** an {@link XrSystemTrackingProperties} structure specifying system tracking properties. */ + public XrSystemTrackingProperties trackingProperties() { return ntrackingProperties(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrSystemProperties type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SYSTEM_PROPERTIES TYPE_SYSTEM_PROPERTIES} value to the {@link #type} field. */ + public XrSystemProperties type$Default() { return type(XR10.XR_TYPE_SYSTEM_PROPERTIES); } + /** Sets the specified value to the {@link #next} field. */ + public XrSystemProperties next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrRenderModelCapabilitiesRequestFB} value to the {@code next} chain. */ + public XrSystemProperties next(XrRenderModelCapabilitiesRequestFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemBodyTrackingPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemBodyTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemColorSpacePropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemColorSpacePropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemEyeGazeInteractionPropertiesEXT} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemEyeGazeInteractionPropertiesEXT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemEyeTrackingPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemEyeTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemFaceTrackingPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemFaceTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemFacialTrackingPropertiesHTC} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemFacialTrackingPropertiesHTC value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemForceFeedbackCurlPropertiesMNDX} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemForceFeedbackCurlPropertiesMNDX value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemFoveatedRenderingPropertiesVARJO} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemFoveatedRenderingPropertiesVARJO value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemFoveationEyeTrackedPropertiesMETA} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemFoveationEyeTrackedPropertiesMETA value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemHandTrackingMeshPropertiesMSFT} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemHandTrackingMeshPropertiesMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemHandTrackingPropertiesEXT} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemHandTrackingPropertiesEXT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemHeadsetIdPropertiesMETA} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemHeadsetIdPropertiesMETA value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemKeyboardTrackingPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemKeyboardTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemMarkerTrackingPropertiesVARJO} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemMarkerTrackingPropertiesVARJO value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemPassthroughProperties2FB} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemPassthroughProperties2FB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemPassthroughPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemPassthroughPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemRenderModelPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemRenderModelPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemSpaceWarpPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemSpaceWarpPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemSpatialEntityPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties next(XrSystemSpatialEntityPropertiesFB value) { return this.next(value.next(this.next()).address()); } /** Initializes this struct with the specified values. */ public XrSystemProperties set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -318,30 +312,30 @@ public static XrSystemProperties.Buffer calloc(int capacity, MemoryStack stack) } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSystemProperties.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrSystemProperties.NEXT); } - /** Unsafe version of {@link #systemId}. */ - public static long nsystemId(long struct) { return UNSAFE.getLong(null, struct + XrSystemProperties.SYSTEMID); } - /** Unsafe version of {@link #vendorId}. */ - public static int nvendorId(long struct) { return UNSAFE.getInt(null, struct + XrSystemProperties.VENDORID); } - /** Unsafe version of {@link #systemName}. */ - public static ByteBuffer nsystemName(long struct) { return memByteBuffer(struct + XrSystemProperties.SYSTEMNAME, XR_MAX_SYSTEM_NAME_SIZE); } - /** Unsafe version of {@link #systemNameString}. */ - public static String nsystemNameString(long struct) { return memUTF8(struct + XrSystemProperties.SYSTEMNAME); } - /** Unsafe version of {@link #graphicsProperties}. */ - public static XrSystemGraphicsProperties ngraphicsProperties(long struct) { return XrSystemGraphicsProperties.create(struct + XrSystemProperties.GRAPHICSPROPERTIES); } - /** Unsafe version of {@link #trackingProperties}. */ - public static XrSystemTrackingProperties ntrackingProperties(long struct) { return XrSystemTrackingProperties.create(struct + XrSystemProperties.TRACKINGPROPERTIES); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemProperties.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrSystemProperties.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrSystemProperties.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrSystemProperties.NEXT); } + /** Unsafe version of {@link #systemId}. */ + public static long nsystemId(long struct) { return UNSAFE.getLong(null, struct + XrSystemProperties.SYSTEMID); } + /** Unsafe version of {@link #vendorId}. */ + public static int nvendorId(long struct) { return UNSAFE.getInt(null, struct + XrSystemProperties.VENDORID); } + /** Unsafe version of {@link #systemName}. */ + public static ByteBuffer nsystemName(long struct) { return memByteBuffer(struct + XrSystemProperties.SYSTEMNAME, XR_MAX_SYSTEM_NAME_SIZE); } + /** Unsafe version of {@link #systemNameString}. */ + public static String nsystemNameString(long struct) { return memUTF8(struct + XrSystemProperties.SYSTEMNAME); } + /** Unsafe version of {@link #graphicsProperties}. */ + public static XrSystemGraphicsProperties ngraphicsProperties(long struct) { return XrSystemGraphicsProperties.create(struct + XrSystemProperties.GRAPHICSPROPERTIES); } + /** Unsafe version of {@link #trackingProperties}. */ + public static XrSystemTrackingProperties ntrackingProperties(long struct) { return XrSystemTrackingProperties.create(struct + XrSystemProperties.TRACKINGPROPERTIES); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrSystemProperties.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrSystemProperties.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrSystemProperties} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -378,82 +372,76 @@ protected Buffer self() { protected XrSystemProperties getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemProperties#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemProperties.ntype(address()); } - /** @return the value of the {@link XrSystemProperties#next} field. */ - @NativeType("void *") - public long next() { return XrSystemProperties.nnext(address()); } - /** @return the value of the {@link XrSystemProperties#systemId} field. */ - @NativeType("XrSystemId") - public long systemId() { return XrSystemProperties.nsystemId(address()); } - /** @return the value of the {@link XrSystemProperties#vendorId} field. */ - @NativeType("uint32_t") - public int vendorId() { return XrSystemProperties.nvendorId(address()); } - /** @return a {@link ByteBuffer} view of the {@link XrSystemProperties#systemName} field. */ - @NativeType("char[XR_MAX_SYSTEM_NAME_SIZE]") - public ByteBuffer systemName() { return XrSystemProperties.nsystemName(address()); } - /** @return the null-terminated string stored in the {@link XrSystemProperties#systemName} field. */ - @NativeType("char[XR_MAX_SYSTEM_NAME_SIZE]") - public String systemNameString() { return XrSystemProperties.nsystemNameString(address()); } - /** @return a {@link XrSystemGraphicsProperties} view of the {@link XrSystemProperties#graphicsProperties} field. */ - public XrSystemGraphicsProperties graphicsProperties() { return XrSystemProperties.ngraphicsProperties(address()); } - /** @return a {@link XrSystemTrackingProperties} view of the {@link XrSystemProperties#trackingProperties} field. */ - public XrSystemTrackingProperties trackingProperties() { return XrSystemProperties.ntrackingProperties(address()); } - - /** Sets the specified value to the {@link XrSystemProperties#type} field. */ - public XrSystemProperties.Buffer type(@NativeType("XrStructureType") int value) { XrSystemProperties.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_SYSTEM_PROPERTIES TYPE_SYSTEM_PROPERTIES} value to the {@link XrSystemProperties#type} field. */ - public XrSystemProperties.Buffer type$Default() { return type(XR10.XR_TYPE_SYSTEM_PROPERTIES); } - /** Sets the specified value to the {@link XrSystemProperties#next} field. */ - public XrSystemProperties.Buffer next(@NativeType("void *") long value) { XrSystemProperties.nnext(address(), value); return this; } - /** Prepends the specified {@link XrRenderModelCapabilitiesRequestFB} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrRenderModelCapabilitiesRequestFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemBodyTrackingPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemBodyTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemColorSpacePropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemColorSpacePropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemEyeGazeInteractionPropertiesEXT} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemEyeGazeInteractionPropertiesEXT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemEyeTrackingPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemEyeTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemFaceTrackingPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemFaceTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemFacialTrackingPropertiesHTC} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemFacialTrackingPropertiesHTC value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemForceFeedbackCurlPropertiesMNDX} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemForceFeedbackCurlPropertiesMNDX value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemFoveatedRenderingPropertiesVARJO} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemFoveatedRenderingPropertiesVARJO value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemFoveationEyeTrackedPropertiesMETA} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemFoveationEyeTrackedPropertiesMETA value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemHandTrackingMeshPropertiesMSFT} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemHandTrackingMeshPropertiesMSFT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemHandTrackingPropertiesEXT} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemHandTrackingPropertiesEXT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemHeadsetIdPropertiesMETA} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemHeadsetIdPropertiesMETA value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemKeyboardTrackingPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemKeyboardTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemMarkerTrackingPropertiesVARJO} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemMarkerTrackingPropertiesVARJO value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemPassthroughColorLutPropertiesMETA} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemPassthroughColorLutPropertiesMETA value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemPassthroughProperties2FB} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemPassthroughProperties2FB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemPassthroughPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemPassthroughPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemPlaneDetectionPropertiesEXT} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemPlaneDetectionPropertiesEXT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemRenderModelPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemRenderModelPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemSpaceWarpPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemSpaceWarpPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemSpatialEntityPropertiesFB} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemSpatialEntityPropertiesFB value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrSystemVirtualKeyboardPropertiesMETA} value to the {@code next} chain. */ - public XrSystemProperties.Buffer next(XrSystemVirtualKeyboardPropertiesMETA value) { return this.next(value.next(this.next()).address()); } + + /** @return the value of the {@link XrSystemProperties#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemProperties.ntype(address()); } + /** @return the value of the {@link XrSystemProperties#next} field. */ + @NativeType("void *") + public long next() { return XrSystemProperties.nnext(address()); } + /** @return the value of the {@link XrSystemProperties#systemId} field. */ + @NativeType("XrSystemId") + public long systemId() { return XrSystemProperties.nsystemId(address()); } + /** @return the value of the {@link XrSystemProperties#vendorId} field. */ + @NativeType("uint32_t") + public int vendorId() { return XrSystemProperties.nvendorId(address()); } + /** @return a {@link ByteBuffer} view of the {@link XrSystemProperties#systemName} field. */ + @NativeType("char[XR_MAX_SYSTEM_NAME_SIZE]") + public ByteBuffer systemName() { return XrSystemProperties.nsystemName(address()); } + /** @return the null-terminated string stored in the {@link XrSystemProperties#systemName} field. */ + @NativeType("char[XR_MAX_SYSTEM_NAME_SIZE]") + public String systemNameString() { return XrSystemProperties.nsystemNameString(address()); } + /** @return a {@link XrSystemGraphicsProperties} view of the {@link XrSystemProperties#graphicsProperties} field. */ + public XrSystemGraphicsProperties graphicsProperties() { return XrSystemProperties.ngraphicsProperties(address()); } + /** @return a {@link XrSystemTrackingProperties} view of the {@link XrSystemProperties#trackingProperties} field. */ + public XrSystemTrackingProperties trackingProperties() { return XrSystemProperties.ntrackingProperties(address()); } + + /** Sets the specified value to the {@link XrSystemProperties#type} field. */ + public XrSystemProperties.Buffer type(@NativeType("XrStructureType") int value) { XrSystemProperties.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_SYSTEM_PROPERTIES TYPE_SYSTEM_PROPERTIES} value to the {@link XrSystemProperties#type} field. */ + public XrSystemProperties.Buffer type$Default() { return type(XR10.XR_TYPE_SYSTEM_PROPERTIES); } + /** Sets the specified value to the {@link XrSystemProperties#next} field. */ + public XrSystemProperties.Buffer next(@NativeType("void *") long value) { XrSystemProperties.nnext(address(), value); return this; } + /** Prepends the specified {@link XrRenderModelCapabilitiesRequestFB} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrRenderModelCapabilitiesRequestFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemBodyTrackingPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemBodyTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemColorSpacePropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemColorSpacePropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemEyeGazeInteractionPropertiesEXT} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemEyeGazeInteractionPropertiesEXT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemEyeTrackingPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemEyeTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemFaceTrackingPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemFaceTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemFacialTrackingPropertiesHTC} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemFacialTrackingPropertiesHTC value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemForceFeedbackCurlPropertiesMNDX} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemForceFeedbackCurlPropertiesMNDX value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemFoveatedRenderingPropertiesVARJO} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemFoveatedRenderingPropertiesVARJO value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemFoveationEyeTrackedPropertiesMETA} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemFoveationEyeTrackedPropertiesMETA value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemHandTrackingMeshPropertiesMSFT} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemHandTrackingMeshPropertiesMSFT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemHandTrackingPropertiesEXT} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemHandTrackingPropertiesEXT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemHeadsetIdPropertiesMETA} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemHeadsetIdPropertiesMETA value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemKeyboardTrackingPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemKeyboardTrackingPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemMarkerTrackingPropertiesVARJO} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemMarkerTrackingPropertiesVARJO value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemPassthroughProperties2FB} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemPassthroughProperties2FB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemPassthroughPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemPassthroughPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemRenderModelPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemRenderModelPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemSpaceWarpPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemSpaceWarpPropertiesFB value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrSystemSpatialEntityPropertiesFB} value to the {@code next} chain. */ + public XrSystemProperties.Buffer next(XrSystemSpatialEntityPropertiesFB value) { return this.next(value.next(this.next()).address()); } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemRenderModelPropertiesFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemRenderModelPropertiesFB.java index 572a193b27..361b1f6012 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemRenderModelPropertiesFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemRenderModelPropertiesFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * A render model system property. * @@ -31,7 +31,7 @@ *
                                                                          *
                                                                        • The {@link FBRenderModel XR_FB_render_model} extension must be enabled prior to using {@link XrSystemRenderModelPropertiesFB}
                                                                        • *
                                                                        • {@code type} must be {@link FBRenderModel#XR_TYPE_SYSTEM_RENDER_MODEL_PROPERTIES_FB TYPE_SYSTEM_RENDER_MODEL_PROPERTIES_FB}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        * *

                                                                        Layout

                                                                        @@ -42,8 +42,8 @@ * void * next; * XrBool32 supportsRenderModelLoading; * } - */ -public class XrSystemRenderModelPropertiesFB extends Struct implements NativeResource { + */ +public class XrSystemRenderModelPropertiesFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,24 +53,24 @@ public class XrSystemRenderModelPropertiesFB extends Struct implements NativeResource { @@ -296,23 +296,23 @@ protected Buffer self() { protected XrSystemRenderModelPropertiesFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemRenderModelPropertiesFB.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void *") - public long next() { return XrSystemRenderModelPropertiesFB.nnext(address()); } - /** @return the value of the {@code supportsRenderModelLoading} field. */ - @NativeType("XrBool32") - public boolean supportsRenderModelLoading() { return XrSystemRenderModelPropertiesFB.nsupportsRenderModelLoading(address()) != 0; } - - /** Sets the specified value to the {@code type} field. */ - public XrSystemRenderModelPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemRenderModelPropertiesFB.ntype(address(), value); return this; } - /** Sets the {@link FBRenderModel#XR_TYPE_SYSTEM_RENDER_MODEL_PROPERTIES_FB TYPE_SYSTEM_RENDER_MODEL_PROPERTIES_FB} value to the {@code type} field. */ - public XrSystemRenderModelPropertiesFB.Buffer type$Default() { return type(FBRenderModel.XR_TYPE_SYSTEM_RENDER_MODEL_PROPERTIES_FB); } - /** Sets the specified value to the {@code next} field. */ - public XrSystemRenderModelPropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemRenderModelPropertiesFB.nnext(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemRenderModelPropertiesFB.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void *") + public long next() { return XrSystemRenderModelPropertiesFB.nnext(address()); } + /** @return the value of the {@code supportsRenderModelLoading} field. */ + @NativeType("XrBool32") + public boolean supportsRenderModelLoading() { return XrSystemRenderModelPropertiesFB.nsupportsRenderModelLoading(address()) != 0; } + + /** Sets the specified value to the {@code type} field. */ + public XrSystemRenderModelPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemRenderModelPropertiesFB.ntype(address(), value); return this; } + /** Sets the {@link FBRenderModel#XR_TYPE_SYSTEM_RENDER_MODEL_PROPERTIES_FB TYPE_SYSTEM_RENDER_MODEL_PROPERTIES_FB} value to the {@code type} field. */ + public XrSystemRenderModelPropertiesFB.Buffer type$Default() { return type(FBRenderModel.XR_TYPE_SYSTEM_RENDER_MODEL_PROPERTIES_FB); } + /** Sets the specified value to the {@code next} field. */ + public XrSystemRenderModelPropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemRenderModelPropertiesFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemSpaceWarpPropertiesFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemSpaceWarpPropertiesFB.java index 9a05253bb4..860eaaf65f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemSpaceWarpPropertiesFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemSpaceWarpPropertiesFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Composition Layer Space Warp structure. * @@ -23,7 +23,7 @@ *
                                                                          *
                                                                        • The {@link FBSpaceWarp XR_FB_space_warp} extension must be enabled prior to using {@link XrSystemSpaceWarpPropertiesFB}
                                                                        • *
                                                                        • {@code type} must be {@link FBSpaceWarp#XR_TYPE_SYSTEM_SPACE_WARP_PROPERTIES_FB TYPE_SYSTEM_SPACE_WARP_PROPERTIES_FB}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        * *
                                                                        See Also
                                                                        @@ -39,8 +39,8 @@ * uint32_t {@link #recommendedMotionVectorImageRectWidth}; * uint32_t {@link #recommendedMotionVectorImageRectHeight}; * } - */ -public class XrSystemSpaceWarpPropertiesFB extends Struct implements NativeResource { + */ +public class XrSystemSpaceWarpPropertiesFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,27 +50,27 @@ public class XrSystemSpaceWarpPropertiesFB extends Struct implements NativeResource { @@ -301,26 +301,26 @@ protected Buffer self() { protected XrSystemSpaceWarpPropertiesFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemSpaceWarpPropertiesFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemSpaceWarpPropertiesFB.ntype(address()); } - /** @return the value of the {@link XrSystemSpaceWarpPropertiesFB#next} field. */ - @NativeType("void *") - public long next() { return XrSystemSpaceWarpPropertiesFB.nnext(address()); } - /** @return the value of the {@link XrSystemSpaceWarpPropertiesFB#recommendedMotionVectorImageRectWidth} field. */ - @NativeType("uint32_t") - public int recommendedMotionVectorImageRectWidth() { return XrSystemSpaceWarpPropertiesFB.nrecommendedMotionVectorImageRectWidth(address()); } - /** @return the value of the {@link XrSystemSpaceWarpPropertiesFB#recommendedMotionVectorImageRectHeight} field. */ - @NativeType("uint32_t") - public int recommendedMotionVectorImageRectHeight() { return XrSystemSpaceWarpPropertiesFB.nrecommendedMotionVectorImageRectHeight(address()); } - - /** Sets the specified value to the {@link XrSystemSpaceWarpPropertiesFB#type} field. */ - public XrSystemSpaceWarpPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemSpaceWarpPropertiesFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpaceWarp#XR_TYPE_SYSTEM_SPACE_WARP_PROPERTIES_FB TYPE_SYSTEM_SPACE_WARP_PROPERTIES_FB} value to the {@link XrSystemSpaceWarpPropertiesFB#type} field. */ - public XrSystemSpaceWarpPropertiesFB.Buffer type$Default() { return type(FBSpaceWarp.XR_TYPE_SYSTEM_SPACE_WARP_PROPERTIES_FB); } - /** Sets the specified value to the {@link XrSystemSpaceWarpPropertiesFB#next} field. */ - public XrSystemSpaceWarpPropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemSpaceWarpPropertiesFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemSpaceWarpPropertiesFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemSpaceWarpPropertiesFB.ntype(address()); } + /** @return the value of the {@link XrSystemSpaceWarpPropertiesFB#next} field. */ + @NativeType("void *") + public long next() { return XrSystemSpaceWarpPropertiesFB.nnext(address()); } + /** @return the value of the {@link XrSystemSpaceWarpPropertiesFB#recommendedMotionVectorImageRectWidth} field. */ + @NativeType("uint32_t") + public int recommendedMotionVectorImageRectWidth() { return XrSystemSpaceWarpPropertiesFB.nrecommendedMotionVectorImageRectWidth(address()); } + /** @return the value of the {@link XrSystemSpaceWarpPropertiesFB#recommendedMotionVectorImageRectHeight} field. */ + @NativeType("uint32_t") + public int recommendedMotionVectorImageRectHeight() { return XrSystemSpaceWarpPropertiesFB.nrecommendedMotionVectorImageRectHeight(address()); } + + /** Sets the specified value to the {@link XrSystemSpaceWarpPropertiesFB#type} field. */ + public XrSystemSpaceWarpPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemSpaceWarpPropertiesFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpaceWarp#XR_TYPE_SYSTEM_SPACE_WARP_PROPERTIES_FB TYPE_SYSTEM_SPACE_WARP_PROPERTIES_FB} value to the {@link XrSystemSpaceWarpPropertiesFB#type} field. */ + public XrSystemSpaceWarpPropertiesFB.Buffer type$Default() { return type(FBSpaceWarp.XR_TYPE_SYSTEM_SPACE_WARP_PROPERTIES_FB); } + /** Sets the specified value to the {@link XrSystemSpaceWarpPropertiesFB#next} field. */ + public XrSystemSpaceWarpPropertiesFB.Buffer next(@NativeType("void *") long value) { XrSystemSpaceWarpPropertiesFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemSpatialEntityPropertiesFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemSpatialEntityPropertiesFB.java index fffea7d223..2d300f6456 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemSpatialEntityPropertiesFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemSpatialEntityPropertiesFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Properties object retrieved as part of next chain from xrGetSystemProperties. * @@ -29,7 +29,7 @@ *
                                                                          *
                                                                        • The {@link FBSpatialEntity XR_FB_spatial_entity} extension must be enabled prior to using {@link XrSystemSpatialEntityPropertiesFB}
                                                                        • *
                                                                        • {@code type} must be {@link FBSpatialEntity#XR_TYPE_SYSTEM_SPATIAL_ENTITY_PROPERTIES_FB TYPE_SYSTEM_SPATIAL_ENTITY_PROPERTIES_FB}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        * *
                                                                        See Also
                                                                        @@ -44,8 +44,8 @@ * void const * {@link #next}; * XrBool32 {@link #supportsSpatialEntity}; * } - */ -public class XrSystemSpatialEntityPropertiesFB extends Struct implements NativeResource { + */ +public class XrSystemSpatialEntityPropertiesFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -55,24 +55,24 @@ public class XrSystemSpatialEntityPropertiesFB extends Struct implements NativeResource { @@ -298,23 +298,23 @@ protected Buffer self() { protected XrSystemSpatialEntityPropertiesFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemSpatialEntityPropertiesFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrSystemSpatialEntityPropertiesFB.ntype(address()); } - /** @return the value of the {@link XrSystemSpatialEntityPropertiesFB#next} field. */ - @NativeType("void const *") - public long next() { return XrSystemSpatialEntityPropertiesFB.nnext(address()); } - /** @return the value of the {@link XrSystemSpatialEntityPropertiesFB#supportsSpatialEntity} field. */ - @NativeType("XrBool32") - public boolean supportsSpatialEntity() { return XrSystemSpatialEntityPropertiesFB.nsupportsSpatialEntity(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemSpatialEntityPropertiesFB#type} field. */ - public XrSystemSpatialEntityPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemSpatialEntityPropertiesFB.ntype(address(), value); return this; } - /** Sets the {@link FBSpatialEntity#XR_TYPE_SYSTEM_SPATIAL_ENTITY_PROPERTIES_FB TYPE_SYSTEM_SPATIAL_ENTITY_PROPERTIES_FB} value to the {@link XrSystemSpatialEntityPropertiesFB#type} field. */ - public XrSystemSpatialEntityPropertiesFB.Buffer type$Default() { return type(FBSpatialEntity.XR_TYPE_SYSTEM_SPATIAL_ENTITY_PROPERTIES_FB); } - /** Sets the specified value to the {@link XrSystemSpatialEntityPropertiesFB#next} field. */ - public XrSystemSpatialEntityPropertiesFB.Buffer next(@NativeType("void const *") long value) { XrSystemSpatialEntityPropertiesFB.nnext(address(), value); return this; } + + /** @return the value of the {@link XrSystemSpatialEntityPropertiesFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrSystemSpatialEntityPropertiesFB.ntype(address()); } + /** @return the value of the {@link XrSystemSpatialEntityPropertiesFB#next} field. */ + @NativeType("void const *") + public long next() { return XrSystemSpatialEntityPropertiesFB.nnext(address()); } + /** @return the value of the {@link XrSystemSpatialEntityPropertiesFB#supportsSpatialEntity} field. */ + @NativeType("XrBool32") + public boolean supportsSpatialEntity() { return XrSystemSpatialEntityPropertiesFB.nsupportsSpatialEntity(address()) != 0; } + + /** Sets the specified value to the {@link XrSystemSpatialEntityPropertiesFB#type} field. */ + public XrSystemSpatialEntityPropertiesFB.Buffer type(@NativeType("XrStructureType") int value) { XrSystemSpatialEntityPropertiesFB.ntype(address(), value); return this; } + /** Sets the {@link FBSpatialEntity#XR_TYPE_SYSTEM_SPATIAL_ENTITY_PROPERTIES_FB TYPE_SYSTEM_SPATIAL_ENTITY_PROPERTIES_FB} value to the {@link XrSystemSpatialEntityPropertiesFB#type} field. */ + public XrSystemSpatialEntityPropertiesFB.Buffer type$Default() { return type(FBSpatialEntity.XR_TYPE_SYSTEM_SPATIAL_ENTITY_PROPERTIES_FB); } + /** Sets the specified value to the {@link XrSystemSpatialEntityPropertiesFB#next} field. */ + public XrSystemSpatialEntityPropertiesFB.Buffer next(@NativeType("void const *") long value) { XrSystemSpatialEntityPropertiesFB.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemTrackingProperties.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemTrackingProperties.java index f50c4b4066..82810d8ad4 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemTrackingProperties.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrSystemTrackingProperties.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Tracking-related properties of a particular system. * @@ -29,8 +29,8 @@ * XrBool32 {@link #orientationTracking}; * XrBool32 {@link #positionTracking}; * } - */ -public class XrSystemTrackingProperties extends Struct implements NativeResource { + */ +public class XrSystemTrackingProperties extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -40,21 +40,21 @@ public class XrSystemTrackingProperties extends Struct implements NativeResource { @@ -273,18 +273,18 @@ protected Buffer self() { protected XrSystemTrackingProperties getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrSystemTrackingProperties#orientationTracking} field. */ - @NativeType("XrBool32") - public boolean orientationTracking() { return XrSystemTrackingProperties.norientationTracking(address()) != 0; } - /** @return the value of the {@link XrSystemTrackingProperties#positionTracking} field. */ - @NativeType("XrBool32") - public boolean positionTracking() { return XrSystemTrackingProperties.npositionTracking(address()) != 0; } - - /** Sets the specified value to the {@link XrSystemTrackingProperties#orientationTracking} field. */ - public XrSystemTrackingProperties.Buffer orientationTracking(@NativeType("XrBool32") boolean value) { XrSystemTrackingProperties.norientationTracking(address(), value ? 1 : 0); return this; } - /** Sets the specified value to the {@link XrSystemTrackingProperties#positionTracking} field. */ - public XrSystemTrackingProperties.Buffer positionTracking(@NativeType("XrBool32") boolean value) { XrSystemTrackingProperties.npositionTracking(address(), value ? 1 : 0); return this; } + + /** @return the value of the {@link XrSystemTrackingProperties#orientationTracking} field. */ + @NativeType("XrBool32") + public boolean orientationTracking() { return XrSystemTrackingProperties.norientationTracking(address()) != 0; } + /** @return the value of the {@link XrSystemTrackingProperties#positionTracking} field. */ + @NativeType("XrBool32") + public boolean positionTracking() { return XrSystemTrackingProperties.npositionTracking(address()) != 0; } + + /** Sets the specified value to the {@link XrSystemTrackingProperties#orientationTracking} field. */ + public XrSystemTrackingProperties.Buffer orientationTracking(@NativeType("XrBool32") boolean value) { XrSystemTrackingProperties.norientationTracking(address(), value ? 1 : 0); return this; } + /** Sets the specified value to the {@link XrSystemTrackingProperties#positionTracking} field. */ + public XrSystemTrackingProperties.Buffer positionTracking(@NativeType("XrBool32") boolean value) { XrSystemTrackingProperties.npositionTracking(address(), value ? 1 : 0); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrTriangleMeshCreateInfoFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrTriangleMeshCreateInfoFB.java index 3bf8f9ed00..05b16599f6 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrTriangleMeshCreateInfoFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrTriangleMeshCreateInfoFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * The information to create a triangle mesh. * @@ -29,7 +29,7 @@ *
                                                                          *
                                                                        • The {@link FBTriangleMesh XR_FB_triangle_mesh} extension must be enabled prior to using {@link XrTriangleMeshCreateInfoFB}
                                                                        • *
                                                                        • {@code type} must be {@link FBTriangleMesh#XR_TYPE_TRIANGLE_MESH_CREATE_INFO_FB TYPE_TRIANGLE_MESH_CREATE_INFO_FB}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@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 XrTriangleMeshFlagBitsFB} values
                                                                        • *
                                                                        • {@code windingOrder} must be a valid {@code XrWindingOrderFB} value
                                                                        • *
                                                                        @@ -51,8 +51,8 @@ * uint32_t {@link #triangleCount}; * uint32_t const * {@link #indexBuffer}; * } - */ -public class XrTriangleMeshCreateInfoFB extends Struct implements NativeResource { + */ +public class XrTriangleMeshCreateInfoFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -62,39 +62,39 @@ public class XrTriangleMeshCreateInfoFB extends Structmust be {@code NULL} and mesh data must be populated separately. */ - @Nullable - @NativeType("XrVector3f const *") - public XrVector3f vertexBuffer() { return nvertexBuffer(address()); } - /** the number of triangles in the mesh. In the case of the mutable mesh, the value is treated as the maximum number of triangles the mesh will be able to represent at any time in its lifecycle. The actual number of triangles can vary and is defined when {@link FBTriangleMesh#xrTriangleMeshEndUpdateFB TriangleMeshEndUpdateFB} is called. */ - @NativeType("uint32_t") - public int triangleCount() { return ntriangleCount(address()); } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** a bitmask of {@code XrTriangleMeshFlagBitsFB} that specify behavior. */ + @NativeType("XrTriangleMeshFlagsFB") + public long flags() { return nflags(address()); } + /** the {@code XrWindingOrderFB} value defining the winding order of the mesh triangles. */ + @NativeType("XrWindingOrderFB") + public int windingOrder() { return nwindingOrder(address()); } + /** the number of vertices in the mesh. In the case of the mutable mesh, the value is treated as the maximum number of vertices the mesh will be able to represent at any time in its lifecycle. The actual number of vertices can vary and is defined when {@link FBTriangleMesh#xrTriangleMeshEndUpdateFB TriangleMeshEndUpdateFB} is called. */ + @NativeType("uint32_t") + public int vertexCount() { return nvertexCount(address()); } + /** a pointer to the vertex data. The size of the array must be {@code vertexCount} elements. When the mesh is mutable ({@code ({@code flags} & {@link FBTriangleMesh#XR_TRIANGLE_MESH_MUTABLE_BIT_FB TRIANGLE_MESH_MUTABLE_BIT_FB}) != 0}), the {@code vertexBuffer} parameter must be {@code NULL} and mesh data must be populated separately. */ + @Nullable + @NativeType("XrVector3f const *") + public XrVector3f vertexBuffer() { return nvertexBuffer(address()); } + /** the number of triangles in the mesh. In the case of the mutable mesh, the value is treated as the maximum number of triangles the mesh will be able to represent at any time in its lifecycle. The actual number of triangles can vary and is defined when {@link FBTriangleMesh#xrTriangleMeshEndUpdateFB TriangleMeshEndUpdateFB} is called. */ + @NativeType("uint32_t") + public int triangleCount() { return ntriangleCount(address()); } /** * @param capacity the number of elements in the returned buffer * * @return the triangle indices. The size of the array must be {@code triangleCount} elements. When the mesh is mutable ({@code ({@code flags} & {@link FBTriangleMesh#XR_TRIANGLE_MESH_MUTABLE_BIT_FB TRIANGLE_MESH_MUTABLE_BIT_FB}) != 0}), the {@code indexBuffer} parameter must be {@code NULL} and mesh data must be populated separately. - */ - @Nullable - @NativeType("uint32_t const *") - public IntBuffer indexBuffer(int capacity) { return nindexBuffer(address(), capacity); } - - /** Sets the specified value to the {@link #type} field. */ - public XrTriangleMeshCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link FBTriangleMesh#XR_TYPE_TRIANGLE_MESH_CREATE_INFO_FB TYPE_TRIANGLE_MESH_CREATE_INFO_FB} value to the {@link #type} field. */ - public XrTriangleMeshCreateInfoFB type$Default() { return type(FBTriangleMesh.XR_TYPE_TRIANGLE_MESH_CREATE_INFO_FB); } - /** Sets the specified value to the {@link #next} field. */ - public XrTriangleMeshCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #flags} field. */ - public XrTriangleMeshCreateInfoFB flags(@NativeType("XrTriangleMeshFlagsFB") long value) { nflags(address(), value); return this; } - /** Sets the specified value to the {@link #windingOrder} field. */ - public XrTriangleMeshCreateInfoFB windingOrder(@NativeType("XrWindingOrderFB") int value) { nwindingOrder(address(), value); return this; } - /** Sets the specified value to the {@link #vertexCount} field. */ - public XrTriangleMeshCreateInfoFB vertexCount(@NativeType("uint32_t") int value) { nvertexCount(address(), value); return this; } - /** Sets the address of the specified {@link XrVector3f} to the {@link #vertexBuffer} field. */ - public XrTriangleMeshCreateInfoFB vertexBuffer(@Nullable @NativeType("XrVector3f const *") XrVector3f value) { nvertexBuffer(address(), value); return this; } - /** Sets the specified value to the {@link #triangleCount} field. */ - public XrTriangleMeshCreateInfoFB triangleCount(@NativeType("uint32_t") int value) { ntriangleCount(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link #indexBuffer} field. */ - public XrTriangleMeshCreateInfoFB indexBuffer(@Nullable @NativeType("uint32_t const *") IntBuffer value) { nindexBuffer(address(), value); return this; } + */ + @Nullable + @NativeType("uint32_t const *") + public IntBuffer indexBuffer(int capacity) { return nindexBuffer(address(), capacity); } + + /** Sets the specified value to the {@link #type} field. */ + public XrTriangleMeshCreateInfoFB type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link FBTriangleMesh#XR_TYPE_TRIANGLE_MESH_CREATE_INFO_FB TYPE_TRIANGLE_MESH_CREATE_INFO_FB} value to the {@link #type} field. */ + public XrTriangleMeshCreateInfoFB type$Default() { return type(FBTriangleMesh.XR_TYPE_TRIANGLE_MESH_CREATE_INFO_FB); } + /** Sets the specified value to the {@link #next} field. */ + public XrTriangleMeshCreateInfoFB next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #flags} field. */ + public XrTriangleMeshCreateInfoFB flags(@NativeType("XrTriangleMeshFlagsFB") long value) { nflags(address(), value); return this; } + /** Sets the specified value to the {@link #windingOrder} field. */ + public XrTriangleMeshCreateInfoFB windingOrder(@NativeType("XrWindingOrderFB") int value) { nwindingOrder(address(), value); return this; } + /** Sets the specified value to the {@link #vertexCount} field. */ + public XrTriangleMeshCreateInfoFB vertexCount(@NativeType("uint32_t") int value) { nvertexCount(address(), value); return this; } + /** Sets the address of the specified {@link XrVector3f} to the {@link #vertexBuffer} field. */ + public XrTriangleMeshCreateInfoFB vertexBuffer(@Nullable @NativeType("XrVector3f const *") XrVector3f value) { nvertexBuffer(address(), value); return this; } + /** Sets the specified value to the {@link #triangleCount} field. */ + public XrTriangleMeshCreateInfoFB triangleCount(@NativeType("uint32_t") int value) { ntriangleCount(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link #indexBuffer} field. */ + public XrTriangleMeshCreateInfoFB indexBuffer(@Nullable @NativeType("uint32_t const *") IntBuffer value) { nindexBuffer(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrTriangleMeshCreateInfoFB set( - int type, - long next, - long flags, - int windingOrder, - int vertexCount, - @Nullable XrVector3f vertexBuffer, - int triangleCount, + int type, + long next, + long flags, + int windingOrder, + int vertexCount, + @Nullable XrVector3f vertexBuffer, + int triangleCount, @Nullable IntBuffer indexBuffer - ) { - type(type); - next(next); - flags(flags); - windingOrder(windingOrder); - vertexCount(vertexCount); - vertexBuffer(vertexBuffer); - triangleCount(triangleCount); - indexBuffer(indexBuffer); + ) { + type(type); + next(next); + flags(flags); + windingOrder(windingOrder); + vertexCount(vertexCount); + vertexBuffer(vertexBuffer); + triangleCount(triangleCount); + indexBuffer(indexBuffer); return this; } @@ -315,42 +315,42 @@ public static XrTriangleMeshCreateInfoFB.Buffer calloc(int capacity, MemoryStack } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrTriangleMeshCreateInfoFB.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrTriangleMeshCreateInfoFB.NEXT); } - /** Unsafe version of {@link #flags}. */ - public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrTriangleMeshCreateInfoFB.FLAGS); } - /** Unsafe version of {@link #windingOrder}. */ - public static int nwindingOrder(long struct) { return UNSAFE.getInt(null, struct + XrTriangleMeshCreateInfoFB.WINDINGORDER); } - /** Unsafe version of {@link #vertexCount}. */ - public static int nvertexCount(long struct) { return UNSAFE.getInt(null, struct + XrTriangleMeshCreateInfoFB.VERTEXCOUNT); } - /** Unsafe version of {@link #vertexBuffer}. */ - @Nullable public static XrVector3f nvertexBuffer(long struct) { return XrVector3f.createSafe(memGetAddress(struct + XrTriangleMeshCreateInfoFB.VERTEXBUFFER)); } - /** Unsafe version of {@link #triangleCount}. */ - public static int ntriangleCount(long struct) { return UNSAFE.getInt(null, struct + XrTriangleMeshCreateInfoFB.TRIANGLECOUNT); } - /** Unsafe version of {@link #indexBuffer(int) indexBuffer}. */ - @Nullable public static IntBuffer nindexBuffer(long struct, int capacity) { return memIntBufferSafe(memGetAddress(struct + XrTriangleMeshCreateInfoFB.INDEXBUFFER), capacity); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrTriangleMeshCreateInfoFB.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrTriangleMeshCreateInfoFB.NEXT, value); } - /** Unsafe version of {@link #flags(long) flags}. */ - public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrTriangleMeshCreateInfoFB.FLAGS, value); } - /** Unsafe version of {@link #windingOrder(int) windingOrder}. */ - public static void nwindingOrder(long struct, int value) { UNSAFE.putInt(null, struct + XrTriangleMeshCreateInfoFB.WINDINGORDER, value); } - /** Unsafe version of {@link #vertexCount(int) vertexCount}. */ - public static void nvertexCount(long struct, int value) { UNSAFE.putInt(null, struct + XrTriangleMeshCreateInfoFB.VERTEXCOUNT, value); } - /** Unsafe version of {@link #vertexBuffer(XrVector3f) vertexBuffer}. */ - public static void nvertexBuffer(long struct, @Nullable XrVector3f value) { memPutAddress(struct + XrTriangleMeshCreateInfoFB.VERTEXBUFFER, memAddressSafe(value)); } - /** Unsafe version of {@link #triangleCount(int) triangleCount}. */ - public static void ntriangleCount(long struct, int value) { UNSAFE.putInt(null, struct + XrTriangleMeshCreateInfoFB.TRIANGLECOUNT, value); } - /** Unsafe version of {@link #indexBuffer(IntBuffer) indexBuffer}. */ - public static void nindexBuffer(long struct, @Nullable IntBuffer value) { memPutAddress(struct + XrTriangleMeshCreateInfoFB.INDEXBUFFER, memAddressSafe(value)); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrTriangleMeshCreateInfoFB.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrTriangleMeshCreateInfoFB.NEXT); } + /** Unsafe version of {@link #flags}. */ + public static long nflags(long struct) { return UNSAFE.getLong(null, struct + XrTriangleMeshCreateInfoFB.FLAGS); } + /** Unsafe version of {@link #windingOrder}. */ + public static int nwindingOrder(long struct) { return UNSAFE.getInt(null, struct + XrTriangleMeshCreateInfoFB.WINDINGORDER); } + /** Unsafe version of {@link #vertexCount}. */ + public static int nvertexCount(long struct) { return UNSAFE.getInt(null, struct + XrTriangleMeshCreateInfoFB.VERTEXCOUNT); } + /** Unsafe version of {@link #vertexBuffer}. */ + @Nullable public static XrVector3f nvertexBuffer(long struct) { return XrVector3f.createSafe(memGetAddress(struct + XrTriangleMeshCreateInfoFB.VERTEXBUFFER)); } + /** Unsafe version of {@link #triangleCount}. */ + public static int ntriangleCount(long struct) { return UNSAFE.getInt(null, struct + XrTriangleMeshCreateInfoFB.TRIANGLECOUNT); } + /** Unsafe version of {@link #indexBuffer(int) indexBuffer}. */ + @Nullable public static IntBuffer nindexBuffer(long struct, int capacity) { return memIntBufferSafe(memGetAddress(struct + XrTriangleMeshCreateInfoFB.INDEXBUFFER), capacity); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrTriangleMeshCreateInfoFB.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrTriangleMeshCreateInfoFB.NEXT, value); } + /** Unsafe version of {@link #flags(long) flags}. */ + public static void nflags(long struct, long value) { UNSAFE.putLong(null, struct + XrTriangleMeshCreateInfoFB.FLAGS, value); } + /** Unsafe version of {@link #windingOrder(int) windingOrder}. */ + public static void nwindingOrder(long struct, int value) { UNSAFE.putInt(null, struct + XrTriangleMeshCreateInfoFB.WINDINGORDER, value); } + /** Unsafe version of {@link #vertexCount(int) vertexCount}. */ + public static void nvertexCount(long struct, int value) { UNSAFE.putInt(null, struct + XrTriangleMeshCreateInfoFB.VERTEXCOUNT, value); } + /** Unsafe version of {@link #vertexBuffer(XrVector3f) vertexBuffer}. */ + public static void nvertexBuffer(long struct, @Nullable XrVector3f value) { memPutAddress(struct + XrTriangleMeshCreateInfoFB.VERTEXBUFFER, memAddressSafe(value)); } + /** Unsafe version of {@link #triangleCount(int) triangleCount}. */ + public static void ntriangleCount(long struct, int value) { UNSAFE.putInt(null, struct + XrTriangleMeshCreateInfoFB.TRIANGLECOUNT, value); } + /** Unsafe version of {@link #indexBuffer(IntBuffer) indexBuffer}. */ + public static void nindexBuffer(long struct, @Nullable IntBuffer value) { memPutAddress(struct + XrTriangleMeshCreateInfoFB.INDEXBUFFER, memAddressSafe(value)); } + + // ----------------------------------- /** An array of {@link XrTriangleMeshCreateInfoFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -387,56 +387,56 @@ protected Buffer self() { protected XrTriangleMeshCreateInfoFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrTriangleMeshCreateInfoFB#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrTriangleMeshCreateInfoFB.ntype(address()); } - /** @return the value of the {@link XrTriangleMeshCreateInfoFB#next} field. */ - @NativeType("void const *") - public long next() { return XrTriangleMeshCreateInfoFB.nnext(address()); } - /** @return the value of the {@link XrTriangleMeshCreateInfoFB#flags} field. */ - @NativeType("XrTriangleMeshFlagsFB") - public long flags() { return XrTriangleMeshCreateInfoFB.nflags(address()); } - /** @return the value of the {@link XrTriangleMeshCreateInfoFB#windingOrder} field. */ - @NativeType("XrWindingOrderFB") - public int windingOrder() { return XrTriangleMeshCreateInfoFB.nwindingOrder(address()); } - /** @return the value of the {@link XrTriangleMeshCreateInfoFB#vertexCount} field. */ - @NativeType("uint32_t") - public int vertexCount() { return XrTriangleMeshCreateInfoFB.nvertexCount(address()); } - /** @return a {@link XrVector3f} view of the struct pointed to by the {@link XrTriangleMeshCreateInfoFB#vertexBuffer} field. */ - @Nullable - @NativeType("XrVector3f const *") - public XrVector3f vertexBuffer() { return XrTriangleMeshCreateInfoFB.nvertexBuffer(address()); } - /** @return the value of the {@link XrTriangleMeshCreateInfoFB#triangleCount} field. */ - @NativeType("uint32_t") - public int triangleCount() { return XrTriangleMeshCreateInfoFB.ntriangleCount(address()); } + + /** @return the value of the {@link XrTriangleMeshCreateInfoFB#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrTriangleMeshCreateInfoFB.ntype(address()); } + /** @return the value of the {@link XrTriangleMeshCreateInfoFB#next} field. */ + @NativeType("void const *") + public long next() { return XrTriangleMeshCreateInfoFB.nnext(address()); } + /** @return the value of the {@link XrTriangleMeshCreateInfoFB#flags} field. */ + @NativeType("XrTriangleMeshFlagsFB") + public long flags() { return XrTriangleMeshCreateInfoFB.nflags(address()); } + /** @return the value of the {@link XrTriangleMeshCreateInfoFB#windingOrder} field. */ + @NativeType("XrWindingOrderFB") + public int windingOrder() { return XrTriangleMeshCreateInfoFB.nwindingOrder(address()); } + /** @return the value of the {@link XrTriangleMeshCreateInfoFB#vertexCount} field. */ + @NativeType("uint32_t") + public int vertexCount() { return XrTriangleMeshCreateInfoFB.nvertexCount(address()); } + /** @return a {@link XrVector3f} view of the struct pointed to by the {@link XrTriangleMeshCreateInfoFB#vertexBuffer} field. */ + @Nullable + @NativeType("XrVector3f const *") + public XrVector3f vertexBuffer() { return XrTriangleMeshCreateInfoFB.nvertexBuffer(address()); } + /** @return the value of the {@link XrTriangleMeshCreateInfoFB#triangleCount} field. */ + @NativeType("uint32_t") + public int triangleCount() { return XrTriangleMeshCreateInfoFB.ntriangleCount(address()); } /** * @return a {@link IntBuffer} view of the data pointed to by the {@link XrTriangleMeshCreateInfoFB#indexBuffer} field. * * @param capacity the number of elements in the returned buffer - */ - @Nullable - @NativeType("uint32_t const *") - public IntBuffer indexBuffer(int capacity) { return XrTriangleMeshCreateInfoFB.nindexBuffer(address(), capacity); } - - /** Sets the specified value to the {@link XrTriangleMeshCreateInfoFB#type} field. */ - public XrTriangleMeshCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrTriangleMeshCreateInfoFB.ntype(address(), value); return this; } - /** Sets the {@link FBTriangleMesh#XR_TYPE_TRIANGLE_MESH_CREATE_INFO_FB TYPE_TRIANGLE_MESH_CREATE_INFO_FB} value to the {@link XrTriangleMeshCreateInfoFB#type} field. */ - public XrTriangleMeshCreateInfoFB.Buffer type$Default() { return type(FBTriangleMesh.XR_TYPE_TRIANGLE_MESH_CREATE_INFO_FB); } - /** Sets the specified value to the {@link XrTriangleMeshCreateInfoFB#next} field. */ - public XrTriangleMeshCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrTriangleMeshCreateInfoFB.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrTriangleMeshCreateInfoFB#flags} field. */ - public XrTriangleMeshCreateInfoFB.Buffer flags(@NativeType("XrTriangleMeshFlagsFB") long value) { XrTriangleMeshCreateInfoFB.nflags(address(), value); return this; } - /** Sets the specified value to the {@link XrTriangleMeshCreateInfoFB#windingOrder} field. */ - public XrTriangleMeshCreateInfoFB.Buffer windingOrder(@NativeType("XrWindingOrderFB") int value) { XrTriangleMeshCreateInfoFB.nwindingOrder(address(), value); return this; } - /** Sets the specified value to the {@link XrTriangleMeshCreateInfoFB#vertexCount} field. */ - public XrTriangleMeshCreateInfoFB.Buffer vertexCount(@NativeType("uint32_t") int value) { XrTriangleMeshCreateInfoFB.nvertexCount(address(), value); return this; } - /** Sets the address of the specified {@link XrVector3f} to the {@link XrTriangleMeshCreateInfoFB#vertexBuffer} field. */ - public XrTriangleMeshCreateInfoFB.Buffer vertexBuffer(@Nullable @NativeType("XrVector3f const *") XrVector3f value) { XrTriangleMeshCreateInfoFB.nvertexBuffer(address(), value); return this; } - /** Sets the specified value to the {@link XrTriangleMeshCreateInfoFB#triangleCount} field. */ - public XrTriangleMeshCreateInfoFB.Buffer triangleCount(@NativeType("uint32_t") int value) { XrTriangleMeshCreateInfoFB.ntriangleCount(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link XrTriangleMeshCreateInfoFB#indexBuffer} field. */ - public XrTriangleMeshCreateInfoFB.Buffer indexBuffer(@Nullable @NativeType("uint32_t const *") IntBuffer value) { XrTriangleMeshCreateInfoFB.nindexBuffer(address(), value); return this; } + */ + @Nullable + @NativeType("uint32_t const *") + public IntBuffer indexBuffer(int capacity) { return XrTriangleMeshCreateInfoFB.nindexBuffer(address(), capacity); } + + /** Sets the specified value to the {@link XrTriangleMeshCreateInfoFB#type} field. */ + public XrTriangleMeshCreateInfoFB.Buffer type(@NativeType("XrStructureType") int value) { XrTriangleMeshCreateInfoFB.ntype(address(), value); return this; } + /** Sets the {@link FBTriangleMesh#XR_TYPE_TRIANGLE_MESH_CREATE_INFO_FB TYPE_TRIANGLE_MESH_CREATE_INFO_FB} value to the {@link XrTriangleMeshCreateInfoFB#type} field. */ + public XrTriangleMeshCreateInfoFB.Buffer type$Default() { return type(FBTriangleMesh.XR_TYPE_TRIANGLE_MESH_CREATE_INFO_FB); } + /** Sets the specified value to the {@link XrTriangleMeshCreateInfoFB#next} field. */ + public XrTriangleMeshCreateInfoFB.Buffer next(@NativeType("void const *") long value) { XrTriangleMeshCreateInfoFB.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrTriangleMeshCreateInfoFB#flags} field. */ + public XrTriangleMeshCreateInfoFB.Buffer flags(@NativeType("XrTriangleMeshFlagsFB") long value) { XrTriangleMeshCreateInfoFB.nflags(address(), value); return this; } + /** Sets the specified value to the {@link XrTriangleMeshCreateInfoFB#windingOrder} field. */ + public XrTriangleMeshCreateInfoFB.Buffer windingOrder(@NativeType("XrWindingOrderFB") int value) { XrTriangleMeshCreateInfoFB.nwindingOrder(address(), value); return this; } + /** Sets the specified value to the {@link XrTriangleMeshCreateInfoFB#vertexCount} field. */ + public XrTriangleMeshCreateInfoFB.Buffer vertexCount(@NativeType("uint32_t") int value) { XrTriangleMeshCreateInfoFB.nvertexCount(address(), value); return this; } + /** Sets the address of the specified {@link XrVector3f} to the {@link XrTriangleMeshCreateInfoFB#vertexBuffer} field. */ + public XrTriangleMeshCreateInfoFB.Buffer vertexBuffer(@Nullable @NativeType("XrVector3f const *") XrVector3f value) { XrTriangleMeshCreateInfoFB.nvertexBuffer(address(), value); return this; } + /** Sets the specified value to the {@link XrTriangleMeshCreateInfoFB#triangleCount} field. */ + public XrTriangleMeshCreateInfoFB.Buffer triangleCount(@NativeType("uint32_t") int value) { XrTriangleMeshCreateInfoFB.ntriangleCount(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link XrTriangleMeshCreateInfoFB#indexBuffer} field. */ + public XrTriangleMeshCreateInfoFB.Buffer indexBuffer(@Nullable @NativeType("uint32_t const *") IntBuffer value) { XrTriangleMeshCreateInfoFB.nindexBuffer(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrTriangleMeshFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrTriangleMeshFB.java index 1d1326bf39..4047a7bc98 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrTriangleMeshFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrTriangleMeshFB.java @@ -4,8 +4,8 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - -/** Wraps an {@code XrTriangleMeshFB} handle. */ + +/** Wraps an {@code XrTriangleMeshFB} handle. */ public class XrTriangleMeshFB extends DispatchableHandle { private final XrSession session; @@ -26,4 +26,4 @@ public XrSession getSession() { return session; } -} +} diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrUuidEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrUuidEXT.java index e81b6e7817..fa484a879b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrUuidEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrUuidEXT.java @@ -4,26 +4,26 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import static org.lwjgl.openxr.EXTUUIUD.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import static org.lwjgl.openxr.EXTUUIUD.*; + /** * Universally Unique Identifier. * *
                                                                        Description
                                                                        * - *

                                                                        The structure is composed of 16 octets, with the size and order of the fields defined in RFC 4122 section 4.1.2.

                                                                        + *

                                                                        The structure is composed of 16 octets, with the size and order of the fields defined in RFC 4122 section 4.1.2.

                                                                        * *
                                                                        Valid Usage (Implicit)
                                                                        * @@ -41,8 +41,8 @@ * struct XrUuidEXT { * uint8_t {@link #data}[XR_UUID_SIZE_EXT]; * } - */ -public class XrUuidEXT extends Struct implements NativeResource { + */ +public class XrUuidEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -52,18 +52,18 @@ public class XrUuidEXT extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - DATA; + DATA; static { - Layout layout = __struct( + Layout layout = __struct( __array(1, XR_UUID_SIZE_EXT) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - DATA = layout.offsetof(0); - } + DATA = layout.offsetof(0); + } protected XrUuidEXT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -86,18 +86,18 @@ public XrUuidEXT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** a 128-bit Universally Unique Identifier. */ - @NativeType("uint8_t[XR_UUID_SIZE_EXT]") - public ByteBuffer data() { return ndata(address()); } - /** a 128-bit Universally Unique Identifier. */ - @NativeType("uint8_t") - public byte data(int index) { return ndata(address(), index); } - - /** Copies the specified {@link ByteBuffer} to the {@link #data} field. */ - public XrUuidEXT data(@NativeType("uint8_t[XR_UUID_SIZE_EXT]") ByteBuffer value) { ndata(address(), value); return this; } - /** Sets the specified value at the specified index of the {@link #data} field. */ - public XrUuidEXT data(int index, @NativeType("uint8_t") byte value) { ndata(address(), index, value); return this; } + + /** a 128-bit Universally Unique Identifier. */ + @NativeType("uint8_t[XR_UUID_SIZE_EXT]") + public ByteBuffer data() { return ndata(address()); } + /** a 128-bit Universally Unique Identifier. */ + @NativeType("uint8_t") + public byte data(int index) { return ndata(address(), index); } + + /** Copies the specified {@link ByteBuffer} to the {@link #data} field. */ + public XrUuidEXT data(@NativeType("uint8_t[XR_UUID_SIZE_EXT]") ByteBuffer value) { ndata(address(), value); return this; } + /** Sets the specified value at the specified index of the {@link #data} field. */ + public XrUuidEXT data(int index, @NativeType("uint8_t") byte value) { ndata(address(), index, value); return this; } /** * Copies the specified struct data to this struct. @@ -223,25 +223,25 @@ public static XrUuidEXT.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #data}. */ - public static ByteBuffer ndata(long struct) { return memByteBuffer(struct + XrUuidEXT.DATA, XR_UUID_SIZE_EXT); } - /** Unsafe version of {@link #data(int) data}. */ - public static byte ndata(long struct, int index) { + + /** Unsafe version of {@link #data}. */ + public static ByteBuffer ndata(long struct) { return memByteBuffer(struct + XrUuidEXT.DATA, XR_UUID_SIZE_EXT); } + /** Unsafe version of {@link #data(int) data}. */ + public static byte ndata(long struct, int index) { return UNSAFE.getByte(null, struct + XrUuidEXT.DATA + check(index, XR_UUID_SIZE_EXT) * 1); - } - - /** Unsafe version of {@link #data(ByteBuffer) data}. */ - public static void ndata(long struct, ByteBuffer value) { - if (CHECKS) { checkGT(value, XR_UUID_SIZE_EXT); } - memCopy(memAddress(value), struct + XrUuidEXT.DATA, value.remaining() * 1); - } - /** Unsafe version of {@link #data(int, byte) data}. */ - public static void ndata(long struct, int index, byte value) { - UNSAFE.putByte(null, struct + XrUuidEXT.DATA + check(index, XR_UUID_SIZE_EXT) * 1, value); - } - - // ----------------------------------- + } + + /** Unsafe version of {@link #data(ByteBuffer) data}. */ + public static void ndata(long struct, ByteBuffer value) { + if (CHECKS) { checkGT(value, XR_UUID_SIZE_EXT); } + memCopy(memAddress(value), struct + XrUuidEXT.DATA, value.remaining() * 1); + } + /** Unsafe version of {@link #data(int, byte) data}. */ + public static void ndata(long struct, int index, byte value) { + UNSAFE.putByte(null, struct + XrUuidEXT.DATA + check(index, XR_UUID_SIZE_EXT) * 1, value); + } + + // ----------------------------------- /** An array of {@link XrUuidEXT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -278,18 +278,18 @@ protected Buffer self() { protected XrUuidEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return a {@link ByteBuffer} view of the {@link XrUuidEXT#data} field. */ - @NativeType("uint8_t[XR_UUID_SIZE_EXT]") - public ByteBuffer data() { return XrUuidEXT.ndata(address()); } - /** @return the value at the specified index of the {@link XrUuidEXT#data} field. */ - @NativeType("uint8_t") - public byte data(int index) { return XrUuidEXT.ndata(address(), index); } - - /** Copies the specified {@link ByteBuffer} to the {@link XrUuidEXT#data} field. */ - public XrUuidEXT.Buffer data(@NativeType("uint8_t[XR_UUID_SIZE_EXT]") ByteBuffer value) { XrUuidEXT.ndata(address(), value); return this; } - /** Sets the specified value at the specified index of the {@link XrUuidEXT#data} field. */ - public XrUuidEXT.Buffer data(int index, @NativeType("uint8_t") byte value) { XrUuidEXT.ndata(address(), index, value); return this; } + + /** @return a {@link ByteBuffer} view of the {@link XrUuidEXT#data} field. */ + @NativeType("uint8_t[XR_UUID_SIZE_EXT]") + public ByteBuffer data() { return XrUuidEXT.ndata(address()); } + /** @return the value at the specified index of the {@link XrUuidEXT#data} field. */ + @NativeType("uint8_t") + public byte data(int index) { return XrUuidEXT.ndata(address(), index); } + + /** Copies the specified {@link ByteBuffer} to the {@link XrUuidEXT#data} field. */ + public XrUuidEXT.Buffer data(@NativeType("uint8_t[XR_UUID_SIZE_EXT]") ByteBuffer value) { XrUuidEXT.ndata(address(), value); return this; } + /** Sets the specified value at the specified index of the {@link XrUuidEXT#data} field. */ + public XrUuidEXT.Buffer data(int index, @NativeType("uint8_t") byte value) { XrUuidEXT.ndata(address(), index, value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrUuidMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrUuidMSFT.java index 786a5c3336..ec11a19623 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrUuidMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrUuidMSFT.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Universally Unique Identifier. * @@ -35,8 +35,8 @@ * struct XrUuidMSFT { * uint8_t {@link #bytes}[16]; * } - */ -public class XrUuidMSFT extends Struct implements NativeResource { + */ +public class XrUuidMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -46,18 +46,18 @@ public class XrUuidMSFT extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - BYTES; + BYTES; static { - Layout layout = __struct( + Layout layout = __struct( __array(1, 16) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - BYTES = layout.offsetof(0); - } + BYTES = layout.offsetof(0); + } protected XrUuidMSFT(long address, @Nullable ByteBuffer container) { super(address, container); @@ -80,18 +80,18 @@ public XrUuidMSFT(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** a 128-bit Variant-1 Universally Unique Identifier. */ - @NativeType("uint8_t[16]") - public ByteBuffer bytes() { return nbytes(address()); } - /** a 128-bit Variant-1 Universally Unique Identifier. */ - @NativeType("uint8_t") - public byte bytes(int index) { return nbytes(address(), index); } - - /** Copies the specified {@link ByteBuffer} to the {@link #bytes} field. */ - public XrUuidMSFT bytes(@NativeType("uint8_t[16]") ByteBuffer value) { nbytes(address(), value); return this; } - /** Sets the specified value at the specified index of the {@link #bytes} field. */ - public XrUuidMSFT bytes(int index, @NativeType("uint8_t") byte value) { nbytes(address(), index, value); return this; } + + /** a 128-bit Variant-1 Universally Unique Identifier. */ + @NativeType("uint8_t[16]") + public ByteBuffer bytes() { return nbytes(address()); } + /** a 128-bit Variant-1 Universally Unique Identifier. */ + @NativeType("uint8_t") + public byte bytes(int index) { return nbytes(address(), index); } + + /** Copies the specified {@link ByteBuffer} to the {@link #bytes} field. */ + public XrUuidMSFT bytes(@NativeType("uint8_t[16]") ByteBuffer value) { nbytes(address(), value); return this; } + /** Sets the specified value at the specified index of the {@link #bytes} field. */ + public XrUuidMSFT bytes(int index, @NativeType("uint8_t") byte value) { nbytes(address(), index, value); return this; } /** * Copies the specified struct data to this struct. @@ -217,25 +217,25 @@ public static XrUuidMSFT.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #bytes}. */ - public static ByteBuffer nbytes(long struct) { return memByteBuffer(struct + XrUuidMSFT.BYTES, 16); } - /** Unsafe version of {@link #bytes(int) bytes}. */ - public static byte nbytes(long struct, int index) { + + /** Unsafe version of {@link #bytes}. */ + public static ByteBuffer nbytes(long struct) { return memByteBuffer(struct + XrUuidMSFT.BYTES, 16); } + /** Unsafe version of {@link #bytes(int) bytes}. */ + public static byte nbytes(long struct, int index) { return UNSAFE.getByte(null, struct + XrUuidMSFT.BYTES + check(index, 16) * 1); - } - - /** Unsafe version of {@link #bytes(ByteBuffer) bytes}. */ - public static void nbytes(long struct, ByteBuffer value) { - if (CHECKS) { checkGT(value, 16); } - memCopy(memAddress(value), struct + XrUuidMSFT.BYTES, value.remaining() * 1); - } - /** Unsafe version of {@link #bytes(int, byte) bytes}. */ - public static void nbytes(long struct, int index, byte value) { - UNSAFE.putByte(null, struct + XrUuidMSFT.BYTES + check(index, 16) * 1, value); - } - - // ----------------------------------- + } + + /** Unsafe version of {@link #bytes(ByteBuffer) bytes}. */ + public static void nbytes(long struct, ByteBuffer value) { + if (CHECKS) { checkGT(value, 16); } + memCopy(memAddress(value), struct + XrUuidMSFT.BYTES, value.remaining() * 1); + } + /** Unsafe version of {@link #bytes(int, byte) bytes}. */ + public static void nbytes(long struct, int index, byte value) { + UNSAFE.putByte(null, struct + XrUuidMSFT.BYTES + check(index, 16) * 1, value); + } + + // ----------------------------------- /** An array of {@link XrUuidMSFT} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -272,18 +272,18 @@ protected Buffer self() { protected XrUuidMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return a {@link ByteBuffer} view of the {@link XrUuidMSFT#bytes} field. */ - @NativeType("uint8_t[16]") - public ByteBuffer bytes() { return XrUuidMSFT.nbytes(address()); } - /** @return the value at the specified index of the {@link XrUuidMSFT#bytes} field. */ - @NativeType("uint8_t") - public byte bytes(int index) { return XrUuidMSFT.nbytes(address(), index); } - - /** Copies the specified {@link ByteBuffer} to the {@link XrUuidMSFT#bytes} field. */ - public XrUuidMSFT.Buffer bytes(@NativeType("uint8_t[16]") ByteBuffer value) { XrUuidMSFT.nbytes(address(), value); return this; } - /** Sets the specified value at the specified index of the {@link XrUuidMSFT#bytes} field. */ - public XrUuidMSFT.Buffer bytes(int index, @NativeType("uint8_t") byte value) { XrUuidMSFT.nbytes(address(), index, value); return this; } + + /** @return a {@link ByteBuffer} view of the {@link XrUuidMSFT#bytes} field. */ + @NativeType("uint8_t[16]") + public ByteBuffer bytes() { return XrUuidMSFT.nbytes(address()); } + /** @return the value at the specified index of the {@link XrUuidMSFT#bytes} field. */ + @NativeType("uint8_t") + public byte bytes(int index) { return XrUuidMSFT.nbytes(address(), index); } + + /** Copies the specified {@link ByteBuffer} to the {@link XrUuidMSFT#bytes} field. */ + public XrUuidMSFT.Buffer bytes(@NativeType("uint8_t[16]") ByteBuffer value) { XrUuidMSFT.nbytes(address(), value); return this; } + /** Sets the specified value at the specified index of the {@link XrUuidMSFT#bytes} field. */ + public XrUuidMSFT.Buffer bytes(int index, @NativeType("uint8_t") byte value) { XrUuidMSFT.nbytes(address(), index, value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector2f.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector2f.java index 366bb95887..6f71ad2b6a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector2f.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector2f.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Two-dimensional vector. * @@ -24,7 +24,7 @@ * *
                                                                        See Also
                                                                        * - *

                                                                        {@link XrActionStateVector2f}, {@link XrBoundary2DFB}, {@link XrCompositionLayerEquirectKHR}, {@link XrFoveationConfigurationHTC}, {@link XrFoveationEyeTrackedStateMETA}, {@link XrHandTrackingMeshFB}, {@link XrPlaneDetectorPolygonBufferEXT}, {@link XrPosef}, {@link XrQuaternionf}, {@link XrVector3f}, {@link XrVector4f}, {@link XrVisibilityMaskKHR}, {@link EXTConformanceAutomation#xrSetInputDeviceStateVector2fEXT SetInputDeviceStateVector2fEXT}

                                                                        + *

                                                                        {@link XrActionStateVector2f}, {@link XrBoundary2DFB}, {@link XrCompositionLayerEquirectKHR}, {@link XrFoveationConfigurationHTC}, {@link XrFoveationEyeTrackedStateMETA}, {@link XrHandTrackingMeshFB}, {@link XrPosef}, {@link XrQuaternionf}, {@link XrVector3f}, {@link XrVector4f}, {@link XrVisibilityMaskKHR}, {@link EXTConformanceAutomation#xrSetInputDeviceStateVector2fEXT SetInputDeviceStateVector2fEXT}

                                                                        * *

                                                                        Layout

                                                                        * @@ -33,8 +33,8 @@ * float {@link #x}; * float {@link #y}; * } - */ -public class XrVector2f extends Struct implements NativeResource { + */ +public class XrVector2f extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -44,21 +44,21 @@ public class XrVector2f extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - X, - Y; + X, + Y; static { - Layout layout = __struct( - __member(4), + Layout layout = __struct( + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - X = layout.offsetof(0); - Y = layout.offsetof(1); - } + X = layout.offsetof(0); + Y = layout.offsetof(1); + } protected XrVector2f(long address, @Nullable ByteBuffer container) { super(address, container); @@ -81,24 +81,24 @@ public XrVector2f(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the x coordinate of the vector. */ - public float x() { return nx(address()); } - /** the y coordinate of the vector. */ - public float y() { return ny(address()); } - - /** Sets the specified value to the {@link #x} field. */ - public XrVector2f x(float value) { nx(address(), value); return this; } - /** Sets the specified value to the {@link #y} field. */ - public XrVector2f y(float value) { ny(address(), value); return this; } + + /** the x coordinate of the vector. */ + public float x() { return nx(address()); } + /** the y coordinate of the vector. */ + public float y() { return ny(address()); } + + /** Sets the specified value to the {@link #x} field. */ + public XrVector2f x(float value) { nx(address(), value); return this; } + /** Sets the specified value to the {@link #y} field. */ + public XrVector2f y(float value) { ny(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrVector2f set( - float x, + float x, float y - ) { - x(x); - y(y); + ) { + x(x); + y(y); return this; } @@ -227,18 +227,18 @@ public static XrVector2f.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #x}. */ - public static float nx(long struct) { return UNSAFE.getFloat(null, struct + XrVector2f.X); } - /** Unsafe version of {@link #y}. */ - public static float ny(long struct) { return UNSAFE.getFloat(null, struct + XrVector2f.Y); } - - /** Unsafe version of {@link #x(float) x}. */ - public static void nx(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector2f.X, value); } - /** Unsafe version of {@link #y(float) y}. */ - public static void ny(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector2f.Y, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #x}. */ + public static float nx(long struct) { return UNSAFE.getFloat(null, struct + XrVector2f.X); } + /** Unsafe version of {@link #y}. */ + public static float ny(long struct) { return UNSAFE.getFloat(null, struct + XrVector2f.Y); } + + /** Unsafe version of {@link #x(float) x}. */ + public static void nx(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector2f.X, value); } + /** Unsafe version of {@link #y(float) y}. */ + public static void ny(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector2f.Y, value); } + + // ----------------------------------- /** An array of {@link XrVector2f} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -275,16 +275,16 @@ protected Buffer self() { protected XrVector2f getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrVector2f#x} field. */ - public float x() { return XrVector2f.nx(address()); } - /** @return the value of the {@link XrVector2f#y} field. */ - public float y() { return XrVector2f.ny(address()); } - - /** Sets the specified value to the {@link XrVector2f#x} field. */ - public XrVector2f.Buffer x(float value) { XrVector2f.nx(address(), value); return this; } - /** Sets the specified value to the {@link XrVector2f#y} field. */ - public XrVector2f.Buffer y(float value) { XrVector2f.ny(address(), value); return this; } + + /** @return the value of the {@link XrVector2f#x} field. */ + public float x() { return XrVector2f.nx(address()); } + /** @return the value of the {@link XrVector2f#y} field. */ + public float y() { return XrVector2f.ny(address()); } + + /** Sets the specified value to the {@link XrVector2f#x} field. */ + public XrVector2f.Buffer x(float value) { XrVector2f.nx(address(), value); return this; } + /** Sets the specified value to the {@link XrVector2f#y} field. */ + public XrVector2f.Buffer y(float value) { XrVector2f.ny(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector3f.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector3f.java index 0496975790..6f8593af7f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector3f.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector3f.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Three-dimensional vector. * @@ -34,8 +34,8 @@ * float {@link #y}; * float {@link #z}; * } - */ -public class XrVector3f extends Struct implements NativeResource { + */ +public class XrVector3f extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -45,24 +45,24 @@ public class XrVector3f extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - X, - Y, - Z; + X, + Y, + Z; static { - Layout layout = __struct( - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - X = layout.offsetof(0); - Y = layout.offsetof(1); - Z = layout.offsetof(2); - } + X = layout.offsetof(0); + Y = layout.offsetof(1); + Z = layout.offsetof(2); + } protected XrVector3f(long address, @Nullable ByteBuffer container) { super(address, container); @@ -85,30 +85,30 @@ public XrVector3f(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the x coordinate of the vector. */ - public float x() { return nx(address()); } - /** the y coordinate of the vector. */ - public float y() { return ny(address()); } - /** the z coordinate of the vector. */ - public float z() { return nz(address()); } - - /** Sets the specified value to the {@link #x} field. */ - public XrVector3f x(float value) { nx(address(), value); return this; } - /** Sets the specified value to the {@link #y} field. */ - public XrVector3f y(float value) { ny(address(), value); return this; } - /** Sets the specified value to the {@link #z} field. */ - public XrVector3f z(float value) { nz(address(), value); return this; } + + /** the x coordinate of the vector. */ + public float x() { return nx(address()); } + /** the y coordinate of the vector. */ + public float y() { return ny(address()); } + /** the z coordinate of the vector. */ + public float z() { return nz(address()); } + + /** Sets the specified value to the {@link #x} field. */ + public XrVector3f x(float value) { nx(address(), value); return this; } + /** Sets the specified value to the {@link #y} field. */ + public XrVector3f y(float value) { ny(address(), value); return this; } + /** Sets the specified value to the {@link #z} field. */ + public XrVector3f z(float value) { nz(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrVector3f set( - float x, - float y, + float x, + float y, float z - ) { - x(x); - y(y); - z(z); + ) { + x(x); + y(y); + z(z); return this; } @@ -237,22 +237,22 @@ public static XrVector3f.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #x}. */ - public static float nx(long struct) { return UNSAFE.getFloat(null, struct + XrVector3f.X); } - /** Unsafe version of {@link #y}. */ - public static float ny(long struct) { return UNSAFE.getFloat(null, struct + XrVector3f.Y); } - /** Unsafe version of {@link #z}. */ - public static float nz(long struct) { return UNSAFE.getFloat(null, struct + XrVector3f.Z); } - - /** Unsafe version of {@link #x(float) x}. */ - public static void nx(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector3f.X, value); } - /** Unsafe version of {@link #y(float) y}. */ - public static void ny(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector3f.Y, value); } - /** Unsafe version of {@link #z(float) z}. */ - public static void nz(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector3f.Z, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #x}. */ + public static float nx(long struct) { return UNSAFE.getFloat(null, struct + XrVector3f.X); } + /** Unsafe version of {@link #y}. */ + public static float ny(long struct) { return UNSAFE.getFloat(null, struct + XrVector3f.Y); } + /** Unsafe version of {@link #z}. */ + public static float nz(long struct) { return UNSAFE.getFloat(null, struct + XrVector3f.Z); } + + /** Unsafe version of {@link #x(float) x}. */ + public static void nx(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector3f.X, value); } + /** Unsafe version of {@link #y(float) y}. */ + public static void ny(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector3f.Y, value); } + /** Unsafe version of {@link #z(float) z}. */ + public static void nz(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector3f.Z, value); } + + // ----------------------------------- /** An array of {@link XrVector3f} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -289,20 +289,20 @@ protected Buffer self() { protected XrVector3f getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrVector3f#x} field. */ - public float x() { return XrVector3f.nx(address()); } - /** @return the value of the {@link XrVector3f#y} field. */ - public float y() { return XrVector3f.ny(address()); } - /** @return the value of the {@link XrVector3f#z} field. */ - public float z() { return XrVector3f.nz(address()); } - - /** Sets the specified value to the {@link XrVector3f#x} field. */ - public XrVector3f.Buffer x(float value) { XrVector3f.nx(address(), value); return this; } - /** Sets the specified value to the {@link XrVector3f#y} field. */ - public XrVector3f.Buffer y(float value) { XrVector3f.ny(address(), value); return this; } - /** Sets the specified value to the {@link XrVector3f#z} field. */ - public XrVector3f.Buffer z(float value) { XrVector3f.nz(address(), value); return this; } + + /** @return the value of the {@link XrVector3f#x} field. */ + public float x() { return XrVector3f.nx(address()); } + /** @return the value of the {@link XrVector3f#y} field. */ + public float y() { return XrVector3f.ny(address()); } + /** @return the value of the {@link XrVector3f#z} field. */ + public float z() { return XrVector3f.nz(address()); } + + /** Sets the specified value to the {@link XrVector3f#x} field. */ + public XrVector3f.Buffer x(float value) { XrVector3f.nx(address(), value); return this; } + /** Sets the specified value to the {@link XrVector3f#y} field. */ + public XrVector3f.Buffer y(float value) { XrVector3f.ny(address(), value); return this; } + /** Sets the specified value to the {@link XrVector3f#z} field. */ + public XrVector3f.Buffer z(float value) { XrVector3f.nz(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector4f.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector4f.java index 384d02d0e2..b3cb9ffb2e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector4f.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector4f.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Four-dimensional vector. * @@ -35,8 +35,8 @@ * float {@link #z}; * float {@link #w}; * } - */ -public class XrVector4f extends Struct implements NativeResource { + */ +public class XrVector4f extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -46,27 +46,27 @@ public class XrVector4f extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - X, - Y, - Z, - W; + X, + Y, + Z, + W; static { - Layout layout = __struct( - __member(4), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(4), + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - X = layout.offsetof(0); - Y = layout.offsetof(1); - Z = layout.offsetof(2); - W = layout.offsetof(3); - } + X = layout.offsetof(0); + Y = layout.offsetof(1); + Z = layout.offsetof(2); + W = layout.offsetof(3); + } protected XrVector4f(long address, @Nullable ByteBuffer container) { super(address, container); @@ -89,36 +89,36 @@ public XrVector4f(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the x coordinate of the vector. */ - public float x() { return nx(address()); } - /** the y coordinate of the vector. */ - public float y() { return ny(address()); } - /** the z coordinate of the vector. */ - public float z() { return nz(address()); } - /** the w coordinate of the vector. */ - public float w() { return nw(address()); } - - /** Sets the specified value to the {@link #x} field. */ - public XrVector4f x(float value) { nx(address(), value); return this; } - /** Sets the specified value to the {@link #y} field. */ - public XrVector4f y(float value) { ny(address(), value); return this; } - /** Sets the specified value to the {@link #z} field. */ - public XrVector4f z(float value) { nz(address(), value); return this; } - /** Sets the specified value to the {@link #w} field. */ - public XrVector4f w(float value) { nw(address(), value); return this; } + + /** the x coordinate of the vector. */ + public float x() { return nx(address()); } + /** the y coordinate of the vector. */ + public float y() { return ny(address()); } + /** the z coordinate of the vector. */ + public float z() { return nz(address()); } + /** the w coordinate of the vector. */ + public float w() { return nw(address()); } + + /** Sets the specified value to the {@link #x} field. */ + public XrVector4f x(float value) { nx(address(), value); return this; } + /** Sets the specified value to the {@link #y} field. */ + public XrVector4f y(float value) { ny(address(), value); return this; } + /** Sets the specified value to the {@link #z} field. */ + public XrVector4f z(float value) { nz(address(), value); return this; } + /** Sets the specified value to the {@link #w} field. */ + public XrVector4f w(float value) { nw(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrVector4f set( - float x, - float y, - float z, + float x, + float y, + float z, float w - ) { - x(x); - y(y); - z(z); - w(w); + ) { + x(x); + y(y); + z(z); + w(w); return this; } @@ -247,26 +247,26 @@ public static XrVector4f.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #x}. */ - public static float nx(long struct) { return UNSAFE.getFloat(null, struct + XrVector4f.X); } - /** Unsafe version of {@link #y}. */ - public static float ny(long struct) { return UNSAFE.getFloat(null, struct + XrVector4f.Y); } - /** Unsafe version of {@link #z}. */ - public static float nz(long struct) { return UNSAFE.getFloat(null, struct + XrVector4f.Z); } - /** Unsafe version of {@link #w}. */ - public static float nw(long struct) { return UNSAFE.getFloat(null, struct + XrVector4f.W); } - - /** Unsafe version of {@link #x(float) x}. */ - public static void nx(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector4f.X, value); } - /** Unsafe version of {@link #y(float) y}. */ - public static void ny(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector4f.Y, value); } - /** Unsafe version of {@link #z(float) z}. */ - public static void nz(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector4f.Z, value); } - /** Unsafe version of {@link #w(float) w}. */ - public static void nw(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector4f.W, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #x}. */ + public static float nx(long struct) { return UNSAFE.getFloat(null, struct + XrVector4f.X); } + /** Unsafe version of {@link #y}. */ + public static float ny(long struct) { return UNSAFE.getFloat(null, struct + XrVector4f.Y); } + /** Unsafe version of {@link #z}. */ + public static float nz(long struct) { return UNSAFE.getFloat(null, struct + XrVector4f.Z); } + /** Unsafe version of {@link #w}. */ + public static float nw(long struct) { return UNSAFE.getFloat(null, struct + XrVector4f.W); } + + /** Unsafe version of {@link #x(float) x}. */ + public static void nx(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector4f.X, value); } + /** Unsafe version of {@link #y(float) y}. */ + public static void ny(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector4f.Y, value); } + /** Unsafe version of {@link #z(float) z}. */ + public static void nz(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector4f.Z, value); } + /** Unsafe version of {@link #w(float) w}. */ + public static void nw(long struct, float value) { UNSAFE.putFloat(null, struct + XrVector4f.W, value); } + + // ----------------------------------- /** An array of {@link XrVector4f} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -303,24 +303,24 @@ protected Buffer self() { protected XrVector4f getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrVector4f#x} field. */ - public float x() { return XrVector4f.nx(address()); } - /** @return the value of the {@link XrVector4f#y} field. */ - public float y() { return XrVector4f.ny(address()); } - /** @return the value of the {@link XrVector4f#z} field. */ - public float z() { return XrVector4f.nz(address()); } - /** @return the value of the {@link XrVector4f#w} field. */ - public float w() { return XrVector4f.nw(address()); } - - /** Sets the specified value to the {@link XrVector4f#x} field. */ - public XrVector4f.Buffer x(float value) { XrVector4f.nx(address(), value); return this; } - /** Sets the specified value to the {@link XrVector4f#y} field. */ - public XrVector4f.Buffer y(float value) { XrVector4f.ny(address(), value); return this; } - /** Sets the specified value to the {@link XrVector4f#z} field. */ - public XrVector4f.Buffer z(float value) { XrVector4f.nz(address(), value); return this; } - /** Sets the specified value to the {@link XrVector4f#w} field. */ - public XrVector4f.Buffer w(float value) { XrVector4f.nw(address(), value); return this; } + + /** @return the value of the {@link XrVector4f#x} field. */ + public float x() { return XrVector4f.nx(address()); } + /** @return the value of the {@link XrVector4f#y} field. */ + public float y() { return XrVector4f.ny(address()); } + /** @return the value of the {@link XrVector4f#z} field. */ + public float z() { return XrVector4f.nz(address()); } + /** @return the value of the {@link XrVector4f#w} field. */ + public float w() { return XrVector4f.nw(address()); } + + /** Sets the specified value to the {@link XrVector4f#x} field. */ + public XrVector4f.Buffer x(float value) { XrVector4f.nx(address(), value); return this; } + /** Sets the specified value to the {@link XrVector4f#y} field. */ + public XrVector4f.Buffer y(float value) { XrVector4f.ny(address(), value); return this; } + /** Sets the specified value to the {@link XrVector4f#z} field. */ + public XrVector4f.Buffer z(float value) { XrVector4f.nz(address(), value); return this; } + /** Sets the specified value to the {@link XrVector4f#w} field. */ + public XrVector4f.Buffer w(float value) { XrVector4f.nw(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector4sFB.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector4sFB.java index 4957d083d8..91e3d23317 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector4sFB.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVector4sFB.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * A four component short integer vector. * @@ -46,8 +46,8 @@ * int16_t z; * int16_t w; * } - */ -public class XrVector4sFB extends Struct implements NativeResource { + */ +public class XrVector4sFB extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -57,27 +57,27 @@ public class XrVector4sFB extends Struct implements NativeResource /** The struct member offsets. */ public static final int - X, - Y, - Z, - W; + X, + Y, + Z, + W; static { - Layout layout = __struct( - __member(2), - __member(2), - __member(2), + Layout layout = __struct( + __member(2), + __member(2), + __member(2), __member(2) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - X = layout.offsetof(0); - Y = layout.offsetof(1); - Z = layout.offsetof(2); - W = layout.offsetof(3); - } + X = layout.offsetof(0); + Y = layout.offsetof(1); + Z = layout.offsetof(2); + W = layout.offsetof(3); + } protected XrVector4sFB(long address, @Nullable ByteBuffer container) { super(address, container); @@ -100,40 +100,40 @@ public XrVector4sFB(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** @return the value of the {@code x} field. */ - @NativeType("int16_t") - public short x() { return nx(address()); } - /** @return the value of the {@code y} field. */ - @NativeType("int16_t") - public short y() { return ny(address()); } - /** @return the value of the {@code z} field. */ - @NativeType("int16_t") - public short z() { return nz(address()); } - /** @return the value of the {@code w} field. */ - @NativeType("int16_t") - public short w() { return nw(address()); } - - /** Sets the specified value to the {@code x} field. */ - public XrVector4sFB x(@NativeType("int16_t") short value) { nx(address(), value); return this; } - /** Sets the specified value to the {@code y} field. */ - public XrVector4sFB y(@NativeType("int16_t") short value) { ny(address(), value); return this; } - /** Sets the specified value to the {@code z} field. */ - public XrVector4sFB z(@NativeType("int16_t") short value) { nz(address(), value); return this; } - /** Sets the specified value to the {@code w} field. */ - public XrVector4sFB w(@NativeType("int16_t") short value) { nw(address(), value); return this; } + + /** @return the value of the {@code x} field. */ + @NativeType("int16_t") + public short x() { return nx(address()); } + /** @return the value of the {@code y} field. */ + @NativeType("int16_t") + public short y() { return ny(address()); } + /** @return the value of the {@code z} field. */ + @NativeType("int16_t") + public short z() { return nz(address()); } + /** @return the value of the {@code w} field. */ + @NativeType("int16_t") + public short w() { return nw(address()); } + + /** Sets the specified value to the {@code x} field. */ + public XrVector4sFB x(@NativeType("int16_t") short value) { nx(address(), value); return this; } + /** Sets the specified value to the {@code y} field. */ + public XrVector4sFB y(@NativeType("int16_t") short value) { ny(address(), value); return this; } + /** Sets the specified value to the {@code z} field. */ + public XrVector4sFB z(@NativeType("int16_t") short value) { nz(address(), value); return this; } + /** Sets the specified value to the {@code w} field. */ + public XrVector4sFB w(@NativeType("int16_t") short value) { nw(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrVector4sFB set( - short x, - short y, - short z, + short x, + short y, + short z, short w - ) { - x(x); - y(y); - z(z); - w(w); + ) { + x(x); + y(y); + z(z); + w(w); return this; } @@ -262,26 +262,26 @@ public static XrVector4sFB.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #x}. */ - public static short nx(long struct) { return UNSAFE.getShort(null, struct + XrVector4sFB.X); } - /** Unsafe version of {@link #y}. */ - public static short ny(long struct) { return UNSAFE.getShort(null, struct + XrVector4sFB.Y); } - /** Unsafe version of {@link #z}. */ - public static short nz(long struct) { return UNSAFE.getShort(null, struct + XrVector4sFB.Z); } - /** Unsafe version of {@link #w}. */ - public static short nw(long struct) { return UNSAFE.getShort(null, struct + XrVector4sFB.W); } - - /** Unsafe version of {@link #x(short) x}. */ - public static void nx(long struct, short value) { UNSAFE.putShort(null, struct + XrVector4sFB.X, value); } - /** Unsafe version of {@link #y(short) y}. */ - public static void ny(long struct, short value) { UNSAFE.putShort(null, struct + XrVector4sFB.Y, value); } - /** Unsafe version of {@link #z(short) z}. */ - public static void nz(long struct, short value) { UNSAFE.putShort(null, struct + XrVector4sFB.Z, value); } - /** Unsafe version of {@link #w(short) w}. */ - public static void nw(long struct, short value) { UNSAFE.putShort(null, struct + XrVector4sFB.W, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #x}. */ + public static short nx(long struct) { return UNSAFE.getShort(null, struct + XrVector4sFB.X); } + /** Unsafe version of {@link #y}. */ + public static short ny(long struct) { return UNSAFE.getShort(null, struct + XrVector4sFB.Y); } + /** Unsafe version of {@link #z}. */ + public static short nz(long struct) { return UNSAFE.getShort(null, struct + XrVector4sFB.Z); } + /** Unsafe version of {@link #w}. */ + public static short nw(long struct) { return UNSAFE.getShort(null, struct + XrVector4sFB.W); } + + /** Unsafe version of {@link #x(short) x}. */ + public static void nx(long struct, short value) { UNSAFE.putShort(null, struct + XrVector4sFB.X, value); } + /** Unsafe version of {@link #y(short) y}. */ + public static void ny(long struct, short value) { UNSAFE.putShort(null, struct + XrVector4sFB.Y, value); } + /** Unsafe version of {@link #z(short) z}. */ + public static void nz(long struct, short value) { UNSAFE.putShort(null, struct + XrVector4sFB.Z, value); } + /** Unsafe version of {@link #w(short) w}. */ + public static void nw(long struct, short value) { UNSAFE.putShort(null, struct + XrVector4sFB.W, value); } + + // ----------------------------------- /** An array of {@link XrVector4sFB} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -318,28 +318,28 @@ protected Buffer self() { protected XrVector4sFB getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code x} field. */ - @NativeType("int16_t") - public short x() { return XrVector4sFB.nx(address()); } - /** @return the value of the {@code y} field. */ - @NativeType("int16_t") - public short y() { return XrVector4sFB.ny(address()); } - /** @return the value of the {@code z} field. */ - @NativeType("int16_t") - public short z() { return XrVector4sFB.nz(address()); } - /** @return the value of the {@code w} field. */ - @NativeType("int16_t") - public short w() { return XrVector4sFB.nw(address()); } - - /** Sets the specified value to the {@code x} field. */ - public XrVector4sFB.Buffer x(@NativeType("int16_t") short value) { XrVector4sFB.nx(address(), value); return this; } - /** Sets the specified value to the {@code y} field. */ - public XrVector4sFB.Buffer y(@NativeType("int16_t") short value) { XrVector4sFB.ny(address(), value); return this; } - /** Sets the specified value to the {@code z} field. */ - public XrVector4sFB.Buffer z(@NativeType("int16_t") short value) { XrVector4sFB.nz(address(), value); return this; } - /** Sets the specified value to the {@code w} field. */ - public XrVector4sFB.Buffer w(@NativeType("int16_t") short value) { XrVector4sFB.nw(address(), value); return this; } + + /** @return the value of the {@code x} field. */ + @NativeType("int16_t") + public short x() { return XrVector4sFB.nx(address()); } + /** @return the value of the {@code y} field. */ + @NativeType("int16_t") + public short y() { return XrVector4sFB.ny(address()); } + /** @return the value of the {@code z} field. */ + @NativeType("int16_t") + public short z() { return XrVector4sFB.nz(address()); } + /** @return the value of the {@code w} field. */ + @NativeType("int16_t") + public short w() { return XrVector4sFB.nw(address()); } + + /** Sets the specified value to the {@code x} field. */ + public XrVector4sFB.Buffer x(@NativeType("int16_t") short value) { XrVector4sFB.nx(address(), value); return this; } + /** Sets the specified value to the {@code y} field. */ + public XrVector4sFB.Buffer y(@NativeType("int16_t") short value) { XrVector4sFB.ny(address(), value); return this; } + /** Sets the specified value to the {@code z} field. */ + public XrVector4sFB.Buffer z(@NativeType("int16_t") short value) { XrVector4sFB.nz(address(), value); return this; } + /** Sets the specified value to the {@code w} field. */ + public XrVector4sFB.Buffer w(@NativeType("int16_t") short value) { XrVector4sFB.nw(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrView.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrView.java index 2ea050bbff..09148dcf57 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrView.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrView.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Struct containing view projection state. * @@ -26,7 +26,7 @@ * * * *
                                                                        See Also
                                                                        @@ -42,8 +42,8 @@ * {@link XrPosef XrPosef} {@link #pose}; * {@link XrFovf XrFovf} {@link #fov}; * } - */ -public class XrView extends Struct implements NativeResource { + */ +public class XrView extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,27 +53,27 @@ public class XrView extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - TYPE, - NEXT, - POSE, - FOV; + TYPE, + NEXT, + POSE, + FOV; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(XrPosef.SIZEOF, XrPosef.ALIGNOF), __member(XrFovf.SIZEOF, XrFovf.ALIGNOF) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - POSE = layout.offsetof(2); - FOV = layout.offsetof(3); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + POSE = layout.offsetof(2); + FOV = layout.offsetof(3); + } protected XrView(long address, @Nullable ByteBuffer container) { super(address, container); @@ -96,44 +96,44 @@ public XrView(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** an {@link XrPosef} defining the location and orientation of the view in the {@code space} specified by the {@link XR10#xrLocateViews LocateViews} function. */ - public XrPosef pose() { return npose(address()); } - /** the {@link XrFovf} for the four sides of the projection. */ - public XrFovf fov() { return nfov(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrView type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_VIEW TYPE_VIEW} value to the {@link #type} field. */ - public XrView type$Default() { return type(XR10.XR_TYPE_VIEW); } - /** Sets the specified value to the {@link #next} field. */ - public XrView next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ - public XrView pose(XrPosef value) { npose(address(), value); return this; } - /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrView pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrFovf} to the {@link #fov} field. */ - public XrView fov(XrFovf value) { nfov(address(), value); return this; } - /** Passes the {@link #fov} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrView fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** an {@link XrPosef} defining the location and orientation of the view in the {@code space} specified by the {@link XR10#xrLocateViews LocateViews} function. */ + public XrPosef pose() { return npose(address()); } + /** the {@link XrFovf} for the four sides of the projection. */ + public XrFovf fov() { return nfov(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrView type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_VIEW TYPE_VIEW} value to the {@link #type} field. */ + public XrView type$Default() { return type(XR10.XR_TYPE_VIEW); } + /** Sets the specified value to the {@link #next} field. */ + public XrView next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link #pose} field. */ + public XrView pose(XrPosef value) { npose(address(), value); return this; } + /** Passes the {@link #pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrView pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrFovf} to the {@link #fov} field. */ + public XrView fov(XrFovf value) { nfov(address(), value); return this; } + /** Passes the {@link #fov} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrView fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } /** Initializes this struct with the specified values. */ public XrView set( - int type, - long next, - XrPosef pose, + int type, + long next, + XrPosef pose, XrFovf fov - ) { - type(type); - next(next); - pose(pose); - fov(fov); + ) { + type(type); + next(next); + pose(pose); + fov(fov); return this; } @@ -262,26 +262,26 @@ public static XrView.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrView.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrView.NEXT); } - /** Unsafe version of {@link #pose}. */ - public static XrPosef npose(long struct) { return XrPosef.create(struct + XrView.POSE); } - /** Unsafe version of {@link #fov}. */ - public static XrFovf nfov(long struct) { return XrFovf.create(struct + XrView.FOV); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrView.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrView.NEXT, value); } - /** Unsafe version of {@link #pose(XrPosef) pose}. */ - public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrView.POSE, XrPosef.SIZEOF); } - /** Unsafe version of {@link #fov(XrFovf) fov}. */ - public static void nfov(long struct, XrFovf value) { memCopy(value.address(), struct + XrView.FOV, XrFovf.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrView.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrView.NEXT); } + /** Unsafe version of {@link #pose}. */ + public static XrPosef npose(long struct) { return XrPosef.create(struct + XrView.POSE); } + /** Unsafe version of {@link #fov}. */ + public static XrFovf nfov(long struct) { return XrFovf.create(struct + XrView.FOV); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrView.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrView.NEXT, value); } + /** Unsafe version of {@link #pose(XrPosef) pose}. */ + public static void npose(long struct, XrPosef value) { memCopy(value.address(), struct + XrView.POSE, XrPosef.SIZEOF); } + /** Unsafe version of {@link #fov(XrFovf) fov}. */ + public static void nfov(long struct, XrFovf value) { memCopy(value.address(), struct + XrView.FOV, XrFovf.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrView} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -318,32 +318,32 @@ protected Buffer self() { protected XrView getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrView#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrView.ntype(address()); } - /** @return the value of the {@link XrView#next} field. */ - @NativeType("void *") - public long next() { return XrView.nnext(address()); } - /** @return a {@link XrPosef} view of the {@link XrView#pose} field. */ - public XrPosef pose() { return XrView.npose(address()); } - /** @return a {@link XrFovf} view of the {@link XrView#fov} field. */ - public XrFovf fov() { return XrView.nfov(address()); } - - /** Sets the specified value to the {@link XrView#type} field. */ - public XrView.Buffer type(@NativeType("XrStructureType") int value) { XrView.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_VIEW TYPE_VIEW} value to the {@link XrView#type} field. */ - public XrView.Buffer type$Default() { return type(XR10.XR_TYPE_VIEW); } - /** Sets the specified value to the {@link XrView#next} field. */ - public XrView.Buffer next(@NativeType("void *") long value) { XrView.nnext(address(), value); return this; } - /** Copies the specified {@link XrPosef} to the {@link XrView#pose} field. */ - public XrView.Buffer pose(XrPosef value) { XrView.npose(address(), value); return this; } - /** Passes the {@link XrView#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrView.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } - /** Copies the specified {@link XrFovf} to the {@link XrView#fov} field. */ - public XrView.Buffer fov(XrFovf value) { XrView.nfov(address(), value); return this; } - /** Passes the {@link XrView#fov} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrView.Buffer fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } + + /** @return the value of the {@link XrView#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrView.ntype(address()); } + /** @return the value of the {@link XrView#next} field. */ + @NativeType("void *") + public long next() { return XrView.nnext(address()); } + /** @return a {@link XrPosef} view of the {@link XrView#pose} field. */ + public XrPosef pose() { return XrView.npose(address()); } + /** @return a {@link XrFovf} view of the {@link XrView#fov} field. */ + public XrFovf fov() { return XrView.nfov(address()); } + + /** Sets the specified value to the {@link XrView#type} field. */ + public XrView.Buffer type(@NativeType("XrStructureType") int value) { XrView.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_VIEW TYPE_VIEW} value to the {@link XrView#type} field. */ + public XrView.Buffer type$Default() { return type(XR10.XR_TYPE_VIEW); } + /** Sets the specified value to the {@link XrView#next} field. */ + public XrView.Buffer next(@NativeType("void *") long value) { XrView.nnext(address(), value); return this; } + /** Copies the specified {@link XrPosef} to the {@link XrView#pose} field. */ + public XrView.Buffer pose(XrPosef value) { XrView.npose(address(), value); return this; } + /** Passes the {@link XrView#pose} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrView.Buffer pose(java.util.function.Consumer consumer) { consumer.accept(pose()); return this; } + /** Copies the specified {@link XrFovf} to the {@link XrView#fov} field. */ + public XrView.Buffer fov(XrFovf value) { XrView.nfov(address(), value); return this; } + /** Passes the {@link XrView#fov} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrView.Buffer fov(java.util.function.Consumer consumer) { consumer.accept(fov()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationDepthRangeEXT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationDepthRangeEXT.java index 1f157bf324..677787a20a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationDepthRangeEXT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationDepthRangeEXT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * View configuration depth range information. * @@ -27,7 +27,7 @@ *
                                                                          *
                                                                        • The {@link EXTViewConfigurationDepthRange XR_EXT_view_configuration_depth_range} extension must be enabled prior to using {@link XrViewConfigurationDepthRangeEXT}
                                                                        • *
                                                                        • {@code type} must be {@link EXTViewConfigurationDepthRange#XR_TYPE_VIEW_CONFIGURATION_DEPTH_RANGE_EXT TYPE_VIEW_CONFIGURATION_DEPTH_RANGE_EXT}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        * *
                                                                        See Also
                                                                        @@ -45,8 +45,8 @@ * float {@link #recommendedFarZ}; * float {@link #maxFarZ}; * } - */ -public class XrViewConfigurationDepthRangeEXT extends Struct implements NativeResource { + */ +public class XrViewConfigurationDepthRangeEXT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,33 +56,33 @@ public class XrViewConfigurationDepthRangeEXT extends Struct implements NativeResource { @@ -343,36 +343,36 @@ protected Buffer self() { protected XrViewConfigurationDepthRangeEXT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrViewConfigurationDepthRangeEXT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrViewConfigurationDepthRangeEXT.ntype(address()); } - /** @return the value of the {@link XrViewConfigurationDepthRangeEXT#next} field. */ - @NativeType("void *") - public long next() { return XrViewConfigurationDepthRangeEXT.nnext(address()); } - /** @return the value of the {@link XrViewConfigurationDepthRangeEXT#recommendedNearZ} field. */ - public float recommendedNearZ() { return XrViewConfigurationDepthRangeEXT.nrecommendedNearZ(address()); } - /** @return the value of the {@link XrViewConfigurationDepthRangeEXT#minNearZ} field. */ - public float minNearZ() { return XrViewConfigurationDepthRangeEXT.nminNearZ(address()); } - /** @return the value of the {@link XrViewConfigurationDepthRangeEXT#recommendedFarZ} field. */ - public float recommendedFarZ() { return XrViewConfigurationDepthRangeEXT.nrecommendedFarZ(address()); } - /** @return the value of the {@link XrViewConfigurationDepthRangeEXT#maxFarZ} field. */ - public float maxFarZ() { return XrViewConfigurationDepthRangeEXT.nmaxFarZ(address()); } - - /** Sets the specified value to the {@link XrViewConfigurationDepthRangeEXT#type} field. */ - public XrViewConfigurationDepthRangeEXT.Buffer type(@NativeType("XrStructureType") int value) { XrViewConfigurationDepthRangeEXT.ntype(address(), value); return this; } - /** Sets the {@link EXTViewConfigurationDepthRange#XR_TYPE_VIEW_CONFIGURATION_DEPTH_RANGE_EXT TYPE_VIEW_CONFIGURATION_DEPTH_RANGE_EXT} value to the {@link XrViewConfigurationDepthRangeEXT#type} field. */ - public XrViewConfigurationDepthRangeEXT.Buffer type$Default() { return type(EXTViewConfigurationDepthRange.XR_TYPE_VIEW_CONFIGURATION_DEPTH_RANGE_EXT); } - /** Sets the specified value to the {@link XrViewConfigurationDepthRangeEXT#next} field. */ - public XrViewConfigurationDepthRangeEXT.Buffer next(@NativeType("void *") long value) { XrViewConfigurationDepthRangeEXT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrViewConfigurationDepthRangeEXT#recommendedNearZ} field. */ - public XrViewConfigurationDepthRangeEXT.Buffer recommendedNearZ(float value) { XrViewConfigurationDepthRangeEXT.nrecommendedNearZ(address(), value); return this; } - /** Sets the specified value to the {@link XrViewConfigurationDepthRangeEXT#minNearZ} field. */ - public XrViewConfigurationDepthRangeEXT.Buffer minNearZ(float value) { XrViewConfigurationDepthRangeEXT.nminNearZ(address(), value); return this; } - /** Sets the specified value to the {@link XrViewConfigurationDepthRangeEXT#recommendedFarZ} field. */ - public XrViewConfigurationDepthRangeEXT.Buffer recommendedFarZ(float value) { XrViewConfigurationDepthRangeEXT.nrecommendedFarZ(address(), value); return this; } - /** Sets the specified value to the {@link XrViewConfigurationDepthRangeEXT#maxFarZ} field. */ - public XrViewConfigurationDepthRangeEXT.Buffer maxFarZ(float value) { XrViewConfigurationDepthRangeEXT.nmaxFarZ(address(), value); return this; } + + /** @return the value of the {@link XrViewConfigurationDepthRangeEXT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrViewConfigurationDepthRangeEXT.ntype(address()); } + /** @return the value of the {@link XrViewConfigurationDepthRangeEXT#next} field. */ + @NativeType("void *") + public long next() { return XrViewConfigurationDepthRangeEXT.nnext(address()); } + /** @return the value of the {@link XrViewConfigurationDepthRangeEXT#recommendedNearZ} field. */ + public float recommendedNearZ() { return XrViewConfigurationDepthRangeEXT.nrecommendedNearZ(address()); } + /** @return the value of the {@link XrViewConfigurationDepthRangeEXT#minNearZ} field. */ + public float minNearZ() { return XrViewConfigurationDepthRangeEXT.nminNearZ(address()); } + /** @return the value of the {@link XrViewConfigurationDepthRangeEXT#recommendedFarZ} field. */ + public float recommendedFarZ() { return XrViewConfigurationDepthRangeEXT.nrecommendedFarZ(address()); } + /** @return the value of the {@link XrViewConfigurationDepthRangeEXT#maxFarZ} field. */ + public float maxFarZ() { return XrViewConfigurationDepthRangeEXT.nmaxFarZ(address()); } + + /** Sets the specified value to the {@link XrViewConfigurationDepthRangeEXT#type} field. */ + public XrViewConfigurationDepthRangeEXT.Buffer type(@NativeType("XrStructureType") int value) { XrViewConfigurationDepthRangeEXT.ntype(address(), value); return this; } + /** Sets the {@link EXTViewConfigurationDepthRange#XR_TYPE_VIEW_CONFIGURATION_DEPTH_RANGE_EXT TYPE_VIEW_CONFIGURATION_DEPTH_RANGE_EXT} value to the {@link XrViewConfigurationDepthRangeEXT#type} field. */ + public XrViewConfigurationDepthRangeEXT.Buffer type$Default() { return type(EXTViewConfigurationDepthRange.XR_TYPE_VIEW_CONFIGURATION_DEPTH_RANGE_EXT); } + /** Sets the specified value to the {@link XrViewConfigurationDepthRangeEXT#next} field. */ + public XrViewConfigurationDepthRangeEXT.Buffer next(@NativeType("void *") long value) { XrViewConfigurationDepthRangeEXT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrViewConfigurationDepthRangeEXT#recommendedNearZ} field. */ + public XrViewConfigurationDepthRangeEXT.Buffer recommendedNearZ(float value) { XrViewConfigurationDepthRangeEXT.nrecommendedNearZ(address(), value); return this; } + /** Sets the specified value to the {@link XrViewConfigurationDepthRangeEXT#minNearZ} field. */ + public XrViewConfigurationDepthRangeEXT.Buffer minNearZ(float value) { XrViewConfigurationDepthRangeEXT.nminNearZ(address(), value); return this; } + /** Sets the specified value to the {@link XrViewConfigurationDepthRangeEXT#recommendedFarZ} field. */ + public XrViewConfigurationDepthRangeEXT.Buffer recommendedFarZ(float value) { XrViewConfigurationDepthRangeEXT.nrecommendedFarZ(address(), value); return this; } + /** Sets the specified value to the {@link XrViewConfigurationDepthRangeEXT#maxFarZ} field. */ + public XrViewConfigurationDepthRangeEXT.Buffer maxFarZ(float value) { XrViewConfigurationDepthRangeEXT.nmaxFarZ(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationProperties.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationProperties.java index 658221156a..6170ef4a41 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationProperties.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationProperties.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Detailed configuration properties for an XrViewConfigurationProperties. * @@ -22,7 +22,7 @@ * *
                                                                          *
                                                                        • {@code type} must be {@link XR10#XR_TYPE_VIEW_CONFIGURATION_PROPERTIES TYPE_VIEW_CONFIGURATION_PROPERTIES}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        • {@code viewConfigurationType} must be a valid {@code XrViewConfigurationType} value
                                                                        • *
                                                                        * @@ -39,8 +39,8 @@ * XrViewConfigurationType {@link #viewConfigurationType}; * XrBool32 {@link #fovMutable}; * } - */ -public class XrViewConfigurationProperties extends Struct implements NativeResource { + */ +public class XrViewConfigurationProperties extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,27 +50,27 @@ public class XrViewConfigurationProperties extends Struct implements NativeResource { @@ -313,30 +313,30 @@ protected Buffer self() { protected XrViewConfigurationProperties getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrViewConfigurationProperties#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrViewConfigurationProperties.ntype(address()); } - /** @return the value of the {@link XrViewConfigurationProperties#next} field. */ - @NativeType("void *") - public long next() { return XrViewConfigurationProperties.nnext(address()); } - /** @return the value of the {@link XrViewConfigurationProperties#viewConfigurationType} field. */ - @NativeType("XrViewConfigurationType") - public int viewConfigurationType() { return XrViewConfigurationProperties.nviewConfigurationType(address()); } - /** @return the value of the {@link XrViewConfigurationProperties#fovMutable} field. */ - @NativeType("XrBool32") - public boolean fovMutable() { return XrViewConfigurationProperties.nfovMutable(address()) != 0; } - - /** Sets the specified value to the {@link XrViewConfigurationProperties#type} field. */ - public XrViewConfigurationProperties.Buffer type(@NativeType("XrStructureType") int value) { XrViewConfigurationProperties.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_VIEW_CONFIGURATION_PROPERTIES TYPE_VIEW_CONFIGURATION_PROPERTIES} value to the {@link XrViewConfigurationProperties#type} field. */ - public XrViewConfigurationProperties.Buffer type$Default() { return type(XR10.XR_TYPE_VIEW_CONFIGURATION_PROPERTIES); } - /** Sets the specified value to the {@link XrViewConfigurationProperties#next} field. */ - public XrViewConfigurationProperties.Buffer next(@NativeType("void *") long value) { XrViewConfigurationProperties.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrViewConfigurationProperties#viewConfigurationType} field. */ - public XrViewConfigurationProperties.Buffer viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { XrViewConfigurationProperties.nviewConfigurationType(address(), value); return this; } - /** Sets the specified value to the {@link XrViewConfigurationProperties#fovMutable} field. */ - public XrViewConfigurationProperties.Buffer fovMutable(@NativeType("XrBool32") boolean value) { XrViewConfigurationProperties.nfovMutable(address(), value ? 1 : 0); return this; } + + /** @return the value of the {@link XrViewConfigurationProperties#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrViewConfigurationProperties.ntype(address()); } + /** @return the value of the {@link XrViewConfigurationProperties#next} field. */ + @NativeType("void *") + public long next() { return XrViewConfigurationProperties.nnext(address()); } + /** @return the value of the {@link XrViewConfigurationProperties#viewConfigurationType} field. */ + @NativeType("XrViewConfigurationType") + public int viewConfigurationType() { return XrViewConfigurationProperties.nviewConfigurationType(address()); } + /** @return the value of the {@link XrViewConfigurationProperties#fovMutable} field. */ + @NativeType("XrBool32") + public boolean fovMutable() { return XrViewConfigurationProperties.nfovMutable(address()) != 0; } + + /** Sets the specified value to the {@link XrViewConfigurationProperties#type} field. */ + public XrViewConfigurationProperties.Buffer type(@NativeType("XrStructureType") int value) { XrViewConfigurationProperties.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_VIEW_CONFIGURATION_PROPERTIES TYPE_VIEW_CONFIGURATION_PROPERTIES} value to the {@link XrViewConfigurationProperties#type} field. */ + public XrViewConfigurationProperties.Buffer type$Default() { return type(XR10.XR_TYPE_VIEW_CONFIGURATION_PROPERTIES); } + /** Sets the specified value to the {@link XrViewConfigurationProperties#next} field. */ + public XrViewConfigurationProperties.Buffer next(@NativeType("void *") long value) { XrViewConfigurationProperties.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrViewConfigurationProperties#viewConfigurationType} field. */ + public XrViewConfigurationProperties.Buffer viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { XrViewConfigurationProperties.nviewConfigurationType(address(), value); return this; } + /** Sets the specified value to the {@link XrViewConfigurationProperties#fovMutable} field. */ + public XrViewConfigurationProperties.Buffer fovMutable(@NativeType("XrBool32") boolean value) { XrViewConfigurationProperties.nfovMutable(address(), value ? 1 : 0); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationView.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationView.java index f1479b56f7..ccb81921f0 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationView.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationView.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Individual view configuration. * @@ -22,13 +22,13 @@ * *

                                                                        See {@link XrSwapchainSubImage} for more information about {@code imageRect} values, and {@link XrSwapchainCreateInfo} for more information about creating swapchains appropriately sized to support those {@code imageRect} values.

                                                                        * - *

                                                                        The array of {@link XrViewConfigurationView} returned by the runtime must adhere to the rules defined in {@code XrViewConfigurationType}, such as the count and association to the left and right eyes.

                                                                        + *

                                                                        The array of {@link XrViewConfigurationView} returned by the runtime must adhere to the rules defined in {@code XrViewConfigurationType}, such as the count and association to the left and right eyes.

                                                                        * *
                                                                        Valid Usage (Implicit)
                                                                        * *
                                                                          *
                                                                        • {@code type} must be {@link XR10#XR_TYPE_VIEW_CONFIGURATION_VIEW TYPE_VIEW_CONFIGURATION_VIEW}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrFoveatedViewConfigurationViewVARJO}, {@link XrViewConfigurationDepthRangeEXT}, {@link XrViewConfigurationViewFovEPIC}
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrFoveatedViewConfigurationViewVARJO}, {@link XrViewConfigurationDepthRangeEXT}, {@link XrViewConfigurationViewFovEPIC}
                                                                        • *
                                                                        * *
                                                                        See Also
                                                                        @@ -48,8 +48,8 @@ * uint32_t {@link #recommendedSwapchainSampleCount}; * uint32_t {@link #maxSwapchainSampleCount}; * } - */ -public class XrViewConfigurationView extends Struct implements NativeResource { + */ +public class XrViewConfigurationView extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -59,39 +59,39 @@ public class XrViewConfigurationView extends Struct imp /** The struct member offsets. */ public static final int - TYPE, - NEXT, - RECOMMENDEDIMAGERECTWIDTH, - MAXIMAGERECTWIDTH, - RECOMMENDEDIMAGERECTHEIGHT, - MAXIMAGERECTHEIGHT, - RECOMMENDEDSWAPCHAINSAMPLECOUNT, - MAXSWAPCHAINSAMPLECOUNT; + TYPE, + NEXT, + RECOMMENDEDIMAGERECTWIDTH, + MAXIMAGERECTWIDTH, + RECOMMENDEDIMAGERECTHEIGHT, + MAXIMAGERECTHEIGHT, + RECOMMENDEDSWAPCHAINSAMPLECOUNT, + MAXSWAPCHAINSAMPLECOUNT; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), - __member(4), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), + __member(4), + __member(4), + __member(4), __member(4) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - RECOMMENDEDIMAGERECTWIDTH = layout.offsetof(2); - MAXIMAGERECTWIDTH = layout.offsetof(3); - RECOMMENDEDIMAGERECTHEIGHT = layout.offsetof(4); - MAXIMAGERECTHEIGHT = layout.offsetof(5); - RECOMMENDEDSWAPCHAINSAMPLECOUNT = layout.offsetof(6); - MAXSWAPCHAINSAMPLECOUNT = layout.offsetof(7); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + RECOMMENDEDIMAGERECTWIDTH = layout.offsetof(2); + MAXIMAGERECTWIDTH = layout.offsetof(3); + RECOMMENDEDIMAGERECTHEIGHT = layout.offsetof(4); + MAXIMAGERECTHEIGHT = layout.offsetof(5); + RECOMMENDEDSWAPCHAINSAMPLECOUNT = layout.offsetof(6); + MAXSWAPCHAINSAMPLECOUNT = layout.offsetof(7); + } protected XrViewConfigurationView(long address, @Nullable ByteBuffer container) { super(address, container); @@ -114,76 +114,76 @@ public XrViewConfigurationView(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** the optimal width of {@code imageRect} to use when rendering this view into a swapchain. */ - @NativeType("uint32_t") - public int recommendedImageRectWidth() { return nrecommendedImageRectWidth(address()); } - /** the maximum width of {@code imageRect} supported when rendering this view into a swapchain. */ - @NativeType("uint32_t") - public int maxImageRectWidth() { return nmaxImageRectWidth(address()); } - /** the optimal height of {@code imageRect} to use when rendering this view into a swapchain. */ - @NativeType("uint32_t") - public int recommendedImageRectHeight() { return nrecommendedImageRectHeight(address()); } - /** the maximum height of {@code imageRect} supported when rendering this view into a swapchain. */ - @NativeType("uint32_t") - public int maxImageRectHeight() { return nmaxImageRectHeight(address()); } - /** the recommended number of sub-data element samples to create for each swapchain image that will be rendered into for this view. */ - @NativeType("uint32_t") - public int recommendedSwapchainSampleCount() { return nrecommendedSwapchainSampleCount(address()); } - /** the maximum number of sub-data element samples supported for swapchain images that will be rendered into for this view. */ - @NativeType("uint32_t") - public int maxSwapchainSampleCount() { return nmaxSwapchainSampleCount(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrViewConfigurationView type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_VIEW_CONFIGURATION_VIEW TYPE_VIEW_CONFIGURATION_VIEW} value to the {@link #type} field. */ - public XrViewConfigurationView type$Default() { return type(XR10.XR_TYPE_VIEW_CONFIGURATION_VIEW); } - /** Sets the specified value to the {@link #next} field. */ - public XrViewConfigurationView next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrFoveatedViewConfigurationViewVARJO} value to the {@code next} chain. */ - public XrViewConfigurationView next(XrFoveatedViewConfigurationViewVARJO value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrViewConfigurationDepthRangeEXT} value to the {@code next} chain. */ - public XrViewConfigurationView next(XrViewConfigurationDepthRangeEXT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrViewConfigurationViewFovEPIC} value to the {@code next} chain. */ - public XrViewConfigurationView next(XrViewConfigurationViewFovEPIC value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #recommendedImageRectWidth} field. */ - public XrViewConfigurationView recommendedImageRectWidth(@NativeType("uint32_t") int value) { nrecommendedImageRectWidth(address(), value); return this; } - /** Sets the specified value to the {@link #maxImageRectWidth} field. */ - public XrViewConfigurationView maxImageRectWidth(@NativeType("uint32_t") int value) { nmaxImageRectWidth(address(), value); return this; } - /** Sets the specified value to the {@link #recommendedImageRectHeight} field. */ - public XrViewConfigurationView recommendedImageRectHeight(@NativeType("uint32_t") int value) { nrecommendedImageRectHeight(address(), value); return this; } - /** Sets the specified value to the {@link #maxImageRectHeight} field. */ - public XrViewConfigurationView maxImageRectHeight(@NativeType("uint32_t") int value) { nmaxImageRectHeight(address(), value); return this; } - /** Sets the specified value to the {@link #recommendedSwapchainSampleCount} field. */ - public XrViewConfigurationView recommendedSwapchainSampleCount(@NativeType("uint32_t") int value) { nrecommendedSwapchainSampleCount(address(), value); return this; } - /** Sets the specified value to the {@link #maxSwapchainSampleCount} field. */ - public XrViewConfigurationView maxSwapchainSampleCount(@NativeType("uint32_t") int value) { nmaxSwapchainSampleCount(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the optimal width of {@code imageRect} to use when rendering this view into a swapchain. */ + @NativeType("uint32_t") + public int recommendedImageRectWidth() { return nrecommendedImageRectWidth(address()); } + /** the maximum width of {@code imageRect} supported when rendering this view into a swapchain. */ + @NativeType("uint32_t") + public int maxImageRectWidth() { return nmaxImageRectWidth(address()); } + /** the optimal height of {@code imageRect} to use when rendering this view into a swapchain. */ + @NativeType("uint32_t") + public int recommendedImageRectHeight() { return nrecommendedImageRectHeight(address()); } + /** the maximum height of {@code imageRect} supported when rendering this view into a swapchain. */ + @NativeType("uint32_t") + public int maxImageRectHeight() { return nmaxImageRectHeight(address()); } + /** the recommended number of sub-data element samples to create for each swapchain image that will be rendered into for this view. */ + @NativeType("uint32_t") + public int recommendedSwapchainSampleCount() { return nrecommendedSwapchainSampleCount(address()); } + /** the maximum number of sub-data element samples supported for swapchain images that will be rendered into for this view. */ + @NativeType("uint32_t") + public int maxSwapchainSampleCount() { return nmaxSwapchainSampleCount(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrViewConfigurationView type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_VIEW_CONFIGURATION_VIEW TYPE_VIEW_CONFIGURATION_VIEW} value to the {@link #type} field. */ + public XrViewConfigurationView type$Default() { return type(XR10.XR_TYPE_VIEW_CONFIGURATION_VIEW); } + /** Sets the specified value to the {@link #next} field. */ + public XrViewConfigurationView next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrFoveatedViewConfigurationViewVARJO} value to the {@code next} chain. */ + public XrViewConfigurationView next(XrFoveatedViewConfigurationViewVARJO value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrViewConfigurationDepthRangeEXT} value to the {@code next} chain. */ + public XrViewConfigurationView next(XrViewConfigurationDepthRangeEXT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrViewConfigurationViewFovEPIC} value to the {@code next} chain. */ + public XrViewConfigurationView next(XrViewConfigurationViewFovEPIC value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #recommendedImageRectWidth} field. */ + public XrViewConfigurationView recommendedImageRectWidth(@NativeType("uint32_t") int value) { nrecommendedImageRectWidth(address(), value); return this; } + /** Sets the specified value to the {@link #maxImageRectWidth} field. */ + public XrViewConfigurationView maxImageRectWidth(@NativeType("uint32_t") int value) { nmaxImageRectWidth(address(), value); return this; } + /** Sets the specified value to the {@link #recommendedImageRectHeight} field. */ + public XrViewConfigurationView recommendedImageRectHeight(@NativeType("uint32_t") int value) { nrecommendedImageRectHeight(address(), value); return this; } + /** Sets the specified value to the {@link #maxImageRectHeight} field. */ + public XrViewConfigurationView maxImageRectHeight(@NativeType("uint32_t") int value) { nmaxImageRectHeight(address(), value); return this; } + /** Sets the specified value to the {@link #recommendedSwapchainSampleCount} field. */ + public XrViewConfigurationView recommendedSwapchainSampleCount(@NativeType("uint32_t") int value) { nrecommendedSwapchainSampleCount(address(), value); return this; } + /** Sets the specified value to the {@link #maxSwapchainSampleCount} field. */ + public XrViewConfigurationView maxSwapchainSampleCount(@NativeType("uint32_t") int value) { nmaxSwapchainSampleCount(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrViewConfigurationView set( - int type, - long next, - int recommendedImageRectWidth, - int maxImageRectWidth, - int recommendedImageRectHeight, - int maxImageRectHeight, - int recommendedSwapchainSampleCount, + int type, + long next, + int recommendedImageRectWidth, + int maxImageRectWidth, + int recommendedImageRectHeight, + int maxImageRectHeight, + int recommendedSwapchainSampleCount, int maxSwapchainSampleCount - ) { - type(type); - next(next); - recommendedImageRectWidth(recommendedImageRectWidth); - maxImageRectWidth(maxImageRectWidth); - recommendedImageRectHeight(recommendedImageRectHeight); - maxImageRectHeight(maxImageRectHeight); - recommendedSwapchainSampleCount(recommendedSwapchainSampleCount); - maxSwapchainSampleCount(maxSwapchainSampleCount); + ) { + type(type); + next(next); + recommendedImageRectWidth(recommendedImageRectWidth); + maxImageRectWidth(maxImageRectWidth); + recommendedImageRectHeight(recommendedImageRectHeight); + maxImageRectHeight(maxImageRectHeight); + recommendedSwapchainSampleCount(recommendedSwapchainSampleCount); + maxSwapchainSampleCount(maxSwapchainSampleCount); return this; } @@ -312,42 +312,42 @@ public static XrViewConfigurationView.Buffer calloc(int capacity, MemoryStack st } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrViewConfigurationView.NEXT); } - /** Unsafe version of {@link #recommendedImageRectWidth}. */ - public static int nrecommendedImageRectWidth(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.RECOMMENDEDIMAGERECTWIDTH); } - /** Unsafe version of {@link #maxImageRectWidth}. */ - public static int nmaxImageRectWidth(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.MAXIMAGERECTWIDTH); } - /** Unsafe version of {@link #recommendedImageRectHeight}. */ - public static int nrecommendedImageRectHeight(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.RECOMMENDEDIMAGERECTHEIGHT); } - /** Unsafe version of {@link #maxImageRectHeight}. */ - public static int nmaxImageRectHeight(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.MAXIMAGERECTHEIGHT); } - /** Unsafe version of {@link #recommendedSwapchainSampleCount}. */ - public static int nrecommendedSwapchainSampleCount(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.RECOMMENDEDSWAPCHAINSAMPLECOUNT); } - /** Unsafe version of {@link #maxSwapchainSampleCount}. */ - public static int nmaxSwapchainSampleCount(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.MAXSWAPCHAINSAMPLECOUNT); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrViewConfigurationView.NEXT, value); } - /** Unsafe version of {@link #recommendedImageRectWidth(int) recommendedImageRectWidth}. */ - public static void nrecommendedImageRectWidth(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.RECOMMENDEDIMAGERECTWIDTH, value); } - /** Unsafe version of {@link #maxImageRectWidth(int) maxImageRectWidth}. */ - public static void nmaxImageRectWidth(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.MAXIMAGERECTWIDTH, value); } - /** Unsafe version of {@link #recommendedImageRectHeight(int) recommendedImageRectHeight}. */ - public static void nrecommendedImageRectHeight(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.RECOMMENDEDIMAGERECTHEIGHT, value); } - /** Unsafe version of {@link #maxImageRectHeight(int) maxImageRectHeight}. */ - public static void nmaxImageRectHeight(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.MAXIMAGERECTHEIGHT, value); } - /** Unsafe version of {@link #recommendedSwapchainSampleCount(int) recommendedSwapchainSampleCount}. */ - public static void nrecommendedSwapchainSampleCount(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.RECOMMENDEDSWAPCHAINSAMPLECOUNT, value); } - /** Unsafe version of {@link #maxSwapchainSampleCount(int) maxSwapchainSampleCount}. */ - public static void nmaxSwapchainSampleCount(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.MAXSWAPCHAINSAMPLECOUNT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrViewConfigurationView.NEXT); } + /** Unsafe version of {@link #recommendedImageRectWidth}. */ + public static int nrecommendedImageRectWidth(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.RECOMMENDEDIMAGERECTWIDTH); } + /** Unsafe version of {@link #maxImageRectWidth}. */ + public static int nmaxImageRectWidth(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.MAXIMAGERECTWIDTH); } + /** Unsafe version of {@link #recommendedImageRectHeight}. */ + public static int nrecommendedImageRectHeight(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.RECOMMENDEDIMAGERECTHEIGHT); } + /** Unsafe version of {@link #maxImageRectHeight}. */ + public static int nmaxImageRectHeight(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.MAXIMAGERECTHEIGHT); } + /** Unsafe version of {@link #recommendedSwapchainSampleCount}. */ + public static int nrecommendedSwapchainSampleCount(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.RECOMMENDEDSWAPCHAINSAMPLECOUNT); } + /** Unsafe version of {@link #maxSwapchainSampleCount}. */ + public static int nmaxSwapchainSampleCount(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationView.MAXSWAPCHAINSAMPLECOUNT); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrViewConfigurationView.NEXT, value); } + /** Unsafe version of {@link #recommendedImageRectWidth(int) recommendedImageRectWidth}. */ + public static void nrecommendedImageRectWidth(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.RECOMMENDEDIMAGERECTWIDTH, value); } + /** Unsafe version of {@link #maxImageRectWidth(int) maxImageRectWidth}. */ + public static void nmaxImageRectWidth(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.MAXIMAGERECTWIDTH, value); } + /** Unsafe version of {@link #recommendedImageRectHeight(int) recommendedImageRectHeight}. */ + public static void nrecommendedImageRectHeight(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.RECOMMENDEDIMAGERECTHEIGHT, value); } + /** Unsafe version of {@link #maxImageRectHeight(int) maxImageRectHeight}. */ + public static void nmaxImageRectHeight(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.MAXIMAGERECTHEIGHT, value); } + /** Unsafe version of {@link #recommendedSwapchainSampleCount(int) recommendedSwapchainSampleCount}. */ + public static void nrecommendedSwapchainSampleCount(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.RECOMMENDEDSWAPCHAINSAMPLECOUNT, value); } + /** Unsafe version of {@link #maxSwapchainSampleCount(int) maxSwapchainSampleCount}. */ + public static void nmaxSwapchainSampleCount(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationView.MAXSWAPCHAINSAMPLECOUNT, value); } + + // ----------------------------------- /** An array of {@link XrViewConfigurationView} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -384,56 +384,56 @@ protected Buffer self() { protected XrViewConfigurationView getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrViewConfigurationView#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrViewConfigurationView.ntype(address()); } - /** @return the value of the {@link XrViewConfigurationView#next} field. */ - @NativeType("void *") - public long next() { return XrViewConfigurationView.nnext(address()); } - /** @return the value of the {@link XrViewConfigurationView#recommendedImageRectWidth} field. */ - @NativeType("uint32_t") - public int recommendedImageRectWidth() { return XrViewConfigurationView.nrecommendedImageRectWidth(address()); } - /** @return the value of the {@link XrViewConfigurationView#maxImageRectWidth} field. */ - @NativeType("uint32_t") - public int maxImageRectWidth() { return XrViewConfigurationView.nmaxImageRectWidth(address()); } - /** @return the value of the {@link XrViewConfigurationView#recommendedImageRectHeight} field. */ - @NativeType("uint32_t") - public int recommendedImageRectHeight() { return XrViewConfigurationView.nrecommendedImageRectHeight(address()); } - /** @return the value of the {@link XrViewConfigurationView#maxImageRectHeight} field. */ - @NativeType("uint32_t") - public int maxImageRectHeight() { return XrViewConfigurationView.nmaxImageRectHeight(address()); } - /** @return the value of the {@link XrViewConfigurationView#recommendedSwapchainSampleCount} field. */ - @NativeType("uint32_t") - public int recommendedSwapchainSampleCount() { return XrViewConfigurationView.nrecommendedSwapchainSampleCount(address()); } - /** @return the value of the {@link XrViewConfigurationView#maxSwapchainSampleCount} field. */ - @NativeType("uint32_t") - public int maxSwapchainSampleCount() { return XrViewConfigurationView.nmaxSwapchainSampleCount(address()); } - - /** Sets the specified value to the {@link XrViewConfigurationView#type} field. */ - public XrViewConfigurationView.Buffer type(@NativeType("XrStructureType") int value) { XrViewConfigurationView.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_VIEW_CONFIGURATION_VIEW TYPE_VIEW_CONFIGURATION_VIEW} value to the {@link XrViewConfigurationView#type} field. */ - public XrViewConfigurationView.Buffer type$Default() { return type(XR10.XR_TYPE_VIEW_CONFIGURATION_VIEW); } - /** Sets the specified value to the {@link XrViewConfigurationView#next} field. */ - public XrViewConfigurationView.Buffer next(@NativeType("void *") long value) { XrViewConfigurationView.nnext(address(), value); return this; } - /** Prepends the specified {@link XrFoveatedViewConfigurationViewVARJO} value to the {@code next} chain. */ - public XrViewConfigurationView.Buffer next(XrFoveatedViewConfigurationViewVARJO value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrViewConfigurationDepthRangeEXT} value to the {@code next} chain. */ - public XrViewConfigurationView.Buffer next(XrViewConfigurationDepthRangeEXT value) { return this.next(value.next(this.next()).address()); } - /** Prepends the specified {@link XrViewConfigurationViewFovEPIC} value to the {@code next} chain. */ - public XrViewConfigurationView.Buffer next(XrViewConfigurationViewFovEPIC value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrViewConfigurationView#recommendedImageRectWidth} field. */ - public XrViewConfigurationView.Buffer recommendedImageRectWidth(@NativeType("uint32_t") int value) { XrViewConfigurationView.nrecommendedImageRectWidth(address(), value); return this; } - /** Sets the specified value to the {@link XrViewConfigurationView#maxImageRectWidth} field. */ - public XrViewConfigurationView.Buffer maxImageRectWidth(@NativeType("uint32_t") int value) { XrViewConfigurationView.nmaxImageRectWidth(address(), value); return this; } - /** Sets the specified value to the {@link XrViewConfigurationView#recommendedImageRectHeight} field. */ - public XrViewConfigurationView.Buffer recommendedImageRectHeight(@NativeType("uint32_t") int value) { XrViewConfigurationView.nrecommendedImageRectHeight(address(), value); return this; } - /** Sets the specified value to the {@link XrViewConfigurationView#maxImageRectHeight} field. */ - public XrViewConfigurationView.Buffer maxImageRectHeight(@NativeType("uint32_t") int value) { XrViewConfigurationView.nmaxImageRectHeight(address(), value); return this; } - /** Sets the specified value to the {@link XrViewConfigurationView#recommendedSwapchainSampleCount} field. */ - public XrViewConfigurationView.Buffer recommendedSwapchainSampleCount(@NativeType("uint32_t") int value) { XrViewConfigurationView.nrecommendedSwapchainSampleCount(address(), value); return this; } - /** Sets the specified value to the {@link XrViewConfigurationView#maxSwapchainSampleCount} field. */ - public XrViewConfigurationView.Buffer maxSwapchainSampleCount(@NativeType("uint32_t") int value) { XrViewConfigurationView.nmaxSwapchainSampleCount(address(), value); return this; } + + /** @return the value of the {@link XrViewConfigurationView#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrViewConfigurationView.ntype(address()); } + /** @return the value of the {@link XrViewConfigurationView#next} field. */ + @NativeType("void *") + public long next() { return XrViewConfigurationView.nnext(address()); } + /** @return the value of the {@link XrViewConfigurationView#recommendedImageRectWidth} field. */ + @NativeType("uint32_t") + public int recommendedImageRectWidth() { return XrViewConfigurationView.nrecommendedImageRectWidth(address()); } + /** @return the value of the {@link XrViewConfigurationView#maxImageRectWidth} field. */ + @NativeType("uint32_t") + public int maxImageRectWidth() { return XrViewConfigurationView.nmaxImageRectWidth(address()); } + /** @return the value of the {@link XrViewConfigurationView#recommendedImageRectHeight} field. */ + @NativeType("uint32_t") + public int recommendedImageRectHeight() { return XrViewConfigurationView.nrecommendedImageRectHeight(address()); } + /** @return the value of the {@link XrViewConfigurationView#maxImageRectHeight} field. */ + @NativeType("uint32_t") + public int maxImageRectHeight() { return XrViewConfigurationView.nmaxImageRectHeight(address()); } + /** @return the value of the {@link XrViewConfigurationView#recommendedSwapchainSampleCount} field. */ + @NativeType("uint32_t") + public int recommendedSwapchainSampleCount() { return XrViewConfigurationView.nrecommendedSwapchainSampleCount(address()); } + /** @return the value of the {@link XrViewConfigurationView#maxSwapchainSampleCount} field. */ + @NativeType("uint32_t") + public int maxSwapchainSampleCount() { return XrViewConfigurationView.nmaxSwapchainSampleCount(address()); } + + /** Sets the specified value to the {@link XrViewConfigurationView#type} field. */ + public XrViewConfigurationView.Buffer type(@NativeType("XrStructureType") int value) { XrViewConfigurationView.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_VIEW_CONFIGURATION_VIEW TYPE_VIEW_CONFIGURATION_VIEW} value to the {@link XrViewConfigurationView#type} field. */ + public XrViewConfigurationView.Buffer type$Default() { return type(XR10.XR_TYPE_VIEW_CONFIGURATION_VIEW); } + /** Sets the specified value to the {@link XrViewConfigurationView#next} field. */ + public XrViewConfigurationView.Buffer next(@NativeType("void *") long value) { XrViewConfigurationView.nnext(address(), value); return this; } + /** Prepends the specified {@link XrFoveatedViewConfigurationViewVARJO} value to the {@code next} chain. */ + public XrViewConfigurationView.Buffer next(XrFoveatedViewConfigurationViewVARJO value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrViewConfigurationDepthRangeEXT} value to the {@code next} chain. */ + public XrViewConfigurationView.Buffer next(XrViewConfigurationDepthRangeEXT value) { return this.next(value.next(this.next()).address()); } + /** Prepends the specified {@link XrViewConfigurationViewFovEPIC} value to the {@code next} chain. */ + public XrViewConfigurationView.Buffer next(XrViewConfigurationViewFovEPIC value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrViewConfigurationView#recommendedImageRectWidth} field. */ + public XrViewConfigurationView.Buffer recommendedImageRectWidth(@NativeType("uint32_t") int value) { XrViewConfigurationView.nrecommendedImageRectWidth(address(), value); return this; } + /** Sets the specified value to the {@link XrViewConfigurationView#maxImageRectWidth} field. */ + public XrViewConfigurationView.Buffer maxImageRectWidth(@NativeType("uint32_t") int value) { XrViewConfigurationView.nmaxImageRectWidth(address(), value); return this; } + /** Sets the specified value to the {@link XrViewConfigurationView#recommendedImageRectHeight} field. */ + public XrViewConfigurationView.Buffer recommendedImageRectHeight(@NativeType("uint32_t") int value) { XrViewConfigurationView.nrecommendedImageRectHeight(address(), value); return this; } + /** Sets the specified value to the {@link XrViewConfigurationView#maxImageRectHeight} field. */ + public XrViewConfigurationView.Buffer maxImageRectHeight(@NativeType("uint32_t") int value) { XrViewConfigurationView.nmaxImageRectHeight(address(), value); return this; } + /** Sets the specified value to the {@link XrViewConfigurationView#recommendedSwapchainSampleCount} field. */ + public XrViewConfigurationView.Buffer recommendedSwapchainSampleCount(@NativeType("uint32_t") int value) { XrViewConfigurationView.nrecommendedSwapchainSampleCount(address(), value); return this; } + /** Sets the specified value to the {@link XrViewConfigurationView#maxSwapchainSampleCount} field. */ + public XrViewConfigurationView.Buffer maxSwapchainSampleCount(@NativeType("uint32_t") int value) { XrViewConfigurationView.nmaxSwapchainSampleCount(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationViewFovEPIC.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationViewFovEPIC.java index 7f2960b216..65b39c201e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationViewFovEPIC.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewConfigurationViewFovEPIC.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * View Configuration Field-of-View. * @@ -23,7 +23,7 @@ *
                                                                          *
                                                                        • The {@link EPICViewConfigurationFov XR_EPIC_view_configuration_fov} extension must be enabled prior to using {@link XrViewConfigurationViewFovEPIC}
                                                                        • *
                                                                        • {@code type} must be {@link EPICViewConfigurationFov#XR_TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        * *
                                                                        See Also
                                                                        @@ -39,8 +39,8 @@ * {@link XrFovf XrFovf} {@link #recommendedFov}; * {@link XrFovf XrFovf} {@link #maxMutableFov}; * } - */ -public class XrViewConfigurationViewFovEPIC extends Struct implements NativeResource { + */ +public class XrViewConfigurationViewFovEPIC extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,27 +50,27 @@ public class XrViewConfigurationViewFovEPIC extends Struct consumer) { consumer.accept(recommendedFov()); return this; } - /** Copies the specified {@link XrFovf} to the {@link #maxMutableFov} field. */ - public XrViewConfigurationViewFovEPIC maxMutableFov(XrFovf value) { nmaxMutableFov(address(), value); return this; } - /** Passes the {@link #maxMutableFov} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrViewConfigurationViewFovEPIC maxMutableFov(java.util.function.Consumer consumer) { consumer.accept(maxMutableFov()); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** the recommended field-of-view based on the current user IPD. */ + public XrFovf recommendedFov() { return nrecommendedFov(address()); } + /** the maximum field-of-view that the runtime can display. */ + public XrFovf maxMutableFov() { return nmaxMutableFov(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrViewConfigurationViewFovEPIC type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link EPICViewConfigurationFov#XR_TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC} value to the {@link #type} field. */ + public XrViewConfigurationViewFovEPIC type$Default() { return type(EPICViewConfigurationFov.XR_TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC); } + /** Sets the specified value to the {@link #next} field. */ + public XrViewConfigurationViewFovEPIC next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Copies the specified {@link XrFovf} to the {@link #recommendedFov} field. */ + public XrViewConfigurationViewFovEPIC recommendedFov(XrFovf value) { nrecommendedFov(address(), value); return this; } + /** Passes the {@link #recommendedFov} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrViewConfigurationViewFovEPIC recommendedFov(java.util.function.Consumer consumer) { consumer.accept(recommendedFov()); return this; } + /** Copies the specified {@link XrFovf} to the {@link #maxMutableFov} field. */ + public XrViewConfigurationViewFovEPIC maxMutableFov(XrFovf value) { nmaxMutableFov(address(), value); return this; } + /** Passes the {@link #maxMutableFov} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrViewConfigurationViewFovEPIC maxMutableFov(java.util.function.Consumer consumer) { consumer.accept(maxMutableFov()); return this; } /** Initializes this struct with the specified values. */ public XrViewConfigurationViewFovEPIC set( - int type, - long next, - XrFovf recommendedFov, + int type, + long next, + XrFovf recommendedFov, XrFovf maxMutableFov - ) { - type(type); - next(next); - recommendedFov(recommendedFov); - maxMutableFov(maxMutableFov); + ) { + type(type); + next(next); + recommendedFov(recommendedFov); + maxMutableFov(maxMutableFov); return this; } @@ -259,26 +259,26 @@ public static XrViewConfigurationViewFovEPIC.Buffer calloc(int capacity, MemoryS } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationViewFovEPIC.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrViewConfigurationViewFovEPIC.NEXT); } - /** Unsafe version of {@link #recommendedFov}. */ - public static XrFovf nrecommendedFov(long struct) { return XrFovf.create(struct + XrViewConfigurationViewFovEPIC.RECOMMENDEDFOV); } - /** Unsafe version of {@link #maxMutableFov}. */ - public static XrFovf nmaxMutableFov(long struct) { return XrFovf.create(struct + XrViewConfigurationViewFovEPIC.MAXMUTABLEFOV); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationViewFovEPIC.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrViewConfigurationViewFovEPIC.NEXT, value); } - /** Unsafe version of {@link #recommendedFov(XrFovf) recommendedFov}. */ - public static void nrecommendedFov(long struct, XrFovf value) { memCopy(value.address(), struct + XrViewConfigurationViewFovEPIC.RECOMMENDEDFOV, XrFovf.SIZEOF); } - /** Unsafe version of {@link #maxMutableFov(XrFovf) maxMutableFov}. */ - public static void nmaxMutableFov(long struct, XrFovf value) { memCopy(value.address(), struct + XrViewConfigurationViewFovEPIC.MAXMUTABLEFOV, XrFovf.SIZEOF); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrViewConfigurationViewFovEPIC.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrViewConfigurationViewFovEPIC.NEXT); } + /** Unsafe version of {@link #recommendedFov}. */ + public static XrFovf nrecommendedFov(long struct) { return XrFovf.create(struct + XrViewConfigurationViewFovEPIC.RECOMMENDEDFOV); } + /** Unsafe version of {@link #maxMutableFov}. */ + public static XrFovf nmaxMutableFov(long struct) { return XrFovf.create(struct + XrViewConfigurationViewFovEPIC.MAXMUTABLEFOV); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrViewConfigurationViewFovEPIC.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrViewConfigurationViewFovEPIC.NEXT, value); } + /** Unsafe version of {@link #recommendedFov(XrFovf) recommendedFov}. */ + public static void nrecommendedFov(long struct, XrFovf value) { memCopy(value.address(), struct + XrViewConfigurationViewFovEPIC.RECOMMENDEDFOV, XrFovf.SIZEOF); } + /** Unsafe version of {@link #maxMutableFov(XrFovf) maxMutableFov}. */ + public static void nmaxMutableFov(long struct, XrFovf value) { memCopy(value.address(), struct + XrViewConfigurationViewFovEPIC.MAXMUTABLEFOV, XrFovf.SIZEOF); } + + // ----------------------------------- /** An array of {@link XrViewConfigurationViewFovEPIC} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -315,32 +315,32 @@ protected Buffer self() { protected XrViewConfigurationViewFovEPIC getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrViewConfigurationViewFovEPIC#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrViewConfigurationViewFovEPIC.ntype(address()); } - /** @return the value of the {@link XrViewConfigurationViewFovEPIC#next} field. */ - @NativeType("void const *") - public long next() { return XrViewConfigurationViewFovEPIC.nnext(address()); } - /** @return a {@link XrFovf} view of the {@link XrViewConfigurationViewFovEPIC#recommendedFov} field. */ - public XrFovf recommendedFov() { return XrViewConfigurationViewFovEPIC.nrecommendedFov(address()); } - /** @return a {@link XrFovf} view of the {@link XrViewConfigurationViewFovEPIC#maxMutableFov} field. */ - public XrFovf maxMutableFov() { return XrViewConfigurationViewFovEPIC.nmaxMutableFov(address()); } - - /** Sets the specified value to the {@link XrViewConfigurationViewFovEPIC#type} field. */ - public XrViewConfigurationViewFovEPIC.Buffer type(@NativeType("XrStructureType") int value) { XrViewConfigurationViewFovEPIC.ntype(address(), value); return this; } - /** Sets the {@link EPICViewConfigurationFov#XR_TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC} value to the {@link XrViewConfigurationViewFovEPIC#type} field. */ - public XrViewConfigurationViewFovEPIC.Buffer type$Default() { return type(EPICViewConfigurationFov.XR_TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC); } - /** Sets the specified value to the {@link XrViewConfigurationViewFovEPIC#next} field. */ - public XrViewConfigurationViewFovEPIC.Buffer next(@NativeType("void const *") long value) { XrViewConfigurationViewFovEPIC.nnext(address(), value); return this; } - /** Copies the specified {@link XrFovf} to the {@link XrViewConfigurationViewFovEPIC#recommendedFov} field. */ - public XrViewConfigurationViewFovEPIC.Buffer recommendedFov(XrFovf value) { XrViewConfigurationViewFovEPIC.nrecommendedFov(address(), value); return this; } - /** Passes the {@link XrViewConfigurationViewFovEPIC#recommendedFov} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrViewConfigurationViewFovEPIC.Buffer recommendedFov(java.util.function.Consumer consumer) { consumer.accept(recommendedFov()); return this; } - /** Copies the specified {@link XrFovf} to the {@link XrViewConfigurationViewFovEPIC#maxMutableFov} field. */ - public XrViewConfigurationViewFovEPIC.Buffer maxMutableFov(XrFovf value) { XrViewConfigurationViewFovEPIC.nmaxMutableFov(address(), value); return this; } - /** Passes the {@link XrViewConfigurationViewFovEPIC#maxMutableFov} field to the specified {@link java.util.function.Consumer Consumer}. */ - public XrViewConfigurationViewFovEPIC.Buffer maxMutableFov(java.util.function.Consumer consumer) { consumer.accept(maxMutableFov()); return this; } + + /** @return the value of the {@link XrViewConfigurationViewFovEPIC#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrViewConfigurationViewFovEPIC.ntype(address()); } + /** @return the value of the {@link XrViewConfigurationViewFovEPIC#next} field. */ + @NativeType("void const *") + public long next() { return XrViewConfigurationViewFovEPIC.nnext(address()); } + /** @return a {@link XrFovf} view of the {@link XrViewConfigurationViewFovEPIC#recommendedFov} field. */ + public XrFovf recommendedFov() { return XrViewConfigurationViewFovEPIC.nrecommendedFov(address()); } + /** @return a {@link XrFovf} view of the {@link XrViewConfigurationViewFovEPIC#maxMutableFov} field. */ + public XrFovf maxMutableFov() { return XrViewConfigurationViewFovEPIC.nmaxMutableFov(address()); } + + /** Sets the specified value to the {@link XrViewConfigurationViewFovEPIC#type} field. */ + public XrViewConfigurationViewFovEPIC.Buffer type(@NativeType("XrStructureType") int value) { XrViewConfigurationViewFovEPIC.ntype(address(), value); return this; } + /** Sets the {@link EPICViewConfigurationFov#XR_TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC} value to the {@link XrViewConfigurationViewFovEPIC#type} field. */ + public XrViewConfigurationViewFovEPIC.Buffer type$Default() { return type(EPICViewConfigurationFov.XR_TYPE_VIEW_CONFIGURATION_VIEW_FOV_EPIC); } + /** Sets the specified value to the {@link XrViewConfigurationViewFovEPIC#next} field. */ + public XrViewConfigurationViewFovEPIC.Buffer next(@NativeType("void const *") long value) { XrViewConfigurationViewFovEPIC.nnext(address(), value); return this; } + /** Copies the specified {@link XrFovf} to the {@link XrViewConfigurationViewFovEPIC#recommendedFov} field. */ + public XrViewConfigurationViewFovEPIC.Buffer recommendedFov(XrFovf value) { XrViewConfigurationViewFovEPIC.nrecommendedFov(address(), value); return this; } + /** Passes the {@link XrViewConfigurationViewFovEPIC#recommendedFov} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrViewConfigurationViewFovEPIC.Buffer recommendedFov(java.util.function.Consumer consumer) { consumer.accept(recommendedFov()); return this; } + /** Copies the specified {@link XrFovf} to the {@link XrViewConfigurationViewFovEPIC#maxMutableFov} field. */ + public XrViewConfigurationViewFovEPIC.Buffer maxMutableFov(XrFovf value) { XrViewConfigurationViewFovEPIC.nmaxMutableFov(address(), value); return this; } + /** Passes the {@link XrViewConfigurationViewFovEPIC#maxMutableFov} field to the specified {@link java.util.function.Consumer Consumer}. */ + public XrViewConfigurationViewFovEPIC.Buffer maxMutableFov(java.util.function.Consumer consumer) { consumer.accept(maxMutableFov()); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewLocateFoveatedRenderingVARJO.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewLocateFoveatedRenderingVARJO.java index 06ab2ddbfc..84ab1cf89a 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewLocateFoveatedRenderingVARJO.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewLocateFoveatedRenderingVARJO.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Request foveated FoV. * @@ -27,7 +27,7 @@ *
                                                                          *
                                                                        • The {@link VARJOFoveatedRendering XR_VARJO_foveated_rendering} extension must be enabled prior to using {@link XrViewLocateFoveatedRenderingVARJO}
                                                                        • *
                                                                        • {@code type} must be {@link VARJOFoveatedRendering#XR_TYPE_VIEW_LOCATE_FOVEATED_RENDERING_VARJO TYPE_VIEW_LOCATE_FOVEATED_RENDERING_VARJO}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        * *
                                                                        See Also
                                                                        @@ -42,8 +42,8 @@ * void const * {@link #next}; * XrBool32 {@link #foveatedRenderingActive}; * } - */ -public class XrViewLocateFoveatedRenderingVARJO extends Struct implements NativeResource { + */ +public class XrViewLocateFoveatedRenderingVARJO extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,24 +53,24 @@ public class XrViewLocateFoveatedRenderingVARJO extends Struct implements NativeResource { @@ -302,25 +302,25 @@ protected Buffer self() { protected XrViewLocateFoveatedRenderingVARJO getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrViewLocateFoveatedRenderingVARJO#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrViewLocateFoveatedRenderingVARJO.ntype(address()); } - /** @return the value of the {@link XrViewLocateFoveatedRenderingVARJO#next} field. */ - @NativeType("void const *") - public long next() { return XrViewLocateFoveatedRenderingVARJO.nnext(address()); } - /** @return the value of the {@link XrViewLocateFoveatedRenderingVARJO#foveatedRenderingActive} field. */ - @NativeType("XrBool32") - public boolean foveatedRenderingActive() { return XrViewLocateFoveatedRenderingVARJO.nfoveatedRenderingActive(address()) != 0; } - - /** Sets the specified value to the {@link XrViewLocateFoveatedRenderingVARJO#type} field. */ - public XrViewLocateFoveatedRenderingVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrViewLocateFoveatedRenderingVARJO.ntype(address(), value); return this; } - /** Sets the {@link VARJOFoveatedRendering#XR_TYPE_VIEW_LOCATE_FOVEATED_RENDERING_VARJO TYPE_VIEW_LOCATE_FOVEATED_RENDERING_VARJO} value to the {@link XrViewLocateFoveatedRenderingVARJO#type} field. */ - public XrViewLocateFoveatedRenderingVARJO.Buffer type$Default() { return type(VARJOFoveatedRendering.XR_TYPE_VIEW_LOCATE_FOVEATED_RENDERING_VARJO); } - /** Sets the specified value to the {@link XrViewLocateFoveatedRenderingVARJO#next} field. */ - public XrViewLocateFoveatedRenderingVARJO.Buffer next(@NativeType("void const *") long value) { XrViewLocateFoveatedRenderingVARJO.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrViewLocateFoveatedRenderingVARJO#foveatedRenderingActive} field. */ - public XrViewLocateFoveatedRenderingVARJO.Buffer foveatedRenderingActive(@NativeType("XrBool32") boolean value) { XrViewLocateFoveatedRenderingVARJO.nfoveatedRenderingActive(address(), value ? 1 : 0); return this; } + + /** @return the value of the {@link XrViewLocateFoveatedRenderingVARJO#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrViewLocateFoveatedRenderingVARJO.ntype(address()); } + /** @return the value of the {@link XrViewLocateFoveatedRenderingVARJO#next} field. */ + @NativeType("void const *") + public long next() { return XrViewLocateFoveatedRenderingVARJO.nnext(address()); } + /** @return the value of the {@link XrViewLocateFoveatedRenderingVARJO#foveatedRenderingActive} field. */ + @NativeType("XrBool32") + public boolean foveatedRenderingActive() { return XrViewLocateFoveatedRenderingVARJO.nfoveatedRenderingActive(address()) != 0; } + + /** Sets the specified value to the {@link XrViewLocateFoveatedRenderingVARJO#type} field. */ + public XrViewLocateFoveatedRenderingVARJO.Buffer type(@NativeType("XrStructureType") int value) { XrViewLocateFoveatedRenderingVARJO.ntype(address(), value); return this; } + /** Sets the {@link VARJOFoveatedRendering#XR_TYPE_VIEW_LOCATE_FOVEATED_RENDERING_VARJO TYPE_VIEW_LOCATE_FOVEATED_RENDERING_VARJO} value to the {@link XrViewLocateFoveatedRenderingVARJO#type} field. */ + public XrViewLocateFoveatedRenderingVARJO.Buffer type$Default() { return type(VARJOFoveatedRendering.XR_TYPE_VIEW_LOCATE_FOVEATED_RENDERING_VARJO); } + /** Sets the specified value to the {@link XrViewLocateFoveatedRenderingVARJO#next} field. */ + public XrViewLocateFoveatedRenderingVARJO.Buffer next(@NativeType("void const *") long value) { XrViewLocateFoveatedRenderingVARJO.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrViewLocateFoveatedRenderingVARJO#foveatedRenderingActive} field. */ + public XrViewLocateFoveatedRenderingVARJO.Buffer foveatedRenderingActive(@NativeType("XrBool32") boolean value) { XrViewLocateFoveatedRenderingVARJO.nfoveatedRenderingActive(address(), value ? 1 : 0); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewLocateInfo.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewLocateInfo.java index bb445b7985..c5610c845e 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewLocateInfo.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewLocateInfo.java @@ -4,18 +4,18 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Struct containing view locate information. * @@ -29,7 +29,7 @@ * *
                                                                          *
                                                                        • {@code type} must be {@link XR10#XR_TYPE_VIEW_LOCATE_INFO TYPE_VIEW_LOCATE_INFO}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrViewLocateFoveatedRenderingVARJO}
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: {@link XrViewLocateFoveatedRenderingVARJO}
                                                                        • *
                                                                        • {@code viewConfigurationType} must be a valid {@code XrViewConfigurationType} value
                                                                        • *
                                                                        • {@code space} must be a valid {@code XrSpace} handle
                                                                        • *
                                                                        @@ -48,8 +48,8 @@ * XrTime {@link #displayTime}; * XrSpace {@link #space}; * } - */ -public class XrViewLocateInfo extends Struct implements NativeResource { + */ +public class XrViewLocateInfo extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -59,30 +59,30 @@ public class XrViewLocateInfo extends Struct implements Native /** The struct member offsets. */ public static final int - TYPE, - NEXT, - VIEWCONFIGURATIONTYPE, - DISPLAYTIME, - SPACE; + TYPE, + NEXT, + VIEWCONFIGURATIONTYPE, + DISPLAYTIME, + SPACE; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(8), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(8), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - VIEWCONFIGURATIONTYPE = layout.offsetof(2); - DISPLAYTIME = layout.offsetof(3); - SPACE = layout.offsetof(4); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + VIEWCONFIGURATIONTYPE = layout.offsetof(2); + DISPLAYTIME = layout.offsetof(3); + SPACE = layout.offsetof(4); + } protected XrViewLocateInfo(long address, @Nullable ByteBuffer container) { super(address, container); @@ -105,51 +105,51 @@ public XrViewLocateInfo(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return nnext(address()); } - /** {@code XrViewConfigurationType} to query for. */ - @NativeType("XrViewConfigurationType") - public int viewConfigurationType() { return nviewConfigurationType(address()); } - /** the time for which the view poses are predicted. */ - @NativeType("XrTime") - public long displayTime() { return ndisplayTime(address()); } - /** the {@code XrSpace} in which the {@code pose} in each {@link XrView} is expressed. */ - @NativeType("XrSpace") - public long space() { return nspace(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrViewLocateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_VIEW_LOCATE_INFO TYPE_VIEW_LOCATE_INFO} value to the {@code type} field. */ - public XrViewLocateInfo type$Default() { return type(XR10.XR_TYPE_VIEW_LOCATE_INFO); } - /** Sets the specified value to the {@code next} field. */ - public XrViewLocateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Prepends the specified {@link XrViewLocateFoveatedRenderingVARJO} value to the {@code next} chain. */ - public XrViewLocateInfo next(XrViewLocateFoveatedRenderingVARJO value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link #viewConfigurationType} field. */ - public XrViewLocateInfo viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { nviewConfigurationType(address(), value); return this; } - /** Sets the specified value to the {@link #displayTime} field. */ - public XrViewLocateInfo displayTime(@NativeType("XrTime") long value) { ndisplayTime(address(), value); return this; } - /** Sets the specified value to the {@link #space} field. */ - public XrViewLocateInfo space(XrSpace value) { nspace(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** {@code XrViewConfigurationType} to query for. */ + @NativeType("XrViewConfigurationType") + public int viewConfigurationType() { return nviewConfigurationType(address()); } + /** the time for which the view poses are predicted. */ + @NativeType("XrTime") + public long displayTime() { return ndisplayTime(address()); } + /** the {@code XrSpace} in which the {@code pose} in each {@link XrView} is expressed. */ + @NativeType("XrSpace") + public long space() { return nspace(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrViewLocateInfo type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_VIEW_LOCATE_INFO TYPE_VIEW_LOCATE_INFO} value to the {@code type} field. */ + public XrViewLocateInfo type$Default() { return type(XR10.XR_TYPE_VIEW_LOCATE_INFO); } + /** Sets the specified value to the {@code next} field. */ + public XrViewLocateInfo next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Prepends the specified {@link XrViewLocateFoveatedRenderingVARJO} value to the {@code next} chain. */ + public XrViewLocateInfo next(XrViewLocateFoveatedRenderingVARJO value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link #viewConfigurationType} field. */ + public XrViewLocateInfo viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { nviewConfigurationType(address(), value); return this; } + /** Sets the specified value to the {@link #displayTime} field. */ + public XrViewLocateInfo displayTime(@NativeType("XrTime") long value) { ndisplayTime(address(), value); return this; } + /** Sets the specified value to the {@link #space} field. */ + public XrViewLocateInfo space(XrSpace value) { nspace(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrViewLocateInfo set( - int type, - long next, - int viewConfigurationType, - long displayTime, + int type, + long next, + int viewConfigurationType, + long displayTime, XrSpace space - ) { - type(type); - next(next); - viewConfigurationType(viewConfigurationType); - displayTime(displayTime); - space(space); + ) { + type(type); + next(next); + viewConfigurationType(viewConfigurationType); + displayTime(displayTime); + space(space); return this; } @@ -278,28 +278,28 @@ public static XrViewLocateInfo.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrViewLocateInfo.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrViewLocateInfo.NEXT); } - /** Unsafe version of {@link #viewConfigurationType}. */ - public static int nviewConfigurationType(long struct) { return UNSAFE.getInt(null, struct + XrViewLocateInfo.VIEWCONFIGURATIONTYPE); } - /** Unsafe version of {@link #displayTime}. */ - public static long ndisplayTime(long struct) { return UNSAFE.getLong(null, struct + XrViewLocateInfo.DISPLAYTIME); } - /** Unsafe version of {@link #space}. */ - public static long nspace(long struct) { return memGetAddress(struct + XrViewLocateInfo.SPACE); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrViewLocateInfo.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrViewLocateInfo.NEXT, value); } - /** Unsafe version of {@link #viewConfigurationType(int) viewConfigurationType}. */ - public static void nviewConfigurationType(long struct, int value) { UNSAFE.putInt(null, struct + XrViewLocateInfo.VIEWCONFIGURATIONTYPE, value); } - /** Unsafe version of {@link #displayTime(long) displayTime}. */ - public static void ndisplayTime(long struct, long value) { UNSAFE.putLong(null, struct + XrViewLocateInfo.DISPLAYTIME, value); } - /** Unsafe version of {@link #space(XrSpace) space}. */ - public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrViewLocateInfo.SPACE, value.address()); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrViewLocateInfo.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrViewLocateInfo.NEXT); } + /** Unsafe version of {@link #viewConfigurationType}. */ + public static int nviewConfigurationType(long struct) { return UNSAFE.getInt(null, struct + XrViewLocateInfo.VIEWCONFIGURATIONTYPE); } + /** Unsafe version of {@link #displayTime}. */ + public static long ndisplayTime(long struct) { return UNSAFE.getLong(null, struct + XrViewLocateInfo.DISPLAYTIME); } + /** Unsafe version of {@link #space}. */ + public static long nspace(long struct) { return memGetAddress(struct + XrViewLocateInfo.SPACE); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrViewLocateInfo.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrViewLocateInfo.NEXT, value); } + /** Unsafe version of {@link #viewConfigurationType(int) viewConfigurationType}. */ + public static void nviewConfigurationType(long struct, int value) { UNSAFE.putInt(null, struct + XrViewLocateInfo.VIEWCONFIGURATIONTYPE, value); } + /** Unsafe version of {@link #displayTime(long) displayTime}. */ + public static void ndisplayTime(long struct, long value) { UNSAFE.putLong(null, struct + XrViewLocateInfo.DISPLAYTIME, value); } + /** Unsafe version of {@link #space(XrSpace) space}. */ + public static void nspace(long struct, XrSpace value) { memPutAddress(struct + XrViewLocateInfo.SPACE, value.address()); } /** * Validates pointer members that should not be {@code NULL}. @@ -308,9 +308,9 @@ public static XrViewLocateInfo.Buffer calloc(int capacity, MemoryStack stack) { */ public static void validate(long struct) { check(memGetAddress(struct + XrViewLocateInfo.SPACE)); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrViewLocateInfo} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -347,37 +347,37 @@ protected Buffer self() { protected XrViewLocateInfo getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrViewLocateInfo.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrViewLocateInfo.nnext(address()); } - /** @return the value of the {@link XrViewLocateInfo#viewConfigurationType} field. */ - @NativeType("XrViewConfigurationType") - public int viewConfigurationType() { return XrViewLocateInfo.nviewConfigurationType(address()); } - /** @return the value of the {@link XrViewLocateInfo#displayTime} field. */ - @NativeType("XrTime") - public long displayTime() { return XrViewLocateInfo.ndisplayTime(address()); } - /** @return the value of the {@link XrViewLocateInfo#space} field. */ - @NativeType("XrSpace") - public long space() { return XrViewLocateInfo.nspace(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrViewLocateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrViewLocateInfo.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_VIEW_LOCATE_INFO TYPE_VIEW_LOCATE_INFO} value to the {@code type} field. */ - public XrViewLocateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_VIEW_LOCATE_INFO); } - /** Sets the specified value to the {@code next} field. */ - public XrViewLocateInfo.Buffer next(@NativeType("void const *") long value) { XrViewLocateInfo.nnext(address(), value); return this; } - /** Prepends the specified {@link XrViewLocateFoveatedRenderingVARJO} value to the {@code next} chain. */ - public XrViewLocateInfo.Buffer next(XrViewLocateFoveatedRenderingVARJO value) { return this.next(value.next(this.next()).address()); } - /** Sets the specified value to the {@link XrViewLocateInfo#viewConfigurationType} field. */ - public XrViewLocateInfo.Buffer viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { XrViewLocateInfo.nviewConfigurationType(address(), value); return this; } - /** Sets the specified value to the {@link XrViewLocateInfo#displayTime} field. */ - public XrViewLocateInfo.Buffer displayTime(@NativeType("XrTime") long value) { XrViewLocateInfo.ndisplayTime(address(), value); return this; } - /** Sets the specified value to the {@link XrViewLocateInfo#space} field. */ - public XrViewLocateInfo.Buffer space(XrSpace value) { XrViewLocateInfo.nspace(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrViewLocateInfo.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrViewLocateInfo.nnext(address()); } + /** @return the value of the {@link XrViewLocateInfo#viewConfigurationType} field. */ + @NativeType("XrViewConfigurationType") + public int viewConfigurationType() { return XrViewLocateInfo.nviewConfigurationType(address()); } + /** @return the value of the {@link XrViewLocateInfo#displayTime} field. */ + @NativeType("XrTime") + public long displayTime() { return XrViewLocateInfo.ndisplayTime(address()); } + /** @return the value of the {@link XrViewLocateInfo#space} field. */ + @NativeType("XrSpace") + public long space() { return XrViewLocateInfo.nspace(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrViewLocateInfo.Buffer type(@NativeType("XrStructureType") int value) { XrViewLocateInfo.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_VIEW_LOCATE_INFO TYPE_VIEW_LOCATE_INFO} value to the {@code type} field. */ + public XrViewLocateInfo.Buffer type$Default() { return type(XR10.XR_TYPE_VIEW_LOCATE_INFO); } + /** Sets the specified value to the {@code next} field. */ + public XrViewLocateInfo.Buffer next(@NativeType("void const *") long value) { XrViewLocateInfo.nnext(address(), value); return this; } + /** Prepends the specified {@link XrViewLocateFoveatedRenderingVARJO} value to the {@code next} chain. */ + public XrViewLocateInfo.Buffer next(XrViewLocateFoveatedRenderingVARJO value) { return this.next(value.next(this.next()).address()); } + /** Sets the specified value to the {@link XrViewLocateInfo#viewConfigurationType} field. */ + public XrViewLocateInfo.Buffer viewConfigurationType(@NativeType("XrViewConfigurationType") int value) { XrViewLocateInfo.nviewConfigurationType(address(), value); return this; } + /** Sets the specified value to the {@link XrViewLocateInfo#displayTime} field. */ + public XrViewLocateInfo.Buffer displayTime(@NativeType("XrTime") long value) { XrViewLocateInfo.ndisplayTime(address(), value); return this; } + /** Sets the specified value to the {@link XrViewLocateInfo#space} field. */ + public XrViewLocateInfo.Buffer space(XrSpace value) { XrViewLocateInfo.nspace(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewState.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewState.java index e82314658c..ace9898579 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewState.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViewState.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Struct containing additional view state. * @@ -26,7 +26,7 @@ * *
                                                                          *
                                                                        • {@code type} must be {@link XR10#XR_TYPE_VIEW_STATE TYPE_VIEW_STATE}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        • {@code viewStateFlags} must be 0 or a valid combination of {@code XrViewStateFlagBits} values
                                                                        • *
                                                                        * @@ -42,8 +42,8 @@ * void * {@link #next}; * XrViewStateFlags {@link #viewStateFlags}; * } - */ -public class XrViewState extends Struct implements NativeResource { + */ +public class XrViewState extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -53,24 +53,24 @@ public class XrViewState extends Struct implements NativeResource { /** The struct member offsets. */ public static final int - TYPE, - NEXT, - VIEWSTATEFLAGS; + TYPE, + NEXT, + VIEWSTATEFLAGS; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - VIEWSTATEFLAGS = layout.offsetof(2); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + VIEWSTATEFLAGS = layout.offsetof(2); + } protected XrViewState(long address, @Nullable ByteBuffer container) { super(address, container); @@ -93,35 +93,35 @@ public XrViewState(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** a bitmask of {@code XrViewStateFlagBits} indicating state for all views. */ - @NativeType("XrViewStateFlags") - public long viewStateFlags() { return nviewStateFlags(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrViewState type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_VIEW_STATE TYPE_VIEW_STATE} value to the {@link #type} field. */ - public XrViewState type$Default() { return type(XR10.XR_TYPE_VIEW_STATE); } - /** Sets the specified value to the {@link #next} field. */ - public XrViewState next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #viewStateFlags} field. */ - public XrViewState viewStateFlags(@NativeType("XrViewStateFlags") long value) { nviewStateFlags(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** a bitmask of {@code XrViewStateFlagBits} indicating state for all views. */ + @NativeType("XrViewStateFlags") + public long viewStateFlags() { return nviewStateFlags(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrViewState type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_VIEW_STATE TYPE_VIEW_STATE} value to the {@link #type} field. */ + public XrViewState type$Default() { return type(XR10.XR_TYPE_VIEW_STATE); } + /** Sets the specified value to the {@link #next} field. */ + public XrViewState next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #viewStateFlags} field. */ + public XrViewState viewStateFlags(@NativeType("XrViewStateFlags") long value) { nviewStateFlags(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrViewState set( - int type, - long next, + int type, + long next, long viewStateFlags - ) { - type(type); - next(next); - viewStateFlags(viewStateFlags); + ) { + type(type); + next(next); + viewStateFlags(viewStateFlags); return this; } @@ -250,22 +250,22 @@ public static XrViewState.Buffer calloc(int capacity, MemoryStack stack) { } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrViewState.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrViewState.NEXT); } - /** Unsafe version of {@link #viewStateFlags}. */ - public static long nviewStateFlags(long struct) { return UNSAFE.getLong(null, struct + XrViewState.VIEWSTATEFLAGS); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrViewState.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrViewState.NEXT, value); } - /** Unsafe version of {@link #viewStateFlags(long) viewStateFlags}. */ - public static void nviewStateFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrViewState.VIEWSTATEFLAGS, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrViewState.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrViewState.NEXT); } + /** Unsafe version of {@link #viewStateFlags}. */ + public static long nviewStateFlags(long struct) { return UNSAFE.getLong(null, struct + XrViewState.VIEWSTATEFLAGS); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrViewState.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrViewState.NEXT, value); } + /** Unsafe version of {@link #viewStateFlags(long) viewStateFlags}. */ + public static void nviewStateFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrViewState.VIEWSTATEFLAGS, value); } + + // ----------------------------------- /** An array of {@link XrViewState} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -302,25 +302,25 @@ protected Buffer self() { protected XrViewState getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrViewState#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrViewState.ntype(address()); } - /** @return the value of the {@link XrViewState#next} field. */ - @NativeType("void *") - public long next() { return XrViewState.nnext(address()); } - /** @return the value of the {@link XrViewState#viewStateFlags} field. */ - @NativeType("XrViewStateFlags") - public long viewStateFlags() { return XrViewState.nviewStateFlags(address()); } - - /** Sets the specified value to the {@link XrViewState#type} field. */ - public XrViewState.Buffer type(@NativeType("XrStructureType") int value) { XrViewState.ntype(address(), value); return this; } - /** Sets the {@link XR10#XR_TYPE_VIEW_STATE TYPE_VIEW_STATE} value to the {@link XrViewState#type} field. */ - public XrViewState.Buffer type$Default() { return type(XR10.XR_TYPE_VIEW_STATE); } - /** Sets the specified value to the {@link XrViewState#next} field. */ - public XrViewState.Buffer next(@NativeType("void *") long value) { XrViewState.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrViewState#viewStateFlags} field. */ - public XrViewState.Buffer viewStateFlags(@NativeType("XrViewStateFlags") long value) { XrViewState.nviewStateFlags(address(), value); return this; } + + /** @return the value of the {@link XrViewState#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrViewState.ntype(address()); } + /** @return the value of the {@link XrViewState#next} field. */ + @NativeType("void *") + public long next() { return XrViewState.nnext(address()); } + /** @return the value of the {@link XrViewState#viewStateFlags} field. */ + @NativeType("XrViewStateFlags") + public long viewStateFlags() { return XrViewState.nviewStateFlags(address()); } + + /** Sets the specified value to the {@link XrViewState#type} field. */ + public XrViewState.Buffer type(@NativeType("XrStructureType") int value) { XrViewState.ntype(address(), value); return this; } + /** Sets the {@link XR10#XR_TYPE_VIEW_STATE TYPE_VIEW_STATE} value to the {@link XrViewState#type} field. */ + public XrViewState.Buffer type$Default() { return type(XR10.XR_TYPE_VIEW_STATE); } + /** Sets the specified value to the {@link XrViewState#next} field. */ + public XrViewState.Buffer next(@NativeType("void *") long value) { XrViewState.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrViewState#viewStateFlags} field. */ + public XrViewState.Buffer viewStateFlags(@NativeType("XrViewStateFlags") long value) { XrViewState.nviewStateFlags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVisibilityMaskKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVisibilityMaskKHR.java index 4142f60dd1..dbfe993cb6 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVisibilityMaskKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVisibilityMaskKHR.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Visibility Mask. * @@ -23,7 +23,7 @@ *
                                                                          *
                                                                        • The {@link KHRVisibilityMask XR_KHR_visibility_mask} extension must be enabled prior to using {@link XrVisibilityMaskKHR}
                                                                        • *
                                                                        • {@code type} must be {@link KHRVisibilityMask#XR_TYPE_VISIBILITY_MASK_KHR TYPE_VISIBILITY_MASK_KHR}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@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
                                                                        • *
                                                                        • If {@code indexCapacityInput} is not 0, {@code indices} must be a pointer to an array of {@code indexCapacityInput} {@code uint32_t} values
                                                                        • *
                                                                        @@ -45,8 +45,8 @@ * uint32_t {@link #indexCountOutput}; * uint32_t * {@link #indices}; * } - */ -public class XrVisibilityMaskKHR extends Struct implements NativeResource { + */ +public class XrVisibilityMaskKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -56,39 +56,39 @@ public class XrVisibilityMaskKHR extends Struct implements /** The struct member offsets. */ public static final int - TYPE, - NEXT, - VERTEXCAPACITYINPUT, - VERTEXCOUNTOUTPUT, - VERTICES, - INDEXCAPACITYINPUT, - INDEXCOUNTOUTPUT, - INDICES; + TYPE, + NEXT, + VERTEXCAPACITYINPUT, + VERTEXCOUNTOUTPUT, + VERTICES, + INDEXCAPACITYINPUT, + INDEXCOUNTOUTPUT, + INDICES; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), - __member(POINTER_SIZE), - __member(4), - __member(4), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), + __member(POINTER_SIZE), + __member(4), + __member(4), __member(POINTER_SIZE) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - VERTEXCAPACITYINPUT = layout.offsetof(2); - VERTEXCOUNTOUTPUT = layout.offsetof(3); - VERTICES = layout.offsetof(4); - INDEXCAPACITYINPUT = layout.offsetof(5); - INDEXCOUNTOUTPUT = layout.offsetof(6); - INDICES = layout.offsetof(7); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + VERTEXCAPACITYINPUT = layout.offsetof(2); + VERTEXCOUNTOUTPUT = layout.offsetof(3); + VERTICES = layout.offsetof(4); + INDEXCAPACITYINPUT = layout.offsetof(5); + INDEXCOUNTOUTPUT = layout.offsetof(6); + INDICES = layout.offsetof(7); + } protected XrVisibilityMaskKHR(long address, @Nullable ByteBuffer container) { super(address, container); @@ -111,72 +111,72 @@ public XrVisibilityMaskKHR(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** the capacity of the {@code vertices} array, or 0 to indicate a request to retrieve the required capacity. */ - @NativeType("uint32_t") - public int vertexCapacityInput() { return nvertexCapacityInput(address()); } - /** filled in by the runtime with the count of vertices written or the required capacity in the case that {@code vertexCapacityInput} or {@code indexCapacityInput} is insufficient. */ - @NativeType("uint32_t") - public int vertexCountOutput() { return nvertexCountOutput(address()); } - /** an array of vertices filled in by the runtime that specifies mask coordinates in the z=-1 plane of the rendered view—​i.e. one meter in front of the view. When rendering the mask for use in a projection layer, these vertices must be transformed by the application’s projection matrix used for the respective {@link XrCompositionLayerProjectionView}. */ - @Nullable - @NativeType("XrVector2f *") - public XrVector2f.Buffer vertices() { return nvertices(address()); } - /** the capacity of the {@code indices} array, or 0 to indicate a request to retrieve the required capacity. */ - @NativeType("uint32_t") - public int indexCapacityInput() { return nindexCapacityInput(address()); } - /** filled in by the runtime with the count of indices written or the required capacity in the case that {@code vertexCapacityInput} or {@code indexCapacityInput} is insufficient. */ - @NativeType("uint32_t") - public int indexCountOutput() { return nindexCountOutput(address()); } - /** an array of indices filled in by the runtime, specifying the indices of the mask geometry in the {@code vertices} array. */ - @Nullable - @NativeType("uint32_t *") - public IntBuffer indices() { return nindices(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrVisibilityMaskKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link KHRVisibilityMask#XR_TYPE_VISIBILITY_MASK_KHR TYPE_VISIBILITY_MASK_KHR} value to the {@link #type} field. */ - public XrVisibilityMaskKHR type$Default() { return type(KHRVisibilityMask.XR_TYPE_VISIBILITY_MASK_KHR); } - /** Sets the specified value to the {@link #next} field. */ - public XrVisibilityMaskKHR next(@NativeType("void *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #vertexCapacityInput} field. */ - public XrVisibilityMaskKHR vertexCapacityInput(@NativeType("uint32_t") int value) { nvertexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #vertexCountOutput} field. */ - public XrVisibilityMaskKHR vertexCountOutput(@NativeType("uint32_t") int value) { nvertexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrVector2f.Buffer} to the {@link #vertices} field. */ - public XrVisibilityMaskKHR vertices(@Nullable @NativeType("XrVector2f *") XrVector2f.Buffer value) { nvertices(address(), value); return this; } - /** Sets the specified value to the {@link #indexCapacityInput} field. */ - public XrVisibilityMaskKHR indexCapacityInput(@NativeType("uint32_t") int value) { nindexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link #indexCountOutput} field. */ - public XrVisibilityMaskKHR indexCountOutput(@NativeType("uint32_t") int value) { nindexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link #indices} field. */ - public XrVisibilityMaskKHR indices(@Nullable @NativeType("uint32_t *") IntBuffer value) { nindices(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the capacity of the {@code vertices} array, or 0 to indicate a request to retrieve the required capacity. */ + @NativeType("uint32_t") + public int vertexCapacityInput() { return nvertexCapacityInput(address()); } + /** filled in by the runtime with the count of vertices written or the required capacity in the case that {@code vertexCapacityInput} or {@code indexCapacityInput} is insufficient. */ + @NativeType("uint32_t") + public int vertexCountOutput() { return nvertexCountOutput(address()); } + /** an array of vertices filled in by the runtime that specifies mask coordinates in the z=-1 plane of the rendered view—​i.e. one meter in front of the view. When rendering the mask for use in a projection layer, these vertices must be transformed by the application’s projection matrix used for the respective {@link XrCompositionLayerProjectionView}. */ + @Nullable + @NativeType("XrVector2f *") + public XrVector2f.Buffer vertices() { return nvertices(address()); } + /** the capacity of the {@code indices} array, or 0 to indicate a request to retrieve the required capacity. */ + @NativeType("uint32_t") + public int indexCapacityInput() { return nindexCapacityInput(address()); } + /** filled in by the runtime with the count of indices written or the required capacity in the case that {@code vertexCapacityInput} or {@code indexCapacityInput} is insufficient. */ + @NativeType("uint32_t") + public int indexCountOutput() { return nindexCountOutput(address()); } + /** an array of indices filled in by the runtime, specifying the indices of the mask geometry in the {@code vertices} array. */ + @Nullable + @NativeType("uint32_t *") + public IntBuffer indices() { return nindices(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrVisibilityMaskKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHRVisibilityMask#XR_TYPE_VISIBILITY_MASK_KHR TYPE_VISIBILITY_MASK_KHR} value to the {@link #type} field. */ + public XrVisibilityMaskKHR type$Default() { return type(KHRVisibilityMask.XR_TYPE_VISIBILITY_MASK_KHR); } + /** Sets the specified value to the {@link #next} field. */ + public XrVisibilityMaskKHR next(@NativeType("void *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #vertexCapacityInput} field. */ + public XrVisibilityMaskKHR vertexCapacityInput(@NativeType("uint32_t") int value) { nvertexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #vertexCountOutput} field. */ + public XrVisibilityMaskKHR vertexCountOutput(@NativeType("uint32_t") int value) { nvertexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrVector2f.Buffer} to the {@link #vertices} field. */ + public XrVisibilityMaskKHR vertices(@Nullable @NativeType("XrVector2f *") XrVector2f.Buffer value) { nvertices(address(), value); return this; } + /** Sets the specified value to the {@link #indexCapacityInput} field. */ + public XrVisibilityMaskKHR indexCapacityInput(@NativeType("uint32_t") int value) { nindexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link #indexCountOutput} field. */ + public XrVisibilityMaskKHR indexCountOutput(@NativeType("uint32_t") int value) { nindexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link #indices} field. */ + public XrVisibilityMaskKHR indices(@Nullable @NativeType("uint32_t *") IntBuffer value) { nindices(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrVisibilityMaskKHR set( - int type, - long next, - int vertexCapacityInput, - int vertexCountOutput, - @Nullable XrVector2f.Buffer vertices, - int indexCapacityInput, - int indexCountOutput, + int type, + long next, + int vertexCapacityInput, + int vertexCountOutput, + @Nullable XrVector2f.Buffer vertices, + int indexCapacityInput, + int indexCountOutput, @Nullable IntBuffer indices - ) { - type(type); - next(next); - vertexCapacityInput(vertexCapacityInput); - vertexCountOutput(vertexCountOutput); - vertices(vertices); - indexCapacityInput(indexCapacityInput); - indexCountOutput(indexCountOutput); - indices(indices); + ) { + type(type); + next(next); + vertexCapacityInput(vertexCapacityInput); + vertexCountOutput(vertexCountOutput); + vertices(vertices); + indexCapacityInput(indexCapacityInput); + indexCountOutput(indexCountOutput); + indices(indices); return this; } @@ -305,42 +305,42 @@ public static XrVisibilityMaskKHR.Buffer calloc(int capacity, MemoryStack stack) } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrVisibilityMaskKHR.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrVisibilityMaskKHR.NEXT); } - /** Unsafe version of {@link #vertexCapacityInput}. */ - public static int nvertexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrVisibilityMaskKHR.VERTEXCAPACITYINPUT); } - /** Unsafe version of {@link #vertexCountOutput}. */ - public static int nvertexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrVisibilityMaskKHR.VERTEXCOUNTOUTPUT); } - /** Unsafe version of {@link #vertices}. */ - @Nullable public static XrVector2f.Buffer nvertices(long struct) { return XrVector2f.createSafe(memGetAddress(struct + XrVisibilityMaskKHR.VERTICES), nvertexCapacityInput(struct)); } - /** Unsafe version of {@link #indexCapacityInput}. */ - public static int nindexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrVisibilityMaskKHR.INDEXCAPACITYINPUT); } - /** Unsafe version of {@link #indexCountOutput}. */ - public static int nindexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrVisibilityMaskKHR.INDEXCOUNTOUTPUT); } - /** Unsafe version of {@link #indices() indices}. */ - @Nullable public static IntBuffer nindices(long struct) { return memIntBufferSafe(memGetAddress(struct + XrVisibilityMaskKHR.INDICES), nindexCapacityInput(struct)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrVisibilityMaskKHR.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrVisibilityMaskKHR.NEXT, value); } - /** Sets the specified value to the {@code vertexCapacityInput} field of the specified {@code struct}. */ - public static void nvertexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrVisibilityMaskKHR.VERTEXCAPACITYINPUT, value); } - /** Unsafe version of {@link #vertexCountOutput(int) vertexCountOutput}. */ - public static void nvertexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrVisibilityMaskKHR.VERTEXCOUNTOUTPUT, value); } - /** Unsafe version of {@link #vertices(XrVector2f.Buffer) vertices}. */ - public static void nvertices(long struct, @Nullable XrVector2f.Buffer value) { memPutAddress(struct + XrVisibilityMaskKHR.VERTICES, memAddressSafe(value)); if (value != null) { nvertexCapacityInput(struct, value.remaining()); } } - /** Sets the specified value to the {@code indexCapacityInput} field of the specified {@code struct}. */ - public static void nindexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrVisibilityMaskKHR.INDEXCAPACITYINPUT, value); } - /** Unsafe version of {@link #indexCountOutput(int) indexCountOutput}. */ - public static void nindexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrVisibilityMaskKHR.INDEXCOUNTOUTPUT, value); } - /** Unsafe version of {@link #indices(IntBuffer) indices}. */ - public static void nindices(long struct, @Nullable IntBuffer value) { memPutAddress(struct + XrVisibilityMaskKHR.INDICES, memAddressSafe(value)); if (value != null) { nindexCapacityInput(struct, value.remaining()); } } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrVisibilityMaskKHR.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrVisibilityMaskKHR.NEXT); } + /** Unsafe version of {@link #vertexCapacityInput}. */ + public static int nvertexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrVisibilityMaskKHR.VERTEXCAPACITYINPUT); } + /** Unsafe version of {@link #vertexCountOutput}. */ + public static int nvertexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrVisibilityMaskKHR.VERTEXCOUNTOUTPUT); } + /** Unsafe version of {@link #vertices}. */ + @Nullable public static XrVector2f.Buffer nvertices(long struct) { return XrVector2f.createSafe(memGetAddress(struct + XrVisibilityMaskKHR.VERTICES), nvertexCapacityInput(struct)); } + /** Unsafe version of {@link #indexCapacityInput}. */ + public static int nindexCapacityInput(long struct) { return UNSAFE.getInt(null, struct + XrVisibilityMaskKHR.INDEXCAPACITYINPUT); } + /** Unsafe version of {@link #indexCountOutput}. */ + public static int nindexCountOutput(long struct) { return UNSAFE.getInt(null, struct + XrVisibilityMaskKHR.INDEXCOUNTOUTPUT); } + /** Unsafe version of {@link #indices() indices}. */ + @Nullable public static IntBuffer nindices(long struct) { return memIntBufferSafe(memGetAddress(struct + XrVisibilityMaskKHR.INDICES), nindexCapacityInput(struct)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrVisibilityMaskKHR.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrVisibilityMaskKHR.NEXT, value); } + /** Sets the specified value to the {@code vertexCapacityInput} field of the specified {@code struct}. */ + public static void nvertexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrVisibilityMaskKHR.VERTEXCAPACITYINPUT, value); } + /** Unsafe version of {@link #vertexCountOutput(int) vertexCountOutput}. */ + public static void nvertexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrVisibilityMaskKHR.VERTEXCOUNTOUTPUT, value); } + /** Unsafe version of {@link #vertices(XrVector2f.Buffer) vertices}. */ + public static void nvertices(long struct, @Nullable XrVector2f.Buffer value) { memPutAddress(struct + XrVisibilityMaskKHR.VERTICES, memAddressSafe(value)); if (value != null) { nvertexCapacityInput(struct, value.remaining()); } } + /** Sets the specified value to the {@code indexCapacityInput} field of the specified {@code struct}. */ + public static void nindexCapacityInput(long struct, int value) { UNSAFE.putInt(null, struct + XrVisibilityMaskKHR.INDEXCAPACITYINPUT, value); } + /** Unsafe version of {@link #indexCountOutput(int) indexCountOutput}. */ + public static void nindexCountOutput(long struct, int value) { UNSAFE.putInt(null, struct + XrVisibilityMaskKHR.INDEXCOUNTOUTPUT, value); } + /** Unsafe version of {@link #indices(IntBuffer) indices}. */ + public static void nindices(long struct, @Nullable IntBuffer value) { memPutAddress(struct + XrVisibilityMaskKHR.INDICES, memAddressSafe(value)); if (value != null) { nindexCapacityInput(struct, value.remaining()); } } + + // ----------------------------------- /** An array of {@link XrVisibilityMaskKHR} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -377,52 +377,52 @@ protected Buffer self() { protected XrVisibilityMaskKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrVisibilityMaskKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrVisibilityMaskKHR.ntype(address()); } - /** @return the value of the {@link XrVisibilityMaskKHR#next} field. */ - @NativeType("void *") - public long next() { return XrVisibilityMaskKHR.nnext(address()); } - /** @return the value of the {@link XrVisibilityMaskKHR#vertexCapacityInput} field. */ - @NativeType("uint32_t") - public int vertexCapacityInput() { return XrVisibilityMaskKHR.nvertexCapacityInput(address()); } - /** @return the value of the {@link XrVisibilityMaskKHR#vertexCountOutput} field. */ - @NativeType("uint32_t") - public int vertexCountOutput() { return XrVisibilityMaskKHR.nvertexCountOutput(address()); } - /** @return a {@link XrVector2f.Buffer} view of the struct array pointed to by the {@link XrVisibilityMaskKHR#vertices} field. */ - @Nullable - @NativeType("XrVector2f *") - public XrVector2f.Buffer vertices() { return XrVisibilityMaskKHR.nvertices(address()); } - /** @return the value of the {@link XrVisibilityMaskKHR#indexCapacityInput} field. */ - @NativeType("uint32_t") - public int indexCapacityInput() { return XrVisibilityMaskKHR.nindexCapacityInput(address()); } - /** @return the value of the {@link XrVisibilityMaskKHR#indexCountOutput} field. */ - @NativeType("uint32_t") - public int indexCountOutput() { return XrVisibilityMaskKHR.nindexCountOutput(address()); } - /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrVisibilityMaskKHR#indices} field. */ - @Nullable - @NativeType("uint32_t *") - public IntBuffer indices() { return XrVisibilityMaskKHR.nindices(address()); } - - /** Sets the specified value to the {@link XrVisibilityMaskKHR#type} field. */ - public XrVisibilityMaskKHR.Buffer type(@NativeType("XrStructureType") int value) { XrVisibilityMaskKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRVisibilityMask#XR_TYPE_VISIBILITY_MASK_KHR TYPE_VISIBILITY_MASK_KHR} value to the {@link XrVisibilityMaskKHR#type} field. */ - public XrVisibilityMaskKHR.Buffer type$Default() { return type(KHRVisibilityMask.XR_TYPE_VISIBILITY_MASK_KHR); } - /** Sets the specified value to the {@link XrVisibilityMaskKHR#next} field. */ - public XrVisibilityMaskKHR.Buffer next(@NativeType("void *") long value) { XrVisibilityMaskKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrVisibilityMaskKHR#vertexCapacityInput} field. */ - public XrVisibilityMaskKHR.Buffer vertexCapacityInput(@NativeType("uint32_t") int value) { XrVisibilityMaskKHR.nvertexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrVisibilityMaskKHR#vertexCountOutput} field. */ - public XrVisibilityMaskKHR.Buffer vertexCountOutput(@NativeType("uint32_t") int value) { XrVisibilityMaskKHR.nvertexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link XrVector2f.Buffer} to the {@link XrVisibilityMaskKHR#vertices} field. */ - public XrVisibilityMaskKHR.Buffer vertices(@Nullable @NativeType("XrVector2f *") XrVector2f.Buffer value) { XrVisibilityMaskKHR.nvertices(address(), value); return this; } - /** Sets the specified value to the {@link XrVisibilityMaskKHR#indexCapacityInput} field. */ - public XrVisibilityMaskKHR.Buffer indexCapacityInput(@NativeType("uint32_t") int value) { XrVisibilityMaskKHR.nindexCapacityInput(address(), value); return this; } - /** Sets the specified value to the {@link XrVisibilityMaskKHR#indexCountOutput} field. */ - public XrVisibilityMaskKHR.Buffer indexCountOutput(@NativeType("uint32_t") int value) { XrVisibilityMaskKHR.nindexCountOutput(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link XrVisibilityMaskKHR#indices} field. */ - public XrVisibilityMaskKHR.Buffer indices(@Nullable @NativeType("uint32_t *") IntBuffer value) { XrVisibilityMaskKHR.nindices(address(), value); return this; } + + /** @return the value of the {@link XrVisibilityMaskKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrVisibilityMaskKHR.ntype(address()); } + /** @return the value of the {@link XrVisibilityMaskKHR#next} field. */ + @NativeType("void *") + public long next() { return XrVisibilityMaskKHR.nnext(address()); } + /** @return the value of the {@link XrVisibilityMaskKHR#vertexCapacityInput} field. */ + @NativeType("uint32_t") + public int vertexCapacityInput() { return XrVisibilityMaskKHR.nvertexCapacityInput(address()); } + /** @return the value of the {@link XrVisibilityMaskKHR#vertexCountOutput} field. */ + @NativeType("uint32_t") + public int vertexCountOutput() { return XrVisibilityMaskKHR.nvertexCountOutput(address()); } + /** @return a {@link XrVector2f.Buffer} view of the struct array pointed to by the {@link XrVisibilityMaskKHR#vertices} field. */ + @Nullable + @NativeType("XrVector2f *") + public XrVector2f.Buffer vertices() { return XrVisibilityMaskKHR.nvertices(address()); } + /** @return the value of the {@link XrVisibilityMaskKHR#indexCapacityInput} field. */ + @NativeType("uint32_t") + public int indexCapacityInput() { return XrVisibilityMaskKHR.nindexCapacityInput(address()); } + /** @return the value of the {@link XrVisibilityMaskKHR#indexCountOutput} field. */ + @NativeType("uint32_t") + public int indexCountOutput() { return XrVisibilityMaskKHR.nindexCountOutput(address()); } + /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrVisibilityMaskKHR#indices} field. */ + @Nullable + @NativeType("uint32_t *") + public IntBuffer indices() { return XrVisibilityMaskKHR.nindices(address()); } + + /** Sets the specified value to the {@link XrVisibilityMaskKHR#type} field. */ + public XrVisibilityMaskKHR.Buffer type(@NativeType("XrStructureType") int value) { XrVisibilityMaskKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRVisibilityMask#XR_TYPE_VISIBILITY_MASK_KHR TYPE_VISIBILITY_MASK_KHR} value to the {@link XrVisibilityMaskKHR#type} field. */ + public XrVisibilityMaskKHR.Buffer type$Default() { return type(KHRVisibilityMask.XR_TYPE_VISIBILITY_MASK_KHR); } + /** Sets the specified value to the {@link XrVisibilityMaskKHR#next} field. */ + public XrVisibilityMaskKHR.Buffer next(@NativeType("void *") long value) { XrVisibilityMaskKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrVisibilityMaskKHR#vertexCapacityInput} field. */ + public XrVisibilityMaskKHR.Buffer vertexCapacityInput(@NativeType("uint32_t") int value) { XrVisibilityMaskKHR.nvertexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrVisibilityMaskKHR#vertexCountOutput} field. */ + public XrVisibilityMaskKHR.Buffer vertexCountOutput(@NativeType("uint32_t") int value) { XrVisibilityMaskKHR.nvertexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link XrVector2f.Buffer} to the {@link XrVisibilityMaskKHR#vertices} field. */ + public XrVisibilityMaskKHR.Buffer vertices(@Nullable @NativeType("XrVector2f *") XrVector2f.Buffer value) { XrVisibilityMaskKHR.nvertices(address(), value); return this; } + /** Sets the specified value to the {@link XrVisibilityMaskKHR#indexCapacityInput} field. */ + public XrVisibilityMaskKHR.Buffer indexCapacityInput(@NativeType("uint32_t") int value) { XrVisibilityMaskKHR.nindexCapacityInput(address(), value); return this; } + /** Sets the specified value to the {@link XrVisibilityMaskKHR#indexCountOutput} field. */ + public XrVisibilityMaskKHR.Buffer indexCountOutput(@NativeType("uint32_t") int value) { XrVisibilityMaskKHR.nindexCountOutput(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link XrVisibilityMaskKHR#indices} field. */ + public XrVisibilityMaskKHR.Buffer indices(@Nullable @NativeType("uint32_t *") IntBuffer value) { XrVisibilityMaskKHR.nindices(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVisualMeshComputeLodInfoMSFT.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVisualMeshComputeLodInfoMSFT.java index 1630dc0b7a..fdbc0da2bc 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVisualMeshComputeLodInfoMSFT.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVisualMeshComputeLodInfoMSFT.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Visual mesh compute level of detail info. * @@ -23,7 +23,7 @@ *
                                                                          *
                                                                        • The {@link MSFTSceneUnderstanding XR_MSFT_scene_understanding} extension must be enabled prior to using {@link XrVisualMeshComputeLodInfoMSFT}
                                                                        • *
                                                                        • {@code type} must be {@link MSFTSceneUnderstanding#XR_TYPE_VISUAL_MESH_COMPUTE_LOD_INFO_MSFT TYPE_VISUAL_MESH_COMPUTE_LOD_INFO_MSFT}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        • {@code lod} must be a valid {@code XrMeshComputeLodMSFT} value
                                                                        • *
                                                                        * @@ -39,8 +39,8 @@ * void const * {@link #next}; * XrMeshComputeLodMSFT {@link #lod}; * } - */ -public class XrVisualMeshComputeLodInfoMSFT extends Struct implements NativeResource { + */ +public class XrVisualMeshComputeLodInfoMSFT extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -50,24 +50,24 @@ public class XrVisualMeshComputeLodInfoMSFT extends Struct implements NativeResource { @@ -299,25 +299,25 @@ protected Buffer self() { protected XrVisualMeshComputeLodInfoMSFT getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrVisualMeshComputeLodInfoMSFT#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrVisualMeshComputeLodInfoMSFT.ntype(address()); } - /** @return the value of the {@link XrVisualMeshComputeLodInfoMSFT#next} field. */ - @NativeType("void const *") - public long next() { return XrVisualMeshComputeLodInfoMSFT.nnext(address()); } - /** @return the value of the {@link XrVisualMeshComputeLodInfoMSFT#lod} field. */ - @NativeType("XrMeshComputeLodMSFT") - public int lod() { return XrVisualMeshComputeLodInfoMSFT.nlod(address()); } - - /** Sets the specified value to the {@link XrVisualMeshComputeLodInfoMSFT#type} field. */ - public XrVisualMeshComputeLodInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrVisualMeshComputeLodInfoMSFT.ntype(address(), value); return this; } - /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_VISUAL_MESH_COMPUTE_LOD_INFO_MSFT TYPE_VISUAL_MESH_COMPUTE_LOD_INFO_MSFT} value to the {@link XrVisualMeshComputeLodInfoMSFT#type} field. */ - public XrVisualMeshComputeLodInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_VISUAL_MESH_COMPUTE_LOD_INFO_MSFT); } - /** Sets the specified value to the {@link XrVisualMeshComputeLodInfoMSFT#next} field. */ - public XrVisualMeshComputeLodInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrVisualMeshComputeLodInfoMSFT.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrVisualMeshComputeLodInfoMSFT#lod} field. */ - public XrVisualMeshComputeLodInfoMSFT.Buffer lod(@NativeType("XrMeshComputeLodMSFT") int value) { XrVisualMeshComputeLodInfoMSFT.nlod(address(), value); return this; } + + /** @return the value of the {@link XrVisualMeshComputeLodInfoMSFT#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrVisualMeshComputeLodInfoMSFT.ntype(address()); } + /** @return the value of the {@link XrVisualMeshComputeLodInfoMSFT#next} field. */ + @NativeType("void const *") + public long next() { return XrVisualMeshComputeLodInfoMSFT.nnext(address()); } + /** @return the value of the {@link XrVisualMeshComputeLodInfoMSFT#lod} field. */ + @NativeType("XrMeshComputeLodMSFT") + public int lod() { return XrVisualMeshComputeLodInfoMSFT.nlod(address()); } + + /** Sets the specified value to the {@link XrVisualMeshComputeLodInfoMSFT#type} field. */ + public XrVisualMeshComputeLodInfoMSFT.Buffer type(@NativeType("XrStructureType") int value) { XrVisualMeshComputeLodInfoMSFT.ntype(address(), value); return this; } + /** Sets the {@link MSFTSceneUnderstanding#XR_TYPE_VISUAL_MESH_COMPUTE_LOD_INFO_MSFT TYPE_VISUAL_MESH_COMPUTE_LOD_INFO_MSFT} value to the {@link XrVisualMeshComputeLodInfoMSFT#type} field. */ + public XrVisualMeshComputeLodInfoMSFT.Buffer type$Default() { return type(MSFTSceneUnderstanding.XR_TYPE_VISUAL_MESH_COMPUTE_LOD_INFO_MSFT); } + /** Sets the specified value to the {@link XrVisualMeshComputeLodInfoMSFT#next} field. */ + public XrVisualMeshComputeLodInfoMSFT.Buffer next(@NativeType("void const *") long value) { XrVisualMeshComputeLodInfoMSFT.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrVisualMeshComputeLodInfoMSFT#lod} field. */ + public XrVisualMeshComputeLodInfoMSFT.Buffer lod(@NativeType("XrMeshComputeLodMSFT") int value) { XrVisualMeshComputeLodInfoMSFT.nlod(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViveTrackerPathsHTCX.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViveTrackerPathsHTCX.java index c8ad80b165..da1b4f7473 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViveTrackerPathsHTCX.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrViveTrackerPathsHTCX.java @@ -4,17 +4,17 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + /** * Struct contains two paths of VIVE tracker. * @@ -27,7 +27,7 @@ *
                                                                          *
                                                                        • The {@link HTCXViveTrackerInteraction XR_HTCX_vive_tracker_interaction} extension must be enabled prior to using {@link XrViveTrackerPathsHTCX}
                                                                        • *
                                                                        • {@code type} must be {@link HTCXViveTrackerInteraction#XR_TYPE_VIVE_TRACKER_PATHS_HTCX TYPE_VIVE_TRACKER_PATHS_HTCX}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        * *
                                                                        See Also
                                                                        @@ -43,8 +43,8 @@ * XrPath {@link #persistentPath}; * XrPath {@link #rolePath}; * } - */ -public class XrViveTrackerPathsHTCX extends Struct implements NativeResource { + */ +public class XrViveTrackerPathsHTCX extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,27 +54,27 @@ public class XrViveTrackerPathsHTCX extends Struct imple /** The struct member offsets. */ public static final int - TYPE, - NEXT, - PERSISTENTPATH, - ROLEPATH; + TYPE, + NEXT, + PERSISTENTPATH, + ROLEPATH; static { - Layout layout = __struct( - __member(4), - __member(POINTER_SIZE), - __member(8), + Layout layout = __struct( + __member(4), + __member(POINTER_SIZE), + __member(8), __member(8) ); SIZEOF = layout.getSize(); ALIGNOF = layout.getAlignment(); - TYPE = layout.offsetof(0); - NEXT = layout.offsetof(1); - PERSISTENTPATH = layout.offsetof(2); - ROLEPATH = layout.offsetof(3); - } + TYPE = layout.offsetof(0); + NEXT = layout.offsetof(1); + PERSISTENTPATH = layout.offsetof(2); + ROLEPATH = layout.offsetof(3); + } protected XrViveTrackerPathsHTCX(long address, @Nullable ByteBuffer container) { super(address, container); @@ -97,34 +97,34 @@ public XrViveTrackerPathsHTCX(ByteBuffer container) { @Override public int sizeof() { return SIZEOF; } - - /** the {@code XrStructureType} of this structure. */ - @NativeType("XrStructureType") - public int type() { return ntype(address()); } - /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ - @NativeType("void *") - public long next() { return nnext(address()); } - /** the unique path of the VIVE tracker which is persistent over the lifetime of the hardware. */ - @NativeType("XrPath") - public long persistentPath() { return npersistentPath(address()); } - /** the path of the VIVE tracker role. This may be {@link XR10#XR_NULL_PATH NULL_PATH} if the role is not assigned. */ - @NativeType("XrPath") - public long rolePath() { return nrolePath(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrViveTrackerPathsHTCX type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link HTCXViveTrackerInteraction#XR_TYPE_VIVE_TRACKER_PATHS_HTCX TYPE_VIVE_TRACKER_PATHS_HTCX} value to the {@link #type} field. */ - public XrViveTrackerPathsHTCX type$Default() { return type(HTCXViveTrackerInteraction.XR_TYPE_VIVE_TRACKER_PATHS_HTCX); } - /** Sets the specified value to the {@link #next} field. */ - public XrViveTrackerPathsHTCX next(@NativeType("void *") long value) { nnext(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension. */ + @NativeType("void *") + public long next() { return nnext(address()); } + /** the unique path of the VIVE tracker which is persistent over the lifetime of the hardware. */ + @NativeType("XrPath") + public long persistentPath() { return npersistentPath(address()); } + /** the path of the VIVE tracker role. This may be {@link XR10#XR_NULL_PATH NULL_PATH} if the role is not assigned. */ + @NativeType("XrPath") + public long rolePath() { return nrolePath(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrViveTrackerPathsHTCX type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link HTCXViveTrackerInteraction#XR_TYPE_VIVE_TRACKER_PATHS_HTCX TYPE_VIVE_TRACKER_PATHS_HTCX} value to the {@link #type} field. */ + public XrViveTrackerPathsHTCX type$Default() { return type(HTCXViveTrackerInteraction.XR_TYPE_VIVE_TRACKER_PATHS_HTCX); } + /** Sets the specified value to the {@link #next} field. */ + public XrViveTrackerPathsHTCX next(@NativeType("void *") long value) { nnext(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrViveTrackerPathsHTCX set( - int type, + int type, long next - ) { - type(type); - next(next); + ) { + type(type); + next(next); return this; } @@ -253,22 +253,22 @@ public static XrViveTrackerPathsHTCX.Buffer calloc(int capacity, MemoryStack sta } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrViveTrackerPathsHTCX.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrViveTrackerPathsHTCX.NEXT); } - /** Unsafe version of {@link #persistentPath}. */ - public static long npersistentPath(long struct) { return UNSAFE.getLong(null, struct + XrViveTrackerPathsHTCX.PERSISTENTPATH); } - /** Unsafe version of {@link #rolePath}. */ - public static long nrolePath(long struct) { return UNSAFE.getLong(null, struct + XrViveTrackerPathsHTCX.ROLEPATH); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrViveTrackerPathsHTCX.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrViveTrackerPathsHTCX.NEXT, value); } - - // ----------------------------------- + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrViveTrackerPathsHTCX.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrViveTrackerPathsHTCX.NEXT); } + /** Unsafe version of {@link #persistentPath}. */ + public static long npersistentPath(long struct) { return UNSAFE.getLong(null, struct + XrViveTrackerPathsHTCX.PERSISTENTPATH); } + /** Unsafe version of {@link #rolePath}. */ + public static long nrolePath(long struct) { return UNSAFE.getLong(null, struct + XrViveTrackerPathsHTCX.ROLEPATH); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrViveTrackerPathsHTCX.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrViveTrackerPathsHTCX.NEXT, value); } + + // ----------------------------------- /** An array of {@link XrViveTrackerPathsHTCX} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -305,26 +305,26 @@ protected Buffer self() { protected XrViveTrackerPathsHTCX getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrViveTrackerPathsHTCX#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrViveTrackerPathsHTCX.ntype(address()); } - /** @return the value of the {@link XrViveTrackerPathsHTCX#next} field. */ - @NativeType("void *") - public long next() { return XrViveTrackerPathsHTCX.nnext(address()); } - /** @return the value of the {@link XrViveTrackerPathsHTCX#persistentPath} field. */ - @NativeType("XrPath") - public long persistentPath() { return XrViveTrackerPathsHTCX.npersistentPath(address()); } - /** @return the value of the {@link XrViveTrackerPathsHTCX#rolePath} field. */ - @NativeType("XrPath") - public long rolePath() { return XrViveTrackerPathsHTCX.nrolePath(address()); } - - /** Sets the specified value to the {@link XrViveTrackerPathsHTCX#type} field. */ - public XrViveTrackerPathsHTCX.Buffer type(@NativeType("XrStructureType") int value) { XrViveTrackerPathsHTCX.ntype(address(), value); return this; } - /** Sets the {@link HTCXViveTrackerInteraction#XR_TYPE_VIVE_TRACKER_PATHS_HTCX TYPE_VIVE_TRACKER_PATHS_HTCX} value to the {@link XrViveTrackerPathsHTCX#type} field. */ - public XrViveTrackerPathsHTCX.Buffer type$Default() { return type(HTCXViveTrackerInteraction.XR_TYPE_VIVE_TRACKER_PATHS_HTCX); } - /** Sets the specified value to the {@link XrViveTrackerPathsHTCX#next} field. */ - public XrViveTrackerPathsHTCX.Buffer next(@NativeType("void *") long value) { XrViveTrackerPathsHTCX.nnext(address(), value); return this; } + + /** @return the value of the {@link XrViveTrackerPathsHTCX#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrViveTrackerPathsHTCX.ntype(address()); } + /** @return the value of the {@link XrViveTrackerPathsHTCX#next} field. */ + @NativeType("void *") + public long next() { return XrViveTrackerPathsHTCX.nnext(address()); } + /** @return the value of the {@link XrViveTrackerPathsHTCX#persistentPath} field. */ + @NativeType("XrPath") + public long persistentPath() { return XrViveTrackerPathsHTCX.npersistentPath(address()); } + /** @return the value of the {@link XrViveTrackerPathsHTCX#rolePath} field. */ + @NativeType("XrPath") + public long rolePath() { return XrViveTrackerPathsHTCX.nrolePath(address()); } + + /** Sets the specified value to the {@link XrViveTrackerPathsHTCX#type} field. */ + public XrViveTrackerPathsHTCX.Buffer type(@NativeType("XrStructureType") int value) { XrViveTrackerPathsHTCX.ntype(address(), value); return this; } + /** Sets the {@link HTCXViveTrackerInteraction#XR_TYPE_VIVE_TRACKER_PATHS_HTCX TYPE_VIVE_TRACKER_PATHS_HTCX} value to the {@link XrViveTrackerPathsHTCX#type} field. */ + public XrViveTrackerPathsHTCX.Buffer type$Default() { return type(HTCXViveTrackerInteraction.XR_TYPE_VIVE_TRACKER_PATHS_HTCX); } + /** Sets the specified value to the {@link XrViveTrackerPathsHTCX#next} field. */ + public XrViveTrackerPathsHTCX.Buffer next(@NativeType("void *") long value) { XrViveTrackerPathsHTCX.nnext(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanDeviceCreateInfoKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanDeviceCreateInfoKHR.java index 47f870a486..4cd684da13 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanDeviceCreateInfoKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanDeviceCreateInfoKHR.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import org.lwjgl.vulkan.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.vulkan.*; + /** * Vulkan Device Create Info. * @@ -30,7 +30,7 @@ *
                                                                          *
                                                                        • The {@link KHRVulkanEnable2 XR_KHR_vulkan_enable2} extension must be enabled prior to using {@link XrVulkanDeviceCreateInfoKHR}
                                                                        • *
                                                                        • {@code type} must be {@link KHRVulkanEnable2#XR_TYPE_VULKAN_DEVICE_CREATE_INFO_KHR TYPE_VULKAN_DEVICE_CREATE_INFO_KHR}
                                                                        • - *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • + *
                                                                        • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                        • *
                                                                        • {@code createFlags} must be 0
                                                                        • *
                                                                        • {@code pfnGetInstanceProcAddr} must be a valid {@code PFN_vkGetInstanceProcAddr} value
                                                                        • *
                                                                        • {@code vulkanPhysicalDevice} must be a valid {@code VkPhysicalDevice} value
                                                                        • @@ -55,8 +55,8 @@ * {@link VkDeviceCreateInfo VkDeviceCreateInfo} const * {@link #vulkanCreateInfo}; * {@link VkAllocationCallbacks VkAllocationCallbacks} const * {@link #vulkanAllocator}; * } - */ -public class XrVulkanDeviceCreateInfoKHR extends Struct implements NativeResource { + */ +public class XrVulkanDeviceCreateInfoKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -66,39 +66,39 @@ public class XrVulkanDeviceCreateInfoKHR extends Structmust match {@link KHRVulkanEnable#xrGetVulkanGraphicsDeviceKHR GetVulkanGraphicsDeviceKHR}. */ - @NativeType("VkPhysicalDevice") - public long vulkanPhysicalDevice() { return nvulkanPhysicalDevice(address()); } - /** the {@code VkDeviceCreateInfo} as specified by Vulkan. */ - @NativeType("VkDeviceCreateInfo const *") - public VkDeviceCreateInfo vulkanCreateInfo() { return nvulkanCreateInfo(address()); } - /** the {@code VkAllocationCallbacks} as specified by Vulkan. */ - @Nullable - @NativeType("VkAllocationCallbacks const *") - public VkAllocationCallbacks vulkanAllocator() { return nvulkanAllocator(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrVulkanDeviceCreateInfoKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable2#XR_TYPE_VULKAN_DEVICE_CREATE_INFO_KHR TYPE_VULKAN_DEVICE_CREATE_INFO_KHR} value to the {@code type} field. */ - public XrVulkanDeviceCreateInfoKHR type$Default() { return type(KHRVulkanEnable2.XR_TYPE_VULKAN_DEVICE_CREATE_INFO_KHR); } - /** Sets the specified value to the {@code next} field. */ - public XrVulkanDeviceCreateInfoKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #systemId} field. */ - public XrVulkanDeviceCreateInfoKHR systemId(@NativeType("XrSystemId") long value) { nsystemId(address(), value); return this; } - /** Sets the specified value to the {@link #createFlags} field. */ - public XrVulkanDeviceCreateInfoKHR createFlags(@NativeType("XrVulkanDeviceCreateFlagsKHR") long value) { ncreateFlags(address(), value); return this; } - /** Sets the specified value to the {@link #pfnGetInstanceProcAddr} field. */ - public XrVulkanDeviceCreateInfoKHR pfnGetInstanceProcAddr(@NativeType("PFN_vkGetInstanceProcAddr") long value) { npfnGetInstanceProcAddr(address(), value); return this; } - /** Sets the specified value to the {@link #vulkanPhysicalDevice} field. */ - public XrVulkanDeviceCreateInfoKHR vulkanPhysicalDevice(VkPhysicalDevice value) { nvulkanPhysicalDevice(address(), value); return this; } - /** Sets the address of the specified {@link VkDeviceCreateInfo} to the {@link #vulkanCreateInfo} field. */ - public XrVulkanDeviceCreateInfoKHR vulkanCreateInfo(@NativeType("VkDeviceCreateInfo const *") VkDeviceCreateInfo value) { nvulkanCreateInfo(address(), value); return this; } - /** Sets the address of the specified {@link VkAllocationCallbacks} to the {@link #vulkanAllocator} field. */ - public XrVulkanDeviceCreateInfoKHR vulkanAllocator(@Nullable @NativeType("VkAllocationCallbacks const *") VkAllocationCallbacks value) { nvulkanAllocator(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** an {@code XrSystemId} handle for the system which will be used to create a session. */ + @NativeType("XrSystemId") + public long systemId() { return nsystemId(address()); } + /** a bitmask of {@code XrVulkanDeviceCreateFlagBitsKHR} */ + @NativeType("XrVulkanDeviceCreateFlagsKHR") + public long createFlags() { return ncreateFlags(address()); } + /** a function pointer to {@code vkGetInstanceProcAddr} or a compatible entry point. */ + @NativeType("PFN_vkGetInstanceProcAddr") + public long pfnGetInstanceProcAddr() { return npfnGetInstanceProcAddr(address()); } + /** must match {@link KHRVulkanEnable#xrGetVulkanGraphicsDeviceKHR GetVulkanGraphicsDeviceKHR}. */ + @NativeType("VkPhysicalDevice") + public long vulkanPhysicalDevice() { return nvulkanPhysicalDevice(address()); } + /** the {@code VkDeviceCreateInfo} as specified by Vulkan. */ + @NativeType("VkDeviceCreateInfo const *") + public VkDeviceCreateInfo vulkanCreateInfo() { return nvulkanCreateInfo(address()); } + /** the {@code VkAllocationCallbacks} as specified by Vulkan. */ + @Nullable + @NativeType("VkAllocationCallbacks const *") + public VkAllocationCallbacks vulkanAllocator() { return nvulkanAllocator(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrVulkanDeviceCreateInfoKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable2#XR_TYPE_VULKAN_DEVICE_CREATE_INFO_KHR TYPE_VULKAN_DEVICE_CREATE_INFO_KHR} value to the {@code type} field. */ + public XrVulkanDeviceCreateInfoKHR type$Default() { return type(KHRVulkanEnable2.XR_TYPE_VULKAN_DEVICE_CREATE_INFO_KHR); } + /** Sets the specified value to the {@code next} field. */ + public XrVulkanDeviceCreateInfoKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #systemId} field. */ + public XrVulkanDeviceCreateInfoKHR systemId(@NativeType("XrSystemId") long value) { nsystemId(address(), value); return this; } + /** Sets the specified value to the {@link #createFlags} field. */ + public XrVulkanDeviceCreateInfoKHR createFlags(@NativeType("XrVulkanDeviceCreateFlagsKHR") long value) { ncreateFlags(address(), value); return this; } + /** Sets the specified value to the {@link #pfnGetInstanceProcAddr} field. */ + public XrVulkanDeviceCreateInfoKHR pfnGetInstanceProcAddr(@NativeType("PFN_vkGetInstanceProcAddr") long value) { npfnGetInstanceProcAddr(address(), value); return this; } + /** Sets the specified value to the {@link #vulkanPhysicalDevice} field. */ + public XrVulkanDeviceCreateInfoKHR vulkanPhysicalDevice(VkPhysicalDevice value) { nvulkanPhysicalDevice(address(), value); return this; } + /** Sets the address of the specified {@link VkDeviceCreateInfo} to the {@link #vulkanCreateInfo} field. */ + public XrVulkanDeviceCreateInfoKHR vulkanCreateInfo(@NativeType("VkDeviceCreateInfo const *") VkDeviceCreateInfo value) { nvulkanCreateInfo(address(), value); return this; } + /** Sets the address of the specified {@link VkAllocationCallbacks} to the {@link #vulkanAllocator} field. */ + public XrVulkanDeviceCreateInfoKHR vulkanAllocator(@Nullable @NativeType("VkAllocationCallbacks const *") VkAllocationCallbacks value) { nvulkanAllocator(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrVulkanDeviceCreateInfoKHR set( - int type, - long next, - long systemId, - long createFlags, - long pfnGetInstanceProcAddr, - VkPhysicalDevice vulkanPhysicalDevice, - VkDeviceCreateInfo vulkanCreateInfo, + int type, + long next, + long systemId, + long createFlags, + long pfnGetInstanceProcAddr, + VkPhysicalDevice vulkanPhysicalDevice, + VkDeviceCreateInfo vulkanCreateInfo, @Nullable VkAllocationCallbacks vulkanAllocator - ) { - type(type); - next(next); - systemId(systemId); - createFlags(createFlags); - pfnGetInstanceProcAddr(pfnGetInstanceProcAddr); - vulkanPhysicalDevice(vulkanPhysicalDevice); - vulkanCreateInfo(vulkanCreateInfo); - vulkanAllocator(vulkanAllocator); + ) { + type(type); + next(next); + systemId(systemId); + createFlags(createFlags); + pfnGetInstanceProcAddr(pfnGetInstanceProcAddr); + vulkanPhysicalDevice(vulkanPhysicalDevice); + vulkanCreateInfo(vulkanCreateInfo); + vulkanAllocator(vulkanAllocator); return this; } @@ -314,40 +314,40 @@ public static XrVulkanDeviceCreateInfoKHR.Buffer calloc(int capacity, MemoryStac } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrVulkanDeviceCreateInfoKHR.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrVulkanDeviceCreateInfoKHR.NEXT); } - /** Unsafe version of {@link #systemId}. */ - public static long nsystemId(long struct) { return UNSAFE.getLong(null, struct + XrVulkanDeviceCreateInfoKHR.SYSTEMID); } - /** Unsafe version of {@link #createFlags}. */ - public static long ncreateFlags(long struct) { return UNSAFE.getLong(null, struct + XrVulkanDeviceCreateInfoKHR.CREATEFLAGS); } - /** Unsafe version of {@link #pfnGetInstanceProcAddr}. */ - public static long npfnGetInstanceProcAddr(long struct) { return memGetAddress(struct + XrVulkanDeviceCreateInfoKHR.PFNGETINSTANCEPROCADDR); } - /** Unsafe version of {@link #vulkanPhysicalDevice}. */ - public static long nvulkanPhysicalDevice(long struct) { return memGetAddress(struct + XrVulkanDeviceCreateInfoKHR.VULKANPHYSICALDEVICE); } - /** Unsafe version of {@link #vulkanCreateInfo}. */ - public static VkDeviceCreateInfo nvulkanCreateInfo(long struct) { return VkDeviceCreateInfo.create(memGetAddress(struct + XrVulkanDeviceCreateInfoKHR.VULKANCREATEINFO)); } - /** Unsafe version of {@link #vulkanAllocator}. */ - @Nullable public static VkAllocationCallbacks nvulkanAllocator(long struct) { return VkAllocationCallbacks.createSafe(memGetAddress(struct + XrVulkanDeviceCreateInfoKHR.VULKANALLOCATOR)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrVulkanDeviceCreateInfoKHR.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrVulkanDeviceCreateInfoKHR.NEXT, value); } - /** Unsafe version of {@link #systemId(long) systemId}. */ - public static void nsystemId(long struct, long value) { UNSAFE.putLong(null, struct + XrVulkanDeviceCreateInfoKHR.SYSTEMID, value); } - /** Unsafe version of {@link #createFlags(long) createFlags}. */ - public static void ncreateFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrVulkanDeviceCreateInfoKHR.CREATEFLAGS, value); } - /** Unsafe version of {@link #pfnGetInstanceProcAddr(long) pfnGetInstanceProcAddr}. */ - public static void npfnGetInstanceProcAddr(long struct, long value) { memPutAddress(struct + XrVulkanDeviceCreateInfoKHR.PFNGETINSTANCEPROCADDR, check(value)); } - /** Unsafe version of {@link #vulkanPhysicalDevice(VkPhysicalDevice) vulkanPhysicalDevice}. */ - public static void nvulkanPhysicalDevice(long struct, VkPhysicalDevice value) { memPutAddress(struct + XrVulkanDeviceCreateInfoKHR.VULKANPHYSICALDEVICE, value.address()); } - /** Unsafe version of {@link #vulkanCreateInfo(VkDeviceCreateInfo) vulkanCreateInfo}. */ - public static void nvulkanCreateInfo(long struct, VkDeviceCreateInfo value) { memPutAddress(struct + XrVulkanDeviceCreateInfoKHR.VULKANCREATEINFO, value.address()); } - /** Unsafe version of {@link #vulkanAllocator(VkAllocationCallbacks) vulkanAllocator}. */ - public static void nvulkanAllocator(long struct, @Nullable VkAllocationCallbacks value) { memPutAddress(struct + XrVulkanDeviceCreateInfoKHR.VULKANALLOCATOR, memAddressSafe(value)); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrVulkanDeviceCreateInfoKHR.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrVulkanDeviceCreateInfoKHR.NEXT); } + /** Unsafe version of {@link #systemId}. */ + public static long nsystemId(long struct) { return UNSAFE.getLong(null, struct + XrVulkanDeviceCreateInfoKHR.SYSTEMID); } + /** Unsafe version of {@link #createFlags}. */ + public static long ncreateFlags(long struct) { return UNSAFE.getLong(null, struct + XrVulkanDeviceCreateInfoKHR.CREATEFLAGS); } + /** Unsafe version of {@link #pfnGetInstanceProcAddr}. */ + public static long npfnGetInstanceProcAddr(long struct) { return memGetAddress(struct + XrVulkanDeviceCreateInfoKHR.PFNGETINSTANCEPROCADDR); } + /** Unsafe version of {@link #vulkanPhysicalDevice}. */ + public static long nvulkanPhysicalDevice(long struct) { return memGetAddress(struct + XrVulkanDeviceCreateInfoKHR.VULKANPHYSICALDEVICE); } + /** Unsafe version of {@link #vulkanCreateInfo}. */ + public static VkDeviceCreateInfo nvulkanCreateInfo(long struct) { return VkDeviceCreateInfo.create(memGetAddress(struct + XrVulkanDeviceCreateInfoKHR.VULKANCREATEINFO)); } + /** Unsafe version of {@link #vulkanAllocator}. */ + @Nullable public static VkAllocationCallbacks nvulkanAllocator(long struct) { return VkAllocationCallbacks.createSafe(memGetAddress(struct + XrVulkanDeviceCreateInfoKHR.VULKANALLOCATOR)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrVulkanDeviceCreateInfoKHR.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrVulkanDeviceCreateInfoKHR.NEXT, value); } + /** Unsafe version of {@link #systemId(long) systemId}. */ + public static void nsystemId(long struct, long value) { UNSAFE.putLong(null, struct + XrVulkanDeviceCreateInfoKHR.SYSTEMID, value); } + /** Unsafe version of {@link #createFlags(long) createFlags}. */ + public static void ncreateFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrVulkanDeviceCreateInfoKHR.CREATEFLAGS, value); } + /** Unsafe version of {@link #pfnGetInstanceProcAddr(long) pfnGetInstanceProcAddr}. */ + public static void npfnGetInstanceProcAddr(long struct, long value) { memPutAddress(struct + XrVulkanDeviceCreateInfoKHR.PFNGETINSTANCEPROCADDR, check(value)); } + /** Unsafe version of {@link #vulkanPhysicalDevice(VkPhysicalDevice) vulkanPhysicalDevice}. */ + public static void nvulkanPhysicalDevice(long struct, VkPhysicalDevice value) { memPutAddress(struct + XrVulkanDeviceCreateInfoKHR.VULKANPHYSICALDEVICE, value.address()); } + /** Unsafe version of {@link #vulkanCreateInfo(VkDeviceCreateInfo) vulkanCreateInfo}. */ + public static void nvulkanCreateInfo(long struct, VkDeviceCreateInfo value) { memPutAddress(struct + XrVulkanDeviceCreateInfoKHR.VULKANCREATEINFO, value.address()); } + /** Unsafe version of {@link #vulkanAllocator(VkAllocationCallbacks) vulkanAllocator}. */ + public static void nvulkanAllocator(long struct, @Nullable VkAllocationCallbacks value) { memPutAddress(struct + XrVulkanDeviceCreateInfoKHR.VULKANALLOCATOR, memAddressSafe(value)); } /** * Validates pointer members that should not be {@code NULL}. @@ -360,9 +360,9 @@ public static void validate(long struct) { long vulkanCreateInfo = memGetAddress(struct + XrVulkanDeviceCreateInfoKHR.VULKANCREATEINFO); check(vulkanCreateInfo); VkDeviceCreateInfo.validate(vulkanCreateInfo); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrVulkanDeviceCreateInfoKHR} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -399,51 +399,51 @@ protected Buffer self() { protected XrVulkanDeviceCreateInfoKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrVulkanDeviceCreateInfoKHR.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrVulkanDeviceCreateInfoKHR.nnext(address()); } - /** @return the value of the {@link XrVulkanDeviceCreateInfoKHR#systemId} field. */ - @NativeType("XrSystemId") - public long systemId() { return XrVulkanDeviceCreateInfoKHR.nsystemId(address()); } - /** @return the value of the {@link XrVulkanDeviceCreateInfoKHR#createFlags} field. */ - @NativeType("XrVulkanDeviceCreateFlagsKHR") - public long createFlags() { return XrVulkanDeviceCreateInfoKHR.ncreateFlags(address()); } - /** @return the value of the {@link XrVulkanDeviceCreateInfoKHR#pfnGetInstanceProcAddr} field. */ - @NativeType("PFN_vkGetInstanceProcAddr") - public long pfnGetInstanceProcAddr() { return XrVulkanDeviceCreateInfoKHR.npfnGetInstanceProcAddr(address()); } - /** @return the value of the {@link XrVulkanDeviceCreateInfoKHR#vulkanPhysicalDevice} field. */ - @NativeType("VkPhysicalDevice") - public long vulkanPhysicalDevice() { return XrVulkanDeviceCreateInfoKHR.nvulkanPhysicalDevice(address()); } - /** @return a {@link VkDeviceCreateInfo} view of the struct pointed to by the {@link XrVulkanDeviceCreateInfoKHR#vulkanCreateInfo} field. */ - @NativeType("VkDeviceCreateInfo const *") - public VkDeviceCreateInfo vulkanCreateInfo() { return XrVulkanDeviceCreateInfoKHR.nvulkanCreateInfo(address()); } - /** @return a {@link VkAllocationCallbacks} view of the struct pointed to by the {@link XrVulkanDeviceCreateInfoKHR#vulkanAllocator} field. */ - @Nullable - @NativeType("VkAllocationCallbacks const *") - public VkAllocationCallbacks vulkanAllocator() { return XrVulkanDeviceCreateInfoKHR.nvulkanAllocator(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrVulkanDeviceCreateInfoKHR.Buffer type(@NativeType("XrStructureType") int value) { XrVulkanDeviceCreateInfoKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable2#XR_TYPE_VULKAN_DEVICE_CREATE_INFO_KHR TYPE_VULKAN_DEVICE_CREATE_INFO_KHR} value to the {@code type} field. */ - public XrVulkanDeviceCreateInfoKHR.Buffer type$Default() { return type(KHRVulkanEnable2.XR_TYPE_VULKAN_DEVICE_CREATE_INFO_KHR); } - /** Sets the specified value to the {@code next} field. */ - public XrVulkanDeviceCreateInfoKHR.Buffer next(@NativeType("void const *") long value) { XrVulkanDeviceCreateInfoKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrVulkanDeviceCreateInfoKHR#systemId} field. */ - public XrVulkanDeviceCreateInfoKHR.Buffer systemId(@NativeType("XrSystemId") long value) { XrVulkanDeviceCreateInfoKHR.nsystemId(address(), value); return this; } - /** Sets the specified value to the {@link XrVulkanDeviceCreateInfoKHR#createFlags} field. */ - public XrVulkanDeviceCreateInfoKHR.Buffer createFlags(@NativeType("XrVulkanDeviceCreateFlagsKHR") long value) { XrVulkanDeviceCreateInfoKHR.ncreateFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrVulkanDeviceCreateInfoKHR#pfnGetInstanceProcAddr} field. */ - public XrVulkanDeviceCreateInfoKHR.Buffer pfnGetInstanceProcAddr(@NativeType("PFN_vkGetInstanceProcAddr") long value) { XrVulkanDeviceCreateInfoKHR.npfnGetInstanceProcAddr(address(), value); return this; } - /** Sets the specified value to the {@link XrVulkanDeviceCreateInfoKHR#vulkanPhysicalDevice} field. */ - public XrVulkanDeviceCreateInfoKHR.Buffer vulkanPhysicalDevice(VkPhysicalDevice value) { XrVulkanDeviceCreateInfoKHR.nvulkanPhysicalDevice(address(), value); return this; } - /** Sets the address of the specified {@link VkDeviceCreateInfo} to the {@link XrVulkanDeviceCreateInfoKHR#vulkanCreateInfo} field. */ - public XrVulkanDeviceCreateInfoKHR.Buffer vulkanCreateInfo(@NativeType("VkDeviceCreateInfo const *") VkDeviceCreateInfo value) { XrVulkanDeviceCreateInfoKHR.nvulkanCreateInfo(address(), value); return this; } - /** Sets the address of the specified {@link VkAllocationCallbacks} to the {@link XrVulkanDeviceCreateInfoKHR#vulkanAllocator} field. */ - public XrVulkanDeviceCreateInfoKHR.Buffer vulkanAllocator(@Nullable @NativeType("VkAllocationCallbacks const *") VkAllocationCallbacks value) { XrVulkanDeviceCreateInfoKHR.nvulkanAllocator(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrVulkanDeviceCreateInfoKHR.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrVulkanDeviceCreateInfoKHR.nnext(address()); } + /** @return the value of the {@link XrVulkanDeviceCreateInfoKHR#systemId} field. */ + @NativeType("XrSystemId") + public long systemId() { return XrVulkanDeviceCreateInfoKHR.nsystemId(address()); } + /** @return the value of the {@link XrVulkanDeviceCreateInfoKHR#createFlags} field. */ + @NativeType("XrVulkanDeviceCreateFlagsKHR") + public long createFlags() { return XrVulkanDeviceCreateInfoKHR.ncreateFlags(address()); } + /** @return the value of the {@link XrVulkanDeviceCreateInfoKHR#pfnGetInstanceProcAddr} field. */ + @NativeType("PFN_vkGetInstanceProcAddr") + public long pfnGetInstanceProcAddr() { return XrVulkanDeviceCreateInfoKHR.npfnGetInstanceProcAddr(address()); } + /** @return the value of the {@link XrVulkanDeviceCreateInfoKHR#vulkanPhysicalDevice} field. */ + @NativeType("VkPhysicalDevice") + public long vulkanPhysicalDevice() { return XrVulkanDeviceCreateInfoKHR.nvulkanPhysicalDevice(address()); } + /** @return a {@link VkDeviceCreateInfo} view of the struct pointed to by the {@link XrVulkanDeviceCreateInfoKHR#vulkanCreateInfo} field. */ + @NativeType("VkDeviceCreateInfo const *") + public VkDeviceCreateInfo vulkanCreateInfo() { return XrVulkanDeviceCreateInfoKHR.nvulkanCreateInfo(address()); } + /** @return a {@link VkAllocationCallbacks} view of the struct pointed to by the {@link XrVulkanDeviceCreateInfoKHR#vulkanAllocator} field. */ + @Nullable + @NativeType("VkAllocationCallbacks const *") + public VkAllocationCallbacks vulkanAllocator() { return XrVulkanDeviceCreateInfoKHR.nvulkanAllocator(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrVulkanDeviceCreateInfoKHR.Buffer type(@NativeType("XrStructureType") int value) { XrVulkanDeviceCreateInfoKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable2#XR_TYPE_VULKAN_DEVICE_CREATE_INFO_KHR TYPE_VULKAN_DEVICE_CREATE_INFO_KHR} value to the {@code type} field. */ + public XrVulkanDeviceCreateInfoKHR.Buffer type$Default() { return type(KHRVulkanEnable2.XR_TYPE_VULKAN_DEVICE_CREATE_INFO_KHR); } + /** Sets the specified value to the {@code next} field. */ + public XrVulkanDeviceCreateInfoKHR.Buffer next(@NativeType("void const *") long value) { XrVulkanDeviceCreateInfoKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrVulkanDeviceCreateInfoKHR#systemId} field. */ + public XrVulkanDeviceCreateInfoKHR.Buffer systemId(@NativeType("XrSystemId") long value) { XrVulkanDeviceCreateInfoKHR.nsystemId(address(), value); return this; } + /** Sets the specified value to the {@link XrVulkanDeviceCreateInfoKHR#createFlags} field. */ + public XrVulkanDeviceCreateInfoKHR.Buffer createFlags(@NativeType("XrVulkanDeviceCreateFlagsKHR") long value) { XrVulkanDeviceCreateInfoKHR.ncreateFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrVulkanDeviceCreateInfoKHR#pfnGetInstanceProcAddr} field. */ + public XrVulkanDeviceCreateInfoKHR.Buffer pfnGetInstanceProcAddr(@NativeType("PFN_vkGetInstanceProcAddr") long value) { XrVulkanDeviceCreateInfoKHR.npfnGetInstanceProcAddr(address(), value); return this; } + /** Sets the specified value to the {@link XrVulkanDeviceCreateInfoKHR#vulkanPhysicalDevice} field. */ + public XrVulkanDeviceCreateInfoKHR.Buffer vulkanPhysicalDevice(VkPhysicalDevice value) { XrVulkanDeviceCreateInfoKHR.nvulkanPhysicalDevice(address(), value); return this; } + /** Sets the address of the specified {@link VkDeviceCreateInfo} to the {@link XrVulkanDeviceCreateInfoKHR#vulkanCreateInfo} field. */ + public XrVulkanDeviceCreateInfoKHR.Buffer vulkanCreateInfo(@NativeType("VkDeviceCreateInfo const *") VkDeviceCreateInfo value) { XrVulkanDeviceCreateInfoKHR.nvulkanCreateInfo(address(), value); return this; } + /** Sets the address of the specified {@link VkAllocationCallbacks} to the {@link XrVulkanDeviceCreateInfoKHR#vulkanAllocator} field. */ + public XrVulkanDeviceCreateInfoKHR.Buffer vulkanAllocator(@Nullable @NativeType("VkAllocationCallbacks const *") VkAllocationCallbacks value) { XrVulkanDeviceCreateInfoKHR.nvulkanAllocator(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanGraphicsDeviceGetInfoKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanGraphicsDeviceGetInfoKHR.java index 77fb4f7f52..776c625fd8 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanGraphicsDeviceGetInfoKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanGraphicsDeviceGetInfoKHR.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import org.lwjgl.vulkan.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.vulkan.*; + /** * Vulkan Graphics Device Get Info. * @@ -26,7 +26,7 @@ *
                                                                            *
                                                                          • The {@link KHRVulkanEnable2 XR_KHR_vulkan_enable2} extension must be enabled prior to using {@link XrVulkanGraphicsDeviceGetInfoKHR}
                                                                          • *
                                                                          • {@code type} must be {@link KHRVulkanEnable2#XR_TYPE_VULKAN_GRAPHICS_DEVICE_GET_INFO_KHR TYPE_VULKAN_GRAPHICS_DEVICE_GET_INFO_KHR}
                                                                          • - *
                                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                          • + *
                                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                          • *
                                                                          • {@code vulkanInstance} must be a valid {@code VkInstance} value
                                                                          • *
                                                                          * @@ -43,8 +43,8 @@ * XrSystemId {@link #systemId}; * VkInstance {@link #vulkanInstance}; * } - */ -public class XrVulkanGraphicsDeviceGetInfoKHR extends Struct implements NativeResource { + */ +public class XrVulkanGraphicsDeviceGetInfoKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,27 +54,27 @@ public class XrVulkanGraphicsDeviceGetInfoKHR extends Struct implements NativeResource { @@ -326,30 +326,30 @@ protected Buffer self() { protected XrVulkanGraphicsDeviceGetInfoKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@code type} field. */ - @NativeType("XrStructureType") - public int type() { return XrVulkanGraphicsDeviceGetInfoKHR.ntype(address()); } - /** @return the value of the {@code next} field. */ - @NativeType("void const *") - public long next() { return XrVulkanGraphicsDeviceGetInfoKHR.nnext(address()); } - /** @return the value of the {@link XrVulkanGraphicsDeviceGetInfoKHR#systemId} field. */ - @NativeType("XrSystemId") - public long systemId() { return XrVulkanGraphicsDeviceGetInfoKHR.nsystemId(address()); } - /** @return the value of the {@link XrVulkanGraphicsDeviceGetInfoKHR#vulkanInstance} field. */ - @NativeType("VkInstance") - public long vulkanInstance() { return XrVulkanGraphicsDeviceGetInfoKHR.nvulkanInstance(address()); } - - /** Sets the specified value to the {@code type} field. */ - public XrVulkanGraphicsDeviceGetInfoKHR.Buffer type(@NativeType("XrStructureType") int value) { XrVulkanGraphicsDeviceGetInfoKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable2#XR_TYPE_VULKAN_GRAPHICS_DEVICE_GET_INFO_KHR TYPE_VULKAN_GRAPHICS_DEVICE_GET_INFO_KHR} value to the {@code type} field. */ - public XrVulkanGraphicsDeviceGetInfoKHR.Buffer type$Default() { return type(KHRVulkanEnable2.XR_TYPE_VULKAN_GRAPHICS_DEVICE_GET_INFO_KHR); } - /** Sets the specified value to the {@code next} field. */ - public XrVulkanGraphicsDeviceGetInfoKHR.Buffer next(@NativeType("void const *") long value) { XrVulkanGraphicsDeviceGetInfoKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrVulkanGraphicsDeviceGetInfoKHR#systemId} field. */ - public XrVulkanGraphicsDeviceGetInfoKHR.Buffer systemId(@NativeType("XrSystemId") long value) { XrVulkanGraphicsDeviceGetInfoKHR.nsystemId(address(), value); return this; } - /** Sets the specified value to the {@link XrVulkanGraphicsDeviceGetInfoKHR#vulkanInstance} field. */ - public XrVulkanGraphicsDeviceGetInfoKHR.Buffer vulkanInstance(VkInstance value) { XrVulkanGraphicsDeviceGetInfoKHR.nvulkanInstance(address(), value); return this; } + + /** @return the value of the {@code type} field. */ + @NativeType("XrStructureType") + public int type() { return XrVulkanGraphicsDeviceGetInfoKHR.ntype(address()); } + /** @return the value of the {@code next} field. */ + @NativeType("void const *") + public long next() { return XrVulkanGraphicsDeviceGetInfoKHR.nnext(address()); } + /** @return the value of the {@link XrVulkanGraphicsDeviceGetInfoKHR#systemId} field. */ + @NativeType("XrSystemId") + public long systemId() { return XrVulkanGraphicsDeviceGetInfoKHR.nsystemId(address()); } + /** @return the value of the {@link XrVulkanGraphicsDeviceGetInfoKHR#vulkanInstance} field. */ + @NativeType("VkInstance") + public long vulkanInstance() { return XrVulkanGraphicsDeviceGetInfoKHR.nvulkanInstance(address()); } + + /** Sets the specified value to the {@code type} field. */ + public XrVulkanGraphicsDeviceGetInfoKHR.Buffer type(@NativeType("XrStructureType") int value) { XrVulkanGraphicsDeviceGetInfoKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable2#XR_TYPE_VULKAN_GRAPHICS_DEVICE_GET_INFO_KHR TYPE_VULKAN_GRAPHICS_DEVICE_GET_INFO_KHR} value to the {@code type} field. */ + public XrVulkanGraphicsDeviceGetInfoKHR.Buffer type$Default() { return type(KHRVulkanEnable2.XR_TYPE_VULKAN_GRAPHICS_DEVICE_GET_INFO_KHR); } + /** Sets the specified value to the {@code next} field. */ + public XrVulkanGraphicsDeviceGetInfoKHR.Buffer next(@NativeType("void const *") long value) { XrVulkanGraphicsDeviceGetInfoKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrVulkanGraphicsDeviceGetInfoKHR#systemId} field. */ + public XrVulkanGraphicsDeviceGetInfoKHR.Buffer systemId(@NativeType("XrSystemId") long value) { XrVulkanGraphicsDeviceGetInfoKHR.nsystemId(address(), value); return this; } + /** Sets the specified value to the {@link XrVulkanGraphicsDeviceGetInfoKHR#vulkanInstance} field. */ + public XrVulkanGraphicsDeviceGetInfoKHR.Buffer vulkanInstance(VkInstance value) { XrVulkanGraphicsDeviceGetInfoKHR.nvulkanInstance(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanInstanceCreateInfoKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanInstanceCreateInfoKHR.java index 2a1925361f..aec1631553 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanInstanceCreateInfoKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanInstanceCreateInfoKHR.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import org.lwjgl.vulkan.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.vulkan.*; + /** * Vulkan Instance Create Info. * @@ -26,7 +26,7 @@ *
                                                                            *
                                                                          • The {@link KHRVulkanEnable2 XR_KHR_vulkan_enable2} extension must be enabled prior to using {@link XrVulkanInstanceCreateInfoKHR}
                                                                          • *
                                                                          • {@code type} must be {@link KHRVulkanEnable2#XR_TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR}
                                                                          • - *
                                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                          • + *
                                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                          • *
                                                                          • {@code createFlags} must be 0
                                                                          • *
                                                                          • {@code pfnGetInstanceProcAddr} must be a valid {@code PFN_vkGetInstanceProcAddr} value
                                                                          • *
                                                                          • {@code vulkanCreateInfo} must be a pointer to a valid {@code VkInstanceCreateInfo} value
                                                                          • @@ -49,8 +49,8 @@ * {@link VkInstanceCreateInfo VkInstanceCreateInfo} const * {@link #vulkanCreateInfo}; * {@link VkAllocationCallbacks VkAllocationCallbacks} const * {@link #vulkanAllocator}; * } - */ -public class XrVulkanInstanceCreateInfoKHR extends Struct implements NativeResource { + */ +public class XrVulkanInstanceCreateInfoKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -60,36 +60,36 @@ public class XrVulkanInstanceCreateInfoKHR extends Struct{@code VkInstanceCreateInfo} as specified by Vulkan. */ - @NativeType("VkInstanceCreateInfo const *") - public VkInstanceCreateInfo vulkanCreateInfo() { return nvulkanCreateInfo(address()); } - /** the {@code VkAllocationCallbacks} as specified by Vulkan. */ - @Nullable - @NativeType("VkAllocationCallbacks const *") - public VkAllocationCallbacks vulkanAllocator() { return nvulkanAllocator(address()); } - - /** Sets the specified value to the {@link #type} field. */ - public XrVulkanInstanceCreateInfoKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable2#XR_TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR} value to the {@link #type} field. */ - public XrVulkanInstanceCreateInfoKHR type$Default() { return type(KHRVulkanEnable2.XR_TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR); } - /** Sets the specified value to the {@link #next} field. */ - public XrVulkanInstanceCreateInfoKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } - /** Sets the specified value to the {@link #systemId} field. */ - public XrVulkanInstanceCreateInfoKHR systemId(@NativeType("XrSystemId") long value) { nsystemId(address(), value); return this; } - /** Sets the specified value to the {@link #createFlags} field. */ - public XrVulkanInstanceCreateInfoKHR createFlags(@NativeType("XrVulkanInstanceCreateFlagsKHR") long value) { ncreateFlags(address(), value); return this; } - /** Sets the specified value to the {@link #pfnGetInstanceProcAddr} field. */ - public XrVulkanInstanceCreateInfoKHR pfnGetInstanceProcAddr(@NativeType("PFN_vkGetInstanceProcAddr") long value) { npfnGetInstanceProcAddr(address(), value); return this; } - /** Sets the address of the specified {@link VkInstanceCreateInfo} to the {@link #vulkanCreateInfo} field. */ - public XrVulkanInstanceCreateInfoKHR vulkanCreateInfo(@NativeType("VkInstanceCreateInfo const *") VkInstanceCreateInfo value) { nvulkanCreateInfo(address(), value); return this; } - /** Sets the address of the specified {@link VkAllocationCallbacks} to the {@link #vulkanAllocator} field. */ - public XrVulkanInstanceCreateInfoKHR vulkanAllocator(@Nullable @NativeType("VkAllocationCallbacks const *") VkAllocationCallbacks value) { nvulkanAllocator(address(), value); return this; } + + /** the {@code XrStructureType} of this structure. */ + @NativeType("XrStructureType") + public int type() { return ntype(address()); } + /** {@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension */ + @NativeType("void const *") + public long next() { return nnext(address()); } + /** an {@code XrSystemId} handle for the system which will be used to create a session. */ + @NativeType("XrSystemId") + public long systemId() { return nsystemId(address()); } + /** a bitmask of {@code XrVulkanInstanceCreateFlagBitsKHR} */ + @NativeType("XrVulkanInstanceCreateFlagsKHR") + public long createFlags() { return ncreateFlags(address()); } + /** a function pointer to {@code vkGetInstanceProcAddr} or a compatible entry point. */ + @NativeType("PFN_vkGetInstanceProcAddr") + public long pfnGetInstanceProcAddr() { return npfnGetInstanceProcAddr(address()); } + /** the {@code VkInstanceCreateInfo} as specified by Vulkan. */ + @NativeType("VkInstanceCreateInfo const *") + public VkInstanceCreateInfo vulkanCreateInfo() { return nvulkanCreateInfo(address()); } + /** the {@code VkAllocationCallbacks} as specified by Vulkan. */ + @Nullable + @NativeType("VkAllocationCallbacks const *") + public VkAllocationCallbacks vulkanAllocator() { return nvulkanAllocator(address()); } + + /** Sets the specified value to the {@link #type} field. */ + public XrVulkanInstanceCreateInfoKHR type(@NativeType("XrStructureType") int value) { ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable2#XR_TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR} value to the {@link #type} field. */ + public XrVulkanInstanceCreateInfoKHR type$Default() { return type(KHRVulkanEnable2.XR_TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR); } + /** Sets the specified value to the {@link #next} field. */ + public XrVulkanInstanceCreateInfoKHR next(@NativeType("void const *") long value) { nnext(address(), value); return this; } + /** Sets the specified value to the {@link #systemId} field. */ + public XrVulkanInstanceCreateInfoKHR systemId(@NativeType("XrSystemId") long value) { nsystemId(address(), value); return this; } + /** Sets the specified value to the {@link #createFlags} field. */ + public XrVulkanInstanceCreateInfoKHR createFlags(@NativeType("XrVulkanInstanceCreateFlagsKHR") long value) { ncreateFlags(address(), value); return this; } + /** Sets the specified value to the {@link #pfnGetInstanceProcAddr} field. */ + public XrVulkanInstanceCreateInfoKHR pfnGetInstanceProcAddr(@NativeType("PFN_vkGetInstanceProcAddr") long value) { npfnGetInstanceProcAddr(address(), value); return this; } + /** Sets the address of the specified {@link VkInstanceCreateInfo} to the {@link #vulkanCreateInfo} field. */ + public XrVulkanInstanceCreateInfoKHR vulkanCreateInfo(@NativeType("VkInstanceCreateInfo const *") VkInstanceCreateInfo value) { nvulkanCreateInfo(address(), value); return this; } + /** Sets the address of the specified {@link VkAllocationCallbacks} to the {@link #vulkanAllocator} field. */ + public XrVulkanInstanceCreateInfoKHR vulkanAllocator(@Nullable @NativeType("VkAllocationCallbacks const *") VkAllocationCallbacks value) { nvulkanAllocator(address(), value); return this; } /** Initializes this struct with the specified values. */ public XrVulkanInstanceCreateInfoKHR set( - int type, - long next, - long systemId, - long createFlags, - long pfnGetInstanceProcAddr, - VkInstanceCreateInfo vulkanCreateInfo, + int type, + long next, + long systemId, + long createFlags, + long pfnGetInstanceProcAddr, + VkInstanceCreateInfo vulkanCreateInfo, @Nullable VkAllocationCallbacks vulkanAllocator - ) { - type(type); - next(next); - systemId(systemId); - createFlags(createFlags); - pfnGetInstanceProcAddr(pfnGetInstanceProcAddr); - vulkanCreateInfo(vulkanCreateInfo); - vulkanAllocator(vulkanAllocator); + ) { + type(type); + next(next); + systemId(systemId); + createFlags(createFlags); + pfnGetInstanceProcAddr(pfnGetInstanceProcAddr); + vulkanCreateInfo(vulkanCreateInfo); + vulkanAllocator(vulkanAllocator); return this; } @@ -298,36 +298,36 @@ public static XrVulkanInstanceCreateInfoKHR.Buffer calloc(int capacity, MemorySt } // ----------------------------------- - - /** Unsafe version of {@link #type}. */ - public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrVulkanInstanceCreateInfoKHR.TYPE); } - /** Unsafe version of {@link #next}. */ - public static long nnext(long struct) { return memGetAddress(struct + XrVulkanInstanceCreateInfoKHR.NEXT); } - /** Unsafe version of {@link #systemId}. */ - public static long nsystemId(long struct) { return UNSAFE.getLong(null, struct + XrVulkanInstanceCreateInfoKHR.SYSTEMID); } - /** Unsafe version of {@link #createFlags}. */ - public static long ncreateFlags(long struct) { return UNSAFE.getLong(null, struct + XrVulkanInstanceCreateInfoKHR.CREATEFLAGS); } - /** Unsafe version of {@link #pfnGetInstanceProcAddr}. */ - public static long npfnGetInstanceProcAddr(long struct) { return memGetAddress(struct + XrVulkanInstanceCreateInfoKHR.PFNGETINSTANCEPROCADDR); } - /** Unsafe version of {@link #vulkanCreateInfo}. */ - public static VkInstanceCreateInfo nvulkanCreateInfo(long struct) { return VkInstanceCreateInfo.create(memGetAddress(struct + XrVulkanInstanceCreateInfoKHR.VULKANCREATEINFO)); } - /** Unsafe version of {@link #vulkanAllocator}. */ - @Nullable public static VkAllocationCallbacks nvulkanAllocator(long struct) { return VkAllocationCallbacks.createSafe(memGetAddress(struct + XrVulkanInstanceCreateInfoKHR.VULKANALLOCATOR)); } - - /** Unsafe version of {@link #type(int) type}. */ - public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrVulkanInstanceCreateInfoKHR.TYPE, value); } - /** Unsafe version of {@link #next(long) next}. */ - public static void nnext(long struct, long value) { memPutAddress(struct + XrVulkanInstanceCreateInfoKHR.NEXT, value); } - /** Unsafe version of {@link #systemId(long) systemId}. */ - public static void nsystemId(long struct, long value) { UNSAFE.putLong(null, struct + XrVulkanInstanceCreateInfoKHR.SYSTEMID, value); } - /** Unsafe version of {@link #createFlags(long) createFlags}. */ - public static void ncreateFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrVulkanInstanceCreateInfoKHR.CREATEFLAGS, value); } - /** Unsafe version of {@link #pfnGetInstanceProcAddr(long) pfnGetInstanceProcAddr}. */ - public static void npfnGetInstanceProcAddr(long struct, long value) { memPutAddress(struct + XrVulkanInstanceCreateInfoKHR.PFNGETINSTANCEPROCADDR, check(value)); } - /** Unsafe version of {@link #vulkanCreateInfo(VkInstanceCreateInfo) vulkanCreateInfo}. */ - public static void nvulkanCreateInfo(long struct, VkInstanceCreateInfo value) { memPutAddress(struct + XrVulkanInstanceCreateInfoKHR.VULKANCREATEINFO, value.address()); } - /** Unsafe version of {@link #vulkanAllocator(VkAllocationCallbacks) vulkanAllocator}. */ - public static void nvulkanAllocator(long struct, @Nullable VkAllocationCallbacks value) { memPutAddress(struct + XrVulkanInstanceCreateInfoKHR.VULKANALLOCATOR, memAddressSafe(value)); } + + /** Unsafe version of {@link #type}. */ + public static int ntype(long struct) { return UNSAFE.getInt(null, struct + XrVulkanInstanceCreateInfoKHR.TYPE); } + /** Unsafe version of {@link #next}. */ + public static long nnext(long struct) { return memGetAddress(struct + XrVulkanInstanceCreateInfoKHR.NEXT); } + /** Unsafe version of {@link #systemId}. */ + public static long nsystemId(long struct) { return UNSAFE.getLong(null, struct + XrVulkanInstanceCreateInfoKHR.SYSTEMID); } + /** Unsafe version of {@link #createFlags}. */ + public static long ncreateFlags(long struct) { return UNSAFE.getLong(null, struct + XrVulkanInstanceCreateInfoKHR.CREATEFLAGS); } + /** Unsafe version of {@link #pfnGetInstanceProcAddr}. */ + public static long npfnGetInstanceProcAddr(long struct) { return memGetAddress(struct + XrVulkanInstanceCreateInfoKHR.PFNGETINSTANCEPROCADDR); } + /** Unsafe version of {@link #vulkanCreateInfo}. */ + public static VkInstanceCreateInfo nvulkanCreateInfo(long struct) { return VkInstanceCreateInfo.create(memGetAddress(struct + XrVulkanInstanceCreateInfoKHR.VULKANCREATEINFO)); } + /** Unsafe version of {@link #vulkanAllocator}. */ + @Nullable public static VkAllocationCallbacks nvulkanAllocator(long struct) { return VkAllocationCallbacks.createSafe(memGetAddress(struct + XrVulkanInstanceCreateInfoKHR.VULKANALLOCATOR)); } + + /** Unsafe version of {@link #type(int) type}. */ + public static void ntype(long struct, int value) { UNSAFE.putInt(null, struct + XrVulkanInstanceCreateInfoKHR.TYPE, value); } + /** Unsafe version of {@link #next(long) next}. */ + public static void nnext(long struct, long value) { memPutAddress(struct + XrVulkanInstanceCreateInfoKHR.NEXT, value); } + /** Unsafe version of {@link #systemId(long) systemId}. */ + public static void nsystemId(long struct, long value) { UNSAFE.putLong(null, struct + XrVulkanInstanceCreateInfoKHR.SYSTEMID, value); } + /** Unsafe version of {@link #createFlags(long) createFlags}. */ + public static void ncreateFlags(long struct, long value) { UNSAFE.putLong(null, struct + XrVulkanInstanceCreateInfoKHR.CREATEFLAGS, value); } + /** Unsafe version of {@link #pfnGetInstanceProcAddr(long) pfnGetInstanceProcAddr}. */ + public static void npfnGetInstanceProcAddr(long struct, long value) { memPutAddress(struct + XrVulkanInstanceCreateInfoKHR.PFNGETINSTANCEPROCADDR, check(value)); } + /** Unsafe version of {@link #vulkanCreateInfo(VkInstanceCreateInfo) vulkanCreateInfo}. */ + public static void nvulkanCreateInfo(long struct, VkInstanceCreateInfo value) { memPutAddress(struct + XrVulkanInstanceCreateInfoKHR.VULKANCREATEINFO, value.address()); } + /** Unsafe version of {@link #vulkanAllocator(VkAllocationCallbacks) vulkanAllocator}. */ + public static void nvulkanAllocator(long struct, @Nullable VkAllocationCallbacks value) { memPutAddress(struct + XrVulkanInstanceCreateInfoKHR.VULKANALLOCATOR, memAddressSafe(value)); } /** * Validates pointer members that should not be {@code NULL}. @@ -339,9 +339,9 @@ public static void validate(long struct) { long vulkanCreateInfo = memGetAddress(struct + XrVulkanInstanceCreateInfoKHR.VULKANCREATEINFO); check(vulkanCreateInfo); VkInstanceCreateInfo.validate(vulkanCreateInfo); - } + } - // ----------------------------------- + // ----------------------------------- /** An array of {@link XrVulkanInstanceCreateInfoKHR} structs. */ public static class Buffer extends StructBuffer implements NativeResource { @@ -378,46 +378,46 @@ protected Buffer self() { protected XrVulkanInstanceCreateInfoKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrVulkanInstanceCreateInfoKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrVulkanInstanceCreateInfoKHR.ntype(address()); } - /** @return the value of the {@link XrVulkanInstanceCreateInfoKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrVulkanInstanceCreateInfoKHR.nnext(address()); } - /** @return the value of the {@link XrVulkanInstanceCreateInfoKHR#systemId} field. */ - @NativeType("XrSystemId") - public long systemId() { return XrVulkanInstanceCreateInfoKHR.nsystemId(address()); } - /** @return the value of the {@link XrVulkanInstanceCreateInfoKHR#createFlags} field. */ - @NativeType("XrVulkanInstanceCreateFlagsKHR") - public long createFlags() { return XrVulkanInstanceCreateInfoKHR.ncreateFlags(address()); } - /** @return the value of the {@link XrVulkanInstanceCreateInfoKHR#pfnGetInstanceProcAddr} field. */ - @NativeType("PFN_vkGetInstanceProcAddr") - public long pfnGetInstanceProcAddr() { return XrVulkanInstanceCreateInfoKHR.npfnGetInstanceProcAddr(address()); } - /** @return a {@link VkInstanceCreateInfo} view of the struct pointed to by the {@link XrVulkanInstanceCreateInfoKHR#vulkanCreateInfo} field. */ - @NativeType("VkInstanceCreateInfo const *") - public VkInstanceCreateInfo vulkanCreateInfo() { return XrVulkanInstanceCreateInfoKHR.nvulkanCreateInfo(address()); } - /** @return a {@link VkAllocationCallbacks} view of the struct pointed to by the {@link XrVulkanInstanceCreateInfoKHR#vulkanAllocator} field. */ - @Nullable - @NativeType("VkAllocationCallbacks const *") - public VkAllocationCallbacks vulkanAllocator() { return XrVulkanInstanceCreateInfoKHR.nvulkanAllocator(address()); } - - /** Sets the specified value to the {@link XrVulkanInstanceCreateInfoKHR#type} field. */ - public XrVulkanInstanceCreateInfoKHR.Buffer type(@NativeType("XrStructureType") int value) { XrVulkanInstanceCreateInfoKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanEnable2#XR_TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR} value to the {@link XrVulkanInstanceCreateInfoKHR#type} field. */ - public XrVulkanInstanceCreateInfoKHR.Buffer type$Default() { return type(KHRVulkanEnable2.XR_TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR); } - /** Sets the specified value to the {@link XrVulkanInstanceCreateInfoKHR#next} field. */ - public XrVulkanInstanceCreateInfoKHR.Buffer next(@NativeType("void const *") long value) { XrVulkanInstanceCreateInfoKHR.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrVulkanInstanceCreateInfoKHR#systemId} field. */ - public XrVulkanInstanceCreateInfoKHR.Buffer systemId(@NativeType("XrSystemId") long value) { XrVulkanInstanceCreateInfoKHR.nsystemId(address(), value); return this; } - /** Sets the specified value to the {@link XrVulkanInstanceCreateInfoKHR#createFlags} field. */ - public XrVulkanInstanceCreateInfoKHR.Buffer createFlags(@NativeType("XrVulkanInstanceCreateFlagsKHR") long value) { XrVulkanInstanceCreateInfoKHR.ncreateFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrVulkanInstanceCreateInfoKHR#pfnGetInstanceProcAddr} field. */ - public XrVulkanInstanceCreateInfoKHR.Buffer pfnGetInstanceProcAddr(@NativeType("PFN_vkGetInstanceProcAddr") long value) { XrVulkanInstanceCreateInfoKHR.npfnGetInstanceProcAddr(address(), value); return this; } - /** Sets the address of the specified {@link VkInstanceCreateInfo} to the {@link XrVulkanInstanceCreateInfoKHR#vulkanCreateInfo} field. */ - public XrVulkanInstanceCreateInfoKHR.Buffer vulkanCreateInfo(@NativeType("VkInstanceCreateInfo const *") VkInstanceCreateInfo value) { XrVulkanInstanceCreateInfoKHR.nvulkanCreateInfo(address(), value); return this; } - /** Sets the address of the specified {@link VkAllocationCallbacks} to the {@link XrVulkanInstanceCreateInfoKHR#vulkanAllocator} field. */ - public XrVulkanInstanceCreateInfoKHR.Buffer vulkanAllocator(@Nullable @NativeType("VkAllocationCallbacks const *") VkAllocationCallbacks value) { XrVulkanInstanceCreateInfoKHR.nvulkanAllocator(address(), value); return this; } + + /** @return the value of the {@link XrVulkanInstanceCreateInfoKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrVulkanInstanceCreateInfoKHR.ntype(address()); } + /** @return the value of the {@link XrVulkanInstanceCreateInfoKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrVulkanInstanceCreateInfoKHR.nnext(address()); } + /** @return the value of the {@link XrVulkanInstanceCreateInfoKHR#systemId} field. */ + @NativeType("XrSystemId") + public long systemId() { return XrVulkanInstanceCreateInfoKHR.nsystemId(address()); } + /** @return the value of the {@link XrVulkanInstanceCreateInfoKHR#createFlags} field. */ + @NativeType("XrVulkanInstanceCreateFlagsKHR") + public long createFlags() { return XrVulkanInstanceCreateInfoKHR.ncreateFlags(address()); } + /** @return the value of the {@link XrVulkanInstanceCreateInfoKHR#pfnGetInstanceProcAddr} field. */ + @NativeType("PFN_vkGetInstanceProcAddr") + public long pfnGetInstanceProcAddr() { return XrVulkanInstanceCreateInfoKHR.npfnGetInstanceProcAddr(address()); } + /** @return a {@link VkInstanceCreateInfo} view of the struct pointed to by the {@link XrVulkanInstanceCreateInfoKHR#vulkanCreateInfo} field. */ + @NativeType("VkInstanceCreateInfo const *") + public VkInstanceCreateInfo vulkanCreateInfo() { return XrVulkanInstanceCreateInfoKHR.nvulkanCreateInfo(address()); } + /** @return a {@link VkAllocationCallbacks} view of the struct pointed to by the {@link XrVulkanInstanceCreateInfoKHR#vulkanAllocator} field. */ + @Nullable + @NativeType("VkAllocationCallbacks const *") + public VkAllocationCallbacks vulkanAllocator() { return XrVulkanInstanceCreateInfoKHR.nvulkanAllocator(address()); } + + /** Sets the specified value to the {@link XrVulkanInstanceCreateInfoKHR#type} field. */ + public XrVulkanInstanceCreateInfoKHR.Buffer type(@NativeType("XrStructureType") int value) { XrVulkanInstanceCreateInfoKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanEnable2#XR_TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR} value to the {@link XrVulkanInstanceCreateInfoKHR#type} field. */ + public XrVulkanInstanceCreateInfoKHR.Buffer type$Default() { return type(KHRVulkanEnable2.XR_TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR); } + /** Sets the specified value to the {@link XrVulkanInstanceCreateInfoKHR#next} field. */ + public XrVulkanInstanceCreateInfoKHR.Buffer next(@NativeType("void const *") long value) { XrVulkanInstanceCreateInfoKHR.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrVulkanInstanceCreateInfoKHR#systemId} field. */ + public XrVulkanInstanceCreateInfoKHR.Buffer systemId(@NativeType("XrSystemId") long value) { XrVulkanInstanceCreateInfoKHR.nsystemId(address(), value); return this; } + /** Sets the specified value to the {@link XrVulkanInstanceCreateInfoKHR#createFlags} field. */ + public XrVulkanInstanceCreateInfoKHR.Buffer createFlags(@NativeType("XrVulkanInstanceCreateFlagsKHR") long value) { XrVulkanInstanceCreateInfoKHR.ncreateFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrVulkanInstanceCreateInfoKHR#pfnGetInstanceProcAddr} field. */ + public XrVulkanInstanceCreateInfoKHR.Buffer pfnGetInstanceProcAddr(@NativeType("PFN_vkGetInstanceProcAddr") long value) { XrVulkanInstanceCreateInfoKHR.npfnGetInstanceProcAddr(address(), value); return this; } + /** Sets the address of the specified {@link VkInstanceCreateInfo} to the {@link XrVulkanInstanceCreateInfoKHR#vulkanCreateInfo} field. */ + public XrVulkanInstanceCreateInfoKHR.Buffer vulkanCreateInfo(@NativeType("VkInstanceCreateInfo const *") VkInstanceCreateInfo value) { XrVulkanInstanceCreateInfoKHR.nvulkanCreateInfo(address(), value); return this; } + /** Sets the address of the specified {@link VkAllocationCallbacks} to the {@link XrVulkanInstanceCreateInfoKHR#vulkanAllocator} field. */ + public XrVulkanInstanceCreateInfoKHR.Buffer vulkanAllocator(@Nullable @NativeType("VkAllocationCallbacks const *") VkAllocationCallbacks value) { XrVulkanInstanceCreateInfoKHR.nvulkanAllocator(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanSwapchainCreateInfoMETA.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanSwapchainCreateInfoMETA.java index fe6571ad39..c7d64e958f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanSwapchainCreateInfoMETA.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanSwapchainCreateInfoMETA.java @@ -4,19 +4,19 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import org.lwjgl.vulkan.*; - + +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.vulkan.*; + /** * Debug utils object name info. * @@ -29,7 +29,7 @@ *
                                                                              *
                                                                            • The {@link METAVulkanSwapchainCreateInfo XR_META_vulkan_swapchain_create_info} extension must be enabled prior to using {@link XrVulkanSwapchainCreateInfoMETA}
                                                                            • *
                                                                            • {@code type} must be {@link METAVulkanSwapchainCreateInfo#XR_TYPE_VULKAN_SWAPCHAIN_CREATE_INFO_META TYPE_VULKAN_SWAPCHAIN_CREATE_INFO_META}
                                                                            • - *
                                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                            • + *
                                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                            • *
                                                                            • {@code additionalCreateFlags} must be a valid {@code VkImageCreateFlags} value
                                                                            • *
                                                                            • {@code additionalUsageFlags} must be a valid {@code VkImageUsageFlags} value
                                                                            • *
                                                                            @@ -43,8 +43,8 @@ * VkImageCreateFlags {@link #additionalCreateFlags}; * VkImageUsageFlags {@link #additionalUsageFlags}; * } - */ -public class XrVulkanSwapchainCreateInfoMETA extends Struct implements NativeResource { + */ +public class XrVulkanSwapchainCreateInfoMETA extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,27 +54,27 @@ public class XrVulkanSwapchainCreateInfoMETA extends Struct implements NativeResource { @@ -317,30 +317,30 @@ protected Buffer self() { protected XrVulkanSwapchainCreateInfoMETA getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrVulkanSwapchainCreateInfoMETA#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrVulkanSwapchainCreateInfoMETA.ntype(address()); } - /** @return the value of the {@link XrVulkanSwapchainCreateInfoMETA#next} field. */ - @NativeType("void const *") - public long next() { return XrVulkanSwapchainCreateInfoMETA.nnext(address()); } - /** @return the value of the {@link XrVulkanSwapchainCreateInfoMETA#additionalCreateFlags} field. */ - @NativeType("VkImageCreateFlags") - public int additionalCreateFlags() { return XrVulkanSwapchainCreateInfoMETA.nadditionalCreateFlags(address()); } - /** @return the value of the {@link XrVulkanSwapchainCreateInfoMETA#additionalUsageFlags} field. */ - @NativeType("VkImageUsageFlags") - public int additionalUsageFlags() { return XrVulkanSwapchainCreateInfoMETA.nadditionalUsageFlags(address()); } - - /** Sets the specified value to the {@link XrVulkanSwapchainCreateInfoMETA#type} field. */ - public XrVulkanSwapchainCreateInfoMETA.Buffer type(@NativeType("XrStructureType") int value) { XrVulkanSwapchainCreateInfoMETA.ntype(address(), value); return this; } - /** Sets the {@link METAVulkanSwapchainCreateInfo#XR_TYPE_VULKAN_SWAPCHAIN_CREATE_INFO_META TYPE_VULKAN_SWAPCHAIN_CREATE_INFO_META} value to the {@link XrVulkanSwapchainCreateInfoMETA#type} field. */ - public XrVulkanSwapchainCreateInfoMETA.Buffer type$Default() { return type(METAVulkanSwapchainCreateInfo.XR_TYPE_VULKAN_SWAPCHAIN_CREATE_INFO_META); } - /** Sets the specified value to the {@link XrVulkanSwapchainCreateInfoMETA#next} field. */ - public XrVulkanSwapchainCreateInfoMETA.Buffer next(@NativeType("void const *") long value) { XrVulkanSwapchainCreateInfoMETA.nnext(address(), value); return this; } - /** Sets the specified value to the {@link XrVulkanSwapchainCreateInfoMETA#additionalCreateFlags} field. */ - public XrVulkanSwapchainCreateInfoMETA.Buffer additionalCreateFlags(@NativeType("VkImageCreateFlags") int value) { XrVulkanSwapchainCreateInfoMETA.nadditionalCreateFlags(address(), value); return this; } - /** Sets the specified value to the {@link XrVulkanSwapchainCreateInfoMETA#additionalUsageFlags} field. */ - public XrVulkanSwapchainCreateInfoMETA.Buffer additionalUsageFlags(@NativeType("VkImageUsageFlags") int value) { XrVulkanSwapchainCreateInfoMETA.nadditionalUsageFlags(address(), value); return this; } + + /** @return the value of the {@link XrVulkanSwapchainCreateInfoMETA#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrVulkanSwapchainCreateInfoMETA.ntype(address()); } + /** @return the value of the {@link XrVulkanSwapchainCreateInfoMETA#next} field. */ + @NativeType("void const *") + public long next() { return XrVulkanSwapchainCreateInfoMETA.nnext(address()); } + /** @return the value of the {@link XrVulkanSwapchainCreateInfoMETA#additionalCreateFlags} field. */ + @NativeType("VkImageCreateFlags") + public int additionalCreateFlags() { return XrVulkanSwapchainCreateInfoMETA.nadditionalCreateFlags(address()); } + /** @return the value of the {@link XrVulkanSwapchainCreateInfoMETA#additionalUsageFlags} field. */ + @NativeType("VkImageUsageFlags") + public int additionalUsageFlags() { return XrVulkanSwapchainCreateInfoMETA.nadditionalUsageFlags(address()); } + + /** Sets the specified value to the {@link XrVulkanSwapchainCreateInfoMETA#type} field. */ + public XrVulkanSwapchainCreateInfoMETA.Buffer type(@NativeType("XrStructureType") int value) { XrVulkanSwapchainCreateInfoMETA.ntype(address(), value); return this; } + /** Sets the {@link METAVulkanSwapchainCreateInfo#XR_TYPE_VULKAN_SWAPCHAIN_CREATE_INFO_META TYPE_VULKAN_SWAPCHAIN_CREATE_INFO_META} value to the {@link XrVulkanSwapchainCreateInfoMETA#type} field. */ + public XrVulkanSwapchainCreateInfoMETA.Buffer type$Default() { return type(METAVulkanSwapchainCreateInfo.XR_TYPE_VULKAN_SWAPCHAIN_CREATE_INFO_META); } + /** Sets the specified value to the {@link XrVulkanSwapchainCreateInfoMETA#next} field. */ + public XrVulkanSwapchainCreateInfoMETA.Buffer next(@NativeType("void const *") long value) { XrVulkanSwapchainCreateInfoMETA.nnext(address(), value); return this; } + /** Sets the specified value to the {@link XrVulkanSwapchainCreateInfoMETA#additionalCreateFlags} field. */ + public XrVulkanSwapchainCreateInfoMETA.Buffer additionalCreateFlags(@NativeType("VkImageCreateFlags") int value) { XrVulkanSwapchainCreateInfoMETA.nadditionalCreateFlags(address(), value); return this; } + /** Sets the specified value to the {@link XrVulkanSwapchainCreateInfoMETA#additionalUsageFlags} field. */ + public XrVulkanSwapchainCreateInfoMETA.Buffer additionalUsageFlags(@NativeType("VkImageUsageFlags") int value) { XrVulkanSwapchainCreateInfoMETA.nadditionalUsageFlags(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanSwapchainFormatListCreateInfoKHR.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanSwapchainFormatListCreateInfoKHR.java index 62c5e1504d..c00b2e7a4b 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanSwapchainFormatListCreateInfoKHR.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/XrVulkanSwapchainFormatListCreateInfoKHR.java @@ -4,20 +4,20 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.openxr; - + import javax.annotation.*; - + import java.nio.*; - -import org.lwjgl.*; + +import org.lwjgl.*; import org.lwjgl.system.*; - -import static org.lwjgl.system.Checks.*; -import static org.lwjgl.system.MemoryUtil.*; -import static org.lwjgl.system.MemoryStack.*; - -import org.lwjgl.vulkan.*; - + +import static org.lwjgl.system.Checks.*; +import static org.lwjgl.system.MemoryUtil.*; +import static org.lwjgl.system.MemoryStack.*; + +import org.lwjgl.vulkan.*; + /** * A list of Vulkan view formats. * @@ -26,7 +26,7 @@ *
                                                                              *
                                                                            • The {@link KHRVulkanSwapchainFormatList XR_KHR_vulkan_swapchain_format_list} extension must be enabled prior to using {@link XrVulkanSwapchainFormatListCreateInfoKHR}
                                                                            • *
                                                                            • {@code type} must be {@link KHRVulkanSwapchainFormatList#XR_TYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR TYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR}
                                                                            • - *
                                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                            • + *
                                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                            • *
                                                                            • If {@code viewFormatCount} is not 0, {@code viewFormats} must be a pointer to an array of {@code viewFormatCount} valid {@code VkFormat} values
                                                                            • *
                                                                            * @@ -43,8 +43,8 @@ * uint32_t {@link #viewFormatCount}; * VkFormat const * {@link #viewFormats}; * } - */ -public class XrVulkanSwapchainFormatListCreateInfoKHR extends Struct implements NativeResource { + */ +public class XrVulkanSwapchainFormatListCreateInfoKHR extends Struct implements NativeResource { /** The struct size in bytes. */ public static final int SIZEOF; @@ -54,27 +54,27 @@ public class XrVulkanSwapchainFormatListCreateInfoKHR extends Struct implements NativeResource { @@ -325,29 +325,29 @@ protected Buffer self() { protected XrVulkanSwapchainFormatListCreateInfoKHR getElementFactory() { return ELEMENT_FACTORY; } - - /** @return the value of the {@link XrVulkanSwapchainFormatListCreateInfoKHR#type} field. */ - @NativeType("XrStructureType") - public int type() { return XrVulkanSwapchainFormatListCreateInfoKHR.ntype(address()); } - /** @return the value of the {@link XrVulkanSwapchainFormatListCreateInfoKHR#next} field. */ - @NativeType("void const *") - public long next() { return XrVulkanSwapchainFormatListCreateInfoKHR.nnext(address()); } - /** @return the value of the {@link XrVulkanSwapchainFormatListCreateInfoKHR#viewFormatCount} field. */ - @NativeType("uint32_t") - public int viewFormatCount() { return XrVulkanSwapchainFormatListCreateInfoKHR.nviewFormatCount(address()); } - /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrVulkanSwapchainFormatListCreateInfoKHR#viewFormats} field. */ - @Nullable - @NativeType("VkFormat const *") - public IntBuffer viewFormats() { return XrVulkanSwapchainFormatListCreateInfoKHR.nviewFormats(address()); } - - /** Sets the specified value to the {@link XrVulkanSwapchainFormatListCreateInfoKHR#type} field. */ - public XrVulkanSwapchainFormatListCreateInfoKHR.Buffer type(@NativeType("XrStructureType") int value) { XrVulkanSwapchainFormatListCreateInfoKHR.ntype(address(), value); return this; } - /** Sets the {@link KHRVulkanSwapchainFormatList#XR_TYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR TYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR} value to the {@link XrVulkanSwapchainFormatListCreateInfoKHR#type} field. */ - public XrVulkanSwapchainFormatListCreateInfoKHR.Buffer type$Default() { return type(KHRVulkanSwapchainFormatList.XR_TYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR); } - /** Sets the specified value to the {@link XrVulkanSwapchainFormatListCreateInfoKHR#next} field. */ - public XrVulkanSwapchainFormatListCreateInfoKHR.Buffer next(@NativeType("void const *") long value) { XrVulkanSwapchainFormatListCreateInfoKHR.nnext(address(), value); return this; } - /** Sets the address of the specified {@link IntBuffer} to the {@link XrVulkanSwapchainFormatListCreateInfoKHR#viewFormats} field. */ - public XrVulkanSwapchainFormatListCreateInfoKHR.Buffer viewFormats(@Nullable @NativeType("VkFormat const *") IntBuffer value) { XrVulkanSwapchainFormatListCreateInfoKHR.nviewFormats(address(), value); return this; } + + /** @return the value of the {@link XrVulkanSwapchainFormatListCreateInfoKHR#type} field. */ + @NativeType("XrStructureType") + public int type() { return XrVulkanSwapchainFormatListCreateInfoKHR.ntype(address()); } + /** @return the value of the {@link XrVulkanSwapchainFormatListCreateInfoKHR#next} field. */ + @NativeType("void const *") + public long next() { return XrVulkanSwapchainFormatListCreateInfoKHR.nnext(address()); } + /** @return the value of the {@link XrVulkanSwapchainFormatListCreateInfoKHR#viewFormatCount} field. */ + @NativeType("uint32_t") + public int viewFormatCount() { return XrVulkanSwapchainFormatListCreateInfoKHR.nviewFormatCount(address()); } + /** @return a {@link IntBuffer} view of the data pointed to by the {@link XrVulkanSwapchainFormatListCreateInfoKHR#viewFormats} field. */ + @Nullable + @NativeType("VkFormat const *") + public IntBuffer viewFormats() { return XrVulkanSwapchainFormatListCreateInfoKHR.nviewFormats(address()); } + + /** Sets the specified value to the {@link XrVulkanSwapchainFormatListCreateInfoKHR#type} field. */ + public XrVulkanSwapchainFormatListCreateInfoKHR.Buffer type(@NativeType("XrStructureType") int value) { XrVulkanSwapchainFormatListCreateInfoKHR.ntype(address(), value); return this; } + /** Sets the {@link KHRVulkanSwapchainFormatList#XR_TYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR TYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR} value to the {@link XrVulkanSwapchainFormatListCreateInfoKHR#type} field. */ + public XrVulkanSwapchainFormatListCreateInfoKHR.Buffer type$Default() { return type(KHRVulkanSwapchainFormatList.XR_TYPE_VULKAN_SWAPCHAIN_FORMAT_LIST_CREATE_INFO_KHR); } + /** Sets the specified value to the {@link XrVulkanSwapchainFormatListCreateInfoKHR#next} field. */ + public XrVulkanSwapchainFormatListCreateInfoKHR.Buffer next(@NativeType("void const *") long value) { XrVulkanSwapchainFormatListCreateInfoKHR.nnext(address(), value); return this; } + /** Sets the address of the specified {@link IntBuffer} to the {@link XrVulkanSwapchainFormatListCreateInfoKHR#viewFormats} field. */ + public XrVulkanSwapchainFormatListCreateInfoKHR.Buffer viewFormats(@Nullable @NativeType("VkFormat const *") IntBuffer value) { XrVulkanSwapchainFormatListCreateInfoKHR.nviewFormats(address(), value); return this; } } diff --git a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/package-info.java b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/package-info.java index 57bc25013c..9367d1b18f 100644 --- a/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/package-info.java +++ b/modules/lwjgl/openxr/src/generated/java/org/lwjgl/openxr/package-info.java @@ -3,13 +3,13 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to OpenXR. * *

                                                                            OpenXR is a royalty-free, open standard that provides high-performance access to Augmented Reality (AR) and Virtual Reality (VR)—collectively known as * XR—platforms and devices.

                                                                            - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.openxr; - + diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/Custom.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/Custom.kt index b999a977af..2af5b6d8fa 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/Custom.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/Custom.kt @@ -55,11 +55,9 @@ fun templateCustomization() { generateDispatchableHandle(XrFoveationProfileFB, XrSession) generateDispatchableHandle(XrGeometryInstanceFB, XrSession) generateDispatchableHandle(XrHandTrackerEXT, XrSession) - generateDispatchableHandle(XrPassthroughColorLutMETA, XrPassthroughFB) generateDispatchableHandle(XrPassthroughFB, XrSession) generateDispatchableHandle(XrPassthroughHTC, XrSession) generateDispatchableHandle(XrPassthroughLayerFB, XrSession) - generateDispatchableHandle(XrPlaneDetectorEXT, XrSession) generateDispatchableHandle(XrSceneMSFT, XrSceneObserverMSFT) generateDispatchableHandle(XrSceneObserverMSFT, XrSession) generateDispatchableHandle(XrSession, XrInstance) @@ -70,7 +68,6 @@ fun templateCustomization() { generateDispatchableHandle(XrSpatialGraphNodeBindingMSFT, XrSession) generateDispatchableHandle(XrSwapchain, XrSession) generateDispatchableHandle(XrTriangleMeshFB, XrSession) - generateDispatchableHandle(XrVirtualKeyboardMETA, XrSession) XR10.apply { LongConstant( diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/ExtensionTypes.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/ExtensionTypes.kt index 342cf51f5a..b330354128 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/ExtensionTypes.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/ExtensionTypes.kt @@ -45,6 +45,7 @@ val XrHandJointEXT = "XrHandJointEXT".enumType val XrHandJointSetEXT = "XrHandJointSetEXT".enumType val XrHandPoseTypeMSFT = "XrHandPoseTypeMSFT".enumType val XrReprojectionModeMSFT = "XrReprojectionModeMSFT".enumType +val XrCompositionLayerSecureContentFlagBitsFB = "XrCompositionLayerSecureContentFlagBitsFB".enumType val XrBodyJointFB = "XrBodyJointFB".enumType val XrBodyJointSetFB = "XrBodyJointSetFB".enumType val XrHandJointsMotionRangeEXT = "XrHandJointsMotionRangeEXT".enumType @@ -711,7 +712,7 @@ val XrGraphicsBindingOpenGLESAndroidKHR = struct(Module.OPENXR, "XrGraphicsBindi
                                                                            Description
                                                                            When creating an OpenGL ES-backed {@code XrSession} on Android, the application will provide a pointer to an ##XrGraphicsBindingOpenGLESAndroidKHR structure in the {@code next} chain of the ##XrSessionCreateInfo. - The required window system configuration define to expose this structure type is #USE_PLATFORM_ANDROID. + The required window system configuration define to expose this structure type is USE_PLATFORM_ANDROID.
                                                                            Valid Usage (Implicit)
                                                                              @@ -935,15 +936,21 @@ val XrVisibilityMaskKHR = struct(Module.OPENXR, "XrVisibilityMaskKHR") { """ Visibility Mask. -
                                                                              See Also
                                                                              - {@code XR_KHR_visibility_mask}, {@code XrStructureType}, ##XrVector2f, #GetVisibilityMaskKHR() +
                                                                              Valid Usage (Implicit)
                                                                              +
                                                                                +
                                                                              • The {@link KHRVisibilityMask XR_KHR_visibility_mask} extension must be enabled prior to using ##XrVisibilityMaskKHR
                                                                              • +
                                                                              • {@code type} must be #TYPE_VISIBILITY_MASK_KHR
                                                                              • +
                                                                              • {@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} ##XrVector2f structures
                                                                              • +
                                                                              • If {@code indexCapacityInput} is not 0, {@code indices} must be a pointer to an array of {@code indexCapacityInput} {@code uint32_t} values
                                                                              • +
                                                                              -
                                                                              Document Notes
                                                                              - #XrVisibilityMaskKHR +
                                                                              See Also
                                                                              + ##XrVector2f, #GetVisibilityMaskKHR() """ - Expression("#TYPE_VISIBILITY_MASK_KHR")..XrStructureType("type", "must be #TYPE_VISIBILITY_MASK_KHR") - nullable..opaque_p("next", "must be {@code NULL} or a valid pointer to the next structure in a structure chain") + Expression("#TYPE_VISIBILITY_MASK_KHR")..XrStructureType("type", "the {@code XrStructureType} of this structure.") + nullable..opaque_p("next", "{@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.") AutoSize("vertices", optional = true)..uint32_t("vertexCapacityInput", "the capacity of the {@code vertices} array, or 0 to indicate a request to retrieve the required capacity.") uint32_t("vertexCountOutput", "filled in by the runtime with the count of vertices written or the required capacity in the case that {@code vertexCapacityInput} or {@code indexCapacityInput} is insufficient.") nullable..XrVector2f.p("vertices", "an array of vertices filled in by the runtime that specifies mask coordinates in the z=-1 plane of the rendered view—​i.e. one meter in front of the view. When rendering the mask for use in a projection layer, these vertices must be transformed by the application’s projection matrix used for the respective ##XrCompositionLayerProjectionView.") @@ -1208,13 +1215,13 @@ val XrGraphicsBindingEGLMNDX = struct(Module.OPENXR, "XrGraphicsBindingEGLMNDX") Expression("#TYPE_GRAPHICS_BINDING_EGL_MNDX")..XrStructureType("type", "the {@code XrStructureType} of this structure.") nullable..opaque_const_p("next", "{@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.") - PFNEGLGETPROCADDRESSPROC("getProcAddress", "a valid function pointer to {@code eglGetProcAddress}.") EGLDisplay("display", "a valid EGL {@code EGLDisplay}.") EGLConfig("config", "a valid EGL {@code EGLConfig}.") EGLContext("context", "a valid EGL {@code EGLContext}.") } val XrSpatialGraphNodeSpaceCreateInfoMSFT = struct(Module.OPENXR, "XrSpatialGraphNodeSpaceCreateInfoMSFT") { + javaImport("static org.lwjgl.openxr.MSFTSpatialGraphBridge.*") documentation = """ The information to create space from a spatial graph node. @@ -1234,7 +1241,7 @@ val XrSpatialGraphNodeSpaceCreateInfoMSFT = struct(Module.OPENXR, "XrSpatialGrap Expression("#TYPE_SPATIAL_GRAPH_NODE_SPACE_CREATE_INFO_MSFT")..XrStructureType("type", "the {@code XrStructureType} of this structure.") nullable..opaque_const_p("next", "{@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.") XrSpatialGraphNodeTypeMSFT("nodeType", "an {@code XrSpatialGraphNodeTypeMSFT} specifying the spatial node type.") - uint8_t("nodeId", "a global unique identifier (a.k.a. GUID or 16 byte array), representing the spatial node that is being tracked.")[XR_GUID_SIZE_MSFT] + uint8_t("nodeId", "a global unique identifier (a.k.a. GUID or 16 byte array), representing the spatial node that is being tracked.")["XR_GUID_SIZE_MSFT"] XrPosef("pose", "an ##XrPosef defining the position and orientation of the new space’s origin within the natural reference frame of the spatial graph node.") } @@ -1283,6 +1290,7 @@ val XrSpatialGraphNodeBindingPropertiesGetInfoMSFT = struct(Module.OPENXR, "XrSp } val XrSpatialGraphNodeBindingPropertiesMSFT = struct(Module.OPENXR, "XrSpatialGraphNodeBindingPropertiesMSFT") { + javaImport("static org.lwjgl.openxr.MSFTSpatialGraphBridge.*") documentation = """ The spatial graph node binding properties. @@ -1300,7 +1308,7 @@ val XrSpatialGraphNodeBindingPropertiesMSFT = struct(Module.OPENXR, "XrSpatialGr Expression("#TYPE_SPATIAL_GRAPH_NODE_BINDING_PROPERTIES_MSFT")..XrStructureType("type", "the {@code XrStructureType} of this structure.") nullable..opaque_p("next", "{@code NULL} or a pointer to the next structure in a structure chain.") - uint8_t("nodeId", "a global unique identifier (a.k.a. GUID or 16 byte array), representing the spatial graph node.")[XR_GUID_SIZE_MSFT] + uint8_t("nodeId", "a global unique identifier (a.k.a. GUID or 16 byte array), representing the spatial graph node.")["XR_GUID_SIZE_MSFT"] XrPosef("poseInNodeSpace", "an ##XrPosef defining the pose in the underlying node’s space.") } @@ -1938,6 +1946,7 @@ val XrControllerModelKeyStateMSFT = struct(Module.OPENXR, "XrControllerModelKeyS } val XrControllerModelNodePropertiesMSFT = struct(Module.OPENXR, "XrControllerModelNodePropertiesMSFT") { + javaImport("static org.lwjgl.openxr.MSFTControllerModel.*") documentation = """ Describes the controller model node properties. @@ -1954,8 +1963,8 @@ val XrControllerModelNodePropertiesMSFT = struct(Module.OPENXR, "XrControllerMod
                                                                            • The {@link MSFTControllerModel XR_MSFT_controller_model} extension must be enabled prior to using ##XrControllerModelNodePropertiesMSFT
                                                                            • {@code type} must be #TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT
                                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                            • -
                                                                            • {@code parentNodeName} must be a null-terminated UTF-8 string whose length is less than or equal to XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT
                                                                            • -
                                                                            • {@code nodeName} must be a null-terminated UTF-8 string whose length is less than or equal to XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT
                                                                            • +
                                                                            • {@code parentNodeName} must be a null-terminated UTF-8 string whose length is less than or equal to #MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT
                                                                            • +
                                                                            • {@code nodeName} must be a null-terminated UTF-8 string whose length is less than or equal to #MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT
                                                                            See Also
                                                                            @@ -1964,8 +1973,8 @@ val XrControllerModelNodePropertiesMSFT = struct(Module.OPENXR, "XrControllerMod Expression("#TYPE_CONTROLLER_MODEL_NODE_PROPERTIES_MSFT")..XrStructureType("type", "the {@code XrStructureType} of this structure.") nullable..opaque_p("next", "{@code NULL} or a pointer to the next structure in a structure chain.") - charUTF8("parentNodeName", "the name of the parent node in the provided glTF file. The parent name may be empty if it should not be used to locate this node.")[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT] - charUTF8("nodeName", "the name of this node in the provided glTF file.")[XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT] + charUTF8("parentNodeName", "the name of the parent node in the provided glTF file. The parent name may be empty if it should not be used to locate this node.")["XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT"] + charUTF8("nodeName", "the name of this node in the provided glTF file.")["XR_MAX_CONTROLLER_MODEL_NODE_NAME_SIZE_MSFT"] } val XrControllerModelPropertiesMSFT = struct(Module.OPENXR, "XrControllerModelPropertiesMSFT") { @@ -2126,15 +2135,26 @@ val XrCompositionLayerReprojectionPlaneOverrideMSFT = struct(Module.OPENXR, "XrC """ Describe the parameters to override the reprojection plane. -
                                                                            See Also
                                                                            - {@code XR_MSFT_composition_layer_reprojection}, {@code XrStructureType}, ##XrVector3f +
                                                                            Description
                                                                            + A runtime must return #ERROR_VALIDATION_FAILURE if the {@code normal} vector deviates by more than 1% from unit length. + + Adding a reprojection plane override may benefit various reprojection modes including #REPROJECTION_MODE_DEPTH_MSFT, #REPROJECTION_MODE_PLANAR_FROM_DEPTH_MSFT and #REPROJECTION_MODE_PLANAR_MANUAL_MSFT. + + When application choose #REPROJECTION_MODE_ORIENTATION_ONLY_MSFT mode, the reprojection plane override may be ignored by the runtime. + +
                                                                            Valid Usage (Implicit)
                                                                            +
                                                                              +
                                                                            • The {@link MSFTCompositionLayerReprojection XR_MSFT_composition_layer_reprojection} extension must be enabled prior to using ##XrCompositionLayerReprojectionPlaneOverrideMSFT
                                                                            • +
                                                                            • {@code type} must be #TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT
                                                                            • +
                                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                            • +
                                                                            -
                                                                            Document Notes
                                                                            - #XrCompositionLayerReprojectionPlaneOverrideMSFT +
                                                                            See Also
                                                                            + ##XrVector3f """ - Expression("#TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT")..XrStructureType("type", "must be #TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT") - nullable..opaque_const_p("next", "must be {@code NULL} or a valid pointer to the next structure in a structure chain") + Expression("#TYPE_COMPOSITION_LAYER_REPROJECTION_PLANE_OVERRIDE_MSFT")..XrStructureType("type", "") + nullable..opaque_const_p("next", "") XrVector3f("position", "describes the position of the focus plane represented in the corresponding ##XrCompositionLayerProjection{@code ::space}.") XrVector3f("normal", "a unit vector describes the focus plane normal represented in the corresponding ##XrCompositionLayerProjection{@code ::space}.") XrVector3f("velocity", "a velocity of the position in the corresponding ##XrCompositionLayerProjection{@code ::space} measured in meters per second.") @@ -2151,7 +2171,7 @@ val XrSwapchainStateBaseHeaderFB = struct(Module.OPENXR, "XrSwapchainStateBaseHe
                                                                            Valid Usage (Implicit)
                                                                            • The {@link FBSwapchainUpdateState XR_FB_swapchain_update_state} extension must be enabled prior to using ##XrSwapchainStateBaseHeaderFB
                                                                            • -
                                                                            • {@code type} must be one of the following XrStructureType values: #TYPE_SWAPCHAIN_STATE_ANDROID_SURFACE_DIMENSIONS_FB, #TYPE_SWAPCHAIN_STATE_FOVEATION_FB, #TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB, #TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB
                                                                            • +
                                                                            • {@code type} must be one of the following XrStructureType values: #TYPE_SWAPCHAIN_STATE_FOVEATION_FB, #TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB, #TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FB
                                                                            • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                            @@ -4088,6 +4108,7 @@ val XrSystemKeyboardTrackingPropertiesFB = struct(Module.OPENXR, "XrSystemKeyboa } val XrKeyboardTrackingDescriptionFB = struct(Module.OPENXR, "XrKeyboardTrackingDescriptionFB", mutable = false) { + javaImport("static org.lwjgl.openxr.FBKeyboardTracking.*") documentation = """ Description of a trackable keyboard. @@ -4107,7 +4128,7 @@ val XrKeyboardTrackingDescriptionFB = struct(Module.OPENXR, "XrKeyboardTrackingD uint64_t("trackedKeyboardId", "abstract identifier describing the type of keyboard.") XrVector3f("size", "bounding box.") XrKeyboardTrackingFlagsFB("flags", "additional information on the type of keyboard available. If #KEYBOARD_TRACKING_EXISTS_BIT_FB is not set there is no keyboard.") - charUTF8("name", "human readable keyboard identifier.")[XR_MAX_KEYBOARD_TRACKING_NAME_SIZE_FB] + charUTF8("name", "human readable keyboard identifier.")["XR_MAX_KEYBOARD_TRACKING_NAME_SIZE_FB"] } val XrKeyboardSpaceCreateInfoFB = struct(Module.OPENXR, "XrKeyboardSpaceCreateInfoFB") { @@ -4449,6 +4470,7 @@ val XrPassthroughStyleFB = struct(Module.OPENXR, "XrPassthroughStyleFB") { } val XrPassthroughColorMapMonoToRgbaFB = struct(Module.OPENXR, "XrPassthroughColorMapMonoToRgbaFB") { + javaImport("static org.lwjgl.openxr.FBPassthrough.*") documentation = """ A layer color map. @@ -4471,10 +4493,11 @@ val XrPassthroughColorMapMonoToRgbaFB = struct(Module.OPENXR, "XrPassthroughColo Expression("#TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_RGBA_FB")..XrStructureType("type", "the {@code XrStructureType} of this structure.") nullable..opaque_const_p("next", "{@code NULL} or a pointer to the next structure in a structure chain.") - XrColor4f("textureColorMap", "an array of ##XrColor4f colors to which the passthrough imagery luminance values are mapped.")[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB] + XrColor4f("textureColorMap", "an array of ##XrColor4f colors to which the passthrough imagery luminance values are mapped.")["XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB"] } val XrPassthroughColorMapMonoToMonoFB = struct(Module.OPENXR, "XrPassthroughColorMapMonoToMonoFB") { + javaImport("static org.lwjgl.openxr.FBPassthrough.*") documentation = """ A layer color map. @@ -4494,7 +4517,7 @@ val XrPassthroughColorMapMonoToMonoFB = struct(Module.OPENXR, "XrPassthroughColo Expression("#TYPE_PASSTHROUGH_COLOR_MAP_MONO_TO_MONO_FB")..XrStructureType("type", "the {@code XrStructureType} of this structure.") nullable..opaque_const_p("next", "{@code NULL} or a pointer to the next structure in a structure chain.") - uint8_t("textureColorMap", "an array of {@code uint8_t} grayscale color values to which the passthrough luminance values are mapped.")[XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB] + uint8_t("textureColorMap", "an array of {@code uint8_t} grayscale color values to which the passthrough luminance values are mapped.")["XR_PASSTHROUGH_COLOR_MAP_MONO_SIZE_FB"] } val XrPassthroughBrightnessContrastSaturationFB = struct(Module.OPENXR, "XrPassthroughBrightnessContrastSaturationFB") { @@ -4601,6 +4624,7 @@ val XrRenderModelPathInfoFB = struct(Module.OPENXR, "XrRenderModelPathInfoFB") { } val XrRenderModelPropertiesFB = struct(Module.OPENXR, "XrRenderModelPropertiesFB") { + javaImport("static org.lwjgl.openxr.FBRenderModel.*") documentation = """ The information about the render model. @@ -4615,7 +4639,7 @@ val XrRenderModelPropertiesFB = struct(Module.OPENXR, "XrRenderModelPropertiesFB
                                                                          • The {@link FBRenderModel XR_FB_render_model} extension must be enabled prior to using ##XrRenderModelPropertiesFB
                                                                          • {@code type} must be #TYPE_RENDER_MODEL_PROPERTIES_FB
                                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                          • -
                                                                          • {@code modelName} must be a null-terminated UTF-8 string whose length is less than or equal to XR_MAX_RENDER_MODEL_NAME_SIZE_FB
                                                                          • +
                                                                          • {@code modelName} must be a null-terminated UTF-8 string whose length is less than or equal to #MAX_RENDER_MODEL_NAME_SIZE_FB
                                                                          • {@code flags} must be a valid combination of {@code XrRenderModelFlagBitsFB} values
                                                                          • {@code flags} must not be 0
                                                                          @@ -4627,7 +4651,7 @@ val XrRenderModelPropertiesFB = struct(Module.OPENXR, "XrRenderModelPropertiesFB Expression("#TYPE_RENDER_MODEL_PROPERTIES_FB")..XrStructureType("type", "the {@code XrStructureType} of this structure.") nullable..opaque_p("next", "{@code NULL} or a pointer to the next structure in a structure chain. ##XrRenderModelCapabilitiesRequestFB is a structure in this structure chain and should be linked when this structure is passed to #GetRenderModelPropertiesFB().") uint32_t("vendorId", "the vendor id of the model.") - charUTF8("modelName", "the name of the model.")[XR_MAX_RENDER_MODEL_NAME_SIZE_FB] + charUTF8("modelName", "the name of the model.")["XR_MAX_RENDER_MODEL_NAME_SIZE_FB"] XrRenderModelKeyFB("modelKey", "the unique model key used to load the model in #LoadRenderModelFB().") uint32_t("modelVersion", "the version number of the model.") XrRenderModelFlagsFB("flags", "a bitmask of {@code XrRenderModelFlagsFB}. After a successful call to #GetRenderModelPropertiesFB(), flags must contain the support level of the model and no other support levels.") @@ -6321,7 +6345,7 @@ val XrEyeGazesFB = struct(Module.OPENXR, "XrEyeGazesFB") { Expression("#TYPE_EYE_GAZES_FB")..XrStructureType("type", "the {@code XrStructureType} of this structure.") nullable..opaque_p("next", "{@code NULL} or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.") - XrEyeGazeFB("gaze", "an array of ##XrEyeGazeFB receiving the returned eye gaze directions.")[XR_EYE_POSITION_COUNT_FB] + XrEyeGazeFB("gaze", "an array of ##XrEyeGazeFB receiving the returned eye gaze directions.") XrTime("time", "an {@code XrTime} time at which the returned eye gaze is tracked or extrapolated to. Equals the time for which the eye gaze was requested if the interpolation at the time was successful.") } diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/XRTypes.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/XRTypes.kt index 3530b423ac..17277fe2af 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/XRTypes.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/XRTypes.kt @@ -281,7 +281,7 @@ val XrSessionCreateInfo = struct(Module.OPENXR, "XrSessionCreateInfo") {
                                                                          Valid Usage (Implicit)
                                                                          • {@code type} must be #TYPE_SESSION_CREATE_INFO
                                                                          • -
                                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: ##XrGraphicsBindingD3D11KHR, ##XrGraphicsBindingD3D12KHR, ##XrGraphicsBindingEGLMNDX, ##XrGraphicsBindingOpenGLESAndroidKHR, ##XrGraphicsBindingOpenGLWaylandKHR, ##XrGraphicsBindingOpenGLWin32KHR, ##XrGraphicsBindingOpenGLXcbKHR, ##XrGraphicsBindingOpenGLXlibKHR, ##XrGraphicsBindingVulkanKHR, ##XrHolographicWindowAttachmentMSFT, ##XrSessionCreateInfoOverlayEXTX
                                                                          • +
                                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: ##XrGraphicsBindingEGLMNDX, ##XrGraphicsBindingOpenGLESAndroidKHR, ##XrGraphicsBindingOpenGLWaylandKHR, ##XrGraphicsBindingOpenGLWin32KHR, ##XrGraphicsBindingOpenGLXcbKHR, ##XrGraphicsBindingOpenGLXlibKHR, ##XrGraphicsBindingVulkanKHR, ##XrHolographicWindowAttachmentMSFT, ##XrSessionCreateInfoOverlayEXTX
                                                                          • {@code createFlags} must be 0
                                                                          @@ -520,13 +520,13 @@ val XrSwapchainCreateInfo = struct(Module.OPENXR, "XrSwapchainCreateInfo") {
                                                                          Valid Usage (Implicit)
                                                                          • {@code type} must be #TYPE_SWAPCHAIN_CREATE_INFO
                                                                          • -
                                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: ##XrAndroidSurfaceSwapchainCreateInfoFB, ##XrSecondaryViewConfigurationSwapchainCreateInfoMSFT, ##XrSwapchainCreateInfoFoveationFB, ##XrVulkanSwapchainCreateInfoMETA
                                                                          • +
                                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain. See also: ##XrSecondaryViewConfigurationSwapchainCreateInfoMSFT, ##XrSwapchainCreateInfoFoveationFB, ##XrVulkanSwapchainCreateInfoMETA
                                                                          • {@code createFlags} must be 0 or a valid combination of {@code XrSwapchainCreateFlagBits} values
                                                                          • {@code usageFlags} must be 0 or a valid combination of {@code XrSwapchainUsageFlagBits} values
                                                                          See Also
                                                                          - #CreateSession(), #CreateSwapchain(), #CreateSwapchainAndroidSurfaceKHR(), #EnumerateSwapchainFormats() + #CreateSession(), #CreateSwapchain(), #EnumerateSwapchainFormats() """ Expression("#TYPE_SWAPCHAIN_CREATE_INFO")..XrStructureType("type", "the {@code XrStructureType} of this structure.") @@ -555,7 +555,7 @@ val XrSwapchainImageBaseHeader = struct(Module.OPENXR, "XrSwapchainImageBaseHead
                                                                          Valid Usage (Implicit)
                                                                            -
                                                                          • {@code type} must be one of the following XrStructureType values: #TYPE_SWAPCHAIN_IMAGE_D3D11_KHR, #TYPE_SWAPCHAIN_IMAGE_D3D12_KHR, #TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR, #TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR, #TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR
                                                                          • +
                                                                          • {@code type} must be one of the following XrStructureType values: #TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR, #TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR, #TYPE_SWAPCHAIN_IMAGE_VULKAN_KHR
                                                                          • {@code next} must be {@code NULL} or a valid pointer to the next structure in a structure chain
                                                                          diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/EXTX_overlay.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/EXTX_overlay.kt index ee42e3f830..2878b97c29 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/EXTX_overlay.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/EXTX_overlay.kt @@ -30,7 +30,7 @@ val EXTX_overlay = "EXTXOverlay".nativeClassXR("EXTX_overlay", type = "instance"
                                                                        • The ability for an overlay session to get information about what is going on with the main application
                                                                        - To enable the functionality of this extension, an application must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. + To enable the functionality of this extension, an application must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. To create an overlay session, an application must pass an ##XrSessionCreateInfoOverlayEXTX structure to #CreateSession() via the ##XrSessionCreateInfo structure’s {@code next} parameter. diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/EXT_hp_mixed_reality_controller.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/EXT_hp_mixed_reality_controller.kt index 949a37a6b7..4f3ccd3fa1 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/EXT_hp_mixed_reality_controller.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/EXT_hp_mixed_reality_controller.kt @@ -58,23 +58,6 @@ val EXT_hp_mixed_reality_controller = "EXTHPMixedRealityController".nativeClassX
                                                                    - -
                                                                    Note
                                                                    - When the {@link EXTPalmPose XR_EXT_palm_pose} extension is available and enabled, this interaction profile must also support - -
                                                                      -
                                                                    • subpathname:/input/palm_ext/pose
                                                                    • -
                                                                    -
                                                                    - -
                                                                    Note
                                                                    - When the {@link EXTHandInteraction XR_EXT_hand_interaction} extension is available and enabled, this interaction profile must also support - -
                                                                      -
                                                                    • subpathname:/input/pinch_ext/pose
                                                                    • -
                                                                    • subpathname:/input/poke_ext/pose
                                                                    • -
                                                                    -
                                                                    """ IntConstant( diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/EXT_plane_detection.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/EXT_plane_detection.kt deleted file mode 100644 index 03a6fb0076..0000000000 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/EXT_plane_detection.kt +++ /dev/null @@ -1,521 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * MACHINE GENERATED FILE, DO NOT EDIT - */ -package openxr.templates - -import org.lwjgl.generator.* -import openxr.* - -val EXT_plane_detection = "EXTPlaneDetection".nativeClassXR("EXT_plane_detection", type = "instance", postfix = "EXT") { - documentation = - """ - The XR_EXT_plane_detection extension. - - This extension enables applications to detect planes in the scene. - """ - - IntConstant( - "The extension specification version.", - - "EXT_plane_detection_SPEC_VERSION".."1" - ) - - StringConstant( - "The extension name.", - - "EXT_PLANE_DETECTION_EXTENSION_NAME".."XR_EXT_plane_detection" - ) - - EnumConstant( - "Extends {@code XrResult}.", - - "ERROR_SPACE_NOT_LOCATABLE_EXT".."-1000429000", - "ERROR_PLANE_DETECTION_PERMISSION_DENIED_EXT".."-1000429001" - ) - - EnumConstant( - "Extends {@code XrObjectType}.", - - "OBJECT_TYPE_PLANE_DETECTOR_EXT".."1000429000" - ) - - EnumConstant( - "Extends {@code XrStructureType}.", - - "TYPE_PLANE_DETECTOR_CREATE_INFO_EXT".."1000429001", - "TYPE_PLANE_DETECTOR_BEGIN_INFO_EXT".."1000429002", - "TYPE_PLANE_DETECTOR_GET_INFO_EXT".."1000429003", - "TYPE_PLANE_DETECTOR_LOCATIONS_EXT".."1000429004", - "TYPE_PLANE_DETECTOR_LOCATION_EXT".."1000429005", - "TYPE_PLANE_DETECTOR_POLYGON_BUFFER_EXT".."1000429006", - "TYPE_SYSTEM_PLANE_DETECTION_PROPERTIES_EXT".."1000429007" - ) - - EnumConstant( - """ - XrPlaneDetectionCapabilityFlagBitsEXT - Feature Flag Bits - -
                                                                    Description
                                                                    - The flag bits have the following meanings: - -
                                                                    Flag Descriptions
                                                                    -
                                                                      -
                                                                    • #PLANE_DETECTION_CAPABILITY_PLANE_DETECTION_BIT_EXT — plane detection is supported
                                                                    • -
                                                                    • #PLANE_DETECTION_CAPABILITY_PLANE_HOLES_BIT_EXT — polygon buffers for holes in planes can be generated
                                                                    • -
                                                                    • #PLANE_DETECTION_CAPABILITY_SEMANTIC_CEILING_BIT_EXT — plane detection supports ceiling semantic classification
                                                                    • -
                                                                    • #PLANE_DETECTION_CAPABILITY_SEMANTIC_FLOOR_BIT_EXT — plane detection supports floor semantic classification
                                                                    • -
                                                                    • #PLANE_DETECTION_CAPABILITY_SEMANTIC_WALL_BIT_EXT — plane detection supports wall semantic classification
                                                                    • -
                                                                    • #PLANE_DETECTION_CAPABILITY_SEMANTIC_PLATFORM_BIT_EXT — plane detection supports platform semantic classification (for example table tops)
                                                                    • -
                                                                    • #PLANE_DETECTION_CAPABILITY_ORIENTATION_BIT_EXT — plane detection supports plane orientation classification. If not supported planes are always classified as ARBITRARY.
                                                                    • -
                                                                    - """, - - "PLANE_DETECTION_CAPABILITY_PLANE_DETECTION_BIT_EXT".enum(0x00000001), - "PLANE_DETECTION_CAPABILITY_PLANE_HOLES_BIT_EXT".enum(0x00000002), - "PLANE_DETECTION_CAPABILITY_SEMANTIC_CEILING_BIT_EXT".enum(0x00000004), - "PLANE_DETECTION_CAPABILITY_SEMANTIC_FLOOR_BIT_EXT".enum(0x00000008), - "PLANE_DETECTION_CAPABILITY_SEMANTIC_WALL_BIT_EXT".enum(0x00000010), - "PLANE_DETECTION_CAPABILITY_SEMANTIC_PLATFORM_BIT_EXT".enum(0x00000020), - "PLANE_DETECTION_CAPABILITY_ORIENTATION_BIT_EXT".enum(0x00000040) - ) - - EnumConstant( - """ - XrPlaneDetectorFlagBitsEXT - Plane Detector flags - -
                                                                    Description
                                                                    - The flag bits have the following meanings: - -
                                                                    Flag Descriptions
                                                                    -
                                                                      -
                                                                    • #PLANE_DETECTOR_ENABLE_CONTOUR_BIT_EXT — populate the plane contour information
                                                                    • -
                                                                    - """, - - "PLANE_DETECTOR_ENABLE_CONTOUR_BIT_EXT".enum(0x00000001) - ) - - EnumConstant( - """ - XrPlaneDetectorOrientationEXT - Orientation of the detected plane (upward, downward…​) - -
                                                                    Description
                                                                    - The enums have the following meanings: - - - - - - - - - -
                                                                    EnumDescription
                                                                    #PLANE_DETECTOR_ORIENTATION_HORIZONTAL_UPWARD_EXTThe detected plane is horizontal and faces upward (e.g. floor).
                                                                    #PLANE_DETECTOR_ORIENTATION_HORIZONTAL_DOWNWARD_EXTThe detected plane is horizontal and faces downward (e.g. ceiling).
                                                                    #PLANE_DETECTOR_ORIENTATION_VERTICAL_EXTThe detected plane is vertical (e.g. wall).
                                                                    #PLANE_DETECTOR_ORIENTATION_ARBITRARY_EXTThe detected plane has an arbitrary, non-vertical and non-horizontal orientation.
                                                                    - -
                                                                    See Also
                                                                    - ##XrPlaneDetectorBeginInfoEXT, ##XrPlaneDetectorLocationEXT, #GetPlaneDetectionsEXT() - """, - - "PLANE_DETECTOR_ORIENTATION_HORIZONTAL_UPWARD_EXT".."0", - "PLANE_DETECTOR_ORIENTATION_HORIZONTAL_DOWNWARD_EXT".."1", - "PLANE_DETECTOR_ORIENTATION_VERTICAL_EXT".."2", - "PLANE_DETECTOR_ORIENTATION_ARBITRARY_EXT".."3" - ) - - EnumConstant( - """ - XrPlaneDetectorSemanticTypeEXT - Type of the detected plane (upward, downward…​) - -
                                                                    Description
                                                                    - The enums have the following meanings: - - - - - - - - - - -
                                                                    EnumDescription
                                                                    #PLANE_DETECTOR_SEMANTIC_TYPE_UNDEFINED_EXTThe runtime was unable to classify this plane.
                                                                    #PLANE_DETECTOR_SEMANTIC_TYPE_CEILING_EXTThe detected plane is a ceiling.
                                                                    #PLANE_DETECTOR_SEMANTIC_TYPE_FLOOR_EXTThe detected plane is a floor.
                                                                    #PLANE_DETECTOR_SEMANTIC_TYPE_WALL_EXTThe detected plane is a wall.
                                                                    #PLANE_DETECTOR_SEMANTIC_TYPE_PLATFORM_EXTThe detected plane is a platform, like a table.
                                                                    - -
                                                                    See Also
                                                                    - ##XrPlaneDetectorBeginInfoEXT, ##XrPlaneDetectorLocationEXT, #GetPlaneDetectionsEXT() - """, - - "PLANE_DETECTOR_SEMANTIC_TYPE_UNDEFINED_EXT".."0", - "PLANE_DETECTOR_SEMANTIC_TYPE_CEILING_EXT".."1", - "PLANE_DETECTOR_SEMANTIC_TYPE_FLOOR_EXT".."2", - "PLANE_DETECTOR_SEMANTIC_TYPE_WALL_EXT".."3", - "PLANE_DETECTOR_SEMANTIC_TYPE_PLATFORM_EXT".."4" - ) - - EnumConstant( - """ - XrPlaneDetectionStateEXT - Plane Detection State - -
                                                                    Enumerant Descriptions
                                                                    -
                                                                      -
                                                                    • #PLANE_DETECTION_STATE_NONE_EXT - The plane detector is not actively looking for planes; call #BeginPlaneDetectionEXT() to start detection.
                                                                    • -
                                                                    • #PLANE_DETECTION_STATE_PENDING_EXT - This plane detector is currently looking for planes but not yet ready with results; call #GetPlaneDetectionsEXT() again, or call #BeginPlaneDetectionEXT() to restart with new filter parameters.
                                                                    • -
                                                                    • #PLANE_DETECTION_STATE_DONE_EXT - This plane detector has finished and results may now be retrieved. The results are valid until #BeginPlaneDetectionEXT() or #DestroyPlaneDetectorEXT() are called.
                                                                    • -
                                                                    • #PLANE_DETECTION_STATE_ERROR_EXT - An error occurred. The query may be tried again.
                                                                    • -
                                                                    • #PLANE_DETECTION_STATE_FATAL_EXT - An error occurred. The query must not be tried again.
                                                                    • -
                                                                    - -
                                                                    See Also
                                                                    - #GetPlaneDetectionStateEXT(), #GetPlaneDetectionsEXT() - """, - - "PLANE_DETECTION_STATE_NONE_EXT".."0", - "PLANE_DETECTION_STATE_PENDING_EXT".."1", - "PLANE_DETECTION_STATE_DONE_EXT".."2", - "PLANE_DETECTION_STATE_ERROR_EXT".."3", - "PLANE_DETECTION_STATE_FATAL_EXT".."4" - ) - - XrResult( - "CreatePlaneDetectorEXT", - """ - Create a plane detection handle. - -
                                                                    C Specification
                                                                    - The #CreatePlaneDetectorEXT() function is defined as: - -
                                                                    
                                                                    -￿XrResult xrCreatePlaneDetectorEXT(
                                                                    -￿    XrSession                                   session,
                                                                    -￿    const XrPlaneDetectorCreateInfoEXT*         createInfo,
                                                                    -￿    XrPlaneDetectorEXT*                         planeDetector);
                                                                    - -
                                                                    Description
                                                                    - An application creates an {@code XrPlaneDetectorEXT} handle using #CreatePlaneDetectorEXT() function. - - If the system does not support plane detection, the runtime must return #ERROR_FEATURE_UNSUPPORTED from #CreatePlaneDetectorEXT(). - -
                                                                    Valid Usage (Implicit)
                                                                    -
                                                                      -
                                                                    • The {@link EXTPlaneDetection XR_EXT_plane_detection} extension must be enabled prior to calling #CreatePlaneDetectorEXT()
                                                                    • -
                                                                    • {@code session} must be a valid {@code XrSession} handle
                                                                    • -
                                                                    • {@code createInfo} must be a pointer to a valid ##XrPlaneDetectorCreateInfoEXT structure
                                                                    • -
                                                                    • {@code planeDetector} must be a pointer to an {@code XrPlaneDetectorEXT} handle
                                                                    • -
                                                                    - -
                                                                    Return Codes
                                                                    -
                                                                    -
                                                                    On success, this command returns
                                                                    -
                                                                      -
                                                                    • #SUCCESS
                                                                    • -
                                                                    • #SESSION_LOSS_PENDING
                                                                    • -
                                                                    - -
                                                                    On failure, this command returns
                                                                    -
                                                                      -
                                                                    • #ERROR_FUNCTION_UNSUPPORTED
                                                                    • -
                                                                    • #ERROR_VALIDATION_FAILURE
                                                                    • -
                                                                    • #ERROR_RUNTIME_FAILURE
                                                                    • -
                                                                    • #ERROR_HANDLE_INVALID
                                                                    • -
                                                                    • #ERROR_INSTANCE_LOST
                                                                    • -
                                                                    • #ERROR_SESSION_LOST
                                                                    • -
                                                                    • #ERROR_OUT_OF_MEMORY
                                                                    • -
                                                                    • #ERROR_LIMIT_REACHED
                                                                    • -
                                                                    • #ERROR_PLANE_DETECTION_PERMISSION_DENIED_EXT
                                                                    • -
                                                                    • #ERROR_FEATURE_UNSUPPORTED
                                                                    • -
                                                                    -
                                                                    - -
                                                                    See Also
                                                                    - ##XrPlaneDetectorCreateInfoEXT, #BeginPlaneDetectionEXT(), #DestroyPlaneDetectorEXT() - """, - - XrSession("session", "an {@code XrSession} in which the plane detection will be active."), - XrPlaneDetectorCreateInfoEXT.const.p("createInfo", "the ##XrPlaneDetectorCreateInfoEXT used to specify the plane detection."), - Check(1)..XrPlaneDetectorEXT.p("planeDetector", "the returned {@code XrPlaneDetectorEXT} handle.") - ) - - XrResult( - "DestroyPlaneDetectorEXT", - """ - Destroy a plane detection handle. - -
                                                                    C Specification
                                                                    - The #DestroyPlaneDetectorEXT() function is defined as: - -
                                                                    
                                                                    -￿XrResult xrDestroyPlaneDetectorEXT(
                                                                    -￿    XrPlaneDetectorEXT                          planeDetector);
                                                                    - -
                                                                    Description
                                                                    - #DestroyPlaneDetectorEXT() function releases the {@code planeDetector} and the underlying resources when finished with plane detection experiences. - -
                                                                    Valid Usage (Implicit)
                                                                    -
                                                                      -
                                                                    • The {@link EXTPlaneDetection XR_EXT_plane_detection} extension must be enabled prior to calling #DestroyPlaneDetectorEXT()
                                                                    • -
                                                                    • {@code planeDetector} must be a valid {@code XrPlaneDetectorEXT} handle
                                                                    • -
                                                                    - -
                                                                    Thread Safety
                                                                    -
                                                                      -
                                                                    • Access to {@code planeDetector}, and any child handles, must be externally synchronized
                                                                    • -
                                                                    - -
                                                                    Return Codes
                                                                    -
                                                                    -
                                                                    On success, this command returns
                                                                    -
                                                                      -
                                                                    • #SUCCESS
                                                                    • -
                                                                    - -
                                                                    On failure, this command returns
                                                                    -
                                                                      -
                                                                    • #ERROR_FUNCTION_UNSUPPORTED
                                                                    • -
                                                                    • #ERROR_RUNTIME_FAILURE
                                                                    • -
                                                                    • #ERROR_HANDLE_INVALID
                                                                    • -
                                                                    -
                                                                    - -
                                                                    See Also
                                                                    - #CreatePlaneDetectorEXT() - """, - - XrPlaneDetectorEXT("planeDetector", "an {@code XrPlaneDetectorEXT} previously created by #CreatePlaneDetectorEXT().") - ) - - XrResult( - "BeginPlaneDetectionEXT", - """ - Detect planes. - -
                                                                    C Specification
                                                                    - The #BeginPlaneDetectionEXT() function is defined as: - -
                                                                    
                                                                    -￿XrResult xrBeginPlaneDetectionEXT(
                                                                    -￿    XrPlaneDetectorEXT                          planeDetector,
                                                                    -￿    const XrPlaneDetectorBeginInfoEXT*          beginInfo);
                                                                    - -
                                                                    Description
                                                                    - The #BeginPlaneDetectionEXT() function begins the detection of planes in the scene. Detecting planes in a scene is an asynchronous operation. #GetPlaneDetectionStateEXT() can be used to determine if the query has finished. Once it has finished the results may be retrieved via #GetPlaneDetectionsEXT(). If a detection has already been started on a plane detector handle, calling #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 #BeginPlaneDetectionEXT() using ##XrPlaneDetectorBeginInfoEXT{@code ::baseSpace}, ##XrPlaneDetectorBeginInfoEXT{@code ::time}, ##XrPlaneDetectorBeginInfoEXT{@code ::boundingBoxPose} and ##XrPlaneDetectorBeginInfoEXT{@code ::boundingBoxExtent}. The runtime must resolve the location defined by {@code baseSpace} at the time of the call. The ##XrPlaneDetectorBeginInfoEXT{@code ::boundingBoxPose} is the pose of the center of the box defined by ##XrPlaneDetectorBeginInfoEXT{@code ::boundingBoxExtent}. - - The runtime must return #ERROR_SPACE_NOT_LOCATABLE_EXT if the {@code baseSpace} is not locatable at the time of the call. - -
                                                                    Valid Usage (Implicit)
                                                                    -
                                                                      -
                                                                    • The {@link EXTPlaneDetection XR_EXT_plane_detection} extension must be enabled prior to calling #BeginPlaneDetectionEXT()
                                                                    • -
                                                                    • {@code planeDetector} must be a valid {@code XrPlaneDetectorEXT} handle
                                                                    • -
                                                                    • {@code beginInfo} must be a pointer to a valid ##XrPlaneDetectorBeginInfoEXT structure
                                                                    • -
                                                                    - -
                                                                    Return Codes
                                                                    -
                                                                    -
                                                                    On success, this command returns
                                                                    -
                                                                      -
                                                                    • #SUCCESS
                                                                    • -
                                                                    • #SESSION_LOSS_PENDING
                                                                    • -
                                                                    - -
                                                                    On failure, this command returns
                                                                    -
                                                                      -
                                                                    • #ERROR_FUNCTION_UNSUPPORTED
                                                                    • -
                                                                    • #ERROR_VALIDATION_FAILURE
                                                                    • -
                                                                    • #ERROR_RUNTIME_FAILURE
                                                                    • -
                                                                    • #ERROR_HANDLE_INVALID
                                                                    • -
                                                                    • #ERROR_INSTANCE_LOST
                                                                    • -
                                                                    • #ERROR_SESSION_LOST
                                                                    • -
                                                                    • #ERROR_TIME_INVALID
                                                                    • -
                                                                    • #ERROR_SPACE_NOT_LOCATABLE_EXT
                                                                    • -
                                                                    • #ERROR_POSE_INVALID
                                                                    • -
                                                                    -
                                                                    - -
                                                                    See Also
                                                                    - ##XrPlaneDetectorBeginInfoEXT, ##XrPlaneDetectorGetInfoEXT, #GetPlaneDetectionsEXT() - """, - - XrPlaneDetectorEXT("planeDetector", "an {@code XrPlaneDetectorEXT} previously created by #CreatePlaneDetectorEXT()."), - XrPlaneDetectorBeginInfoEXT.const.p("beginInfo", "a pointer to ##XrPlaneDetectorBeginInfoEXT containing plane detection parameters.") - ) - - XrResult( - "GetPlaneDetectionStateEXT", - """ - Get the state of the plane detection pass. - -
                                                                    C Specification
                                                                    - The #GetPlaneDetectionStateEXT() function is defined as: - -
                                                                    
                                                                    -￿XrResult xrGetPlaneDetectionStateEXT(
                                                                    -￿    XrPlaneDetectorEXT                          planeDetector,
                                                                    -￿    XrPlaneDetectionStateEXT*                   state);
                                                                    - -
                                                                    Description
                                                                    - The #GetPlaneDetectionStateEXT() function retrieves the state of the plane query and must be called before calling #GetPlaneDetectionsEXT(). - - If the plane detection has not yet finished {@code state} must be #PLANE_DETECTION_STATE_PENDING_EXT. If the plane detection has finished {@code state} must be #PLANE_DETECTION_STATE_DONE_EXT. If no plane detection was previously started #PLANE_DETECTION_STATE_NONE_EXT must be returned. For all three states the function must return #SUCCESS. - - When a query error occurs the function must return #SUCCESS and the appropriate error state value must be set. - -
                                                                    Valid Usage (Implicit)
                                                                    -
                                                                      -
                                                                    • The {@link EXTPlaneDetection XR_EXT_plane_detection} extension must be enabled prior to calling #GetPlaneDetectionStateEXT()
                                                                    • -
                                                                    • {@code planeDetector} must be a valid {@code XrPlaneDetectorEXT} handle
                                                                    • -
                                                                    • {@code state} must be a pointer to an {@code XrPlaneDetectionStateEXT} value
                                                                    • -
                                                                    - -
                                                                    Return Codes
                                                                    -
                                                                    -
                                                                    On success, this command returns
                                                                    -
                                                                      -
                                                                    • #SUCCESS
                                                                    • -
                                                                    • #SESSION_LOSS_PENDING
                                                                    • -
                                                                    - -
                                                                    On failure, this command returns
                                                                    -
                                                                      -
                                                                    • #ERROR_FUNCTION_UNSUPPORTED
                                                                    • -
                                                                    • #ERROR_VALIDATION_FAILURE
                                                                    • -
                                                                    • #ERROR_RUNTIME_FAILURE
                                                                    • -
                                                                    • #ERROR_HANDLE_INVALID
                                                                    • -
                                                                    • #ERROR_INSTANCE_LOST
                                                                    • -
                                                                    • #ERROR_SESSION_LOST
                                                                    • -
                                                                    -
                                                                    - -
                                                                    See Also
                                                                    - #BeginPlaneDetectionEXT() - """, - - XrPlaneDetectorEXT("planeDetector", "an {@code XrPlaneDetectorEXT} previously created by #CreatePlaneDetectorEXT()."), - Check(1)..XrPlaneDetectionStateEXT.p("state", "a pointer to {@code XrPlaneDetectionStateEXT}.") - ) - - XrResult( - "GetPlaneDetectionsEXT", - """ - Get the detected planes. - -
                                                                    C Specification
                                                                    - The #GetPlaneDetectionsEXT() function is defined as: - -
                                                                    
                                                                    -￿XrResult xrGetPlaneDetectionsEXT(
                                                                    -￿    XrPlaneDetectorEXT                          planeDetector,
                                                                    -￿    const XrPlaneDetectorGetInfoEXT*            info,
                                                                    -￿    XrPlaneDetectorLocationsEXT*                locations);
                                                                    - -
                                                                    Description
                                                                    - #GetPlaneDetectionsEXT() must return #ERROR_CALL_ORDER_INVALID if the detector state reported by #GetPlaneDetectionStateEXT() is not #PLANE_DETECTION_STATE_DONE_EXT for the current query started by #BeginPlaneDetectionEXT(). - - If the ##XrPlaneDetectorGetInfoEXT::baseSpace is not locatable #ERROR_SPACE_NOT_LOCATABLE_EXT must be returned. - - Once #BeginPlaneDetectionEXT() is called again, the previous results for that handle are no longer available. The application should cache them before calling #BeginPlaneDetectionEXT() again if it needs access to that data while waiting for updated detection results. - - Upon the completion of a detection cycle (#BeginPlaneDetectionEXT(), #GetPlaneDetectionStateEXT() to #GetPlaneDetectionsEXT()) the runtime must keep a snapshot of the plane data and no data may be modified. Calling #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 #BeginPlaneDetectionEXT(). - - If the ##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)
                                                                    -
                                                                      -
                                                                    • The {@link EXTPlaneDetection XR_EXT_plane_detection} extension must be enabled prior to calling #GetPlaneDetectionsEXT()
                                                                    • -
                                                                    • {@code planeDetector} must be a valid {@code XrPlaneDetectorEXT} handle
                                                                    • -
                                                                    • {@code info} must be a pointer to a valid ##XrPlaneDetectorGetInfoEXT structure
                                                                    • -
                                                                    • {@code locations} must be a pointer to an ##XrPlaneDetectorLocationsEXT structure
                                                                    • -
                                                                    - -
                                                                    Return Codes
                                                                    -
                                                                    -
                                                                    On success, this command returns
                                                                    -
                                                                      -
                                                                    • #SUCCESS
                                                                    • -
                                                                    • #SESSION_LOSS_PENDING
                                                                    • -
                                                                    - -
                                                                    On failure, this command returns
                                                                    -
                                                                      -
                                                                    • #ERROR_FUNCTION_UNSUPPORTED
                                                                    • -
                                                                    • #ERROR_VALIDATION_FAILURE
                                                                    • -
                                                                    • #ERROR_RUNTIME_FAILURE
                                                                    • -
                                                                    • #ERROR_HANDLE_INVALID
                                                                    • -
                                                                    • #ERROR_INSTANCE_LOST
                                                                    • -
                                                                    • #ERROR_SESSION_LOST
                                                                    • -
                                                                    • #ERROR_TIME_INVALID
                                                                    • -
                                                                    • #ERROR_SPACE_NOT_LOCATABLE_EXT
                                                                    • -
                                                                    • #ERROR_CALL_ORDER_INVALID
                                                                    • -
                                                                    -
                                                                    - -
                                                                    See Also
                                                                    - ##XrPlaneDetectorGetInfoEXT, ##XrPlaneDetectorLocationsEXT, #BeginPlaneDetectionEXT() - """, - - XrPlaneDetectorEXT("planeDetector", "an {@code XrPlaneDetectorEXT} previously created by #CreatePlaneDetectorEXT()."), - XrPlaneDetectorGetInfoEXT.const.p("info", "a pointer to ##XrPlaneDetectorGetInfoEXT."), - XrPlaneDetectorLocationsEXT.p("locations", "a pointer to ##XrPlaneDetectorLocationsEXT receiving the returned plane locations.") - ) - - XrResult( - "GetPlanePolygonBufferEXT", - """ - Gets the plane. - -
                                                                    C Specification
                                                                    - The #GetPlanePolygonBufferEXT() function is defined as: - -
                                                                    
                                                                    -￿XrResult xrGetPlanePolygonBufferEXT(
                                                                    -￿    XrPlaneDetectorEXT                          planeDetector,
                                                                    -￿    uint64_t                                    planeId,
                                                                    -￿    uint32_t                                    polygonBufferIndex,
                                                                    -￿    XrPlaneDetectorPolygonBufferEXT*            polygonBuffer);
                                                                    - -
                                                                    Description
                                                                    - The #GetPlanePolygonBufferEXT() function retrieves the plane’s polygon buffer for the given {@code planeId} and {@code polygonBufferIndex}. Calling #GetPlanePolygonBufferEXT() with {@code polygonBufferIndex} equal to 0 must return the outside contour, if available. Calls with non-zero indices less than ##XrPlaneDetectorLocationEXT{@code ::polygonBufferCount} must return polygons corresponding to holes in the plane. This feature may not be supported by all runtimes, check the ##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)
                                                                    -
                                                                      -
                                                                    • The {@link EXTPlaneDetection XR_EXT_plane_detection} extension must be enabled prior to calling #GetPlanePolygonBufferEXT()
                                                                    • -
                                                                    • {@code planeDetector} must be a valid {@code XrPlaneDetectorEXT} handle
                                                                    • -
                                                                    • {@code polygonBuffer} must be a pointer to an ##XrPlaneDetectorPolygonBufferEXT structure
                                                                    • -
                                                                    - -
                                                                    Return Codes
                                                                    -
                                                                    -
                                                                    On success, this command returns
                                                                    -
                                                                      -
                                                                    • #SUCCESS
                                                                    • -
                                                                    • #SESSION_LOSS_PENDING
                                                                    • -
                                                                    - -
                                                                    On failure, this command returns
                                                                    -
                                                                      -
                                                                    • #ERROR_FUNCTION_UNSUPPORTED
                                                                    • -
                                                                    • #ERROR_VALIDATION_FAILURE
                                                                    • -
                                                                    • #ERROR_RUNTIME_FAILURE
                                                                    • -
                                                                    • #ERROR_HANDLE_INVALID
                                                                    • -
                                                                    • #ERROR_INSTANCE_LOST
                                                                    • -
                                                                    • #ERROR_SESSION_LOST
                                                                    • -
                                                                    -
                                                                    - -
                                                                    See Also
                                                                    - ##XrPlaneDetectorPolygonBufferEXT, #GetPlaneDetectionsEXT() - """, - - XrPlaneDetectorEXT("planeDetector", "an {@code XrPlaneDetectorEXT} previously created by #CreatePlaneDetectorEXT()."), - uint64_t("planeId", "the ##XrPlaneDetectorLocationEXT{@code ::planeId}."), - uint32_t("polygonBufferIndex", "the index of the polygon contour buffer to retrieve. This must be a number from 0 to ##XrPlaneDetectorLocationEXT:polygonBufferCount -1. Index 0 retrieves the outside contour, larger indexes retrieve holes in the plane."), - XrPlaneDetectorPolygonBufferEXT.p("polygonBuffer", "a pointer to ##XrPlaneDetectorPolygonBufferEXT receiving the returned plane polygon buffer.") - ) -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/EXT_samsung_odyssey_controller.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/EXT_samsung_odyssey_controller.kt index a85ccfce94..4db1043c4e 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/EXT_samsung_odyssey_controller.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/EXT_samsung_odyssey_controller.kt @@ -13,9 +13,9 @@ val EXT_samsung_odyssey_controller = "EXTSamsungOdysseyController".nativeClassXR """ The XR_EXT_samsung_odyssey_controller extension. - This extension enables the application to differentiate the newer form factor of motion controller released with the Samsung Odyssey headset. It enables the application to customize the appearance and experience of the controller differently from the original mixed reality motion controller. + This extension enables the application to differentiate the newer form factor of motion controller released with the Samsung Odyssey headset. It enables the application to customize the appearance and experience of the controller differently from the original mixed reality motion controller. - This extension added a new interaction profile pathname:/interaction_profiles/samsung/odyssey_controller to describe the Odyssey controller. The action bindings of this interaction profile work exactly the same as the pathname:/interaction_profiles/microsoft/motion_controller in terms of valid user paths and supported input and output component paths. + This extension added a new interaction profile pathname:/interaction_profiles/samsung/odyssey_controller to describe the Odyssey controller. The action bindings of this interaction profile work exactly the same as the pathname:/interaction_profiles/microsoft/motion_controller in terms of valid user paths and supported input and output component paths. If the application doesn’t do its own custom rendering for specific motion controllers, it should avoid using this extension and instead just use subpathname:/microsoft/motion_controller, as runtimes should treat both controllers equally when applications declare action bindings only for that profile. diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/EXT_uuid.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/EXT_uuid.kt index 089a60db63..6317c61d1e 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/EXT_uuid.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/EXT_uuid.kt @@ -13,7 +13,7 @@ val EXT_uuid = "EXTUUIUD".nativeClassXR("EXT_uuid", type = "instance", postfix = """ The XR_EXT_uuid extension. - This extension defines a Universally Unique Identifier that follows RFC 4122. + This extension defines a Universally Unique Identifier that follows RFC 4122. """ IntConstant( diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_color_space.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_color_space.kt index a1e42cf79a..40bddd433c 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_color_space.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_color_space.kt @@ -23,7 +23,7 @@ val FB_color_space = "FBColorSpace".nativeClassXR("FB_color_space", type = "inst
                                                                  • An application to set the color space for the session.
                                                                  - In order to enable the functionality of this extension, the application must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. + In order to enable the functionality of this extension, the application must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. """ IntConstant( @@ -194,7 +194,7 @@ val FB_color_space = "FBColorSpace".nativeClassXR("FB_color_space", type = "inst Formal definitions of color spaces contain a number of aspects such as gamma correction, max luminance and more. However, #SetColorSpaceFB() will only affect the color gamut of the output by transforming the color gamut from the source (defined by the {@code colorSpace} parameter) to the HMD display’s color gamut (defined by the hardware internally). This call will not affect gamma correction, leaving that to follow the GPU texture format standards. Luminance, tonemapping, and other aspects of the color space will also remain unaffected. - For more info on color management in Oculus HMDs, please refer to this guide: Color Management in Oculus Headsets + For more info on color management in Oculus HMDs, please refer to this guide: Color Management in Oculus Headsets
                                                                  Valid Usage (Implicit)
                                                                    diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_composition_layer_alpha_blend.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_composition_layer_alpha_blend.kt index b71c14a176..3a8497d5a7 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_composition_layer_alpha_blend.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_composition_layer_alpha_blend.kt @@ -19,7 +19,7 @@ val FB_composition_layer_alpha_blend = "FBCompositionLayerAlphaBlend".nativeClas Like color, destination alpha is initialized to 0 before composition begins. - In order to enable the functionality of this extension, the application must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. + In order to enable the functionality of this extension, the application must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. These blend factors are specified by attaching a ##XrCompositionLayerAlphaBlendFB structure to the {@code next} chain of a ##XrCompositionLayerBaseHeader-derived layer structure. """ diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_composition_layer_image_layout.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_composition_layer_image_layout.kt index 4c0ab92abf..63b3f51cf5 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_composition_layer_image_layout.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_composition_layer_image_layout.kt @@ -15,7 +15,7 @@ val FB_composition_layer_image_layout = "FBCompositionLayerImageLayout".nativeCl This extension does not define a new composition layer type, but rather it defines parameters that change the interpretation of the image layout, where the default image layout is dictated by the Graphics API. - In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. + In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. """ IntConstant( diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_composition_layer_secure_content.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_composition_layer_secure_content.kt index 2af0055efd..4842a80c7e 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_composition_layer_secure_content.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_composition_layer_secure_content.kt @@ -15,7 +15,7 @@ val FB_composition_layer_secure_content = "FBCompositionLayerSecureContent".nati This extension does not define a new composition layer type, but rather it provides support for the application to specify an existing composition layer type has secure content and whether it must be completely excluded from external outputs, like video or screen capture, or if proxy content must be rendered in its place. - In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. + In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. """ IntConstant( diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_composition_layer_settings.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_composition_layer_settings.kt index c4c6852d84..c0f176809d 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_composition_layer_settings.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_composition_layer_settings.kt @@ -15,7 +15,7 @@ val FB_composition_layer_settings = "FBCompositionLayerSettings".nativeClassXR(" This extension allows applications to request the use of processing options such as sharpening or super-sampling on a composition layer. - In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. + In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. """ IntConstant( diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_display_refresh_rate.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_display_refresh_rate.kt index a24c9dca01..7526d21420 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_display_refresh_rate.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_display_refresh_rate.kt @@ -28,7 +28,7 @@ val FB_display_refresh_rate = "FBDisplayRefreshRate".nativeClassXR("FB_display_r
                                                                  • An application to receive notification of changes to the display refresh rate which are delivered via events.
                                                                  - In order to enable the functionality of this extension, the application must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. + In order to enable the functionality of this extension, the application must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. """ IntConstant( diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_foveation.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_foveation.kt index b07f995253..e257c45059 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_foveation.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_foveation.kt @@ -22,7 +22,7 @@ val FB_foveation = "FBFoveation".nativeClassXR("FB_foveation", type = "instance"
                                                                • An application to request foveation profiles supported by the runtime and apply them to foveation-supported swapchains.
                                                                - In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo {@code enabledExtensionNames} parameter as indicated in the extensions section. + In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo {@code enabledExtensionNames} parameter as indicated in the extensions section. """ IntConstant( diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_foveation_configuration.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_foveation_configuration.kt index c06a40f7cb..9d20e015c8 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_foveation_configuration.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_foveation_configuration.kt @@ -21,7 +21,7 @@ val FB_foveation_configuration = "FBFoveationConfiguration".nativeClassXR("FB_fo
                                                              • An application to request foveation profiles generated by the runtime for the current HMD.
                                                              - In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo {@code enabledExtensionNames} parameter as indicated in the extensions section. + In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo {@code enabledExtensionNames} parameter as indicated in the extensions section. """ IntConstant( diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_foveation_vulkan.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_foveation_vulkan.kt index 1608e7d0bf..53af59270c 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_foveation_vulkan.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_foveation_vulkan.kt @@ -21,7 +21,7 @@ val FB_foveation_vulkan = "FBFoveationVulkan".nativeClassXR("FB_foveation_vulkan
                                                            • An application to obtain foveation textures or constructs needed for foveated rendering in Vulkan.
                                                            - In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo {@code enabledExtensionNames} parameter as indicated in the extensions section. + In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo {@code enabledExtensionNames} parameter as indicated in the extensions section. """ IntConstant( diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_passthrough.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_passthrough.kt index faec183508..2fe23738a4 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_passthrough.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_passthrough.kt @@ -616,7 +616,7 @@ val FB_passthrough = "FBPassthrough".nativeClassXR("FB_passthrough", type = "ins ￿ XrGeometryInstanceFB* outGeometryInstance);
                                                            Description
                                                            - Creates an {@code XrGeometryInstanceFB} handle. Geometry instance functionality requires {@link FBTriangleMesh XR_FB_triangle_mesh} extension to be enabled. An {@code XrGeometryInstanceFB} connects a layer, a mesh, and a transformation, with the semantics that a specific mesh will be instantiated in a specific layer with a specific transformation. A mesh can be instantiated multiple times, in the same or in different layers. + Creates an {@code XrGeometryInstanceFB} handle. Geometry instance functionality requires XR_FB_triangle_mesh extension to be enabled. An {@code XrGeometryInstanceFB} connects a layer, a mesh, and a transformation, with the semantics that a specific mesh will be instantiated in a specific layer with a specific transformation. A mesh can be instantiated multiple times, in the same or in different layers.
                                                            Valid Usage (Implicit)
                                                              diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_render_model.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_render_model.kt index 21f6844be5..2e3e10c232 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_render_model.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_render_model.kt @@ -19,7 +19,7 @@ val FB_render_model = "FBRenderModel".nativeClassXR("FB_render_model", type = "i IntConstant( "The extension specification version.", - "FB_render_model_SPEC_VERSION".."4" + "FB_render_model_SPEC_VERSION".."3" ) StringConstant( diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_scene.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_scene.kt index 4433ebedf8..63014c2e81 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_scene.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_scene.kt @@ -15,13 +15,13 @@ val FB_scene = "FBScene".nativeClassXR("FB_scene", type = "instance", postfix = 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 #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. + In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. """ IntConstant( "The extension specification version.", - "FB_scene_SPEC_VERSION".."3" + "FB_scene_SPEC_VERSION".."1" ) StringConstant( @@ -35,23 +35,7 @@ val FB_scene = "FBScene".nativeClassXR("FB_scene", type = "instance", postfix = "TYPE_SEMANTIC_LABELS_FB".."1000175000", "TYPE_ROOM_LAYOUT_FB".."1000175001", - "TYPE_BOUNDARY_2D_FB".."1000175002", - "TYPE_SEMANTIC_LABELS_SUPPORT_INFO_FB".."1000175010" - ) - - EnumConstant( - """ - XrSemanticLabelsSupportFlagBitsFB - XrSemanticLabelsSupportFlagBitsFB - -
                                                              Flag Descriptions
                                                              -
                                                                -
                                                              • #SEMANTIC_LABELS_SUPPORT_MULTIPLE_SEMANTIC_LABELS_BIT_FB — If set, and the runtime reports the {@code extensionVersion} as 2 or greater, the runtime may return multiple semantic labels separated by a comma without spaces. Otherwise, the runtime must return a single semantic label.
                                                              • -
                                                              • #SEMANTIC_LABELS_SUPPORT_ACCEPT_DESK_TO_TABLE_MIGRATION_BIT_FB — If set, and the runtime reports the {@code extensionVersion} as 3 or greater, the runtime must return "TABLE" instead of "DESK" as a semantic label to the application. Otherwise, the runtime must return "DESK" instead of "TABLE" as a semantic label to the application, when applicable.
                                                              • -
                                                              - """, - - "SEMANTIC_LABELS_SUPPORT_MULTIPLE_SEMANTIC_LABELS_BIT_FB".enum(0x00000001), - "SEMANTIC_LABELS_SUPPORT_ACCEPT_DESK_TO_TABLE_MIGRATION_BIT_FB".enum(0x00000002) + "TYPE_BOUNDARY_2D_FB".."1000175002" ) XrResult( @@ -71,8 +55,6 @@ val FB_scene = "FBScene".nativeClassXR("FB_scene", type = "instance", postfix =
                                                              Description
                                                              Gets the 2D bounding box for a spatial entity with the #SPACE_COMPONENT_TYPE_BOUNDED_2D_FB component type enabled. - The bounding box is defined by an {@code offset} and {@code extent}. The {@code offset} refers to the coordinate of the minimum corner of the box in the x-y plane of the given {@code XrSpace}’s coordinate system; that is, the corner whose coordinate has the minimum value on each axis. The {@code extent} refers to the dimensions of the box along each axis. The maximum corner can therefore be computed as offset extent. -
                                                              Valid Usage (Implicit)
                                                              • The {@link FBScene XR_FB_scene} extension must be enabled prior to calling #GetSpaceBoundingBox2DFB()
                                                              • @@ -210,7 +192,6 @@ val FB_scene = "FBScene".nativeClassXR("FB_scene", type = "instance", postfix =
                                                              • #ERROR_HANDLE_INVALID
                                                              • #ERROR_INSTANCE_LOST
                                                              • #ERROR_SESSION_LOST
                                                              • -
                                                              • #ERROR_SIZE_INSUFFICIENT
                                                              • #ERROR_SPACE_COMPONENT_NOT_ENABLED_FB
                                                              • #ERROR_FEATURE_UNSUPPORTED
                                                              @@ -267,7 +248,6 @@ val FB_scene = "FBScene".nativeClassXR("FB_scene", type = "instance", postfix =
                                                            • #ERROR_HANDLE_INVALID
                                                            • #ERROR_INSTANCE_LOST
                                                            • #ERROR_SESSION_LOST
                                                            • -
                                                            • #ERROR_SIZE_INSUFFICIENT
                                                            • #ERROR_SPACE_COMPONENT_NOT_ENABLED_FB
                                                            • #ERROR_FEATURE_UNSUPPORTED
                                                            @@ -299,8 +279,6 @@ val FB_scene = "FBScene".nativeClassXR("FB_scene", type = "instance", postfix =
                                                            Description
                                                            Gets the room layout, specified by UUIDs for each surface, for a spatial entity with the #SPACE_COMPONENT_TYPE_ROOM_LAYOUT_FB component type enabled. - If the ##XrRoomLayoutFB{@code ::wallUuidCapacityInput} field is zero (indicating a request to retrieve the required capacity for the ##XrRoomLayoutFB{@code ::wallUuids} array), or if #GetSpaceRoomLayoutFB() returns failure, then the values of {@code floorUuid} and {@code ceilingUuid} are unspecified and should not be used. -
                                                            Valid Usage (Implicit)
                                                            • The {@link FBScene XR_FB_scene} extension must be enabled prior to calling #GetSpaceRoomLayoutFB()
                                                            • @@ -326,7 +304,6 @@ val FB_scene = "FBScene".nativeClassXR("FB_scene", type = "instance", postfix =
                                                            • #ERROR_HANDLE_INVALID
                                                            • #ERROR_INSTANCE_LOST
                                                            • #ERROR_SESSION_LOST
                                                            • -
                                                            • #ERROR_SIZE_INSUFFICIENT
                                                            • #ERROR_SPACE_COMPONENT_NOT_ENABLED_FB
                                                            • #ERROR_FEATURE_UNSUPPORTED
                                                            diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_scene_capture.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_scene_capture.kt index 3a56a0dd11..426acdab1e 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_scene_capture.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_scene_capture.kt @@ -15,7 +15,7 @@ val FB_scene_capture = "FBSceneCapture".nativeClassXR("FB_scene_capture", type = This extension allows an application to request that the system begin capturing information about what is in the environment around the user. - In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. + In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. """ IntConstant( diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_space_warp.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_space_warp.kt index ddf1aa2b4b..13c8615a09 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_space_warp.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_space_warp.kt @@ -15,7 +15,7 @@ val FB_space_warp = "FBSpaceWarp".nativeClassXR("FB_space_warp", type = "instanc This extension provides support to enable space warp technology on application. By feeding application generated motion vector and depth buffer images, the runtime can do high quality frame extrapolation and reprojection, allow applications to run at half fps but still providing smooth experience to users. - In order to enable the functionality of this extension, the application must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. + In order to enable the functionality of this extension, the application must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section.
                                                            Note
                                                            This extension is independent of {@link KHRCompositionLayerDepth XR_KHR_composition_layer_depth}, and both may be enabled and used at the same time, for different purposes. The ##XrCompositionLayerSpaceWarpInfoFB{@code ::depthSubImage} depth data is dedicated for space warp, and its resolution is usually lower than ##XrCompositionLayerDepthInfoKHR{@code ::subImage}. See ##XrSystemSpaceWarpPropertiesFB for suggested resolution of {@code depthSubImage}. diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity.kt index 6d103d000a..1b45fb030b 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity.kt @@ -17,7 +17,7 @@ val FB_spatial_entity = "FBSpatialEntity".nativeClassXR("FB_spatial_entity", typ We use OpenXR {@code XrSpace} handles to give applications access to spatial entities such as Spatial Anchors. In other words, any operation which involves spatial entities uses {@code XrSpace} handles to identify the affected spatial entities. - In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. + In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. This extension allows: @@ -109,7 +109,7 @@ val FB_spatial_entity = "FBSpatialEntity".nativeClassXR("FB_spatial_entity", typ ￿ XrAsyncRequestIdFB* requestId);
                                                            Description
                                                            - Creates a Spatial Anchor using the specified tracking origin and pose relative to the specified tracking origin. The anchor will be locatable at the time of creation, and the 6 DOF pose relative to the tracking origin can be queried using the #LocateSpace() method. This operation is asynchronous and the runtime must post an ##XrEventDataSpatialAnchorCreateCompleteFB event when the operation completes successfully or encounters an error. If this function returns a failure code, no event is posted. The {@code requestId} can be used to later refer to the request, such as identifying which request has completed when an ##XrEventDataSpatialAnchorCreateCompleteFB is posted to the event queue. + Creates a Spatial Anchor using the specified tracking origin and pose relative to the specified tracking origin. The anchor will be locatable at the time of creation, and the 6 DOF pose relative to the tracking origin can be queried using the #LocateSpace() method. This operation is asynchronous and the runtime must post an ##XrEventDataSpatialAnchorCreateCompleteFB event when the operation completes successfully or encounters an error. The {@code requestId} can be used to later refer to the request, such as identifying which request has completed when an ##XrEventDataSpatialAnchorCreateCompleteFB is posted to the event queue.
                                                            Valid Usage (Implicit)
                                                              @@ -245,7 +245,6 @@ val FB_spatial_entity = "FBSpatialEntity".nativeClassXR("FB_spatial_entity", typ
                                                            • #ERROR_HANDLE_INVALID
                                                            • #ERROR_INSTANCE_LOST
                                                            • #ERROR_SESSION_LOST
                                                            • -
                                                            • #ERROR_SIZE_INSUFFICIENT
                                                            • #ERROR_FEATURE_UNSUPPORTED
                                                            @@ -272,7 +271,7 @@ val FB_spatial_entity = "FBSpatialEntity".nativeClassXR("FB_spatial_entity", typ ￿ XrAsyncRequestIdFB* requestId);
                                                            Description
                                                            - Enables or disables the specified component for the specified entity. This operation is asynchronous and always returns immediately, regardless of the value of {@code timeout}. The {@code requestId} can be used to later refer to the request, such as identifying which request has completed when an ##XrEventDataSpaceSetStatusCompleteFB is posted to the event queue. If this function returns a failure code, no event is posted. This function must return #ERROR_SPACE_COMPONENT_NOT_SUPPORTED_FB if the {@code XrSpace} does not support the specified component type. + Enables or disables the specified component for the specified entity. This operation is asynchronous and always returns immediately, regardless of the value of {@code timeout}. The {@code requestId} can be used to later refer to the request, such as identifying which request has completed when an ##XrEventDataSpaceSetStatusCompleteFB is posted to the event queue. This function must return #ERROR_SPACE_COMPONENT_NOT_SUPPORTED_FB if the {@code XrSpace} does not support the specified component type.
                                                            Valid Usage (Implicit)
                                                              diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity_container.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity_container.kt index 2f71d63574..27bac1c3a1 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity_container.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity_container.kt @@ -15,7 +15,7 @@ val FB_spatial_entity_container = "FBSpatialEntityContainer".nativeClassXR("FB_s This extension expands on the concept of spatial entities to include a way for one spatial entity to contain multiple child spatial entities, forming a hierarchy. - In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. + In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. """ IntConstant( @@ -80,7 +80,6 @@ val FB_spatial_entity_container = "FBSpatialEntityContainer".nativeClassXR("FB_s
                                                            • #ERROR_HANDLE_INVALID
                                                            • #ERROR_INSTANCE_LOST
                                                            • #ERROR_SESSION_LOST
                                                            • -
                                                            • #ERROR_SIZE_INSUFFICIENT
                                                            • #ERROR_SPACE_COMPONENT_NOT_ENABLED_FB
                                                            • #ERROR_FEATURE_UNSUPPORTED
                                                            diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity_query.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity_query.kt index 25be621898..32c4b0b069 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity_query.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity_query.kt @@ -15,7 +15,7 @@ val FB_spatial_entity_query = "FBSpatialEntityQuery".nativeClassXR("FB_spatial_e This extension enables an application to discover persistent spatial entities in the area and restore them. Using the query system, the application can load persistent spatial entities from storage. The query system consists of a set of filters to define the spatial entity search query and an operation that needs to be performed on the search results. - In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. + In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. """ IntConstant( @@ -99,7 +99,7 @@ val FB_spatial_entity_query = "FBSpatialEntityQuery".nativeClassXR("FB_spatial_e ￿ XrAsyncRequestIdFB* requestId);
                                                            Description
                                                            - The #QuerySpacesFB() function enables an application to find and retrieve spatial entities from storage. Cast an ##XrSpaceQueryInfoFB pointer to a ##XrSpaceQueryInfoBaseHeaderFB pointer to pass as {@code info}. The application should keep the returned {@code requestId} for the duration of the request as it is used to refer to the request when calling #RetrieveSpaceQueryResultsFB() and is used to map completion events to the request. This operation is asynchronous and the runtime must post an ##XrEventDataSpaceQueryCompleteFB event when the operation completes successfully or encounters an error. If this function returns a failure code, no event is posted. The runtime must post an ##XrEventDataSpaceQueryResultsAvailableFB before ##XrEventDataSpaceQueryCompleteFB if any results are found. Once an ##XrEventDataSpaceQueryResultsAvailableFB event has been posted, the application may call #RetrieveSpaceQueryResultsFB() to retrieve the available results. + The #QuerySpacesFB() function enables an application to find and retrieve spatial entities from storage. Cast an ##XrSpaceQueryInfoFB pointer to a ##XrSpaceQueryInfoBaseHeaderFB pointer to pass as {@code info}. The application should keep the returned {@code requestId} for the duration of the request as it is used to refer to the request when calling #RetrieveSpaceQueryResultsFB() and is used to map completion events to the request. This operation is asynchronous and the runtime must post an ##XrEventDataSpaceQueryCompleteFB event when the operation completes successfully or encounters an error. The runtime must post an ##XrEventDataSpaceQueryResultsAvailableFB if before ##XrEventDataSpaceQueryCompleteFB if any results are found. Once an ##XrEventDataSpaceQueryResultsAvailableFB event has been posted, the application may call #RetrieveSpaceQueryResultsFB() to retrieve the available results.
                                                            Valid Usage (Implicit)
                                                              @@ -178,7 +178,6 @@ val FB_spatial_entity_query = "FBSpatialEntityQuery".nativeClassXR("FB_spatial_e
                                                            • #ERROR_HANDLE_INVALID
                                                            • #ERROR_INSTANCE_LOST
                                                            • #ERROR_SESSION_LOST
                                                            • -
                                                            • #ERROR_SIZE_INSUFFICIENT
                                                            • #ERROR_FEATURE_UNSUPPORTED
                                                            diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity_sharing.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity_sharing.kt index 1c30c36318..46c6aaa627 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity_sharing.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity_sharing.kt @@ -15,7 +15,7 @@ val FB_spatial_entity_sharing = "FBSpatialEntitySharing".nativeClassXR("FB_spati This extension enables spatial entities to be shared between users. If the #SPACE_COMPONENT_TYPE_SHARABLE_FB component has been enabled on the spatial entity, application developers may share {@code XrSpace} entities between users. - In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. + In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. """ IntConstant( @@ -62,7 +62,7 @@ val FB_spatial_entity_sharing = "FBSpatialEntitySharing".nativeClassXR("FB_spati ￿ XrAsyncRequestIdFB* requestId);
                                                            Description
                                                            - This operation is asynchronous and the runtime must post an ##XrEventDataSpaceShareCompleteFB event when the operation completes successfully or encounters an error. If this function returns a failure code, no event is posted. The {@code requestId} can be used to later refer to the request, such as identifying which request has completed when an ##XrEventDataSpaceShareCompleteFB is posted to the event queue. + This operation is asynchronous and the runtime must post an ##XrEventDataSpaceShareCompleteFB event when the operation completes successfully or encounters an error. The {@code requestId} can be used to later refer to the request, such as identifying which request has completed when an ##XrEventDataSpaceShareCompleteFB is posted to the event queue.
                                                            Valid Usage (Implicit)
                                                              diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity_storage.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity_storage.kt index 70ce83f048..57c30bf144 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity_storage.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity_storage.kt @@ -15,7 +15,7 @@ val FB_spatial_entity_storage = "FBSpatialEntityStorage".nativeClassXR("FB_spati This extension enables spatial entities to be stored and persisted across sessions. If the #SPACE_COMPONENT_TYPE_STORABLE_FB component has been enabled on the spatial entity, application developers may save, load, and erase persisted {@code XrSpace} entities. - In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. + In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. """ IntConstant( @@ -75,7 +75,7 @@ val FB_spatial_entity_storage = "FBSpatialEntityStorage".nativeClassXR("FB_spati ￿ XrAsyncRequestIdFB* requestId);
                                                              Description
                                                              - The #SaveSpaceFB() function persists the spatial entity at the specified location with the specified mode. The runtime must return #ERROR_VALIDATION_FAILURE if ##XrSpaceSaveInfoFB{@code ::space} is #NULL_HANDLE or otherwise invalid. The runtime must return #ERROR_VALIDATION_FAILURE if ##XrSpaceSaveInfoFB{@code ::location} or ##XrSpaceSaveInfoFB{@code ::persistenceMode} is invalid. This operation is asynchronous and the runtime must post an ##XrEventDataSpaceSaveCompleteFB event when the operation completes successfully or encounters an error. If this function returns a failure code, no event is posted. + The #SaveSpaceFB() function persists the spatial entity at the specified location with the specified mode. The runtime must return #ERROR_VALIDATION_FAILURE if ##XrSpaceSaveInfoFB{@code ::space} is #NULL_HANDLE or otherwise invalid. The runtime must return #ERROR_VALIDATION_FAILURE if ##XrSpaceSaveInfoFB{@code ::location} or ##XrSpaceSaveInfoFB{@code ::persistenceMode} is invalid. This operation is asynchronous and the runtime must post an ##XrEventDataSpaceSaveCompleteFB event when the operation completes successfully or encounters an error.
                                                              Valid Usage (Implicit)
                                                                @@ -130,7 +130,7 @@ val FB_spatial_entity_storage = "FBSpatialEntityStorage".nativeClassXR("FB_spati ￿ XrAsyncRequestIdFB* requestId);
                                                                Description
                                                                - The #EraseSpaceFB() function erases a spatial entity from storage at the specified location. The {@code XrSpace} remains valid in the current session until the application destroys it or the session ends. The runtime must return #ERROR_VALIDATION_FAILURE if ##XrSpaceEraseInfoFB{@code ::space} is #NULL_HANDLE or otherwise invalid. The runtime must return #ERROR_VALIDATION_FAILURE if ##XrSpaceEraseInfoFB{@code ::location} is invalid. This operation is asynchronous and the runtime must post an ##XrEventDataSpaceEraseCompleteFB event when the operation completes successfully or encounters an error. If this function returns a failure code, no event is posted. + The #EraseSpaceFB() function erases a spatial entity from storage at the specified location. The {@code XrSpace} remains valid in the current session until the application destroys it or the session ends. The runtime must return #ERROR_VALIDATION_FAILURE if ##XrSpaceEraseInfoFB{@code ::space} is #NULL_HANDLE or otherwise invalid. The runtime must return #ERROR_VALIDATION_FAILURE if ##XrSpaceEraseInfoFB{@code ::location} is invalid. This operation is asynchronous and the runtime must post an ##XrEventDataSpaceEraseCompleteFB event when the operation completes successfully or encounters an error.
                                                                Valid Usage (Implicit)
                                                                  diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity_storage_batch.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity_storage_batch.kt index 63de11c3c6..70f0c2555c 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity_storage_batch.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity_storage_batch.kt @@ -15,7 +15,7 @@ val FB_spatial_entity_storage_batch = "FBSpatialEntityStorageBatch".nativeClassX This extension enables multiple spatial entities at a time to be persisted across sessions. If the #SPACE_COMPONENT_TYPE_STORABLE_FB component has been enabled on the spatial entity, application developers may save and erase {@code XrSpace} entities. - In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. + In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. """ IntConstant( @@ -52,7 +52,7 @@ val FB_spatial_entity_storage_batch = "FBSpatialEntityStorageBatch".nativeClassX ￿ XrAsyncRequestIdFB* requestId);
                                                                  Description
                                                                  - The #SaveSpaceListFB() function persists the specified spatial entities at the specified storage location. The runtime must return #ERROR_VALIDATION_FAILURE if ##XrSpaceSaveInfoFB{@code ::location} is invalid. This operation is asynchronous and the runtime must post an ##XrEventDataSpaceListSaveCompleteFB event when the operation completes successfully or encounters an error. If this function returns a failure code, no event is posted. + The #SaveSpaceListFB() function persists the specified spatial entities at the specified storage location. The runtime must return #ERROR_VALIDATION_FAILURE if ##XrSpaceSaveInfoFB{@code ::location} is invalid. This operation is asynchronous and the runtime must post an ##XrEventDataSpaceListSaveCompleteFB event when the operation completes successfully or encounters an error.
                                                                  Valid Usage (Implicit)
                                                                    diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity_user.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity_user.kt index 3b777e65e9..8208873b95 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity_user.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_spatial_entity_user.kt @@ -15,7 +15,7 @@ val FB_spatial_entity_user = "FBSpatialEntityUser".nativeClassXR("FB_spatial_ent This extension enables creation and management of user objects which can be used by the application to reference a user other than the current user. - In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. + In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. """ IntConstant( diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_swapchain_update_state.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_swapchain_update_state.kt index 1461890dfc..f4bc353bee 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_swapchain_update_state.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_swapchain_update_state.kt @@ -15,7 +15,7 @@ val FB_swapchain_update_state = "FBSwapchainUpdateState".nativeClassXR("FB_swapc This extension enables the application to modify and query specific mutable state associated with a swapchain. - In order to enable the functionality of this extension, the application must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. + In order to enable the functionality of this extension, the application must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. """ IntConstant( diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_swapchain_update_state_opengl_es.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_swapchain_update_state_opengl_es.kt index 304a436127..2b660675bd 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_swapchain_update_state_opengl_es.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_swapchain_update_state_opengl_es.kt @@ -19,7 +19,7 @@ val FB_swapchain_update_state_opengl_es = "FBSwapchainUpdateStateOpenGLES".nativ
                                                                  • On platforms where composition runs in a separate process from the application, swapchains must be created in a cross-process friendly way. In such cases, the texture image memory may be shared between processes, but the texture state may not; and, an explicit mechanism to synchronize this texture state between the application and the compositor is required.
                                                                  - In order to enable the functionality of this extension, the application must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo {@code enabledExtensionNames} parameter as indicated in the extensions section. + In order to enable the functionality of this extension, the application must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo {@code enabledExtensionNames} parameter as indicated in the extensions section. """ IntConstant( diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_swapchain_update_state_vulkan.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_swapchain_update_state_vulkan.kt index 1402bca3ed..c85a39222d 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_swapchain_update_state_vulkan.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_swapchain_update_state_vulkan.kt @@ -19,7 +19,7 @@ val FB_swapchain_update_state_vulkan = "FBSwapchainUpdateStateVulkan".nativeClas
                                                                • On platforms where composition runs in a separate process from the application, swapchains must be created in a cross-process friendly way. In such cases, the texture image memory may be shared between processes, but the texture state may not; and, an explicit mechanism to synchronize this texture state between the application and the compositor is required.
                                                                - In order to enable the functionality of this extension, the application must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo {@code enabledExtensionNames} parameter as indicated in the extensions section. + In order to enable the functionality of this extension, the application must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo {@code enabledExtensionNames} parameter as indicated in the extensions section. """ IntConstant( diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_touch_controller_proximity.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_touch_controller_proximity.kt index bc1632364c..8b03b16d4b 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_touch_controller_proximity.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_touch_controller_proximity.kt @@ -13,7 +13,7 @@ val FB_touch_controller_proximity = "FBTouchControllerProximity".nativeClassXR(" """ The XR_FB_touch_controller_proximity extension. - This extension introduces a new component path, proximity_fb, and adds support for it for the pathname:/interaction_profiles/oculus/touch_controller interaction profile. + This extension introduces a new component path, proximity_fb, and adds support for it for the pathname:oculus/touch_controller interaction profile. """ IntConstant( diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_triangle_mesh.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_triangle_mesh.kt index b5f51c2bb7..5c37f54f0f 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_triangle_mesh.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/FB_triangle_mesh.kt @@ -22,7 +22,7 @@ val FB_triangle_mesh = "FBTriangleMesh".nativeClassXR("FB_triangle_mesh", type =
                                                              • An application to update mesh contents if a mesh is mutable.
                                                              - In order to enable the functionality of this extension, the application must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. + In order to enable the functionality of this extension, the application must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. """ IntConstant( @@ -99,9 +99,9 @@ val FB_triangle_mesh = "FBTriangleMesh".nativeClassXR("FB_triangle_mesh", type =
                                                              Description
                                                              This creates an {@code XrTriangleMeshFB} handle. The returned triangle mesh handle may be subsequently used in API calls. - When the mesh is mutable (the #TRIANGLE_MESH_MUTABLE_BIT_FB bit is set in {@code createInfo→pname}:flags), the created triangle mesh starts in the fb_triangle_mesh_state_undefined_topology state. + When the mesh is mutable (the #TRIANGLE_MESH_MUTABLE_BIT_FB bit is set in {@code createInfo→pname}:flags), the created triangle mesh starts in the fb_triangle_mesh_state_undefined_topology state. - Immutable meshes have no state machine; they may be considered to be in state fb_triangle_mesh_state_ready with no valid edges leaving that state. + Immutable meshes have no state machine; they may be considered to be in state fb_triangle_mesh_state_ready with no valid edges leaving that state.
                                                              Valid Usage (Implicit)
                                                                @@ -209,8 +209,8 @@ val FB_triangle_mesh = "FBTriangleMesh".nativeClassXR("FB_triangle_mesh", type = A mesh must be mutable and in a specific state for the application to modify it through the retrieved vertex buffer.
                                                                Valid Usage (Implicit)
                                                                @@ -264,7 +264,7 @@ val FB_triangle_mesh = "FBTriangleMesh".nativeClassXR("FB_triangle_mesh", type =
                                                                Description
                                                                Retrieves a pointer to the index buffer that defines the topology of the triangle mesh. Each triplet of consecutive elements points to three vertices in the vertex buffer and thus form a triangle. The size of the buffer is ##XrTriangleMeshCreateInfoFB{@code ::indexCount} elements. The buffer location is guaranteed to remain constant over the lifecycle of the mesh object. - A triangle mesh must be mutable and in state fb_triangle_mesh_state_defining_topology or fb_triangle_mesh_state_updating_mesh for the application to modify the contents and/or triangle count in the index buffer retrieved by this function. + A triangle mesh must be mutable and in state fb_triangle_mesh_state_defining_topology or fb_triangle_mesh_state_updating_mesh for the application to modify the contents and/or triangle count in the index buffer retrieved by this function.
                                                                Valid Usage (Implicit)
                                                                  @@ -314,15 +314,15 @@ val FB_triangle_mesh = "FBTriangleMesh".nativeClassXR("FB_triangle_mesh", type = ￿ XrTriangleMeshFB mesh);
                                                                  Description
                                                                  - Begins updating the mesh buffer data. The application must call this function before it makes any modifications to the buffers retrieved by #TriangleMeshGetVertexBufferFB() and #TriangleMeshGetIndexBufferFB(). If only the vertex buffer contents need to be updated, and the mesh is in state fb_triangle_mesh_state_ready, #TriangleMeshBeginVertexBufferUpdateFB() may be used instead. To commit the modifications, the application must call #TriangleMeshEndUpdateFB(). + Begins updating the mesh buffer data. The application must call this function before it makes any modifications to the buffers retrieved by #TriangleMeshGetVertexBufferFB() and #TriangleMeshGetIndexBufferFB(). If only the vertex buffer contents need to be updated, and the mesh is in state fb_triangle_mesh_state_ready, #TriangleMeshBeginVertexBufferUpdateFB() may be used instead. To commit the modifications, the application must call #TriangleMeshEndUpdateFB(). The triangle mesh {@code mesh} must be mutable. The runtime must return #ERROR_VALIDATION_FAILURE if the mesh is immutable. - The triangle mesh {@code mesh} must be in state fb_triangle_mesh_state_undefined_topology or fb_triangle_mesh_state_ready. + The triangle mesh {@code mesh} must be in state fb_triangle_mesh_state_undefined_topology or fb_triangle_mesh_state_ready.
                                                                  Valid Usage (Implicit)
                                                                  @@ -378,9 +378,9 @@ val FB_triangle_mesh = "FBTriangleMesh".nativeClassXR("FB_triangle_mesh", type = The triangle mesh {@code mesh} must be mutable. The runtime must return #ERROR_VALIDATION_FAILURE if the mesh is immutable. - The triangle mesh {@code mesh} must be in state fb_triangle_mesh_state_defining_topology or fb_triangle_mesh_state_updating_mesh. + The triangle mesh {@code mesh} must be in state fb_triangle_mesh_state_defining_topology or fb_triangle_mesh_state_updating_mesh. - A successful call moves {@code mesh} to state fb_triangle_mesh_state_ready. + A successful call moves {@code mesh} to state fb_triangle_mesh_state_ready.
                                                                  Valid Usage (Implicit)
                                                                    @@ -432,13 +432,13 @@ val FB_triangle_mesh = "FBTriangleMesh".nativeClassXR("FB_triangle_mesh", type = ￿ uint32_t* outVertexCount);
                                                                    Description
                                                                    - Begins an update of the vertex positions of a mutable triangle mesh. The vertex count returned through {@code outVertexCount} is defined by the last call to #TriangleMeshEndUpdateFB(). Once the modification is done, call #TriangleMeshEndVertexBufferUpdateFB() to commit the changes and move to state fb_triangle_mesh_state_ready. + Begins an update of the vertex positions of a mutable triangle mesh. The vertex count returned through {@code outVertexCount} is defined by the last call to #TriangleMeshEndUpdateFB(). Once the modification is done, call #TriangleMeshEndVertexBufferUpdateFB() to commit the changes and move to state fb_triangle_mesh_state_ready. The triangle mesh {@code mesh} must be mutable. The runtime must return #ERROR_VALIDATION_FAILURE if the mesh is immutable. - The triangle mesh {@code mesh} must be in state fb_triangle_mesh_state_ready. + The triangle mesh {@code mesh} must be in state fb_triangle_mesh_state_ready. - A successful call moves {@code mesh} to state fb_triangle_mesh_state_updating_vertices. + A successful call moves {@code mesh} to state fb_triangle_mesh_state_updating_vertices.
                                                                    Valid Usage (Implicit)
                                                                      @@ -493,9 +493,9 @@ val FB_triangle_mesh = "FBTriangleMesh".nativeClassXR("FB_triangle_mesh", type = The triangle mesh {@code mesh} must be mutable. The runtime must return #ERROR_VALIDATION_FAILURE if the mesh is immutable. - The triangle mesh {@code mesh} must be in state fb_triangle_mesh_state_updating_vertices. + The triangle mesh {@code mesh} must be in state fb_triangle_mesh_state_updating_vertices. - A successful call moves {@code mesh} to state fb_triangle_mesh_state_ready. + A successful call moves {@code mesh} to state fb_triangle_mesh_state_ready.
                                                                      Valid Usage (Implicit)
                                                                        diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/HTCX_vive_tracker_interaction.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/HTCX_vive_tracker_interaction.kt index b57a7a73da..ff1d92951b 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/HTCX_vive_tracker_interaction.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/HTCX_vive_tracker_interaction.kt @@ -15,7 +15,7 @@ val HTCX_vive_tracker_interaction = "HTCXViveTrackerInteraction".nativeClassXR(" This extension defines a new interaction profile for HTC VIVE Tracker. HTC VIVE Tracker is a generic tracked device which can be attached to anything to make them trackable. For example, it can be attached to user’s hands or feet to track the motion of human body. It can also be attached to any other devices the user wants to track and interact with. - In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo {@code enabledExtensionNames} parameter as indicated in the extensions section. + In order to enable the functionality of this extension, you must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo {@code enabledExtensionNames} parameter as indicated in the extensions section. This extension allows: @@ -43,10 +43,6 @@ val HTCX_vive_tracker_interaction = "HTCXViveTrackerInteraction".nativeClassXR("
                                                                      • {@code right_elbow}
                                                                      • {@code left_knee}
                                                                      • {@code right_knee}
                                                                      • -
                                                                      • {@code left_wrist} (rev: 3)
                                                                      • -
                                                                      • {@code right_wrist} (rev: 3)
                                                                      • -
                                                                      • {@code left_ankle} (rev: 3)
                                                                      • -
                                                                      • {@code right_ankle} (rev: 3)
                                                                      • {@code waist}
                                                                      • {@code chest}
                                                                      • {@code camera}
                                                                      • @@ -57,7 +53,7 @@ val HTCX_vive_tracker_interaction = "HTCXViveTrackerInteraction".nativeClassXR("
                                                                      • Either the persistent path or the role path can be be passed as a subaction path to indicate a specific tracker. For example, ##XrActionCreateInfo{@code ::subactionPath} into function #CreateAction() or ##XrActionSpaceCreateInfo{@code ::subactionPath} into function #CreateActionSpace(). Please see Example 1 below.
                                                                      - As with other controllers, if a VIVE tracker is connected and bound to a top-level user path, or disconnected while bound to top-level user path, the runtime must send event #TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED, and the application may call #GetCurrentInteractionProfile() to check if the tracker is active or not. + As with other controllers, if a VIVE tracker is connected and bound to a top-level user path, or disconnected while bound to top-level user path, the runtime must send event #TYPE_EVENT_DATA_INTERACTION_PROFILE_CHANGED, and the application may call #GetCurrentInteractionProfile() to check if the tracker is active or not. The device that a tracker is attached to probably has a different motion model than what the tracker assumes. The motion tracking might not be as expected in this case. """ @@ -65,7 +61,7 @@ val HTCX_vive_tracker_interaction = "HTCXViveTrackerInteraction".nativeClassXR(" IntConstant( "The extension specification version.", - "HTCX_vive_tracker_interaction_SPEC_VERSION".."3" + "HTCX_vive_tracker_interaction_SPEC_VERSION".."2" ) StringConstant( diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/KHR_composition_layer_depth.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/KHR_composition_layer_depth.kt index a2511bfa64..5e82a72ab2 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/KHR_composition_layer_depth.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/KHR_composition_layer_depth.kt @@ -15,7 +15,7 @@ val KHR_composition_layer_depth = "KHRCompositionLayerDepth".nativeClassXR("KHR_ This extension defines an extra layer type which allows applications to submit depth images along with color images in projection layers, i.e. ##XrCompositionLayerProjection. - The XR runtime may use this information to perform more accurate reprojections taking depth into account. Use of this extension does not affect the order of layer composition as described in Compositing. + The XR runtime may use this information to perform more accurate reprojections taking depth into account. Use of this extension does not affect the order of layer composition as described in Compositing. """ IntConstant( diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/KHR_loader_init.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/KHR_loader_init.kt index 3513cb2fcd..6ac0e3d1a5 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/KHR_loader_init.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/KHR_loader_init.kt @@ -43,7 +43,7 @@ val KHR_loader_init = "KHRLoaderInit".nativeClassXR("KHR_loader_init", type = "i
                                                                      Valid Usage (Implicit)
                                                                      • The {@link KHRLoaderInit XR_KHR_loader_init} extension must be enabled prior to calling #InitializeLoaderKHR()
                                                                      • -
                                                                      • {@code loaderInitInfo} must be a pointer to a valid ##XrLoaderInitInfoBaseHeaderKHR-based structure
                                                                      • +
                                                                      • {@code loaderInitInfo} must be a pointer to a valid ##XrLoaderInitInfoBaseHeaderKHR-based structure. See also: ##XrLoaderInitInfoAndroidKHR
                                                                      Return Codes
                                                                      diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/KHR_opengl_enable.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/KHR_opengl_enable.kt index f327462e87..bd2804ee90 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/KHR_opengl_enable.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/KHR_opengl_enable.kt @@ -19,7 +19,7 @@ val KHR_opengl_enable = "KHROpenGLEnable".nativeClassXR("KHR_opengl_enable", typ This extension provides mechanisms for the application to interact with images acquired by calling #EnumerateSwapchainImages(). - In order to expose the structures, types, and functions of this extension, the application must define #USE_GRAPHICS_API_OPENGL, as well as an appropriate window system define supported by this extension, before including the OpenXR platform header {@code openxr_platform.h}, in all portions of the library or application that include it. The window system defines currently supported by this extension are: + In order to expose the structures, types, and functions of this extension, the application must define #USE_GRAPHICS_API_OPENGL, as well as an appropriate window system define supported by this extension, before including the OpenXR platform header {@code openxr_platform.h}, in all portions of the library or application that include it. The window system defines currently supported by this extension are:
                                                                      • #USE_PLATFORM_WIN32
                                                                      • diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/KHR_opengl_es_enable.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/KHR_opengl_es_enable.kt index 6d4211aae9..a166bc362c 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/KHR_opengl_es_enable.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/KHR_opengl_es_enable.kt @@ -24,7 +24,7 @@ val KHR_opengl_es_enable = "KHROpenGLESEnable".nativeClassXR("KHR_opengl_es_enab In order to expose the structures, types, and functions of this extension, the application source code must define #USE_GRAPHICS_API_OPENGL_ES, as well as an appropriate window system define, before including the OpenXR platform header {@code openxr_platform.h}, in all portions of your library or application that include it. The only window system define currently supported by this extension is:
                                                                          -
                                                                        • #USE_PLATFORM_ANDROID
                                                                        • +
                                                                        • USE_PLATFORM_ANDROID
                                                                        """ diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/KHR_visibility_mask.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/KHR_visibility_mask.kt index 79d51b2a19..d34ce5e545 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/KHR_visibility_mask.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/KHR_visibility_mask.kt @@ -72,7 +72,7 @@ val KHR_visibility_mask = "KHRVisibilityMask".nativeClassXR("KHR_visibility_mask ￿ XrVisibilityMaskKHR* visibilityMask);
                                                                        Description
                                                                        - #GetVisibilityMaskKHR() retrieves the view mask for a given view. This function follows the two-call idiom for filling multiple buffers in a struct. Specifically, if either {@code vertexCapacityInput} or {@code indexCapacityInput} is 0, the runtime must respond as if both fields were set to 0, returning the vertex count and index count through {@code vertexCountOutput} or {@code indexCountOutput} respectively. If a view mask for the specified view isn’t available, the returned vertex and index counts must be 0. + #GetVisibilityMaskKHR() retrieves the view mask for a given view. This function follows the two-call idiom for filling multiple buffers in a struct. Specifically, if either {@code vertexCapacityInput} or {@code indexCapacityInput} is 0, the runtime must respond as if both fields were set to 0, returning the vertex count and index count through {@code vertexCountOutput} or {@code indexCountOutput} respectively. If a view mask for the specified view isn’t available, the returned vertex and index counts must be 0.
                                                                        Valid Usage (Implicit)
                                                                          diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/META_foveation_eye_tracked.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/META_foveation_eye_tracked.kt index a070d69c72..73cb62be70 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/META_foveation_eye_tracked.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/META_foveation_eye_tracked.kt @@ -24,7 +24,7 @@ val META_foveation_eye_tracked = "METAFoveationEyeTracked".nativeClassXR("META_f
                                                                        • An application to request a foveation pattern update from the runtime. As a consequence, runtime knows how to adjust the eye tracking camera exposure start time in order to optimize the total pipeline latency.
                                                                        - In order to enable the functionality of this extension, the application must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. + In order to enable the functionality of this extension, the application must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. """ IntConstant( diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/META_passthrough_color_lut.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/META_passthrough_color_lut.kt deleted file mode 100644 index 9ecb5edf3b..0000000000 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/META_passthrough_color_lut.kt +++ /dev/null @@ -1,225 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * MACHINE GENERATED FILE, DO NOT EDIT - */ -package openxr.templates - -import org.lwjgl.generator.* -import openxr.* - -val META_passthrough_color_lut = "METAPassthroughColorLut".nativeClassXR("META_passthrough_color_lut", type = "instance", postfix = "META") { - documentation = - """ - 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 #CreatePassthroughColorLutMETA() before they can be applied to a Passthrough layer in a call to #PassthroughLayerSetStyleFB() (as a part of ##XrPassthroughColorMapLutMETA or ##XrPassthroughColorMapInterpolatedLutMETA). A color LUT may be applied to multiple Passthrough layers simultaneously. - """ - - IntConstant( - "The extension specification version.", - - "META_passthrough_color_lut_SPEC_VERSION".."1" - ) - - StringConstant( - "The extension name.", - - "META_PASSTHROUGH_COLOR_LUT_EXTENSION_NAME".."XR_META_passthrough_color_lut" - ) - - EnumConstant( - "Extends {@code XrStructureType}.", - - "TYPE_SYSTEM_PASSTHROUGH_COLOR_LUT_PROPERTIES_META".."1000266000", - "TYPE_PASSTHROUGH_COLOR_LUT_CREATE_INFO_META".."1000266001", - "TYPE_PASSTHROUGH_COLOR_LUT_UPDATE_INFO_META".."1000266002", - "TYPE_PASSTHROUGH_COLOR_MAP_LUT_META".."1000266100", - "TYPE_PASSTHROUGH_COLOR_MAP_INTERPOLATED_LUT_META".."1000266101" - ) - - EnumConstant( - "Extends {@code XrObjectType}.", - - "OBJECT_TYPE_PASSTHROUGH_COLOR_LUT_META".."1000266000" - ) - - EnumConstant( - "Extends {@code XrResult}.", - - "ERROR_PASSTHROUGH_COLOR_LUT_BUFFER_SIZE_MISMATCH_META".."-1000266000" - ) - - EnumConstant( - """ - XrPassthroughColorLutChannelsMETA - Color channels - -
                                                                        See Also
                                                                        - ##XrPassthroughColorLutCreateInfoMETA - """, - - "PASSTHROUGH_COLOR_LUT_CHANNELS_RGB_META".."1", - "PASSTHROUGH_COLOR_LUT_CHANNELS_RGBA_META".."2" - ) - - XrResult( - "CreatePassthroughColorLutMETA", - """ - Create a passthrough color LUT. - -
                                                                        C Specification
                                                                        - The #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 ##XrPassthroughColorMapLutMETA and ##XrPassthroughColorMapInterpolatedLutMETA in subsequent calls to #PassthroughLayerSetStyleFB(). - -
                                                                        Valid Usage (Implicit)
                                                                        -
                                                                          -
                                                                        • The {@link METAPassthroughColorLut XR_META_passthrough_color_lut} extension must be enabled prior to calling #CreatePassthroughColorLutMETA()
                                                                        • -
                                                                        • {@code passthrough} must be a valid {@code XrPassthroughFB} handle
                                                                        • -
                                                                        • {@code createInfo} must be a pointer to a valid ##XrPassthroughColorLutCreateInfoMETA structure
                                                                        • -
                                                                        • {@code colorLut} must be a pointer to an {@code XrPassthroughColorLutMETA} handle
                                                                        • -
                                                                        - -
                                                                        Return Codes
                                                                        -
                                                                        -
                                                                        On success, this command returns
                                                                        -
                                                                          -
                                                                        • #SUCCESS
                                                                        • -
                                                                        • #SESSION_LOSS_PENDING
                                                                        • -
                                                                        - -
                                                                        On failure, this command returns
                                                                        -
                                                                          -
                                                                        • #ERROR_FUNCTION_UNSUPPORTED
                                                                        • -
                                                                        • #ERROR_VALIDATION_FAILURE
                                                                        • -
                                                                        • #ERROR_RUNTIME_FAILURE
                                                                        • -
                                                                        • #ERROR_HANDLE_INVALID
                                                                        • -
                                                                        • #ERROR_INSTANCE_LOST
                                                                        • -
                                                                        • #ERROR_SESSION_LOST
                                                                        • -
                                                                        • #ERROR_OUT_OF_MEMORY
                                                                        • -
                                                                        • #ERROR_LIMIT_REACHED
                                                                        • -
                                                                        • #ERROR_PASSTHROUGH_COLOR_LUT_BUFFER_SIZE_MISMATCH_META
                                                                        • -
                                                                        • #ERROR_FEATURE_UNSUPPORTED
                                                                        • -
                                                                        -
                                                                        - -
                                                                        See Also
                                                                        - ##XrPassthroughColorLutCreateInfoMETA - """, - - XrPassthroughFB("passthrough", "the {@code XrPassthroughFB} this color LUT is created for."), - XrPassthroughColorLutCreateInfoMETA.const.p("createInfo", "the ##XrPassthroughColorLutCreateInfoMETA."), - Check(1)..XrPassthroughColorLutMETA.p("colorLut", "the resulting {@code XrPassthroughColorLutMETA}.") - ) - - XrResult( - "DestroyPassthroughColorLutMETA", - """ - Destroy a passthrough color LUT. - -
                                                                        C Specification
                                                                        - The #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, #PassthroughLayerSetStyleFB() has last been called with an instance of ##XrPassthroughColorMapLutMETA or ##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)
                                                                        -
                                                                          -
                                                                        • The {@link METAPassthroughColorLut XR_META_passthrough_color_lut} extension must be enabled prior to calling #DestroyPassthroughColorLutMETA()
                                                                        • -
                                                                        • {@code colorLut} must be a valid {@code XrPassthroughColorLutMETA} handle
                                                                        • -
                                                                        - -
                                                                        Thread Safety
                                                                        -
                                                                          -
                                                                        • Access to {@code colorLut}, and any child handles, must be externally synchronized
                                                                        • -
                                                                        - -
                                                                        Return Codes
                                                                        -
                                                                        -
                                                                        On success, this command returns
                                                                        -
                                                                          -
                                                                        • #SUCCESS
                                                                        • -
                                                                        - -
                                                                        On failure, this command returns
                                                                        -
                                                                          -
                                                                        • #ERROR_FUNCTION_UNSUPPORTED
                                                                        • -
                                                                        • #ERROR_RUNTIME_FAILURE
                                                                        • -
                                                                        • #ERROR_HANDLE_INVALID
                                                                        • -
                                                                        • #ERROR_FEATURE_UNSUPPORTED
                                                                        • -
                                                                        -
                                                                        - """, - - XrPassthroughColorLutMETA("colorLut", "the {@code XrPassthroughColorLutMETA} to be destroyed.") - ) - - XrResult( - "UpdatePassthroughColorLutMETA", - """ - Update a passthrough color LUT. - -
                                                                        C Specification
                                                                        - The #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 #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)
                                                                        -
                                                                          -
                                                                        • The {@link METAPassthroughColorLut XR_META_passthrough_color_lut} extension must be enabled prior to calling #UpdatePassthroughColorLutMETA()
                                                                        • -
                                                                        • {@code colorLut} must be a valid {@code XrPassthroughColorLutMETA} handle
                                                                        • -
                                                                        • {@code updateInfo} must be a pointer to a valid ##XrPassthroughColorLutUpdateInfoMETA structure
                                                                        • -
                                                                        - -
                                                                        Return Codes
                                                                        -
                                                                        -
                                                                        On success, this command returns
                                                                        -
                                                                          -
                                                                        • #SUCCESS
                                                                        • -
                                                                        • #SESSION_LOSS_PENDING
                                                                        • -
                                                                        - -
                                                                        On failure, this command returns
                                                                        -
                                                                          -
                                                                        • #ERROR_FUNCTION_UNSUPPORTED
                                                                        • -
                                                                        • #ERROR_VALIDATION_FAILURE
                                                                        • -
                                                                        • #ERROR_RUNTIME_FAILURE
                                                                        • -
                                                                        • #ERROR_HANDLE_INVALID
                                                                        • -
                                                                        • #ERROR_INSTANCE_LOST
                                                                        • -
                                                                        • #ERROR_SESSION_LOST
                                                                        • -
                                                                        • #ERROR_PASSTHROUGH_COLOR_LUT_BUFFER_SIZE_MISMATCH_META
                                                                        • -
                                                                        • #ERROR_FEATURE_UNSUPPORTED
                                                                        • -
                                                                        -
                                                                        - -
                                                                        See Also
                                                                        - ##XrPassthroughColorLutUpdateInfoMETA - """, - - XrPassthroughColorLutMETA("colorLut", "the {@code XrPassthroughColorLutMETA} to be updated."), - XrPassthroughColorLutUpdateInfoMETA.const.p("updateInfo", "the ##XrPassthroughColorLutUpdateInfoMETA.") - ) -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/META_passthrough_preferences.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/META_passthrough_preferences.kt deleted file mode 100644 index 66d5948e89..0000000000 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/META_passthrough_preferences.kt +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * MACHINE GENERATED FILE, DO NOT EDIT - */ -package openxr.templates - -import org.lwjgl.generator.* -import openxr.* - -val META_passthrough_preferences = "METAPassthroughPreferences".nativeClassXR("META_passthrough_preferences", type = "instance", postfix = "META") { - documentation = - """ - 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}. - """ - - IntConstant( - "The extension specification version.", - - "META_passthrough_preferences_SPEC_VERSION".."1" - ) - - StringConstant( - "The extension name.", - - "META_PASSTHROUGH_PREFERENCES_EXTENSION_NAME".."XR_META_passthrough_preferences" - ) - - EnumConstant( - "Extends {@code XrStructureType}.", - - "TYPE_PASSTHROUGH_PREFERENCES_META".."1000217000" - ) - - EnumConstant( - """ - XrPassthroughPreferenceFlagBitsMETA - XrPassthroughPreferenceFlagBitsMETA - -
                                                                        Flag Descriptions
                                                                        -
                                                                          -
                                                                        • #PASSTHROUGH_PREFERENCE_DEFAULT_TO_ACTIVE_BIT_META — Indicates that the runtime recommends apps to default to a mixed reality experience with passthrough (if supported).
                                                                        • -
                                                                        - """, - - "PASSTHROUGH_PREFERENCE_DEFAULT_TO_ACTIVE_BIT_META".enum(0x00000001) - ) - - XrResult( - "GetPassthroughPreferencesMETA", - """ - Get passthrough preferences. - -
                                                                        C Specification
                                                                        - The #GetPassthroughPreferencesMETA() function is defined as: - -
                                                                        
                                                                        -￿XrResult xrGetPassthroughPreferencesMETA(
                                                                        -￿    XrSession                                   session,
                                                                        -￿    XrPassthroughPreferencesMETA*               preferences);
                                                                        - -
                                                                        Description
                                                                        - An application can call #GetPassthroughPreferencesMETA() to retrieve passthrough-related preferences from the system. - -
                                                                        Valid Usage (Implicit)
                                                                        -
                                                                          -
                                                                        • The {@link METAPassthroughPreferences XR_META_passthrough_preferences} extension must be enabled prior to calling #GetPassthroughPreferencesMETA()
                                                                        • -
                                                                        • {@code session} must be a valid {@code XrSession} handle
                                                                        • -
                                                                        • {@code preferences} must be a pointer to an ##XrPassthroughPreferencesMETA structure
                                                                        • -
                                                                        - -
                                                                        Return Codes
                                                                        -
                                                                        -
                                                                        On success, this command returns
                                                                        -
                                                                          -
                                                                        • #SUCCESS
                                                                        • -
                                                                        • #SESSION_LOSS_PENDING
                                                                        • -
                                                                        - -
                                                                        On failure, this command returns
                                                                        -
                                                                          -
                                                                        • #ERROR_FUNCTION_UNSUPPORTED
                                                                        • -
                                                                        • #ERROR_VALIDATION_FAILURE
                                                                        • -
                                                                        • #ERROR_RUNTIME_FAILURE
                                                                        • -
                                                                        • #ERROR_HANDLE_INVALID
                                                                        • -
                                                                        • #ERROR_INSTANCE_LOST
                                                                        • -
                                                                        • #ERROR_SESSION_LOST
                                                                        • -
                                                                        -
                                                                        - -
                                                                        See Also
                                                                        - ##XrPassthroughPreferencesMETA - """, - - XrSession("session", "the {@code XrSession}."), - XrPassthroughPreferencesMETA.p("preferences", "points to an instance of ##XrPassthroughPreferencesMETA structure, that will be filled with returned information") - ) -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/META_performance_metrics.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/META_performance_metrics.kt index e330475f77..47036e93bb 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/META_performance_metrics.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/META_performance_metrics.kt @@ -35,7 +35,7 @@ val META_performance_metrics = "METAPerformanceMetrics".nativeClassXR("META_perf Note: the measurement intervals of individual performance metrics counters are defined by the OpenXR runtime. The application must not make assumptions or change its behavior at runtime by measuring them. - In order to enable the functionality of this extension, the application must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. + In order to enable the functionality of this extension, the application must pass the name of the extension into #CreateInstance() via the ##XrInstanceCreateInfo{@code ::enabledExtensionNames} parameter as indicated in the extensions section. """ IntConstant( diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/META_virtual_keyboard.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/META_virtual_keyboard.kt deleted file mode 100644 index f37a7d8e03..0000000000 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/META_virtual_keyboard.kt +++ /dev/null @@ -1,709 +0,0 @@ -/* - * Copyright LWJGL. All rights reserved. - * License terms: https://www.lwjgl.org/license - * MACHINE GENERATED FILE, DO NOT EDIT - */ -package openxr.templates - -import org.lwjgl.generator.* -import openxr.* - -val META_virtual_keyboard = "METAVirtualKeyboard".nativeClassXR("META_virtual_keyboard", type = "instance", postfix = "META") { - documentation = - """ - 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. - """ - - IntConstant( - "The extension specification version.", - - "META_virtual_keyboard_SPEC_VERSION".."1" - ) - - StringConstant( - "The extension name.", - - "META_VIRTUAL_KEYBOARD_EXTENSION_NAME".."XR_META_virtual_keyboard" - ) - - EnumConstant( - "XR_MAX_VIRTUAL_KEYBOARD_COMMIT_TEXT_SIZE_META", - - "MAX_VIRTUAL_KEYBOARD_COMMIT_TEXT_SIZE_META".."3992" - ) - - EnumConstant( - "Extends {@code XrObjectType}.", - - "OBJECT_TYPE_VIRTUAL_KEYBOARD_META".."1000219000" - ) - - EnumConstant( - "Extends {@code XrStructureType}.", - - "TYPE_SYSTEM_VIRTUAL_KEYBOARD_PROPERTIES_META".."1000219001", - "TYPE_VIRTUAL_KEYBOARD_CREATE_INFO_META".."1000219002", - "TYPE_VIRTUAL_KEYBOARD_SPACE_CREATE_INFO_META".."1000219003", - "TYPE_VIRTUAL_KEYBOARD_LOCATION_INFO_META".."1000219004", - "TYPE_VIRTUAL_KEYBOARD_MODEL_VISIBILITY_SET_INFO_META".."1000219005", - "TYPE_VIRTUAL_KEYBOARD_ANIMATION_STATE_META".."1000219006", - "TYPE_VIRTUAL_KEYBOARD_MODEL_ANIMATION_STATES_META".."1000219007", - "TYPE_VIRTUAL_KEYBOARD_TEXTURE_DATA_META".."1000219009", - "TYPE_VIRTUAL_KEYBOARD_INPUT_INFO_META".."1000219010", - "TYPE_VIRTUAL_KEYBOARD_TEXT_CONTEXT_CHANGE_INFO_META".."1000219011", - "TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_COMMIT_TEXT_META".."1000219014", - "TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_BACKSPACE_META".."1000219015", - "TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_ENTER_META".."1000219016", - "TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_SHOWN_META".."1000219017", - "TYPE_EVENT_DATA_VIRTUAL_KEYBOARD_HIDDEN_META".."1000219018" - ) - - EnumConstant( - """ - XrVirtualKeyboardLocationTypeMETA - Enum describing keyboard placement types - -
                                                                        Enumerant Descriptions
                                                                        -
                                                                          -
                                                                        • #VIRTUAL_KEYBOARD_LOCATION_TYPE_CUSTOM_META Indicates that the application will provide the position and scale of the keyboard.
                                                                        • -
                                                                        • #VIRTUAL_KEYBOARD_LOCATION_TYPE_FAR_META Indicates that the runtime will set the position and scale for far field keyboard.
                                                                        • -
                                                                        • #VIRTUAL_KEYBOARD_LOCATION_TYPE_DIRECT_META Indicates that the runtime will set the position and scale for direct interaction keyboard.
                                                                        • -
                                                                        - -
                                                                        See Also
                                                                        - ##XrVirtualKeyboardLocationInfoMETA, ##XrVirtualKeyboardSpaceCreateInfoMETA - """, - - "VIRTUAL_KEYBOARD_LOCATION_TYPE_CUSTOM_META".."0", - "VIRTUAL_KEYBOARD_LOCATION_TYPE_FAR_META".."1", - "VIRTUAL_KEYBOARD_LOCATION_TYPE_DIRECT_META".."2" - ) - - EnumConstant( - """ - XrVirtualKeyboardInputSourceMETA - Enum describing keyboard input source types - -
                                                                        Description
                                                                        - - - - - - - - - - - - -
                                                                        EnumDescription
                                                                        #VIRTUAL_KEYBOARD_INPUT_SOURCE_CONTROLLER_RAY_LEFT_METALeft controller ray.
                                                                        #VIRTUAL_KEYBOARD_INPUT_SOURCE_CONTROLLER_RAY_RIGHT_METARight controller ray.
                                                                        #VIRTUAL_KEYBOARD_INPUT_SOURCE_HAND_RAY_LEFT_METALeft hand ray.
                                                                        #VIRTUAL_KEYBOARD_INPUT_SOURCE_HAND_RAY_RIGHT_METARight hand ray.
                                                                        #VIRTUAL_KEYBOARD_INPUT_SOURCE_CONTROLLER_DIRECT_LEFT_METALeft controller direct touch.
                                                                        #VIRTUAL_KEYBOARD_INPUT_SOURCE_CONTROLLER_DIRECT_RIGHT_METARight controller direct touch.
                                                                        #VIRTUAL_KEYBOARD_INPUT_SOURCE_HAND_DIRECT_INDEX_TIP_LEFT_METALeft hand direct touch.
                                                                        #VIRTUAL_KEYBOARD_INPUT_SOURCE_HAND_DIRECT_INDEX_TIP_RIGHT_METARight hand direct touch.
                                                                        - -
                                                                        See Also
                                                                        - ##XrVirtualKeyboardInputInfoMETA - """, - - "VIRTUAL_KEYBOARD_INPUT_SOURCE_CONTROLLER_RAY_LEFT_META".."1", - "VIRTUAL_KEYBOARD_INPUT_SOURCE_CONTROLLER_RAY_RIGHT_META".."2", - "VIRTUAL_KEYBOARD_INPUT_SOURCE_HAND_RAY_LEFT_META".."3", - "VIRTUAL_KEYBOARD_INPUT_SOURCE_HAND_RAY_RIGHT_META".."4", - "VIRTUAL_KEYBOARD_INPUT_SOURCE_CONTROLLER_DIRECT_LEFT_META".."5", - "VIRTUAL_KEYBOARD_INPUT_SOURCE_CONTROLLER_DIRECT_RIGHT_META".."6", - "VIRTUAL_KEYBOARD_INPUT_SOURCE_HAND_DIRECT_INDEX_TIP_LEFT_META".."7", - "VIRTUAL_KEYBOARD_INPUT_SOURCE_HAND_DIRECT_INDEX_TIP_RIGHT_META".."8" - ) - - EnumConstant( - """ - XrVirtualKeyboardInputStateFlagBitsMETA - XrVirtualKeyboardInputStateFlagBitsMETA - -
                                                                        Flag Descriptions
                                                                        -
                                                                          -
                                                                        • #VIRTUAL_KEYBOARD_INPUT_STATE_PRESSED_BIT_META — If the input source is considered 'pressed' at all. Pinch for hands, Primary button for controllers.
                                                                        • -
                                                                        - """, - - "VIRTUAL_KEYBOARD_INPUT_STATE_PRESSED_BIT_META".enum(0x00000001) - ) - - XrResult( - "CreateVirtualKeyboardMETA", - """ - Create a virtual keyboard. - -
                                                                        C Specification
                                                                        - The #CreateVirtualKeyboardMETA() function is defined as: - -
                                                                        
                                                                        -￿XrResult xrCreateVirtualKeyboardMETA(
                                                                        -￿    XrSession                                   session,
                                                                        -￿    const XrVirtualKeyboardCreateInfoMETA*      createInfo,
                                                                        -￿    XrVirtualKeyboardMETA*                      keyboard);
                                                                        - -
                                                                        Description
                                                                        - #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)
                                                                        -
                                                                          -
                                                                        • The {@link METAVirtualKeyboard XR_META_virtual_keyboard} extension must be enabled prior to calling #CreateVirtualKeyboardMETA()
                                                                        • -
                                                                        • {@code session} must be a valid {@code XrSession} handle
                                                                        • -
                                                                        • {@code createInfo} must be a pointer to a valid ##XrVirtualKeyboardCreateInfoMETA structure
                                                                        • -
                                                                        • {@code keyboard} must be a pointer to an {@code XrVirtualKeyboardMETA} handle
                                                                        • -
                                                                        - -
                                                                        Return Codes
                                                                        -
                                                                        -
                                                                        On success, this command returns
                                                                        -
                                                                          -
                                                                        • #SUCCESS
                                                                        • -
                                                                        • #SESSION_LOSS_PENDING
                                                                        • -
                                                                        - -
                                                                        On failure, this command returns
                                                                        -
                                                                          -
                                                                        • #ERROR_FUNCTION_UNSUPPORTED
                                                                        • -
                                                                        • #ERROR_VALIDATION_FAILURE
                                                                        • -
                                                                        • #ERROR_RUNTIME_FAILURE
                                                                        • -
                                                                        • #ERROR_HANDLE_INVALID
                                                                        • -
                                                                        • #ERROR_INSTANCE_LOST
                                                                        • -
                                                                        • #ERROR_SESSION_LOST
                                                                        • -
                                                                        • #ERROR_OUT_OF_MEMORY
                                                                        • -
                                                                        • #ERROR_LIMIT_REACHED
                                                                        • -
                                                                        • #ERROR_FEATURE_UNSUPPORTED
                                                                        • -
                                                                        -
                                                                        - -
                                                                        See Also
                                                                        - ##XrVirtualKeyboardCreateInfoMETA - """, - - XrSession("session", "the {@code XrSession}."), - XrVirtualKeyboardCreateInfoMETA.const.p("createInfo", "the ##XrVirtualKeyboardCreateInfoMETA."), - Check(1)..XrVirtualKeyboardMETA.p("keyboard", "the returned {@code XrVirtualKeyboardMETA}.") - ) - - XrResult( - "DestroyVirtualKeyboardMETA", - """ - Destroy a virtual keyboard. - -
                                                                        C Specification
                                                                        - The #DestroyVirtualKeyboardMETA() function is defined as: - -
                                                                        
                                                                        -￿XrResult xrDestroyVirtualKeyboardMETA(
                                                                        -￿    XrVirtualKeyboardMETA                       keyboard);
                                                                        - -
                                                                        Valid Usage (Implicit)
                                                                        -
                                                                          -
                                                                        • The {@link METAVirtualKeyboard XR_META_virtual_keyboard} extension must be enabled prior to calling #DestroyVirtualKeyboardMETA()
                                                                        • -
                                                                        • {@code keyboard} must be a valid {@code XrVirtualKeyboardMETA} handle
                                                                        • -
                                                                        - -
                                                                        Thread Safety
                                                                        -
                                                                          -
                                                                        • Access to {@code keyboard}, and any child handles, must be externally synchronized
                                                                        • -
                                                                        - -
                                                                        Return Codes
                                                                        -
                                                                        -
                                                                        On success, this command returns
                                                                        -
                                                                          -
                                                                        • #SUCCESS
                                                                        • -
                                                                        - -
                                                                        On failure, this command returns
                                                                        -
                                                                          -
                                                                        • #ERROR_FUNCTION_UNSUPPORTED
                                                                        • -
                                                                        • #ERROR_RUNTIME_FAILURE
                                                                        • -
                                                                        • #ERROR_HANDLE_INVALID
                                                                        • -
                                                                        • #ERROR_FEATURE_UNSUPPORTED
                                                                        • -
                                                                        -
                                                                        - """, - - XrVirtualKeyboardMETA("keyboard", "the {@code XrVirtualKeyboardMETA} handle to the keyboard to destroy.") - ) - - XrResult( - "CreateVirtualKeyboardSpaceMETA", - """ - Create a virtual keyboard space. - -
                                                                        C Specification
                                                                        - The #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 #LocateSpace(). It is important to do this every frame as the runtime is in control of the keyboard’s movement. - - The runtime must return #ERROR_HANDLE_INVALID if {@code session} is different than what is used to create {@code keyboard}. - -
                                                                        Valid Usage (Implicit)
                                                                        -
                                                                          -
                                                                        • The {@link METAVirtualKeyboard XR_META_virtual_keyboard} extension must be enabled prior to calling #CreateVirtualKeyboardSpaceMETA()
                                                                        • -
                                                                        • {@code session} must be a valid {@code XrSession} handle
                                                                        • -
                                                                        • {@code keyboard} must be a valid {@code XrVirtualKeyboardMETA} handle
                                                                        • -
                                                                        • {@code createInfo} must be a pointer to a valid ##XrVirtualKeyboardSpaceCreateInfoMETA structure
                                                                        • -
                                                                        • {@code keyboardSpace} must be a pointer to an {@code XrSpace} handle
                                                                        • -
                                                                        • {@code keyboard} must have been created, allocated, or retrieved from {@code session}
                                                                        • -
                                                                        - -
                                                                        Return Codes
                                                                        -
                                                                        -
                                                                        On success, this command returns
                                                                        -
                                                                          -
                                                                        • #SUCCESS
                                                                        • -
                                                                        • #SESSION_LOSS_PENDING
                                                                        • -
                                                                        - -
                                                                        On failure, this command returns
                                                                        -
                                                                          -
                                                                        • #ERROR_FUNCTION_UNSUPPORTED
                                                                        • -
                                                                        • #ERROR_VALIDATION_FAILURE
                                                                        • -
                                                                        • #ERROR_RUNTIME_FAILURE
                                                                        • -
                                                                        • #ERROR_HANDLE_INVALID
                                                                        • -
                                                                        • #ERROR_INSTANCE_LOST
                                                                        • -
                                                                        • #ERROR_SESSION_LOST
                                                                        • -
                                                                        • #ERROR_OUT_OF_MEMORY
                                                                        • -
                                                                        • #ERROR_LIMIT_REACHED
                                                                        • -
                                                                        • #ERROR_POSE_INVALID
                                                                        • -
                                                                        • #ERROR_FEATURE_UNSUPPORTED
                                                                        • -
                                                                        -
                                                                        - -
                                                                        See Also
                                                                        - ##XrVirtualKeyboardSpaceCreateInfoMETA - """, - - XrSession("session", "the {@code XrSession}."), - XrVirtualKeyboardMETA("keyboard", "the {@code XrVirtualKeyboardMETA} handle."), - XrVirtualKeyboardSpaceCreateInfoMETA.const.p("createInfo", "the ##XrVirtualKeyboardSpaceCreateInfoMETA."), - Check(1)..XrSpace.p("keyboardSpace", "the returned space handle.") - ) - - XrResult( - "SuggestVirtualKeyboardLocationMETA", - """ - Suggest a virtual keyboard location. - -
                                                                        C Specification
                                                                        - The #SuggestVirtualKeyboardLocationMETA() function is defined as: - -
                                                                        
                                                                        -￿XrResult xrSuggestVirtualKeyboardLocationMETA(
                                                                        -￿    XrVirtualKeyboardMETA                       keyboard,
                                                                        -￿    const XrVirtualKeyboardLocationInfoMETA*    locationInfo);
                                                                        - -
                                                                        Valid Usage (Implicit)
                                                                        -
                                                                          -
                                                                        • The {@link METAVirtualKeyboard XR_META_virtual_keyboard} extension must be enabled prior to calling #SuggestVirtualKeyboardLocationMETA()
                                                                        • -
                                                                        • {@code keyboard} must be a valid {@code XrVirtualKeyboardMETA} handle
                                                                        • -
                                                                        • {@code locationInfo} must be a pointer to a valid ##XrVirtualKeyboardLocationInfoMETA structure
                                                                        • -
                                                                        - -
                                                                        Return Codes
                                                                        -
                                                                        -
                                                                        On success, this command returns
                                                                        -
                                                                          -
                                                                        • #SUCCESS
                                                                        • -
                                                                        • #SESSION_LOSS_PENDING
                                                                        • -
                                                                        - -
                                                                        On failure, this command returns
                                                                        -
                                                                          -
                                                                        • #ERROR_FUNCTION_UNSUPPORTED
                                                                        • -
                                                                        • #ERROR_VALIDATION_FAILURE
                                                                        • -
                                                                        • #ERROR_RUNTIME_FAILURE
                                                                        • -
                                                                        • #ERROR_HANDLE_INVALID
                                                                        • -
                                                                        • #ERROR_INSTANCE_LOST
                                                                        • -
                                                                        • #ERROR_SESSION_LOST
                                                                        • -
                                                                        • #ERROR_POSE_INVALID
                                                                        • -
                                                                        • #ERROR_FEATURE_UNSUPPORTED
                                                                        • -
                                                                        -
                                                                        - -
                                                                        See Also
                                                                        - ##XrVirtualKeyboardLocationInfoMETA - """, - - XrVirtualKeyboardMETA("keyboard", "the {@code XrVirtualKeyboardMETA} handle."), - XrVirtualKeyboardLocationInfoMETA.const.p("locationInfo", "the desired ##XrVirtualKeyboardLocationInfoMETA.") - ) - - XrResult( - "GetVirtualKeyboardScaleMETA", - """ - Get virtual keyboard scale. - -
                                                                        C Specification
                                                                        - The #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)
                                                                        -
                                                                          -
                                                                        • The {@link METAVirtualKeyboard XR_META_virtual_keyboard} extension must be enabled prior to calling #GetVirtualKeyboardScaleMETA()
                                                                        • -
                                                                        • {@code keyboard} must be a valid {@code XrVirtualKeyboardMETA} handle
                                                                        • -
                                                                        • {@code scale} must be a pointer to a {@code float} value
                                                                        • -
                                                                        - -
                                                                        Return Codes
                                                                        -
                                                                        -
                                                                        On success, this command returns
                                                                        -
                                                                          -
                                                                        • #SUCCESS
                                                                        • -
                                                                        • #SESSION_LOSS_PENDING
                                                                        • -
                                                                        - -
                                                                        On failure, this command returns
                                                                        -
                                                                          -
                                                                        • #ERROR_FUNCTION_UNSUPPORTED
                                                                        • -
                                                                        • #ERROR_VALIDATION_FAILURE
                                                                        • -
                                                                        • #ERROR_RUNTIME_FAILURE
                                                                        • -
                                                                        • #ERROR_HANDLE_INVALID
                                                                        • -
                                                                        • #ERROR_INSTANCE_LOST
                                                                        • -
                                                                        • #ERROR_SESSION_LOST
                                                                        • -
                                                                        • #ERROR_FEATURE_UNSUPPORTED
                                                                        • -
                                                                        -
                                                                        - """, - - XrVirtualKeyboardMETA("keyboard", "the {@code XrVirtualKeyboardMETA} handle."), - Check(1)..float.p("scale", "a float value of the current scale of the keyboard.") - ) - - XrResult( - "SetVirtualKeyboardModelVisibilityMETA", - """ - Set virtual keyboard model visibility. - -
                                                                        C Specification
                                                                        - The #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 ##XrEventDataVirtualKeyboardShownMETA and ##XrEventDataVirtualKeyboardHiddenMETA events. - -
                                                                        Valid Usage (Implicit)
                                                                        -
                                                                          -
                                                                        • The {@link METAVirtualKeyboard XR_META_virtual_keyboard} extension must be enabled prior to calling #SetVirtualKeyboardModelVisibilityMETA()
                                                                        • -
                                                                        • {@code keyboard} must be a valid {@code XrVirtualKeyboardMETA} handle
                                                                        • -
                                                                        • {@code modelVisibility} must be a pointer to a valid ##XrVirtualKeyboardModelVisibilitySetInfoMETA structure
                                                                        • -
                                                                        - -
                                                                        Return Codes
                                                                        -
                                                                        -
                                                                        On success, this command returns
                                                                        -
                                                                          -
                                                                        • #SUCCESS
                                                                        • -
                                                                        • #SESSION_LOSS_PENDING
                                                                        • -
                                                                        - -
                                                                        On failure, this command returns
                                                                        -
                                                                          -
                                                                        • #ERROR_FUNCTION_UNSUPPORTED
                                                                        • -
                                                                        • #ERROR_VALIDATION_FAILURE
                                                                        • -
                                                                        • #ERROR_RUNTIME_FAILURE
                                                                        • -
                                                                        • #ERROR_HANDLE_INVALID
                                                                        • -
                                                                        • #ERROR_INSTANCE_LOST
                                                                        • -
                                                                        • #ERROR_SESSION_LOST
                                                                        • -
                                                                        • #ERROR_FEATURE_UNSUPPORTED
                                                                        • -
                                                                        -
                                                                        - -
                                                                        See Also
                                                                        - ##XrVirtualKeyboardModelVisibilitySetInfoMETA - """, - - XrVirtualKeyboardMETA("keyboard", "the {@code XrVirtualKeyboardMETA} handle."), - XrVirtualKeyboardModelVisibilitySetInfoMETA.const.p("modelVisibility", "the ##XrVirtualKeyboardModelVisibilitySetInfoMETA.") - ) - - XrResult( - "GetVirtualKeyboardModelAnimationStatesMETA", - """ - Get model animation states. - -
                                                                        C Specification
                                                                        - The #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 ##XrVirtualKeyboardModelAnimationStatesMETA structure. Note that new animations may be added after the runtime processes inputs from #SendVirtualKeyboardInputMETA(). Therefore, after sending new keyboard inputs the application should query the buffer size again before getting any animation data. - -
                                                                        Valid Usage (Implicit)
                                                                        -
                                                                          -
                                                                        • The {@link METAVirtualKeyboard XR_META_virtual_keyboard} extension must be enabled prior to calling #GetVirtualKeyboardModelAnimationStatesMETA()
                                                                        • -
                                                                        • {@code keyboard} must be a valid {@code XrVirtualKeyboardMETA} handle
                                                                        • -
                                                                        • {@code animationStates} must be a pointer to an ##XrVirtualKeyboardModelAnimationStatesMETA structure
                                                                        • -
                                                                        - -
                                                                        Return Codes
                                                                        -
                                                                        -
                                                                        On success, this command returns
                                                                        -
                                                                          -
                                                                        • #SUCCESS
                                                                        • -
                                                                        • #SESSION_LOSS_PENDING
                                                                        • -
                                                                        - -
                                                                        On failure, this command returns
                                                                        -
                                                                          -
                                                                        • #ERROR_FUNCTION_UNSUPPORTED
                                                                        • -
                                                                        • #ERROR_VALIDATION_FAILURE
                                                                        • -
                                                                        • #ERROR_RUNTIME_FAILURE
                                                                        • -
                                                                        • #ERROR_HANDLE_INVALID
                                                                        • -
                                                                        • #ERROR_INSTANCE_LOST
                                                                        • -
                                                                        • #ERROR_SESSION_LOST
                                                                        • -
                                                                        • #ERROR_SIZE_INSUFFICIENT
                                                                        • -
                                                                        • #ERROR_FEATURE_UNSUPPORTED
                                                                        • -
                                                                        -
                                                                        - -
                                                                        See Also
                                                                        - ##XrVirtualKeyboardModelAnimationStatesMETA - """, - - XrVirtualKeyboardMETA("keyboard", "the {@code XrVirtualKeyboardMETA} handle."), - XrVirtualKeyboardModelAnimationStatesMETA.p("animationStates", "the ##XrVirtualKeyboardModelAnimationStatesMETA.") - ) - - XrResult( - "GetVirtualKeyboardDirtyTexturesMETA", - """ - Get model textures that are dirty. - -
                                                                        C Specification
                                                                        - The #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 #SendVirtualKeyboardInputMETA(). Therefore, after sending new keyboard inputs the application should query the buffer size again before getting any texture data. - -
                                                                        Valid Usage (Implicit)
                                                                        -
                                                                          -
                                                                        • The {@link METAVirtualKeyboard XR_META_virtual_keyboard} extension must be enabled prior to calling #GetVirtualKeyboardDirtyTexturesMETA()
                                                                        • -
                                                                        • {@code keyboard} must be a valid {@code XrVirtualKeyboardMETA} handle
                                                                        • -
                                                                        • {@code textureIdCountOutput} must be a pointer to a {@code uint32_t} value
                                                                        • -
                                                                        • If {@code textureIdCapacityInput} is not 0, {@code textureIds} must be a pointer to an array of {@code textureIdCapacityInput} {@code uint64_t} values
                                                                        • -
                                                                        - -
                                                                        Return Codes
                                                                        -
                                                                        -
                                                                        On success, this command returns
                                                                        -
                                                                          -
                                                                        • #SUCCESS
                                                                        • -
                                                                        • #SESSION_LOSS_PENDING
                                                                        • -
                                                                        - -
                                                                        On failure, this command returns
                                                                        -
                                                                          -
                                                                        • #ERROR_FUNCTION_UNSUPPORTED
                                                                        • -
                                                                        • #ERROR_VALIDATION_FAILURE
                                                                        • -
                                                                        • #ERROR_RUNTIME_FAILURE
                                                                        • -
                                                                        • #ERROR_HANDLE_INVALID
                                                                        • -
                                                                        • #ERROR_INSTANCE_LOST
                                                                        • -
                                                                        • #ERROR_SESSION_LOST
                                                                        • -
                                                                        • #ERROR_SIZE_INSUFFICIENT
                                                                        • -
                                                                        • #ERROR_FEATURE_UNSUPPORTED
                                                                        • -
                                                                        -
                                                                        - """, - - XrVirtualKeyboardMETA("keyboard", "the {@code XrVirtualKeyboardMETA} handle."), - AutoSize("textureIds")..uint32_t("textureIdCapacityInput", "the capacity of the {@code textureIds} array, or 0 to indicate a request to retrieve the required capacity."), - Check(1)..uint32_t.p("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."), - nullable..uint64_t.p("textureIds", "the array of texture IDs that need to be updated.") - ) - - XrResult( - "GetVirtualKeyboardTextureDataMETA", - """ - Get the data to update a model texture. - -
                                                                        C Specification
                                                                        - The #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 ##XrVirtualKeyboardTextureDataMETA structure. Note that new texture data may be added after the runtime processes inputs from #SendVirtualKeyboardInputMETA(). Therefore, after sending new keyboard inputs the application should query the buffer size again before getting any texture data. - -
                                                                        Valid Usage (Implicit)
                                                                        -
                                                                          -
                                                                        • The {@link METAVirtualKeyboard XR_META_virtual_keyboard} extension must be enabled prior to calling #GetVirtualKeyboardTextureDataMETA()
                                                                        • -
                                                                        • {@code keyboard} must be a valid {@code XrVirtualKeyboardMETA} handle
                                                                        • -
                                                                        • {@code textureData} must be a pointer to an ##XrVirtualKeyboardTextureDataMETA structure
                                                                        • -
                                                                        - -
                                                                        Return Codes
                                                                        -
                                                                        -
                                                                        On success, this command returns
                                                                        -
                                                                          -
                                                                        • #SUCCESS
                                                                        • -
                                                                        • #SESSION_LOSS_PENDING
                                                                        • -
                                                                        - -
                                                                        On failure, this command returns
                                                                        -
                                                                          -
                                                                        • #ERROR_FUNCTION_UNSUPPORTED
                                                                        • -
                                                                        • #ERROR_VALIDATION_FAILURE
                                                                        • -
                                                                        • #ERROR_RUNTIME_FAILURE
                                                                        • -
                                                                        • #ERROR_HANDLE_INVALID
                                                                        • -
                                                                        • #ERROR_INSTANCE_LOST
                                                                        • -
                                                                        • #ERROR_SESSION_LOST
                                                                        • -
                                                                        • #ERROR_SIZE_INSUFFICIENT
                                                                        • -
                                                                        • #ERROR_FEATURE_UNSUPPORTED
                                                                        • -
                                                                        -
                                                                        - -
                                                                        See Also
                                                                        - ##XrVirtualKeyboardTextureDataMETA - """, - - XrVirtualKeyboardMETA("keyboard", "the {@code XrVirtualKeyboardMETA} handle."), - uint64_t("textureId", "the ID of the texture that the application is querying data for."), - XrVirtualKeyboardTextureDataMETA.p("textureData", "the returned ##XrVirtualKeyboardTextureDataMETA.") - ) - - XrResult( - "SendVirtualKeyboardInputMETA", - """ - Send virtual keyboard input. - -
                                                                        C Specification
                                                                        - The #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)
                                                                        -
                                                                          -
                                                                        • The {@link METAVirtualKeyboard XR_META_virtual_keyboard} extension must be enabled prior to calling #SendVirtualKeyboardInputMETA()
                                                                        • -
                                                                        • {@code keyboard} must be a valid {@code XrVirtualKeyboardMETA} handle
                                                                        • -
                                                                        • {@code info} must be a pointer to a valid ##XrVirtualKeyboardInputInfoMETA structure
                                                                        • -
                                                                        • {@code interactorRootPose} must be a pointer to an ##XrPosef structure
                                                                        • -
                                                                        - -
                                                                        Return Codes
                                                                        -
                                                                        -
                                                                        On success, this command returns
                                                                        -
                                                                          -
                                                                        • #SUCCESS
                                                                        • -
                                                                        • #SESSION_LOSS_PENDING
                                                                        • -
                                                                        - -
                                                                        On failure, this command returns
                                                                        -
                                                                          -
                                                                        • #ERROR_FUNCTION_UNSUPPORTED
                                                                        • -
                                                                        • #ERROR_VALIDATION_FAILURE
                                                                        • -
                                                                        • #ERROR_RUNTIME_FAILURE
                                                                        • -
                                                                        • #ERROR_HANDLE_INVALID
                                                                        • -
                                                                        • #ERROR_INSTANCE_LOST
                                                                        • -
                                                                        • #ERROR_SESSION_LOST
                                                                        • -
                                                                        • #ERROR_POSE_INVALID
                                                                        • -
                                                                        • #ERROR_FEATURE_UNSUPPORTED
                                                                        • -
                                                                        -
                                                                        - -
                                                                        See Also
                                                                        - ##XrPosef, ##XrVirtualKeyboardInputInfoMETA - """, - - XrVirtualKeyboardMETA("keyboard", "the {@code XrVirtualKeyboardMETA} handle."), - XrVirtualKeyboardInputInfoMETA.const.p("info", "the ##XrVirtualKeyboardInputInfoMETA detailing the input being sent to the runtime."), - XrPosef.p("interactorRootPose", "an ##XrPosef defining the root pose of the input source. The runtime may modify this value to aid keyboard input perception.") - ) - - XrResult( - "ChangeVirtualKeyboardTextContextMETA", - """ - Change virtual keyboard text context. - -
                                                                        C Specification
                                                                        - The #ChangeVirtualKeyboardTextContextMETA() function is defined as: - -
                                                                        
                                                                        -￿XrResult xrChangeVirtualKeyboardTextContextMETA(
                                                                        -￿    XrVirtualKeyboardMETA                       keyboard,
                                                                        -￿    const XrVirtualKeyboardTextContextChangeInfoMETA* changeInfo);
                                                                        - -
                                                                        Valid Usage (Implicit)
                                                                        -
                                                                          -
                                                                        • The {@link METAVirtualKeyboard XR_META_virtual_keyboard} extension must be enabled prior to calling #ChangeVirtualKeyboardTextContextMETA()
                                                                        • -
                                                                        • {@code keyboard} must be a valid {@code XrVirtualKeyboardMETA} handle
                                                                        • -
                                                                        • {@code changeInfo} must be a pointer to a valid ##XrVirtualKeyboardTextContextChangeInfoMETA structure
                                                                        • -
                                                                        - -
                                                                        Return Codes
                                                                        -
                                                                        -
                                                                        On success, this command returns
                                                                        -
                                                                          -
                                                                        • #SUCCESS
                                                                        • -
                                                                        • #SESSION_LOSS_PENDING
                                                                        • -
                                                                        - -
                                                                        On failure, this command returns
                                                                        -
                                                                          -
                                                                        • #ERROR_FUNCTION_UNSUPPORTED
                                                                        • -
                                                                        • #ERROR_VALIDATION_FAILURE
                                                                        • -
                                                                        • #ERROR_RUNTIME_FAILURE
                                                                        • -
                                                                        • #ERROR_HANDLE_INVALID
                                                                        • -
                                                                        • #ERROR_INSTANCE_LOST
                                                                        • -
                                                                        • #ERROR_SESSION_LOST
                                                                        • -
                                                                        • #ERROR_FEATURE_UNSUPPORTED
                                                                        • -
                                                                        -
                                                                        - -
                                                                        See Also
                                                                        - ##XrVirtualKeyboardTextContextChangeInfoMETA - """, - - XrVirtualKeyboardMETA("keyboard", "the {@code XrVirtualKeyboardMETA} handle."), - XrVirtualKeyboardTextContextChangeInfoMETA.const.p("changeInfo", "") - ) -} \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_composition_layer_reprojection.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_composition_layer_reprojection.kt index 9ba802a2fc..39c04f50a8 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_composition_layer_reprojection.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_composition_layer_reprojection.kt @@ -53,9 +53,9 @@ val MSFT_composition_layer_reprojection = "MSFTCompositionLayerReprojection".nat
                                                                      • #REPROJECTION_MODE_ORIENTATION_ONLY_MSFT indicates the layer should be stabilized only for changes to orientation, ignoring positional changes. This mode works better for body-locked content that should follow the user as they walk around, such as 360-degree video.
                                                                      - When the application passes #REPROJECTION_MODE_DEPTH_MSFT or #REPROJECTION_MODE_PLANAR_FROM_DEPTH_MSFT mode, it should also provide the depth buffer for the corresponding layer using ##XrCompositionLayerDepthInfoKHR in {@link KHRCompositionLayerDepth XR_KHR_composition_layer_depth} extension. However, if the application does not submit this depth buffer, the runtime must apply a runtime defined fallback reprojection mode, and must not fail the #EndFrame() function because of this missing depth. + When the application passes #REPROJECTION_MODE_DEPTH_MSFT or #REPROJECTION_MODE_PLANAR_FROM_DEPTH_MSFT mode, it should also provide the depth buffer for the corresponding layer using ##XrCompositionLayerDepthInfoKHR in XR_KHR_composition_layer_depth extension. However, if the application does not submit this depth buffer, the runtime must apply a runtime defined fallback reprojection mode, and must not fail the #EndFrame() function because of this missing depth. - When the application passes #REPROJECTION_MODE_PLANAR_MANUAL_MSFT or #REPROJECTION_MODE_ORIENTATION_ONLY_MSFT mode, it should avoid providing a depth buffer for the corresponding layer using ##XrCompositionLayerDepthInfoKHR in {@link KHRCompositionLayerDepth XR_KHR_composition_layer_depth} extension. However, if the application does submit this depth buffer, the runtime must not fail the #EndFrame() function because of this unused depth data. + When the application passes #REPROJECTION_MODE_PLANAR_MANUAL_MSFT or #REPROJECTION_MODE_ORIENTATION_ONLY_MSFT mode, it should avoid providing a depth buffer for the corresponding layer using ##XrCompositionLayerDepthInfoKHR in XR_KHR_composition_layer_depth extension. However, if the application does submit this depth buffer, the runtime must not fail the #EndFrame() function because of this unused depth data.
                                                                      See Also
                                                                      ##XrCompositionLayerReprojectionInfoMSFT, #EnumerateReprojectionModesMSFT() diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_controller_model.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_controller_model.kt index 52504cce69..6a61816791 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_controller_model.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_controller_model.kt @@ -206,7 +206,6 @@ val MSFT_controller_model = "MSFTControllerModel".nativeClassXR("MSFT_controller
                                                                    • #ERROR_INSTANCE_LOST
                                                                    • #ERROR_SESSION_LOST
                                                                    • #ERROR_OUT_OF_MEMORY
                                                                    • -
                                                                    • #ERROR_SIZE_INSUFFICIENT
                                                                    • #ERROR_CONTROLLER_MODEL_KEY_INVALID_MSFT
                                                                    diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_perception_anchor_interop.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_perception_anchor_interop.kt index 2d354effe4..ed5000bbc1 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_perception_anchor_interop.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_perception_anchor_interop.kt @@ -13,7 +13,7 @@ val MSFT_perception_anchor_interop = "MSFTPerceptionAnchorInterop".nativeClassXR """ The XR_MSFT_perception_anchor_interop extension. - This extension supports conversion between {@code XrSpatialAnchorMSFT} and Windows.Perception.Spatial.SpatialAnchor. An application can use this extension to persist spatial anchors on the Windows device through SpatialAnchorStore or transfer spatial anchors between devices through SpatialAnchorTransferManager. + This extension supports conversion between {@code XrSpatialAnchorMSFT} and Windows.Perception.Spatial.SpatialAnchor. An application can use this extension to persist spatial anchors on the Windows device through SpatialAnchorStore or transfer spatial anchors between devices through SpatialAnchorTransferManager. """ IntConstant( @@ -34,7 +34,7 @@ val MSFT_perception_anchor_interop = "MSFTPerceptionAnchorInterop".nativeClassXR Create an {@code XrSpatialAnchorMSFT} from a Windows SpatialAnchor pointer.
                                                                    C Specification
                                                                    - The #CreateSpatialAnchorFromPerceptionAnchorMSFT() function creates a {@code XrSpatialAnchorMSFT} handle from an {@code IUnknown} pointer to Windows.Perception.Spatial.SpatialAnchor. + The #CreateSpatialAnchorFromPerceptionAnchorMSFT() function creates a {@code XrSpatialAnchorMSFT} handle from an {@code IUnknown} pointer to Windows.Perception.Spatial.SpatialAnchor.
                                                                    
                                                                     ￿XrResult xrCreateSpatialAnchorFromPerceptionAnchorMSFT(
                                                                    @@ -43,7 +43,7 @@ val MSFT_perception_anchor_interop = "MSFTPerceptionAnchorInterop".nativeClassXR
                                                                     ￿    XrSpatialAnchorMSFT*                        anchor);
                                                                    Description
                                                                    - The input {@code perceptionAnchor} must support successful {@code QueryInterface} to Windows.Perception.Spatial.SpatialAnchor , otherwise the runtime must return #ERROR_VALIDATION_FAILURE. + The input {@code perceptionAnchor} must support successful {@code QueryInterface} to Windows.Perception.Spatial.SpatialAnchor , otherwise the runtime must return #ERROR_VALIDATION_FAILURE. If the function successfully returned, the output {@code anchor} must be a valid handle. This also increments the refcount of the {@code perceptionAnchor} object. @@ -79,7 +79,7 @@ val MSFT_perception_anchor_interop = "MSFTPerceptionAnchorInterop".nativeClassXR """, XrSession("session", "the specified {@code XrSession}."), - IUnknown.p("perceptionAnchor", "an IUnknown pointer to a Windows.Perception.Spatial.SpatialAnchor object."), + IUnknown.p("perceptionAnchor", "an IUnknown pointer to a Windows.Perception.Spatial.SpatialAnchor object."), Check(1)..XrSpatialAnchorMSFT.p("anchor", "a pointer to {@code XrSpatialAnchorMSFT} to receive the returned anchor handle.") ) @@ -89,7 +89,7 @@ val MSFT_perception_anchor_interop = "MSFTPerceptionAnchorInterop".nativeClassXR Convert an {@code XrSpatialAnchorMSFT} to a Windows SpatialAnchor.
                                                                    C Specification
                                                                    - The #TryGetPerceptionAnchorFromSpatialAnchorMSFT() function converts a {@code XrSpatialAnchorMSFT} handle into an {@code IUnknown} pointer to Windows.Perception.Spatial.SpatialAnchor. + The #TryGetPerceptionAnchorFromSpatialAnchorMSFT() function converts a {@code XrSpatialAnchorMSFT} handle into an {@code IUnknown} pointer to Windows.Perception.Spatial.SpatialAnchor.
                                                                    
                                                                     ￿XrResult xrTryGetPerceptionAnchorFromSpatialAnchorMSFT(
                                                                    @@ -98,9 +98,9 @@ val MSFT_perception_anchor_interop = "MSFTPerceptionAnchorInterop".nativeClassXR
                                                                     ￿    IUnknown**                                  perceptionAnchor);
                                                                    Description
                                                                    - If the runtime can convert the {@code anchor} to a Windows.Perception.Spatial.SpatialAnchor object, this function must return #SUCCESS, and the output {@code IUnknown} in the pointer of {@code perceptionAnchor} must be not {@code NULL}. This also increments the refcount of the object. The application can then use {@code QueryInterface} to get the pointer for Windows.Perception.Spatial.SpatialAnchor object. The application should release the COM pointer after done with the object, or attach it to a smart COM pointer such as {@code winrt::com_ptr}. + If the runtime can convert the {@code anchor} to a Windows.Perception.Spatial.SpatialAnchor object, this function must return #SUCCESS, and the output {@code IUnknown} in the pointer of {@code perceptionAnchor} must be not {@code NULL}. This also increments the refcount of the object. The application can then use {@code QueryInterface} to get the pointer for Windows.Perception.Spatial.SpatialAnchor object. The application should release the COM pointer after done with the object, or attach it to a smart COM pointer such as {@code winrt::com_ptr}. - If the runtime cannot convert the {@code anchor} to a Windows.Perception.Spatial.SpatialAnchor object, the function must return #SUCCESS, and the output {@code IUnknown} in the pointer of {@code perceptionAnchor} must be {@code NULL}. + If the runtime cannot convert the {@code anchor} to a Windows.Perception.Spatial.SpatialAnchor object, the function must return #SUCCESS, and the output {@code IUnknown} in the pointer of {@code perceptionAnchor} must be {@code NULL}.
                                                                    Valid Usage (Implicit)
                                                                      @@ -133,6 +133,6 @@ val MSFT_perception_anchor_interop = "MSFTPerceptionAnchorInterop".nativeClassXR XrSession("session", "the specified {@code XrSession}."), XrSpatialAnchorMSFT("anchor", "a valid {@code XrSpatialAnchorMSFT} handle."), - Check(1)..IUnknown.p.p("perceptionAnchor", "a valid pointer to IUnknown pointer to receive the output Windows.Perception.Spatial.SpatialAnchor object.") + Check(1)..IUnknown.p.p("perceptionAnchor", "a valid pointer to IUnknown pointer to receive the output Windows.Perception.Spatial.SpatialAnchor object.") ) } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_scene_understanding.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_scene_understanding.kt index c8d1acef36..16f921de4e 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_scene_understanding.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_scene_understanding.kt @@ -265,7 +265,7 @@ val MSFT_scene_understanding = "MSFTSceneUnderstanding".nativeClassXR("MSFT_scen
                                                                      C Specification
                                                                      The #EnumerateSceneComputeFeaturesMSFT() function enumerates the supported scene compute features of the given system. - This function follows the two-call idiom for filling the {@code features} array. + This function follows the two-call idiom for filling the {@code features} array.
                                                                      
                                                                       ￿XrResult xrEnumerateSceneComputeFeaturesMSFT(
                                                                      @@ -686,7 +686,7 @@ val MSFT_scene_understanding = "MSFTSceneUnderstanding".nativeClassXR("MSFT_scen
                                                                               Get scene components from a scene.
                                                                       
                                                                               
                                                                      C Specification
                                                                      - Scene components are read from an {@code XrSceneMSFT} using #GetSceneComponentsMSFT() and passing one {@code XrSceneComponentTypeMSFT}. This function follows the two-call idiom for filling multiple buffers in a struct. Different scene component types may have additional properties that can be read by chaining additional structures to ##XrSceneComponentsMSFT. Those additional structures must have an array size that is at least as large as ##XrSceneComponentsMSFT::componentCapacityInput, otherwise the runtime must return #ERROR_SIZE_INSUFFICIENT. + Scene components are read from an {@code XrSceneMSFT} using #GetSceneComponentsMSFT() and passing one {@code XrSceneComponentTypeMSFT}. This function follows the two-call idiom for filling multiple buffers in a struct. Different scene component types may have additional properties that can be read by chaining additional structures to ##XrSceneComponentsMSFT. Those additional structures must have an array size that is at least as large as ##XrSceneComponentsMSFT::componentCapacityInput, otherwise the runtime must return #ERROR_SIZE_INSUFFICIENT.
                                                                      • If #SCENE_COMPONENT_TYPE_OBJECT_MSFT is passed to #GetSceneComponentsMSFT(), then ##XrSceneObjectsMSFT may be included in the ##XrSceneComponentsMSFT{@code ::next} chain.
                                                                      • diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_spatial_anchor.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_spatial_anchor.kt index 4364eb0e0f..74ed96de14 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_spatial_anchor.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_spatial_anchor.kt @@ -64,8 +64,6 @@ val MSFT_spatial_anchor = "MSFTSpatialAnchor".nativeClassXR("MSFT_spatial_anchor
                                                                        Description
                                                                        Creates an {@code XrSpatialAnchorMSFT} handle representing a spatial anchor that will track a fixed location in the physical world over time. That real-world location is specified by the position and orientation of the specified {@code pose} within {@code space} at {@code time}. - The runtime must avoid long blocking operations such as networking or disk operations for #CreateSpatialAnchorMSFT() function. The application may safely use this function in UI thread. Though, the created anchor handle may not be ready immediately for certain operations yet. For example, the corresponding anchor space may not return valid location, or its location may not be successfully saved in anchor store. - If {@code space} cannot be located relative to the environment at the moment of the call to #CreateSpatialAnchorMSFT(), the runtime must return #ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFT. After the anchor is created, the runtime should then adjust its position and orientation over time relative to other spaces so as to maintain maximum alignment to its original real-world location, even if that changes the anchor’s relationship to the original {@code space} used to initialize it. diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_spatial_anchor_persistence.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_spatial_anchor_persistence.kt index 2cd7c905dc..ed44f0ac51 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_spatial_anchor_persistence.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_spatial_anchor_persistence.kt @@ -197,7 +197,7 @@ val MSFT_spatial_anchor_persistence = "MSFTSpatialAnchorPersistence".nativeClass Enumerate the names of currently persisted spatial anchors in the spatial anchor store.
                                                                        C Specification
                                                                        - The application can use the #EnumeratePersistedSpatialAnchorNamesMSFT() function to enumerate the names of all spatial anchors currently persisted in the spatial anchor store for this application. This function follows the two-call idiom for filling the {@code spatialAnchorNames}. + The application can use the #EnumeratePersistedSpatialAnchorNamesMSFT() function to enumerate the names of all spatial anchors currently persisted in the spatial anchor store for this application. This function follows the two-call idiom for filling the {@code spatialAnchorNames}.
                                                                        
                                                                         ￿XrResult xrEnumeratePersistedSpatialAnchorNamesMSFT(
                                                                        diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_spatial_graph_bridge.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_spatial_graph_bridge.kt
                                                                        index 7f8b27d1ff..f5cb78f360 100644
                                                                        --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_spatial_graph_bridge.kt
                                                                        +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/MSFT_spatial_graph_bridge.kt
                                                                        @@ -126,7 +126,7 @@ val MSFT_spatial_graph_bridge = "MSFTSpatialGraphBridge".nativeClassXR("MSFT_spa
                                                                                 Try create spatial graph static node binding.
                                                                         
                                                                                 
                                                                        C Specification
                                                                        - The #TryCreateSpatialGraphStaticNodeBindingMSFT() function tries to create a binding to the best spatial graph static node relative to the given location and returns an {@code XrSpatialGraphNodeBindingMSFT} handle. + The #TryCreateSpatialGraphStaticNodeBindingMSFT() function tries to create a spatial graph static node binding nearest to the given location and returns an {@code XrSpatialGraphNodeBindingMSFT} handle.
                                                                        
                                                                         ￿XrResult xrTryCreateSpatialGraphStaticNodeBindingMSFT(
                                                                        @@ -137,8 +137,6 @@ val MSFT_spatial_graph_bridge = "MSFTSpatialGraphBridge".nativeClassXR("MSFT_spa
                                                                                 
                                                                        Description
                                                                        The runtime may return #SUCCESS and set {@code nodeBinding} to #NULL_HANDLE if it is unable to create a spatial graph static node binding. This may happen when the given {@code XrSpace} cannot be properly tracked at the moment. The application can retry creating the {@code XrSpatialGraphNodeBindingMSFT} handle again after a reasonable period of time when tracking is regained. - The #TryCreateSpatialGraphStaticNodeBindingMSFT() function may be a slow operation and therefore should be invoked from a non-timing critical thread. -
                                                                        Valid Usage (Implicit)
                                                                        • The {@link MSFTSpatialGraphBridge XR_MSFT_spatial_graph_bridge} extension must be enabled prior to calling #TryCreateSpatialGraphStaticNodeBindingMSFT()
                                                                        • diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/OCULUS_audio_device_guid.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/OCULUS_audio_device_guid.kt index 1afdb4a952..22714b8e08 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/OCULUS_audio_device_guid.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/OCULUS_audio_device_guid.kt @@ -77,7 +77,7 @@ val OCULUS_audio_device_guid = "OCULUSAudioDeviceGuid".nativeClassXR("OCULUS_aud """, XrInstance("instance", "the {@code XrInstance} to query the audio device state in."), - Check("XR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUS")..wchar_t.p("buffer", "a fixed size buffer which will contain the audio device GUID. The format of this data matches the IMMDevice::GetId API.") + Check("XR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUS")..wchar_t.p("buffer", "a fixed size buffer which will contain the audio device GUID. The format of this data matches the IMMDevice::GetId API.") ) XrResult( @@ -121,6 +121,6 @@ val OCULUS_audio_device_guid = "OCULUSAudioDeviceGuid".nativeClassXR("OCULUS_aud """, XrInstance("instance", "the {@code XrInstance} to query the audio device state in."), - Check("XR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUS")..wchar_t.p("buffer", "a fixed size buffer which will contain the audio device GUID. The format of this data matches the IMMDevice::GetId API.") + Check("XR_MAX_AUDIO_DEVICE_STR_SIZE_OCULUS")..wchar_t.p("buffer", "a fixed size buffer which will contain the audio device GUID. The format of this data matches the IMMDevice::GetId API.") ) } \ No newline at end of file diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/VARJO_composition_layer_depth_test.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/VARJO_composition_layer_depth_test.kt index 1a80cfcf63..5c5ffedba8 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/VARJO_composition_layer_depth_test.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/VARJO_composition_layer_depth_test.kt @@ -15,7 +15,7 @@ val VARJO_composition_layer_depth_test = "VARJOCompositionLayerDepthTest".native This extension enables depth-based layer composition inside the compositor. - Core OpenXR specifies that layer compositing must happen in the layer submission order (as described in Compositing). However, an application may want to composite the final image against the other layers based on depth information for proper occlusion. Layers can now provide depth information that will be used to calculate occlusion between those layers, as well as with the environment depth estimator ({@link VARJOEnvironmentDepthEstimation XR_VARJO_environment_depth_estimation}) when enabled. + Core OpenXR specifies that layer compositing must happen in the layer submission order (as described in Compositing). However, an application may want to composite the final image against the other layers based on depth information for proper occlusion. Layers can now provide depth information that will be used to calculate occlusion between those layers, as well as with the environment depth estimator ({@link VARJOEnvironmentDepthEstimation XR_VARJO_environment_depth_estimation}) when enabled. This extension defines a new type, ##XrCompositionLayerDepthTestVARJO, which can be chained to ##XrCompositionLayerProjection in order to activate this functionality. An application must also specify a range where depth testing will happen, potentially covering only a subset of the full depth range. """ diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/VARJO_marker_tracking.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/VARJO_marker_tracking.kt index 9e03d4f100..08ee5fc96c 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/VARJO_marker_tracking.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/VARJO_marker_tracking.kt @@ -15,7 +15,7 @@ val VARJO_marker_tracking = "VARJOMarkerTracking".nativeClassXR("VARJO_marker_tr Varjo Markers are physical markers tracked by the video cameras of the HMD. Different types of markers can be used for different purposes. As an example, Varjo Markers can be used as cheap replacements for electronic trackers. The cost per printed tracker is significantly lower and the markers require no power to function. - This extension provides the tracking interface to a set of marker types and sizes. Markers can be printed out from the PDF documents and instructions freely available at https://developer.varjo.com/docs/get-started/varjo-markers\#printing-varjo-markers. Note that the printed marker must have the exact physical size for its ID. + This extension provides the tracking interface to a set of marker types and sizes. Markers can be printed out from the PDF documents and instructions freely available at https://developer.varjo.com/docs/get-started/varjo-markers\#printing-varjo-markers. Note that the printed marker must have the exact physical size for its ID. Object markers are used to track static or dynamic objects in the user environment. You may use object markers in both XR and VR applications. Each marker has a unique ID, and you must not use the same physical marker more than once in any given environment. For added precision, an application may use multiple markers to track a single object. For example, you could track a monitor by placing a marker in each corner. diff --git a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/XR10.kt b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/XR10.kt index ca37a3c380..c79a034427 100644 --- a/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/XR10.kt +++ b/modules/lwjgl/openxr/src/templates/kotlin/openxr/templates/XR10.kt @@ -96,8 +96,6 @@ val XR10 = "XR10".nativeClass(Module.OPENXR, "XR10", prefix = "XR", binding = XR #ERROR_LOCALIZED_NAME_INVALIDThe localized name provided was invalid. #ERROR_GRAPHICS_REQUIREMENTS_CALL_MISSINGThe {@code xrGetGraphicsRequirements}* call was not made before calling {@code xrCreateSession}. #ERROR_RUNTIME_UNAVAILABLEThe loader was unable to find or load a runtime. - #ERROR_ANDROID_THREAD_SETTINGS_ID_INVALID_KHRxrSetAndroidApplicationThreadKHR failed as thread id is invalid. (Added by the {@link KHRAndroidThreadSettings XR_KHR_android_thread_settings} extension) - #ERROR_ANDROID_THREAD_SETTINGS_FAILURE_KHRxrSetAndroidApplicationThreadKHR failed setting the thread attributes/priority. (Added by the {@link KHRAndroidThreadSettings XR_KHR_android_thread_settings} extension) #ERROR_CREATE_SPATIAL_ANCHOR_FAILED_MSFTSpatial anchor could not be created at that location. (Added by the {@link MSFTSpatialAnchor XR_MSFT_spatial_anchor} extension) #ERROR_SECONDARY_VIEW_CONFIGURATION_TYPE_NOT_ENABLED_MSFTThe secondary view configuration was not enabled when creating the session. (Added by the {@link MSFTSecondaryViewConfiguration XR_MSFT_secondary_view_configuration} extension) #ERROR_CONTROLLER_MODEL_KEY_INVALID_MSFTThe controller model key is invalid. (Added by the {@link MSFTControllerModel XR_MSFT_controller_model} extension) @@ -205,7 +203,7 @@ val XR10 = "XR10".nativeClass(Module.OPENXR, "XR10", prefix = "XR", binding = XR Note that all extension enums begin at the extension enum base of 110 (base 10). Each extension is assigned a block of 1000 enums, starting at the enum base and arranged by the extension’s index.
                                                                          See Also
                                                                          - ##XrActionCreateInfo, ##XrActionSetCreateInfo, ##XrActionSpaceCreateInfo, ##XrActionStateBoolean, ##XrActionStateFloat, ##XrActionStateGetInfo, ##XrActionStatePose, ##XrActionStateVector2f, ##XrActionsSyncInfo, ##XrActiveActionSetPrioritiesEXT, ##XrAndroidSurfaceSwapchainCreateInfoFB, ##XrApiLayerProperties, ##XrBaseInStructure, ##XrBaseOutStructure, ##XrBindingModificationBaseHeaderKHR, ##XrBindingModificationsKHR, ##XrBodyJointLocationsFB, ##XrBodyJointsLocateInfoFB, ##XrBodySkeletonFB, ##XrBodyTrackerCreateInfoFB, ##XrBoundSourcesForActionEnumerateInfo, ##XrBoundary2DFB, ##XrCompositionLayerAlphaBlendFB, ##XrCompositionLayerBaseHeader, ##XrCompositionLayerColorScaleBiasKHR, ##XrCompositionLayerCubeKHR, ##XrCompositionLayerCylinderKHR, ##XrCompositionLayerDepthInfoKHR, ##XrCompositionLayerDepthTestFB, ##XrCompositionLayerDepthTestVARJO, ##XrCompositionLayerEquirect2KHR, ##XrCompositionLayerEquirectKHR, ##XrCompositionLayerImageLayoutFB, ##XrCompositionLayerPassthroughFB, ##XrCompositionLayerPassthroughHTC, ##XrCompositionLayerProjection, ##XrCompositionLayerProjectionView, ##XrCompositionLayerQuad, ##XrCompositionLayerReprojectionInfoMSFT, ##XrCompositionLayerReprojectionPlaneOverrideMSFT, ##XrCompositionLayerSecureContentFB, ##XrCompositionLayerSettingsFB, ##XrCompositionLayerSpaceWarpInfoFB, ##XrControllerModelKeyStateMSFT, ##XrControllerModelNodePropertiesMSFT, ##XrControllerModelNodeStateMSFT, ##XrControllerModelPropertiesMSFT, ##XrControllerModelStateMSFT, ##XrCoordinateSpaceCreateInfoML, ##XrDebugUtilsLabelEXT, ##XrDebugUtilsMessengerCallbackDataEXT, ##XrDebugUtilsMessengerCreateInfoEXT, ##XrDebugUtilsObjectNameInfoEXT, ##XrDevicePcmSampleRateStateFB, ##XrDigitalLensControlALMALENCE, ##XrEventDataBaseHeader, ##XrEventDataBuffer, ##XrEventDataDisplayRefreshRateChangedFB, ##XrEventDataEventsLost, ##XrEventDataInstanceLossPending, ##XrEventDataInteractionProfileChanged, ##XrEventDataMainSessionVisibilityChangedEXTX, ##XrEventDataMarkerTrackingUpdateVARJO, ##XrEventDataPassthroughStateChangedFB, ##XrEventDataPerfSettingsEXT, ##XrEventDataReferenceSpaceChangePending, ##XrEventDataSceneCaptureCompleteFB, ##XrEventDataSessionStateChanged, ##XrEventDataSpaceEraseCompleteFB, ##XrEventDataSpaceListSaveCompleteFB, ##XrEventDataSpaceQueryCompleteFB, ##XrEventDataSpaceQueryResultsAvailableFB, ##XrEventDataSpaceSaveCompleteFB, ##XrEventDataSpaceSetStatusCompleteFB, ##XrEventDataSpaceShareCompleteFB, ##XrEventDataSpatialAnchorCreateCompleteFB, ##XrEventDataVisibilityMaskChangedKHR, ##XrEventDataViveTrackerConnectedHTCX, ##XrExtensionProperties, ##XrExternalCameraOCULUS, ##XrEyeGazeSampleTimeEXT, ##XrEyeGazesFB, ##XrEyeGazesInfoFB, ##XrEyeTrackerCreateInfoFB, ##XrFaceExpressionInfoFB, ##XrFaceExpressionWeightsFB, ##XrFaceTrackerCreateInfoFB, ##XrFacialExpressionsHTC, ##XrFacialTrackerCreateInfoHTC, ##XrForceFeedbackCurlApplyLocationsMNDX, ##XrFoveatedViewConfigurationViewVARJO, ##XrFoveationApplyInfoHTC, ##XrFoveationCustomModeInfoHTC, ##XrFoveationDynamicModeInfoHTC, ##XrFoveationEyeTrackedProfileCreateInfoMETA, ##XrFoveationEyeTrackedStateMETA, ##XrFoveationLevelProfileCreateInfoFB, ##XrFoveationProfileCreateInfoFB, ##XrFrameBeginInfo, ##XrFrameEndInfo, ##XrFrameEndInfoML, ##XrFrameState, ##XrFrameWaitInfo, ##XrGeometryInstanceCreateInfoFB, ##XrGeometryInstanceTransformFB, ##XrGlobalDimmerFrameEndInfoML, ##XrGraphicsBindingD3D11KHR, ##XrGraphicsBindingD3D12KHR, ##XrGraphicsBindingEGLMNDX, ##XrGraphicsBindingOpenGLESAndroidKHR, ##XrGraphicsBindingOpenGLWaylandKHR, ##XrGraphicsBindingOpenGLWin32KHR, ##XrGraphicsBindingOpenGLXcbKHR, ##XrGraphicsBindingOpenGLXlibKHR, ##XrGraphicsBindingVulkanKHR, ##XrGraphicsRequirementsD3D11KHR, ##XrGraphicsRequirementsD3D12KHR, ##XrGraphicsRequirementsOpenGLESKHR, ##XrGraphicsRequirementsOpenGLKHR, ##XrGraphicsRequirementsVulkanKHR, ##XrHandJointLocationsEXT, ##XrHandJointVelocitiesEXT, ##XrHandJointsLocateInfoEXT, ##XrHandJointsMotionRangeInfoEXT, ##XrHandMeshMSFT, ##XrHandMeshSpaceCreateInfoMSFT, ##XrHandMeshUpdateInfoMSFT, ##XrHandPoseTypeInfoMSFT, ##XrHandTrackerCreateInfoEXT, ##XrHandTrackingAimStateFB, ##XrHandTrackingCapsulesStateFB, ##XrHandTrackingMeshFB, ##XrHandTrackingScaleFB, ##XrHapticActionInfo, ##XrHapticAmplitudeEnvelopeVibrationFB, ##XrHapticBaseHeader, ##XrHapticPcmVibrationFB, ##XrHapticVibration, ##XrHolographicWindowAttachmentMSFT, ##XrInputSourceLocalizedNameGetInfo, ##XrInstanceCreateInfo, ##XrInstanceCreateInfoAndroidKHR, ##XrInstanceProperties, ##XrInteractionProfileAnalogThresholdVALVE, ##XrInteractionProfileDpadBindingEXT, ##XrInteractionProfileState, ##XrInteractionProfileSuggestedBinding, ##XrKeyboardSpaceCreateInfoFB, ##XrKeyboardTrackingQueryFB, ##XrLoaderInitInfoAndroidKHR, ##XrLoaderInitInfoBaseHeaderKHR, ##XrLocalDimmingFrameEndInfoMETA, ##XrMarkerSpaceCreateInfoVARJO, ##XrNewSceneComputeInfoMSFT, ##XrPassthroughBrightnessContrastSaturationFB, ##XrPassthroughColorHTC, ##XrPassthroughColorMapMonoToMonoFB, ##XrPassthroughColorMapMonoToRgbaFB, ##XrPassthroughCreateInfoFB, ##XrPassthroughCreateInfoHTC, ##XrPassthroughKeyboardHandsIntensityFB, ##XrPassthroughLayerCreateInfoFB, ##XrPassthroughMeshTransformInfoHTC, ##XrPassthroughStyleFB, ##XrPerformanceMetricsCounterMETA, ##XrPerformanceMetricsStateMETA, ##XrReferenceSpaceCreateInfo, ##XrRenderModelBufferFB, ##XrRenderModelCapabilitiesRequestFB, ##XrRenderModelLoadInfoFB, ##XrRenderModelPathInfoFB, ##XrRenderModelPropertiesFB, ##XrRoomLayoutFB, ##XrSceneCaptureRequestInfoFB, ##XrSceneComponentLocationsMSFT, ##XrSceneComponentParentFilterInfoMSFT, ##XrSceneComponentsGetInfoMSFT, ##XrSceneComponentsLocateInfoMSFT, ##XrSceneComponentsMSFT, ##XrSceneCreateInfoMSFT, ##XrSceneDeserializeInfoMSFT, ##XrSceneMeshBuffersGetInfoMSFT, ##XrSceneMeshBuffersMSFT, ##XrSceneMeshIndicesUint16MSFT, ##XrSceneMeshIndicesUint32MSFT, ##XrSceneMeshVertexBufferMSFT, ##XrSceneMeshesMSFT, ##XrSceneObjectTypesFilterInfoMSFT, ##XrSceneObjectsMSFT, ##XrSceneObserverCreateInfoMSFT, ##XrScenePlaneAlignmentFilterInfoMSFT, ##XrScenePlanesMSFT, ##XrSecondaryViewConfigurationFrameEndInfoMSFT, ##XrSecondaryViewConfigurationFrameStateMSFT, ##XrSecondaryViewConfigurationLayerInfoMSFT, ##XrSecondaryViewConfigurationSessionBeginInfoMSFT, ##XrSecondaryViewConfigurationStateMSFT, ##XrSecondaryViewConfigurationSwapchainCreateInfoMSFT, ##XrSemanticLabelsFB, ##XrSerializedSceneFragmentDataGetInfoMSFT, ##XrSessionActionSetsAttachInfo, ##XrSessionBeginInfo, ##XrSessionCreateInfo, ##XrSessionCreateInfoOverlayEXTX, ##XrSpaceComponentFilterInfoFB, ##XrSpaceComponentStatusFB, ##XrSpaceComponentStatusSetInfoFB, ##XrSpaceContainerFB, ##XrSpaceEraseInfoFB, ##XrSpaceFilterInfoBaseHeaderFB, ##XrSpaceListSaveInfoFB, ##XrSpaceLocation, ##XrSpaceQueryInfoBaseHeaderFB, ##XrSpaceQueryInfoFB, ##XrSpaceQueryResultsFB, ##XrSpaceSaveInfoFB, ##XrSpaceShareInfoFB, ##XrSpaceStorageLocationFilterInfoFB, ##XrSpaceUserCreateInfoFB, ##XrSpaceUuidFilterInfoFB, ##XrSpaceVelocity, ##XrSpatialAnchorCreateInfoFB, ##XrSpatialAnchorCreateInfoMSFT, ##XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT, ##XrSpatialAnchorPersistenceInfoMSFT, ##XrSpatialAnchorSpaceCreateInfoMSFT, ##XrSpatialGraphNodeBindingPropertiesGetInfoMSFT, ##XrSpatialGraphNodeBindingPropertiesMSFT, ##XrSpatialGraphNodeSpaceCreateInfoMSFT, ##XrSpatialGraphStaticNodeBindingCreateInfoMSFT, ##XrSwapchainCreateInfo, ##XrSwapchainCreateInfoFoveationFB, ##XrSwapchainImageAcquireInfo, ##XrSwapchainImageBaseHeader, ##XrSwapchainImageD3D11KHR, ##XrSwapchainImageD3D12KHR, ##XrSwapchainImageFoveationVulkanFB, ##XrSwapchainImageOpenGLESKHR, ##XrSwapchainImageOpenGLKHR, ##XrSwapchainImageReleaseInfo, ##XrSwapchainImageVulkanKHR, ##XrSwapchainImageWaitInfo, ##XrSwapchainStateAndroidSurfaceDimensionsFB, ##XrSwapchainStateBaseHeaderFB, ##XrSwapchainStateFoveationFB, ##XrSwapchainStateSamplerOpenGLESFB, ##XrSwapchainStateSamplerVulkanFB, ##XrSystemBodyTrackingPropertiesFB, ##XrSystemColorSpacePropertiesFB, ##XrSystemEyeGazeInteractionPropertiesEXT, ##XrSystemEyeTrackingPropertiesFB, ##XrSystemFaceTrackingPropertiesFB, ##XrSystemFacialTrackingPropertiesHTC, ##XrSystemForceFeedbackCurlPropertiesMNDX, ##XrSystemFoveatedRenderingPropertiesVARJO, ##XrSystemFoveationEyeTrackedPropertiesMETA, ##XrSystemGetInfo, ##XrSystemHandTrackingMeshPropertiesMSFT, ##XrSystemHandTrackingPropertiesEXT, ##XrSystemHeadsetIdPropertiesMETA, ##XrSystemKeyboardTrackingPropertiesFB, ##XrSystemMarkerTrackingPropertiesVARJO, ##XrSystemPassthroughProperties2FB, ##XrSystemPassthroughPropertiesFB, ##XrSystemProperties, ##XrSystemRenderModelPropertiesFB, ##XrSystemSpaceWarpPropertiesFB, ##XrSystemSpatialEntityPropertiesFB, ##XrTriangleMeshCreateInfoFB, ##XrView, ##XrViewConfigurationDepthRangeEXT, ##XrViewConfigurationProperties, ##XrViewConfigurationView, ##XrViewConfigurationViewFovEPIC, ##XrViewLocateFoveatedRenderingVARJO, ##XrViewLocateInfo, ##XrViewState, ##XrVisibilityMaskKHR, ##XrVisualMeshComputeLodInfoMSFT, ##XrViveTrackerPathsHTCX, ##XrVulkanDeviceCreateInfoKHR, ##XrVulkanGraphicsDeviceGetInfoKHR, ##XrVulkanInstanceCreateInfoKHR, ##XrVulkanSwapchainCreateInfoMETA, ##XrVulkanSwapchainFormatListCreateInfoKHR, #StructureTypeToString() + ##XrActionCreateInfo, ##XrActionSetCreateInfo, ##XrActionSpaceCreateInfo, ##XrActionStateBoolean, ##XrActionStateFloat, ##XrActionStateGetInfo, ##XrActionStatePose, ##XrActionStateVector2f, ##XrActionsSyncInfo, ##XrActiveActionSetPrioritiesEXT, ##XrApiLayerProperties, ##XrBaseInStructure, ##XrBaseOutStructure, ##XrBindingModificationBaseHeaderKHR, ##XrBindingModificationsKHR, ##XrBodyJointLocationsFB, ##XrBodyJointsLocateInfoFB, ##XrBodySkeletonFB, ##XrBodyTrackerCreateInfoFB, ##XrBoundSourcesForActionEnumerateInfo, ##XrBoundary2DFB, ##XrCompositionLayerAlphaBlendFB, ##XrCompositionLayerBaseHeader, ##XrCompositionLayerColorScaleBiasKHR, ##XrCompositionLayerCubeKHR, ##XrCompositionLayerCylinderKHR, ##XrCompositionLayerDepthInfoKHR, ##XrCompositionLayerDepthTestFB, ##XrCompositionLayerDepthTestVARJO, ##XrCompositionLayerEquirect2KHR, ##XrCompositionLayerEquirectKHR, ##XrCompositionLayerImageLayoutFB, ##XrCompositionLayerPassthroughFB, ##XrCompositionLayerPassthroughHTC, ##XrCompositionLayerProjection, ##XrCompositionLayerProjectionView, ##XrCompositionLayerQuad, ##XrCompositionLayerReprojectionInfoMSFT, ##XrCompositionLayerReprojectionPlaneOverrideMSFT, ##XrCompositionLayerSecureContentFB, ##XrCompositionLayerSettingsFB, ##XrCompositionLayerSpaceWarpInfoFB, ##XrControllerModelKeyStateMSFT, ##XrControllerModelNodePropertiesMSFT, ##XrControllerModelNodeStateMSFT, ##XrControllerModelPropertiesMSFT, ##XrControllerModelStateMSFT, ##XrCoordinateSpaceCreateInfoML, ##XrDebugUtilsLabelEXT, ##XrDebugUtilsMessengerCallbackDataEXT, ##XrDebugUtilsMessengerCreateInfoEXT, ##XrDebugUtilsObjectNameInfoEXT, ##XrDevicePcmSampleRateStateFB, ##XrDigitalLensControlALMALENCE, ##XrEventDataBaseHeader, ##XrEventDataBuffer, ##XrEventDataDisplayRefreshRateChangedFB, ##XrEventDataEventsLost, ##XrEventDataInstanceLossPending, ##XrEventDataInteractionProfileChanged, ##XrEventDataMainSessionVisibilityChangedEXTX, ##XrEventDataMarkerTrackingUpdateVARJO, ##XrEventDataPassthroughStateChangedFB, ##XrEventDataPerfSettingsEXT, ##XrEventDataReferenceSpaceChangePending, ##XrEventDataSceneCaptureCompleteFB, ##XrEventDataSessionStateChanged, ##XrEventDataSpaceEraseCompleteFB, ##XrEventDataSpaceListSaveCompleteFB, ##XrEventDataSpaceQueryCompleteFB, ##XrEventDataSpaceQueryResultsAvailableFB, ##XrEventDataSpaceSaveCompleteFB, ##XrEventDataSpaceSetStatusCompleteFB, ##XrEventDataSpaceShareCompleteFB, ##XrEventDataSpatialAnchorCreateCompleteFB, ##XrEventDataVisibilityMaskChangedKHR, ##XrEventDataViveTrackerConnectedHTCX, ##XrExtensionProperties, ##XrExternalCameraOCULUS, ##XrEyeGazeSampleTimeEXT, ##XrEyeGazesFB, ##XrEyeGazesInfoFB, ##XrEyeTrackerCreateInfoFB, ##XrFaceExpressionInfoFB, ##XrFaceExpressionWeightsFB, ##XrFaceTrackerCreateInfoFB, ##XrFacialExpressionsHTC, ##XrFacialTrackerCreateInfoHTC, ##XrForceFeedbackCurlApplyLocationsMNDX, ##XrFoveatedViewConfigurationViewVARJO, ##XrFoveationApplyInfoHTC, ##XrFoveationCustomModeInfoHTC, ##XrFoveationDynamicModeInfoHTC, ##XrFoveationEyeTrackedProfileCreateInfoMETA, ##XrFoveationEyeTrackedStateMETA, ##XrFoveationLevelProfileCreateInfoFB, ##XrFoveationProfileCreateInfoFB, ##XrFrameBeginInfo, ##XrFrameEndInfo, ##XrFrameEndInfoML, ##XrFrameState, ##XrFrameWaitInfo, ##XrGeometryInstanceCreateInfoFB, ##XrGeometryInstanceTransformFB, ##XrGlobalDimmerFrameEndInfoML, ##XrGraphicsBindingEGLMNDX, ##XrGraphicsBindingOpenGLESAndroidKHR, ##XrGraphicsBindingOpenGLWaylandKHR, ##XrGraphicsBindingOpenGLWin32KHR, ##XrGraphicsBindingOpenGLXcbKHR, ##XrGraphicsBindingOpenGLXlibKHR, ##XrGraphicsBindingVulkanKHR, ##XrGraphicsRequirementsOpenGLESKHR, ##XrGraphicsRequirementsOpenGLKHR, ##XrGraphicsRequirementsVulkanKHR, ##XrHandJointLocationsEXT, ##XrHandJointVelocitiesEXT, ##XrHandJointsLocateInfoEXT, ##XrHandJointsMotionRangeInfoEXT, ##XrHandMeshMSFT, ##XrHandMeshSpaceCreateInfoMSFT, ##XrHandMeshUpdateInfoMSFT, ##XrHandPoseTypeInfoMSFT, ##XrHandTrackerCreateInfoEXT, ##XrHandTrackingAimStateFB, ##XrHandTrackingCapsulesStateFB, ##XrHandTrackingMeshFB, ##XrHandTrackingScaleFB, ##XrHapticActionInfo, ##XrHapticAmplitudeEnvelopeVibrationFB, ##XrHapticBaseHeader, ##XrHapticPcmVibrationFB, ##XrHapticVibration, ##XrHolographicWindowAttachmentMSFT, ##XrInputSourceLocalizedNameGetInfo, ##XrInstanceCreateInfo, ##XrInstanceCreateInfoAndroidKHR, ##XrInstanceProperties, ##XrInteractionProfileAnalogThresholdVALVE, ##XrInteractionProfileDpadBindingEXT, ##XrInteractionProfileState, ##XrInteractionProfileSuggestedBinding, ##XrKeyboardSpaceCreateInfoFB, ##XrKeyboardTrackingQueryFB, ##XrLoaderInitInfoAndroidKHR, ##XrLoaderInitInfoBaseHeaderKHR, ##XrLocalDimmingFrameEndInfoMETA, ##XrMarkerSpaceCreateInfoVARJO, ##XrNewSceneComputeInfoMSFT, ##XrPassthroughBrightnessContrastSaturationFB, ##XrPassthroughColorHTC, ##XrPassthroughColorMapMonoToMonoFB, ##XrPassthroughColorMapMonoToRgbaFB, ##XrPassthroughCreateInfoFB, ##XrPassthroughCreateInfoHTC, ##XrPassthroughKeyboardHandsIntensityFB, ##XrPassthroughLayerCreateInfoFB, ##XrPassthroughMeshTransformInfoHTC, ##XrPassthroughStyleFB, ##XrPerformanceMetricsCounterMETA, ##XrPerformanceMetricsStateMETA, ##XrReferenceSpaceCreateInfo, ##XrRenderModelBufferFB, ##XrRenderModelCapabilitiesRequestFB, ##XrRenderModelLoadInfoFB, ##XrRenderModelPathInfoFB, ##XrRenderModelPropertiesFB, ##XrRoomLayoutFB, ##XrSceneCaptureRequestInfoFB, ##XrSceneComponentLocationsMSFT, ##XrSceneComponentParentFilterInfoMSFT, ##XrSceneComponentsGetInfoMSFT, ##XrSceneComponentsLocateInfoMSFT, ##XrSceneComponentsMSFT, ##XrSceneCreateInfoMSFT, ##XrSceneDeserializeInfoMSFT, ##XrSceneMeshBuffersGetInfoMSFT, ##XrSceneMeshBuffersMSFT, ##XrSceneMeshIndicesUint16MSFT, ##XrSceneMeshIndicesUint32MSFT, ##XrSceneMeshVertexBufferMSFT, ##XrSceneMeshesMSFT, ##XrSceneObjectTypesFilterInfoMSFT, ##XrSceneObjectsMSFT, ##XrSceneObserverCreateInfoMSFT, ##XrScenePlaneAlignmentFilterInfoMSFT, ##XrScenePlanesMSFT, ##XrSecondaryViewConfigurationFrameEndInfoMSFT, ##XrSecondaryViewConfigurationFrameStateMSFT, ##XrSecondaryViewConfigurationLayerInfoMSFT, ##XrSecondaryViewConfigurationSessionBeginInfoMSFT, ##XrSecondaryViewConfigurationStateMSFT, ##XrSecondaryViewConfigurationSwapchainCreateInfoMSFT, ##XrSemanticLabelsFB, ##XrSerializedSceneFragmentDataGetInfoMSFT, ##XrSessionActionSetsAttachInfo, ##XrSessionBeginInfo, ##XrSessionCreateInfo, ##XrSessionCreateInfoOverlayEXTX, ##XrSpaceComponentFilterInfoFB, ##XrSpaceComponentStatusFB, ##XrSpaceComponentStatusSetInfoFB, ##XrSpaceContainerFB, ##XrSpaceEraseInfoFB, ##XrSpaceFilterInfoBaseHeaderFB, ##XrSpaceListSaveInfoFB, ##XrSpaceLocation, ##XrSpaceQueryInfoBaseHeaderFB, ##XrSpaceQueryInfoFB, ##XrSpaceQueryResultsFB, ##XrSpaceSaveInfoFB, ##XrSpaceShareInfoFB, ##XrSpaceStorageLocationFilterInfoFB, ##XrSpaceUserCreateInfoFB, ##XrSpaceUuidFilterInfoFB, ##XrSpaceVelocity, ##XrSpatialAnchorCreateInfoFB, ##XrSpatialAnchorCreateInfoMSFT, ##XrSpatialAnchorFromPersistedAnchorCreateInfoMSFT, ##XrSpatialAnchorPersistenceInfoMSFT, ##XrSpatialAnchorSpaceCreateInfoMSFT, ##XrSpatialGraphNodeBindingPropertiesGetInfoMSFT, ##XrSpatialGraphNodeBindingPropertiesMSFT, ##XrSpatialGraphNodeSpaceCreateInfoMSFT, ##XrSpatialGraphStaticNodeBindingCreateInfoMSFT, ##XrSwapchainCreateInfo, ##XrSwapchainCreateInfoFoveationFB, ##XrSwapchainImageAcquireInfo, ##XrSwapchainImageBaseHeader, ##XrSwapchainImageFoveationVulkanFB, ##XrSwapchainImageOpenGLESKHR, ##XrSwapchainImageOpenGLKHR, ##XrSwapchainImageReleaseInfo, ##XrSwapchainImageVulkanKHR, ##XrSwapchainImageWaitInfo, ##XrSwapchainStateBaseHeaderFB, ##XrSwapchainStateFoveationFB, ##XrSwapchainStateSamplerOpenGLESFB, ##XrSwapchainStateSamplerVulkanFB, ##XrSystemBodyTrackingPropertiesFB, ##XrSystemColorSpacePropertiesFB, ##XrSystemEyeGazeInteractionPropertiesEXT, ##XrSystemEyeTrackingPropertiesFB, ##XrSystemFaceTrackingPropertiesFB, ##XrSystemFacialTrackingPropertiesHTC, ##XrSystemForceFeedbackCurlPropertiesMNDX, ##XrSystemFoveatedRenderingPropertiesVARJO, ##XrSystemFoveationEyeTrackedPropertiesMETA, ##XrSystemGetInfo, ##XrSystemHandTrackingMeshPropertiesMSFT, ##XrSystemHandTrackingPropertiesEXT, ##XrSystemHeadsetIdPropertiesMETA, ##XrSystemKeyboardTrackingPropertiesFB, ##XrSystemMarkerTrackingPropertiesVARJO, ##XrSystemPassthroughProperties2FB, ##XrSystemPassthroughPropertiesFB, ##XrSystemProperties, ##XrSystemRenderModelPropertiesFB, ##XrSystemSpaceWarpPropertiesFB, ##XrSystemSpatialEntityPropertiesFB, ##XrTriangleMeshCreateInfoFB, ##XrView, ##XrViewConfigurationDepthRangeEXT, ##XrViewConfigurationProperties, ##XrViewConfigurationView, ##XrViewConfigurationViewFovEPIC, ##XrViewLocateFoveatedRenderingVARJO, ##XrViewLocateInfo, ##XrViewState, ##XrVisibilityMaskKHR, ##XrVisualMeshComputeLodInfoMSFT, ##XrViveTrackerPathsHTCX, ##XrVulkanDeviceCreateInfoKHR, ##XrVulkanGraphicsDeviceGetInfoKHR, ##XrVulkanInstanceCreateInfoKHR, ##XrVulkanSwapchainCreateInfoMETA, ##XrVulkanSwapchainFormatListCreateInfoKHR, #StructureTypeToString() """, "TYPE_UNKNOWN".."0", @@ -1834,9 +1832,9 @@ val XR10 = "XR10".nativeClass(Module.OPENXR, "XR10", prefix = "XR", binding = XR ￿XrResult xrEnumerateViewConfigurations( ￿ XrInstance instance, ￿ XrSystemId systemId, -￿ uint32_t viewConfigurationTypeCapacityInput, -￿ uint32_t* viewConfigurationTypeCountOutput, -￿ XrViewConfigurationType* viewConfigurationTypes);
                                                                        +￿ uint32_t viewConfigurationsTypeCapacityInput, +￿ uint32_t* viewConfigurationsTypeCountOutput, +￿ XrViewConfigurationType* viewConfigurationsTypes);
                                                                        Description
                                                                        #EnumerateViewConfigurations() enumerates the view configuration types supported by the {@code XrSystemId}. The supported set for that system must not change during the lifetime of its {@code XrInstance}. The returned list of primary view configurations should be in order from what the runtime considered highest to lowest user preference. Thus the first enumerated view configuration type should be the one the runtime prefers the application to use if possible. @@ -1846,8 +1844,8 @@ val XR10 = "XR10".nativeClass(Module.OPENXR, "XR10", prefix = "XR", binding = XR
                                                                        Valid Usage (Implicit)
                                                                        • {@code instance} must be a valid {@code XrInstance} handle
                                                                        • -
                                                                        • {@code viewConfigurationTypeCountOutput} must be a pointer to a {@code uint32_t} value
                                                                        • -
                                                                        • If {@code viewConfigurationTypeCapacityInput} is not 0, {@code viewConfigurationTypes} must be a pointer to an array of {@code viewConfigurationTypeCapacityInput} {@code XrViewConfigurationType} values
                                                                        • +
                                                                        • {@code viewConfigurationsTypeCountOutput} must be a pointer to a {@code uint32_t} value
                                                                        • +
                                                                        • If {@code viewConfigurationsTypeCapacityInput} is not 0, {@code viewConfigurationsTypes} must be a pointer to an array of {@code viewConfigurationsTypeCapacityInput} {@code XrViewConfigurationType} values
                                                                        Return Codes
                                                                        @@ -1871,9 +1869,9 @@ val XR10 = "XR10".nativeClass(Module.OPENXR, "XR10", prefix = "XR", binding = XR XrInstance("instance", "the instance from which {@code systemId} was retrieved."), XrSystemId("systemId", "the {@code XrSystemId} whose view configurations will be enumerated."), - AutoSize("viewConfigurationTypes")..uint32_t("viewConfigurationTypeCapacityInput", ""), - Check(1)..uint32_t.p("viewConfigurationTypeCountOutput", ""), - nullable..XrViewConfigurationType.p("viewConfigurationTypes", "") + AutoSize("viewConfigurationsTypes")..uint32_t("viewConfigurationsTypeCapacityInput", "the capacity of the {@code viewConfigurations} array, or 0 to indicate a request to retrieve the required capacity."), + Check(1)..uint32_t.p("viewConfigurationsTypeCountOutput", "a pointer to the count of {@code viewConfigurations} written, or a pointer to the required capacity in the case that {@code viewConfigurationsTypeCapacityInput} is insufficient."), + nullable..XrViewConfigurationType.p("viewConfigurationsTypes", "a pointer to an array of {@code XrViewConfigurationType} values, but can be {@code NULL} if {@code viewConfigurationsTypeCapacityInput} is 0.") ) XrResult( @@ -2182,7 +2180,7 @@ val XR10 = "XR10".nativeClass(Module.OPENXR, "XR10", prefix = "XR", binding = XR
                                                                        • {@code swapchain} must be a valid {@code XrSwapchain} handle
                                                                        • {@code imageCountOutput} must be a pointer to a {@code uint32_t} value
                                                                        • -
                                                                        • If {@code imageCapacityInput} is not 0, {@code images} must be a pointer to an array of {@code imageCapacityInput} ##XrSwapchainImageBaseHeader-based structures. See also: ##XrSwapchainImageD3D11KHR, ##XrSwapchainImageD3D12KHR, ##XrSwapchainImageOpenGLESKHR, ##XrSwapchainImageOpenGLKHR, ##XrSwapchainImageVulkanKHR
                                                                        • +
                                                                        • If {@code imageCapacityInput} is not 0, {@code images} must be a pointer to an array of {@code imageCapacityInput} ##XrSwapchainImageBaseHeader-based structures. See also: ##XrSwapchainImageOpenGLESKHR, ##XrSwapchainImageOpenGLKHR, ##XrSwapchainImageVulkanKHR
                                                                        Return Codes
                                                                        diff --git a/modules/lwjgl/opus/src/generated/java/org/lwjgl/util/opus/package-info.java b/modules/lwjgl/opus/src/generated/java/org/lwjgl/util/opus/package-info.java index 3132a1aac2..27c5bdbbb7 100644 --- a/modules/lwjgl/opus/src/generated/java/org/lwjgl/util/opus/package-info.java +++ b/modules/lwjgl/opus/src/generated/java/org/lwjgl/util/opus/package-info.java @@ -3,8 +3,8 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - -/** Contains bindings to the opus-codec library. */ + +/** Contains bindings to the opus-codec library. */ @org.lwjgl.system.NonnullDefault package org.lwjgl.util.opus; - + diff --git a/modules/lwjgl/ovr/src/generated/java/org/lwjgl/ovr/LibOVR.java b/modules/lwjgl/ovr/src/generated/java/org/lwjgl/ovr/LibOVR.java index c57078d1c4..4e8aeeaa39 100644 --- a/modules/lwjgl/ovr/src/generated/java/org/lwjgl/ovr/LibOVR.java +++ b/modules/lwjgl/ovr/src/generated/java/org/lwjgl/ovr/LibOVR.java @@ -4,10 +4,10 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.ovr; - -import org.lwjgl.system.*; - -/** Initializes the ovr shared library. */ + +import org.lwjgl.system.*; + +/** Initializes the ovr shared library. */ final class LibOVR { static { @@ -22,4 +22,4 @@ static void initialize() { // intentionally empty to trigger static initializer } -} +} diff --git a/modules/lwjgl/ovr/src/generated/java/org/lwjgl/ovr/package-info.java b/modules/lwjgl/ovr/src/generated/java/org/lwjgl/ovr/package-info.java index 2bceba20b4..c7d7394ee8 100644 --- a/modules/lwjgl/ovr/src/generated/java/org/lwjgl/ovr/package-info.java +++ b/modules/lwjgl/ovr/src/generated/java/org/lwjgl/ovr/package-info.java @@ -3,12 +3,12 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to LibOVR, the Oculus SDK library. * *

                                                                        Documentation on how to get started with the Oculus SDK can be found here.

                                                                        - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.ovr; - + diff --git a/modules/lwjgl/par/src/generated/c/org_lwjgl_util_par_LibPar.c b/modules/lwjgl/par/src/generated/c/org_lwjgl_util_par_LibPar.c index 7562346a52..1b3390d622 100644 --- a/modules/lwjgl/par/src/generated/c/org_lwjgl_util_par_LibPar.c +++ b/modules/lwjgl/par/src/generated/c/org_lwjgl_util_par_LibPar.c @@ -3,6 +3,6 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ -#include "common_tools.h" +#include "common_tools.h" #define LWJGL_MALLOC_LIB org_lwjgl_util_par_LibPar -#include "lwjgl_malloc.h" +#include "lwjgl_malloc.h" diff --git a/modules/lwjgl/par/src/generated/java/org/lwjgl/util/par/LibPar.java b/modules/lwjgl/par/src/generated/java/org/lwjgl/util/par/LibPar.java index a81332c0d9..2649f9091e 100644 --- a/modules/lwjgl/par/src/generated/java/org/lwjgl/util/par/LibPar.java +++ b/modules/lwjgl/par/src/generated/java/org/lwjgl/util/par/LibPar.java @@ -4,12 +4,12 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.util.par; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; - -/** Initializes the par shared library. */ + +import org.lwjgl.system.*; + +import static org.lwjgl.system.MemoryUtil.*; + +/** Initializes the par shared library. */ final class LibPar { static { @@ -43,4 +43,4 @@ private static native void setupMalloc( long aligned_free ); -} +} diff --git a/modules/lwjgl/par/src/generated/java/org/lwjgl/util/par/package-info.java b/modules/lwjgl/par/src/generated/java/org/lwjgl/util/par/package-info.java index a04613c7e9..e1410955ef 100644 --- a/modules/lwjgl/par/src/generated/java/org/lwjgl/util/par/package-info.java +++ b/modules/lwjgl/par/src/generated/java/org/lwjgl/util/par/package-info.java @@ -3,8 +3,8 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - -/** Contains bindings to the par library. */ + +/** Contains bindings to the par library. */ @org.lwjgl.system.NonnullDefault package org.lwjgl.util.par; - + diff --git a/modules/lwjgl/remotery/src/generated/java/org/lwjgl/util/remotery/LibRemotery.java b/modules/lwjgl/remotery/src/generated/java/org/lwjgl/util/remotery/LibRemotery.java index f7ea0e9bc6..d968f46b41 100644 --- a/modules/lwjgl/remotery/src/generated/java/org/lwjgl/util/remotery/LibRemotery.java +++ b/modules/lwjgl/remotery/src/generated/java/org/lwjgl/util/remotery/LibRemotery.java @@ -4,10 +4,10 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.util.remotery; - -import org.lwjgl.system.*; - -/** Initializes the remotery shared library. */ + +import org.lwjgl.system.*; + +/** Initializes the remotery shared library. */ final class LibRemotery { static { @@ -22,4 +22,4 @@ static void initialize() { // intentionally empty to trigger static initializer } -} +} diff --git a/modules/lwjgl/remotery/src/generated/java/org/lwjgl/util/remotery/package-info.java b/modules/lwjgl/remotery/src/generated/java/org/lwjgl/util/remotery/package-info.java index 73386332c6..1481dc3a51 100644 --- a/modules/lwjgl/remotery/src/generated/java/org/lwjgl/util/remotery/package-info.java +++ b/modules/lwjgl/remotery/src/generated/java/org/lwjgl/util/remotery/package-info.java @@ -3,11 +3,11 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to Remotery, a realtime CPU/GPU profiler hosted in a single C file with a viewer * that runs in a web browser. - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.util.remotery; - + diff --git a/modules/lwjgl/rpmalloc/src/generated/java/org/lwjgl/system/rpmalloc/LibRPmalloc.java b/modules/lwjgl/rpmalloc/src/generated/java/org/lwjgl/system/rpmalloc/LibRPmalloc.java index 5ad6989137..7cece03264 100644 --- a/modules/lwjgl/rpmalloc/src/generated/java/org/lwjgl/system/rpmalloc/LibRPmalloc.java +++ b/modules/lwjgl/rpmalloc/src/generated/java/org/lwjgl/system/rpmalloc/LibRPmalloc.java @@ -4,10 +4,10 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.system.rpmalloc; - -import org.lwjgl.system.*; - -/** Initializes the rpmalloc shared library. */ + +import org.lwjgl.system.*; + +/** Initializes the rpmalloc shared library. */ final class LibRPmalloc { static { @@ -22,4 +22,4 @@ static void initialize() { // intentionally empty to trigger static initializer } -} +} diff --git a/modules/lwjgl/rpmalloc/src/generated/java/org/lwjgl/system/rpmalloc/package-info.java b/modules/lwjgl/rpmalloc/src/generated/java/org/lwjgl/system/rpmalloc/package-info.java index 2f1f016489..5665dad0a2 100644 --- a/modules/lwjgl/rpmalloc/src/generated/java/org/lwjgl/system/rpmalloc/package-info.java +++ b/modules/lwjgl/rpmalloc/src/generated/java/org/lwjgl/system/rpmalloc/package-info.java @@ -3,11 +3,11 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to the rpmalloc library. rpmalloc is a public domain cross platform lock free * thread caching 16-byte aligned memory allocator implemented in C. - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.system.rpmalloc; - + diff --git a/modules/lwjgl/shaderc/src/generated/java/org/lwjgl/util/shaderc/package-info.java b/modules/lwjgl/shaderc/src/generated/java/org/lwjgl/util/shaderc/package-info.java index ed677bf4e1..da4b7f1dbc 100644 --- a/modules/lwjgl/shaderc/src/generated/java/org/lwjgl/util/shaderc/package-info.java +++ b/modules/lwjgl/shaderc/src/generated/java/org/lwjgl/util/shaderc/package-info.java @@ -3,7 +3,7 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to Shaderc, a collection of libraries for shader compilation. * @@ -15,7 +15,7 @@ *
                                                                      • an API supporting standard concurrency patterns across multiple operating systems
                                                                      • *
                                                                      • increased functionality such as file #include support
                                                                      • *
                                                                      - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.util.shaderc; - + diff --git a/modules/lwjgl/spvc/src/generated/java/org/lwjgl/util/spvc/package-info.java b/modules/lwjgl/spvc/src/generated/java/org/lwjgl/util/spvc/package-info.java index da7f13d81e..338b9ecb7b 100644 --- a/modules/lwjgl/spvc/src/generated/java/org/lwjgl/util/spvc/package-info.java +++ b/modules/lwjgl/spvc/src/generated/java/org/lwjgl/util/spvc/package-info.java @@ -3,11 +3,11 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to SPIRV-Cross, a library for performing reflection on SPIR-V and * disassembling SPIR-V back to high level languages. - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.util.spvc; - + diff --git a/modules/lwjgl/sse/src/generated/java/org/lwjgl/util/simd/LibSSE.java b/modules/lwjgl/sse/src/generated/java/org/lwjgl/util/simd/LibSSE.java index e787decaee..75482c0629 100644 --- a/modules/lwjgl/sse/src/generated/java/org/lwjgl/util/simd/LibSSE.java +++ b/modules/lwjgl/sse/src/generated/java/org/lwjgl/util/simd/LibSSE.java @@ -4,10 +4,10 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.util.simd; - -import org.lwjgl.system.*; - -/** Initializes the sse shared library. */ + +import org.lwjgl.system.*; + +/** Initializes the sse shared library. */ final class LibSSE { static { @@ -22,4 +22,4 @@ static void initialize() { // intentionally empty to trigger static initializer } -} +} diff --git a/modules/lwjgl/sse/src/generated/java/org/lwjgl/util/simd/package-info.java b/modules/lwjgl/sse/src/generated/java/org/lwjgl/util/simd/package-info.java index 6f1419a47f..10ea99d0fe 100644 --- a/modules/lwjgl/sse/src/generated/java/org/lwjgl/util/simd/package-info.java +++ b/modules/lwjgl/sse/src/generated/java/org/lwjgl/util/simd/package-info.java @@ -3,8 +3,8 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - -/** Contains bindings to SSE macros. */ + +/** Contains bindings to SSE macros. */ @org.lwjgl.system.NonnullDefault package org.lwjgl.util.simd; - + diff --git a/modules/lwjgl/stb/src/generated/c/org_lwjgl_stb_LibSTB.c b/modules/lwjgl/stb/src/generated/c/org_lwjgl_stb_LibSTB.c index d6fd0e65d2..ddd2a9d909 100644 --- a/modules/lwjgl/stb/src/generated/c/org_lwjgl_stb_LibSTB.c +++ b/modules/lwjgl/stb/src/generated/c/org_lwjgl_stb_LibSTB.c @@ -3,6 +3,6 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ -#include "common_tools.h" +#include "common_tools.h" #define LWJGL_MALLOC_LIB org_lwjgl_stb_LibSTB -#include "lwjgl_malloc.h" +#include "lwjgl_malloc.h" diff --git a/modules/lwjgl/stb/src/generated/java/org/lwjgl/stb/LibSTB.java b/modules/lwjgl/stb/src/generated/java/org/lwjgl/stb/LibSTB.java index 2ab14a77b4..d87139c09a 100644 --- a/modules/lwjgl/stb/src/generated/java/org/lwjgl/stb/LibSTB.java +++ b/modules/lwjgl/stb/src/generated/java/org/lwjgl/stb/LibSTB.java @@ -4,12 +4,12 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.stb; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; - -/** Initializes the stb shared library. */ + +import org.lwjgl.system.*; + +import static org.lwjgl.system.MemoryUtil.*; + +/** Initializes the stb shared library. */ final class LibSTB { static { @@ -43,4 +43,4 @@ private static native void setupMalloc( long aligned_free ); -} +} diff --git a/modules/lwjgl/stb/src/generated/java/org/lwjgl/stb/package-info.java b/modules/lwjgl/stb/src/generated/java/org/lwjgl/stb/package-info.java index 7c35a52037..907eb15abd 100644 --- a/modules/lwjgl/stb/src/generated/java/org/lwjgl/stb/package-info.java +++ b/modules/lwjgl/stb/src/generated/java/org/lwjgl/stb/package-info.java @@ -3,7 +3,7 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to stb, a set of single-file public domain libraries. * @@ -18,7 +18,7 @@ *
                                                                    • Packing rectangular textures into texture atlases.
                                                                    • *
                                                                    • Computing Perlin noise.
                                                                    • *
                                                                    - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.stb; - + diff --git a/modules/lwjgl/tinyexr/src/generated/c/org_lwjgl_util_tinyexr_LibTinyEXR.cpp b/modules/lwjgl/tinyexr/src/generated/c/org_lwjgl_util_tinyexr_LibTinyEXR.cpp index 57a8832be0..63c187acd3 100644 --- a/modules/lwjgl/tinyexr/src/generated/c/org_lwjgl_util_tinyexr_LibTinyEXR.cpp +++ b/modules/lwjgl/tinyexr/src/generated/c/org_lwjgl_util_tinyexr_LibTinyEXR.cpp @@ -3,6 +3,6 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ -#include "common_tools.h" +#include "common_tools.h" #define LWJGL_MALLOC_LIB org_lwjgl_util_tinyexr_LibTinyEXR -#include "lwjgl_malloc.h" +#include "lwjgl_malloc.h" diff --git a/modules/lwjgl/tinyexr/src/generated/java/org/lwjgl/util/tinyexr/LibTinyEXR.java b/modules/lwjgl/tinyexr/src/generated/java/org/lwjgl/util/tinyexr/LibTinyEXR.java index b1fc77f1f4..c5b627ebd8 100644 --- a/modules/lwjgl/tinyexr/src/generated/java/org/lwjgl/util/tinyexr/LibTinyEXR.java +++ b/modules/lwjgl/tinyexr/src/generated/java/org/lwjgl/util/tinyexr/LibTinyEXR.java @@ -4,12 +4,12 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.util.tinyexr; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; - -/** Initializes the tinyexr shared library. */ + +import org.lwjgl.system.*; + +import static org.lwjgl.system.MemoryUtil.*; + +/** Initializes the tinyexr shared library. */ final class LibTinyEXR { static { @@ -43,4 +43,4 @@ private static native void setupMalloc( long aligned_free ); -} +} diff --git a/modules/lwjgl/tinyexr/src/generated/java/org/lwjgl/util/tinyexr/package-info.java b/modules/lwjgl/tinyexr/src/generated/java/org/lwjgl/util/tinyexr/package-info.java index 708a295e1d..86d9507660 100644 --- a/modules/lwjgl/tinyexr/src/generated/java/org/lwjgl/util/tinyexr/package-info.java +++ b/modules/lwjgl/tinyexr/src/generated/java/org/lwjgl/util/tinyexr/package-info.java @@ -3,12 +3,12 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to the Tiny OpenEXR image library. * *

                                                                    tinyexr is a small, single header-only library to load and save OpenEXR(.exr) images.

                                                                    - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.util.tinyexr; - + diff --git a/modules/lwjgl/tinyfd/src/generated/java/org/lwjgl/util/tinyfd/package-info.java b/modules/lwjgl/tinyfd/src/generated/java/org/lwjgl/util/tinyfd/package-info.java index ab4da2a3da..eb0699171a 100644 --- a/modules/lwjgl/tinyfd/src/generated/java/org/lwjgl/util/tinyfd/package-info.java +++ b/modules/lwjgl/tinyfd/src/generated/java/org/lwjgl/util/tinyfd/package-info.java @@ -3,8 +3,8 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - -/** Contains bindings to tiny file dialogs. */ + +/** Contains bindings to tiny file dialogs. */ @org.lwjgl.system.NonnullDefault package org.lwjgl.util.tinyfd; - + diff --git a/modules/lwjgl/tootle/src/generated/java/org/lwjgl/util/tootle/package-info.java b/modules/lwjgl/tootle/src/generated/java/org/lwjgl/util/tootle/package-info.java index 2982af6afe..b791d18fe2 100644 --- a/modules/lwjgl/tootle/src/generated/java/org/lwjgl/util/tootle/package-info.java +++ b/modules/lwjgl/tootle/src/generated/java/org/lwjgl/util/tootle/package-info.java @@ -3,14 +3,14 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to AMD Tootle. * *

                                                                    AMD Tootle (Triangle Order Optimization Tool) is a 3D triangle mesh optimization library that improves on existing mesh preprocessing techniques. By * using AMD Tootle, developers can optimize their models for pixel overdraw as well as vertex cache performance. This can provide significant performance * improvements in pixel limited situations, with no penalty in vertex-limited scenarios, and no runtime cost.

                                                                    - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.util.tootle; - + diff --git a/modules/lwjgl/vma/src/generated/c/org_lwjgl_util_vma_LibVma.cpp b/modules/lwjgl/vma/src/generated/c/org_lwjgl_util_vma_LibVma.cpp index 8a2c015b0a..57ad23a138 100644 --- a/modules/lwjgl/vma/src/generated/c/org_lwjgl_util_vma_LibVma.cpp +++ b/modules/lwjgl/vma/src/generated/c/org_lwjgl_util_vma_LibVma.cpp @@ -3,6 +3,6 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ -#include "common_tools.h" +#include "common_tools.h" #define LWJGL_MALLOC_LIB org_lwjgl_util_vma_LibVma -#include "lwjgl_malloc.h" +#include "lwjgl_malloc.h" diff --git a/modules/lwjgl/vma/src/generated/java/org/lwjgl/util/vma/LibVma.java b/modules/lwjgl/vma/src/generated/java/org/lwjgl/util/vma/LibVma.java index 80bbccf85a..c8a608aec3 100644 --- a/modules/lwjgl/vma/src/generated/java/org/lwjgl/util/vma/LibVma.java +++ b/modules/lwjgl/vma/src/generated/java/org/lwjgl/util/vma/LibVma.java @@ -4,12 +4,12 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.util.vma; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; - -/** Initializes the vma shared library. */ + +import org.lwjgl.system.*; + +import static org.lwjgl.system.MemoryUtil.*; + +/** Initializes the vma shared library. */ final class LibVma { static { @@ -43,4 +43,4 @@ private static native void setupMalloc( long aligned_free ); -} +} diff --git a/modules/lwjgl/vma/src/generated/java/org/lwjgl/util/vma/package-info.java b/modules/lwjgl/vma/src/generated/java/org/lwjgl/util/vma/package-info.java index f09ddc558e..be9733d509 100644 --- a/modules/lwjgl/vma/src/generated/java/org/lwjgl/util/vma/package-info.java +++ b/modules/lwjgl/vma/src/generated/java/org/lwjgl/util/vma/package-info.java @@ -3,7 +3,7 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to VMA, an easy to integrate Vulkan memory * allocation library. @@ -56,7 +56,7 @@ *
                                                                  • Debug annotations: Associate string with name or opaque pointer to your own data with every allocation.
                                                                  • *
                                                                  • JSON dump: Obtain a string in JSON format with detailed map of internal state, including list of allocations and gaps between them.
                                                                  • *
                                                                  - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.util.vma; - + diff --git a/modules/lwjgl/vulkan/src/generated/java/org/lwjgl/vulkan/package-info.java b/modules/lwjgl/vulkan/src/generated/java/org/lwjgl/vulkan/package-info.java index 5d48dffd71..6f47843fe8 100644 --- a/modules/lwjgl/vulkan/src/generated/java/org/lwjgl/vulkan/package-info.java +++ b/modules/lwjgl/vulkan/src/generated/java/org/lwjgl/vulkan/package-info.java @@ -3,7 +3,7 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to Vulkan, a new generation graphics and compute API that provides high-efficiency, * cross-platform access to modern GPUs used in a wide variety of devices from PCs and consoles to mobile phones and embedded platforms. @@ -12,7 +12,7 @@ * will be removed.

                                                                  * *

                                                                  macOS: LWJGL bundles MoltenVK, which emulates Vulkan over Metal.

                                                                  - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.vulkan; - + diff --git a/modules/lwjgl/xxhash/src/generated/c/org_lwjgl_util_xxhash_LibXXHash.c b/modules/lwjgl/xxhash/src/generated/c/org_lwjgl_util_xxhash_LibXXHash.c index eada52e91f..307851f6c0 100644 --- a/modules/lwjgl/xxhash/src/generated/c/org_lwjgl_util_xxhash_LibXXHash.c +++ b/modules/lwjgl/xxhash/src/generated/c/org_lwjgl_util_xxhash_LibXXHash.c @@ -3,6 +3,6 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ -#include "common_tools.h" +#include "common_tools.h" #define LWJGL_MALLOC_LIB org_lwjgl_util_xxhash_LibXXHash -#include "lwjgl_malloc.h" +#include "lwjgl_malloc.h" diff --git a/modules/lwjgl/xxhash/src/generated/java/org/lwjgl/util/xxhash/LibXXHash.java b/modules/lwjgl/xxhash/src/generated/java/org/lwjgl/util/xxhash/LibXXHash.java index fc6c616be8..e5c49ca9ab 100644 --- a/modules/lwjgl/xxhash/src/generated/java/org/lwjgl/util/xxhash/LibXXHash.java +++ b/modules/lwjgl/xxhash/src/generated/java/org/lwjgl/util/xxhash/LibXXHash.java @@ -4,12 +4,12 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.util.xxhash; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; - -/** Initializes the xxhash shared library. */ + +import org.lwjgl.system.*; + +import static org.lwjgl.system.MemoryUtil.*; + +/** Initializes the xxhash shared library. */ final class LibXXHash { static { @@ -43,4 +43,4 @@ private static native void setupMalloc( long aligned_free ); -} +} diff --git a/modules/lwjgl/xxhash/src/generated/java/org/lwjgl/util/xxhash/package-info.java b/modules/lwjgl/xxhash/src/generated/java/org/lwjgl/util/xxhash/package-info.java index 1b459c1cdb..1ff779569e 100644 --- a/modules/lwjgl/xxhash/src/generated/java/org/lwjgl/util/xxhash/package-info.java +++ b/modules/lwjgl/xxhash/src/generated/java/org/lwjgl/util/xxhash/package-info.java @@ -3,13 +3,13 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to xxHash, an extremely fast non-cryptographic hash algorithm. * *

                                                                  xxHash successfully completes the SMHasher test suite which evaluates collision, dispersion and * randomness qualities of hash functions.

                                                                  - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.util.xxhash; - + diff --git a/modules/lwjgl/yoga/src/generated/java/org/lwjgl/util/yoga/LibYoga.java b/modules/lwjgl/yoga/src/generated/java/org/lwjgl/util/yoga/LibYoga.java index 672bceec5e..984acae9f1 100644 --- a/modules/lwjgl/yoga/src/generated/java/org/lwjgl/util/yoga/LibYoga.java +++ b/modules/lwjgl/yoga/src/generated/java/org/lwjgl/util/yoga/LibYoga.java @@ -4,10 +4,10 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.util.yoga; - -import org.lwjgl.system.*; - -/** Initializes the yoga shared library. */ + +import org.lwjgl.system.*; + +/** Initializes the yoga shared library. */ final class LibYoga { static { @@ -22,4 +22,4 @@ static void initialize() { // intentionally empty to trigger static initializer } -} +} diff --git a/modules/lwjgl/yoga/src/generated/java/org/lwjgl/util/yoga/package-info.java b/modules/lwjgl/yoga/src/generated/java/org/lwjgl/util/yoga/package-info.java index 187536ad28..2a2a8d62cf 100644 --- a/modules/lwjgl/yoga/src/generated/java/org/lwjgl/util/yoga/package-info.java +++ b/modules/lwjgl/yoga/src/generated/java/org/lwjgl/util/yoga/package-info.java @@ -3,7 +3,7 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to Yoga. * @@ -37,7 +37,7 @@ * float t = layout.positions(YGEdgeTop); * float w = layout.dimensions(YGDimensionWidth); * float h = layout.dimensions(YGDimensionHeight); - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.util.yoga; - + diff --git a/modules/lwjgl/zstd/src/generated/c/org_lwjgl_util_zstd_LibZstd.c b/modules/lwjgl/zstd/src/generated/c/org_lwjgl_util_zstd_LibZstd.c index 1d7aec2383..8398f8252f 100644 --- a/modules/lwjgl/zstd/src/generated/c/org_lwjgl_util_zstd_LibZstd.c +++ b/modules/lwjgl/zstd/src/generated/c/org_lwjgl_util_zstd_LibZstd.c @@ -3,6 +3,6 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ -#include "common_tools.h" +#include "common_tools.h" #define LWJGL_MALLOC_LIB org_lwjgl_util_zstd_LibZstd -#include "lwjgl_malloc.h" +#include "lwjgl_malloc.h" diff --git a/modules/lwjgl/zstd/src/generated/java/org/lwjgl/util/zstd/LibZstd.java b/modules/lwjgl/zstd/src/generated/java/org/lwjgl/util/zstd/LibZstd.java index d97754cba3..3f5300d9f9 100644 --- a/modules/lwjgl/zstd/src/generated/java/org/lwjgl/util/zstd/LibZstd.java +++ b/modules/lwjgl/zstd/src/generated/java/org/lwjgl/util/zstd/LibZstd.java @@ -4,12 +4,12 @@ * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.util.zstd; - -import org.lwjgl.system.*; - -import static org.lwjgl.system.MemoryUtil.*; - -/** Initializes the zstd shared library. */ + +import org.lwjgl.system.*; + +import static org.lwjgl.system.MemoryUtil.*; + +/** Initializes the zstd shared library. */ final class LibZstd { static { @@ -43,4 +43,4 @@ private static native void setupMalloc( long aligned_free ); -} +} diff --git a/modules/lwjgl/zstd/src/generated/java/org/lwjgl/util/zstd/package-info.java b/modules/lwjgl/zstd/src/generated/java/org/lwjgl/util/zstd/package-info.java index cb74feeeb9..cb853790c5 100644 --- a/modules/lwjgl/zstd/src/generated/java/org/lwjgl/util/zstd/package-info.java +++ b/modules/lwjgl/zstd/src/generated/java/org/lwjgl/util/zstd/package-info.java @@ -3,7 +3,7 @@ * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ - + /** * Contains bindings to Zstandard (zstd), a fast lossless compression algorithm, targeting real-time * compression scenarios at zlib-level and better compression ratios. @@ -11,7 +11,7 @@ *

                                                                  Zstandard is a real-time compression algorithm, providing high compression ratios. It offers a very wide range of compression / speed trade-off, while * being backed by a very fast decoder. It also offers a special mode for small data, called dictionary compression, and can create dictionaries from any * sample set.

                                                                  - */ + */ @org.lwjgl.system.NonnullDefault package org.lwjgl.util.zstd; - +