Class VmaVirtualBlockCreateInfo

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

    public class VmaVirtualBlockCreateInfo
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Parameters of created VmaVirtualBlock object to be passed to CreateVirtualBlock.

    Layout

    
     struct VmaVirtualBlockCreateInfo {
         VkDeviceSize size();
         VmaVirtualBlockCreateFlagBits flags();
         VkAllocationCallbacks const * pAllocationCallbacks();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • SIZE, FLAGS, PALLOCATIONCALLBACKS

        The struct member offsets.
    • Constructor Detail

      • VmaVirtualBlockCreateInfo

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

        public long size()
        total size of the virtual block.

        Sizes can be expressed in bytes or any units you want as long as you are consistent in using them. For example, if you allocate from some array of structures, 1 can mean single instance of entire structure.

      • pAllocationCallbacks

        @Nullable
        public org.lwjgl.vulkan.VkAllocationCallbacks pAllocationCallbacks()
        custom CPU memory allocation callbacks. Optional.

        Optional, can be null. When specified, they will be used for all CPU-side memory allocations.

      • set

        public VmaVirtualBlockCreateInfo set​(long size,
                                             int flags,
                                             @Nullable
                                             org.lwjgl.vulkan.VkAllocationCallbacks pAllocationCallbacks)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

        public static VmaVirtualBlockCreateInfo.Buffer calloc​(int capacity,
                                                              org.lwjgl.system.MemoryStack stack)
        Returns a new VmaVirtualBlockCreateInfo.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
      • nsize

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

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

        @Nullable
        public static org.lwjgl.vulkan.VkAllocationCallbacks npAllocationCallbacks​(long struct)
        Unsafe version of pAllocationCallbacks().
      • nsize

        public static void nsize​(long struct,
                                 long value)
        Unsafe version of size.
      • nflags

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

        public static void npAllocationCallbacks​(long struct,
                                                 @Nullable
                                                 org.lwjgl.vulkan.VkAllocationCallbacks value)
        Unsafe version of pAllocationCallbacks.