public class VkImageSparseMemoryRequirementsInfo2
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
sType must be STRUCTURE_TYPE_IMAGE_SPARSE_MEMORY_REQUIREMENTS_INFO_2pNext must be NULLimage must be a valid VkImage handleGetImageSparseMemoryRequirements2, GetImageSparseMemoryRequirements2KHR
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.image – the image to query.
struct VkImageSparseMemoryRequirementsInfo2 {
VkStructureType sType;
void const * pNext;
VkImage image;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkImageSparseMemoryRequirementsInfo2.Buffer
An array of
VkImageSparseMemoryRequirementsInfo2 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 |
|---|
VkImageSparseMemoryRequirementsInfo2(java.nio.ByteBuffer container)
Creates a
VkImageSparseMemoryRequirementsInfo2 instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkImageSparseMemoryRequirementsInfo2 |
calloc()
Returns a new
VkImageSparseMemoryRequirementsInfo2 instance allocated with memCalloc. |
static VkImageSparseMemoryRequirementsInfo2.Buffer |
calloc(int capacity)
Returns a new
VkImageSparseMemoryRequirementsInfo2.Buffer instance allocated with memCalloc. |
static VkImageSparseMemoryRequirementsInfo2 |
callocStack()
Returns a new
VkImageSparseMemoryRequirementsInfo2 instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImageSparseMemoryRequirementsInfo2.Buffer |
callocStack(int capacity)
Returns a new
VkImageSparseMemoryRequirementsInfo2.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkImageSparseMemoryRequirementsInfo2.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageSparseMemoryRequirementsInfo2.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImageSparseMemoryRequirementsInfo2 |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageSparseMemoryRequirementsInfo2 instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkImageSparseMemoryRequirementsInfo2 |
create()
Returns a new
VkImageSparseMemoryRequirementsInfo2 instance allocated with BufferUtils. |
static VkImageSparseMemoryRequirementsInfo2.Buffer |
create(int capacity)
Returns a new
VkImageSparseMemoryRequirementsInfo2.Buffer instance allocated with BufferUtils. |
static VkImageSparseMemoryRequirementsInfo2 |
create(long address)
Returns a new
VkImageSparseMemoryRequirementsInfo2 instance for the specified memory address. |
static VkImageSparseMemoryRequirementsInfo2.Buffer |
create(long address,
int capacity)
Create a
VkImageSparseMemoryRequirementsInfo2.Buffer instance at the specified memory. |
static VkImageSparseMemoryRequirementsInfo2 |
createSafe(long address)
|
static VkImageSparseMemoryRequirementsInfo2.Buffer |
createSafe(long address,
int capacity)
|
long |
image()
Returns the value of the
image field. |
VkImageSparseMemoryRequirementsInfo2 |
image(long value)
Sets the specified value to the
image field. |
static VkImageSparseMemoryRequirementsInfo2 |
malloc()
Returns a new
VkImageSparseMemoryRequirementsInfo2 instance allocated with memAlloc. |
static VkImageSparseMemoryRequirementsInfo2.Buffer |
malloc(int capacity)
Returns a new
VkImageSparseMemoryRequirementsInfo2.Buffer instance allocated with memAlloc. |
static VkImageSparseMemoryRequirementsInfo2 |
mallocStack()
Returns a new
VkImageSparseMemoryRequirementsInfo2 instance allocated on the thread-local MemoryStack. |
static VkImageSparseMemoryRequirementsInfo2.Buffer |
mallocStack(int capacity)
Returns a new
VkImageSparseMemoryRequirementsInfo2.Buffer instance allocated on the thread-local MemoryStack. |
static VkImageSparseMemoryRequirementsInfo2.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageSparseMemoryRequirementsInfo2.Buffer instance allocated on the specified MemoryStack. |
static VkImageSparseMemoryRequirementsInfo2 |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkImageSparseMemoryRequirementsInfo2 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. |
VkImageSparseMemoryRequirementsInfo2 |
pNext(long value)
Sets the specified value to the
pNext field. |
VkImageSparseMemoryRequirementsInfo2 |
set(int sType,
long pNext,
long image)
Initializes this struct with the specified values.
|
VkImageSparseMemoryRequirementsInfo2 |
set(VkImageSparseMemoryRequirementsInfo2 src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkImageSparseMemoryRequirementsInfo2 |
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 VkImageSparseMemoryRequirementsInfo2(java.nio.ByteBuffer container)
VkImageSparseMemoryRequirementsInfo2 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 VkImageSparseMemoryRequirementsInfo2 sType(int value)
sType field.public VkImageSparseMemoryRequirementsInfo2 pNext(long value)
pNext field.public VkImageSparseMemoryRequirementsInfo2 image(long value)
image field.public VkImageSparseMemoryRequirementsInfo2 set(int sType, long pNext, long image)
public VkImageSparseMemoryRequirementsInfo2 set(VkImageSparseMemoryRequirementsInfo2 src)
src - the source structpublic static VkImageSparseMemoryRequirementsInfo2 malloc()
VkImageSparseMemoryRequirementsInfo2 instance allocated with memAlloc. The instance must be explicitly freed.public static VkImageSparseMemoryRequirementsInfo2 calloc()
VkImageSparseMemoryRequirementsInfo2 instance allocated with memCalloc. The instance must be explicitly freed.public static VkImageSparseMemoryRequirementsInfo2 create()
VkImageSparseMemoryRequirementsInfo2 instance allocated with BufferUtils.public static VkImageSparseMemoryRequirementsInfo2 create(long address)
VkImageSparseMemoryRequirementsInfo2 instance for the specified memory address.@Nullable public static VkImageSparseMemoryRequirementsInfo2 createSafe(long address)
public static VkImageSparseMemoryRequirementsInfo2.Buffer malloc(int capacity)
VkImageSparseMemoryRequirementsInfo2.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImageSparseMemoryRequirementsInfo2.Buffer calloc(int capacity)
VkImageSparseMemoryRequirementsInfo2.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkImageSparseMemoryRequirementsInfo2.Buffer create(int capacity)
VkImageSparseMemoryRequirementsInfo2.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkImageSparseMemoryRequirementsInfo2.Buffer create(long address, int capacity)
VkImageSparseMemoryRequirementsInfo2.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkImageSparseMemoryRequirementsInfo2.Buffer createSafe(long address, int capacity)
public static VkImageSparseMemoryRequirementsInfo2 mallocStack()
VkImageSparseMemoryRequirementsInfo2 instance allocated on the thread-local MemoryStack.public static VkImageSparseMemoryRequirementsInfo2 callocStack()
VkImageSparseMemoryRequirementsInfo2 instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkImageSparseMemoryRequirementsInfo2 mallocStack(org.lwjgl.system.MemoryStack stack)
VkImageSparseMemoryRequirementsInfo2 instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkImageSparseMemoryRequirementsInfo2 callocStack(org.lwjgl.system.MemoryStack stack)
VkImageSparseMemoryRequirementsInfo2 instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkImageSparseMemoryRequirementsInfo2.Buffer mallocStack(int capacity)
VkImageSparseMemoryRequirementsInfo2.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkImageSparseMemoryRequirementsInfo2.Buffer callocStack(int capacity)
VkImageSparseMemoryRequirementsInfo2.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkImageSparseMemoryRequirementsInfo2.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImageSparseMemoryRequirementsInfo2.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkImageSparseMemoryRequirementsInfo2.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkImageSparseMemoryRequirementsInfo2.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.