Package org.lwjgl.vulkan
Class VkMemoryHeap
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkMemoryHeap
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class VkMemoryHeap extends org.lwjgl.system.Struct
Structure specifying a memory heap.Member documentation
size
– the total memory size in bytes in the heap.flags
– a bitmask ofVkMemoryHeapFlagBits
specifying attribute flags for the heap.
Layout
struct VkMemoryHeap { VkDeviceSize size; VkMemoryHeapFlags flags; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkMemoryHeap.Buffer
An array ofVkMemoryHeap
structs.
-
Constructor Summary
Constructors Constructor Description VkMemoryHeap(java.nio.ByteBuffer container)
Creates aVkMemoryHeap
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkMemoryHeap
create(long address)
Returns a newVkMemoryHeap
instance for the specified memory address.static VkMemoryHeap.Buffer
create(long address, int capacity)
Create aVkMemoryHeap.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 theflags
field.static int
nflags(long struct)
Unsafe version offlags()
.static long
nsize(long struct)
Unsafe version ofsize()
.long
size()
Returns the value of thesize
field.int
sizeof()
-
-
-
Constructor Detail
-
VkMemoryHeap
public VkMemoryHeap(java.nio.ByteBuffer container)
Creates aVkMemoryHeap
instance at the current position of the specifiedByteBuffer
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
size
public long size()
Returns the value of thesize
field.
-
flags
public int flags()
Returns the value of theflags
field.
-
create
public static VkMemoryHeap create(long address)
Returns a newVkMemoryHeap
instance for the specified memory address.
-
createSafe
@Nullable public static VkMemoryHeap createSafe(long address)
-
create
public static VkMemoryHeap.Buffer create(long address, int capacity)
Create aVkMemoryHeap.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkMemoryHeap.Buffer createSafe(long address, int capacity)
-
nsize
public static long nsize(long struct)
Unsafe version ofsize()
.
-
nflags
public static int nflags(long struct)
Unsafe version offlags()
.
-
-