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,NativeResource,Pointer
public class XrCompositionLayerSpaceWarpInfoFB
extends Struct<XrCompositionLayerSpaceWarpInfoFB>
implements NativeResource
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
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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 TypeMethodDescriptionappSpaceDeltaPose(Consumer<XrPosef> consumer) Passes theappSpaceDeltaPosefield to the specifiedConsumer.appSpaceDeltaPose(XrPosef value) Copies the specifiedXrPosefto theappSpaceDeltaPosefield.calloc()Returns a newXrCompositionLayerSpaceWarpInfoFBinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrCompositionLayerSpaceWarpInfoFB.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newXrCompositionLayerSpaceWarpInfoFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(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) depthSubImage(Consumer<XrSwapchainSubImage> consumer) Passes thedepthSubImagefield to the specifiedConsumer.depthSubImage(XrSwapchainSubImage value) Copies the specifiedXrSwapchainSubImageto thedepthSubImagefield.floatfarZ()farZ(float value) Sets the specified value to thefarZfield.longlayerFlags(long value) Sets the specified value to thelayerFlagsfield.malloc()Returns a newXrCompositionLayerSpaceWarpInfoFBinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrCompositionLayerSpaceWarpInfoFB.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newXrCompositionLayerSpaceWarpInfoFB.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newXrCompositionLayerSpaceWarpInfoFBinstance allocated on the specifiedMemoryStack.floatmaxDepth()maxDepth(float value) Sets the specified value to themaxDepthfield.floatminDepth()minDepth(float value) Sets the specified value to theminDepthfield.motionVectorSubImage(Consumer<XrSwapchainSubImage> consumer) Passes themotionVectorSubImagefield to the specifiedConsumer.Copies the specifiedXrSwapchainSubImageto themotionVectorSubImagefield.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()nearZ(float value) Sets the specified value to thenearZfield.longnext()next(long value) Sets the specified value to thenextfield.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()Returnssizeof(struct).inttype()type(int value) Sets the specified value to thetypefield.Sets theTYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FBvalue to thetypefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<XrCompositionLayerSpaceWarpInfoFB>
-
type
public int type()- Returns:
- the value of the
typefield.
-
next
public long next()- Returns:
- the value of the
nextfield.
-
layerFlags
public long layerFlags()- Returns:
- the value of the
layerFlagsfield.
-
motionVectorSubImage
- Returns:
- a
XrSwapchainSubImageview of themotionVectorSubImagefield.
-
appSpaceDeltaPose
- Returns:
- a
XrPosefview of theappSpaceDeltaPosefield.
-
depthSubImage
- Returns:
- a
XrSwapchainSubImageview of thedepthSubImagefield.
-
minDepth
public float minDepth()- Returns:
- the value of the
minDepthfield.
-
maxDepth
public float maxDepth()- Returns:
- the value of the
maxDepthfield.
-
nearZ
public float nearZ()- Returns:
- the value of the
nearZfield.
-
farZ
public float farZ()- Returns:
- the value of the
farZfield.
-
type
Sets the specified value to thetypefield. -
type$Default
Sets theTYPE_COMPOSITION_LAYER_SPACE_WARP_INFO_FBvalue to thetypefield. -
next
Sets the specified value to thenextfield. -
layerFlags
Sets the specified value to thelayerFlagsfield. -
motionVectorSubImage
Copies the specifiedXrSwapchainSubImageto themotionVectorSubImagefield. -
motionVectorSubImage
public XrCompositionLayerSpaceWarpInfoFB motionVectorSubImage(Consumer<XrSwapchainSubImage> consumer) Passes themotionVectorSubImagefield to the specifiedConsumer. -
appSpaceDeltaPose
Copies the specifiedXrPosefto theappSpaceDeltaPosefield. -
appSpaceDeltaPose
Passes theappSpaceDeltaPosefield to the specifiedConsumer. -
depthSubImage
Copies the specifiedXrSwapchainSubImageto thedepthSubImagefield. -
depthSubImage
Passes thedepthSubImagefield to the specifiedConsumer. -
minDepth
Sets the specified value to theminDepthfield. -
maxDepth
Sets the specified value to themaxDepthfield. -
nearZ
Sets the specified value to thenearZfield. -
farZ
Sets the specified value to thefarZfield. -
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
Returns a newXrCompositionLayerSpaceWarpInfoFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
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
-