All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.openxr.XrCompositionLayerEquirectKHR Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 3.3.6
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.openxr;

import org.jspecify.annotations.*;

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.*;

/**
 * Equirectangular layer composition info.
 * 
 * 
Description
* *

{@link XrCompositionLayerEquirectKHR} contains the information needed to render an equirectangular image onto a sphere when calling {@link XR10#xrEndFrame EndFrame}. {@link XrCompositionLayerEquirectKHR} is an alias type for the base struct {@link XrCompositionLayerBaseHeader} used in {@link XrFrameEndInfo}.

* *
Valid Usage (Implicit)
* *
    *
  • 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 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
  • *
  • {@code subImage} must be a valid {@link XrSwapchainSubImage} structure
  • *
* *
See Also
* *

{@link XrCompositionLayerBaseHeader}, {@link XrFrameEndInfo}, {@link XrPosef}, {@link XrSwapchainSubImage}, {@link XrVector2f}, {@link XR10#xrEndFrame EndFrame}

* *

Layout

* *

 * struct XrCompositionLayerEquirectKHR {
 *     XrStructureType {@link #type};
 *     void const * {@link #next};
 *     XrCompositionLayerFlags {@link #layerFlags};
 *     XrSpace {@link #space};
 *     XrEyeVisibility {@link #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 { /** 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, LAYERFLAGS, SPACE, EYEVISIBILITY, SUBIMAGE, POSE, RADIUS, SCALE, BIAS; 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), __member(4), __member(XrVector2f.SIZEOF, XrVector2f.ALIGNOF), __member(XrVector2f.SIZEOF, XrVector2f.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); RADIUS = layout.offsetof(7); SCALE = layout.offsetof(8); BIAS = layout.offsetof(9); } protected XrCompositionLayerEquirectKHR(long address, @Nullable ByteBuffer container) { super(address, container); } @Override protected XrCompositionLayerEquirectKHR create(long address, @Nullable ByteBuffer container) { return new XrCompositionLayerEquirectKHR(address, container); } /** * Creates a {@code XrCompositionLayerEquirectKHR} 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 XrCompositionLayerEquirectKHR(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()); } /** 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()); } /** the eye represented by this layer. */ @NativeType("XrEyeVisibility") public int eyeVisibility() { return neyeVisibility(address()); } /** identifies the image {@link XrSwapchainSubImage} to use. The swapchain must have been created with a {@link XrSwapchainCreateInfo}{@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; } /** 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, XrVector2f bias ) { type(type); next(next); layerFlags(layerFlags); space(space); eyeVisibility(eyeVisibility); subImage(subImage); pose(pose); radius(radius); scale(scale); bias(bias); return this; } /** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public XrCompositionLayerEquirectKHR set(XrCompositionLayerEquirectKHR src) { memCopy(src.address(), address(), SIZEOF); return this; } // ----------------------------------- /** Returns a new {@code XrCompositionLayerEquirectKHR} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. */ public static XrCompositionLayerEquirectKHR malloc() { return new XrCompositionLayerEquirectKHR(nmemAllocChecked(SIZEOF), null); } /** Returns a new {@code XrCompositionLayerEquirectKHR} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. */ public static XrCompositionLayerEquirectKHR calloc() { return new XrCompositionLayerEquirectKHR(nmemCallocChecked(1, SIZEOF), null); } /** Returns a new {@code XrCompositionLayerEquirectKHR} instance allocated with {@link BufferUtils}. */ public static XrCompositionLayerEquirectKHR create() { ByteBuffer container = BufferUtils.createByteBuffer(SIZEOF); return new XrCompositionLayerEquirectKHR(memAddress(container), container); } /** Returns a new {@code XrCompositionLayerEquirectKHR} instance for the specified memory address. */ public static XrCompositionLayerEquirectKHR create(long address) { return new XrCompositionLayerEquirectKHR(address, null); } /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */ public static @Nullable XrCompositionLayerEquirectKHR createSafe(long address) { return address == NULL ? null : new XrCompositionLayerEquirectKHR(address, null); } /** Downcasts the specified {@code XrCompositionLayerBaseHeader} instance to {@code XrCompositionLayerEquirectKHR}. */ public static XrCompositionLayerEquirectKHR create(XrCompositionLayerBaseHeader value) { return new XrCompositionLayerEquirectKHR(value.address(), __getContainer(value)); } /** * Returns a new {@link XrCompositionLayerEquirectKHR.Buffer} instance allocated with {@link MemoryUtil#memAlloc memAlloc}. The instance must be explicitly freed. * * @param capacity the buffer capacity */ public static XrCompositionLayerEquirectKHR.Buffer malloc(int capacity) { return new Buffer(nmemAllocChecked(__checkMalloc(capacity, SIZEOF)), capacity); } /** * Returns a new {@link XrCompositionLayerEquirectKHR.Buffer} instance allocated with {@link MemoryUtil#memCalloc memCalloc}. The instance must be explicitly freed. * * @param capacity the buffer capacity */ public static XrCompositionLayerEquirectKHR.Buffer calloc(int capacity) { return new Buffer(nmemCallocChecked(capacity, SIZEOF), capacity); } /** * Returns a new {@link XrCompositionLayerEquirectKHR.Buffer} instance allocated with {@link BufferUtils}. * * @param capacity the buffer capacity */ public static XrCompositionLayerEquirectKHR.Buffer create(int capacity) { ByteBuffer container = __create(capacity, SIZEOF); return new Buffer(memAddress(container), container, -1, 0, capacity, capacity); } /** * Create a {@link XrCompositionLayerEquirectKHR.Buffer} instance at the specified memory. * * @param address the memory address * @param capacity the buffer capacity */ public static XrCompositionLayerEquirectKHR.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}. */ public static XrCompositionLayerEquirectKHR.@Nullable Buffer createSafe(long address, int capacity) { return address == NULL ? null : new Buffer(address, capacity); } /** Downcasts the specified {@code XrCompositionLayerBaseHeader.Buffer} instance to {@code XrCompositionLayerEquirectKHR.Buffer}. */ public static XrCompositionLayerEquirectKHR.Buffer create(XrCompositionLayerBaseHeader.Buffer value) { return new XrCompositionLayerEquirectKHR.Buffer(value.address(), __getContainer(value), -1, 0, value.remaining(), value.remaining()); } /** * Returns a new {@code XrCompositionLayerEquirectKHR} instance allocated on the specified {@link MemoryStack}. * * @param stack the stack from which to allocate */ public static XrCompositionLayerEquirectKHR malloc(MemoryStack stack) { return new XrCompositionLayerEquirectKHR(stack.nmalloc(ALIGNOF, SIZEOF), null); } /** * Returns a new {@code XrCompositionLayerEquirectKHR} instance allocated on the specified {@link MemoryStack} and initializes all its bits to zero. * * @param stack the stack from which to allocate */ public static XrCompositionLayerEquirectKHR calloc(MemoryStack stack) { return new XrCompositionLayerEquirectKHR(stack.ncalloc(ALIGNOF, 1, SIZEOF), null); } /** * Returns a new {@link XrCompositionLayerEquirectKHR.Buffer} instance allocated on the specified {@link MemoryStack}. * * @param stack the stack from which to allocate * @param capacity the buffer capacity */ public static XrCompositionLayerEquirectKHR.Buffer malloc(int capacity, MemoryStack stack) { return new Buffer(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); } /** * Returns a new {@link XrCompositionLayerEquirectKHR.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 XrCompositionLayerEquirectKHR.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 memGetInt(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 memGetLong(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 memGetInt(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 memGetFloat(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) { memPutInt(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) { memPutLong(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) { memPutInt(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) { memPutFloat(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}. * * @param struct the struct to validate */ 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 { private static final XrCompositionLayerEquirectKHR ELEMENT_FACTORY = XrCompositionLayerEquirectKHR.create(-1L); /** * Creates a new {@code XrCompositionLayerEquirectKHR.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 XrCompositionLayerEquirectKHR#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 Buffer create(long address, @Nullable ByteBuffer container, int mark, int position, int limit, int capacity) { return new Buffer(address, container, mark, position, limit, capacity); } @Override 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; } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy