public class VkImageMemoryRequirementsInfo2
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
image was created with a multi-planar format and the IMAGE_CREATE_DISJOINT_BIT flag, there must be a VkImagePlaneMemoryRequirementsInfo included in the pNext chain of the VkImageMemoryRequirementsInfo2 structureimage was created with IMAGE_CREATE_DISJOINT_BIT and with IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT, then there must be a VkImagePlaneMemoryRequirementsInfo included in the pNext chain of the VkImageMemoryRequirementsInfo2 structureimage was not created with the IMAGE_CREATE_DISJOINT_BIT flag, there must not be a VkImagePlaneMemoryRequirementsInfo included in the pNext chain of the VkImageMemoryRequirementsInfo2 structureimage was created with a single-plane format and with any tiling other than IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT, then there must not be a VkImagePlaneMemoryRequirementsInfo included in the pNext chain of the VkImageMemoryRequirementsInfo2 structuresType must be STRUCTURE_TYPE_IMAGE_MEMORY_REQUIREMENTS_INFO_2pNext must be NULL or a pointer to a valid instance of VkImagePlaneMemoryRequirementsInfoimage must be a valid VkImage handleGetImageMemoryRequirements2, GetImageMemoryRequirements2KHR
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.image – the image to query.
struct VkImageMemoryRequirementsInfo2 {
VkStructureType sType;
void const * pNext;
VkImage image;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkImageMemoryRequirementsInfo2.Buffer
An array of
VkImageMemoryRequirementsInfo2 structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
IMAGE
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 |
|---|
VkImageMemoryRequirementsInfo2(java.nio.ByteBuffer container)
Creates a
VkImageMemoryRequirementsInfo2 instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkImageMemoryRequirementsInfo2 |
calloc()
Returns a new
VkImageMemoryRequirementsInfo2 instance allocated with memCalloc. |
static VkImageMemoryRequirementsInfo2.Buffer |
calloc(int capacity)
Returns a new
VkImageMemoryRequirementsInfo2.Buffer instance allocated with memCalloc. |
static VkImageMemoryRequirementsInfo2 |
callocStack()
Returns a new
VkImageMemoryRequirementsInfo2 instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImageMemoryRequirementsInfo2.Buffer |
callocStack(int capacity)
Returns a new
VkImageMemoryRequirementsInfo2.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImageMemoryRequirementsInfo2.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageMemoryRequirementsInfo2.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImageMemoryRequirementsInfo2 |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageMemoryRequirementsInfo2 instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImageMemoryRequirementsInfo2 |
create()
Returns a new
VkImageMemoryRequirementsInfo2 instance allocated with BufferUtils. |
static VkImageMemoryRequirementsInfo2.Buffer |
create(int capacity)
Returns a new
VkImageMemoryRequirementsInfo2.Buffer instance allocated with BufferUtils. |
static VkImageMemoryRequirementsInfo2 |
create(long address)
Returns a new
VkImageMemoryRequirementsInfo2 instance for the specified memory address. |
static VkImageMemoryRequirementsInfo2.Buffer |
create(long address,
int capacity)
Create a
VkImageMemoryRequirementsInfo2.Buffer instance at the specified memory. |
static VkImageMemoryRequirementsInfo2 |
createSafe(long address)
|
static VkImageMemoryRequirementsInfo2.Buffer |
createSafe(long address,
int capacity)
|
long |
image()
Returns the value of the
image field. |
VkImageMemoryRequirementsInfo2 |
image(long value)
Sets the specified value to the
image field. |
static VkImageMemoryRequirementsInfo2 |
malloc()
Returns a new
VkImageMemoryRequirementsInfo2 instance allocated with memAlloc. |
static VkImageMemoryRequirementsInfo2.Buffer |
malloc(int capacity)
Returns a new
VkImageMemoryRequirementsInfo2.Buffer instance allocated with memAlloc. |
static VkImageMemoryRequirementsInfo2 |
mallocStack()
Returns a new
VkImageMemoryRequirementsInfo2 instance allocated on the thread-local MemoryStack. |
static VkImageMemoryRequirementsInfo2.Buffer |
mallocStack(int capacity)
Returns a new
VkImageMemoryRequirementsInfo2.Buffer instance allocated on the thread-local MemoryStack. |
static VkImageMemoryRequirementsInfo2.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageMemoryRequirementsInfo2.Buffer instance allocated on the specified MemoryStack. |
static VkImageMemoryRequirementsInfo2 |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageMemoryRequirementsInfo2 instance allocated on the specified MemoryStack. |
static long |
nimage(long struct)
Unsafe version of
image(). |
static void |
nimage(long struct,
long value)
Unsafe version of
image. |
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. |
VkImageMemoryRequirementsInfo2 |
pNext(long value)
Sets the specified value to the
pNext field. |
VkImageMemoryRequirementsInfo2 |
set(int sType,
long pNext,
long image)
Initializes this struct with the specified values.
|
VkImageMemoryRequirementsInfo2 |
set(VkImageMemoryRequirementsInfo2 src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkImageMemoryRequirementsInfo2 |
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 IMAGE
public VkImageMemoryRequirementsInfo2(java.nio.ByteBuffer container)
VkImageMemoryRequirementsInfo2 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 long image()
image field.public VkImageMemoryRequirementsInfo2 sType(int value)
sType field.public VkImageMemoryRequirementsInfo2 pNext(long value)
pNext field.public VkImageMemoryRequirementsInfo2 image(long value)
image field.public VkImageMemoryRequirementsInfo2 set(int sType, long pNext, long image)
public VkImageMemoryRequirementsInfo2 set(VkImageMemoryRequirementsInfo2 src)
src - the source structpublic static VkImageMemoryRequirementsInfo2 malloc()
VkImageMemoryRequirementsInfo2 instance allocated with memAlloc. The instance must be explicitly freed.public static VkImageMemoryRequirementsInfo2 calloc()
VkImageMemoryRequirementsInfo2 instance allocated with memCalloc. The instance must be explicitly freed.public static VkImageMemoryRequirementsInfo2 create()
VkImageMemoryRequirementsInfo2 instance allocated with BufferUtils.public static VkImageMemoryRequirementsInfo2 create(long address)
VkImageMemoryRequirementsInfo2 instance for the specified memory address.@Nullable public static VkImageMemoryRequirementsInfo2 createSafe(long address)
public static VkImageMemoryRequirementsInfo2.Buffer malloc(int capacity)
VkImageMemoryRequirementsInfo2.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImageMemoryRequirementsInfo2.Buffer calloc(int capacity)
VkImageMemoryRequirementsInfo2.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImageMemoryRequirementsInfo2.Buffer create(int capacity)
VkImageMemoryRequirementsInfo2.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkImageMemoryRequirementsInfo2.Buffer create(long address, int capacity)
VkImageMemoryRequirementsInfo2.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkImageMemoryRequirementsInfo2.Buffer createSafe(long address, int capacity)
public static VkImageMemoryRequirementsInfo2 mallocStack()
VkImageMemoryRequirementsInfo2 instance allocated on the thread-local MemoryStack.public static VkImageMemoryRequirementsInfo2 callocStack()
VkImageMemoryRequirementsInfo2 instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkImageMemoryRequirementsInfo2 mallocStack(org.lwjgl.system.MemoryStack stack)
VkImageMemoryRequirementsInfo2 instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkImageMemoryRequirementsInfo2 callocStack(org.lwjgl.system.MemoryStack stack)
VkImageMemoryRequirementsInfo2 instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkImageMemoryRequirementsInfo2.Buffer mallocStack(int capacity)
VkImageMemoryRequirementsInfo2.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkImageMemoryRequirementsInfo2.Buffer callocStack(int capacity)
VkImageMemoryRequirementsInfo2.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkImageMemoryRequirementsInfo2.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImageMemoryRequirementsInfo2.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkImageMemoryRequirementsInfo2.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImageMemoryRequirementsInfo2.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 long nimage(long struct)
image().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nimage(long struct,
long value)
image.Copyright LWJGL. All Rights Reserved. License terms.