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.Struct
Structure specifying memory type.Member documentation
propertyFlags
– a bitmask ofVkMemoryPropertyFlagBits
of properties for this memory type.heapIndex
– describes which memory heap this memory type corresponds to, and must be less thanmemoryHeapCount
from theVkPhysicalDeviceMemoryProperties
structure.
Layout
struct VkMemoryType { VkMemoryPropertyFlags propertyFlags; uint32_t heapIndex; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkMemoryType.Buffer
An array ofVkMemoryType
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
HEAPINDEX
PROPERTYFLAGSThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VkMemoryType(java.nio.ByteBuffer container)
Creates aVkMemoryType
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 VkMemoryType
create(long address)
Returns a newVkMemoryType
instance for the specified memory address.static VkMemoryType.Buffer
create(long address, int capacity)
Create aVkMemoryType.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 theheapIndex
field.static int
nheapIndex(long struct)
Unsafe version ofheapIndex()
.static int
npropertyFlags(long struct)
Unsafe version ofpropertyFlags()
.int
propertyFlags()
Returns the value of thepropertyFlags
field.int
sizeof()
-
-
-
Constructor Detail
-
VkMemoryType
public VkMemoryType(java.nio.ByteBuffer container)
Creates aVkMemoryType
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
-
propertyFlags
public int propertyFlags()
Returns the value of thepropertyFlags
field.
-
heapIndex
public int heapIndex()
Returns the value of theheapIndex
field.
-
create
public static VkMemoryType create(long address)
Returns a newVkMemoryType
instance 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.Buffer
instance 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()
.
-
-