Class VmaAllocationCreateInfo

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • FLAGS, USAGE, REQUIREDFLAGS, PREFERREDFLAGS, MEMORYTYPEBITS, POOL, PUSERDATA

        The struct member offsets.
    • Constructor Detail

      • VmaAllocationCreateInfo

        public VmaAllocationCreateInfo​(java.nio.ByteBuffer container)
        Creates a VmaAllocationCreateInfo 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()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • flags

        public int flags()
        Returns the value of the flags field.
      • usage

        public int usage()
        Returns the value of the usage field.
      • requiredFlags

        public int requiredFlags()
        Returns the value of the requiredFlags field.
      • preferredFlags

        public int preferredFlags()
        Returns the value of the preferredFlags field.
      • memoryTypeBits

        public int memoryTypeBits()
        Returns the value of the memoryTypeBits field.
      • pool

        public long pool()
        Returns the value of the pool field.
      • pUserData

        public long pUserData()
        Returns the value of the pUserData field.
      • requiredFlags

        public VmaAllocationCreateInfo requiredFlags​(int value)
        Sets the specified value to the requiredFlags field.
      • preferredFlags

        public VmaAllocationCreateInfo preferredFlags​(int value)
        Sets the specified value to the preferredFlags field.
      • memoryTypeBits

        public VmaAllocationCreateInfo memoryTypeBits​(int value)
        Sets the specified value to the memoryTypeBits field.
      • pUserData

        public VmaAllocationCreateInfo pUserData​(long value)
        Sets the specified value to the pUserData field.
      • set

        public VmaAllocationCreateInfo set​(int flags,
                                           int usage,
                                           int requiredFlags,
                                           int preferredFlags,
                                           int memoryTypeBits,
                                           long pool,
                                           long pUserData)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

        public static int nflags​(long struct)
        Unsafe version of flags().
      • nusage

        public static int nusage​(long struct)
        Unsafe version of usage().
      • nrequiredFlags

        public static int nrequiredFlags​(long struct)
        Unsafe version of requiredFlags().
      • npreferredFlags

        public static int npreferredFlags​(long struct)
        Unsafe version of preferredFlags().
      • nmemoryTypeBits

        public static int nmemoryTypeBits​(long struct)
        Unsafe version of memoryTypeBits().
      • npool

        public static long npool​(long struct)
        Unsafe version of pool().
      • npUserData

        public static long npUserData​(long struct)
        Unsafe version of pUserData().
      • nflags

        public static void nflags​(long struct,
                                  int value)
        Unsafe version of flags.
      • nusage

        public static void nusage​(long struct,
                                  int value)
        Unsafe version of usage.
      • nrequiredFlags

        public static void nrequiredFlags​(long struct,
                                          int value)
        Unsafe version of requiredFlags.
      • npreferredFlags

        public static void npreferredFlags​(long struct,
                                           int value)
        Unsafe version of preferredFlags.
      • nmemoryTypeBits

        public static void nmemoryTypeBits​(long struct,
                                           int value)
        Unsafe version of memoryTypeBits.
      • npool

        public static void npool​(long struct,
                                 long value)
        Unsafe version of pool.
      • npUserData

        public static void npUserData​(long struct,
                                      long value)
        Unsafe version of pUserData.