Class VmaDefragmentationInfo

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

    public class VmaDefragmentationInfo
    extends Struct
    implements NativeResource
    Deprecated. Optional configuration parameters to be passed to function Defragment.

    This is a part of the old interface. It is recommended to use structure VmaDefragmentationInfo2 and function DefragmentationBegin instead.

    Member documentation

    • maxBytesToMove – maximum total numbers of bytes that can be copied while moving allocations to different places.

      Default is VK_WHOLE_SIZE, which means no limit.

    • maxAllocationsToMove – maximum number of allocations that can be moved to different place.

      Default is UINT32_MAX, which means no limit.


     struct VmaDefragmentationInfo {
         VkDeviceSize maxBytesToMove;
         uint32_t maxAllocationsToMove;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • VmaDefragmentationInfo

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