Package org.lwjgl.openxr
Class XrCompositionLayerPassthroughFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrCompositionLayerPassthroughFB
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrCompositionLayerPassthroughFB extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceA composition layer for passthrough.Member Descriptions
typeis theXrStructureTypeof this structure.nextisNULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.flagsis a bitmask ofXrCompositionLayerFlagBitsthat specify additional behavior.spaceis theXrSpacethat specifies the layer’s space - must beNULL_HANDLE.layeris theXrPassthroughLayerFBthat defines this layer’s behavior.
Valid Usage (Implicit)
- The
XR_FB_passthroughextension must be enabled prior to usingXrCompositionLayerPassthroughFB typemust beTYPE_COMPOSITION_LAYER_PASSTHROUGH_FBnextmust beNULLor a valid pointer to the next structure in a structure chainflagsmust be a valid combination ofXrCompositionLayerFlagBitsvaluesflagsmust not be 0spacemust be a validXrSpacehandlelayerHandlemust be a validXrPassthroughLayerFBhandle- Both of
layerHandleandspacemust have been created, allocated, or retrieved from the sameXrSession
See Also
Layout
struct XrCompositionLayerPassthroughFB { XrStructureType type; void const * next; XrCompositionLayerFlags flags; XrSpace space; XrPassthroughLayerFB layerHandle; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrCompositionLayerPassthroughFB.BufferAn array ofXrCompositionLayerPassthroughFBstructs.
-
Constructor Summary
Constructors Constructor Description XrCompositionLayerPassthroughFB(java.nio.ByteBuffer container)Creates aXrCompositionLayerPassthroughFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrCompositionLayerPassthroughFBcalloc()Returns a newXrCompositionLayerPassthroughFBinstance allocated withmemCalloc.static XrCompositionLayerPassthroughFB.Buffercalloc(int capacity)Returns a newXrCompositionLayerPassthroughFB.Bufferinstance allocated withmemCalloc.static XrCompositionLayerPassthroughFB.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerPassthroughFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrCompositionLayerPassthroughFBcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerPassthroughFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrCompositionLayerPassthroughFBcreate()Returns a newXrCompositionLayerPassthroughFBinstance allocated withBufferUtils.static XrCompositionLayerPassthroughFB.Buffercreate(int capacity)Returns a newXrCompositionLayerPassthroughFB.Bufferinstance allocated withBufferUtils.static XrCompositionLayerPassthroughFBcreate(long address)Returns a newXrCompositionLayerPassthroughFBinstance for the specified memory address.static XrCompositionLayerPassthroughFB.Buffercreate(long address, int capacity)Create aXrCompositionLayerPassthroughFB.Bufferinstance at the specified memory.static XrCompositionLayerPassthroughFBcreateSafe(long address)static XrCompositionLayerPassthroughFB.BuffercreateSafe(long address, int capacity)longflags()XrCompositionLayerPassthroughFBflags(long value)Sets the specified value to theflagsfield.longlayerHandle()XrCompositionLayerPassthroughFBlayerHandle(XrPassthroughLayerFB value)Sets the specified value to thelayerHandlefield.static XrCompositionLayerPassthroughFBmalloc()Returns a newXrCompositionLayerPassthroughFBinstance allocated withmemAlloc.static XrCompositionLayerPassthroughFB.Buffermalloc(int capacity)Returns a newXrCompositionLayerPassthroughFB.Bufferinstance allocated withmemAlloc.static XrCompositionLayerPassthroughFB.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerPassthroughFB.Bufferinstance allocated on the specifiedMemoryStack.static XrCompositionLayerPassthroughFBmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerPassthroughFBinstance allocated on the specifiedMemoryStack.longnext()XrCompositionLayerPassthroughFBnext(long value)Sets the specified value to thenextfield.static longnflags(long struct)Unsafe version offlags().static voidnflags(long struct, long value)Unsafe version offlags.static longnlayerHandle(long struct)Unsafe version oflayerHandle().static voidnlayerHandle(long struct, XrPassthroughLayerFB value)Unsafe version oflayerHandle.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static longnspace(long struct)Unsafe version ofspace().static voidnspace(long struct, XrSpace value)Unsafe version ofspace.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrCompositionLayerPassthroughFBset(int type, long next, long flags, XrSpace space, XrPassthroughLayerFB layerHandle)Initializes this struct with the specified values.XrCompositionLayerPassthroughFBset(XrCompositionLayerPassthroughFB src)Copies the specified struct data to this struct.intsizeof()longspace()XrCompositionLayerPassthroughFBspace(XrSpace value)Sets the specified value to thespacefield.inttype()XrCompositionLayerPassthroughFBtype(int value)Sets the specified value to thetypefield.XrCompositionLayerPassthroughFBtype$Default()Sets theTYPE_COMPOSITION_LAYER_PASSTHROUGH_FBvalue to thetypefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
XrCompositionLayerPassthroughFB
public XrCompositionLayerPassthroughFB(java.nio.ByteBuffer container)
Creates aXrCompositionLayerPassthroughFBinstance 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()
- Returns:
- the value of the
typefield.
-
next
public long next()
- Returns:
- the value of the
nextfield.
-
flags
public long flags()
- Returns:
- the value of the
flagsfield.
-
space
public long space()
- Returns:
- the value of the
spacefield.
-
layerHandle
public long layerHandle()
- Returns:
- the value of the
layerHandlefield.
-
type
public XrCompositionLayerPassthroughFB type(int value)
Sets the specified value to thetypefield.
-
type$Default
public XrCompositionLayerPassthroughFB type$Default()
Sets theTYPE_COMPOSITION_LAYER_PASSTHROUGH_FBvalue to thetypefield.
-
next
public XrCompositionLayerPassthroughFB next(long value)
Sets the specified value to thenextfield.
-
flags
public XrCompositionLayerPassthroughFB flags(long value)
Sets the specified value to theflagsfield.
-
space
public XrCompositionLayerPassthroughFB space(XrSpace value)
Sets the specified value to thespacefield.
-
layerHandle
public XrCompositionLayerPassthroughFB layerHandle(XrPassthroughLayerFB value)
Sets the specified value to thelayerHandlefield.
-
set
public XrCompositionLayerPassthroughFB set(int type, long next, long flags, XrSpace space, XrPassthroughLayerFB layerHandle)
Initializes this struct with the specified values.
-
set
public XrCompositionLayerPassthroughFB set(XrCompositionLayerPassthroughFB src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrCompositionLayerPassthroughFB malloc()
Returns a newXrCompositionLayerPassthroughFBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrCompositionLayerPassthroughFB calloc()
Returns a newXrCompositionLayerPassthroughFBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrCompositionLayerPassthroughFB create()
Returns a newXrCompositionLayerPassthroughFBinstance allocated withBufferUtils.
-
create
public static XrCompositionLayerPassthroughFB create(long address)
Returns a newXrCompositionLayerPassthroughFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrCompositionLayerPassthroughFB createSafe(long address)
-
malloc
public static XrCompositionLayerPassthroughFB.Buffer malloc(int capacity)
Returns a newXrCompositionLayerPassthroughFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrCompositionLayerPassthroughFB.Buffer calloc(int capacity)
Returns a newXrCompositionLayerPassthroughFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrCompositionLayerPassthroughFB.Buffer create(int capacity)
Returns a newXrCompositionLayerPassthroughFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrCompositionLayerPassthroughFB.Buffer create(long address, int capacity)
Create aXrCompositionLayerPassthroughFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrCompositionLayerPassthroughFB.Buffer createSafe(long address, int capacity)
-
malloc
public static XrCompositionLayerPassthroughFB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrCompositionLayerPassthroughFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrCompositionLayerPassthroughFB calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrCompositionLayerPassthroughFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrCompositionLayerPassthroughFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrCompositionLayerPassthroughFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrCompositionLayerPassthroughFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrCompositionLayerPassthroughFB.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().
-
nspace
public static long nspace(long struct)
Unsafe version ofspace().
-
nlayerHandle
public static long nlayerHandle(long struct)
Unsafe version oflayerHandle().
-
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.
-
nlayerHandle
public static void nlayerHandle(long struct, XrPassthroughLayerFB value)Unsafe version oflayerHandle.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-