Package org.lwjgl.openxr
Class XrEventDataPerfSettingsEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrEventDataPerfSettingsEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrEventDataPerfSettingsEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceXrEventDataPerfSettingsEXT.Valid Usage (Implicit)
- The
XR_EXT_performance_settingsextension must be enabled prior to usingXrEventDataPerfSettingsEXT typemust beTYPE_EVENT_DATA_PERF_SETTINGS_EXTnextmust beNULLor a valid pointer to the next structure in a structure chaindomainmust be a validXrPerfSettingsDomainEXTvaluesubDomainmust be a validXrPerfSettingsSubDomainEXTvaluefromLevelmust be a validXrPerfSettingsNotificationLevelEXTvaluetoLevelmust be a validXrPerfSettingsNotificationLevelEXTvalue
Layout
struct XrEventDataPerfSettingsEXT { XrStructureTypetype(); void const *next(); XrPerfSettingsDomainEXTdomain(); XrPerfSettingsSubDomainEXTsubDomain(); XrPerfSettingsNotificationLevelEXTfromLevel(); XrPerfSettingsNotificationLevelEXTtoLevel(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrEventDataPerfSettingsEXT.BufferAn array ofXrEventDataPerfSettingsEXTstructs.
-
Constructor Summary
Constructors Constructor Description XrEventDataPerfSettingsEXT(java.nio.ByteBuffer container)Creates aXrEventDataPerfSettingsEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrEventDataPerfSettingsEXTcalloc()Returns a newXrEventDataPerfSettingsEXTinstance allocated withmemCalloc.static XrEventDataPerfSettingsEXT.Buffercalloc(int capacity)Returns a newXrEventDataPerfSettingsEXT.Bufferinstance allocated withmemCalloc.static XrEventDataPerfSettingsEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataPerfSettingsEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEventDataPerfSettingsEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataPerfSettingsEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEventDataPerfSettingsEXTcreate()Returns a newXrEventDataPerfSettingsEXTinstance allocated withBufferUtils.static XrEventDataPerfSettingsEXT.Buffercreate(int capacity)Returns a newXrEventDataPerfSettingsEXT.Bufferinstance allocated withBufferUtils.static XrEventDataPerfSettingsEXTcreate(long address)Returns a newXrEventDataPerfSettingsEXTinstance for the specified memory address.static XrEventDataPerfSettingsEXT.Buffercreate(long address, int capacity)Create aXrEventDataPerfSettingsEXT.Bufferinstance at the specified memory.static XrEventDataPerfSettingsEXTcreate(XrEventDataBaseHeader value)Downcasts the specifiedXrEventDataBaseHeaderinstance toXrEventDataPerfSettingsEXT.static XrEventDataPerfSettingsEXT.Buffercreate(XrEventDataBaseHeader.Buffer value)Downcasts the specifiedXrEventDataBaseHeader.Bufferinstance toXrEventDataPerfSettingsEXT.Buffer.static XrEventDataPerfSettingsEXTcreateSafe(long address)static XrEventDataPerfSettingsEXT.BuffercreateSafe(long address, int capacity)intdomain(): processing domain in which a threshold has been crossedXrEventDataPerfSettingsEXTdomain(int value)Sets the specified value to thedomain()field.intfromLevel(): enumerated notification level which has been exitedXrEventDataPerfSettingsEXTfromLevel(int value)Sets the specified value to thefromLevel()field.static XrEventDataPerfSettingsEXTmalloc()Returns a newXrEventDataPerfSettingsEXTinstance allocated withmemAlloc.static XrEventDataPerfSettingsEXT.Buffermalloc(int capacity)Returns a newXrEventDataPerfSettingsEXT.Bufferinstance allocated withmemAlloc.static XrEventDataPerfSettingsEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataPerfSettingsEXT.Bufferinstance allocated on the specifiedMemoryStack.static XrEventDataPerfSettingsEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataPerfSettingsEXTinstance allocated on the specifiedMemoryStack.static intndomain(long struct)Unsafe version ofdomain().static voidndomain(long struct, int value)Unsafe version ofdomain.longnext()NULLor a pointer to the next structure in a structure chain.XrEventDataPerfSettingsEXTnext(long value)Sets the specified value to thenext()field.static intnfromLevel(long struct)Unsafe version offromLevel().static voidnfromLevel(long struct, int value)Unsafe version offromLevel.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static intnsubDomain(long struct)Unsafe version ofsubDomain().static voidnsubDomain(long struct, int value)Unsafe version ofsubDomain.static intntoLevel(long struct)Unsafe version oftoLevel().static voidntoLevel(long struct, int value)Unsafe version oftoLevel.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrEventDataPerfSettingsEXTset(int type, long next, int domain, int subDomain, int fromLevel, int toLevel)Initializes this struct with the specified values.XrEventDataPerfSettingsEXTset(XrEventDataPerfSettingsEXT src)Copies the specified struct data to this struct.intsizeof()intsubDomain(): system area in which a threshold has been crossedXrEventDataPerfSettingsEXTsubDomain(int value)Sets the specified value to thesubDomain()field.inttoLevel(): enumerated notification level which has been enteredXrEventDataPerfSettingsEXTtoLevel(int value)Sets the specified value to thetoLevel()field.inttype()theXrStructureTypeof this structure.XrEventDataPerfSettingsEXTtype(int value)Sets the specified value to thetype()field.XrEventDataPerfSettingsEXTtype$Default()Sets theTYPE_EVENT_DATA_PERF_SETTINGS_EXTvalue to thetype()field.
-
-
-
Constructor Detail
-
XrEventDataPerfSettingsEXT
public XrEventDataPerfSettingsEXT(java.nio.ByteBuffer container)
Creates aXrEventDataPerfSettingsEXTinstance 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.
-
domain
public int domain()
: processing domain in which a threshold has been crossed
-
subDomain
public int subDomain()
: system area in which a threshold has been crossed
-
fromLevel
public int fromLevel()
: enumerated notification level which has been exited
-
toLevel
public int toLevel()
: enumerated notification level which has been entered
-
type
public XrEventDataPerfSettingsEXT type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrEventDataPerfSettingsEXT type$Default()
Sets theTYPE_EVENT_DATA_PERF_SETTINGS_EXTvalue to thetype()field.
-
next
public XrEventDataPerfSettingsEXT next(long value)
Sets the specified value to thenext()field.
-
domain
public XrEventDataPerfSettingsEXT domain(int value)
Sets the specified value to thedomain()field.
-
subDomain
public XrEventDataPerfSettingsEXT subDomain(int value)
Sets the specified value to thesubDomain()field.
-
fromLevel
public XrEventDataPerfSettingsEXT fromLevel(int value)
Sets the specified value to thefromLevel()field.
-
toLevel
public XrEventDataPerfSettingsEXT toLevel(int value)
Sets the specified value to thetoLevel()field.
-
set
public XrEventDataPerfSettingsEXT set(int type, long next, int domain, int subDomain, int fromLevel, int toLevel)
Initializes this struct with the specified values.
-
set
public XrEventDataPerfSettingsEXT set(XrEventDataPerfSettingsEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrEventDataPerfSettingsEXT malloc()
Returns a newXrEventDataPerfSettingsEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrEventDataPerfSettingsEXT calloc()
Returns a newXrEventDataPerfSettingsEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrEventDataPerfSettingsEXT create()
Returns a newXrEventDataPerfSettingsEXTinstance allocated withBufferUtils.
-
create
public static XrEventDataPerfSettingsEXT create(long address)
Returns a newXrEventDataPerfSettingsEXTinstance for the specified memory address.
-
createSafe
@Nullable public static XrEventDataPerfSettingsEXT createSafe(long address)
-
create
public static XrEventDataPerfSettingsEXT create(XrEventDataBaseHeader value)
Downcasts the specifiedXrEventDataBaseHeaderinstance toXrEventDataPerfSettingsEXT.
-
malloc
public static XrEventDataPerfSettingsEXT.Buffer malloc(int capacity)
Returns a newXrEventDataPerfSettingsEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrEventDataPerfSettingsEXT.Buffer calloc(int capacity)
Returns a newXrEventDataPerfSettingsEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrEventDataPerfSettingsEXT.Buffer create(int capacity)
Returns a newXrEventDataPerfSettingsEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrEventDataPerfSettingsEXT.Buffer create(long address, int capacity)
Create aXrEventDataPerfSettingsEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrEventDataPerfSettingsEXT.Buffer createSafe(long address, int capacity)
-
create
public static XrEventDataPerfSettingsEXT.Buffer create(XrEventDataBaseHeader.Buffer value)
Downcasts the specifiedXrEventDataBaseHeader.Bufferinstance toXrEventDataPerfSettingsEXT.Buffer.
-
malloc
public static XrEventDataPerfSettingsEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataPerfSettingsEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrEventDataPerfSettingsEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataPerfSettingsEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrEventDataPerfSettingsEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataPerfSettingsEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrEventDataPerfSettingsEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataPerfSettingsEXT.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().
-
ndomain
public static int ndomain(long struct)
Unsafe version ofdomain().
-
nsubDomain
public static int nsubDomain(long struct)
Unsafe version ofsubDomain().
-
nfromLevel
public static int nfromLevel(long struct)
Unsafe version offromLevel().
-
ntoLevel
public static int ntoLevel(long struct)
Unsafe version oftoLevel().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
ndomain
public static void ndomain(long struct, int value)Unsafe version ofdomain.
-
nsubDomain
public static void nsubDomain(long struct, int value)Unsafe version ofsubDomain.
-
nfromLevel
public static void nfromLevel(long struct, int value)Unsafe version offromLevel.
-
ntoLevel
public static void ntoLevel(long struct, int value)Unsafe version oftoLevel.
-
-