Package org.lwjgl.vulkan
Class VkBindSparseInfo
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
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;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkBindSparseInfo(ByteBuffer container) Creates aVkBindSparseInfoinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintstatic VkBindSparseInfocalloc()Returns a newVkBindSparseInfoinstance allocated withmemCalloc.static VkBindSparseInfo.Buffercalloc(int capacity) Returns a newVkBindSparseInfo.Bufferinstance allocated withmemCalloc.static VkBindSparseInfo.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkBindSparseInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBindSparseInfocalloc(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.static VkBindSparseInfo.Buffercreate(long address, int capacity) Create aVkBindSparseInfo.Bufferinstance at the specified memory.static @Nullable VkBindSparseInfocreateSafe(long address) static @Nullable VkBindSparseInfo.BuffercreateSafe(long address, int capacity) intintstatic VkBindSparseInfomalloc()Returns a newVkBindSparseInfoinstance allocated withmemAlloc.static VkBindSparseInfo.Buffermalloc(int capacity) Returns a newVkBindSparseInfo.Bufferinstance allocated withmemAlloc.static VkBindSparseInfo.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkBindSparseInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkBindSparseInfomalloc(MemoryStack stack) Returns a newVkBindSparseInfoinstance allocated on the specifiedMemoryStack.static intnbufferBindCount(long struct) Unsafe version ofbufferBindCount().static voidnbufferBindCount(long struct, int value) Sets the specified value to thebufferBindCountfield of the specifiedstruct.static intnimageBindCount(long struct) Unsafe version ofimageBindCount().static voidnimageBindCount(long struct, int value) Sets the specified value to theimageBindCountfield of the specifiedstruct.static intnimageOpaqueBindCount(long struct) Unsafe version ofimageOpaqueBindCount().static voidnimageOpaqueBindCount(long struct, int value) Sets the specified value to theimageOpaqueBindCountfield of the specifiedstruct.static @Nullable VkSparseBufferMemoryBindInfo.BuffernpBufferBinds(long struct) Unsafe version ofpBufferBinds().static voidnpBufferBinds(long struct, @Nullable VkSparseBufferMemoryBindInfo.Buffer value) Unsafe version ofpBufferBinds.static @Nullable VkSparseImageMemoryBindInfo.BuffernpImageBinds(long struct) Unsafe version ofpImageBinds().static voidnpImageBinds(long struct, @Nullable VkSparseImageMemoryBindInfo.Buffer value) Unsafe version ofpImageBinds.static @Nullable VkSparseImageOpaqueMemoryBindInfo.BuffernpImageOpaqueBinds(long struct) Unsafe version ofpImageOpaqueBinds().static voidnpImageOpaqueBinds(long struct, @Nullable VkSparseImageOpaqueMemoryBindInfo.Buffer value) Unsafe version ofpImageOpaqueBinds.static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.static @Nullable LongBuffernpSignalSemaphores(long struct) Unsafe version ofpSignalSemaphores.static voidnpSignalSemaphores(long struct, @Nullable LongBuffer value) Unsafe version ofpSignalSemaphores.static @Nullable LongBuffernpWaitSemaphores(long struct) Unsafe version ofpWaitSemaphores.static voidnpWaitSemaphores(long struct, @Nullable LongBuffer value) Unsafe version ofpWaitSemaphores.static intnsignalSemaphoreCount(long struct) Unsafe version ofsignalSemaphoreCount().static voidnsignalSemaphoreCount(long struct, int value) Sets the specified value to thesignalSemaphoreCountfield of the specifiedstruct.static intnsType(long struct) Unsafe version ofsType().static voidnsType(long struct, int value) Unsafe version ofsType.static intnwaitSemaphoreCount(long struct) Unsafe version ofwaitSemaphoreCount().static voidnwaitSemaphoreCount(long struct, int value) Sets the specified value to thewaitSemaphoreCountfield of the specifiedstruct.@Nullable VkSparseBufferMemoryBindInfo.BufferpBufferBinds(@Nullable VkSparseBufferMemoryBindInfo.Buffer value) Sets the address of the specifiedVkSparseBufferMemoryBindInfo.Bufferto thepBufferBindsfield.@Nullable VkSparseImageMemoryBindInfo.BufferpImageBinds(@Nullable VkSparseImageMemoryBindInfo.Buffer value) Sets the address of the specifiedVkSparseImageMemoryBindInfo.Bufferto thepImageBindsfield.@Nullable VkSparseImageOpaqueMemoryBindInfo.BufferpImageOpaqueBinds(@Nullable VkSparseImageOpaqueMemoryBindInfo.Buffer value) Sets the address of the specifiedVkSparseImageOpaqueMemoryBindInfo.Bufferto thepImageOpaqueBindsfield.longpNext()pNext(long value) Sets the specified value to thepNextfield.pNext(VkDeviceGroupBindSparseInfo value) Prepends the specifiedVkDeviceGroupBindSparseInfovalue to thepNextchain.Prepends the specifiedVkDeviceGroupBindSparseInfoKHRvalue to thepNextchain.pNext(VkFrameBoundaryEXT value) Prepends the specifiedVkFrameBoundaryEXTvalue to thepNextchain.pNext(VkFrameBoundaryTensorsARM value) Prepends the specifiedVkFrameBoundaryTensorsARMvalue to thepNextchain.Prepends the specifiedVkTimelineSemaphoreSubmitInfovalue to thepNextchain.Prepends the specifiedVkTimelineSemaphoreSubmitInfoKHRvalue to thepNextchain.@Nullable LongBufferpSignalSemaphores(@Nullable LongBuffer value) Sets the address of the specifiedLongBufferto thepSignalSemaphoresfield.@Nullable LongBufferpWaitSemaphores(@Nullable LongBuffer value) Sets the address of the specifiedLongBufferto thepWaitSemaphoresfield.set(int sType, long pNext, @Nullable LongBuffer pWaitSemaphores, @Nullable VkSparseBufferMemoryBindInfo.Buffer pBufferBinds, @Nullable VkSparseImageOpaqueMemoryBindInfo.Buffer pImageOpaqueBinds, @Nullable VkSparseImageMemoryBindInfo.Buffer pImageBinds, @Nullable LongBuffer pSignalSemaphores) Initializes this struct with the specified values.set(VkBindSparseInfo src) Copies the specified struct data to this struct.intintsizeof()Returnssizeof(struct).intsType()sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_BIND_SPARSE_INFOvalue to thesTypefield.static voidvalidate(long struct) Validates pointer members that should not beNULL.intMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
WAITSEMAPHORECOUNT
public static final int WAITSEMAPHORECOUNTThe struct member offsets. -
PWAITSEMAPHORES
public static final int PWAITSEMAPHORESThe struct member offsets. -
BUFFERBINDCOUNT
public static final int BUFFERBINDCOUNTThe struct member offsets. -
PBUFFERBINDS
public static final int PBUFFERBINDSThe struct member offsets. -
IMAGEOPAQUEBINDCOUNT
public static final int IMAGEOPAQUEBINDCOUNTThe struct member offsets. -
PIMAGEOPAQUEBINDS
public static final int PIMAGEOPAQUEBINDSThe struct member offsets. -
IMAGEBINDCOUNT
public static final int IMAGEBINDCOUNTThe struct member offsets. -
PIMAGEBINDS
public static final int PIMAGEBINDSThe struct member offsets. -
SIGNALSEMAPHORECOUNT
public static final int SIGNALSEMAPHORECOUNTThe struct member offsets. -
PSIGNALSEMAPHORES
public static final int PSIGNALSEMAPHORESThe struct member offsets.
-
-
Constructor Details
-
VkBindSparseInfo
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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkBindSparseInfo>
-
sType
public int sType()- Returns:
- the value of the
sTypefield.
-
pNext
public long pNext()- Returns:
- the value of the
pNextfield.
-
waitSemaphoreCount
public int waitSemaphoreCount()- Returns:
- the value of the
waitSemaphoreCountfield.
-
pWaitSemaphores
- Returns:
- a
LongBufferview of the data pointed to by thepWaitSemaphoresfield.
-
bufferBindCount
public int bufferBindCount()- Returns:
- the value of the
bufferBindCountfield.
-
pBufferBinds
- Returns:
- a
VkSparseBufferMemoryBindInfo.Bufferview of the struct array pointed to by thepBufferBindsfield.
-
imageOpaqueBindCount
public int imageOpaqueBindCount()- Returns:
- the value of the
imageOpaqueBindCountfield.
-
pImageOpaqueBinds
- Returns:
- a
VkSparseImageOpaqueMemoryBindInfo.Bufferview of the struct array pointed to by thepImageOpaqueBindsfield.
-
imageBindCount
public int imageBindCount()- Returns:
- the value of the
imageBindCountfield.
-
pImageBinds
- Returns:
- a
VkSparseImageMemoryBindInfo.Bufferview of the struct array pointed to by thepImageBindsfield.
-
signalSemaphoreCount
public int signalSemaphoreCount()- Returns:
- the value of the
signalSemaphoreCountfield.
-
pSignalSemaphores
- Returns:
- a
LongBufferview of the data pointed to by thepSignalSemaphoresfield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_BIND_SPARSE_INFOvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
pNext
Prepends the specifiedVkDeviceGroupBindSparseInfovalue to thepNextchain. -
pNext
Prepends the specifiedVkDeviceGroupBindSparseInfoKHRvalue to thepNextchain. -
pNext
Prepends the specifiedVkFrameBoundaryEXTvalue to thepNextchain. -
pNext
Prepends the specifiedVkFrameBoundaryTensorsARMvalue to thepNextchain. -
pNext
Prepends the specifiedVkTimelineSemaphoreSubmitInfovalue to thepNextchain. -
pNext
Prepends the specifiedVkTimelineSemaphoreSubmitInfoKHRvalue to thepNextchain. -
pWaitSemaphores
Sets the address of the specifiedLongBufferto thepWaitSemaphoresfield. -
pBufferBinds
Sets the address of the specifiedVkSparseBufferMemoryBindInfo.Bufferto thepBufferBindsfield. -
pImageOpaqueBinds
Sets the address of the specifiedVkSparseImageOpaqueMemoryBindInfo.Bufferto thepImageOpaqueBindsfield. -
pImageBinds
Sets the address of the specifiedVkSparseImageMemoryBindInfo.Bufferto thepImageBindsfield. -
pSignalSemaphores
Sets the address of the specifiedLongBufferto thepSignalSemaphoresfield. -
set
public VkBindSparseInfo set(int sType, long pNext, @Nullable LongBuffer pWaitSemaphores, @Nullable VkSparseBufferMemoryBindInfo.Buffer pBufferBinds, @Nullable VkSparseImageOpaqueMemoryBindInfo.Buffer pImageOpaqueBinds, @Nullable VkSparseImageMemoryBindInfo.Buffer pImageBinds, @Nullable LongBuffer pSignalSemaphores) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkBindSparseInfoinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkBindSparseInfoinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkBindSparseInfoinstance allocated withBufferUtils. -
create
Returns a newVkBindSparseInfoinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkBindSparseInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkBindSparseInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkBindSparseInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkBindSparseInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkBindSparseInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkBindSparseInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkBindSparseInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkBindSparseInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType(). -
npNext
public static long npNext(long struct) Unsafe version ofpNext(). -
nwaitSemaphoreCount
public static int nwaitSemaphoreCount(long struct) Unsafe version ofwaitSemaphoreCount(). -
npWaitSemaphores
Unsafe version ofpWaitSemaphores. -
nbufferBindCount
public static int nbufferBindCount(long struct) Unsafe version ofbufferBindCount(). -
npBufferBinds
Unsafe version ofpBufferBinds(). -
nimageOpaqueBindCount
public static int nimageOpaqueBindCount(long struct) Unsafe version ofimageOpaqueBindCount(). -
npImageOpaqueBinds
Unsafe version ofpImageOpaqueBinds(). -
nimageBindCount
public static int nimageBindCount(long struct) Unsafe version ofimageBindCount(). -
npImageBinds
Unsafe version ofpImageBinds(). -
nsignalSemaphoreCount
public static int nsignalSemaphoreCount(long struct) Unsafe version ofsignalSemaphoreCount(). -
npSignalSemaphores
Unsafe version ofpSignalSemaphores. -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
nwaitSemaphoreCount
public static void nwaitSemaphoreCount(long struct, int value) Sets the specified value to thewaitSemaphoreCountfield of the specifiedstruct. -
npWaitSemaphores
Unsafe version ofpWaitSemaphores. -
nbufferBindCount
public static void nbufferBindCount(long struct, int value) Sets the specified value to thebufferBindCountfield of the specifiedstruct. -
npBufferBinds
Unsafe version ofpBufferBinds. -
nimageOpaqueBindCount
public static void nimageOpaqueBindCount(long struct, int value) Sets the specified value to theimageOpaqueBindCountfield of the specifiedstruct. -
npImageOpaqueBinds
public static void npImageOpaqueBinds(long struct, @Nullable VkSparseImageOpaqueMemoryBindInfo.Buffer value) Unsafe version ofpImageOpaqueBinds. -
nimageBindCount
public static void nimageBindCount(long struct, int value) Sets the specified value to theimageBindCountfield of the specifiedstruct. -
npImageBinds
Unsafe version ofpImageBinds. -
nsignalSemaphoreCount
public static void nsignalSemaphoreCount(long struct, int value) Sets the specified value to thesignalSemaphoreCountfield of the specifiedstruct. -
npSignalSemaphores
Unsafe version ofpSignalSemaphores. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-