Class VmaDefragmentationInfo2.Buffer

    • Constructor Detail

      • Buffer

        public Buffer​(java.nio.ByteBuffer container)
        Creates a new VmaDefragmentationInfo2.Buffer instance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by VmaDefragmentationInfo2.SIZEOF, and its mark will be undefined.

        The created buffer instance holds a strong reference to the container object.

      • Buffer

        public Buffer​(long address,
                      int cap)
    • Method Detail

      • flags

        public int flags()
        Returns the value of the flags field.
      • allocationCount

        public int allocationCount()
        Returns the value of the allocationCount field.
      • pAllocations

        public PointerBuffer pAllocations()
        Returns a PointerBuffer view of the data pointed to by the pAllocations field.
      • pAllocationsChanged

        public java.nio.IntBuffer pAllocationsChanged()
        Returns a IntBuffer view of the data pointed to by the pAllocationsChanged field.
      • poolCount

        public int poolCount()
        Returns the value of the poolCount field.
      • maxCpuBytesToMove

        public long maxCpuBytesToMove()
        Returns the value of the maxCpuBytesToMove field.
      • maxCpuAllocationsToMove

        public int maxCpuAllocationsToMove()
        Returns the value of the maxCpuAllocationsToMove field.
      • maxGpuBytesToMove

        public long maxGpuBytesToMove()
        Returns the value of the maxGpuBytesToMove field.
      • maxGpuAllocationsToMove

        public int maxGpuAllocationsToMove()
        Returns the value of the maxGpuAllocationsToMove field.
      • commandBuffer

        public long commandBuffer()
        Returns the value of the commandBuffer field.
      • pAllocationsChanged

        public VmaDefragmentationInfo2.Buffer pAllocationsChanged​(@Nullable
                                                                  java.nio.IntBuffer value)
        Sets the address of the specified IntBuffer to the pAllocationsChanged field.
      • maxCpuBytesToMove

        public VmaDefragmentationInfo2.Buffer maxCpuBytesToMove​(long value)
        Sets the specified value to the maxCpuBytesToMove field.
      • maxCpuAllocationsToMove

        public VmaDefragmentationInfo2.Buffer maxCpuAllocationsToMove​(int value)
        Sets the specified value to the maxCpuAllocationsToMove field.
      • maxGpuBytesToMove

        public VmaDefragmentationInfo2.Buffer maxGpuBytesToMove​(long value)
        Sets the specified value to the maxGpuBytesToMove field.
      • maxGpuAllocationsToMove

        public VmaDefragmentationInfo2.Buffer maxGpuAllocationsToMove​(int value)
        Sets the specified value to the maxGpuAllocationsToMove field.