public class VkPhysicalDeviceMemoryBudgetPropertiesEXT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The values returned in this structure are not invariant. The heapBudget and heapUsage values must be zero for array elements greater than or equal to VkPhysicalDeviceMemoryProperties::memoryHeapCount. The heapBudget value must be non-zero for array elements less than VkPhysicalDeviceMemoryProperties::memoryHeapCount. The heapBudget value must be less than or equal to VkMemoryHeap::size for each heap.
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.heapBudget[VK_MAX_MEMORY_HEAPS] – an array of MAX_MEMORY_HEAPS VkDeviceSize values in which memory budgets are returned, with one element for each memory heap. A heap’s budget is a rough estimate of how much memory the process can allocate from that heap before allocations may fail or cause performance degradation. The budget includes any currently allocated device memory.heapUsage[VK_MAX_MEMORY_HEAPS] – an array of MAX_MEMORY_HEAPS VkDeviceSize values in which memory usages are returned, with one element for each memory heap. A heap’s usage is an estimate of how much memory the process is currently using in that heap.
struct VkPhysicalDeviceMemoryBudgetPropertiesEXT {
VkStructureType sType;
void * pNext;
VkDeviceSize heapBudget[VK_MAX_MEMORY_HEAPS];
VkDeviceSize heapUsage[VK_MAX_MEMORY_HEAPS];
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer
An array of
VkPhysicalDeviceMemoryBudgetPropertiesEXT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
HEAPBUDGET
The struct member offsets.
|
static int |
HEAPUSAGE
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkPhysicalDeviceMemoryBudgetPropertiesEXT(java.nio.ByteBuffer container)
Creates a
VkPhysicalDeviceMemoryBudgetPropertiesEXT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPhysicalDeviceMemoryBudgetPropertiesEXT |
calloc()
Returns a new
VkPhysicalDeviceMemoryBudgetPropertiesEXT instance allocated with memCalloc. |
static VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer |
calloc(int capacity)
Returns a new
VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer instance allocated with memCalloc. |
static VkPhysicalDeviceMemoryBudgetPropertiesEXT |
callocStack()
Returns a new
VkPhysicalDeviceMemoryBudgetPropertiesEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer |
callocStack(int capacity)
Returns a new
VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceMemoryBudgetPropertiesEXT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceMemoryBudgetPropertiesEXT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceMemoryBudgetPropertiesEXT |
create()
Returns a new
VkPhysicalDeviceMemoryBudgetPropertiesEXT instance allocated with BufferUtils. |
static VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer |
create(int capacity)
Returns a new
VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer instance allocated with BufferUtils. |
static VkPhysicalDeviceMemoryBudgetPropertiesEXT |
create(long address)
Returns a new
VkPhysicalDeviceMemoryBudgetPropertiesEXT instance for the specified memory address. |
static VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer |
create(long address,
int capacity)
Create a
VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer instance at the specified memory. |
static VkPhysicalDeviceMemoryBudgetPropertiesEXT |
createSafe(long address)
|
static VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer |
createSafe(long address,
int capacity)
|
java.nio.LongBuffer |
heapBudget()
Returns a
LongBuffer view of the heapBudget field. |
long |
heapBudget(int index)
Returns the value at the specified index of the
heapBudget field. |
java.nio.LongBuffer |
heapUsage()
Returns a
LongBuffer view of the heapUsage field. |
long |
heapUsage(int index)
Returns the value at the specified index of the
heapUsage field. |
static VkPhysicalDeviceMemoryBudgetPropertiesEXT |
malloc()
Returns a new
VkPhysicalDeviceMemoryBudgetPropertiesEXT instance allocated with memAlloc. |
static VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer |
malloc(int capacity)
Returns a new
VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer instance allocated with memAlloc. |
static VkPhysicalDeviceMemoryBudgetPropertiesEXT |
mallocStack()
Returns a new
VkPhysicalDeviceMemoryBudgetPropertiesEXT instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer |
mallocStack(int capacity)
Returns a new
VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer instance allocated on the specified MemoryStack. |
static VkPhysicalDeviceMemoryBudgetPropertiesEXT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceMemoryBudgetPropertiesEXT instance allocated on the specified MemoryStack. |
static java.nio.LongBuffer |
nheapBudget(long struct)
Unsafe version of
heapBudget(). |
static long |
nheapBudget(long struct,
int index)
Unsafe version of
heapBudget. |
static java.nio.LongBuffer |
nheapUsage(long struct)
Unsafe version of
heapUsage(). |
static long |
nheapUsage(long struct,
int index)
Unsafe version of
heapUsage. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
long |
pNext()
Returns the value of the
pNext field. |
VkPhysicalDeviceMemoryBudgetPropertiesEXT |
pNext(long value)
Sets the specified value to the
pNext field. |
VkPhysicalDeviceMemoryBudgetPropertiesEXT |
set(int sType,
long pNext)
Initializes this struct with the specified values.
|
VkPhysicalDeviceMemoryBudgetPropertiesEXT |
set(VkPhysicalDeviceMemoryBudgetPropertiesEXT src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPhysicalDeviceMemoryBudgetPropertiesEXT |
sType(int value)
Sets the specified value to the
sType field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int HEAPBUDGET
public static final int HEAPUSAGE
public VkPhysicalDeviceMemoryBudgetPropertiesEXT(java.nio.ByteBuffer container)
VkPhysicalDeviceMemoryBudgetPropertiesEXT instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public java.nio.LongBuffer heapBudget()
LongBuffer view of the heapBudget field.public long heapBudget(int index)
heapBudget field.public java.nio.LongBuffer heapUsage()
LongBuffer view of the heapUsage field.public long heapUsage(int index)
heapUsage field.public VkPhysicalDeviceMemoryBudgetPropertiesEXT sType(int value)
sType field.public VkPhysicalDeviceMemoryBudgetPropertiesEXT pNext(long value)
pNext field.public VkPhysicalDeviceMemoryBudgetPropertiesEXT set(int sType, long pNext)
public VkPhysicalDeviceMemoryBudgetPropertiesEXT set(VkPhysicalDeviceMemoryBudgetPropertiesEXT src)
src - the source structpublic static VkPhysicalDeviceMemoryBudgetPropertiesEXT malloc()
VkPhysicalDeviceMemoryBudgetPropertiesEXT instance allocated with memAlloc. The instance must be explicitly freed.public static VkPhysicalDeviceMemoryBudgetPropertiesEXT calloc()
VkPhysicalDeviceMemoryBudgetPropertiesEXT instance allocated with memCalloc. The instance must be explicitly freed.public static VkPhysicalDeviceMemoryBudgetPropertiesEXT create()
VkPhysicalDeviceMemoryBudgetPropertiesEXT instance allocated with BufferUtils.public static VkPhysicalDeviceMemoryBudgetPropertiesEXT create(long address)
VkPhysicalDeviceMemoryBudgetPropertiesEXT instance for the specified memory address.@Nullable public static VkPhysicalDeviceMemoryBudgetPropertiesEXT createSafe(long address)
public static VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer malloc(int capacity)
VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer calloc(int capacity)
VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer create(int capacity)
VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer create(long address, int capacity)
VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer createSafe(long address, int capacity)
public static VkPhysicalDeviceMemoryBudgetPropertiesEXT mallocStack()
VkPhysicalDeviceMemoryBudgetPropertiesEXT instance allocated on the thread-local MemoryStack.public static VkPhysicalDeviceMemoryBudgetPropertiesEXT callocStack()
VkPhysicalDeviceMemoryBudgetPropertiesEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPhysicalDeviceMemoryBudgetPropertiesEXT mallocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceMemoryBudgetPropertiesEXT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPhysicalDeviceMemoryBudgetPropertiesEXT callocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceMemoryBudgetPropertiesEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer mallocStack(int capacity)
VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer callocStack(int capacity)
VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceMemoryBudgetPropertiesEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static java.nio.LongBuffer nheapBudget(long struct)
heapBudget().public static long nheapBudget(long struct,
int index)
heapBudget.public static java.nio.LongBuffer nheapUsage(long struct)
heapUsage().public static long nheapUsage(long struct,
int index)
heapUsage.public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.Copyright LWJGL. All Rights Reserved. License terms.