public class VkSparseImageMemoryBindInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
subresource.mipLevel member of each element of pBinds must be less than the mipLevels specified in VkImageCreateInfo when image was createdsubresource.arrayLayer member of each element of pBinds must be less than the arrayLayers specified in VkImageCreateInfo when image was createdimage must be a valid VkImage handlepBinds must be a valid pointer to an array of bindCount valid VkSparseImageMemoryBind structuresbindCount must be greater than 0VkBindSparseInfo, VkSparseImageMemoryBind
image – the VkImage object to be boundbindCount – the number of VkSparseImageMemoryBind structures in pBinds arraypBinds – a pointer to an array of VkSparseImageMemoryBind structures
struct VkSparseImageMemoryBindInfo {
VkImage image;
uint32_t bindCount;
VkSparseImageMemoryBind const * pBinds;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkSparseImageMemoryBindInfo.Buffer
An array of
VkSparseImageMemoryBindInfo 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 |
|---|
VkSparseImageMemoryBindInfo(java.nio.ByteBuffer container)
Creates a
VkSparseImageMemoryBindInfo 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 VkSparseImageMemoryBindInfo |
calloc()
Returns a new
VkSparseImageMemoryBindInfo instance allocated with memCalloc. |
static VkSparseImageMemoryBindInfo.Buffer |
calloc(int capacity)
Returns a new
VkSparseImageMemoryBindInfo.Buffer instance allocated with memCalloc. |
static VkSparseImageMemoryBindInfo |
callocStack()
Returns a new
VkSparseImageMemoryBindInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSparseImageMemoryBindInfo.Buffer |
callocStack(int capacity)
Returns a new
VkSparseImageMemoryBindInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkSparseImageMemoryBindInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSparseImageMemoryBindInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSparseImageMemoryBindInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSparseImageMemoryBindInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkSparseImageMemoryBindInfo |
create()
Returns a new
VkSparseImageMemoryBindInfo instance allocated with BufferUtils. |
static VkSparseImageMemoryBindInfo.Buffer |
create(int capacity)
Returns a new
VkSparseImageMemoryBindInfo.Buffer instance allocated with BufferUtils. |
static VkSparseImageMemoryBindInfo |
create(long address)
Returns a new
VkSparseImageMemoryBindInfo instance for the specified memory address. |
static VkSparseImageMemoryBindInfo.Buffer |
create(long address,
int capacity)
Create a
VkSparseImageMemoryBindInfo.Buffer instance at the specified memory. |
static VkSparseImageMemoryBindInfo |
createSafe(long address)
|
static VkSparseImageMemoryBindInfo.Buffer |
createSafe(long address,
int capacity)
|
long |
image()
Returns the value of the
image field. |
VkSparseImageMemoryBindInfo |
image(long value)
Sets the specified value to the
image field. |
static VkSparseImageMemoryBindInfo |
malloc()
Returns a new
VkSparseImageMemoryBindInfo instance allocated with memAlloc. |
static VkSparseImageMemoryBindInfo.Buffer |
malloc(int capacity)
Returns a new
VkSparseImageMemoryBindInfo.Buffer instance allocated with memAlloc. |
static VkSparseImageMemoryBindInfo |
mallocStack()
Returns a new
VkSparseImageMemoryBindInfo instance allocated on the thread-local MemoryStack. |
static VkSparseImageMemoryBindInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkSparseImageMemoryBindInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkSparseImageMemoryBindInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkSparseImageMemoryBindInfo.Buffer instance allocated on the specified MemoryStack. |
static VkSparseImageMemoryBindInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkSparseImageMemoryBindInfo 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 VkSparseImageMemoryBind.Buffer |
npBinds(long struct)
Unsafe version of
pBinds(). |
static void |
npBinds(long struct,
VkSparseImageMemoryBind.Buffer value)
Unsafe version of
pBinds. |
VkSparseImageMemoryBind.Buffer |
pBinds()
Returns a
VkSparseImageMemoryBind.Buffer view of the struct array pointed to by the pBinds field. |
VkSparseImageMemoryBindInfo |
pBinds(VkSparseImageMemoryBind.Buffer value)
Sets the address of the specified
VkSparseImageMemoryBind.Buffer to the pBinds field. |
VkSparseImageMemoryBindInfo |
set(long image,
VkSparseImageMemoryBind.Buffer pBinds)
Initializes this struct with the specified values.
|
VkSparseImageMemoryBindInfo |
set(VkSparseImageMemoryBindInfo 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 VkSparseImageMemoryBindInfo(java.nio.ByteBuffer container)
VkSparseImageMemoryBindInfo 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 VkSparseImageMemoryBind.Buffer pBinds()
VkSparseImageMemoryBind.Buffer view of the struct array pointed to by the pBinds field.public VkSparseImageMemoryBindInfo image(long value)
image field.public VkSparseImageMemoryBindInfo pBinds(VkSparseImageMemoryBind.Buffer value)
VkSparseImageMemoryBind.Buffer to the pBinds field.public VkSparseImageMemoryBindInfo set(long image, VkSparseImageMemoryBind.Buffer pBinds)
public VkSparseImageMemoryBindInfo set(VkSparseImageMemoryBindInfo src)
src - the source structpublic static VkSparseImageMemoryBindInfo malloc()
VkSparseImageMemoryBindInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkSparseImageMemoryBindInfo calloc()
VkSparseImageMemoryBindInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkSparseImageMemoryBindInfo create()
VkSparseImageMemoryBindInfo instance allocated with BufferUtils.public static VkSparseImageMemoryBindInfo create(long address)
VkSparseImageMemoryBindInfo instance for the specified memory address.@Nullable public static VkSparseImageMemoryBindInfo createSafe(long address)
public static VkSparseImageMemoryBindInfo.Buffer malloc(int capacity)
VkSparseImageMemoryBindInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSparseImageMemoryBindInfo.Buffer calloc(int capacity)
VkSparseImageMemoryBindInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkSparseImageMemoryBindInfo.Buffer create(int capacity)
VkSparseImageMemoryBindInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkSparseImageMemoryBindInfo.Buffer create(long address, int capacity)
VkSparseImageMemoryBindInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkSparseImageMemoryBindInfo.Buffer createSafe(long address, int capacity)
public static VkSparseImageMemoryBindInfo mallocStack()
VkSparseImageMemoryBindInfo instance allocated on the thread-local MemoryStack.public static VkSparseImageMemoryBindInfo callocStack()
VkSparseImageMemoryBindInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkSparseImageMemoryBindInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkSparseImageMemoryBindInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkSparseImageMemoryBindInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkSparseImageMemoryBindInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkSparseImageMemoryBindInfo.Buffer mallocStack(int capacity)
VkSparseImageMemoryBindInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkSparseImageMemoryBindInfo.Buffer callocStack(int capacity)
VkSparseImageMemoryBindInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkSparseImageMemoryBindInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSparseImageMemoryBindInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkSparseImageMemoryBindInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkSparseImageMemoryBindInfo.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 VkSparseImageMemoryBind.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,
VkSparseImageMemoryBind.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.