public class VkMemoryType
extends org.lwjgl.system.Struct
propertyFlags – a bitmask of VkMemoryPropertyFlagBits of properties for this memory type.heapIndex – describes which memory heap this memory type corresponds to, and must be less than memoryHeapCount from the VkPhysicalDeviceMemoryProperties structure.
struct VkMemoryType {
VkMemoryPropertyFlags propertyFlags;
uint32_t heapIndex;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkMemoryType.Buffer
An array of
VkMemoryType structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
HEAPINDEX
The struct member offsets.
|
static int |
PROPERTYFLAGS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkMemoryType(java.nio.ByteBuffer container)
Creates a
VkMemoryType instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkMemoryType |
create(long address)
Returns a new
VkMemoryType instance for the specified memory address. |
static VkMemoryType.Buffer |
create(long address,
int capacity)
Create a
VkMemoryType.Buffer instance at the specified memory. |
static VkMemoryType |
createSafe(long address)
|
static VkMemoryType.Buffer |
createSafe(long address,
int capacity)
|
int |
heapIndex()
Returns the value of the
heapIndex field. |
static int |
nheapIndex(long struct)
Unsafe version of
heapIndex(). |
static int |
npropertyFlags(long struct)
Unsafe version of
propertyFlags(). |
int |
propertyFlags()
Returns the value of the
propertyFlags field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int PROPERTYFLAGS
public static final int HEAPINDEX
public VkMemoryType(java.nio.ByteBuffer container)
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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int propertyFlags()
propertyFlags field.public int heapIndex()
heapIndex field.public static VkMemoryType create(long address)
VkMemoryType instance for the specified memory address.@Nullable public static VkMemoryType createSafe(long address)
public static VkMemoryType.Buffer create(long address, int capacity)
VkMemoryType.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkMemoryType.Buffer createSafe(long address, int capacity)
public static int npropertyFlags(long struct)
propertyFlags().public static int nheapIndex(long struct)
heapIndex().Copyright LWJGL. All Rights Reserved. License terms.