Package org.lwjgl.openxr
Class XrPassthroughLayerCreateInfoFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrPassthroughLayerCreateInfoFB
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrPassthroughLayerCreateInfoFB extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceA create structure for passthrough layers.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.flagsXrPassthroughFlagsFBthat specify additional behavior.purposeXrPassthroughLayerPurposeFBthat specifies the layer’s purpose.
Valid Usage (Implicit)
- The
XR_FB_passthroughextension must be enabled prior to usingXrPassthroughLayerCreateInfoFB typemust beTYPE_PASSTHROUGH_LAYER_CREATE_INFO_FBnextmust beNULLor a valid pointer to the next structure in a structure chainpassthroughmust be a validXrPassthroughFBhandleflagsmust be a valid combination ofXrPassthroughFlagBitsFBvaluesflagsmust not be 0purposemust be a validXrPassthroughLayerPurposeFBvalue
See Also
Layout
struct XrPassthroughLayerCreateInfoFB { XrStructureType type; void const * next; XrPassthroughFB passthrough; XrPassthroughFlagsFB flags; XrPassthroughLayerPurposeFB purpose; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrPassthroughLayerCreateInfoFB.BufferAn array ofXrPassthroughLayerCreateInfoFBstructs.
-
Constructor Summary
Constructors Constructor Description XrPassthroughLayerCreateInfoFB(java.nio.ByteBuffer container)Creates aXrPassthroughLayerCreateInfoFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrPassthroughLayerCreateInfoFBcalloc()Returns a newXrPassthroughLayerCreateInfoFBinstance allocated withmemCalloc.static XrPassthroughLayerCreateInfoFB.Buffercalloc(int capacity)Returns a newXrPassthroughLayerCreateInfoFB.Bufferinstance allocated withmemCalloc.static XrPassthroughLayerCreateInfoFB.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrPassthroughLayerCreateInfoFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrPassthroughLayerCreateInfoFBcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrPassthroughLayerCreateInfoFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrPassthroughLayerCreateInfoFBcreate()Returns a newXrPassthroughLayerCreateInfoFBinstance allocated withBufferUtils.static XrPassthroughLayerCreateInfoFB.Buffercreate(int capacity)Returns a newXrPassthroughLayerCreateInfoFB.Bufferinstance allocated withBufferUtils.static XrPassthroughLayerCreateInfoFBcreate(long address)Returns a newXrPassthroughLayerCreateInfoFBinstance for the specified memory address.static XrPassthroughLayerCreateInfoFB.Buffercreate(long address, int capacity)Create aXrPassthroughLayerCreateInfoFB.Bufferinstance at the specified memory.static XrPassthroughLayerCreateInfoFBcreateSafe(long address)static XrPassthroughLayerCreateInfoFB.BuffercreateSafe(long address, int capacity)longflags()XrPassthroughLayerCreateInfoFBflags(long value)Sets the specified value to theflagsfield.static XrPassthroughLayerCreateInfoFBmalloc()Returns a newXrPassthroughLayerCreateInfoFBinstance allocated withmemAlloc.static XrPassthroughLayerCreateInfoFB.Buffermalloc(int capacity)Returns a newXrPassthroughLayerCreateInfoFB.Bufferinstance allocated withmemAlloc.static XrPassthroughLayerCreateInfoFB.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrPassthroughLayerCreateInfoFB.Bufferinstance allocated on the specifiedMemoryStack.static XrPassthroughLayerCreateInfoFBmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrPassthroughLayerCreateInfoFBinstance allocated on the specifiedMemoryStack.longnext()XrPassthroughLayerCreateInfoFBnext(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 longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static longnpassthrough(long struct)Unsafe version ofpassthrough().static voidnpassthrough(long struct, XrPassthroughFB value)Unsafe version ofpassthrough.static intnpurpose(long struct)Unsafe version ofpurpose().static voidnpurpose(long struct, int value)Unsafe version ofpurpose.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.longpassthrough()XrPassthroughLayerCreateInfoFBpassthrough(XrPassthroughFB value)Sets the specified value to thepassthroughfield.intpurpose()XrPassthroughLayerCreateInfoFBpurpose(int value)Sets the specified value to thepurposefield.XrPassthroughLayerCreateInfoFBset(int type, long next, XrPassthroughFB passthrough, long flags, int purpose)Initializes this struct with the specified values.XrPassthroughLayerCreateInfoFBset(XrPassthroughLayerCreateInfoFB src)Copies the specified struct data to this struct.intsizeof()inttype()XrPassthroughLayerCreateInfoFBtype(int value)Sets the specified value to thetypefield.XrPassthroughLayerCreateInfoFBtype$Default()Sets theTYPE_PASSTHROUGH_LAYER_CREATE_INFO_FBvalue to thetypefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
XrPassthroughLayerCreateInfoFB
public XrPassthroughLayerCreateInfoFB(java.nio.ByteBuffer container)
Creates aXrPassthroughLayerCreateInfoFBinstance 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.
-
passthrough
public long passthrough()
- Returns:
- the value of the
passthroughfield.
-
flags
public long flags()
- Returns:
- the value of the
flagsfield.
-
purpose
public int purpose()
- Returns:
- the value of the
purposefield.
-
type
public XrPassthroughLayerCreateInfoFB type(int value)
Sets the specified value to thetypefield.
-
type$Default
public XrPassthroughLayerCreateInfoFB type$Default()
Sets theTYPE_PASSTHROUGH_LAYER_CREATE_INFO_FBvalue to thetypefield.
-
next
public XrPassthroughLayerCreateInfoFB next(long value)
Sets the specified value to thenextfield.
-
passthrough
public XrPassthroughLayerCreateInfoFB passthrough(XrPassthroughFB value)
Sets the specified value to thepassthroughfield.
-
flags
public XrPassthroughLayerCreateInfoFB flags(long value)
Sets the specified value to theflagsfield.
-
purpose
public XrPassthroughLayerCreateInfoFB purpose(int value)
Sets the specified value to thepurposefield.
-
set
public XrPassthroughLayerCreateInfoFB set(int type, long next, XrPassthroughFB passthrough, long flags, int purpose)
Initializes this struct with the specified values.
-
set
public XrPassthroughLayerCreateInfoFB set(XrPassthroughLayerCreateInfoFB src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrPassthroughLayerCreateInfoFB malloc()
Returns a newXrPassthroughLayerCreateInfoFBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrPassthroughLayerCreateInfoFB calloc()
Returns a newXrPassthroughLayerCreateInfoFBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrPassthroughLayerCreateInfoFB create()
Returns a newXrPassthroughLayerCreateInfoFBinstance allocated withBufferUtils.
-
create
public static XrPassthroughLayerCreateInfoFB create(long address)
Returns a newXrPassthroughLayerCreateInfoFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrPassthroughLayerCreateInfoFB createSafe(long address)
-
malloc
public static XrPassthroughLayerCreateInfoFB.Buffer malloc(int capacity)
Returns a newXrPassthroughLayerCreateInfoFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrPassthroughLayerCreateInfoFB.Buffer calloc(int capacity)
Returns a newXrPassthroughLayerCreateInfoFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrPassthroughLayerCreateInfoFB.Buffer create(int capacity)
Returns a newXrPassthroughLayerCreateInfoFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrPassthroughLayerCreateInfoFB.Buffer create(long address, int capacity)
Create aXrPassthroughLayerCreateInfoFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrPassthroughLayerCreateInfoFB.Buffer createSafe(long address, int capacity)
-
malloc
public static XrPassthroughLayerCreateInfoFB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrPassthroughLayerCreateInfoFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrPassthroughLayerCreateInfoFB calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrPassthroughLayerCreateInfoFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrPassthroughLayerCreateInfoFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrPassthroughLayerCreateInfoFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrPassthroughLayerCreateInfoFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrPassthroughLayerCreateInfoFB.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().
-
npassthrough
public static long npassthrough(long struct)
Unsafe version ofpassthrough().
-
nflags
public static long nflags(long struct)
Unsafe version offlags().
-
npurpose
public static int npurpose(long struct)
Unsafe version ofpurpose().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
npassthrough
public static void npassthrough(long struct, XrPassthroughFB value)Unsafe version ofpassthrough.
-
nflags
public static void nflags(long struct, long value)Unsafe version offlags.
-
npurpose
public static void npurpose(long struct, int value)Unsafe version ofpurpose.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-