Package org.lwjgl.openxr
Class XrBindingModificationsKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrBindingModificationsKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrBindingModificationsKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceSuggested bindings with binding modification details.Valid Usage (Implicit)
- The
XR_KHR_binding_modificationextension must be enabled prior to usingXrBindingModificationsKHR typemust beTYPE_BINDING_MODIFICATIONS_KHRnextmust beNULLor a valid pointer to the next structure in a structure chain- If
bindingModificationCountis not 0,bindingModificationsmust be a pointer to an array ofbindingModificationCountvalidXrBindingModificationBaseHeaderKHR-based structures. See also:XrInteractionProfileAnalogThresholdVALVE
See Also
XrBindingModificationBaseHeaderKHR,SuggestInteractionProfileBindingsLayout
struct XrBindingModificationsKHR { XrStructureTypetype(); void const *next(); uint32_tbindingModificationCount();XrBindingModificationBaseHeaderKHRconst * const *bindingModifications(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrBindingModificationsKHR.BufferAn array ofXrBindingModificationsKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBINDINGMODIFICATIONCOUNT
BINDINGMODIFICATIONS
NEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrBindingModificationsKHR(java.nio.ByteBuffer container)Creates aXrBindingModificationsKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intbindingModificationCount()the number of binding modifications in the array pointed to bybindingModifications.XrBindingModificationsKHRbindingModificationCount(int value)Sets the specified value to thebindingModificationCount()field.org.lwjgl.PointerBufferbindingModifications()a pointer to an array of pointers to binding modification structures based onXrBindingModificationBaseHeaderKHR, that define all of the application’s suggested binding modifications for the specified interaction profile.XrBindingModificationsKHRbindingModifications(org.lwjgl.PointerBuffer value)Sets the address of the specifiedPointerBufferto thebindingModifications()field.static XrBindingModificationsKHRcalloc()Returns a newXrBindingModificationsKHRinstance allocated withmemCalloc.static XrBindingModificationsKHR.Buffercalloc(int capacity)Returns a newXrBindingModificationsKHR.Bufferinstance allocated withmemCalloc.static XrBindingModificationsKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrBindingModificationsKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrBindingModificationsKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrBindingModificationsKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrBindingModificationsKHRcreate()Returns a newXrBindingModificationsKHRinstance allocated withBufferUtils.static XrBindingModificationsKHR.Buffercreate(int capacity)Returns a newXrBindingModificationsKHR.Bufferinstance allocated withBufferUtils.static XrBindingModificationsKHRcreate(long address)Returns a newXrBindingModificationsKHRinstance for the specified memory address.static XrBindingModificationsKHR.Buffercreate(long address, int capacity)Create aXrBindingModificationsKHR.Bufferinstance at the specified memory.static XrBindingModificationsKHRcreateSafe(long address)static XrBindingModificationsKHR.BuffercreateSafe(long address, int capacity)static XrBindingModificationsKHRmalloc()Returns a newXrBindingModificationsKHRinstance allocated withmemAlloc.static XrBindingModificationsKHR.Buffermalloc(int capacity)Returns a newXrBindingModificationsKHR.Bufferinstance allocated withmemAlloc.static XrBindingModificationsKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrBindingModificationsKHR.Bufferinstance allocated on the specifiedMemoryStack.static XrBindingModificationsKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrBindingModificationsKHRinstance allocated on the specifiedMemoryStack.static intnbindingModificationCount(long struct)Unsafe version ofbindingModificationCount().static voidnbindingModificationCount(long struct, int value)Sets the specified value to thebindingModificationCountfield of the specifiedstruct.static org.lwjgl.PointerBuffernbindingModifications(long struct)Unsafe version ofbindingModifications.static voidnbindingModifications(long struct, org.lwjgl.PointerBuffer value)Unsafe version ofbindingModifications.longnext()NULLor a pointer to the next structure in a structure chain.XrBindingModificationsKHRnext(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 intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrBindingModificationsKHRset(int type, long next, int bindingModificationCount, org.lwjgl.PointerBuffer bindingModifications)Initializes this struct with the specified values.XrBindingModificationsKHRset(XrBindingModificationsKHR src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrBindingModificationsKHRtype(int value)Sets the specified value to thetype()field.XrBindingModificationsKHRtype$Default()Sets theTYPE_BINDING_MODIFICATIONS_KHRvalue to thetype()field.
-
-
-
Constructor Detail
-
XrBindingModificationsKHR
public XrBindingModificationsKHR(java.nio.ByteBuffer container)
Creates aXrBindingModificationsKHRinstance 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.
-
bindingModificationCount
public int bindingModificationCount()
the number of binding modifications in the array pointed to bybindingModifications.
-
bindingModifications
@Nullable public org.lwjgl.PointerBuffer bindingModifications()
a pointer to an array of pointers to binding modification structures based onXrBindingModificationBaseHeaderKHR, that define all of the application’s suggested binding modifications for the specified interaction profile.
-
type
public XrBindingModificationsKHR type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrBindingModificationsKHR type$Default()
Sets theTYPE_BINDING_MODIFICATIONS_KHRvalue to thetype()field.
-
next
public XrBindingModificationsKHR next(long value)
Sets the specified value to thenext()field.
-
bindingModificationCount
public XrBindingModificationsKHR bindingModificationCount(int value)
Sets the specified value to thebindingModificationCount()field.
-
bindingModifications
public XrBindingModificationsKHR bindingModifications(@Nullable org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBufferto thebindingModifications()field.
-
set
public XrBindingModificationsKHR set(int type, long next, int bindingModificationCount, @Nullable org.lwjgl.PointerBuffer bindingModifications)
Initializes this struct with the specified values.
-
set
public XrBindingModificationsKHR set(XrBindingModificationsKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrBindingModificationsKHR malloc()
Returns a newXrBindingModificationsKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrBindingModificationsKHR calloc()
Returns a newXrBindingModificationsKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrBindingModificationsKHR create()
Returns a newXrBindingModificationsKHRinstance allocated withBufferUtils.
-
create
public static XrBindingModificationsKHR create(long address)
Returns a newXrBindingModificationsKHRinstance for the specified memory address.
-
createSafe
@Nullable public static XrBindingModificationsKHR createSafe(long address)
-
malloc
public static XrBindingModificationsKHR.Buffer malloc(int capacity)
Returns a newXrBindingModificationsKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrBindingModificationsKHR.Buffer calloc(int capacity)
Returns a newXrBindingModificationsKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrBindingModificationsKHR.Buffer create(int capacity)
Returns a newXrBindingModificationsKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrBindingModificationsKHR.Buffer create(long address, int capacity)
Create aXrBindingModificationsKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrBindingModificationsKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static XrBindingModificationsKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrBindingModificationsKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrBindingModificationsKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrBindingModificationsKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrBindingModificationsKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrBindingModificationsKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrBindingModificationsKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrBindingModificationsKHR.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().
-
nbindingModificationCount
public static int nbindingModificationCount(long struct)
Unsafe version ofbindingModificationCount().
-
nbindingModifications
@Nullable public static org.lwjgl.PointerBuffer nbindingModifications(long struct)
Unsafe version ofbindingModifications.
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nbindingModificationCount
public static void nbindingModificationCount(long struct, int value)Sets the specified value to thebindingModificationCountfield of the specifiedstruct.
-
nbindingModifications
public static void nbindingModifications(long struct, @Nullable org.lwjgl.PointerBuffer value)Unsafe version ofbindingModifications.
-
-