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 classVkPhysicalDeviceMemoryProperties.BufferAn array ofVkPhysicalDeviceMemoryPropertiesstructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe 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 aVkPhysicalDeviceMemoryPropertiesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static VkPhysicalDeviceMemoryPropertiescalloc()Returns a newVkPhysicalDeviceMemoryPropertiesinstance allocated withmemCalloc.static VkPhysicalDeviceMemoryProperties.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceMemoryProperties.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceMemoryPropertiescallocStack()Returns a newVkPhysicalDeviceMemoryPropertiesinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceMemoryProperties.BuffercallocStack(int capacity)Returns a newVkPhysicalDeviceMemoryProperties.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceMemoryProperties.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkPhysicalDeviceMemoryProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceMemoryPropertiescallocStack(MemoryStack stack)Returns a newVkPhysicalDeviceMemoryPropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceMemoryPropertiescreate()Returns a newVkPhysicalDeviceMemoryPropertiesinstance allocated withBufferUtils.static VkPhysicalDeviceMemoryProperties.Buffercreate(int capacity)Returns a newVkPhysicalDeviceMemoryProperties.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceMemoryPropertiescreate(long address)Returns a newVkPhysicalDeviceMemoryPropertiesinstance for the specified memory address ornullif the address isNULL.static VkPhysicalDeviceMemoryProperties.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceMemoryProperties.Bufferinstance at the specified memory.static VkPhysicalDeviceMemoryPropertiesmalloc()Returns a newVkPhysicalDeviceMemoryPropertiesinstance allocated withmemAlloc.static VkPhysicalDeviceMemoryProperties.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceMemoryProperties.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceMemoryPropertiesmallocStack()Returns a newVkPhysicalDeviceMemoryPropertiesinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceMemoryProperties.BuffermallocStack(int capacity)Returns a newVkPhysicalDeviceMemoryProperties.Bufferinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceMemoryProperties.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkPhysicalDeviceMemoryProperties.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceMemoryPropertiesmallocStack(MemoryStack stack)Returns a newVkPhysicalDeviceMemoryPropertiesinstance allocated on the specifiedMemoryStack.intmemoryHeapCount()Returns the value of thememoryHeapCountfield.VkMemoryHeap.BuffermemoryHeaps()Returns aVkMemoryHeap.Buffer view of thememoryHeapsfield.VkMemoryHeapmemoryHeaps(int index)Returns aVkMemoryHeapview of the struct at the specified index of thememoryHeapsfield.intmemoryTypeCount()Returns the value of thememoryTypeCountfield.VkMemoryType.BuffermemoryTypes()Returns aVkMemoryType.Buffer view of thememoryTypesfield.VkMemoryTypememoryTypes(int index)Returns aVkMemoryTypeview of the struct at the specified index of thememoryTypesfield.intsizeof()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 aVkPhysicalDeviceMemoryPropertiesinstance 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()
Description copied from class:StructReturns thesizeof(struct).
-
memoryTypeCount
public int memoryTypeCount()
Returns the value of thememoryTypeCountfield.
-
memoryTypes
public VkMemoryType.Buffer memoryTypes()
Returns aVkMemoryType.Buffer view of thememoryTypesfield.
-
memoryTypes
public VkMemoryType memoryTypes(int index)
Returns aVkMemoryTypeview of the struct at the specified index of thememoryTypesfield.
-
memoryHeapCount
public int memoryHeapCount()
Returns the value of thememoryHeapCountfield.
-
memoryHeaps
public VkMemoryHeap.Buffer memoryHeaps()
Returns aVkMemoryHeap.Buffer view of thememoryHeapsfield.
-
memoryHeaps
public VkMemoryHeap memoryHeaps(int index)
Returns aVkMemoryHeapview of the struct at the specified index of thememoryHeapsfield.
-
malloc
public static VkPhysicalDeviceMemoryProperties malloc()
Returns a newVkPhysicalDeviceMemoryPropertiesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceMemoryProperties calloc()
Returns a newVkPhysicalDeviceMemoryPropertiesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceMemoryProperties create()
Returns a newVkPhysicalDeviceMemoryPropertiesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceMemoryProperties create(long address)
Returns a newVkPhysicalDeviceMemoryPropertiesinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static VkPhysicalDeviceMemoryProperties.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceMemoryProperties.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceMemoryProperties.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceMemoryProperties.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceMemoryProperties.Buffer create(int capacity)
Returns a newVkPhysicalDeviceMemoryProperties.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceMemoryProperties.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceMemoryProperties.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceMemoryProperties mallocStack()
Returns a newVkPhysicalDeviceMemoryPropertiesinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPhysicalDeviceMemoryProperties callocStack()
Returns a newVkPhysicalDeviceMemoryPropertiesinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceMemoryProperties mallocStack(MemoryStack stack)
Returns a newVkPhysicalDeviceMemoryPropertiesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceMemoryProperties callocStack(MemoryStack stack)
Returns a newVkPhysicalDeviceMemoryPropertiesinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceMemoryProperties.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceMemoryProperties.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceMemoryProperties.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkPhysicalDeviceMemoryProperties.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-