Class BGFXInitLimits

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class BGFXInitLimits
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource

    Member documentation

    • maxEncoders – maximum number of encoder threads
    • transientVbSize – maximum transient vertex buffer size
    • transientIbSize – maximum transient index buffer size

    Layout

    
     struct bgfx_init_limits_t {
         uint16_t maxEncoders;
         uint32_t transientVbSize;
         uint32_t transientIbSize;
     }
    • Nested Class Summary

      • 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 MAXENCODERS
      The struct member offsets.
      static int SIZEOF
      The struct size in bytes.
      static int TRANSIENTIBSIZE
      TRANSIENTVBSIZE
      The struct member offsets.
      • Fields inherited from interface org.lwjgl.system.Pointer

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

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

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • MAXENCODERS, TRANSIENTVBSIZE, TRANSIENTIBSIZE

        The struct member offsets.
    • Constructor Detail

      • BGFXInitLimits

        public BGFXInitLimits​(java.nio.ByteBuffer container)
        Creates a BGFXInitLimits 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
      • maxEncoders

        public short maxEncoders()
        Returns the value of the maxEncoders field.
      • transientVbSize

        public int transientVbSize()
        Returns the value of the transientVbSize field.
      • transientIbSize

        public int transientIbSize()
        Returns the value of the transientIbSize field.
      • maxEncoders

        public BGFXInitLimits maxEncoders​(short value)
        Sets the specified value to the maxEncoders field.
      • transientVbSize

        public BGFXInitLimits transientVbSize​(int value)
        Sets the specified value to the transientVbSize field.
      • transientIbSize

        public BGFXInitLimits transientIbSize​(int value)
        Sets the specified value to the transientIbSize field.
      • set

        public BGFXInitLimits set​(short maxEncoders,
                                  int transientVbSize,
                                  int transientIbSize)
        Initializes this struct with the specified values.
      • set

        public BGFXInitLimits set​(BGFXInitLimits src)
        Copies the specified struct data to this struct.
        Parameters:
        src - the source struct
        Returns:
        this struct
      • malloc

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

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

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

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

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

        public static BGFXInitLimits mallocStack()
        Returns a new BGFXInitLimits instance allocated on the thread-local MemoryStack.
      • callocStack

        public static BGFXInitLimits callocStack()
        Returns a new BGFXInitLimits instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static BGFXInitLimits mallocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new BGFXInitLimits instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static BGFXInitLimits callocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new BGFXInitLimits instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • nmaxEncoders

        public static short nmaxEncoders​(long struct)
        Unsafe version of maxEncoders().
      • ntransientVbSize

        public static int ntransientVbSize​(long struct)
        Unsafe version of transientVbSize().
      • ntransientIbSize

        public static int ntransientIbSize​(long struct)
        Unsafe version of transientIbSize().
      • nmaxEncoders

        public static void nmaxEncoders​(long struct,
                                        short value)
        Unsafe version of maxEncoders.
      • ntransientVbSize

        public static void ntransientVbSize​(long struct,
                                            int value)
        Unsafe version of transientVbSize.
      • ntransientIbSize

        public static void ntransientIbSize​(long struct,
                                            int value)
        Unsafe version of transientIbSize.