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;
{@link XrSwapchainSubImage XrSwapchainSubImage} motionVectorSubImage;
{@link XrVector4f XrVector4f} motionVectorScale;
{@link XrVector4f XrVector4f} motionVectorOffset;
{@link XrPosef XrPosef} appSpaceDeltaPose;
{@link XrSwapchainSubImage 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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The 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 aXrFrameSynthesisInfoEXT
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionappSpaceDeltaPose
(Consumer<XrPosef> consumer) Passes theappSpaceDeltaPose
field to the specifiedConsumer
.appSpaceDeltaPose
(XrPosef value) Copies the specifiedXrPosef
to theappSpaceDeltaPose
field.static XrFrameSynthesisInfoEXT
calloc()
Returns a newXrFrameSynthesisInfoEXT
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newXrFrameSynthesisInfoEXT.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newXrFrameSynthesisInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrFrameSynthesisInfoEXT
calloc
(MemoryStack stack) Returns a newXrFrameSynthesisInfoEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrFrameSynthesisInfoEXT
create()
Returns a newXrFrameSynthesisInfoEXT
instance allocated withBufferUtils
.create
(int capacity) Returns a newXrFrameSynthesisInfoEXT.Buffer
instance allocated withBufferUtils
.static XrFrameSynthesisInfoEXT
create
(long address) Returns a newXrFrameSynthesisInfoEXT
instance for the specified memory address.create
(long address, int capacity) Create aXrFrameSynthesisInfoEXT.Buffer
instance at the specified memory.static @Nullable XrFrameSynthesisInfoEXT
createSafe
(long address) static @Nullable XrFrameSynthesisInfoEXT.Buffer
createSafe
(long address, int capacity) depthSubImage
(Consumer<XrSwapchainSubImage> consumer) Passes thedepthSubImage
field to the specifiedConsumer
.depthSubImage
(XrSwapchainSubImage value) Copies the specifiedXrSwapchainSubImage
to thedepthSubImage
field.float
farZ()
farZ
(float value) Sets the specified value to thefarZ
field.long
layerFlags
(long value) Sets the specified value to thelayerFlags
field.static XrFrameSynthesisInfoEXT
malloc()
Returns a newXrFrameSynthesisInfoEXT
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newXrFrameSynthesisInfoEXT.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newXrFrameSynthesisInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
.static XrFrameSynthesisInfoEXT
malloc
(MemoryStack stack) Returns a newXrFrameSynthesisInfoEXT
instance allocated on the specifiedMemoryStack
.float
maxDepth()
maxDepth
(float value) Sets the specified value to themaxDepth
field.float
minDepth()
minDepth
(float value) Sets the specified value to theminDepth
field.motionVectorOffset
(Consumer<XrVector4f> consumer) Passes themotionVectorOffset
field to the specifiedConsumer
.motionVectorOffset
(XrVector4f value) Copies the specifiedXrVector4f
to themotionVectorOffset
field.motionVectorScale
(Consumer<XrVector4f> consumer) Passes themotionVectorScale
field to the specifiedConsumer
.motionVectorScale
(XrVector4f value) Copies the specifiedXrVector4f
to themotionVectorScale
field.motionVectorSubImage
(Consumer<XrSwapchainSubImage> consumer) Passes themotionVectorSubImage
field to the specifiedConsumer
.Copies the specifiedXrSwapchainSubImage
to themotionVectorSubImage
field.static XrPosef
nappSpaceDeltaPose
(long struct) Unsafe version ofappSpaceDeltaPose()
.static void
nappSpaceDeltaPose
(long struct, XrPosef value) Unsafe version ofappSpaceDeltaPose
.static XrSwapchainSubImage
ndepthSubImage
(long struct) Unsafe version ofdepthSubImage()
.static void
ndepthSubImage
(long struct, XrSwapchainSubImage value) Unsafe version ofdepthSubImage
.float
nearZ()
nearZ
(float value) Sets the specified value to thenearZ
field.long
next()
next
(long value) Sets the specified value to thenext
field.static float
nfarZ
(long struct) Unsafe version offarZ()
.static void
nfarZ
(long struct, float value) Unsafe version offarZ
.static long
nlayerFlags
(long struct) Unsafe version oflayerFlags()
.static void
nlayerFlags
(long struct, long value) Unsafe version oflayerFlags
.static float
nmaxDepth
(long struct) Unsafe version ofmaxDepth()
.static void
nmaxDepth
(long struct, float value) Unsafe version ofmaxDepth
.static float
nminDepth
(long struct) Unsafe version ofminDepth()
.static void
nminDepth
(long struct, float value) Unsafe version ofminDepth
.static XrVector4f
nmotionVectorOffset
(long struct) Unsafe version ofmotionVectorOffset()
.static void
nmotionVectorOffset
(long struct, XrVector4f value) Unsafe version ofmotionVectorOffset
.static XrVector4f
nmotionVectorScale
(long struct) Unsafe version ofmotionVectorScale()
.static void
nmotionVectorScale
(long struct, XrVector4f value) Unsafe version ofmotionVectorScale
.static XrSwapchainSubImage
nmotionVectorSubImage
(long struct) Unsafe version ofmotionVectorSubImage()
.static void
nmotionVectorSubImage
(long struct, XrSwapchainSubImage value) Unsafe version ofmotionVectorSubImage
.static float
nnearZ
(long struct) Unsafe version ofnearZ()
.static void
nnearZ
(long struct, float value) Unsafe version ofnearZ
.static long
nnext
(long struct) Unsafe version ofnext()
.static void
nnext
(long struct, long value) Unsafe version ofnext
.static int
ntype
(long struct) Unsafe version oftype()
.static void
ntype
(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.int
sizeof()
Returnssizeof(struct)
.int
type()
type
(int value) Sets the specified value to thetype
field.Sets theTYPE_FRAME_SYNTHESIS_INFO_EXT
value to thetype
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aXrFrameSynthesisInfoEXT
instance at the current position of the specifiedByteBuffer
container. 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:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<XrFrameSynthesisInfoEXT>
-
type
public int type()- Returns:
- the value of the
type
field.
-
next
public long next()- Returns:
- the value of the
next
field.
-
layerFlags
public long layerFlags()- Returns:
- the value of the
layerFlags
field.
-
motionVectorSubImage
- Returns:
- a
XrSwapchainSubImage
view of themotionVectorSubImage
field.
-
motionVectorScale
- Returns:
- a
XrVector4f
view of themotionVectorScale
field.
-
motionVectorOffset
- Returns:
- a
XrVector4f
view of themotionVectorOffset
field.
-
appSpaceDeltaPose
- Returns:
- a
XrPosef
view of theappSpaceDeltaPose
field.
-
depthSubImage
- Returns:
- a
XrSwapchainSubImage
view of thedepthSubImage
field.
-
minDepth
public float minDepth()- Returns:
- the value of the
minDepth
field.
-
maxDepth
public float maxDepth()- Returns:
- the value of the
maxDepth
field.
-
nearZ
public float nearZ()- Returns:
- the value of the
nearZ
field.
-
farZ
public float farZ()- Returns:
- the value of the
farZ
field.
-
type
Sets the specified value to thetype
field. -
type$Default
Sets theTYPE_FRAME_SYNTHESIS_INFO_EXT
value to thetype
field. -
next
Sets the specified value to thenext
field. -
layerFlags
Sets the specified value to thelayerFlags
field. -
motionVectorSubImage
Copies the specifiedXrSwapchainSubImage
to themotionVectorSubImage
field. -
motionVectorSubImage
Passes themotionVectorSubImage
field to the specifiedConsumer
. -
motionVectorScale
Copies the specifiedXrVector4f
to themotionVectorScale
field. -
motionVectorScale
Passes themotionVectorScale
field to the specifiedConsumer
. -
motionVectorOffset
Copies the specifiedXrVector4f
to themotionVectorOffset
field. -
motionVectorOffset
Passes themotionVectorOffset
field to the specifiedConsumer
. -
appSpaceDeltaPose
Copies the specifiedXrPosef
to theappSpaceDeltaPose
field. -
appSpaceDeltaPose
Passes theappSpaceDeltaPose
field to the specifiedConsumer
. -
depthSubImage
Copies the specifiedXrSwapchainSubImage
to 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 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 newXrFrameSynthesisInfoEXT
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newXrFrameSynthesisInfoEXT
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newXrFrameSynthesisInfoEXT
instance allocated withBufferUtils
. -
create
Returns a newXrFrameSynthesisInfoEXT
instance for the specified memory address. -
createSafe
-
malloc
Returns a newXrFrameSynthesisInfoEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newXrFrameSynthesisInfoEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newXrFrameSynthesisInfoEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aXrFrameSynthesisInfoEXT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newXrFrameSynthesisInfoEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newXrFrameSynthesisInfoEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newXrFrameSynthesisInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newXrFrameSynthesisInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
and 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
-