Class BGFXInitLimits

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class BGFXInitLimits extends Struct<BGFXInitLimits> implements NativeResource

 struct bgfx_init_limits_t {
     uint16_t maxEncoders;
     uint32_t minResourceCbSize;
     uint32_t maxTransientVbSize;
     uint32_t maxTransientIbSize;
     uint32_t minUniformBufferSize;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int MAXENCODERS
      The struct member offsets.
    • MINRESOURCECBSIZE

      public static final int MINRESOURCECBSIZE
      The struct member offsets.
    • MAXTRANSIENTVBSIZE

      public static final int MAXTRANSIENTVBSIZE
      The struct member offsets.
    • MAXTRANSIENTIBSIZE

      public static final int MAXTRANSIENTIBSIZE
      The struct member offsets.
    • MINUNIFORMBUFFERSIZE

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

    • BGFXInitLimits

      public BGFXInitLimits(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 Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<BGFXInitLimits>
    • maxEncoders

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

      public int minResourceCbSize()
      Returns:
      the value of the minResourceCbSize field.
    • maxTransientVbSize

      public int maxTransientVbSize()
      Returns:
      the value of the maxTransientVbSize field.
    • maxTransientIbSize

      public int maxTransientIbSize()
      Returns:
      the value of the maxTransientIbSize field.
    • minUniformBufferSize

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

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

      public BGFXInitLimits minResourceCbSize(int value)
      Sets the specified value to the minResourceCbSize field.
    • maxTransientVbSize

      public BGFXInitLimits maxTransientVbSize(int value)
      Sets the specified value to the maxTransientVbSize field.
    • maxTransientIbSize

      public BGFXInitLimits maxTransientIbSize(int value)
      Sets the specified value to the maxTransientIbSize field.
    • minUniformBufferSize

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

      public BGFXInitLimits set(short maxEncoders, int minResourceCbSize, int maxTransientVbSize, int maxTransientIbSize, int minUniformBufferSize)
      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

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

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

      public static BGFXInitLimits calloc(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().
    • nminResourceCbSize

      public static int nminResourceCbSize(long struct)
      Unsafe version of minResourceCbSize().
    • nmaxTransientVbSize

      public static int nmaxTransientVbSize(long struct)
      Unsafe version of maxTransientVbSize().
    • nmaxTransientIbSize

      public static int nmaxTransientIbSize(long struct)
      Unsafe version of maxTransientIbSize().
    • nminUniformBufferSize

      public static int nminUniformBufferSize(long struct)
      Unsafe version of minUniformBufferSize().
    • nmaxEncoders

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

      public static void nminResourceCbSize(long struct, int value)
      Unsafe version of minResourceCbSize.
    • nmaxTransientVbSize

      public static void nmaxTransientVbSize(long struct, int value)
      Unsafe version of maxTransientVbSize.
    • nmaxTransientIbSize

      public static void nmaxTransientIbSize(long struct, int value)
      Unsafe version of maxTransientIbSize.
    • nminUniformBufferSize

      public static void nminUniformBufferSize(long struct, int value)
      Unsafe version of minUniformBufferSize.