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.StructStructure specifying a memory heap.Member documentation
size– the total memory size in bytes in the heap.flags– a bitmask ofVkMemoryHeapFlagBitsspecifying attribute flags for the heap.
Layout
struct VkMemoryHeap { VkDeviceSize size; VkMemoryHeapFlags flags; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkMemoryHeap.BufferAn array ofVkMemoryHeapstructs.
-
Constructor Summary
Constructors Constructor Description VkMemoryHeap(java.nio.ByteBuffer container)Creates aVkMemoryHeapinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkMemoryHeapcreate(long address)Returns a newVkMemoryHeapinstance for the specified memory address.static VkMemoryHeap.Buffercreate(long address, int capacity)Create aVkMemoryHeap.Bufferinstance at the specified memory.static VkMemoryHeapcreateSafe(long address)static VkMemoryHeap.BuffercreateSafe(long address, int capacity)intflags()Returns the value of theflagsfield.static intnflags(long struct)Unsafe version offlags().static longnsize(long struct)Unsafe version ofsize().longsize()Returns the value of thesizefield.intsizeof()
-
-
-
Constructor Detail
-
VkMemoryHeap
public VkMemoryHeap(java.nio.ByteBuffer container)
Creates aVkMemoryHeapinstance 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
-
size
public long size()
Returns the value of thesizefield.
-
flags
public int flags()
Returns the value of theflagsfield.
-
create
public static VkMemoryHeap create(long address)
Returns a newVkMemoryHeapinstance 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.Bufferinstance 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().
-
-