Class VmaDefragmentationStats

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

    public class VmaDefragmentationStats
    extends Struct
    implements NativeResource
    Statistics returned by function Defragment.

    Member documentation

    • bytesMoved – total number of bytes that have been copied while moving allocations to different places
    • bytesFreed – total number of bytes that have been released to the system by freeing empty VkDeviceMemory objects
    • allocationsMoved – tumber of allocations that have been moved to different places
    • deviceMemoryBlocksFreed – number of empty VkDeviceMemory objects that have been released to the system

    Layout

    
     struct VmaDefragmentationStats {
         VkDeviceSize bytesMoved;
         VkDeviceSize bytesFreed;
         uint32_t allocationsMoved;
         uint32_t deviceMemoryBlocksFreed;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • BYTESMOVED, BYTESFREED, ALLOCATIONSMOVED, DEVICEMEMORYBLOCKSFREED

        The struct member offsets.
    • Constructor Detail

      • VmaDefragmentationStats

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