Package org.lwjgl.vulkan
Class VkBindSparseInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkBindSparseInfo
-
- All Implemented Interfaces:
- java.lang.AutoCloseable, NativeResource, Pointer
public class VkBindSparseInfo extends Struct
Khronos Reference Page
Vulkan SpecificationDescribes a set of sparse binding operations.
Valid Usage
sTypemust beSTRUCTURE_TYPE_BIND_SPARSE_INFOpNextmust beNULL- If
waitSemaphoreCountis not 0,pWaitSemaphoresmust be a pointer to an array ofwaitSemaphoreCountvalidVkSemaphorehandles - If
bufferBindCountis not 0,pBufferBindsmust be a pointer to an array ofbufferBindCountvalidVkSparseBufferMemoryBindInfostructures - If
imageOpaqueBindCountis not 0,pImageOpaqueBindsmust be a pointer to an array ofimageOpaqueBindCountvalidVkSparseImageOpaqueMemoryBindInfostructures - If
imageBindCountis not 0,pImageBindsmust be a pointer to an array ofimageBindCountvalidVkSparseImageMemoryBindInfostructures - If
signalSemaphoreCountis not 0,pSignalSemaphoresmust be a pointer to an array ofsignalSemaphoreCountvalidVkSemaphorehandles - Each of the elements of
pWaitSemaphoresand the elements ofpSignalSemaphoresthat are valid handles must have been created, allocated or retrieved from the sameVkDevice
Member documentation
sType– the type of this structure. Must be:STRUCTURE_TYPE_BIND_SPARSE_INFOpNext– reserved for use by extensionswaitSemaphoreCount– the number of semaphores upon which to wait before executing the sparse binding operations for the batchpWaitSemaphores– a pointer to an array of semaphores upon which to wait before executing the sparse binding operations in the batchbufferBindCount– the number of sparse buffer bindings to performpBufferBinds– an array ofVkSparseBufferMemoryBindInfostructures, indicating sparse buffer bindings to performimageOpaqueBindCount– the number of opaque sparse image bindings to performpImageOpaqueBinds– an array ofVkSparseImageOpaqueMemoryBindInfostructures, indicating opaque sparse image bindings to performimageBindCount– the number of sparse image bindings to performpImageBinds– an array ofVkSparseImageMemoryBindInfostructures, indicating sparse image bindings to performsignalSemaphoreCount– the number of semaphores to be signaled once the sparse binding operations specified by the structure have completed executionpSignalSemaphores– a pointer to an array of semaphores which will be signaled when the sparse binding operations for this batch have completed execution
Layout
struct VkBindSparseInfo { VkStructureType sType; const void * pNext; uint32_t waitSemaphoreCount; const VkSemaphore * pWaitSemaphores; uint32_t bufferBindCount; const VkSparseBufferMemoryBindInfo * pBufferBinds; uint32_t imageOpaqueBindCount; const VkSparseImageOpaqueMemoryBindInfo * pImageOpaqueBinds; uint32_t imageBindCount; const VkSparseImageMemoryBindInfo * pImageBinds; uint32_t signalSemaphoreCount; const VkSemaphore * pSignalSemaphores; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classVkBindSparseInfo.BufferAn array ofVkBindSparseInfostructs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and Description VkBindSparseInfo(java.nio.ByteBuffer container)Creates aVkBindSparseInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description intbufferBindCount()Returns the value of thebufferBindCountfield.static VkBindSparseInfocalloc()Returns a newVkBindSparseInfoinstance allocated withmemCalloc.static VkBindSparseInfo.Buffercalloc(int capacity)Returns a newVkBindSparseInfo.Bufferinstance allocated withmemCalloc.static VkBindSparseInfocallocStack()Returns a newVkBindSparseInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkBindSparseInfo.BuffercallocStack(int capacity)Returns a newVkBindSparseInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkBindSparseInfo.BuffercallocStack(int capacity, MemoryStack stack)Returns a newVkBindSparseInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBindSparseInfocallocStack(MemoryStack stack)Returns a newVkBindSparseInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBindSparseInfocreate()Returns a newVkBindSparseInfoinstance allocated withBufferUtils.static VkBindSparseInfo.Buffercreate(int capacity)Returns a newVkBindSparseInfo.Bufferinstance allocated withBufferUtils.static VkBindSparseInfocreate(long address)Returns a newVkBindSparseInfoinstance for the specified memory address ornullif the address isNULL.static VkBindSparseInfo.Buffercreate(long address, int capacity)Create aVkBindSparseInfo.Bufferinstance at the specified memory.intimageBindCount()Returns the value of theimageBindCountfield.intimageOpaqueBindCount()Returns the value of theimageOpaqueBindCountfield.static VkBindSparseInfomalloc()Returns a newVkBindSparseInfoinstance allocated withmemAlloc.static VkBindSparseInfo.Buffermalloc(int capacity)Returns a newVkBindSparseInfo.Bufferinstance allocated withmemAlloc.static VkBindSparseInfomallocStack()Returns a newVkBindSparseInfoinstance allocated on the thread-localMemoryStack.static VkBindSparseInfo.BuffermallocStack(int capacity)Returns a newVkBindSparseInfo.Bufferinstance allocated on the thread-localMemoryStack.static VkBindSparseInfo.BuffermallocStack(int capacity, MemoryStack stack)Returns a newVkBindSparseInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkBindSparseInfomallocStack(MemoryStack stack)Returns a newVkBindSparseInfoinstance allocated on the specifiedMemoryStack.VkBindSparseInfonset(long struct)Unsafe version ofset.VkSparseBufferMemoryBindInfo.BufferpBufferBinds()Returns aVkSparseBufferMemoryBindInfo.Bufferview of the struct array pointed to by thepBufferBindsfield.VkBindSparseInfopBufferBinds(VkSparseBufferMemoryBindInfo.Buffer value)Sets the address of the specifiedVkSparseBufferMemoryBindInfo.Bufferto thepBufferBindsfield.VkSparseImageMemoryBindInfo.BufferpImageBinds()Returns aVkSparseImageMemoryBindInfo.Bufferview of the struct array pointed to by thepImageBindsfield.VkBindSparseInfopImageBinds(VkSparseImageMemoryBindInfo.Buffer value)Sets the address of the specifiedVkSparseImageMemoryBindInfo.Bufferto thepImageBindsfield.VkSparseImageOpaqueMemoryBindInfo.BufferpImageOpaqueBinds()Returns aVkSparseImageOpaqueMemoryBindInfo.Bufferview of the struct array pointed to by thepImageOpaqueBindsfield.VkBindSparseInfopImageOpaqueBinds(VkSparseImageOpaqueMemoryBindInfo.Buffer value)Sets the address of the specifiedVkSparseImageOpaqueMemoryBindInfo.Bufferto thepImageOpaqueBindsfield.longpNext()Returns the value of thepNextfield.VkBindSparseInfopNext(long value)Sets the specified value to thepNextfield.java.nio.LongBufferpSignalSemaphores()Returns aLongBufferview of the data pointed to by thepSignalSemaphoresfield.VkBindSparseInfopSignalSemaphores(java.nio.LongBuffer value)Sets the address of the specifiedLongBufferto thepSignalSemaphoresfield.java.nio.LongBufferpWaitSemaphores()Returns aLongBufferview of the data pointed to by thepWaitSemaphoresfield.VkBindSparseInfopWaitSemaphores(java.nio.LongBuffer value)Sets the address of the specifiedLongBufferto thepWaitSemaphoresfield.VkBindSparseInfoset(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.VkBindSparseInfoset(VkBindSparseInfo src)Copies the specified struct data to this struct.intsignalSemaphoreCount()Returns the value of thesignalSemaphoreCountfield.intsizeof()Returns thesizeof(struct).intsType()Returns the value of thesTypefield.VkBindSparseInfosType(int value)Sets the specified value to thesTypefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)CallsVkBindSparseInfo.validate(long)for each struct contained in the specified struct array.intwaitSemaphoreCount()Returns the value of thewaitSemaphoreCountfield.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
Constructor Detail
-
VkBindSparseInfo
public VkBindSparseInfo(java.nio.ByteBuffer container)
Creates aVkBindSparseInfoinstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Detail
-
sizeof
public int sizeof()
Description copied from class:StructReturns thesizeof(struct).
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
waitSemaphoreCount
public int waitSemaphoreCount()
Returns the value of thewaitSemaphoreCountfield.
-
pWaitSemaphores
public java.nio.LongBuffer pWaitSemaphores()
Returns aLongBufferview of the data pointed to by thepWaitSemaphoresfield.
-
bufferBindCount
public int bufferBindCount()
Returns the value of thebufferBindCountfield.
-
pBufferBinds
public VkSparseBufferMemoryBindInfo.Buffer pBufferBinds()
Returns aVkSparseBufferMemoryBindInfo.Bufferview of the struct array pointed to by thepBufferBindsfield.
-
imageOpaqueBindCount
public int imageOpaqueBindCount()
Returns the value of theimageOpaqueBindCountfield.
-
pImageOpaqueBinds
public VkSparseImageOpaqueMemoryBindInfo.Buffer pImageOpaqueBinds()
Returns aVkSparseImageOpaqueMemoryBindInfo.Bufferview of the struct array pointed to by thepImageOpaqueBindsfield.
-
imageBindCount
public int imageBindCount()
Returns the value of theimageBindCountfield.
-
pImageBinds
public VkSparseImageMemoryBindInfo.Buffer pImageBinds()
Returns aVkSparseImageMemoryBindInfo.Bufferview of the struct array pointed to by thepImageBindsfield.
-
signalSemaphoreCount
public int signalSemaphoreCount()
Returns the value of thesignalSemaphoreCountfield.
-
pSignalSemaphores
public java.nio.LongBuffer pSignalSemaphores()
Returns aLongBufferview of the data pointed to by thepSignalSemaphoresfield.
-
sType
public VkBindSparseInfo sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkBindSparseInfo pNext(long value)
Sets the specified value to thepNextfield.
-
pWaitSemaphores
public VkBindSparseInfo pWaitSemaphores(java.nio.LongBuffer value)
Sets the address of the specifiedLongBufferto thepWaitSemaphoresfield.
-
pBufferBinds
public VkBindSparseInfo pBufferBinds(VkSparseBufferMemoryBindInfo.Buffer value)
Sets the address of the specifiedVkSparseBufferMemoryBindInfo.Bufferto thepBufferBindsfield.
-
pImageOpaqueBinds
public VkBindSparseInfo pImageOpaqueBinds(VkSparseImageOpaqueMemoryBindInfo.Buffer value)
Sets the address of the specifiedVkSparseImageOpaqueMemoryBindInfo.Bufferto thepImageOpaqueBindsfield.
-
pImageBinds
public VkBindSparseInfo pImageBinds(VkSparseImageMemoryBindInfo.Buffer value)
Sets the address of the specifiedVkSparseImageMemoryBindInfo.Bufferto thepImageBindsfield.
-
pSignalSemaphores
public VkBindSparseInfo pSignalSemaphores(java.nio.LongBuffer value)
Sets the address of the specifiedLongBufferto thepSignalSemaphoresfield.
-
set
public 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.
-
nset
public VkBindSparseInfo nset(long struct)
Unsafe version ofset.
-
set
public VkBindSparseInfo set(VkBindSparseInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkBindSparseInfo malloc()
Returns a newVkBindSparseInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkBindSparseInfo calloc()
Returns a newVkBindSparseInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkBindSparseInfo create()
Returns a newVkBindSparseInfoinstance allocated withBufferUtils.
-
create
public static VkBindSparseInfo create(long address)
Returns a newVkBindSparseInfoinstance for the specified memory address ornullif the address isNULL.
-
malloc
public static VkBindSparseInfo.Buffer malloc(int capacity)
Returns a newVkBindSparseInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkBindSparseInfo.Buffer calloc(int capacity)
Returns a newVkBindSparseInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkBindSparseInfo.Buffer create(int capacity)
Returns a newVkBindSparseInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkBindSparseInfo.Buffer create(long address, int capacity)
Create aVkBindSparseInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
mallocStack
public static VkBindSparseInfo mallocStack()
Returns a newVkBindSparseInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkBindSparseInfo callocStack()
Returns a newVkBindSparseInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkBindSparseInfo mallocStack(MemoryStack stack)
Returns a newVkBindSparseInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkBindSparseInfo callocStack(MemoryStack stack)
Returns a newVkBindSparseInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkBindSparseInfo.Buffer mallocStack(int capacity)
Returns a newVkBindSparseInfo.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkBindSparseInfo.Buffer callocStack(int capacity)
Returns a newVkBindSparseInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkBindSparseInfo.Buffer mallocStack(int capacity, MemoryStack stack)
Returns a newVkBindSparseInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkBindSparseInfo.Buffer callocStack(int capacity, MemoryStack stack)
Returns a newVkBindSparseInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
validate
public static void validate(long array, int count)CallsVkBindSparseInfo.validate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-