Package org.lwjgl.openxr
Class XrFrameSynthesisInfoEXT
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class XrFrameSynthesisInfoEXT
extends Struct<XrFrameSynthesisInfoEXT>
implements NativeResource
struct XrFrameSynthesisInfoEXT {
XrStructureType type;
void const * next;
XrFrameSynthesisInfoFlagsEXT layerFlags;
XrSwapchainSubImage motionVectorSubImage;
XrVector4f motionVectorScale;
XrVector4f motionVectorOffset;
XrPosef appSpaceDeltaPose;
XrSwapchainSubImage depthSubImage;
float minDepth;
float maxDepth;
float nearZ;
float farZ;
}-
Nested Class Summary
Nested ClassesNested 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 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
ConstructorsConstructorDescriptionXrFrameSynthesisInfoEXT(ByteBuffer container) Creates aXrFrameSynthesisInfoEXTinstance 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.static XrFrameSynthesisInfoEXTcalloc()Returns a newXrFrameSynthesisInfoEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrFrameSynthesisInfoEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newXrFrameSynthesisInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrFrameSynthesisInfoEXTcalloc(MemoryStack stack) Returns a newXrFrameSynthesisInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrFrameSynthesisInfoEXTcreate()Returns a newXrFrameSynthesisInfoEXTinstance allocated withBufferUtils.create(int capacity) Returns a newXrFrameSynthesisInfoEXT.Bufferinstance allocated withBufferUtils.static XrFrameSynthesisInfoEXTcreate(long address) Returns a newXrFrameSynthesisInfoEXTinstance for the specified memory address.create(long address, int capacity) Create aXrFrameSynthesisInfoEXT.Bufferinstance at the specified memory.static @Nullable XrFrameSynthesisInfoEXTcreateSafe(long address) static @Nullable XrFrameSynthesisInfoEXT.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.static XrFrameSynthesisInfoEXTmalloc()Returns a newXrFrameSynthesisInfoEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrFrameSynthesisInfoEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newXrFrameSynthesisInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static XrFrameSynthesisInfoEXTmalloc(MemoryStack stack) Returns a newXrFrameSynthesisInfoEXTinstance allocated on the specifiedMemoryStack.floatmaxDepth()maxDepth(float value) Sets the specified value to themaxDepthfield.floatminDepth()minDepth(float value) Sets the specified value to theminDepthfield.motionVectorOffset(Consumer<XrVector4f> consumer) Passes themotionVectorOffsetfield to the specifiedConsumer.motionVectorOffset(XrVector4f value) Copies the specifiedXrVector4fto themotionVectorOffsetfield.motionVectorScale(Consumer<XrVector4f> consumer) Passes themotionVectorScalefield to the specifiedConsumer.motionVectorScale(XrVector4f value) Copies the specifiedXrVector4fto themotionVectorScalefield.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 XrVector4fnmotionVectorOffset(long struct) Unsafe version ofmotionVectorOffset().static voidnmotionVectorOffset(long struct, XrVector4f value) Unsafe version ofmotionVectorOffset.static XrVector4fnmotionVectorScale(long struct) Unsafe version ofmotionVectorScale().static voidnmotionVectorScale(long struct, XrVector4f value) Unsafe version ofmotionVectorScale.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, XrVector4f motionVectorScale, XrVector4f motionVectorOffset, 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_FRAME_SYNTHESIS_INFO_EXTvalue 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. -
MOTIONVECTORSCALE
public static final int MOTIONVECTORSCALEThe struct member offsets. -
MOTIONVECTOROFFSET
public static final int MOTIONVECTOROFFSETThe 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
-
XrFrameSynthesisInfoEXT
Creates aXrFrameSynthesisInfoEXTinstance 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<XrFrameSynthesisInfoEXT>
-
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.
-
motionVectorScale
- Returns:
- a
XrVector4fview of themotionVectorScalefield.
-
motionVectorOffset
- Returns:
- a
XrVector4fview of themotionVectorOffsetfield.
-
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_FRAME_SYNTHESIS_INFO_EXTvalue to thetypefield. -
next
Sets the specified value to thenextfield. -
layerFlags
Sets the specified value to thelayerFlagsfield. -
motionVectorSubImage
Copies the specifiedXrSwapchainSubImageto themotionVectorSubImagefield. -
motionVectorSubImage
Passes themotionVectorSubImagefield to the specifiedConsumer. -
motionVectorScale
Copies the specifiedXrVector4fto themotionVectorScalefield. -
motionVectorScale
Passes themotionVectorScalefield to the specifiedConsumer. -
motionVectorOffset
Copies the specifiedXrVector4fto themotionVectorOffsetfield. -
motionVectorOffset
Passes themotionVectorOffsetfield 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 XrFrameSynthesisInfoEXT set(int type, long next, long layerFlags, XrSwapchainSubImage motionVectorSubImage, XrVector4f motionVectorScale, XrVector4f motionVectorOffset, 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 newXrFrameSynthesisInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrFrameSynthesisInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrFrameSynthesisInfoEXTinstance allocated withBufferUtils. -
create
Returns a newXrFrameSynthesisInfoEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrFrameSynthesisInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrFrameSynthesisInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrFrameSynthesisInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrFrameSynthesisInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrFrameSynthesisInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrFrameSynthesisInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrFrameSynthesisInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrFrameSynthesisInfoEXT.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(). -
nmotionVectorScale
Unsafe version ofmotionVectorScale(). -
nmotionVectorOffset
Unsafe version ofmotionVectorOffset(). -
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. -
nmotionVectorScale
Unsafe version ofmotionVectorScale. -
nmotionVectorOffset
Unsafe version ofmotionVectorOffset. -
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
-