If AcquireNextImageKHR is used, the device mask is considered to include all physical devices in the logical device.
AcquireNextImage2KHR signals at most one semaphore, even if the application requests waiting for multiple physical devices to be ready via the deviceMask. However, only a single physical device can wait on that semaphore, since the semaphore becomes unsignaled when the wait succeeds. For other physical devices to wait for the image to be ready, it is necessary for the application to submit semaphore signal operation(s) to that first physical device to signal additional semaphore(s) after the wait succeeds, which the other physical device(s) can wait upon.
swapchain must not be in the retired statesemaphore is not NULL_HANDLE it must be unsignaledsemaphore is not NULL_HANDLE it must not have any uncompleted signal or wait operations pendingfence is not NULL_HANDLE it must be unsignaled and must not be associated with any other queue command that has not yet completed execution on that queuesemaphore and fence must not both be equal to NULL_HANDLEdeviceMask must be a valid device maskdeviceMask must not be zerosemaphore must have a VkSemaphoreType of SEMAPHORE_TYPE_BINARYsType must be STRUCTURE_TYPE_ACQUIRE_NEXT_IMAGE_INFO_KHRpNext must be NULLswapchain must be a valid VkSwapchainKHR handlesemaphore is not NULL_HANDLE, semaphore must be a valid VkSemaphore handlefence is not NULL_HANDLE, fence must be a valid VkFence handlefence, semaphore, and swapchain that are valid handles of non-ignored parameters must have been created, allocated, or retrieved from the same VkDeviceswapchain must be externally synchronizedsemaphore must be externally synchronizedfence must be externally synchronized
struct VkAcquireNextImageInfoKHR {
VkStructureType sType;
void const * pNext;
VkSwapchainKHR swapchain;
uint64_t timeout;
VkSemaphore semaphore;
VkFence fence;
uint32_t deviceMask;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkAcquireNextImageInfoKHR.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | DEVICEMASK
The struct member offsets. |
| public static final int | FENCE
The struct member offsets. |
| public static final int | PNEXT
The struct member offsets. |
| public static final int | SEMAPHORE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | STYPE
The struct member offsets. |
| public static final int | SWAPCHAIN
The struct member offsets. |
| public static final int | TIMEOUT
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkAcquireNextImageInfoKHR(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkAcquireNextImageInfoKHR | |
| public static VkAcquireNextImageInfoKHR. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkAcquireNextImageInfoKHR | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkAcquireNextImageInfoKHR. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkAcquireNextImageInfoKHR | |
| public static VkAcquireNextImageInfoKHR | |
| public static VkAcquireNextImageInfoKHR. | |
| public static VkAcquireNextImageInfoKHR. | |
| protected VkAcquireNextImageInfoKHR | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VkAcquireNextImageInfoKHR | |
| public static VkAcquireNextImageInfoKHR | create(long address)
Returns a new |
| public static VkAcquireNextImageInfoKHR. | create(int
the buffer capacity capacity)Returns a new |
| public static VkAcquireNextImageInfoKHR. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkAcquireNextImageInfoKHR | |
| public static VkAcquireNextImageInfoKHR. | |
| public int | deviceMask()
a mask of physical devices for which the swapchain image will be ready to use when the semaphore or fence is signaled. |
| public VkAcquireNextImageInfoKHR | |
| public long | |
| public VkAcquireNextImageInfoKHR | |
| public static VkAcquireNextImageInfoKHR | |
| public static VkAcquireNextImageInfoKHR. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkAcquireNextImageInfoKHR | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkAcquireNextImageInfoKHR. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkAcquireNextImageInfoKHR | |
| public static VkAcquireNextImageInfoKHR | |
| public static VkAcquireNextImageInfoKHR. | |
| public static VkAcquireNextImageInfoKHR. | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public long | |
| public VkAcquireNextImageInfoKHR | |
| public long | |
| public VkAcquireNextImageInfoKHR | |
| public VkAcquireNextImageInfoKHR | set(int sType, long pNext, long swapchain, long timeout, long semaphore, long fence, int deviceMask)
Initializes this struct with the specified values. |
| public VkAcquireNextImageInfoKHR | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public VkAcquireNextImageInfoKHR | |
| public VkAcquireNextImageInfoKHR | |
| public long | |
| public VkAcquireNextImageInfoKHR | |
| public long | |
| public VkAcquireNextImageInfoKHR |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| DEVICEMASK | back to summary |
|---|---|
| public static final int DEVICEMASK The struct member offsets. | |
| FENCE | back to summary |
|---|---|
| public static final int FENCE The struct member offsets. | |
| PNEXT | back to summary |
|---|---|
| public static final int PNEXT The struct member offsets. | |
| SEMAPHORE | back to summary |
|---|---|
| public static final int SEMAPHORE The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| STYPE | back to summary |
|---|---|
| public static final int STYPE The struct member offsets. | |
| SWAPCHAIN | back to summary |
|---|---|
| public static final int SWAPCHAIN The struct member offsets. | |
| TIMEOUT | back to summary |
|---|---|
| public static final int TIMEOUT The struct member offsets. | |
| VkAcquireNextImageInfoKHR | back to summary |
|---|---|
| protected VkAcquireNextImageInfoKHR(long address, ByteBuffer container) | |
| VkAcquireNextImageInfoKHR | back to summary |
|---|---|
| public VkAcquireNextImageInfoKHR(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VkAcquireNextImageInfoKHR calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkAcquireNextImageInfoKHR. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkAcquireNextImageInfoKHR calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkAcquireNextImageInfoKHR. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static VkAcquireNextImageInfoKHR callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkAcquireNextImageInfoKHR callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkAcquireNextImageInfoKHR. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkAcquireNextImageInfoKHR. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected VkAcquireNextImageInfoKHR create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkAcquireNextImageInfoKHR create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkAcquireNextImageInfoKHR create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkAcquireNextImageInfoKHR. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkAcquireNextImageInfoKHR. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkAcquireNextImageInfoKHR createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkAcquireNextImageInfoKHR. Like
| |
| deviceMask | back to summary |
|---|---|
| public int deviceMask() a mask of physical devices for which the swapchain image will be ready to use when the semaphore or fence is signaled.
| |
| deviceMask | back to summary |
|---|---|
| public VkAcquireNextImageInfoKHR deviceMask(int value) Sets the specified value to the | |
| fence | back to summary |
|---|---|
| public long fence()
| |
| fence | back to summary |
|---|---|
| public VkAcquireNextImageInfoKHR fence(long value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static VkAcquireNextImageInfoKHR malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkAcquireNextImageInfoKHR. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkAcquireNextImageInfoKHR malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkAcquireNextImageInfoKHR. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static VkAcquireNextImageInfoKHR mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkAcquireNextImageInfoKHR mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkAcquireNextImageInfoKHR. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkAcquireNextImageInfoKHR. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| ndeviceMask | back to summary |
|---|---|
| public static int ndeviceMask(long struct) Unsafe version of | |
| ndeviceMask | back to summary |
|---|---|
| public static void ndeviceMask(long struct, int value) Unsafe version of | |
| nfence | back to summary |
|---|---|
| public static long nfence(long struct) Unsafe version of | |
| nfence | back to summary |
|---|---|
| public static void nfence(long struct, long value) Unsafe version of | |
| npNext | back to summary |
|---|---|
| public static long npNext(long struct) Unsafe version of | |
| npNext | back to summary |
|---|---|
| public static void npNext(long struct, long value) Unsafe version of | |
| nsemaphore | back to summary |
|---|---|
| public static long nsemaphore(long struct) Unsafe version of | |
| nsemaphore | back to summary |
|---|---|
| public static void nsemaphore(long struct, long value) Unsafe version of | |
| nsType | back to summary |
|---|---|
| public static int nsType(long struct) Unsafe version of | |
| nsType | back to summary |
|---|---|
| public static void nsType(long struct, int value) Unsafe version of | |
| nswapchain | back to summary |
|---|---|
| public static long nswapchain(long struct) Unsafe version of | |
| nswapchain | back to summary |
|---|---|
| public static void nswapchain(long struct, long value) Unsafe version of | |
| ntimeout | back to summary |
|---|---|
| public static long ntimeout(long struct) Unsafe version of | |
| ntimeout | back to summary |
|---|---|
| public static void ntimeout(long struct, long value) Unsafe version of | |
| pNext | back to summary |
|---|---|
| public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkAcquireNextImageInfoKHR pNext(long value) Sets the specified value to the | |
| semaphore | back to summary |
|---|---|
| public long semaphore()
| |
| semaphore | back to summary |
|---|---|
| public VkAcquireNextImageInfoKHR semaphore(long value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public VkAcquireNextImageInfoKHR set(int sType, long pNext, long swapchain, long timeout, long semaphore, long fence, int deviceMask) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkAcquireNextImageInfoKHR set(VkAcquireNextImageInfoKHR src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| sType | back to summary |
|---|---|
| public int sType() a
| |
| sType | back to summary |
|---|---|
| public VkAcquireNextImageInfoKHR sType(int value) Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkAcquireNextImageInfoKHR sType$Default() Sets the | |
| swapchain | back to summary |
|---|---|
| public long swapchain() a non-retired swapchain from which an image is acquired.
| |
| swapchain | back to summary |
|---|---|
| public VkAcquireNextImageInfoKHR swapchain(long value) Sets the specified value to the | |
| timeout | back to summary |
|---|---|
| public long timeout() specifies how long the function waits, in nanoseconds, if no image is available.
| |
| timeout | back to summary |
|---|---|
| public VkAcquireNextImageInfoKHR timeout(long value) Sets the specified value to the | |
VkAcquireNextImageInfoKHR structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkAcquireNextImageInfoKHR |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public VkAcquireNextImageInfoKHR. | |
| public long | |
| public VkAcquireNextImageInfoKHR. | |
| protected VkAcquireNextImageInfoKHR | |
| public long | |
| public VkAcquireNextImageInfoKHR. | |
| protected VkAcquireNextImageInfoKHR. | |
| public long | |
| public VkAcquireNextImageInfoKHR. | |
| public int | |
| public VkAcquireNextImageInfoKHR. | |
| public VkAcquireNextImageInfoKHR. | sType$Default()
Sets the |
| public long | |
| public VkAcquireNextImageInfoKHR. | |
| public long | |
| public VkAcquireNextImageInfoKHR. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkAcquireNextImageInfoKHR ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| deviceMask | back to summary |
|---|---|
public int deviceMask()
| |
| deviceMask | back to summary |
|---|---|
| public VkAcquireNextImageInfoKHR. Sets the specified value to the | |
| fence | back to summary |
|---|---|
public long fence()
| |
| fence | back to summary |
|---|---|
| public VkAcquireNextImageInfoKHR. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected VkAcquireNextImageInfoKHR getElementFactory() Implements abstract org.
| |
| pNext | back to summary |
|---|---|
public long pNext()
| |
| pNext | back to summary |
|---|---|
| public VkAcquireNextImageInfoKHR. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected VkAcquireNextImageInfoKHR. Implements abstract org.
| |
| semaphore | back to summary |
|---|---|
public long semaphore()
| |
| semaphore | back to summary |
|---|---|
| public VkAcquireNextImageInfoKHR. Sets the specified value to the | |
| sType | back to summary |
|---|---|
public int sType()
| |
| sType | back to summary |
|---|---|
| public VkAcquireNextImageInfoKHR. Sets the specified value to the | |
| sType$Default | back to summary |
|---|---|
| public VkAcquireNextImageInfoKHR. Sets the | |
| swapchain | back to summary |
|---|---|
public long swapchain()
| |
| swapchain | back to summary |
|---|---|
| public VkAcquireNextImageInfoKHR. Sets the specified value to the | |
| timeout | back to summary |
|---|---|
public long timeout()
| |
| timeout | back to summary |
|---|---|
| public VkAcquireNextImageInfoKHR. Sets the specified value to the | |