Package org.lwjgl.vulkan
Class VkDeviceGroupSubmitInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDeviceGroupSubmitInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkDeviceGroupSubmitInfoKHR
public class VkDeviceGroupSubmitInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure indicating which physical devices execute semaphore operations and command buffers.Description
If this structure is not present, semaphore operations and command buffers execute on device index zero.
Valid Usage
waitSemaphoreCountmust equalVkSubmitInfo::waitSemaphoreCountcommandBufferCountmust equalVkSubmitInfo::commandBufferCountsignalSemaphoreCountmust equalVkSubmitInfo::signalSemaphoreCount- All elements of
pWaitSemaphoreDeviceIndicesandpSignalSemaphoreDeviceIndicesmust be valid device indices - All elements of
pCommandBufferDeviceMasksmust be valid device masks
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_DEVICE_GROUP_SUBMIT_INFO- If
waitSemaphoreCountis not 0,pWaitSemaphoreDeviceIndicesmust be a valid pointer to an array ofwaitSemaphoreCountuint32_tvalues - If
commandBufferCountis not 0,pCommandBufferDeviceMasksmust be a valid pointer to an array ofcommandBufferCountuint32_tvalues - If
signalSemaphoreCountis not 0,pSignalSemaphoreDeviceIndicesmust be a valid pointer to an array ofsignalSemaphoreCountuint32_tvalues
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.waitSemaphoreCount– the number of elements in thepWaitSemaphoreDeviceIndicesarray.pWaitSemaphoreDeviceIndices– an array of device indices indicating which physical device executes the semaphore wait operation in the corresponding element ofVkSubmitInfo::pWaitSemaphores.commandBufferCount– the number of elements in thepCommandBufferDeviceMasksarray.pCommandBufferDeviceMasks– an array of device masks indicating which physical devices execute the command buffer in the corresponding element ofVkSubmitInfo::pCommandBuffers. A physical device executes the command buffer if the corresponding bit is set in the mask.signalSemaphoreCount– the number of elements in thepSignalSemaphoreDeviceIndicesarray.pSignalSemaphoreDeviceIndices– an array of device indices indicating which physical device executes the semaphore signal operation in the corresponding element ofVkSubmitInfo::pSignalSemaphores.
Layout
struct VkDeviceGroupSubmitInfo { VkStructureType sType; void const * pNext; uint32_t waitSemaphoreCount; uint32_t const * pWaitSemaphoreDeviceIndices; uint32_t commandBufferCount; uint32_t const * pCommandBufferDeviceMasks; uint32_t signalSemaphoreCount; uint32_t const * pSignalSemaphoreDeviceIndices; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDeviceGroupSubmitInfo.BufferAn array ofVkDeviceGroupSubmitInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOMMANDBUFFERCOUNT
PCOMMANDBUFFERDEVICEMASKS
PNEXT
PSIGNALSEMAPHOREDEVICEINDICES
PWAITSEMAPHOREDEVICEINDICES
SIGNALSEMAPHORECOUNTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
WAITSEMAPHORECOUNTThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkDeviceGroupSubmitInfo(java.nio.ByteBuffer container)Creates aVkDeviceGroupSubmitInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDeviceGroupSubmitInfocalloc()Returns a newVkDeviceGroupSubmitInfoinstance allocated withmemCalloc.static VkDeviceGroupSubmitInfo.Buffercalloc(int capacity)Returns a newVkDeviceGroupSubmitInfo.Bufferinstance allocated withmemCalloc.static VkDeviceGroupSubmitInfocallocStack()Returns a newVkDeviceGroupSubmitInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDeviceGroupSubmitInfo.BuffercallocStack(int capacity)Returns a newVkDeviceGroupSubmitInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDeviceGroupSubmitInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceGroupSubmitInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceGroupSubmitInfocallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceGroupSubmitInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcommandBufferCount()Returns the value of thecommandBufferCountfield.static VkDeviceGroupSubmitInfocreate()Returns a newVkDeviceGroupSubmitInfoinstance allocated withBufferUtils.static VkDeviceGroupSubmitInfo.Buffercreate(int capacity)Returns a newVkDeviceGroupSubmitInfo.Bufferinstance allocated withBufferUtils.static VkDeviceGroupSubmitInfocreate(long address)Returns a newVkDeviceGroupSubmitInfoinstance for the specified memory address.static VkDeviceGroupSubmitInfo.Buffercreate(long address, int capacity)Create aVkDeviceGroupSubmitInfo.Bufferinstance at the specified memory.static VkDeviceGroupSubmitInfocreateSafe(long address)static VkDeviceGroupSubmitInfo.BuffercreateSafe(long address, int capacity)static VkDeviceGroupSubmitInfomalloc()Returns a newVkDeviceGroupSubmitInfoinstance allocated withmemAlloc.static VkDeviceGroupSubmitInfo.Buffermalloc(int capacity)Returns a newVkDeviceGroupSubmitInfo.Bufferinstance allocated withmemAlloc.static VkDeviceGroupSubmitInfomallocStack()Returns a newVkDeviceGroupSubmitInfoinstance allocated on the thread-localMemoryStack.static VkDeviceGroupSubmitInfo.BuffermallocStack(int capacity)Returns a newVkDeviceGroupSubmitInfo.Bufferinstance allocated on the thread-localMemoryStack.static VkDeviceGroupSubmitInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceGroupSubmitInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkDeviceGroupSubmitInfomallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceGroupSubmitInfoinstance allocated on the specifiedMemoryStack.static intncommandBufferCount(long struct)Unsafe version ofcommandBufferCount().static voidncommandBufferCount(long struct, int value)Sets the specified value to thecommandBufferCountfield of the specifiedstruct.static java.nio.IntBuffernpCommandBufferDeviceMasks(long struct)Unsafe version ofpCommandBufferDeviceMasks.static voidnpCommandBufferDeviceMasks(long struct, java.nio.IntBuffer value)Unsafe version ofpCommandBufferDeviceMasks.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static java.nio.IntBuffernpSignalSemaphoreDeviceIndices(long struct)Unsafe version ofpSignalSemaphoreDeviceIndices.static voidnpSignalSemaphoreDeviceIndices(long struct, java.nio.IntBuffer value)Unsafe version ofpSignalSemaphoreDeviceIndices.static java.nio.IntBuffernpWaitSemaphoreDeviceIndices(long struct)Unsafe version ofpWaitSemaphoreDeviceIndices.static voidnpWaitSemaphoreDeviceIndices(long struct, java.nio.IntBuffer value)Unsafe version ofpWaitSemaphoreDeviceIndices.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.java.nio.IntBufferpCommandBufferDeviceMasks()Returns aIntBufferview of the data pointed to by thepCommandBufferDeviceMasksfield.VkDeviceGroupSubmitInfopCommandBufferDeviceMasks(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepCommandBufferDeviceMasksfield.longpNext()Returns the value of thepNextfield.VkDeviceGroupSubmitInfopNext(long value)Sets the specified value to thepNextfield.java.nio.IntBufferpSignalSemaphoreDeviceIndices()Returns aIntBufferview of the data pointed to by thepSignalSemaphoreDeviceIndicesfield.VkDeviceGroupSubmitInfopSignalSemaphoreDeviceIndices(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepSignalSemaphoreDeviceIndicesfield.java.nio.IntBufferpWaitSemaphoreDeviceIndices()Returns aIntBufferview of the data pointed to by thepWaitSemaphoreDeviceIndicesfield.VkDeviceGroupSubmitInfopWaitSemaphoreDeviceIndices(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepWaitSemaphoreDeviceIndicesfield.VkDeviceGroupSubmitInfoset(int sType, long pNext, java.nio.IntBuffer pWaitSemaphoreDeviceIndices, java.nio.IntBuffer pCommandBufferDeviceMasks, java.nio.IntBuffer pSignalSemaphoreDeviceIndices)Initializes this struct with the specified values.VkDeviceGroupSubmitInfoset(VkDeviceGroupSubmitInfo src)Copies the specified struct data to this struct.intsignalSemaphoreCount()Returns the value of thesignalSemaphoreCountfield.intsizeof()intsType()Returns the value of thesTypefield.VkDeviceGroupSubmitInfosType(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)Callsvalidate(long)for each struct contained in the specified struct array.intwaitSemaphoreCount()Returns the value of thewaitSemaphoreCountfield.
-
-
-
Constructor Detail
-
VkDeviceGroupSubmitInfo
public VkDeviceGroupSubmitInfo(java.nio.ByteBuffer container)
Creates aVkDeviceGroupSubmitInfoinstance 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()
- Specified by:
sizeofin classorg.lwjgl.system.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.
-
pWaitSemaphoreDeviceIndices
@Nullable public java.nio.IntBuffer pWaitSemaphoreDeviceIndices()
Returns aIntBufferview of the data pointed to by thepWaitSemaphoreDeviceIndicesfield.
-
commandBufferCount
public int commandBufferCount()
Returns the value of thecommandBufferCountfield.
-
pCommandBufferDeviceMasks
@Nullable public java.nio.IntBuffer pCommandBufferDeviceMasks()
Returns aIntBufferview of the data pointed to by thepCommandBufferDeviceMasksfield.
-
signalSemaphoreCount
public int signalSemaphoreCount()
Returns the value of thesignalSemaphoreCountfield.
-
pSignalSemaphoreDeviceIndices
@Nullable public java.nio.IntBuffer pSignalSemaphoreDeviceIndices()
Returns aIntBufferview of the data pointed to by thepSignalSemaphoreDeviceIndicesfield.
-
sType
public VkDeviceGroupSubmitInfo sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkDeviceGroupSubmitInfo pNext(long value)
Sets the specified value to thepNextfield.
-
pWaitSemaphoreDeviceIndices
public VkDeviceGroupSubmitInfo pWaitSemaphoreDeviceIndices(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepWaitSemaphoreDeviceIndicesfield.
-
pCommandBufferDeviceMasks
public VkDeviceGroupSubmitInfo pCommandBufferDeviceMasks(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepCommandBufferDeviceMasksfield.
-
pSignalSemaphoreDeviceIndices
public VkDeviceGroupSubmitInfo pSignalSemaphoreDeviceIndices(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepSignalSemaphoreDeviceIndicesfield.
-
set
public VkDeviceGroupSubmitInfo set(int sType, long pNext, @Nullable java.nio.IntBuffer pWaitSemaphoreDeviceIndices, @Nullable java.nio.IntBuffer pCommandBufferDeviceMasks, @Nullable java.nio.IntBuffer pSignalSemaphoreDeviceIndices)
Initializes this struct with the specified values.
-
set
public VkDeviceGroupSubmitInfo set(VkDeviceGroupSubmitInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDeviceGroupSubmitInfo malloc()
Returns a newVkDeviceGroupSubmitInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDeviceGroupSubmitInfo calloc()
Returns a newVkDeviceGroupSubmitInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDeviceGroupSubmitInfo create()
Returns a newVkDeviceGroupSubmitInfoinstance allocated withBufferUtils.
-
create
public static VkDeviceGroupSubmitInfo create(long address)
Returns a newVkDeviceGroupSubmitInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkDeviceGroupSubmitInfo createSafe(long address)
-
malloc
public static VkDeviceGroupSubmitInfo.Buffer malloc(int capacity)
Returns a newVkDeviceGroupSubmitInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDeviceGroupSubmitInfo.Buffer calloc(int capacity)
Returns a newVkDeviceGroupSubmitInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDeviceGroupSubmitInfo.Buffer create(int capacity)
Returns a newVkDeviceGroupSubmitInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDeviceGroupSubmitInfo.Buffer create(long address, int capacity)
Create aVkDeviceGroupSubmitInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkDeviceGroupSubmitInfo.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkDeviceGroupSubmitInfo mallocStack()
Returns a newVkDeviceGroupSubmitInfoinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkDeviceGroupSubmitInfo callocStack()
Returns a newVkDeviceGroupSubmitInfoinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkDeviceGroupSubmitInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupSubmitInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDeviceGroupSubmitInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupSubmitInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkDeviceGroupSubmitInfo.Buffer mallocStack(int capacity)
Returns a newVkDeviceGroupSubmitInfo.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkDeviceGroupSubmitInfo.Buffer callocStack(int capacity)
Returns a newVkDeviceGroupSubmitInfo.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkDeviceGroupSubmitInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupSubmitInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkDeviceGroupSubmitInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupSubmitInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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().
-
npWaitSemaphoreDeviceIndices
@Nullable public static java.nio.IntBuffer npWaitSemaphoreDeviceIndices(long struct)
Unsafe version ofpWaitSemaphoreDeviceIndices.
-
ncommandBufferCount
public static int ncommandBufferCount(long struct)
Unsafe version ofcommandBufferCount().
-
npCommandBufferDeviceMasks
@Nullable public static java.nio.IntBuffer npCommandBufferDeviceMasks(long struct)
Unsafe version ofpCommandBufferDeviceMasks.
-
nsignalSemaphoreCount
public static int nsignalSemaphoreCount(long struct)
Unsafe version ofsignalSemaphoreCount().
-
npSignalSemaphoreDeviceIndices
@Nullable public static java.nio.IntBuffer npSignalSemaphoreDeviceIndices(long struct)
Unsafe version ofpSignalSemaphoreDeviceIndices.
-
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.
-
npWaitSemaphoreDeviceIndices
public static void npWaitSemaphoreDeviceIndices(long struct, @Nullable java.nio.IntBuffer value)Unsafe version ofpWaitSemaphoreDeviceIndices.
-
ncommandBufferCount
public static void ncommandBufferCount(long struct, int value)Sets the specified value to thecommandBufferCountfield of the specifiedstruct.
-
npCommandBufferDeviceMasks
public static void npCommandBufferDeviceMasks(long struct, @Nullable java.nio.IntBuffer value)Unsafe version ofpCommandBufferDeviceMasks.
-
nsignalSemaphoreCount
public static void nsignalSemaphoreCount(long struct, int value)Sets the specified value to thesignalSemaphoreCountfield of the specifiedstruct.
-
npSignalSemaphoreDeviceIndices
public static void npSignalSemaphoreDeviceIndices(long struct, @Nullable java.nio.IntBuffer value)Unsafe version ofpSignalSemaphoreDeviceIndices.
-
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)Callsvalidate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-