public class VkMemoryPriorityAllocateInfoEXT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
Memory allocations with higher priority may be more likely to stay in device-local memory when the system is under memory pressure.
If this structure is not included, it is as if the priority value were 0.5.
priority must be between 0 and 1, inclusivesType must be STRUCTURE_TYPE_MEMORY_PRIORITY_ALLOCATE_INFO_EXTsType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.priority – a floating-point value between 0 and 1, indicating the priority of the allocation relative to other memory allocations. Larger values are higher priority. The granularity of the priorities is implementation-dependent.
struct VkMemoryPriorityAllocateInfoEXT {
VkStructureType sType;
void const * pNext;
float priority;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkMemoryPriorityAllocateInfoEXT.Buffer
An array of
VkMemoryPriorityAllocateInfoEXT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PRIORITY
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
| Constructor and Description |
|---|
VkMemoryPriorityAllocateInfoEXT(java.nio.ByteBuffer container)
Creates a
VkMemoryPriorityAllocateInfoEXT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkMemoryPriorityAllocateInfoEXT |
calloc()
Returns a new
VkMemoryPriorityAllocateInfoEXT instance allocated with memCalloc. |
static VkMemoryPriorityAllocateInfoEXT.Buffer |
calloc(int capacity)
Returns a new
VkMemoryPriorityAllocateInfoEXT.Buffer instance allocated with memCalloc. |
static VkMemoryPriorityAllocateInfoEXT |
callocStack()
Returns a new
VkMemoryPriorityAllocateInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkMemoryPriorityAllocateInfoEXT.Buffer |
callocStack(int capacity)
Returns a new
VkMemoryPriorityAllocateInfoEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkMemoryPriorityAllocateInfoEXT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryPriorityAllocateInfoEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkMemoryPriorityAllocateInfoEXT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryPriorityAllocateInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkMemoryPriorityAllocateInfoEXT |
create()
Returns a new
VkMemoryPriorityAllocateInfoEXT instance allocated with BufferUtils. |
static VkMemoryPriorityAllocateInfoEXT.Buffer |
create(int capacity)
Returns a new
VkMemoryPriorityAllocateInfoEXT.Buffer instance allocated with BufferUtils. |
static VkMemoryPriorityAllocateInfoEXT |
create(long address)
Returns a new
VkMemoryPriorityAllocateInfoEXT instance for the specified memory address. |
static VkMemoryPriorityAllocateInfoEXT.Buffer |
create(long address,
int capacity)
Create a
VkMemoryPriorityAllocateInfoEXT.Buffer instance at the specified memory. |
static VkMemoryPriorityAllocateInfoEXT |
createSafe(long address)
|
static VkMemoryPriorityAllocateInfoEXT.Buffer |
createSafe(long address,
int capacity)
|
static VkMemoryPriorityAllocateInfoEXT |
malloc()
Returns a new
VkMemoryPriorityAllocateInfoEXT instance allocated with memAlloc. |
static VkMemoryPriorityAllocateInfoEXT.Buffer |
malloc(int capacity)
Returns a new
VkMemoryPriorityAllocateInfoEXT.Buffer instance allocated with memAlloc. |
static VkMemoryPriorityAllocateInfoEXT |
mallocStack()
Returns a new
VkMemoryPriorityAllocateInfoEXT instance allocated on the thread-local MemoryStack. |
static VkMemoryPriorityAllocateInfoEXT.Buffer |
mallocStack(int capacity)
Returns a new
VkMemoryPriorityAllocateInfoEXT.Buffer instance allocated on the thread-local MemoryStack. |
static VkMemoryPriorityAllocateInfoEXT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryPriorityAllocateInfoEXT.Buffer instance allocated on the specified MemoryStack. |
static VkMemoryPriorityAllocateInfoEXT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryPriorityAllocateInfoEXT instance allocated on the specified MemoryStack. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static float |
npriority(long struct)
Unsafe version of
priority(). |
static void |
npriority(long struct,
float value)
Unsafe version of
priority. |
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. |
VkMemoryPriorityAllocateInfoEXT |
pNext(long value)
Sets the specified value to the
pNext field. |
float |
priority()
Returns the value of the
priority field. |
VkMemoryPriorityAllocateInfoEXT |
priority(float value)
Sets the specified value to the
priority field. |
VkMemoryPriorityAllocateInfoEXT |
set(int sType,
long pNext,
float priority)
Initializes this struct with the specified values.
|
VkMemoryPriorityAllocateInfoEXT |
set(VkMemoryPriorityAllocateInfoEXT src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkMemoryPriorityAllocateInfoEXT |
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 PRIORITY
public VkMemoryPriorityAllocateInfoEXT(java.nio.ByteBuffer container)
VkMemoryPriorityAllocateInfoEXT 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 float priority()
priority field.public VkMemoryPriorityAllocateInfoEXT sType(int value)
sType field.public VkMemoryPriorityAllocateInfoEXT pNext(long value)
pNext field.public VkMemoryPriorityAllocateInfoEXT priority(float value)
priority field.public VkMemoryPriorityAllocateInfoEXT set(int sType, long pNext, float priority)
public VkMemoryPriorityAllocateInfoEXT set(VkMemoryPriorityAllocateInfoEXT src)
src - the source structpublic static VkMemoryPriorityAllocateInfoEXT malloc()
VkMemoryPriorityAllocateInfoEXT instance allocated with memAlloc. The instance must be explicitly freed.public static VkMemoryPriorityAllocateInfoEXT calloc()
VkMemoryPriorityAllocateInfoEXT instance allocated with memCalloc. The instance must be explicitly freed.public static VkMemoryPriorityAllocateInfoEXT create()
VkMemoryPriorityAllocateInfoEXT instance allocated with BufferUtils.public static VkMemoryPriorityAllocateInfoEXT create(long address)
VkMemoryPriorityAllocateInfoEXT instance for the specified memory address.@Nullable public static VkMemoryPriorityAllocateInfoEXT createSafe(long address)
public static VkMemoryPriorityAllocateInfoEXT.Buffer malloc(int capacity)
VkMemoryPriorityAllocateInfoEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkMemoryPriorityAllocateInfoEXT.Buffer calloc(int capacity)
VkMemoryPriorityAllocateInfoEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkMemoryPriorityAllocateInfoEXT.Buffer create(int capacity)
VkMemoryPriorityAllocateInfoEXT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkMemoryPriorityAllocateInfoEXT.Buffer create(long address, int capacity)
VkMemoryPriorityAllocateInfoEXT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkMemoryPriorityAllocateInfoEXT.Buffer createSafe(long address, int capacity)
public static VkMemoryPriorityAllocateInfoEXT mallocStack()
VkMemoryPriorityAllocateInfoEXT instance allocated on the thread-local MemoryStack.public static VkMemoryPriorityAllocateInfoEXT callocStack()
VkMemoryPriorityAllocateInfoEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkMemoryPriorityAllocateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
VkMemoryPriorityAllocateInfoEXT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkMemoryPriorityAllocateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
VkMemoryPriorityAllocateInfoEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkMemoryPriorityAllocateInfoEXT.Buffer mallocStack(int capacity)
VkMemoryPriorityAllocateInfoEXT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkMemoryPriorityAllocateInfoEXT.Buffer callocStack(int capacity)
VkMemoryPriorityAllocateInfoEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkMemoryPriorityAllocateInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkMemoryPriorityAllocateInfoEXT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkMemoryPriorityAllocateInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkMemoryPriorityAllocateInfoEXT.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 float npriority(long struct)
priority().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void npriority(long struct,
float value)
priority.Copyright LWJGL. All Rights Reserved. License terms.