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.NativeResource
Structure 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
waitSemaphoreCount
must equalVkSubmitInfo
::waitSemaphoreCount
commandBufferCount
must equalVkSubmitInfo
::commandBufferCount
signalSemaphoreCount
must equalVkSubmitInfo
::signalSemaphoreCount
- All elements of
pWaitSemaphoreDeviceIndices
andpSignalSemaphoreDeviceIndices
must be valid device indices - All elements of
pCommandBufferDeviceMasks
must be valid device masks
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_DEVICE_GROUP_SUBMIT_INFO
- If
waitSemaphoreCount
is not 0,pWaitSemaphoreDeviceIndices
must be a valid pointer to an array ofwaitSemaphoreCount
uint32_t
values - If
commandBufferCount
is not 0,pCommandBufferDeviceMasks
must be a valid pointer to an array ofcommandBufferCount
uint32_t
values - If
signalSemaphoreCount
is not 0,pSignalSemaphoreDeviceIndices
must be a valid pointer to an array ofsignalSemaphoreCount
uint32_t
values
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.waitSemaphoreCount
– the number of elements in thepWaitSemaphoreDeviceIndices
array.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 thepCommandBufferDeviceMasks
array.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 thepSignalSemaphoreDeviceIndices
array.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 class
VkDeviceGroupSubmitInfo.Buffer
An array ofVkDeviceGroupSubmitInfo
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
COMMANDBUFFERCOUNT
PCOMMANDBUFFERDEVICEMASKS
PNEXT
PSIGNALSEMAPHOREDEVICEINDICES
PWAITSEMAPHOREDEVICEINDICES
SIGNALSEMAPHORECOUNTThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
WAITSEMAPHORECOUNTThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkDeviceGroupSubmitInfo(java.nio.ByteBuffer container)
Creates aVkDeviceGroupSubmitInfo
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDeviceGroupSubmitInfo
calloc()
Returns a newVkDeviceGroupSubmitInfo
instance allocated withmemCalloc
.static VkDeviceGroupSubmitInfo.Buffer
calloc(int capacity)
Returns a newVkDeviceGroupSubmitInfo.Buffer
instance allocated withmemCalloc
.static VkDeviceGroupSubmitInfo
callocStack()
Returns a newVkDeviceGroupSubmitInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDeviceGroupSubmitInfo.Buffer
callocStack(int capacity)
Returns a newVkDeviceGroupSubmitInfo.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDeviceGroupSubmitInfo.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupSubmitInfo.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDeviceGroupSubmitInfo
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupSubmitInfo
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
commandBufferCount()
Returns the value of thecommandBufferCount
field.static VkDeviceGroupSubmitInfo
create()
Returns a newVkDeviceGroupSubmitInfo
instance allocated withBufferUtils
.static VkDeviceGroupSubmitInfo.Buffer
create(int capacity)
Returns a newVkDeviceGroupSubmitInfo.Buffer
instance allocated withBufferUtils
.static VkDeviceGroupSubmitInfo
create(long address)
Returns a newVkDeviceGroupSubmitInfo
instance for the specified memory address.static VkDeviceGroupSubmitInfo.Buffer
create(long address, int capacity)
Create aVkDeviceGroupSubmitInfo.Buffer
instance at the specified memory.static VkDeviceGroupSubmitInfo
createSafe(long address)
static VkDeviceGroupSubmitInfo.Buffer
createSafe(long address, int capacity)
static VkDeviceGroupSubmitInfo
malloc()
Returns a newVkDeviceGroupSubmitInfo
instance allocated withmemAlloc
.static VkDeviceGroupSubmitInfo.Buffer
malloc(int capacity)
Returns a newVkDeviceGroupSubmitInfo.Buffer
instance allocated withmemAlloc
.static VkDeviceGroupSubmitInfo
mallocStack()
Returns a newVkDeviceGroupSubmitInfo
instance allocated on the thread-localMemoryStack
.static VkDeviceGroupSubmitInfo.Buffer
mallocStack(int capacity)
Returns a newVkDeviceGroupSubmitInfo.Buffer
instance allocated on the thread-localMemoryStack
.static VkDeviceGroupSubmitInfo.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupSubmitInfo.Buffer
instance allocated on the specifiedMemoryStack
.static VkDeviceGroupSubmitInfo
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupSubmitInfo
instance allocated on the specifiedMemoryStack
.static int
ncommandBufferCount(long struct)
Unsafe version ofcommandBufferCount()
.static void
ncommandBufferCount(long struct, int value)
Sets the specified value to thecommandBufferCount
field of the specifiedstruct
.static java.nio.IntBuffer
npCommandBufferDeviceMasks(long struct)
Unsafe version ofpCommandBufferDeviceMasks
.static void
npCommandBufferDeviceMasks(long struct, java.nio.IntBuffer value)
Unsafe version ofpCommandBufferDeviceMasks
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static java.nio.IntBuffer
npSignalSemaphoreDeviceIndices(long struct)
Unsafe version ofpSignalSemaphoreDeviceIndices
.static void
npSignalSemaphoreDeviceIndices(long struct, java.nio.IntBuffer value)
Unsafe version ofpSignalSemaphoreDeviceIndices
.static java.nio.IntBuffer
npWaitSemaphoreDeviceIndices(long struct)
Unsafe version ofpWaitSemaphoreDeviceIndices
.static void
npWaitSemaphoreDeviceIndices(long struct, java.nio.IntBuffer value)
Unsafe version ofpWaitSemaphoreDeviceIndices
.static int
nsignalSemaphoreCount(long struct)
Unsafe version ofsignalSemaphoreCount()
.static void
nsignalSemaphoreCount(long struct, int value)
Sets the specified value to thesignalSemaphoreCount
field of the specifiedstruct
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.static int
nwaitSemaphoreCount(long struct)
Unsafe version ofwaitSemaphoreCount()
.static void
nwaitSemaphoreCount(long struct, int value)
Sets the specified value to thewaitSemaphoreCount
field of the specifiedstruct
.java.nio.IntBuffer
pCommandBufferDeviceMasks()
Returns aIntBuffer
view of the data pointed to by thepCommandBufferDeviceMasks
field.VkDeviceGroupSubmitInfo
pCommandBufferDeviceMasks(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thepCommandBufferDeviceMasks
field.long
pNext()
Returns the value of thepNext
field.VkDeviceGroupSubmitInfo
pNext(long value)
Sets the specified value to thepNext
field.java.nio.IntBuffer
pSignalSemaphoreDeviceIndices()
Returns aIntBuffer
view of the data pointed to by thepSignalSemaphoreDeviceIndices
field.VkDeviceGroupSubmitInfo
pSignalSemaphoreDeviceIndices(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thepSignalSemaphoreDeviceIndices
field.java.nio.IntBuffer
pWaitSemaphoreDeviceIndices()
Returns aIntBuffer
view of the data pointed to by thepWaitSemaphoreDeviceIndices
field.VkDeviceGroupSubmitInfo
pWaitSemaphoreDeviceIndices(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thepWaitSemaphoreDeviceIndices
field.VkDeviceGroupSubmitInfo
set(int sType, long pNext, java.nio.IntBuffer pWaitSemaphoreDeviceIndices, java.nio.IntBuffer pCommandBufferDeviceMasks, java.nio.IntBuffer pSignalSemaphoreDeviceIndices)
Initializes this struct with the specified values.VkDeviceGroupSubmitInfo
set(VkDeviceGroupSubmitInfo src)
Copies the specified struct data to this struct.int
signalSemaphoreCount()
Returns the value of thesignalSemaphoreCount
field.int
sizeof()
int
sType()
Returns the value of thesType
field.VkDeviceGroupSubmitInfo
sType(int value)
Sets the specified value to thesType
field.static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(long array, int count)
Callsvalidate(long)
for each struct contained in the specified struct array.int
waitSemaphoreCount()
Returns the value of thewaitSemaphoreCount
field.
-
-
-
Constructor Detail
-
VkDeviceGroupSubmitInfo
public VkDeviceGroupSubmitInfo(java.nio.ByteBuffer container)
Creates aVkDeviceGroupSubmitInfo
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
waitSemaphoreCount
public int waitSemaphoreCount()
Returns the value of thewaitSemaphoreCount
field.
-
pWaitSemaphoreDeviceIndices
@Nullable public java.nio.IntBuffer pWaitSemaphoreDeviceIndices()
Returns aIntBuffer
view of the data pointed to by thepWaitSemaphoreDeviceIndices
field.
-
commandBufferCount
public int commandBufferCount()
Returns the value of thecommandBufferCount
field.
-
pCommandBufferDeviceMasks
@Nullable public java.nio.IntBuffer pCommandBufferDeviceMasks()
Returns aIntBuffer
view of the data pointed to by thepCommandBufferDeviceMasks
field.
-
signalSemaphoreCount
public int signalSemaphoreCount()
Returns the value of thesignalSemaphoreCount
field.
-
pSignalSemaphoreDeviceIndices
@Nullable public java.nio.IntBuffer pSignalSemaphoreDeviceIndices()
Returns aIntBuffer
view of the data pointed to by thepSignalSemaphoreDeviceIndices
field.
-
sType
public VkDeviceGroupSubmitInfo sType(int value)
Sets the specified value 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 specifiedIntBuffer
to thepWaitSemaphoreDeviceIndices
field.
-
pCommandBufferDeviceMasks
public VkDeviceGroupSubmitInfo pCommandBufferDeviceMasks(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thepCommandBufferDeviceMasks
field.
-
pSignalSemaphoreDeviceIndices
public VkDeviceGroupSubmitInfo pSignalSemaphoreDeviceIndices(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to 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 newVkDeviceGroupSubmitInfo
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkDeviceGroupSubmitInfo calloc()
Returns a newVkDeviceGroupSubmitInfo
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkDeviceGroupSubmitInfo create()
Returns a newVkDeviceGroupSubmitInfo
instance allocated withBufferUtils
.
-
create
public static VkDeviceGroupSubmitInfo create(long address)
Returns a newVkDeviceGroupSubmitInfo
instance for the specified memory address.
-
createSafe
@Nullable public static VkDeviceGroupSubmitInfo createSafe(long address)
-
malloc
public static VkDeviceGroupSubmitInfo.Buffer malloc(int capacity)
Returns a newVkDeviceGroupSubmitInfo.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkDeviceGroupSubmitInfo.Buffer calloc(int capacity)
Returns a newVkDeviceGroupSubmitInfo.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDeviceGroupSubmitInfo.Buffer create(int capacity)
Returns a newVkDeviceGroupSubmitInfo.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDeviceGroupSubmitInfo.Buffer create(long address, int capacity)
Create aVkDeviceGroupSubmitInfo.Buffer
instance 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 newVkDeviceGroupSubmitInfo
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkDeviceGroupSubmitInfo callocStack()
Returns a newVkDeviceGroupSubmitInfo
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkDeviceGroupSubmitInfo mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupSubmitInfo
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkDeviceGroupSubmitInfo callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDeviceGroupSubmitInfo
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkDeviceGroupSubmitInfo.Buffer callocStack(int capacity)
Returns a newVkDeviceGroupSubmitInfo.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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 thewaitSemaphoreCount
field 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 thecommandBufferCount
field 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 thesignalSemaphoreCount
field 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
-
-