Class VkMemoryRequirements

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

    public class VkMemoryRequirements
    extends Struct
    implements NativeResource
    Structure specifying memory requirements.

    Member documentation

    • size – the size, in bytes, of the memory allocation required: for the resource.
    • alignment – the alignment, in bytes, of the offset within the allocation required: for the resource.
    • memoryTypeBits – a bitmask and contains one bit set for every supported memory type for the resource. Bit i is set if and only if the memory type i in the VkPhysicalDeviceMemoryProperties structure for the physical device is supported for the resource.

    Layout

    
     struct VkMemoryRequirements {
         VkDeviceSize size;
         VkDeviceSize alignment;
         uint32_t memoryTypeBits;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • SIZE, ALIGNMENT, MEMORYTYPEBITS

        The struct member offsets.
    • Constructor Detail

      • VkMemoryRequirements

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