public class VkAcquireNextImageInfoKHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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 VkSemaphoreTypeKHR of SEMAPHORE_TYPE_BINARY_KHRsType 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 VkInstanceswapchain must be externally synchronizedsemaphore must be externally synchronizedfence must be externally synchronizedsType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.swapchain – a non-retired swapchain from which an image is acquired.timeout – specifies how long the function waits, in nanoseconds, if no image is available.semaphore – NULL_HANDLE or a semaphore to signal.fence – NULL_HANDLE or a fence to signal.deviceMask – a mask of physical devices for which the swapchain image will be ready to use when the semaphore or fence is signaled.
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 |
|---|---|
static class |
VkAcquireNextImageInfoKHR.Buffer
An array of
VkAcquireNextImageInfoKHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DEVICEMASK
The struct member offsets.
|
static int |
FENCE
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SEMAPHORE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
static int |
SWAPCHAIN
The struct member offsets.
|
static int |
TIMEOUT
The struct member offsets.
|
| Constructor and Description |
|---|
VkAcquireNextImageInfoKHR(java.nio.ByteBuffer container)
Creates a
VkAcquireNextImageInfoKHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkAcquireNextImageInfoKHR |
calloc()
Returns a new
VkAcquireNextImageInfoKHR instance allocated with memCalloc. |
static VkAcquireNextImageInfoKHR.Buffer |
calloc(int capacity)
Returns a new
VkAcquireNextImageInfoKHR.Buffer instance allocated with memCalloc. |
static VkAcquireNextImageInfoKHR |
callocStack()
Returns a new
VkAcquireNextImageInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkAcquireNextImageInfoKHR.Buffer |
callocStack(int capacity)
Returns a new
VkAcquireNextImageInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkAcquireNextImageInfoKHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkAcquireNextImageInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkAcquireNextImageInfoKHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkAcquireNextImageInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkAcquireNextImageInfoKHR |
create()
Returns a new
VkAcquireNextImageInfoKHR instance allocated with BufferUtils. |
static VkAcquireNextImageInfoKHR.Buffer |
create(int capacity)
Returns a new
VkAcquireNextImageInfoKHR.Buffer instance allocated with BufferUtils. |
static VkAcquireNextImageInfoKHR |
create(long address)
Returns a new
VkAcquireNextImageInfoKHR instance for the specified memory address. |
static VkAcquireNextImageInfoKHR.Buffer |
create(long address,
int capacity)
Create a
VkAcquireNextImageInfoKHR.Buffer instance at the specified memory. |
static VkAcquireNextImageInfoKHR |
createSafe(long address)
|
static VkAcquireNextImageInfoKHR.Buffer |
createSafe(long address,
int capacity)
|
int |
deviceMask()
Returns the value of the
deviceMask field. |
VkAcquireNextImageInfoKHR |
deviceMask(int value)
Sets the specified value to the
deviceMask field. |
long |
fence()
Returns the value of the
fence field. |
VkAcquireNextImageInfoKHR |
fence(long value)
Sets the specified value to the
fence field. |
static VkAcquireNextImageInfoKHR |
malloc()
Returns a new
VkAcquireNextImageInfoKHR instance allocated with memAlloc. |
static VkAcquireNextImageInfoKHR.Buffer |
malloc(int capacity)
Returns a new
VkAcquireNextImageInfoKHR.Buffer instance allocated with memAlloc. |
static VkAcquireNextImageInfoKHR |
mallocStack()
Returns a new
VkAcquireNextImageInfoKHR instance allocated on the thread-local MemoryStack. |
static VkAcquireNextImageInfoKHR.Buffer |
mallocStack(int capacity)
Returns a new
VkAcquireNextImageInfoKHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkAcquireNextImageInfoKHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkAcquireNextImageInfoKHR.Buffer instance allocated on the specified MemoryStack. |
static VkAcquireNextImageInfoKHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkAcquireNextImageInfoKHR instance allocated on the specified MemoryStack. |
static int |
ndeviceMask(long struct)
Unsafe version of
deviceMask(). |
static void |
ndeviceMask(long struct,
int value)
Unsafe version of
deviceMask. |
static long |
nfence(long struct)
Unsafe version of
fence(). |
static void |
nfence(long struct,
long value)
Unsafe version of
fence. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static long |
nsemaphore(long struct)
Unsafe version of
semaphore(). |
static void |
nsemaphore(long struct,
long value)
Unsafe version of
semaphore. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static long |
nswapchain(long struct)
Unsafe version of
swapchain(). |
static void |
nswapchain(long struct,
long value)
Unsafe version of
swapchain. |
static long |
ntimeout(long struct)
Unsafe version of
timeout(). |
static void |
ntimeout(long struct,
long value)
Unsafe version of
timeout. |
long |
pNext()
Returns the value of the
pNext field. |
VkAcquireNextImageInfoKHR |
pNext(long value)
Sets the specified value to the
pNext field. |
long |
semaphore()
Returns the value of the
semaphore field. |
VkAcquireNextImageInfoKHR |
semaphore(long value)
Sets the specified value to the
semaphore field. |
VkAcquireNextImageInfoKHR |
set(int sType,
long pNext,
long swapchain,
long timeout,
long semaphore,
long fence,
int deviceMask)
Initializes this struct with the specified values.
|
VkAcquireNextImageInfoKHR |
set(VkAcquireNextImageInfoKHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkAcquireNextImageInfoKHR |
sType(int value)
Sets the specified value to the
sType field. |
long |
swapchain()
Returns the value of the
swapchain field. |
VkAcquireNextImageInfoKHR |
swapchain(long value)
Sets the specified value to the
swapchain field. |
long |
timeout()
Returns the value of the
timeout field. |
VkAcquireNextImageInfoKHR |
timeout(long value)
Sets the specified value to the
timeout field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int SWAPCHAIN
public static final int TIMEOUT
public static final int SEMAPHORE
public static final int FENCE
public static final int DEVICEMASK
public VkAcquireNextImageInfoKHR(java.nio.ByteBuffer container)
VkAcquireNextImageInfoKHR instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public long swapchain()
swapchain field.public long timeout()
timeout field.public long semaphore()
semaphore field.public long fence()
fence field.public int deviceMask()
deviceMask field.public VkAcquireNextImageInfoKHR sType(int value)
sType field.public VkAcquireNextImageInfoKHR pNext(long value)
pNext field.public VkAcquireNextImageInfoKHR swapchain(long value)
swapchain field.public VkAcquireNextImageInfoKHR timeout(long value)
timeout field.public VkAcquireNextImageInfoKHR semaphore(long value)
semaphore field.public VkAcquireNextImageInfoKHR fence(long value)
fence field.public VkAcquireNextImageInfoKHR deviceMask(int value)
deviceMask field.public VkAcquireNextImageInfoKHR set(int sType, long pNext, long swapchain, long timeout, long semaphore, long fence, int deviceMask)
public VkAcquireNextImageInfoKHR set(VkAcquireNextImageInfoKHR src)
src - the source structpublic static VkAcquireNextImageInfoKHR malloc()
VkAcquireNextImageInfoKHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkAcquireNextImageInfoKHR calloc()
VkAcquireNextImageInfoKHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkAcquireNextImageInfoKHR create()
VkAcquireNextImageInfoKHR instance allocated with BufferUtils.public static VkAcquireNextImageInfoKHR create(long address)
VkAcquireNextImageInfoKHR instance for the specified memory address.@Nullable public static VkAcquireNextImageInfoKHR createSafe(long address)
public static VkAcquireNextImageInfoKHR.Buffer malloc(int capacity)
VkAcquireNextImageInfoKHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkAcquireNextImageInfoKHR.Buffer calloc(int capacity)
VkAcquireNextImageInfoKHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkAcquireNextImageInfoKHR.Buffer create(int capacity)
VkAcquireNextImageInfoKHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkAcquireNextImageInfoKHR.Buffer create(long address, int capacity)
VkAcquireNextImageInfoKHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkAcquireNextImageInfoKHR.Buffer createSafe(long address, int capacity)
public static VkAcquireNextImageInfoKHR mallocStack()
VkAcquireNextImageInfoKHR instance allocated on the thread-local MemoryStack.public static VkAcquireNextImageInfoKHR callocStack()
VkAcquireNextImageInfoKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkAcquireNextImageInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkAcquireNextImageInfoKHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkAcquireNextImageInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
VkAcquireNextImageInfoKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkAcquireNextImageInfoKHR.Buffer mallocStack(int capacity)
VkAcquireNextImageInfoKHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkAcquireNextImageInfoKHR.Buffer callocStack(int capacity)
VkAcquireNextImageInfoKHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkAcquireNextImageInfoKHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkAcquireNextImageInfoKHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkAcquireNextImageInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkAcquireNextImageInfoKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static long nswapchain(long struct)
swapchain().public static long ntimeout(long struct)
timeout().public static long nsemaphore(long struct)
semaphore().public static long nfence(long struct)
fence().public static int ndeviceMask(long struct)
deviceMask().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nswapchain(long struct,
long value)
swapchain.public static void ntimeout(long struct,
long value)
timeout.public static void nsemaphore(long struct,
long value)
semaphore.public static void nfence(long struct,
long value)
fence.public static void ndeviceMask(long struct,
int value)
deviceMask.Copyright LWJGL. All Rights Reserved. License terms.