public class VkSparseImageOpaqueMemoryBindInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
flags member of any element of pBinds contains SPARSE_MEMORY_BIND_METADATA_BIT, the binding range defined must be within the mip tail region of the metadata aspect of imageimage must be a valid VkImage handlepBinds must be a valid pointer to an array of bindCount valid VkSparseMemoryBind structuresbindCount must be greater than 0VkBindSparseInfo, VkSparseMemoryBind
image – the VkImage object to be bound.bindCount – the number of VkSparseMemoryBind structures in the pBinds array.pBinds – a pointer to an array of VkSparseMemoryBind structures.
struct VkSparseImageOpaqueMemoryBindInfo {
VkImage image;
uint32_t bindCount;
VkSparseMemoryBind const * pBinds;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkSparseImageOpaqueMemoryBindInfo.Buffer
An array of
VkSparseImageOpaqueMemoryBindInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BINDCOUNT
The struct member offsets.
|
static int |
IMAGE
The struct member offsets.
|
static int |
PBINDS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkSparseImageOpaqueMemoryBindInfo(java.nio.ByteBuffer container)
Creates a
VkSparseImageOpaqueMemoryBindInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
bindCount()
Returns the value of the
bindCount field. |
static VkSparseImageOpaqueMemoryBindInfo |
calloc()
Returns a new
VkSparseImageOpaqueMemoryBindInfo instance allocated with memCalloc. |
static VkSparseImageOpaqueMemoryBindInfo.Buffer |
calloc(int capacity)
Returns a new
VkSparseImageOpaqueMemoryBindInfo.Buffer instance allocated with memCalloc. |
static VkSparseImageOpaqueMemoryBindInfo |
callocStack()
Returns a new
VkSparseImageOpaqueMemoryBindInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSparseImageOpaqueMemoryBindInfo.Buffer |
callocStack(int capacity)
Returns a new
VkSparseImageOpaqueMemoryBindInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSparseImageOpaqueMemoryBindInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSparseImageOpaqueMemoryBindInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSparseImageOpaqueMemoryBindInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSparseImageOpaqueMemoryBindInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSparseImageOpaqueMemoryBindInfo |
create()
Returns a new
VkSparseImageOpaqueMemoryBindInfo instance allocated with BufferUtils. |
static VkSparseImageOpaqueMemoryBindInfo.Buffer |
create(int capacity)
Returns a new
VkSparseImageOpaqueMemoryBindInfo.Buffer instance allocated with BufferUtils. |
static VkSparseImageOpaqueMemoryBindInfo |
create(long address)
Returns a new
VkSparseImageOpaqueMemoryBindInfo instance for the specified memory address. |
static VkSparseImageOpaqueMemoryBindInfo.Buffer |
create(long address,
int capacity)
Create a
VkSparseImageOpaqueMemoryBindInfo.Buffer instance at the specified memory. |
static VkSparseImageOpaqueMemoryBindInfo |
createSafe(long address)
|
static VkSparseImageOpaqueMemoryBindInfo.Buffer |
createSafe(long address,
int capacity)
|
long |
image()
Returns the value of the
image field. |
VkSparseImageOpaqueMemoryBindInfo |
image(long value)
Sets the specified value to the
image field. |
static VkSparseImageOpaqueMemoryBindInfo |
malloc()
Returns a new
VkSparseImageOpaqueMemoryBindInfo instance allocated with memAlloc. |
static VkSparseImageOpaqueMemoryBindInfo.Buffer |
malloc(int capacity)
Returns a new
VkSparseImageOpaqueMemoryBindInfo.Buffer instance allocated with memAlloc. |
static VkSparseImageOpaqueMemoryBindInfo |
mallocStack()
Returns a new
VkSparseImageOpaqueMemoryBindInfo instance allocated on the thread-local MemoryStack. |
static VkSparseImageOpaqueMemoryBindInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkSparseImageOpaqueMemoryBindInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkSparseImageOpaqueMemoryBindInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSparseImageOpaqueMemoryBindInfo.Buffer instance allocated on the specified MemoryStack. |
static VkSparseImageOpaqueMemoryBindInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSparseImageOpaqueMemoryBindInfo instance allocated on the specified MemoryStack. |
static int |
nbindCount(long struct)
Unsafe version of
bindCount(). |
static void |
nbindCount(long struct,
int value)
Sets the specified value to the
bindCount field of the specified struct. |
static long |
nimage(long struct)
Unsafe version of
image(). |
static void |
nimage(long struct,
long value)
Unsafe version of
image. |
static VkSparseMemoryBind.Buffer |
npBinds(long struct)
Unsafe version of
pBinds(). |
static void |
npBinds(long struct,
VkSparseMemoryBind.Buffer value)
Unsafe version of
pBinds. |
VkSparseMemoryBind.Buffer |
pBinds()
Returns a
VkSparseMemoryBind.Buffer view of the struct array pointed to by the pBinds field. |
VkSparseImageOpaqueMemoryBindInfo |
pBinds(VkSparseMemoryBind.Buffer value)
Sets the address of the specified
VkSparseMemoryBind.Buffer to the pBinds field. |
VkSparseImageOpaqueMemoryBindInfo |
set(long image,
VkSparseMemoryBind.Buffer pBinds)
Initializes this struct with the specified values.
|
VkSparseImageOpaqueMemoryBindInfo |
set(VkSparseImageOpaqueMemoryBindInfo src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int IMAGE
public static final int BINDCOUNT
public static final int PBINDS
public VkSparseImageOpaqueMemoryBindInfo(java.nio.ByteBuffer container)
VkSparseImageOpaqueMemoryBindInfo 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 long image()
image field.public int bindCount()
bindCount field.public VkSparseMemoryBind.Buffer pBinds()
VkSparseMemoryBind.Buffer view of the struct array pointed to by the pBinds field.public VkSparseImageOpaqueMemoryBindInfo image(long value)
image field.public VkSparseImageOpaqueMemoryBindInfo pBinds(VkSparseMemoryBind.Buffer value)
VkSparseMemoryBind.Buffer to the pBinds field.public VkSparseImageOpaqueMemoryBindInfo set(long image, VkSparseMemoryBind.Buffer pBinds)
public VkSparseImageOpaqueMemoryBindInfo set(VkSparseImageOpaqueMemoryBindInfo src)
src - the source structpublic static VkSparseImageOpaqueMemoryBindInfo malloc()
VkSparseImageOpaqueMemoryBindInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkSparseImageOpaqueMemoryBindInfo calloc()
VkSparseImageOpaqueMemoryBindInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkSparseImageOpaqueMemoryBindInfo create()
VkSparseImageOpaqueMemoryBindInfo instance allocated with BufferUtils.public static VkSparseImageOpaqueMemoryBindInfo create(long address)
VkSparseImageOpaqueMemoryBindInfo instance for the specified memory address.@Nullable public static VkSparseImageOpaqueMemoryBindInfo createSafe(long address)
public static VkSparseImageOpaqueMemoryBindInfo.Buffer malloc(int capacity)
VkSparseImageOpaqueMemoryBindInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSparseImageOpaqueMemoryBindInfo.Buffer calloc(int capacity)
VkSparseImageOpaqueMemoryBindInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSparseImageOpaqueMemoryBindInfo.Buffer create(int capacity)
VkSparseImageOpaqueMemoryBindInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkSparseImageOpaqueMemoryBindInfo.Buffer create(long address, int capacity)
VkSparseImageOpaqueMemoryBindInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkSparseImageOpaqueMemoryBindInfo.Buffer createSafe(long address, int capacity)
public static VkSparseImageOpaqueMemoryBindInfo mallocStack()
VkSparseImageOpaqueMemoryBindInfo instance allocated on the thread-local MemoryStack.public static VkSparseImageOpaqueMemoryBindInfo callocStack()
VkSparseImageOpaqueMemoryBindInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkSparseImageOpaqueMemoryBindInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkSparseImageOpaqueMemoryBindInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkSparseImageOpaqueMemoryBindInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkSparseImageOpaqueMemoryBindInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkSparseImageOpaqueMemoryBindInfo.Buffer mallocStack(int capacity)
VkSparseImageOpaqueMemoryBindInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkSparseImageOpaqueMemoryBindInfo.Buffer callocStack(int capacity)
VkSparseImageOpaqueMemoryBindInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkSparseImageOpaqueMemoryBindInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSparseImageOpaqueMemoryBindInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkSparseImageOpaqueMemoryBindInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSparseImageOpaqueMemoryBindInfo.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 long nimage(long struct)
image().public static int nbindCount(long struct)
bindCount().public static VkSparseMemoryBind.Buffer npBinds(long struct)
pBinds().public static void nimage(long struct,
long value)
image.public static void nbindCount(long struct,
int value)
bindCount field of the specified struct.public static void npBinds(long struct,
VkSparseMemoryBind.Buffer value)
pBinds.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.