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
Layout
struct VkDeviceGroupSubmitInfo { VkStructureTypesType(); void const *pNext(); uint32_twaitSemaphoreCount(); uint32_t const *pWaitSemaphoreDeviceIndices(); uint32_tcommandBufferCount(); uint32_t const *pCommandBufferDeviceMasks(); uint32_tsignalSemaphoreCount(); 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 Deprecated 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 VkDeviceGroupSubmitInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceGroupSubmitInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceGroupSubmitInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceGroupSubmitInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDeviceGroupSubmitInfocallocStack()Deprecated.static VkDeviceGroupSubmitInfo.BuffercallocStack(int capacity)Deprecated.static VkDeviceGroupSubmitInfo.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkDeviceGroupSubmitInfocallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.intcommandBufferCount()the number of elements in thepCommandBufferDeviceMasksarray.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 VkDeviceGroupSubmitInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceGroupSubmitInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkDeviceGroupSubmitInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkDeviceGroupSubmitInfoinstance allocated on the specifiedMemoryStack.static VkDeviceGroupSubmitInfomallocStack()Deprecated.static VkDeviceGroupSubmitInfo.BuffermallocStack(int capacity)Deprecated.static VkDeviceGroupSubmitInfo.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkDeviceGroupSubmitInfomallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()a pointer to an array ofcommandBufferCountdevice masks indicating which physical devices execute the command buffer in the corresponding element ofVkSubmitInfo::pCommandBuffers.VkDeviceGroupSubmitInfopCommandBufferDeviceMasks(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepCommandBufferDeviceMasks()field.longpNext()NULLor a pointer to a structure extending this structure.VkDeviceGroupSubmitInfopNext(long value)Sets the specified value to thepNext()field.java.nio.IntBufferpSignalSemaphoreDeviceIndices()a pointer to an array ofsignalSemaphoreCountdevice indices indicating which physical device executes the semaphore signal operation in the corresponding element ofVkSubmitInfo::pSignalSemaphores.VkDeviceGroupSubmitInfopSignalSemaphoreDeviceIndices(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepSignalSemaphoreDeviceIndices()field.java.nio.IntBufferpWaitSemaphoreDeviceIndices()a pointer to an array ofwaitSemaphoreCountdevice indices indicating which physical device executes the semaphore wait operation in the corresponding element ofVkSubmitInfo::pWaitSemaphores.VkDeviceGroupSubmitInfopWaitSemaphoreDeviceIndices(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepWaitSemaphoreDeviceIndices()field.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()the number of elements in thepSignalSemaphoreDeviceIndicesarray.intsizeof()intsType()the type of this structure.VkDeviceGroupSubmitInfosType(int value)Sets the specified value to thesType()field.VkDeviceGroupSubmitInfosType$Default()Sets theSTRUCTURE_TYPE_DEVICE_GROUP_SUBMIT_INFOvalue to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.intwaitSemaphoreCount()the number of elements in thepWaitSemaphoreDeviceIndicesarray.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
waitSemaphoreCount
public int waitSemaphoreCount()
the number of elements in thepWaitSemaphoreDeviceIndicesarray.
-
pWaitSemaphoreDeviceIndices
@Nullable public java.nio.IntBuffer pWaitSemaphoreDeviceIndices()
a pointer to an array ofwaitSemaphoreCountdevice indices indicating which physical device executes the semaphore wait operation in the corresponding element ofVkSubmitInfo::pWaitSemaphores.
-
commandBufferCount
public int commandBufferCount()
the number of elements in thepCommandBufferDeviceMasksarray.
-
pCommandBufferDeviceMasks
@Nullable public java.nio.IntBuffer pCommandBufferDeviceMasks()
a pointer to an array ofcommandBufferCountdevice 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
public int signalSemaphoreCount()
the number of elements in thepSignalSemaphoreDeviceIndicesarray.
-
pSignalSemaphoreDeviceIndices
@Nullable public java.nio.IntBuffer pSignalSemaphoreDeviceIndices()
a pointer to an array ofsignalSemaphoreCountdevice indices indicating which physical device executes the semaphore signal operation in the corresponding element ofVkSubmitInfo::pSignalSemaphores.
-
sType
public VkDeviceGroupSubmitInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkDeviceGroupSubmitInfo sType$Default()
Sets theSTRUCTURE_TYPE_DEVICE_GROUP_SUBMIT_INFOvalue to thesType()field.
-
pNext
public VkDeviceGroupSubmitInfo pNext(long value)
Sets the specified value to thepNext()field.
-
pWaitSemaphoreDeviceIndices
public VkDeviceGroupSubmitInfo pWaitSemaphoreDeviceIndices(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepWaitSemaphoreDeviceIndices()field.
-
pCommandBufferDeviceMasks
public VkDeviceGroupSubmitInfo pCommandBufferDeviceMasks(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepCommandBufferDeviceMasks()field.
-
pSignalSemaphoreDeviceIndices
public VkDeviceGroupSubmitInfo pSignalSemaphoreDeviceIndices(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepSignalSemaphoreDeviceIndices()field.
-
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
@Deprecated public static VkDeviceGroupSubmitInfo mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkDeviceGroupSubmitInfo callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDeviceGroupSubmitInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkDeviceGroupSubmitInfo callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDeviceGroupSubmitInfo.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkDeviceGroupSubmitInfo.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkDeviceGroupSubmitInfo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkDeviceGroupSubmitInfo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkDeviceGroupSubmitInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupSubmitInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkDeviceGroupSubmitInfo calloc(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
-
malloc
public static VkDeviceGroupSubmitInfo.Buffer malloc(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
-
calloc
public static VkDeviceGroupSubmitInfo.Buffer calloc(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
-
-