Package org.lwjgl.openxr
Class XrCompositionLayerSpaceWarpInfoFB
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrCompositionLayerSpaceWarpInfoFB>
org.lwjgl.openxr.XrCompositionLayerSpaceWarpInfoFB
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrCompositionLayerSpaceWarpInfoFB
extends org.lwjgl.system.Struct<XrCompositionLayerSpaceWarpInfoFB>
implements org.lwjgl.system.NativeResource
Composition Layer Space Warp structure.
Description
The runtime must return error ERROR_VALIDATION_FAILURE if nearZ == farZ.
Valid Usage (Implicit)
- The
XR_FB_space_warpextension must be enabled prior to usingXrCompositionLayerSpaceWarpInfoFB typemust beTYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FBnextmust beNULLor a valid pointer to the next structure in a structure chainlayerFlagsmust be 0 or a valid combination ofXrCompositionLayerSpaceWarpInfoFlagBitsFBvaluesmotionVectorSubImagemust be a validXrSwapchainSubImagestructuredepthSubImagemust be a validXrSwapchainSubImagestructure
See Also
XrCompositionLayerBaseHeader, XrCompositionLayerProjection, XrCompositionLayerProjectionView, XrFrameEndInfo, XrPosef, XrSwapchainSubImage, EndFrame
Layout
struct XrCompositionLayerSpaceWarpInfoFB {
XrStructureType type();
void const * next();
XrCompositionLayerSpaceWarpInfoFlagsFB layerFlags();
XrSwapchainSubImage motionVectorSubImage();
XrPosef appSpaceDeltaPose();
XrSwapchainSubImage depthSubImage();
float minDepth();
float maxDepth();
float nearZ();
float farZ();
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofXrCompositionLayerSpaceWarpInfoFBstructs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrCompositionLayerSpaceWarpInfoFB(ByteBuffer container) Creates aXrCompositionLayerSpaceWarpInfoFBinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionthe incremental application-applied transform, if any, since the previous frame that affects the view.appSpaceDeltaPose(Consumer<XrPosef> consumer) Passes theappSpaceDeltaPose()field to the specifiedConsumer.appSpaceDeltaPose(XrPosef value) Copies the specifiedXrPosefto theappSpaceDeltaPose()field.calloc()Returns a newXrCompositionLayerSpaceWarpInfoFBinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrCompositionLayerSpaceWarpInfoFB.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrCompositionLayerSpaceWarpInfoFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(org.lwjgl.system.MemoryStack stack) Returns a newXrCompositionLayerSpaceWarpInfoFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newXrCompositionLayerSpaceWarpInfoFBinstance allocated withBufferUtils.create(int capacity) Returns a newXrCompositionLayerSpaceWarpInfoFB.Bufferinstance allocated withBufferUtils.create(long address) Returns a newXrCompositionLayerSpaceWarpInfoFBinstance for the specified memory address.create(long address, int capacity) Create aXrCompositionLayerSpaceWarpInfoFB.Bufferinstance at the specified memory.static @Nullable XrCompositionLayerSpaceWarpInfoFBcreateSafe(long address) static @Nullable XrCompositionLayerSpaceWarpInfoFB.BuffercreateSafe(long address, int capacity) identifies the depth imageXrSwapchainSubImageto be associated with motionVectorSubImage.depthSubImage(Consumer<XrSwapchainSubImage> consumer) Passes thedepthSubImage()field to the specifiedConsumer.depthSubImage(XrSwapchainSubImage value) Copies the specifiedXrSwapchainSubImageto thedepthSubImage()field.floatfarZ()the positive distance in meters of themaxDepthvalue in the depth swapchain.farZ(float value) Sets the specified value to thefarZ()field.longa bitmask ofXrCompositionLayerSpaceWarpInfoFlagsFB.layerFlags(long value) Sets the specified value to thelayerFlags()field.malloc()Returns a newXrCompositionLayerSpaceWarpInfoFBinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrCompositionLayerSpaceWarpInfoFB.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrCompositionLayerSpaceWarpInfoFB.Bufferinstance allocated on the specifiedMemoryStack.malloc(org.lwjgl.system.MemoryStack stack) Returns a newXrCompositionLayerSpaceWarpInfoFBinstance allocated on the specifiedMemoryStack.floatmaxDepth()seeminDepthmaxDepth(float value) Sets the specified value to themaxDepth()field.floatminDepth()minDepthandmaxDepthare the range of depth values the depth swapchain could have, in the range of[0.0,1.0].minDepth(float value) Sets the specified value to theminDepth()field.identifies the motion vector imageXrSwapchainSubImageto be associated with the submitted layerXrCompositionLayerProjection.motionVectorSubImage(Consumer<XrSwapchainSubImage> consumer) Passes themotionVectorSubImage()field to the specifiedConsumer.Copies the specifiedXrSwapchainSubImageto themotionVectorSubImage()field.static XrPosefnappSpaceDeltaPose(long struct) Unsafe version ofappSpaceDeltaPose().static voidnappSpaceDeltaPose(long struct, XrPosef value) Unsafe version ofappSpaceDeltaPose.static XrSwapchainSubImagendepthSubImage(long struct) Unsafe version ofdepthSubImage().static voidndepthSubImage(long struct, XrSwapchainSubImage value) Unsafe version ofdepthSubImage.floatnearZ()the positive distance in meters of theminDepthvalue in the depth swapchain.nearZ(float value) Sets the specified value to thenearZ()field.longnext()NULLor a pointer to the next structure in a structure chain.next(long value) Sets the specified value to thenext()field.static floatnfarZ(long struct) Unsafe version offarZ().static voidnfarZ(long struct, float value) Unsafe version offarZ.static longnlayerFlags(long struct) Unsafe version oflayerFlags().static voidnlayerFlags(long struct, long value) Unsafe version oflayerFlags.static floatnmaxDepth(long struct) Unsafe version ofmaxDepth().static voidnmaxDepth(long struct, float value) Unsafe version ofmaxDepth.static floatnminDepth(long struct) Unsafe version ofminDepth().static voidnminDepth(long struct, float value) Unsafe version ofminDepth.static XrSwapchainSubImagenmotionVectorSubImage(long struct) Unsafe version ofmotionVectorSubImage().static voidnmotionVectorSubImage(long struct, XrSwapchainSubImage value) Unsafe version ofmotionVectorSubImage.static floatnnearZ(long struct) Unsafe version ofnearZ().static voidnnearZ(long struct, float value) Unsafe version ofnearZ.static longnnext(long struct) Unsafe version ofnext().static voidnnext(long struct, long value) Unsafe version ofnext.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.set(int type, long next, long layerFlags, XrSwapchainSubImage motionVectorSubImage, XrPosef appSpaceDeltaPose, XrSwapchainSubImage depthSubImage, float minDepth, float maxDepth, float nearZ, float farZ) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.type(int value) Sets the specified value to thetype()field.Sets theTYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FBvalue to thetype()field.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TYPE
public static final int TYPEThe struct member offsets. -
NEXT
public static final int NEXTThe struct member offsets. -
LAYERFLAGS
public static final int LAYERFLAGSThe struct member offsets. -
MOTIONVECTORSUBIMAGE
public static final int MOTIONVECTORSUBIMAGEThe struct member offsets. -
APPSPACEDELTAPOSE
public static final int APPSPACEDELTAPOSEThe struct member offsets. -
DEPTHSUBIMAGE
public static final int DEPTHSUBIMAGEThe struct member offsets. -
MINDEPTH
public static final int MINDEPTHThe struct member offsets. -
MAXDEPTH
public static final int MAXDEPTHThe struct member offsets. -
NEARZ
public static final int NEARZThe struct member offsets. -
FARZ
public static final int FARZThe struct member offsets.
-
-
Constructor Details
-
XrCompositionLayerSpaceWarpInfoFB
Creates aXrCompositionLayerSpaceWarpInfoFBinstance 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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<XrCompositionLayerSpaceWarpInfoFB>
-
type
public int type()theXrStructureTypeof this structure. -
next
public long next()NULLor a pointer to the next structure in a structure chain. -
layerFlags
public long layerFlags()a bitmask ofXrCompositionLayerSpaceWarpInfoFlagsFB. -
motionVectorSubImage
identifies the motion vector imageXrSwapchainSubImageto be associated with the submitted layerXrCompositionLayerProjection. -
appSpaceDeltaPose
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 wholeXrCompositionLayerProjection::space from one application space pose to another pose between frames. The pose should be identity when there is noXrCompositionLayerProjection::space transformation in application. -
depthSubImage
identifies the depth imageXrSwapchainSubImageto be associated with motionVectorSubImage. The swapchain should be created withSWAPCHAIN_USAGE_SAMPLED_BIT|SWAPCHAIN_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT. -
minDepth
public float minDepth()minDepthandmaxDepthare the range of depth values the depth swapchain could have, in the range of[0.0,1.0]. This is akin to min and max values of OpenGL’sglDepthRange, but with the requirement here thatmaxDepth ≥ minDepth. -
maxDepth
public float maxDepth()seeminDepth -
nearZ
public float nearZ()the positive distance in meters of theminDepthvalue in the depth swapchain. Applications may use anearZthat is greater thanfarZto indicate depth values are reversed.nearZcan be infinite. -
farZ
public float farZ()the positive distance in meters of themaxDepthvalue in the depth swapchain.farZcan be infinite. -
type
Sets the specified value to thetype()field. -
type$Default
Sets theTYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FBvalue to thetype()field. -
next
Sets the specified value to thenext()field. -
layerFlags
Sets the specified value to thelayerFlags()field. -
motionVectorSubImage
Copies the specifiedXrSwapchainSubImageto themotionVectorSubImage()field. -
motionVectorSubImage
public XrCompositionLayerSpaceWarpInfoFB motionVectorSubImage(Consumer<XrSwapchainSubImage> consumer) Passes themotionVectorSubImage()field to the specifiedConsumer. -
appSpaceDeltaPose
Copies the specifiedXrPosefto theappSpaceDeltaPose()field. -
appSpaceDeltaPose
Passes theappSpaceDeltaPose()field to the specifiedConsumer. -
depthSubImage
Copies the specifiedXrSwapchainSubImageto thedepthSubImage()field. -
depthSubImage
Passes thedepthSubImage()field to the specifiedConsumer. -
minDepth
Sets the specified value to theminDepth()field. -
maxDepth
Sets the specified value to themaxDepth()field. -
nearZ
Sets the specified value to thenearZ()field. -
farZ
Sets the specified value to thefarZ()field. -
set
public XrCompositionLayerSpaceWarpInfoFB set(int type, long next, long layerFlags, XrSwapchainSubImage motionVectorSubImage, XrPosef appSpaceDeltaPose, XrSwapchainSubImage depthSubImage, float minDepth, float maxDepth, float nearZ, float farZ) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newXrCompositionLayerSpaceWarpInfoFBinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrCompositionLayerSpaceWarpInfoFBinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrCompositionLayerSpaceWarpInfoFBinstance allocated withBufferUtils. -
create
Returns a newXrCompositionLayerSpaceWarpInfoFBinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrCompositionLayerSpaceWarpInfoFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrCompositionLayerSpaceWarpInfoFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrCompositionLayerSpaceWarpInfoFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrCompositionLayerSpaceWarpInfoFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable XrCompositionLayerSpaceWarpInfoFB.Buffer createSafe(long address, int capacity) -
malloc
Returns a newXrCompositionLayerSpaceWarpInfoFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrCompositionLayerSpaceWarpInfoFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrCompositionLayerSpaceWarpInfoFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrCompositionLayerSpaceWarpInfoFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static XrCompositionLayerSpaceWarpInfoFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrCompositionLayerSpaceWarpInfoFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype(). -
nnext
public static long nnext(long struct) Unsafe version ofnext(). -
nlayerFlags
public static long nlayerFlags(long struct) Unsafe version oflayerFlags(). -
nmotionVectorSubImage
Unsafe version ofmotionVectorSubImage(). -
nappSpaceDeltaPose
Unsafe version ofappSpaceDeltaPose(). -
ndepthSubImage
Unsafe version ofdepthSubImage(). -
nminDepth
public static float nminDepth(long struct) Unsafe version ofminDepth(). -
nmaxDepth
public static float nmaxDepth(long struct) Unsafe version ofmaxDepth(). -
nnearZ
public static float nnearZ(long struct) Unsafe version ofnearZ(). -
nfarZ
public static float nfarZ(long struct) Unsafe version offarZ(). -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext. -
nlayerFlags
public static void nlayerFlags(long struct, long value) Unsafe version oflayerFlags. -
nmotionVectorSubImage
Unsafe version ofmotionVectorSubImage. -
nappSpaceDeltaPose
Unsafe version ofappSpaceDeltaPose. -
ndepthSubImage
Unsafe version ofdepthSubImage. -
nminDepth
public static void nminDepth(long struct, float value) Unsafe version ofminDepth. -
nmaxDepth
public static void nmaxDepth(long struct, float value) Unsafe version ofmaxDepth. -
nnearZ
public static void nnearZ(long struct, float value) Unsafe version ofnearZ. -
nfarZ
public static void nfarZ(long struct, float value) Unsafe version offarZ. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-