Class XrCompositionLayerProjectionView
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrCompositionLayerProjectionView
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrCompositionLayerProjectionView extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceProjection layer element.Description
The count and order of view poses submitted with
XrCompositionLayerProjectionmust be the same order as that returned byLocateViews. TheXrCompositionLayerProjectionView::poseandXrCompositionLayerProjectionView::fovshould almost always derive fromXrView::poseandXrView::fovas found in theLocateViews::viewsarray. However, applications may submit anXrCompositionLayerProjectionViewwhich has a different view or FOV than that fromLocateViews. In this case, the runtime will map the view and FOV to the system display appropriately. In the case that two submitted views within a single layer overlap, they must be composited in view array order.Valid Usage (Implicit)
typemust beTYPE_COMPOSITION_LAYER_PROJECTION_VIEWnextmust beNULLor a valid pointer to the next structure in a structure chain. See also:XrCompositionLayerDepthInfoKHR,XrCompositionLayerSpaceWarpInfoFBsubImagemust be a validXrSwapchainSubImagestructure
See Also
XrCompositionLayerProjection,XrFovf,XrPosef,XrSwapchainSubImageLayout
struct XrCompositionLayerProjectionView { XrStructureTypetype(); void const *next();XrPosefpose();XrFovffov();XrSwapchainSubImagesubImage(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrCompositionLayerProjectionView.BufferAn array ofXrCompositionLayerProjectionViewstructs.
-
Constructor Summary
Constructors Constructor Description XrCompositionLayerProjectionView(java.nio.ByteBuffer container)Creates aXrCompositionLayerProjectionViewinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrCompositionLayerProjectionViewcalloc()Returns a newXrCompositionLayerProjectionViewinstance allocated withmemCalloc.static XrCompositionLayerProjectionView.Buffercalloc(int capacity)Returns a newXrCompositionLayerProjectionView.Bufferinstance allocated withmemCalloc.static XrCompositionLayerProjectionView.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerProjectionView.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrCompositionLayerProjectionViewcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerProjectionViewinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrCompositionLayerProjectionViewcreate()Returns a newXrCompositionLayerProjectionViewinstance allocated withBufferUtils.static XrCompositionLayerProjectionView.Buffercreate(int capacity)Returns a newXrCompositionLayerProjectionView.Bufferinstance allocated withBufferUtils.static XrCompositionLayerProjectionViewcreate(long address)Returns a newXrCompositionLayerProjectionViewinstance for the specified memory address.static XrCompositionLayerProjectionView.Buffercreate(long address, int capacity)Create aXrCompositionLayerProjectionView.Bufferinstance at the specified memory.static XrCompositionLayerProjectionViewcreateSafe(long address)static XrCompositionLayerProjectionView.BuffercreateSafe(long address, int capacity)XrFovffov()theXrFovffor this projection element.XrCompositionLayerProjectionViewfov(java.util.function.Consumer<XrFovf> consumer)Passes thefov()field to the specifiedConsumer.XrCompositionLayerProjectionViewfov(XrFovf value)static XrCompositionLayerProjectionViewmalloc()Returns a newXrCompositionLayerProjectionViewinstance allocated withmemAlloc.static XrCompositionLayerProjectionView.Buffermalloc(int capacity)Returns a newXrCompositionLayerProjectionView.Bufferinstance allocated withmemAlloc.static XrCompositionLayerProjectionView.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerProjectionView.Bufferinstance allocated on the specifiedMemoryStack.static XrCompositionLayerProjectionViewmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerProjectionViewinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrCompositionLayerProjectionViewnext(long value)Sets the specified value to thenext()field.XrCompositionLayerProjectionViewnext(XrCompositionLayerDepthInfoKHR value)Prepends the specifiedXrCompositionLayerDepthInfoKHRvalue to thenextchain.XrCompositionLayerProjectionViewnext(XrCompositionLayerSpaceWarpInfoFB value)Prepends the specifiedXrCompositionLayerSpaceWarpInfoFBvalue to thenextchain.static XrFovfnfov(long struct)Unsafe version offov().static voidnfov(long struct, XrFovf value)Unsafe version offov.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static XrPosefnpose(long struct)Unsafe version ofpose().static voidnpose(long struct, XrPosef value)Unsafe version ofpose.static XrSwapchainSubImagensubImage(long struct)Unsafe version ofsubImage().static voidnsubImage(long struct, XrSwapchainSubImage value)Unsafe version ofsubImage.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrPosefpose()anXrPosefdefining the location and orientation of this projection element in thespaceof the correspondingXrCompositionLayerProjectionView.XrCompositionLayerProjectionViewpose(java.util.function.Consumer<XrPosef> consumer)Passes thepose()field to the specifiedConsumer.XrCompositionLayerProjectionViewpose(XrPosef value)XrCompositionLayerProjectionViewset(int type, long next, XrPosef pose, XrFovf fov, XrSwapchainSubImage subImage)Initializes this struct with the specified values.XrCompositionLayerProjectionViewset(XrCompositionLayerProjectionView src)Copies the specified struct data to this struct.intsizeof()XrSwapchainSubImagesubImage()the image layerXrSwapchainSubImageto use.XrCompositionLayerProjectionViewsubImage(java.util.function.Consumer<XrSwapchainSubImage> consumer)Passes thesubImage()field to the specifiedConsumer.XrCompositionLayerProjectionViewsubImage(XrSwapchainSubImage value)Copies the specifiedXrSwapchainSubImageto thesubImage()field.inttype()theXrStructureTypeof this structure.XrCompositionLayerProjectionViewtype(int value)Sets the specified value to thetype()field.XrCompositionLayerProjectionViewtype$Default()Sets theTYPE_COMPOSITION_LAYER_PROJECTION_VIEWvalue to thetype()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
XrCompositionLayerProjectionView
public XrCompositionLayerProjectionView(java.nio.ByteBuffer container)
Creates aXrCompositionLayerProjectionViewinstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
type
public int type()
theXrStructureTypeof this structure.
-
next
public long next()
NULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR.
-
pose
public XrPosef pose()
anXrPosefdefining the location and orientation of this projection element in thespaceof the correspondingXrCompositionLayerProjectionView.
-
subImage
public XrSwapchainSubImage subImage()
the image layerXrSwapchainSubImageto use.
-
type
public XrCompositionLayerProjectionView type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrCompositionLayerProjectionView type$Default()
Sets theTYPE_COMPOSITION_LAYER_PROJECTION_VIEWvalue to thetype()field.
-
next
public XrCompositionLayerProjectionView next(long value)
Sets the specified value to thenext()field.
-
next
public XrCompositionLayerProjectionView next(XrCompositionLayerDepthInfoKHR value)
Prepends the specifiedXrCompositionLayerDepthInfoKHRvalue to thenextchain.
-
next
public XrCompositionLayerProjectionView next(XrCompositionLayerSpaceWarpInfoFB value)
Prepends the specifiedXrCompositionLayerSpaceWarpInfoFBvalue to thenextchain.
-
pose
public XrCompositionLayerProjectionView pose(XrPosef value)
-
pose
public XrCompositionLayerProjectionView pose(java.util.function.Consumer<XrPosef> consumer)
Passes thepose()field to the specifiedConsumer.
-
fov
public XrCompositionLayerProjectionView fov(XrFovf value)
-
fov
public XrCompositionLayerProjectionView fov(java.util.function.Consumer<XrFovf> consumer)
Passes thefov()field to the specifiedConsumer.
-
subImage
public XrCompositionLayerProjectionView subImage(XrSwapchainSubImage value)
Copies the specifiedXrSwapchainSubImageto thesubImage()field.
-
subImage
public XrCompositionLayerProjectionView subImage(java.util.function.Consumer<XrSwapchainSubImage> consumer)
Passes thesubImage()field to the specifiedConsumer.
-
set
public XrCompositionLayerProjectionView set(int type, long next, XrPosef pose, XrFovf fov, XrSwapchainSubImage subImage)
Initializes this struct with the specified values.
-
set
public XrCompositionLayerProjectionView set(XrCompositionLayerProjectionView src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrCompositionLayerProjectionView malloc()
Returns a newXrCompositionLayerProjectionViewinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrCompositionLayerProjectionView calloc()
Returns a newXrCompositionLayerProjectionViewinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrCompositionLayerProjectionView create()
Returns a newXrCompositionLayerProjectionViewinstance allocated withBufferUtils.
-
create
public static XrCompositionLayerProjectionView create(long address)
Returns a newXrCompositionLayerProjectionViewinstance for the specified memory address.
-
createSafe
@Nullable public static XrCompositionLayerProjectionView createSafe(long address)
-
malloc
public static XrCompositionLayerProjectionView.Buffer malloc(int capacity)
Returns a newXrCompositionLayerProjectionView.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrCompositionLayerProjectionView.Buffer calloc(int capacity)
Returns a newXrCompositionLayerProjectionView.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrCompositionLayerProjectionView.Buffer create(int capacity)
Returns a newXrCompositionLayerProjectionView.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrCompositionLayerProjectionView.Buffer create(long address, int capacity)
Create aXrCompositionLayerProjectionView.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrCompositionLayerProjectionView.Buffer createSafe(long address, int capacity)
-
malloc
public static XrCompositionLayerProjectionView malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrCompositionLayerProjectionViewinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrCompositionLayerProjectionView calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrCompositionLayerProjectionViewinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrCompositionLayerProjectionView.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrCompositionLayerProjectionView.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrCompositionLayerProjectionView.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrCompositionLayerProjectionView.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
nnext
public static long nnext(long struct)
Unsafe version ofnext().
-
nsubImage
public static XrSwapchainSubImage nsubImage(long struct)
Unsafe version ofsubImage().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nsubImage
public static void nsubImage(long struct, XrSwapchainSubImage value)Unsafe version ofsubImage.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-