public class VkMemoryHeap
extends org.lwjgl.system.Struct
size – the total memory size in bytes in the heap.flags – a bitmask of VkMemoryHeapFlagBits specifying attribute flags for the heap.
struct VkMemoryHeap {
VkDeviceSize size;
VkMemoryHeapFlags flags;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkMemoryHeap.Buffer
An array of
VkMemoryHeap structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FLAGS
The struct member offsets.
|
static int |
SIZE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkMemoryHeap(java.nio.ByteBuffer container)
Creates a
VkMemoryHeap instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkMemoryHeap |
create(long address)
Returns a new
VkMemoryHeap instance for the specified memory address. |
static VkMemoryHeap.Buffer |
create(long address,
int capacity)
Create a
VkMemoryHeap.Buffer instance at the specified memory. |
static VkMemoryHeap |
createSafe(long address)
|
static VkMemoryHeap.Buffer |
createSafe(long address,
int capacity)
|
int |
flags()
Returns the value of the
flags field. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static long |
nsize(long struct)
Unsafe version of
size(). |
long |
size()
Returns the value of the
size field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int SIZE
public static final int FLAGS
public VkMemoryHeap(java.nio.ByteBuffer container)
VkMemoryHeap 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 long size()
size field.public int flags()
flags field.public static VkMemoryHeap create(long address)
VkMemoryHeap instance for the specified memory address.@Nullable public static VkMemoryHeap createSafe(long address)
public static VkMemoryHeap.Buffer create(long address, int capacity)
VkMemoryHeap.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkMemoryHeap.Buffer createSafe(long address, int capacity)
public static long nsize(long struct)
size().public static int nflags(long struct)
flags().Copyright LWJGL. All Rights Reserved. License terms.