public class VkPhysicalDeviceMemoryPriorityFeaturesEXT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
If the VkPhysicalDeviceMemoryPriorityFeaturesEXT structure is included in the pNext chain of VkPhysicalDeviceFeatures2, it is filled with values indicating whether the feature is supported. VkPhysicalDeviceMemoryPriorityFeaturesEXT can also be included in the pNext chain of VkDeviceCreateInfo to enable features.
memoryPriority – indicates that the implementation supports memory priorities specified at memory allocation time via VkMemoryPriorityAllocateInfoEXT.
struct VkPhysicalDeviceMemoryPriorityFeaturesEXT {
VkStructureType sType;
void * pNext;
VkBool32 memoryPriority;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer
An array of
VkPhysicalDeviceMemoryPriorityFeaturesEXT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MEMORYPRIORITY
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 |
|---|
VkPhysicalDeviceMemoryPriorityFeaturesEXT(java.nio.ByteBuffer container)
Creates a
VkPhysicalDeviceMemoryPriorityFeaturesEXT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkPhysicalDeviceMemoryPriorityFeaturesEXT |
calloc()
Returns a new
VkPhysicalDeviceMemoryPriorityFeaturesEXT instance allocated with memCalloc. |
static VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer |
calloc(int capacity)
Returns a new
VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer instance allocated with memCalloc. |
static VkPhysicalDeviceMemoryPriorityFeaturesEXT |
callocStack()
Returns a new
VkPhysicalDeviceMemoryPriorityFeaturesEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer |
callocStack(int capacity)
Returns a new
VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceMemoryPriorityFeaturesEXT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceMemoryPriorityFeaturesEXT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkPhysicalDeviceMemoryPriorityFeaturesEXT |
create()
Returns a new
VkPhysicalDeviceMemoryPriorityFeaturesEXT instance allocated with BufferUtils. |
static VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer |
create(int capacity)
Returns a new
VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer instance allocated with BufferUtils. |
static VkPhysicalDeviceMemoryPriorityFeaturesEXT |
create(long address)
Returns a new
VkPhysicalDeviceMemoryPriorityFeaturesEXT instance for the specified memory address. |
static VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer |
create(long address,
int capacity)
Create a
VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer instance at the specified memory. |
static VkPhysicalDeviceMemoryPriorityFeaturesEXT |
createSafe(long address)
|
static VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer |
createSafe(long address,
int capacity)
|
static VkPhysicalDeviceMemoryPriorityFeaturesEXT |
malloc()
Returns a new
VkPhysicalDeviceMemoryPriorityFeaturesEXT instance allocated with memAlloc. |
static VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer |
malloc(int capacity)
Returns a new
VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer instance allocated with memAlloc. |
static VkPhysicalDeviceMemoryPriorityFeaturesEXT |
mallocStack()
Returns a new
VkPhysicalDeviceMemoryPriorityFeaturesEXT instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer |
mallocStack(int capacity)
Returns a new
VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer instance allocated on the thread-local MemoryStack. |
static VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer instance allocated on the specified MemoryStack. |
static VkPhysicalDeviceMemoryPriorityFeaturesEXT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkPhysicalDeviceMemoryPriorityFeaturesEXT instance allocated on the specified MemoryStack. |
boolean |
memoryPriority()
Returns the value of the
memoryPriority field. |
VkPhysicalDeviceMemoryPriorityFeaturesEXT |
memoryPriority(boolean value)
Sets the specified value to the
memoryPriority field. |
static int |
nmemoryPriority(long struct)
Unsafe version of
memoryPriority(). |
static void |
nmemoryPriority(long struct,
int value)
Unsafe version of
memoryPriority. |
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. |
VkPhysicalDeviceMemoryPriorityFeaturesEXT |
pNext(long value)
Sets the specified value to the
pNext field. |
VkPhysicalDeviceMemoryPriorityFeaturesEXT |
set(int sType,
long pNext,
boolean memoryPriority)
Initializes this struct with the specified values.
|
VkPhysicalDeviceMemoryPriorityFeaturesEXT |
set(VkPhysicalDeviceMemoryPriorityFeaturesEXT src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkPhysicalDeviceMemoryPriorityFeaturesEXT |
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 MEMORYPRIORITY
public VkPhysicalDeviceMemoryPriorityFeaturesEXT(java.nio.ByteBuffer container)
VkPhysicalDeviceMemoryPriorityFeaturesEXT 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 boolean memoryPriority()
memoryPriority field.public VkPhysicalDeviceMemoryPriorityFeaturesEXT sType(int value)
sType field.public VkPhysicalDeviceMemoryPriorityFeaturesEXT pNext(long value)
pNext field.public VkPhysicalDeviceMemoryPriorityFeaturesEXT memoryPriority(boolean value)
memoryPriority field.public VkPhysicalDeviceMemoryPriorityFeaturesEXT set(int sType, long pNext, boolean memoryPriority)
public VkPhysicalDeviceMemoryPriorityFeaturesEXT set(VkPhysicalDeviceMemoryPriorityFeaturesEXT src)
src - the source structpublic static VkPhysicalDeviceMemoryPriorityFeaturesEXT malloc()
VkPhysicalDeviceMemoryPriorityFeaturesEXT instance allocated with memAlloc. The instance must be explicitly freed.public static VkPhysicalDeviceMemoryPriorityFeaturesEXT calloc()
VkPhysicalDeviceMemoryPriorityFeaturesEXT instance allocated with memCalloc. The instance must be explicitly freed.public static VkPhysicalDeviceMemoryPriorityFeaturesEXT create()
VkPhysicalDeviceMemoryPriorityFeaturesEXT instance allocated with BufferUtils.public static VkPhysicalDeviceMemoryPriorityFeaturesEXT create(long address)
VkPhysicalDeviceMemoryPriorityFeaturesEXT instance for the specified memory address.@Nullable public static VkPhysicalDeviceMemoryPriorityFeaturesEXT createSafe(long address)
public static VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer malloc(int capacity)
VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer calloc(int capacity)
VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer create(int capacity)
VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer create(long address, int capacity)
VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer createSafe(long address, int capacity)
public static VkPhysicalDeviceMemoryPriorityFeaturesEXT mallocStack()
VkPhysicalDeviceMemoryPriorityFeaturesEXT instance allocated on the thread-local MemoryStack.public static VkPhysicalDeviceMemoryPriorityFeaturesEXT callocStack()
VkPhysicalDeviceMemoryPriorityFeaturesEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkPhysicalDeviceMemoryPriorityFeaturesEXT mallocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceMemoryPriorityFeaturesEXT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkPhysicalDeviceMemoryPriorityFeaturesEXT callocStack(org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceMemoryPriorityFeaturesEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer mallocStack(int capacity)
VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer callocStack(int capacity)
VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkPhysicalDeviceMemoryPriorityFeaturesEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkPhysicalDeviceMemoryPriorityFeaturesEXT.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 int nmemoryPriority(long struct)
memoryPriority().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nmemoryPriority(long struct,
int value)
memoryPriority.Copyright LWJGL. All Rights Reserved. License terms.