public class VkMemoryRequirements2
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
sType must be STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2pNext must be NULL or a pointer to a valid instance of VkMemoryDedicatedRequirementsVkMemoryRequirements, GetBufferMemoryRequirements2, GetBufferMemoryRequirements2KHR, GetImageMemoryRequirements2, GetImageMemoryRequirements2KHR
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.memoryRequirements – a VkMemoryRequirements structure describing the memory requirements of the resource.
struct VkMemoryRequirements2 {
VkStructureType sType;
void * pNext;
VkMemoryRequirements memoryRequirements;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkMemoryRequirements2.Buffer
An array of
VkMemoryRequirements2 structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MEMORYREQUIREMENTS
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 |
|---|
VkMemoryRequirements2(java.nio.ByteBuffer container)
Creates a
VkMemoryRequirements2 instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkMemoryRequirements2 |
calloc()
Returns a new
VkMemoryRequirements2 instance allocated with memCalloc. |
static VkMemoryRequirements2.Buffer |
calloc(int capacity)
Returns a new
VkMemoryRequirements2.Buffer instance allocated with memCalloc. |
static VkMemoryRequirements2 |
callocStack()
Returns a new
VkMemoryRequirements2 instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkMemoryRequirements2.Buffer |
callocStack(int capacity)
Returns a new
VkMemoryRequirements2.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkMemoryRequirements2.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryRequirements2.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkMemoryRequirements2 |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryRequirements2 instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkMemoryRequirements2 |
create()
Returns a new
VkMemoryRequirements2 instance allocated with BufferUtils. |
static VkMemoryRequirements2.Buffer |
create(int capacity)
Returns a new
VkMemoryRequirements2.Buffer instance allocated with BufferUtils. |
static VkMemoryRequirements2 |
create(long address)
Returns a new
VkMemoryRequirements2 instance for the specified memory address. |
static VkMemoryRequirements2.Buffer |
create(long address,
int capacity)
Create a
VkMemoryRequirements2.Buffer instance at the specified memory. |
static VkMemoryRequirements2 |
createSafe(long address)
|
static VkMemoryRequirements2.Buffer |
createSafe(long address,
int capacity)
|
static VkMemoryRequirements2 |
malloc()
Returns a new
VkMemoryRequirements2 instance allocated with memAlloc. |
static VkMemoryRequirements2.Buffer |
malloc(int capacity)
Returns a new
VkMemoryRequirements2.Buffer instance allocated with memAlloc. |
static VkMemoryRequirements2 |
mallocStack()
Returns a new
VkMemoryRequirements2 instance allocated on the thread-local MemoryStack. |
static VkMemoryRequirements2.Buffer |
mallocStack(int capacity)
Returns a new
VkMemoryRequirements2.Buffer instance allocated on the thread-local MemoryStack. |
static VkMemoryRequirements2.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryRequirements2.Buffer instance allocated on the specified MemoryStack. |
static VkMemoryRequirements2 |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkMemoryRequirements2 instance allocated on the specified MemoryStack. |
VkMemoryRequirements |
memoryRequirements()
Returns a
VkMemoryRequirements view of the memoryRequirements field. |
static VkMemoryRequirements |
nmemoryRequirements(long struct)
Unsafe version of
memoryRequirements(). |
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. |
VkMemoryRequirements2 |
pNext(long value)
Sets the specified value to the
pNext field. |
VkMemoryRequirements2 |
set(int sType,
long pNext)
Initializes this struct with the specified values.
|
VkMemoryRequirements2 |
set(VkMemoryRequirements2 src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkMemoryRequirements2 |
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 MEMORYREQUIREMENTS
public VkMemoryRequirements2(java.nio.ByteBuffer container)
VkMemoryRequirements2 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 VkMemoryRequirements memoryRequirements()
VkMemoryRequirements view of the memoryRequirements field.public VkMemoryRequirements2 sType(int value)
sType field.public VkMemoryRequirements2 pNext(long value)
pNext field.public VkMemoryRequirements2 set(int sType, long pNext)
public VkMemoryRequirements2 set(VkMemoryRequirements2 src)
src - the source structpublic static VkMemoryRequirements2 malloc()
VkMemoryRequirements2 instance allocated with memAlloc. The instance must be explicitly freed.public static VkMemoryRequirements2 calloc()
VkMemoryRequirements2 instance allocated with memCalloc. The instance must be explicitly freed.public static VkMemoryRequirements2 create()
VkMemoryRequirements2 instance allocated with BufferUtils.public static VkMemoryRequirements2 create(long address)
VkMemoryRequirements2 instance for the specified memory address.@Nullable public static VkMemoryRequirements2 createSafe(long address)
public static VkMemoryRequirements2.Buffer malloc(int capacity)
VkMemoryRequirements2.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkMemoryRequirements2.Buffer calloc(int capacity)
VkMemoryRequirements2.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkMemoryRequirements2.Buffer create(int capacity)
VkMemoryRequirements2.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkMemoryRequirements2.Buffer create(long address, int capacity)
VkMemoryRequirements2.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkMemoryRequirements2.Buffer createSafe(long address, int capacity)
public static VkMemoryRequirements2 mallocStack()
VkMemoryRequirements2 instance allocated on the thread-local MemoryStack.public static VkMemoryRequirements2 callocStack()
VkMemoryRequirements2 instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkMemoryRequirements2 mallocStack(org.lwjgl.system.MemoryStack stack)
VkMemoryRequirements2 instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkMemoryRequirements2 callocStack(org.lwjgl.system.MemoryStack stack)
VkMemoryRequirements2 instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkMemoryRequirements2.Buffer mallocStack(int capacity)
VkMemoryRequirements2.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkMemoryRequirements2.Buffer callocStack(int capacity)
VkMemoryRequirements2.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkMemoryRequirements2.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkMemoryRequirements2.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkMemoryRequirements2.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkMemoryRequirements2.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 VkMemoryRequirements nmemoryRequirements(long struct)
memoryRequirements().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.