Class VkMemoryAllocateInfo

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, ALLOCATIONSIZE, MEMORYTYPEINDEX

        The struct member offsets.
    • Constructor Detail

      • VkMemoryAllocateInfo

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

        public int sType()
        Returns the value of the sType field.
      • pNext

        public long pNext()
        Returns the value of the pNext field.
      • allocationSize

        public long allocationSize()
        Returns the value of the allocationSize field.
      • memoryTypeIndex

        public int memoryTypeIndex()
        Returns the value of the memoryTypeIndex field.
      • sType

        public VkMemoryAllocateInfo sType​(int value)
        Sets the specified value to the sType field.
      • pNext

        public VkMemoryAllocateInfo pNext​(long value)
        Sets the specified value to the pNext field.
      • allocationSize

        public VkMemoryAllocateInfo allocationSize​(long value)
        Sets the specified value to the allocationSize field.
      • memoryTypeIndex

        public VkMemoryAllocateInfo memoryTypeIndex​(int value)
        Sets the specified value to the memoryTypeIndex field.
      • set

        public VkMemoryAllocateInfo set​(int sType,
                                        long pNext,
                                        long allocationSize,
                                        int memoryTypeIndex)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

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

        public static int nsType​(long struct)
        Unsafe version of sType().
      • npNext

        public static long npNext​(long struct)
        Unsafe version of pNext().
      • nallocationSize

        public static long nallocationSize​(long struct)
        Unsafe version of allocationSize().
      • nmemoryTypeIndex

        public static int nmemoryTypeIndex​(long struct)
        Unsafe version of memoryTypeIndex().
      • nsType

        public static void nsType​(long struct,
                                  int value)
        Unsafe version of sType.
      • npNext

        public static void npNext​(long struct,
                                  long value)
        Unsafe version of pNext.
      • nallocationSize

        public static void nallocationSize​(long struct,
                                           long value)
        Unsafe version of allocationSize.
      • nmemoryTypeIndex

        public static void nmemoryTypeIndex​(long struct,
                                            int value)
        Unsafe version of memoryTypeIndex.