Package org.lwjgl.vulkan
Class VkMemoryPriorityAllocateInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkMemoryPriorityAllocateInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkMemoryPriorityAllocateInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceSpecify a memory allocation priority.Description
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
priorityvalue were0.5.Valid Usage
prioritymust be between 0 and 1, inclusive
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_MEMORY_PRIORITY_ALLOCATE_INFO_EXT
Member documentation
sType– the type of this structure.pNext–NULLor 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.
Layout
struct VkMemoryPriorityAllocateInfoEXT { VkStructureType sType; void const * pNext; float priority; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkMemoryPriorityAllocateInfoEXT.BufferAn array ofVkMemoryPriorityAllocateInfoEXTstructs.
-
Constructor Summary
Constructors Constructor Description VkMemoryPriorityAllocateInfoEXT(java.nio.ByteBuffer container)Creates aVkMemoryPriorityAllocateInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkMemoryPriorityAllocateInfoEXTcalloc()Returns a newVkMemoryPriorityAllocateInfoEXTinstance allocated withmemCalloc.static VkMemoryPriorityAllocateInfoEXT.Buffercalloc(int capacity)Returns a newVkMemoryPriorityAllocateInfoEXT.Bufferinstance allocated withmemCalloc.static VkMemoryPriorityAllocateInfoEXTcallocStack()Returns a newVkMemoryPriorityAllocateInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkMemoryPriorityAllocateInfoEXT.BuffercallocStack(int capacity)Returns a newVkMemoryPriorityAllocateInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkMemoryPriorityAllocateInfoEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkMemoryPriorityAllocateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMemoryPriorityAllocateInfoEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkMemoryPriorityAllocateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMemoryPriorityAllocateInfoEXTcreate()Returns a newVkMemoryPriorityAllocateInfoEXTinstance allocated withBufferUtils.static VkMemoryPriorityAllocateInfoEXT.Buffercreate(int capacity)Returns a newVkMemoryPriorityAllocateInfoEXT.Bufferinstance allocated withBufferUtils.static VkMemoryPriorityAllocateInfoEXTcreate(long address)Returns a newVkMemoryPriorityAllocateInfoEXTinstance for the specified memory address.static VkMemoryPriorityAllocateInfoEXT.Buffercreate(long address, int capacity)Create aVkMemoryPriorityAllocateInfoEXT.Bufferinstance at the specified memory.static VkMemoryPriorityAllocateInfoEXTcreateSafe(long address)static VkMemoryPriorityAllocateInfoEXT.BuffercreateSafe(long address, int capacity)static VkMemoryPriorityAllocateInfoEXTmalloc()Returns a newVkMemoryPriorityAllocateInfoEXTinstance allocated withmemAlloc.static VkMemoryPriorityAllocateInfoEXT.Buffermalloc(int capacity)Returns a newVkMemoryPriorityAllocateInfoEXT.Bufferinstance allocated withmemAlloc.static VkMemoryPriorityAllocateInfoEXTmallocStack()Returns a newVkMemoryPriorityAllocateInfoEXTinstance allocated on the thread-localMemoryStack.static VkMemoryPriorityAllocateInfoEXT.BuffermallocStack(int capacity)Returns a newVkMemoryPriorityAllocateInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkMemoryPriorityAllocateInfoEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkMemoryPriorityAllocateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkMemoryPriorityAllocateInfoEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkMemoryPriorityAllocateInfoEXTinstance allocated on the specifiedMemoryStack.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static floatnpriority(long struct)Unsafe version ofpriority().static voidnpriority(long struct, float value)Unsafe version ofpriority.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()Returns the value of thepNextfield.VkMemoryPriorityAllocateInfoEXTpNext(long value)Sets the specified value to thepNextfield.floatpriority()Returns the value of thepriorityfield.VkMemoryPriorityAllocateInfoEXTpriority(float value)Sets the specified value to thepriorityfield.VkMemoryPriorityAllocateInfoEXTset(int sType, long pNext, float priority)Initializes this struct with the specified values.VkMemoryPriorityAllocateInfoEXTset(VkMemoryPriorityAllocateInfoEXT src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkMemoryPriorityAllocateInfoEXTsType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkMemoryPriorityAllocateInfoEXT
public VkMemoryPriorityAllocateInfoEXT(java.nio.ByteBuffer container)
Creates aVkMemoryPriorityAllocateInfoEXTinstance 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()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
priority
public float priority()
Returns the value of thepriorityfield.
-
sType
public VkMemoryPriorityAllocateInfoEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkMemoryPriorityAllocateInfoEXT pNext(long value)
Sets the specified value to thepNextfield.
-
priority
public VkMemoryPriorityAllocateInfoEXT priority(float value)
Sets the specified value to thepriorityfield.
-
set
public VkMemoryPriorityAllocateInfoEXT set(int sType, long pNext, float priority)
Initializes this struct with the specified values.
-
set
public VkMemoryPriorityAllocateInfoEXT set(VkMemoryPriorityAllocateInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkMemoryPriorityAllocateInfoEXT malloc()
Returns a newVkMemoryPriorityAllocateInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkMemoryPriorityAllocateInfoEXT calloc()
Returns a newVkMemoryPriorityAllocateInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkMemoryPriorityAllocateInfoEXT create()
Returns a newVkMemoryPriorityAllocateInfoEXTinstance allocated withBufferUtils.
-
create
public static VkMemoryPriorityAllocateInfoEXT create(long address)
Returns a newVkMemoryPriorityAllocateInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkMemoryPriorityAllocateInfoEXT createSafe(long address)
-
malloc
public static VkMemoryPriorityAllocateInfoEXT.Buffer malloc(int capacity)
Returns a newVkMemoryPriorityAllocateInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkMemoryPriorityAllocateInfoEXT.Buffer calloc(int capacity)
Returns a newVkMemoryPriorityAllocateInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkMemoryPriorityAllocateInfoEXT.Buffer create(int capacity)
Returns a newVkMemoryPriorityAllocateInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkMemoryPriorityAllocateInfoEXT.Buffer create(long address, int capacity)
Create aVkMemoryPriorityAllocateInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkMemoryPriorityAllocateInfoEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkMemoryPriorityAllocateInfoEXT mallocStack()
Returns a newVkMemoryPriorityAllocateInfoEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkMemoryPriorityAllocateInfoEXT callocStack()
Returns a newVkMemoryPriorityAllocateInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkMemoryPriorityAllocateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryPriorityAllocateInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkMemoryPriorityAllocateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryPriorityAllocateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkMemoryPriorityAllocateInfoEXT.Buffer mallocStack(int capacity)
Returns a newVkMemoryPriorityAllocateInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkMemoryPriorityAllocateInfoEXT.Buffer callocStack(int capacity)
Returns a newVkMemoryPriorityAllocateInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkMemoryPriorityAllocateInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryPriorityAllocateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkMemoryPriorityAllocateInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryPriorityAllocateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
npriority
public static float npriority(long struct)
Unsafe version ofpriority().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
npriority
public static void npriority(long struct, float value)Unsafe version ofpriority.
-
-