Package org.lwjgl.openxr
Class XrCompositionLayerSpaceWarpInfoFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrCompositionLayerSpaceWarpInfoFB
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrCompositionLayerSpaceWarpInfoFB extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceComposition Layer Space Warp structure.Description
The runtime must return error
ERROR_VALIDATION_FAILUREifnearZ==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 0motionVectorSubImagemust be a validXrSwapchainSubImagestructuredepthSubImagemust be a validXrSwapchainSubImagestructure
See Also
XrCompositionLayerBaseHeader,XrCompositionLayerProjection,XrCompositionLayerProjectionView,XrFrameEndInfo,XrPosef,XrSwapchainSubImage,EndFrameLayout
struct XrCompositionLayerSpaceWarpInfoFB { XrStructureTypetype(); void const *next(); XrCompositionLayerSpaceWarpInfoFlagsFBlayerFlags();XrSwapchainSubImagemotionVectorSubImage();XrPosefappSpaceDeltaPose();XrSwapchainSubImagedepthSubImage(); floatminDepth(); floatmaxDepth(); floatnearZ(); floatfarZ(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrCompositionLayerSpaceWarpInfoFB.BufferAn array ofXrCompositionLayerSpaceWarpInfoFBstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intAPPSPACEDELTAPOSE
DEPTHSUBIMAGE
FARZ
LAYERFLAGS
MAXDEPTH
MINDEPTH
MOTIONVECTORSUBIMAGE
NEARZ
NEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrCompositionLayerSpaceWarpInfoFB(java.nio.ByteBuffer container)Creates aXrCompositionLayerSpaceWarpInfoFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description XrPosefappSpaceDeltaPose()the incremental application-applied transform, if any, since the previous frame that affects the view.XrCompositionLayerSpaceWarpInfoFBappSpaceDeltaPose(java.util.function.Consumer<XrPosef> consumer)Passes theappSpaceDeltaPose()field to the specifiedConsumer.XrCompositionLayerSpaceWarpInfoFBappSpaceDeltaPose(XrPosef value)Copies the specifiedXrPosefto theappSpaceDeltaPose()field.static XrCompositionLayerSpaceWarpInfoFBcalloc()Returns a newXrCompositionLayerSpaceWarpInfoFBinstance allocated withmemCalloc.static XrCompositionLayerSpaceWarpInfoFB.Buffercalloc(int capacity)Returns a newXrCompositionLayerSpaceWarpInfoFB.Bufferinstance allocated withmemCalloc.static XrCompositionLayerSpaceWarpInfoFB.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerSpaceWarpInfoFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrCompositionLayerSpaceWarpInfoFBcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerSpaceWarpInfoFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrCompositionLayerSpaceWarpInfoFBcreate()Returns a newXrCompositionLayerSpaceWarpInfoFBinstance allocated withBufferUtils.static XrCompositionLayerSpaceWarpInfoFB.Buffercreate(int capacity)Returns a newXrCompositionLayerSpaceWarpInfoFB.Bufferinstance allocated withBufferUtils.static XrCompositionLayerSpaceWarpInfoFBcreate(long address)Returns a newXrCompositionLayerSpaceWarpInfoFBinstance for the specified memory address.static XrCompositionLayerSpaceWarpInfoFB.Buffercreate(long address, int capacity)Create aXrCompositionLayerSpaceWarpInfoFB.Bufferinstance at the specified memory.static XrCompositionLayerSpaceWarpInfoFBcreateSafe(long address)static XrCompositionLayerSpaceWarpInfoFB.BuffercreateSafe(long address, int capacity)XrSwapchainSubImagedepthSubImage()identifies the depth imageXrSwapchainSubImageto be associated with motionVectorSubImage.XrCompositionLayerSpaceWarpInfoFBdepthSubImage(java.util.function.Consumer<XrSwapchainSubImage> consumer)Passes thedepthSubImage()field to the specifiedConsumer.XrCompositionLayerSpaceWarpInfoFBdepthSubImage(XrSwapchainSubImage value)Copies the specifiedXrSwapchainSubImageto thedepthSubImage()field.floatfarZ()the positive distance in meters of themaxDepthvalue in the depth swapchain.XrCompositionLayerSpaceWarpInfoFBfarZ(float value)Sets the specified value to thefarZ()field.longlayerFlags()a bitmask ofXrCompositionLayerSpaceWarpInfoFlagsFB.XrCompositionLayerSpaceWarpInfoFBlayerFlags(long value)Sets the specified value to thelayerFlags()field.static XrCompositionLayerSpaceWarpInfoFBmalloc()Returns a newXrCompositionLayerSpaceWarpInfoFBinstance allocated withmemAlloc.static XrCompositionLayerSpaceWarpInfoFB.Buffermalloc(int capacity)Returns a newXrCompositionLayerSpaceWarpInfoFB.Bufferinstance allocated withmemAlloc.static XrCompositionLayerSpaceWarpInfoFB.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerSpaceWarpInfoFB.Bufferinstance allocated on the specifiedMemoryStack.static XrCompositionLayerSpaceWarpInfoFBmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerSpaceWarpInfoFBinstance allocated on the specifiedMemoryStack.floatmaxDepth()seeminDepthXrCompositionLayerSpaceWarpInfoFBmaxDepth(float value)Sets the specified value to themaxDepth()field.floatminDepth()minDepthandmaxDepthare the range of depth values thedepthSwapchaincould have, in the range of[0.0,1.0].XrCompositionLayerSpaceWarpInfoFBminDepth(float value)Sets the specified value to theminDepth()field.XrSwapchainSubImagemotionVectorSubImage()identifies the motion vector imageXrSwapchainSubImageto be associated with the submitted layerXrCompositionLayerProjection.XrCompositionLayerSpaceWarpInfoFBmotionVectorSubImage(java.util.function.Consumer<XrSwapchainSubImage> consumer)Passes themotionVectorSubImage()field to the specifiedConsumer.XrCompositionLayerSpaceWarpInfoFBmotionVectorSubImage(XrSwapchainSubImage value)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.XrCompositionLayerSpaceWarpInfoFBnearZ(float value)Sets the specified value to thenearZ()field.longnext()NULLor a pointer to the next structure in a structure chain.XrCompositionLayerSpaceWarpInfoFBnext(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.XrCompositionLayerSpaceWarpInfoFBset(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.XrCompositionLayerSpaceWarpInfoFBset(XrCompositionLayerSpaceWarpInfoFB src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrCompositionLayerSpaceWarpInfoFBtype(int value)Sets the specified value to thetype()field.XrCompositionLayerSpaceWarpInfoFBtype$Default()Sets theTYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FBvalue to thetype()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
XrCompositionLayerSpaceWarpInfoFB
public XrCompositionLayerSpaceWarpInfoFB(java.nio.ByteBuffer container)
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 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.
-
layerFlags
public long layerFlags()
a bitmask ofXrCompositionLayerSpaceWarpInfoFlagsFB.
-
motionVectorSubImage
public XrSwapchainSubImage motionVectorSubImage()
identifies the motion vector imageXrSwapchainSubImageto be associated with the submitted layerXrCompositionLayerProjection.
-
appSpaceDeltaPose
public XrPosef 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
public XrSwapchainSubImage 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 thedepthSwapchaincould 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
public XrCompositionLayerSpaceWarpInfoFB type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrCompositionLayerSpaceWarpInfoFB type$Default()
Sets theTYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FBvalue to thetype()field.
-
next
public XrCompositionLayerSpaceWarpInfoFB next(long value)
Sets the specified value to thenext()field.
-
layerFlags
public XrCompositionLayerSpaceWarpInfoFB layerFlags(long value)
Sets the specified value to thelayerFlags()field.
-
motionVectorSubImage
public XrCompositionLayerSpaceWarpInfoFB motionVectorSubImage(XrSwapchainSubImage value)
Copies the specifiedXrSwapchainSubImageto themotionVectorSubImage()field.
-
motionVectorSubImage
public XrCompositionLayerSpaceWarpInfoFB motionVectorSubImage(java.util.function.Consumer<XrSwapchainSubImage> consumer)
Passes themotionVectorSubImage()field to the specifiedConsumer.
-
appSpaceDeltaPose
public XrCompositionLayerSpaceWarpInfoFB appSpaceDeltaPose(XrPosef value)
Copies the specifiedXrPosefto theappSpaceDeltaPose()field.
-
appSpaceDeltaPose
public XrCompositionLayerSpaceWarpInfoFB appSpaceDeltaPose(java.util.function.Consumer<XrPosef> consumer)
Passes theappSpaceDeltaPose()field to the specifiedConsumer.
-
depthSubImage
public XrCompositionLayerSpaceWarpInfoFB depthSubImage(XrSwapchainSubImage value)
Copies the specifiedXrSwapchainSubImageto thedepthSubImage()field.
-
depthSubImage
public XrCompositionLayerSpaceWarpInfoFB depthSubImage(java.util.function.Consumer<XrSwapchainSubImage> consumer)
Passes thedepthSubImage()field to the specifiedConsumer.
-
minDepth
public XrCompositionLayerSpaceWarpInfoFB minDepth(float value)
Sets the specified value to theminDepth()field.
-
maxDepth
public XrCompositionLayerSpaceWarpInfoFB maxDepth(float value)
Sets the specified value to themaxDepth()field.
-
nearZ
public XrCompositionLayerSpaceWarpInfoFB nearZ(float value)
Sets the specified value to thenearZ()field.
-
farZ
public XrCompositionLayerSpaceWarpInfoFB farZ(float value)
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
public XrCompositionLayerSpaceWarpInfoFB set(XrCompositionLayerSpaceWarpInfoFB src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrCompositionLayerSpaceWarpInfoFB malloc()
Returns a newXrCompositionLayerSpaceWarpInfoFBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrCompositionLayerSpaceWarpInfoFB calloc()
Returns a newXrCompositionLayerSpaceWarpInfoFBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrCompositionLayerSpaceWarpInfoFB create()
Returns a newXrCompositionLayerSpaceWarpInfoFBinstance allocated withBufferUtils.
-
create
public static XrCompositionLayerSpaceWarpInfoFB create(long address)
Returns a newXrCompositionLayerSpaceWarpInfoFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrCompositionLayerSpaceWarpInfoFB createSafe(long address)
-
malloc
public static XrCompositionLayerSpaceWarpInfoFB.Buffer malloc(int capacity)
Returns a newXrCompositionLayerSpaceWarpInfoFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrCompositionLayerSpaceWarpInfoFB.Buffer calloc(int capacity)
Returns a newXrCompositionLayerSpaceWarpInfoFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrCompositionLayerSpaceWarpInfoFB.Buffer create(int capacity)
Returns a newXrCompositionLayerSpaceWarpInfoFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrCompositionLayerSpaceWarpInfoFB.Buffer create(long address, int capacity)
Create aXrCompositionLayerSpaceWarpInfoFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrCompositionLayerSpaceWarpInfoFB.Buffer createSafe(long address, int capacity)
-
malloc
public static XrCompositionLayerSpaceWarpInfoFB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrCompositionLayerSpaceWarpInfoFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrCompositionLayerSpaceWarpInfoFB calloc(org.lwjgl.system.MemoryStack stack)
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:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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:
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().
-
nlayerFlags
public static long nlayerFlags(long struct)
Unsafe version oflayerFlags().
-
nmotionVectorSubImage
public static XrSwapchainSubImage nmotionVectorSubImage(long struct)
Unsafe version ofmotionVectorSubImage().
-
nappSpaceDeltaPose
public static XrPosef nappSpaceDeltaPose(long struct)
Unsafe version ofappSpaceDeltaPose().
-
ndepthSubImage
public static XrSwapchainSubImage ndepthSubImage(long struct)
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
public static void nmotionVectorSubImage(long struct, XrSwapchainSubImage value)Unsafe version ofmotionVectorSubImage.
-
nappSpaceDeltaPose
public static void nappSpaceDeltaPose(long struct, XrPosef value)Unsafe version ofappSpaceDeltaPose.
-
ndepthSubImage
public static void ndepthSubImage(long struct, XrSwapchainSubImage value)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
-
-