Package org.lwjgl.vulkan
Class VkPhysicalDeviceMemoryProperties
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceMemoryProperties
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkPhysicalDeviceMemoryProperties extends Struct
Khronos Reference Page
Vulkan SpecificationDescribes the memory heaps and memory types available to a physical device.
Member documentation
memoryTypeCount
– the number of memory types available across all memory heapsmemoryTypes
– the memory type descriptionsmemoryHeapCount
– the number of memory heapsmemoryHeaps
– the memory heap descriptions
Layout
struct VkPhysicalDeviceMemoryProperties { uint32_t memoryTypeCount;
VkMemoryType
[32] memoryTypes; uint32_t memoryHeapCount;VkMemoryHeap
[16] memoryHeaps; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
VkPhysicalDeviceMemoryProperties.Buffer
An array ofVkPhysicalDeviceMemoryProperties
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description VkPhysicalDeviceMemoryProperties(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceMemoryProperties
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static VkPhysicalDeviceMemoryProperties
calloc()
Returns a newVkPhysicalDeviceMemoryProperties
instance allocated withmemCalloc
.static VkPhysicalDeviceMemoryProperties.Buffer
calloc(int capacity)
Returns a newVkPhysicalDeviceMemoryProperties.Buffer
instance allocated withmemCalloc
.static VkPhysicalDeviceMemoryProperties
callocStack()
Returns a newVkPhysicalDeviceMemoryProperties
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceMemoryProperties.Buffer
callocStack(int capacity)
Returns a newVkPhysicalDeviceMemoryProperties.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceMemoryProperties.Buffer
callocStack(int capacity, MemoryStack stack)
Returns a newVkPhysicalDeviceMemoryProperties.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceMemoryProperties
callocStack(MemoryStack stack)
Returns a newVkPhysicalDeviceMemoryProperties
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkPhysicalDeviceMemoryProperties
create()
Returns a newVkPhysicalDeviceMemoryProperties
instance allocated withBufferUtils
.static VkPhysicalDeviceMemoryProperties.Buffer
create(int capacity)
Returns a newVkPhysicalDeviceMemoryProperties.Buffer
instance allocated withBufferUtils
.static VkPhysicalDeviceMemoryProperties
create(long address)
Returns a newVkPhysicalDeviceMemoryProperties
instance for the specified memory address ornull
if the address isNULL
.static VkPhysicalDeviceMemoryProperties.Buffer
create(long address, int capacity)
Create aVkPhysicalDeviceMemoryProperties.Buffer
instance at the specified memory.static VkPhysicalDeviceMemoryProperties
malloc()
Returns a newVkPhysicalDeviceMemoryProperties
instance allocated withmemAlloc
.static VkPhysicalDeviceMemoryProperties.Buffer
malloc(int capacity)
Returns a newVkPhysicalDeviceMemoryProperties.Buffer
instance allocated withmemAlloc
.static VkPhysicalDeviceMemoryProperties
mallocStack()
Returns a newVkPhysicalDeviceMemoryProperties
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceMemoryProperties.Buffer
mallocStack(int capacity)
Returns a newVkPhysicalDeviceMemoryProperties.Buffer
instance allocated on the thread-localMemoryStack
.static VkPhysicalDeviceMemoryProperties.Buffer
mallocStack(int capacity, MemoryStack stack)
Returns a newVkPhysicalDeviceMemoryProperties.Buffer
instance allocated on the specifiedMemoryStack
.static VkPhysicalDeviceMemoryProperties
mallocStack(MemoryStack stack)
Returns a newVkPhysicalDeviceMemoryProperties
instance allocated on the specifiedMemoryStack
.int
memoryHeapCount()
Returns the value of thememoryHeapCount
field.VkMemoryHeap.Buffer
memoryHeaps()
Returns aVkMemoryHeap
.Buffer view of thememoryHeaps
field.VkMemoryHeap
memoryHeaps(int index)
Returns aVkMemoryHeap
view of the struct at the specified index of thememoryHeaps
field.int
memoryTypeCount()
Returns the value of thememoryTypeCount
field.VkMemoryType.Buffer
memoryTypes()
Returns aVkMemoryType
.Buffer view of thememoryTypes
field.VkMemoryType
memoryTypes(int index)
Returns aVkMemoryType
view of the struct at the specified index of thememoryTypes
field.int
sizeof()
Returns thesizeof(struct)
.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkPhysicalDeviceMemoryProperties
public VkPhysicalDeviceMemoryProperties(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceMemoryProperties
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()
Description copied from class:Struct
Returns thesizeof(struct)
.
-
memoryTypeCount
public int memoryTypeCount()
Returns the value of thememoryTypeCount
field.
-
memoryTypes
public VkMemoryType.Buffer memoryTypes()
Returns aVkMemoryType
.Buffer view of thememoryTypes
field.
-
memoryTypes
public VkMemoryType memoryTypes(int index)
Returns aVkMemoryType
view of the struct at the specified index of thememoryTypes
field.
-
memoryHeapCount
public int memoryHeapCount()
Returns the value of thememoryHeapCount
field.
-
memoryHeaps
public VkMemoryHeap.Buffer memoryHeaps()
Returns aVkMemoryHeap
.Buffer view of thememoryHeaps
field.
-
memoryHeaps
public VkMemoryHeap memoryHeaps(int index)
Returns aVkMemoryHeap
view of the struct at the specified index of thememoryHeaps
field.
-
malloc
public static VkPhysicalDeviceMemoryProperties malloc()
Returns a newVkPhysicalDeviceMemoryProperties
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceMemoryProperties calloc()
Returns a newVkPhysicalDeviceMemoryProperties
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceMemoryProperties create()
Returns a newVkPhysicalDeviceMemoryProperties
instance allocated withBufferUtils
.
-
create
public static VkPhysicalDeviceMemoryProperties create(long address)
Returns a newVkPhysicalDeviceMemoryProperties
instance for the specified memory address ornull
if the address isNULL
.
-
malloc
public static VkPhysicalDeviceMemoryProperties.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceMemoryProperties.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkPhysicalDeviceMemoryProperties.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceMemoryProperties.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceMemoryProperties.Buffer create(int capacity)
Returns a newVkPhysicalDeviceMemoryProperties.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkPhysicalDeviceMemoryProperties.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceMemoryProperties.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceMemoryProperties mallocStack()
Returns a newVkPhysicalDeviceMemoryProperties
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkPhysicalDeviceMemoryProperties callocStack()
Returns a newVkPhysicalDeviceMemoryProperties
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceMemoryProperties mallocStack(MemoryStack stack)
Returns a newVkPhysicalDeviceMemoryProperties
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceMemoryProperties callocStack(MemoryStack stack)
Returns a newVkPhysicalDeviceMemoryProperties
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceMemoryProperties.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceMemoryProperties.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceMemoryProperties.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceMemoryProperties.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceMemoryProperties.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkPhysicalDeviceMemoryProperties.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkPhysicalDeviceMemoryProperties.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkPhysicalDeviceMemoryProperties.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
-