Class CXTUResourceUsageEntry

  • All Implemented Interfaces:
    org.lwjgl.system.Pointer

    public class CXTUResourceUsageEntry
    extends org.lwjgl.system.Struct

    Member documentation

    • kind – the memory usage category
    • amount – amount of resources used. The units will depend on the resource kind.

    Layout

    
     struct CXTUResourceUsageEntry {
         enum CXTUResourceUsageKind kind;
         unsigned long amount;
     }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  CXTUResourceUsageEntry.Buffer
      An array of CXTUResourceUsageEntry structs.
      • Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

        org.lwjgl.system.Pointer.Default
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ALIGNOF
      The struct alignment in bytes.
      static int AMOUNT
      KIND
      The struct member offsets.
      static int SIZEOF
      The struct size in bytes.
      • Fields inherited from interface org.lwjgl.system.Pointer

        BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
    • Constructor Summary

      Constructors 
      Constructor Description
      CXTUResourceUsageEntry​(java.nio.ByteBuffer container)
      Creates a CXTUResourceUsageEntry instance at the current position of the specified ByteBuffer container.
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • KIND, AMOUNT

        The struct member offsets.
    • Constructor Detail

      • CXTUResourceUsageEntry

        public CXTUResourceUsageEntry​(java.nio.ByteBuffer container)
        Creates a CXTUResourceUsageEntry 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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • kind

        public int kind()
        Returns the value of the kind field.
      • amount

        public long amount()
        Returns the value of the amount field.
      • create

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

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

        public static int nkind​(long struct)
        Unsafe version of kind().
      • namount

        public static long namount​(long struct)
        Unsafe version of amount().