Class XrEventDataPerfSettingsEXT

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrEventDataPerfSettingsEXT>
org.lwjgl.openxr.XrEventDataPerfSettingsEXT
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class XrEventDataPerfSettingsEXT extends org.lwjgl.system.Struct<XrEventDataPerfSettingsEXT> implements org.lwjgl.system.NativeResource
XrEventDataPerfSettingsEXT.
Valid Usage (Implicit)

Layout


 struct XrEventDataPerfSettingsEXT {
     XrStructureType type();
     void const * next();
     XrPerfSettingsDomainEXT domain();
     XrPerfSettingsSubDomainEXT subDomain();
     XrPerfSettingsNotificationLevelEXT fromLevel();
     XrPerfSettingsNotificationLevelEXT toLevel();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • TYPE

      public static final int TYPE
      The struct member offsets.
    • NEXT

      public static final int NEXT
      The struct member offsets.
    • DOMAIN

      public static final int DOMAIN
      The struct member offsets.
    • SUBDOMAIN

      public static final int SUBDOMAIN
      The struct member offsets.
    • FROMLEVEL

      public static final int FROMLEVEL
      The struct member offsets.
    • TOLEVEL

      public static final int TOLEVEL
      The struct member offsets.
  • Constructor Details

    • XrEventDataPerfSettingsEXT

      public XrEventDataPerfSettingsEXT(ByteBuffer container)
      Creates a XrEventDataPerfSettingsEXT instance at the current position of the specified ByteBuffer container. 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 Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<XrEventDataPerfSettingsEXT>
    • type

      public int type()
      the XrStructureType of this structure.
    • next

      public long next()
      NULL or 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 the type() field.
    • type$Default

      public XrEventDataPerfSettingsEXT type$Default()
      Sets the TYPE_EVENT_DATA_PERF_SETTINGS_EXT value to the type() field.
    • next

      public XrEventDataPerfSettingsEXT next(long value)
      Sets the specified value to the next() field.
    • set

      public XrEventDataPerfSettingsEXT set(int type, long next)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static XrEventDataPerfSettingsEXT malloc()
      Returns a new XrEventDataPerfSettingsEXT instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static XrEventDataPerfSettingsEXT calloc()
      Returns a new XrEventDataPerfSettingsEXT instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static XrEventDataPerfSettingsEXT create()
      Returns a new XrEventDataPerfSettingsEXT instance allocated with BufferUtils.
    • create

      public static XrEventDataPerfSettingsEXT create(long address)
      Returns a new XrEventDataPerfSettingsEXT instance for the specified memory address.
    • createSafe

      public static @Nullable XrEventDataPerfSettingsEXT createSafe(long address)
      Like create, but returns null if address is NULL.
    • create

      public static XrEventDataPerfSettingsEXT create(XrEventDataBaseHeader value)
      Downcasts the specified XrEventDataBaseHeader instance to XrEventDataPerfSettingsEXT.
    • malloc

      public static XrEventDataPerfSettingsEXT.Buffer malloc(int capacity)
      Returns a new XrEventDataPerfSettingsEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static XrEventDataPerfSettingsEXT.Buffer calloc(int capacity)
      Returns a new XrEventDataPerfSettingsEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static XrEventDataPerfSettingsEXT.Buffer create(int capacity)
      Returns a new XrEventDataPerfSettingsEXT.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static XrEventDataPerfSettingsEXT.Buffer create(long address, int capacity)
      Create a XrEventDataPerfSettingsEXT.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable XrEventDataPerfSettingsEXT.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • create

      Downcasts the specified XrEventDataBaseHeader.Buffer instance to XrEventDataPerfSettingsEXT.Buffer.
    • malloc

      public static XrEventDataPerfSettingsEXT malloc(org.lwjgl.system.MemoryStack stack)
      Returns a new XrEventDataPerfSettingsEXT instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static XrEventDataPerfSettingsEXT calloc(org.lwjgl.system.MemoryStack stack)
      Returns a new XrEventDataPerfSettingsEXT instance allocated on the specified MemoryStack and 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 new XrEventDataPerfSettingsEXT.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static XrEventDataPerfSettingsEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new XrEventDataPerfSettingsEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • ntype

      public static int ntype(long struct)
      Unsafe version of type().
    • nnext

      public static long nnext(long struct)
      Unsafe version of next().
    • ndomain

      public static int ndomain(long struct)
      Unsafe version of domain().
    • nsubDomain

      public static int nsubDomain(long struct)
      Unsafe version of subDomain().
    • nfromLevel

      public static int nfromLevel(long struct)
      Unsafe version of fromLevel().
    • ntoLevel

      public static int ntoLevel(long struct)
      Unsafe version of toLevel().
    • ntype

      public static void ntype(long struct, int value)
      Unsafe version of type.
    • nnext

      public static void nnext(long struct, long value)
      Unsafe version of next.