public class VkSparseBufferMemoryBindInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
buffer must be a valid VkBuffer handlepBinds must be a valid pointer to an array of bindCount valid VkSparseMemoryBind structuresbindCount must be greater than 0VkBindSparseInfo, VkSparseMemoryBind
buffer – the VkBuffer object to be bound.bindCount – the number of VkSparseMemoryBind structures in the pBinds array.pBinds – a pointer to array of VkSparseMemoryBind structures.
struct VkSparseBufferMemoryBindInfo {
VkBuffer buffer;
uint32_t bindCount;
VkSparseMemoryBind const * pBinds;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkSparseBufferMemoryBindInfo.Buffer
An array of
VkSparseBufferMemoryBindInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BINDCOUNT
The struct member offsets.
|
static int |
BUFFER
The struct member offsets.
|
static int |
PBINDS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkSparseBufferMemoryBindInfo(java.nio.ByteBuffer container)
Creates a
VkSparseBufferMemoryBindInfo 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. |
long |
buffer()
Returns the value of the
buffer field. |
VkSparseBufferMemoryBindInfo |
buffer(long value)
Sets the specified value to the
buffer field. |
static VkSparseBufferMemoryBindInfo |
calloc()
Returns a new
VkSparseBufferMemoryBindInfo instance allocated with memCalloc. |
static VkSparseBufferMemoryBindInfo.Buffer |
calloc(int capacity)
Returns a new
VkSparseBufferMemoryBindInfo.Buffer instance allocated with memCalloc. |
static VkSparseBufferMemoryBindInfo |
callocStack()
Returns a new
VkSparseBufferMemoryBindInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSparseBufferMemoryBindInfo.Buffer |
callocStack(int capacity)
Returns a new
VkSparseBufferMemoryBindInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSparseBufferMemoryBindInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSparseBufferMemoryBindInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSparseBufferMemoryBindInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSparseBufferMemoryBindInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSparseBufferMemoryBindInfo |
create()
Returns a new
VkSparseBufferMemoryBindInfo instance allocated with BufferUtils. |
static VkSparseBufferMemoryBindInfo.Buffer |
create(int capacity)
Returns a new
VkSparseBufferMemoryBindInfo.Buffer instance allocated with BufferUtils. |
static VkSparseBufferMemoryBindInfo |
create(long address)
Returns a new
VkSparseBufferMemoryBindInfo instance for the specified memory address. |
static VkSparseBufferMemoryBindInfo.Buffer |
create(long address,
int capacity)
Create a
VkSparseBufferMemoryBindInfo.Buffer instance at the specified memory. |
static VkSparseBufferMemoryBindInfo |
createSafe(long address)
|
static VkSparseBufferMemoryBindInfo.Buffer |
createSafe(long address,
int capacity)
|
static VkSparseBufferMemoryBindInfo |
malloc()
Returns a new
VkSparseBufferMemoryBindInfo instance allocated with memAlloc. |
static VkSparseBufferMemoryBindInfo.Buffer |
malloc(int capacity)
Returns a new
VkSparseBufferMemoryBindInfo.Buffer instance allocated with memAlloc. |
static VkSparseBufferMemoryBindInfo |
mallocStack()
Returns a new
VkSparseBufferMemoryBindInfo instance allocated on the thread-local MemoryStack. |
static VkSparseBufferMemoryBindInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkSparseBufferMemoryBindInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkSparseBufferMemoryBindInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSparseBufferMemoryBindInfo.Buffer instance allocated on the specified MemoryStack. |
static VkSparseBufferMemoryBindInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSparseBufferMemoryBindInfo 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 |
nbuffer(long struct)
Unsafe version of
buffer(). |
static void |
nbuffer(long struct,
long value)
Unsafe version of
buffer. |
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. |
VkSparseBufferMemoryBindInfo |
pBinds(VkSparseMemoryBind.Buffer value)
Sets the address of the specified
VkSparseMemoryBind.Buffer to the pBinds field. |
VkSparseBufferMemoryBindInfo |
set(long buffer,
VkSparseMemoryBind.Buffer pBinds)
Initializes this struct with the specified values.
|
VkSparseBufferMemoryBindInfo |
set(VkSparseBufferMemoryBindInfo 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 BUFFER
public static final int BINDCOUNT
public static final int PBINDS
public VkSparseBufferMemoryBindInfo(java.nio.ByteBuffer container)
VkSparseBufferMemoryBindInfo 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 buffer()
buffer field.public int bindCount()
bindCount field.public VkSparseMemoryBind.Buffer pBinds()
VkSparseMemoryBind.Buffer view of the struct array pointed to by the pBinds field.public VkSparseBufferMemoryBindInfo buffer(long value)
buffer field.public VkSparseBufferMemoryBindInfo pBinds(VkSparseMemoryBind.Buffer value)
VkSparseMemoryBind.Buffer to the pBinds field.public VkSparseBufferMemoryBindInfo set(long buffer, VkSparseMemoryBind.Buffer pBinds)
public VkSparseBufferMemoryBindInfo set(VkSparseBufferMemoryBindInfo src)
src - the source structpublic static VkSparseBufferMemoryBindInfo malloc()
VkSparseBufferMemoryBindInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkSparseBufferMemoryBindInfo calloc()
VkSparseBufferMemoryBindInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkSparseBufferMemoryBindInfo create()
VkSparseBufferMemoryBindInfo instance allocated with BufferUtils.public static VkSparseBufferMemoryBindInfo create(long address)
VkSparseBufferMemoryBindInfo instance for the specified memory address.@Nullable public static VkSparseBufferMemoryBindInfo createSafe(long address)
public static VkSparseBufferMemoryBindInfo.Buffer malloc(int capacity)
VkSparseBufferMemoryBindInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSparseBufferMemoryBindInfo.Buffer calloc(int capacity)
VkSparseBufferMemoryBindInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSparseBufferMemoryBindInfo.Buffer create(int capacity)
VkSparseBufferMemoryBindInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkSparseBufferMemoryBindInfo.Buffer create(long address, int capacity)
VkSparseBufferMemoryBindInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkSparseBufferMemoryBindInfo.Buffer createSafe(long address, int capacity)
public static VkSparseBufferMemoryBindInfo mallocStack()
VkSparseBufferMemoryBindInfo instance allocated on the thread-local MemoryStack.public static VkSparseBufferMemoryBindInfo callocStack()
VkSparseBufferMemoryBindInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkSparseBufferMemoryBindInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkSparseBufferMemoryBindInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkSparseBufferMemoryBindInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkSparseBufferMemoryBindInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkSparseBufferMemoryBindInfo.Buffer mallocStack(int capacity)
VkSparseBufferMemoryBindInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkSparseBufferMemoryBindInfo.Buffer callocStack(int capacity)
VkSparseBufferMemoryBindInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkSparseBufferMemoryBindInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSparseBufferMemoryBindInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkSparseBufferMemoryBindInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSparseBufferMemoryBindInfo.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 nbuffer(long struct)
buffer().public static int nbindCount(long struct)
bindCount().public static VkSparseMemoryBind.Buffer npBinds(long struct)
pBinds().public static void nbuffer(long struct,
long value)
buffer.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.