Package org.lwjgl.openxr
Class XrCompositionLayerImageLayoutFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrCompositionLayerImageLayoutFB
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrCompositionLayerImageLayoutFB extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourcespecifies image layout for composition layers.Description
XrCompositionLayerImageLayoutFBcontains additional flags used to change the interpretation of the image layout for a composition layer.To specify the additional flags, you must create a
XrCompositionLayerImageLayoutFBstructure and pass it via theXrCompositionLayerBaseHeaderstructure’snextparameter.Valid Usage (Implicit)
- The
XR_FB_composition_layer_image_layoutextension must be enabled prior to usingXrCompositionLayerImageLayoutFB typemust beTYPE_COMPOSITION_LAYER_IMAGE_LAYOUT_FBnextmust beNULLor a valid pointer to the next structure in a structure chainflagsmust be 0 or a valid combination ofXrCompositionLayerImageLayoutFlagBitsFBvalues
See Also
Layout
struct XrCompositionLayerImageLayoutFB { XrStructureTypetype(); void *next(); XrCompositionLayerImageLayoutFlagsFBflags(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrCompositionLayerImageLayoutFB.BufferAn array ofXrCompositionLayerImageLayoutFBstructs.
-
Constructor Summary
Constructors Constructor Description XrCompositionLayerImageLayoutFB(java.nio.ByteBuffer container)Creates aXrCompositionLayerImageLayoutFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrCompositionLayerImageLayoutFBcalloc()Returns a newXrCompositionLayerImageLayoutFBinstance allocated withmemCalloc.static XrCompositionLayerImageLayoutFB.Buffercalloc(int capacity)Returns a newXrCompositionLayerImageLayoutFB.Bufferinstance allocated withmemCalloc.static XrCompositionLayerImageLayoutFB.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerImageLayoutFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrCompositionLayerImageLayoutFBcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerImageLayoutFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrCompositionLayerImageLayoutFBcreate()Returns a newXrCompositionLayerImageLayoutFBinstance allocated withBufferUtils.static XrCompositionLayerImageLayoutFB.Buffercreate(int capacity)Returns a newXrCompositionLayerImageLayoutFB.Bufferinstance allocated withBufferUtils.static XrCompositionLayerImageLayoutFBcreate(long address)Returns a newXrCompositionLayerImageLayoutFBinstance for the specified memory address.static XrCompositionLayerImageLayoutFB.Buffercreate(long address, int capacity)Create aXrCompositionLayerImageLayoutFB.Bufferinstance at the specified memory.static XrCompositionLayerImageLayoutFBcreateSafe(long address)static XrCompositionLayerImageLayoutFB.BuffercreateSafe(long address, int capacity)longflags()a bitmask ofXrCompositionLayerImageLayoutFlagBitsFB.XrCompositionLayerImageLayoutFBflags(long value)Sets the specified value to theflags()field.static XrCompositionLayerImageLayoutFBmalloc()Returns a newXrCompositionLayerImageLayoutFBinstance allocated withmemAlloc.static XrCompositionLayerImageLayoutFB.Buffermalloc(int capacity)Returns a newXrCompositionLayerImageLayoutFB.Bufferinstance allocated withmemAlloc.static XrCompositionLayerImageLayoutFB.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerImageLayoutFB.Bufferinstance allocated on the specifiedMemoryStack.static XrCompositionLayerImageLayoutFBmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerImageLayoutFBinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrCompositionLayerImageLayoutFBnext(long value)Sets the specified value to thenext()field.static longnflags(long struct)Unsafe version offlags().static voidnflags(long struct, long value)Unsafe version offlags.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.XrCompositionLayerImageLayoutFBset(int type, long next, long flags)Initializes this struct with the specified values.XrCompositionLayerImageLayoutFBset(XrCompositionLayerImageLayoutFB src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrCompositionLayerImageLayoutFBtype(int value)Sets the specified value to thetype()field.XrCompositionLayerImageLayoutFBtype$Default()Sets theTYPE_COMPOSITION_LAYER_IMAGE_LAYOUT_FBvalue to thetype()field.
-
-
-
Constructor Detail
-
XrCompositionLayerImageLayoutFB
public XrCompositionLayerImageLayoutFB(java.nio.ByteBuffer container)
Creates aXrCompositionLayerImageLayoutFBinstance 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. No such structures are defined in core OpenXR or this extension.
-
flags
public long flags()
a bitmask ofXrCompositionLayerImageLayoutFlagBitsFB.
-
type
public XrCompositionLayerImageLayoutFB type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrCompositionLayerImageLayoutFB type$Default()
Sets theTYPE_COMPOSITION_LAYER_IMAGE_LAYOUT_FBvalue to thetype()field.
-
next
public XrCompositionLayerImageLayoutFB next(long value)
Sets the specified value to thenext()field.
-
flags
public XrCompositionLayerImageLayoutFB flags(long value)
Sets the specified value to theflags()field.
-
set
public XrCompositionLayerImageLayoutFB set(int type, long next, long flags)
Initializes this struct with the specified values.
-
set
public XrCompositionLayerImageLayoutFB set(XrCompositionLayerImageLayoutFB src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrCompositionLayerImageLayoutFB malloc()
Returns a newXrCompositionLayerImageLayoutFBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrCompositionLayerImageLayoutFB calloc()
Returns a newXrCompositionLayerImageLayoutFBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrCompositionLayerImageLayoutFB create()
Returns a newXrCompositionLayerImageLayoutFBinstance allocated withBufferUtils.
-
create
public static XrCompositionLayerImageLayoutFB create(long address)
Returns a newXrCompositionLayerImageLayoutFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrCompositionLayerImageLayoutFB createSafe(long address)
-
malloc
public static XrCompositionLayerImageLayoutFB.Buffer malloc(int capacity)
Returns a newXrCompositionLayerImageLayoutFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrCompositionLayerImageLayoutFB.Buffer calloc(int capacity)
Returns a newXrCompositionLayerImageLayoutFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrCompositionLayerImageLayoutFB.Buffer create(int capacity)
Returns a newXrCompositionLayerImageLayoutFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrCompositionLayerImageLayoutFB.Buffer create(long address, int capacity)
Create aXrCompositionLayerImageLayoutFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrCompositionLayerImageLayoutFB.Buffer createSafe(long address, int capacity)
-
malloc
public static XrCompositionLayerImageLayoutFB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrCompositionLayerImageLayoutFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrCompositionLayerImageLayoutFB calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrCompositionLayerImageLayoutFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrCompositionLayerImageLayoutFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrCompositionLayerImageLayoutFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrCompositionLayerImageLayoutFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrCompositionLayerImageLayoutFB.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().
-
nflags
public static long nflags(long struct)
Unsafe version offlags().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nflags
public static void nflags(long struct, long value)Unsafe version offlags.
-
-