Package org.lwjgl.vulkan
Class VkMemoryType
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkMemoryType
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class VkMemoryType extends org.lwjgl.system.StructStructure specifying memory type.See Also
VkPhysicalDeviceMemoryPropertiesLayout
struct VkMemoryType { VkMemoryPropertyFlagspropertyFlags(); uint32_theapIndex(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkMemoryType.BufferAn array ofVkMemoryTypestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intHEAPINDEX
PROPERTYFLAGSThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VkMemoryType(java.nio.ByteBuffer container)Creates aVkMemoryTypeinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkMemoryTypecreate(long address)Returns a newVkMemoryTypeinstance for the specified memory address.static VkMemoryType.Buffercreate(long address, int capacity)Create aVkMemoryType.Bufferinstance at the specified memory.static VkMemoryTypecreateSafe(long address)static VkMemoryType.BuffercreateSafe(long address, int capacity)intheapIndex()describes which memory heap this memory type corresponds to, and must be less thanmemoryHeapCountfrom theVkPhysicalDeviceMemoryPropertiesstructure.static intnheapIndex(long struct)Unsafe version ofheapIndex().static intnpropertyFlags(long struct)Unsafe version ofpropertyFlags().intpropertyFlags()a bitmask ofVkMemoryPropertyFlagBitsof properties for this memory type.intsizeof()
-
-
-
Constructor Detail
-
VkMemoryType
public VkMemoryType(java.nio.ByteBuffer container)
Creates aVkMemoryTypeinstance at the current position of the specifiedByteBuffercontainer. 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
propertyFlags
public int propertyFlags()
a bitmask ofVkMemoryPropertyFlagBitsof properties for this memory type.
-
heapIndex
public int heapIndex()
describes which memory heap this memory type corresponds to, and must be less thanmemoryHeapCountfrom theVkPhysicalDeviceMemoryPropertiesstructure.
-
create
public static VkMemoryType create(long address)
Returns a newVkMemoryTypeinstance for the specified memory address.
-
createSafe
@Nullable public static VkMemoryType createSafe(long address)
-
create
public static VkMemoryType.Buffer create(long address, int capacity)
Create aVkMemoryType.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkMemoryType.Buffer createSafe(long address, int capacity)
-
npropertyFlags
public static int npropertyFlags(long struct)
Unsafe version ofpropertyFlags().
-
nheapIndex
public static int nheapIndex(long struct)
Unsafe version ofheapIndex().
-
-