Package org.lwjgl.openxr
Class XrCompositionLayerReprojectionInfoMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrCompositionLayerReprojectionInfoMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrCompositionLayerReprojectionInfoMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceThe information to help reprojection of a projection layer.Valid Usage (Implicit)
- The
XR_MSFT_composition_layer_reprojectionextension must be enabled prior to usingXrCompositionLayerReprojectionInfoMSFT typemust beTYPE_COMPOSITION_LAYER_REPROJECTION_INFO_MSFTnextmust beNULLor a valid pointer to the next structure in a structure chainreprojectionModemust be a validXrReprojectionModeMSFTvalue
When the application chained this structure when calling
EndFrame, themodemust be one of the supportedXrReprojectionModeMSFTreturned byEnumerateReprojectionModesMSFTfunction for the correspondingXrViewConfigurationType. Otherwise, the runtime must return errorERROR_REPROJECTION_MODE_UNSUPPORTED_MSFTon theEndFramefunction.The runtime must only use the given information for the corresponding frame in
EndFramefunction, and it must not affect other frames.See Also
Layout
struct XrCompositionLayerReprojectionInfoMSFT { XrStructureTypetype(); void const *next(); XrReprojectionModeMSFTreprojectionMode(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrCompositionLayerReprojectionInfoMSFT.BufferAn array ofXrCompositionLayerReprojectionInfoMSFTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intNEXT
REPROJECTIONMODEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrCompositionLayerReprojectionInfoMSFT(java.nio.ByteBuffer container)Creates aXrCompositionLayerReprojectionInfoMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrCompositionLayerReprojectionInfoMSFTcalloc()Returns a newXrCompositionLayerReprojectionInfoMSFTinstance allocated withmemCalloc.static XrCompositionLayerReprojectionInfoMSFT.Buffercalloc(int capacity)Returns a newXrCompositionLayerReprojectionInfoMSFT.Bufferinstance allocated withmemCalloc.static XrCompositionLayerReprojectionInfoMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerReprojectionInfoMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrCompositionLayerReprojectionInfoMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerReprojectionInfoMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrCompositionLayerReprojectionInfoMSFTcreate()Returns a newXrCompositionLayerReprojectionInfoMSFTinstance allocated withBufferUtils.static XrCompositionLayerReprojectionInfoMSFT.Buffercreate(int capacity)Returns a newXrCompositionLayerReprojectionInfoMSFT.Bufferinstance allocated withBufferUtils.static XrCompositionLayerReprojectionInfoMSFTcreate(long address)Returns a newXrCompositionLayerReprojectionInfoMSFTinstance for the specified memory address.static XrCompositionLayerReprojectionInfoMSFT.Buffercreate(long address, int capacity)Create aXrCompositionLayerReprojectionInfoMSFT.Bufferinstance at the specified memory.static XrCompositionLayerReprojectionInfoMSFTcreateSafe(long address)static XrCompositionLayerReprojectionInfoMSFT.BuffercreateSafe(long address, int capacity)static XrCompositionLayerReprojectionInfoMSFTmalloc()Returns a newXrCompositionLayerReprojectionInfoMSFTinstance allocated withmemAlloc.static XrCompositionLayerReprojectionInfoMSFT.Buffermalloc(int capacity)Returns a newXrCompositionLayerReprojectionInfoMSFT.Bufferinstance allocated withmemAlloc.static XrCompositionLayerReprojectionInfoMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerReprojectionInfoMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrCompositionLayerReprojectionInfoMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerReprojectionInfoMSFTinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrCompositionLayerReprojectionInfoMSFTnext(long value)Sets the specified value to thenext()field.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static intnreprojectionMode(long struct)Unsafe version ofreprojectionMode().static voidnreprojectionMode(long struct, int value)Unsafe version ofreprojectionMode.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.intreprojectionMode()anXrReprojectionModeMSFTenum providing a hint to the reprojection mode to the corresponding projection layer.XrCompositionLayerReprojectionInfoMSFTreprojectionMode(int value)Sets the specified value to thereprojectionMode()field.XrCompositionLayerReprojectionInfoMSFTset(int type, long next, int reprojectionMode)Initializes this struct with the specified values.XrCompositionLayerReprojectionInfoMSFTset(XrCompositionLayerReprojectionInfoMSFT src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrCompositionLayerReprojectionInfoMSFTtype(int value)Sets the specified value to thetype()field.XrCompositionLayerReprojectionInfoMSFTtype$Default()Sets theTYPE_COMPOSITION_LAYER_REPROJECTION_INFO_MSFTvalue to thetype()field.
-
-
-
Constructor Detail
-
XrCompositionLayerReprojectionInfoMSFT
public XrCompositionLayerReprojectionInfoMSFT(java.nio.ByteBuffer container)
Creates aXrCompositionLayerReprojectionInfoMSFTinstance 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.
-
reprojectionMode
public int reprojectionMode()
anXrReprojectionModeMSFTenum providing a hint to the reprojection mode to the corresponding projection layer.
-
type
public XrCompositionLayerReprojectionInfoMSFT type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrCompositionLayerReprojectionInfoMSFT type$Default()
Sets theTYPE_COMPOSITION_LAYER_REPROJECTION_INFO_MSFTvalue to thetype()field.
-
next
public XrCompositionLayerReprojectionInfoMSFT next(long value)
Sets the specified value to thenext()field.
-
reprojectionMode
public XrCompositionLayerReprojectionInfoMSFT reprojectionMode(int value)
Sets the specified value to thereprojectionMode()field.
-
set
public XrCompositionLayerReprojectionInfoMSFT set(int type, long next, int reprojectionMode)
Initializes this struct with the specified values.
-
set
public XrCompositionLayerReprojectionInfoMSFT set(XrCompositionLayerReprojectionInfoMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrCompositionLayerReprojectionInfoMSFT malloc()
Returns a newXrCompositionLayerReprojectionInfoMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrCompositionLayerReprojectionInfoMSFT calloc()
Returns a newXrCompositionLayerReprojectionInfoMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrCompositionLayerReprojectionInfoMSFT create()
Returns a newXrCompositionLayerReprojectionInfoMSFTinstance allocated withBufferUtils.
-
create
public static XrCompositionLayerReprojectionInfoMSFT create(long address)
Returns a newXrCompositionLayerReprojectionInfoMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrCompositionLayerReprojectionInfoMSFT createSafe(long address)
-
malloc
public static XrCompositionLayerReprojectionInfoMSFT.Buffer malloc(int capacity)
Returns a newXrCompositionLayerReprojectionInfoMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrCompositionLayerReprojectionInfoMSFT.Buffer calloc(int capacity)
Returns a newXrCompositionLayerReprojectionInfoMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrCompositionLayerReprojectionInfoMSFT.Buffer create(int capacity)
Returns a newXrCompositionLayerReprojectionInfoMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrCompositionLayerReprojectionInfoMSFT.Buffer create(long address, int capacity)
Create aXrCompositionLayerReprojectionInfoMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrCompositionLayerReprojectionInfoMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrCompositionLayerReprojectionInfoMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrCompositionLayerReprojectionInfoMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrCompositionLayerReprojectionInfoMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrCompositionLayerReprojectionInfoMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrCompositionLayerReprojectionInfoMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrCompositionLayerReprojectionInfoMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrCompositionLayerReprojectionInfoMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrCompositionLayerReprojectionInfoMSFT.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().
-
nreprojectionMode
public static int nreprojectionMode(long struct)
Unsafe version ofreprojectionMode().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nreprojectionMode
public static void nreprojectionMode(long struct, int value)Unsafe version ofreprojectionMode.
-
-