Package org.lwjgl.openxr
Class XrSystemPassthroughPropertiesFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSystemPassthroughPropertiesFB
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSystemPassthroughPropertiesFB extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceA passthrough system property.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.supportsPassthroughdefines whether the system supports the passthrough feature.
Valid Usage (Implicit)
- The
XR_FB_passthroughextension must be enabled prior to usingXrSystemPassthroughPropertiesFB typemust beTYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FBnextmust beNULLor a valid pointer to the next structure in a structure chain
Layout
struct XrSystemPassthroughPropertiesFB { XrStructureType type; void const * next; XrBool32 supportsPassthrough; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSystemPassthroughPropertiesFB.BufferAn array ofXrSystemPassthroughPropertiesFBstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSUPPORTSPASSTHROUGH
TYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrSystemPassthroughPropertiesFB(java.nio.ByteBuffer container)Creates aXrSystemPassthroughPropertiesFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSystemPassthroughPropertiesFBcalloc()Returns a newXrSystemPassthroughPropertiesFBinstance allocated withmemCalloc.static XrSystemPassthroughPropertiesFB.Buffercalloc(int capacity)Returns a newXrSystemPassthroughPropertiesFB.Bufferinstance allocated withmemCalloc.static XrSystemPassthroughPropertiesFB.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSystemPassthroughPropertiesFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSystemPassthroughPropertiesFBcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSystemPassthroughPropertiesFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSystemPassthroughPropertiesFBcreate()Returns a newXrSystemPassthroughPropertiesFBinstance allocated withBufferUtils.static XrSystemPassthroughPropertiesFB.Buffercreate(int capacity)Returns a newXrSystemPassthroughPropertiesFB.Bufferinstance allocated withBufferUtils.static XrSystemPassthroughPropertiesFBcreate(long address)Returns a newXrSystemPassthroughPropertiesFBinstance for the specified memory address.static XrSystemPassthroughPropertiesFB.Buffercreate(long address, int capacity)Create aXrSystemPassthroughPropertiesFB.Bufferinstance at the specified memory.static XrSystemPassthroughPropertiesFBcreateSafe(long address)static XrSystemPassthroughPropertiesFB.BuffercreateSafe(long address, int capacity)static XrSystemPassthroughPropertiesFBmalloc()Returns a newXrSystemPassthroughPropertiesFBinstance allocated withmemAlloc.static XrSystemPassthroughPropertiesFB.Buffermalloc(int capacity)Returns a newXrSystemPassthroughPropertiesFB.Bufferinstance allocated withmemAlloc.static XrSystemPassthroughPropertiesFB.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSystemPassthroughPropertiesFB.Bufferinstance allocated on the specifiedMemoryStack.static XrSystemPassthroughPropertiesFBmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSystemPassthroughPropertiesFBinstance allocated on the specifiedMemoryStack.longnext()XrSystemPassthroughPropertiesFBnext(long value)Sets the specified value to thenextfield.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static intnsupportsPassthrough(long struct)Unsafe version ofsupportsPassthrough().static voidnsupportsPassthrough(long struct, int value)Unsafe version ofsupportsPassthrough.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrSystemPassthroughPropertiesFBset(int type, long next, boolean supportsPassthrough)Initializes this struct with the specified values.XrSystemPassthroughPropertiesFBset(XrSystemPassthroughPropertiesFB src)Copies the specified struct data to this struct.intsizeof()booleansupportsPassthrough()XrSystemPassthroughPropertiesFBsupportsPassthrough(boolean value)Sets the specified value to thesupportsPassthroughfield.inttype()XrSystemPassthroughPropertiesFBtype(int value)Sets the specified value to thetypefield.XrSystemPassthroughPropertiesFBtype$Default()Sets theTYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FBvalue to thetypefield.
-
-
-
Constructor Detail
-
XrSystemPassthroughPropertiesFB
public XrSystemPassthroughPropertiesFB(java.nio.ByteBuffer container)
Creates aXrSystemPassthroughPropertiesFBinstance 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.
-
supportsPassthrough
public boolean supportsPassthrough()
- Returns:
- the value of the
supportsPassthroughfield.
-
type
public XrSystemPassthroughPropertiesFB type(int value)
Sets the specified value to thetypefield.
-
type$Default
public XrSystemPassthroughPropertiesFB type$Default()
Sets theTYPE_SYSTEM_PASSTHROUGH_PROPERTIES_FBvalue to thetypefield.
-
next
public XrSystemPassthroughPropertiesFB next(long value)
Sets the specified value to thenextfield.
-
supportsPassthrough
public XrSystemPassthroughPropertiesFB supportsPassthrough(boolean value)
Sets the specified value to thesupportsPassthroughfield.
-
set
public XrSystemPassthroughPropertiesFB set(int type, long next, boolean supportsPassthrough)
Initializes this struct with the specified values.
-
set
public XrSystemPassthroughPropertiesFB set(XrSystemPassthroughPropertiesFB src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSystemPassthroughPropertiesFB malloc()
Returns a newXrSystemPassthroughPropertiesFBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSystemPassthroughPropertiesFB calloc()
Returns a newXrSystemPassthroughPropertiesFBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSystemPassthroughPropertiesFB create()
Returns a newXrSystemPassthroughPropertiesFBinstance allocated withBufferUtils.
-
create
public static XrSystemPassthroughPropertiesFB create(long address)
Returns a newXrSystemPassthroughPropertiesFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrSystemPassthroughPropertiesFB createSafe(long address)
-
malloc
public static XrSystemPassthroughPropertiesFB.Buffer malloc(int capacity)
Returns a newXrSystemPassthroughPropertiesFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSystemPassthroughPropertiesFB.Buffer calloc(int capacity)
Returns a newXrSystemPassthroughPropertiesFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSystemPassthroughPropertiesFB.Buffer create(int capacity)
Returns a newXrSystemPassthroughPropertiesFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSystemPassthroughPropertiesFB.Buffer create(long address, int capacity)
Create aXrSystemPassthroughPropertiesFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSystemPassthroughPropertiesFB.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSystemPassthroughPropertiesFB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemPassthroughPropertiesFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSystemPassthroughPropertiesFB calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemPassthroughPropertiesFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSystemPassthroughPropertiesFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemPassthroughPropertiesFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSystemPassthroughPropertiesFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemPassthroughPropertiesFB.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().
-
nsupportsPassthrough
public static int nsupportsPassthrough(long struct)
Unsafe version ofsupportsPassthrough().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nsupportsPassthrough
public static void nsupportsPassthrough(long struct, int value)Unsafe version ofsupportsPassthrough.
-
-