Class VmaVirtualAllocationInfo

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

    public class VmaVirtualAllocationInfo
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Parameters of an existing virtual allocation, returned by GetVirtualAllocationInfo.

    Layout

    
     struct VmaVirtualAllocationInfo {
         VkDeviceSize offset();
         VkDeviceSize size();
         void * pUserData();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • OFFSET, SIZE, PUSERDATA

        The struct member offsets.
    • Constructor Detail

      • VmaVirtualAllocationInfo

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

        public long offset()
        offset of the allocation.

        Offset at which the allocation was made.

      • malloc

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

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

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

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

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

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

        public static VmaVirtualAllocationInfo.Buffer calloc​(int capacity,
                                                             org.lwjgl.system.MemoryStack stack)
        Returns a new VmaVirtualAllocationInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • noffset

        public static long noffset​(long struct)
        Unsafe version of offset().
      • nsize

        public static long nsize​(long struct)
        Unsafe version of size().
      • npUserData

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