public class VkBindSparseInfo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
pWaitSemaphores or pSignalSemaphores was created with a VkSemaphoreTypeKHR of SEMAPHORE_TYPE_TIMELINE_KHR then the pNext chain must include a VkTimelineSemaphoreSubmitInfoKHR structurepNext chain of this structure includes a VkTimelineSemaphoreSubmitInfoKHR structure and any element of pWaitSemaphores was created with a VkSemaphoreTypeKHR of SEMAPHORE_TYPE_TIMELINE_KHR then its waitSemaphoreValueCount member must equal waitSemaphoreCountpNext chain of this structure includes a VkTimelineSemaphoreSubmitInfoKHR structure and any element of pSignalSemaphores was created with a VkSemaphoreTypeKHR of SEMAPHORE_TYPE_TIMELINE_KHR then its signalSemaphoreValueCount member must equal signalSemaphoreCountpSignalSemaphores created with a VkSemaphoreTypeKHR of SEMAPHORE_TYPE_TIMELINE_KHR the corresponding element of VkTimelineSemaphoreSubmitInfoKHR::pSignalSemaphoreValues must have a value greater than the current value of the semaphore when the semaphore signal operation is executedpWaitSemaphores created with a VkSemaphoreTypeKHR of SEMAPHORE_TYPE_TIMELINE_KHR the corresponding element of VkTimelineSemaphoreSubmitInfoKHR::pWaitSemaphoreValues must have a value which does not differ from the current value of the semaphore or from the value of any outstanding semaphore wait or signal operation on that semaphore by more than maxTimelineSemaphoreValueDifference.pSignalSemaphores created with a VkSemaphoreTypeKHR of SEMAPHORE_TYPE_TIMELINE_KHR the corresponding element of VkTimelineSemaphoreSubmitInfoKHR::pSignalSemaphoreValues must have a value which does not differ from the current value of the semaphore or from the value of any outstanding semaphore wait or signal operation on that semaphore by more than maxTimelineSemaphoreValueDifference.sType must be STRUCTURE_TYPE_BIND_SPARSE_INFOpNext member of any structure (including this one) in the pNext chain must be either NULL or a pointer to a valid instance of VkDeviceGroupBindSparseInfo or VkTimelineSemaphoreSubmitInfoKHRsType member in the pNext chain must be uniquewaitSemaphoreCount is not 0, pWaitSemaphores must be a valid pointer to an array of waitSemaphoreCount valid VkSemaphore handlesbufferBindCount is not 0, pBufferBinds must be a valid pointer to an array of bufferBindCount valid VkSparseBufferMemoryBindInfo structuresimageOpaqueBindCount is not 0, pImageOpaqueBinds must be a valid pointer to an array of imageOpaqueBindCount valid VkSparseImageOpaqueMemoryBindInfo structuresimageBindCount is not 0, pImageBinds must be a valid pointer to an array of imageBindCount valid VkSparseImageMemoryBindInfo structuressignalSemaphoreCount is not 0, pSignalSemaphores must be a valid pointer to an array of signalSemaphoreCount valid VkSemaphore handlespSignalSemaphores, and the elements of pWaitSemaphores that are valid handles of non-ignored parameters must have been created, allocated, or retrieved from the same VkDeviceVkSparseBufferMemoryBindInfo, VkSparseImageMemoryBindInfo, VkSparseImageOpaqueMemoryBindInfo, QueueBindSparse
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.waitSemaphoreCount – the number of semaphores upon which to wait before executing the sparse binding operations for the batch.pWaitSemaphores – a pointer to an array of semaphores upon which to wait on before the sparse binding operations for this batch begin execution. If semaphores to wait on are provided, they define a semaphore wait operation.bufferBindCount – the number of sparse buffer bindings to perform in the batch.pBufferBinds – a pointer to an array of VkSparseBufferMemoryBindInfo structures.imageOpaqueBindCount – the number of opaque sparse image bindings to perform.pImageOpaqueBinds – a pointer to an array of VkSparseImageOpaqueMemoryBindInfo structures, indicating opaque sparse image bindings to perform.imageBindCount – the number of sparse image bindings to perform.pImageBinds – a pointer to an array of VkSparseImageMemoryBindInfo structures, indicating sparse image bindings to perform.signalSemaphoreCount – the number of semaphores to be signaled once the sparse binding operations specified by the structure have completed execution.pSignalSemaphores – a pointer to an array of semaphores which will be signaled when the sparse binding operations for this batch have completed execution. If semaphores to be signaled are provided, they define a semaphore signal operation.
struct VkBindSparseInfo {
VkStructureType sType;
void const * pNext;
uint32_t waitSemaphoreCount;
VkSemaphore const * pWaitSemaphores;
uint32_t bufferBindCount;
VkSparseBufferMemoryBindInfo const * pBufferBinds;
uint32_t imageOpaqueBindCount;
VkSparseImageOpaqueMemoryBindInfo const * pImageOpaqueBinds;
uint32_t imageBindCount;
VkSparseImageMemoryBindInfo const * pImageBinds;
uint32_t signalSemaphoreCount;
VkSemaphore const * pSignalSemaphores;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkBindSparseInfo.Buffer
An array of
VkBindSparseInfo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BUFFERBINDCOUNT
The struct member offsets.
|
static int |
IMAGEBINDCOUNT
The struct member offsets.
|
static int |
IMAGEOPAQUEBINDCOUNT
The struct member offsets.
|
static int |
PBUFFERBINDS
The struct member offsets.
|
static int |
PIMAGEBINDS
The struct member offsets.
|
static int |
PIMAGEOPAQUEBINDS
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PSIGNALSEMAPHORES
The struct member offsets.
|
static int |
PWAITSEMAPHORES
The struct member offsets.
|
static int |
SIGNALSEMAPHORECOUNT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
static int |
WAITSEMAPHORECOUNT
The struct member offsets.
|
| Constructor and Description |
|---|
VkBindSparseInfo(java.nio.ByteBuffer container)
Creates a
VkBindSparseInfo instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
bufferBindCount()
Returns the value of the
bufferBindCount field. |
static VkBindSparseInfo |
calloc()
Returns a new
VkBindSparseInfo instance allocated with memCalloc. |
static VkBindSparseInfo.Buffer |
calloc(int capacity)
Returns a new
VkBindSparseInfo.Buffer instance allocated with memCalloc. |
static VkBindSparseInfo |
callocStack()
Returns a new
VkBindSparseInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkBindSparseInfo.Buffer |
callocStack(int capacity)
Returns a new
VkBindSparseInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkBindSparseInfo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkBindSparseInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkBindSparseInfo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkBindSparseInfo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkBindSparseInfo |
create()
Returns a new
VkBindSparseInfo instance allocated with BufferUtils. |
static VkBindSparseInfo.Buffer |
create(int capacity)
Returns a new
VkBindSparseInfo.Buffer instance allocated with BufferUtils. |
static VkBindSparseInfo |
create(long address)
Returns a new
VkBindSparseInfo instance for the specified memory address. |
static VkBindSparseInfo.Buffer |
create(long address,
int capacity)
Create a
VkBindSparseInfo.Buffer instance at the specified memory. |
static VkBindSparseInfo |
createSafe(long address)
|
static VkBindSparseInfo.Buffer |
createSafe(long address,
int capacity)
|
int |
imageBindCount()
Returns the value of the
imageBindCount field. |
int |
imageOpaqueBindCount()
Returns the value of the
imageOpaqueBindCount field. |
static VkBindSparseInfo |
malloc()
Returns a new
VkBindSparseInfo instance allocated with memAlloc. |
static VkBindSparseInfo.Buffer |
malloc(int capacity)
Returns a new
VkBindSparseInfo.Buffer instance allocated with memAlloc. |
static VkBindSparseInfo |
mallocStack()
Returns a new
VkBindSparseInfo instance allocated on the thread-local MemoryStack. |
static VkBindSparseInfo.Buffer |
mallocStack(int capacity)
Returns a new
VkBindSparseInfo.Buffer instance allocated on the thread-local MemoryStack. |
static VkBindSparseInfo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkBindSparseInfo.Buffer instance allocated on the specified MemoryStack. |
static VkBindSparseInfo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkBindSparseInfo instance allocated on the specified MemoryStack. |
static int |
nbufferBindCount(long struct)
Unsafe version of
bufferBindCount(). |
static void |
nbufferBindCount(long struct,
int value)
Sets the specified value to the
bufferBindCount field of the specified struct. |
static int |
nimageBindCount(long struct)
Unsafe version of
imageBindCount(). |
static void |
nimageBindCount(long struct,
int value)
Sets the specified value to the
imageBindCount field of the specified struct. |
static int |
nimageOpaqueBindCount(long struct)
Unsafe version of
imageOpaqueBindCount(). |
static void |
nimageOpaqueBindCount(long struct,
int value)
Sets the specified value to the
imageOpaqueBindCount field of the specified struct. |
static VkSparseBufferMemoryBindInfo.Buffer |
npBufferBinds(long struct)
Unsafe version of
pBufferBinds(). |
static void |
npBufferBinds(long struct,
VkSparseBufferMemoryBindInfo.Buffer value)
Unsafe version of
pBufferBinds. |
static VkSparseImageMemoryBindInfo.Buffer |
npImageBinds(long struct)
Unsafe version of
pImageBinds(). |
static void |
npImageBinds(long struct,
VkSparseImageMemoryBindInfo.Buffer value)
Unsafe version of
pImageBinds. |
static VkSparseImageOpaqueMemoryBindInfo.Buffer |
npImageOpaqueBinds(long struct)
Unsafe version of
pImageOpaqueBinds(). |
static void |
npImageOpaqueBinds(long struct,
VkSparseImageOpaqueMemoryBindInfo.Buffer value)
Unsafe version of
pImageOpaqueBinds. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static java.nio.LongBuffer |
npSignalSemaphores(long struct)
Unsafe version of
pSignalSemaphores. |
static void |
npSignalSemaphores(long struct,
java.nio.LongBuffer value)
Unsafe version of
pSignalSemaphores. |
static java.nio.LongBuffer |
npWaitSemaphores(long struct)
Unsafe version of
pWaitSemaphores. |
static void |
npWaitSemaphores(long struct,
java.nio.LongBuffer value)
Unsafe version of
pWaitSemaphores. |
static int |
nsignalSemaphoreCount(long struct)
Unsafe version of
signalSemaphoreCount(). |
static void |
nsignalSemaphoreCount(long struct,
int value)
Sets the specified value to the
signalSemaphoreCount field of the specified struct. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static int |
nwaitSemaphoreCount(long struct)
Unsafe version of
waitSemaphoreCount(). |
static void |
nwaitSemaphoreCount(long struct,
int value)
Sets the specified value to the
waitSemaphoreCount field of the specified struct. |
VkSparseBufferMemoryBindInfo.Buffer |
pBufferBinds()
Returns a
VkSparseBufferMemoryBindInfo.Buffer view of the struct array pointed to by the pBufferBinds field. |
VkBindSparseInfo |
pBufferBinds(VkSparseBufferMemoryBindInfo.Buffer value)
Sets the address of the specified
VkSparseBufferMemoryBindInfo.Buffer to the pBufferBinds field. |
VkSparseImageMemoryBindInfo.Buffer |
pImageBinds()
Returns a
VkSparseImageMemoryBindInfo.Buffer view of the struct array pointed to by the pImageBinds field. |
VkBindSparseInfo |
pImageBinds(VkSparseImageMemoryBindInfo.Buffer value)
Sets the address of the specified
VkSparseImageMemoryBindInfo.Buffer to the pImageBinds field. |
VkSparseImageOpaqueMemoryBindInfo.Buffer |
pImageOpaqueBinds()
Returns a
VkSparseImageOpaqueMemoryBindInfo.Buffer view of the struct array pointed to by the pImageOpaqueBinds field. |
VkBindSparseInfo |
pImageOpaqueBinds(VkSparseImageOpaqueMemoryBindInfo.Buffer value)
Sets the address of the specified
VkSparseImageOpaqueMemoryBindInfo.Buffer to the pImageOpaqueBinds field. |
long |
pNext()
Returns the value of the
pNext field. |
VkBindSparseInfo |
pNext(long value)
Sets the specified value to the
pNext field. |
java.nio.LongBuffer |
pSignalSemaphores()
Returns a
LongBuffer view of the data pointed to by the pSignalSemaphores field. |
VkBindSparseInfo |
pSignalSemaphores(java.nio.LongBuffer value)
Sets the address of the specified
LongBuffer to the pSignalSemaphores field. |
java.nio.LongBuffer |
pWaitSemaphores()
Returns a
LongBuffer view of the data pointed to by the pWaitSemaphores field. |
VkBindSparseInfo |
pWaitSemaphores(java.nio.LongBuffer value)
Sets the address of the specified
LongBuffer to the pWaitSemaphores field. |
VkBindSparseInfo |
set(int sType,
long pNext,
java.nio.LongBuffer pWaitSemaphores,
VkSparseBufferMemoryBindInfo.Buffer pBufferBinds,
VkSparseImageOpaqueMemoryBindInfo.Buffer pImageOpaqueBinds,
VkSparseImageMemoryBindInfo.Buffer pImageBinds,
java.nio.LongBuffer pSignalSemaphores)
Initializes this struct with the specified values.
|
VkBindSparseInfo |
set(VkBindSparseInfo src)
Copies the specified struct data to this struct.
|
int |
signalSemaphoreCount()
Returns the value of the
signalSemaphoreCount field. |
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkBindSparseInfo |
sType(int value)
Sets the specified value to the
sType field. |
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. |
int |
waitSemaphoreCount()
Returns the value of the
waitSemaphoreCount 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 WAITSEMAPHORECOUNT
public static final int PWAITSEMAPHORES
public static final int BUFFERBINDCOUNT
public static final int PBUFFERBINDS
public static final int IMAGEOPAQUEBINDCOUNT
public static final int PIMAGEOPAQUEBINDS
public static final int IMAGEBINDCOUNT
public static final int PIMAGEBINDS
public static final int SIGNALSEMAPHORECOUNT
public static final int PSIGNALSEMAPHORES
public VkBindSparseInfo(java.nio.ByteBuffer container)
VkBindSparseInfo 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 int waitSemaphoreCount()
waitSemaphoreCount field.@Nullable public java.nio.LongBuffer pWaitSemaphores()
LongBuffer view of the data pointed to by the pWaitSemaphores field.public int bufferBindCount()
bufferBindCount field.@Nullable public VkSparseBufferMemoryBindInfo.Buffer pBufferBinds()
VkSparseBufferMemoryBindInfo.Buffer view of the struct array pointed to by the pBufferBinds field.public int imageOpaqueBindCount()
imageOpaqueBindCount field.@Nullable public VkSparseImageOpaqueMemoryBindInfo.Buffer pImageOpaqueBinds()
VkSparseImageOpaqueMemoryBindInfo.Buffer view of the struct array pointed to by the pImageOpaqueBinds field.public int imageBindCount()
imageBindCount field.@Nullable public VkSparseImageMemoryBindInfo.Buffer pImageBinds()
VkSparseImageMemoryBindInfo.Buffer view of the struct array pointed to by the pImageBinds field.public int signalSemaphoreCount()
signalSemaphoreCount field.@Nullable public java.nio.LongBuffer pSignalSemaphores()
LongBuffer view of the data pointed to by the pSignalSemaphores field.public VkBindSparseInfo sType(int value)
sType field.public VkBindSparseInfo pNext(long value)
pNext field.public VkBindSparseInfo pWaitSemaphores(@Nullable java.nio.LongBuffer value)
LongBuffer to the pWaitSemaphores field.public VkBindSparseInfo pBufferBinds(@Nullable VkSparseBufferMemoryBindInfo.Buffer value)
VkSparseBufferMemoryBindInfo.Buffer to the pBufferBinds field.public VkBindSparseInfo pImageOpaqueBinds(@Nullable VkSparseImageOpaqueMemoryBindInfo.Buffer value)
VkSparseImageOpaqueMemoryBindInfo.Buffer to the pImageOpaqueBinds field.public VkBindSparseInfo pImageBinds(@Nullable VkSparseImageMemoryBindInfo.Buffer value)
VkSparseImageMemoryBindInfo.Buffer to the pImageBinds field.public VkBindSparseInfo pSignalSemaphores(@Nullable java.nio.LongBuffer value)
LongBuffer to the pSignalSemaphores field.public VkBindSparseInfo set(int sType, long pNext, @Nullable java.nio.LongBuffer pWaitSemaphores, @Nullable VkSparseBufferMemoryBindInfo.Buffer pBufferBinds, @Nullable VkSparseImageOpaqueMemoryBindInfo.Buffer pImageOpaqueBinds, @Nullable VkSparseImageMemoryBindInfo.Buffer pImageBinds, @Nullable java.nio.LongBuffer pSignalSemaphores)
public VkBindSparseInfo set(VkBindSparseInfo src)
src - the source structpublic static VkBindSparseInfo malloc()
VkBindSparseInfo instance allocated with memAlloc. The instance must be explicitly freed.public static VkBindSparseInfo calloc()
VkBindSparseInfo instance allocated with memCalloc. The instance must be explicitly freed.public static VkBindSparseInfo create()
VkBindSparseInfo instance allocated with BufferUtils.public static VkBindSparseInfo create(long address)
VkBindSparseInfo instance for the specified memory address.@Nullable public static VkBindSparseInfo createSafe(long address)
public static VkBindSparseInfo.Buffer malloc(int capacity)
VkBindSparseInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkBindSparseInfo.Buffer calloc(int capacity)
VkBindSparseInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkBindSparseInfo.Buffer create(int capacity)
VkBindSparseInfo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkBindSparseInfo.Buffer create(long address, int capacity)
VkBindSparseInfo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkBindSparseInfo.Buffer createSafe(long address, int capacity)
public static VkBindSparseInfo mallocStack()
VkBindSparseInfo instance allocated on the thread-local MemoryStack.public static VkBindSparseInfo callocStack()
VkBindSparseInfo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkBindSparseInfo mallocStack(org.lwjgl.system.MemoryStack stack)
VkBindSparseInfo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkBindSparseInfo callocStack(org.lwjgl.system.MemoryStack stack)
VkBindSparseInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkBindSparseInfo.Buffer mallocStack(int capacity)
VkBindSparseInfo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkBindSparseInfo.Buffer callocStack(int capacity)
VkBindSparseInfo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkBindSparseInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkBindSparseInfo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkBindSparseInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkBindSparseInfo.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 int nwaitSemaphoreCount(long struct)
waitSemaphoreCount().@Nullable public static java.nio.LongBuffer npWaitSemaphores(long struct)
pWaitSemaphores.public static int nbufferBindCount(long struct)
bufferBindCount().@Nullable public static VkSparseBufferMemoryBindInfo.Buffer npBufferBinds(long struct)
pBufferBinds().public static int nimageOpaqueBindCount(long struct)
imageOpaqueBindCount().@Nullable public static VkSparseImageOpaqueMemoryBindInfo.Buffer npImageOpaqueBinds(long struct)
pImageOpaqueBinds().public static int nimageBindCount(long struct)
imageBindCount().@Nullable public static VkSparseImageMemoryBindInfo.Buffer npImageBinds(long struct)
pImageBinds().public static int nsignalSemaphoreCount(long struct)
signalSemaphoreCount().@Nullable public static java.nio.LongBuffer npSignalSemaphores(long struct)
pSignalSemaphores.public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nwaitSemaphoreCount(long struct,
int value)
waitSemaphoreCount field of the specified struct.public static void npWaitSemaphores(long struct,
@Nullable
java.nio.LongBuffer value)
pWaitSemaphores.public static void nbufferBindCount(long struct,
int value)
bufferBindCount field of the specified struct.public static void npBufferBinds(long struct,
@Nullable
VkSparseBufferMemoryBindInfo.Buffer value)
pBufferBinds.public static void nimageOpaqueBindCount(long struct,
int value)
imageOpaqueBindCount field of the specified struct.public static void npImageOpaqueBinds(long struct,
@Nullable
VkSparseImageOpaqueMemoryBindInfo.Buffer value)
pImageOpaqueBinds.public static void nimageBindCount(long struct,
int value)
imageBindCount field of the specified struct.public static void npImageBinds(long struct,
@Nullable
VkSparseImageMemoryBindInfo.Buffer value)
pImageBinds.public static void nsignalSemaphoreCount(long struct,
int value)
signalSemaphoreCount field of the specified struct.public static void npSignalSemaphores(long struct,
@Nullable
java.nio.LongBuffer value)
pSignalSemaphores.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.