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
Layout
struct VkMemoryPriorityAllocateInfoEXT { VkStructureTypesType(); void const *pNext(); floatpriority(); }
-
-
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 Deprecated 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 VkMemoryPriorityAllocateInfoEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkMemoryPriorityAllocateInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMemoryPriorityAllocateInfoEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkMemoryPriorityAllocateInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMemoryPriorityAllocateInfoEXTcallocStack()Deprecated.static VkMemoryPriorityAllocateInfoEXT.BuffercallocStack(int capacity)Deprecated.static VkMemoryPriorityAllocateInfoEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkMemoryPriorityAllocateInfoEXTcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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 VkMemoryPriorityAllocateInfoEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkMemoryPriorityAllocateInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkMemoryPriorityAllocateInfoEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkMemoryPriorityAllocateInfoEXTinstance allocated on the specifiedMemoryStack.static VkMemoryPriorityAllocateInfoEXTmallocStack()Deprecated.static VkMemoryPriorityAllocateInfoEXT.BuffermallocStack(int capacity)Deprecated.static VkMemoryPriorityAllocateInfoEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkMemoryPriorityAllocateInfoEXTmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()NULLor a pointer to a structure extending this structure.VkMemoryPriorityAllocateInfoEXTpNext(long value)Sets the specified value to thepNext()field.floatpriority()a floating-point value between 0 and 1, indicating the priority of the allocation relative to other memory allocations.VkMemoryPriorityAllocateInfoEXTpriority(float value)Sets the specified value to thepriority()field.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()the type of this structure.VkMemoryPriorityAllocateInfoEXTsType(int value)Sets the specified value to thesType()field.VkMemoryPriorityAllocateInfoEXTsType$Default()Sets theSTRUCTURE_TYPE_MEMORY_PRIORITY_ALLOCATE_INFO_EXTvalue to thesType()field.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
priority
public float 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.
-
sType
public VkMemoryPriorityAllocateInfoEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkMemoryPriorityAllocateInfoEXT sType$Default()
Sets theSTRUCTURE_TYPE_MEMORY_PRIORITY_ALLOCATE_INFO_EXTvalue to thesType()field.
-
pNext
public VkMemoryPriorityAllocateInfoEXT pNext(long value)
Sets the specified value to thepNext()field.
-
priority
public VkMemoryPriorityAllocateInfoEXT priority(float value)
Sets the specified value to thepriority()field.
-
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
@Deprecated public static VkMemoryPriorityAllocateInfoEXT mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkMemoryPriorityAllocateInfoEXT callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkMemoryPriorityAllocateInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkMemoryPriorityAllocateInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkMemoryPriorityAllocateInfoEXT.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkMemoryPriorityAllocateInfoEXT.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkMemoryPriorityAllocateInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkMemoryPriorityAllocateInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkMemoryPriorityAllocateInfoEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkMemoryPriorityAllocateInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkMemoryPriorityAllocateInfoEXT calloc(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
-
malloc
public static VkMemoryPriorityAllocateInfoEXT.Buffer malloc(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
-
calloc
public static VkMemoryPriorityAllocateInfoEXT.Buffer calloc(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.
-
-