Class VkMemoryType

All Implemented Interfaces:
Pointer

public class VkMemoryType extends Struct<VkMemoryType>
Structure specifying memory type.
See Also

VkPhysicalDeviceMemoryProperties

Layout


 struct VkMemoryType {
     VkMemoryPropertyFlags propertyFlags();
     uint32_t heapIndex();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • PROPERTYFLAGS

      public static final int PROPERTYFLAGS
      The struct member offsets.
    • HEAPINDEX

      public static final int HEAPINDEX
      The struct member offsets.
  • Constructor Details

    • VkMemoryType

      public VkMemoryType(ByteBuffer container)
      Creates a VkMemoryType 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 Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<VkMemoryType>
    • propertyFlags

      public int propertyFlags()
      a bitmask of VkMemoryPropertyFlagBits of properties for this memory type.
    • heapIndex

      public int heapIndex()
      describes which memory heap this memory type corresponds to, and must be less than memoryHeapCount from the VkPhysicalDeviceMemoryProperties structure.
    • create

      public static VkMemoryType create(long address)
      Returns a new VkMemoryType instance for the specified memory address.
    • createSafe

      @Nullable public static VkMemoryType createSafe(long address)
      Like create, but returns null if address is NULL.
    • create

      public static VkMemoryType.Buffer create(long address, int capacity)
      Create a VkMemoryType.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      @Nullable public static VkMemoryType.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • npropertyFlags

      public static int npropertyFlags(long struct)
      Unsafe version of propertyFlags().
    • nheapIndex

      public static int nheapIndex(long struct)
      Unsafe version of heapIndex().