Package org.lwjgl.vulkan
Class VkAcquireNextImageInfoKHR
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkAcquireNextImageInfoKHR>
org.lwjgl.vulkan.VkAcquireNextImageInfoKHR
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkAcquireNextImageInfoKHR
extends org.lwjgl.system.Struct<VkAcquireNextImageInfoKHR>
implements org.lwjgl.system.NativeResource
Structure specifying parameters of the acquire.
Description
If AcquireNextImageKHR is used, the device mask is considered to include all physical devices in the logical device.
Note
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.
Valid Usage
swapchainmust not be in the retired state- If
semaphoreis notNULL_HANDLE, it must be unsignaled - If
semaphoreis notNULL_HANDLE, it must not have any uncompleted signal or wait operations pending - If
fenceis notNULL_HANDLE,fencemust be unsignaled - If
fenceis notNULL_HANDLE,fencemust not be associated with any other queue command that has not yet completed execution on that queue semaphoreandfencemust not both be equal toNULL_HANDLEdeviceMaskmust be a valid device maskdeviceMaskmust not be zerosemaphoremust have aVkSemaphoreTypeofSEMAPHORE_TYPE_BINARY
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_ACQUIRE_NEXT_IMAGE_INFO_KHRpNextmust beNULLswapchainmust be a validVkSwapchainKHRhandle- If
semaphoreis notNULL_HANDLE,semaphoremust be a validVkSemaphorehandle - If
fenceis notNULL_HANDLE,fencemust be a validVkFencehandle - Each of
fence,semaphore, andswapchainthat are valid handles of non-ignored parameters must have been created, allocated, or retrieved from the sameVkDevice
Host Synchronization
- Host access to
swapchainmust be externally synchronized - Host access to
semaphoremust be externally synchronized - Host access to
fencemust be externally synchronized
See Also
Layout
struct VkAcquireNextImageInfoKHR {
VkStructureType sType();
void const * pNext();
VkSwapchainKHR swapchain();
uint64_t timeout();
VkSemaphore semaphore();
VkFence fence();
uint32_t deviceMask();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkAcquireNextImageInfoKHR(ByteBuffer container) Creates aVkAcquireNextImageInfoKHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkAcquireNextImageInfoKHRcalloc()Returns a newVkAcquireNextImageInfoKHRinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAcquireNextImageInfoKHRcalloc(org.lwjgl.system.MemoryStack stack) Returns a newVkAcquireNextImageInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAcquireNextImageInfoKHRDeprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static VkAcquireNextImageInfoKHRcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static VkAcquireNextImageInfoKHRcreate()Returns a newVkAcquireNextImageInfoKHRinstance allocated withBufferUtils.create(int capacity) Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated withBufferUtils.static VkAcquireNextImageInfoKHRcreate(long address) Returns a newVkAcquireNextImageInfoKHRinstance for the specified memory address.create(long address, int capacity) Create aVkAcquireNextImageInfoKHR.Bufferinstance at the specified memory.static @Nullable VkAcquireNextImageInfoKHRcreateSafe(long address) static @Nullable VkAcquireNextImageInfoKHR.BuffercreateSafe(long address, int capacity) inta mask of physical devices for which the swapchain image will be ready to use when the semaphore or fence is signaled.deviceMask(int value) Sets the specified value to thedeviceMask()field.longfence()NULL_HANDLEor a fence to signal.fence(long value) Sets the specified value to thefence()field.static VkAcquireNextImageInfoKHRmalloc()Returns a newVkAcquireNextImageInfoKHRinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkAcquireNextImageInfoKHRmalloc(org.lwjgl.system.MemoryStack stack) Returns a newVkAcquireNextImageInfoKHRinstance allocated on the specifiedMemoryStack.static VkAcquireNextImageInfoKHRDeprecated.mallocStack(int capacity) Deprecated.mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static VkAcquireNextImageInfoKHRmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static intndeviceMask(long struct) Unsafe version ofdeviceMask().static voidndeviceMask(long struct, int value) Unsafe version ofdeviceMask.static longnfence(long struct) Unsafe version offence().static voidnfence(long struct, long value) Unsafe version offence.static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.static longnsemaphore(long struct) Unsafe version ofsemaphore().static voidnsemaphore(long struct, long value) Unsafe version ofsemaphore.static intnsType(long struct) Unsafe version ofsType().static voidnsType(long struct, int value) Unsafe version ofsType.static longnswapchain(long struct) Unsafe version ofswapchain().static voidnswapchain(long struct, long value) Unsafe version ofswapchain.static longntimeout(long struct) Unsafe version oftimeout().static voidntimeout(long struct, long value) Unsafe version oftimeout.longpNext()NULLor a pointer to a structure extending this structure.pNext(long value) Sets the specified value to thepNext()field.longNULL_HANDLEor a semaphore to signal.semaphore(long value) Sets the specified value to thesemaphore()field.set(int sType, long pNext, long swapchain, long timeout, long semaphore, long fence, int deviceMask) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()intsType()aVkStructureTypevalue identifying this structure.sType(int value) Sets the specified value to thesType()field.Sets theSTRUCTURE_TYPE_ACQUIRE_NEXT_IMAGE_INFO_KHRvalue to thesType()field.longa non-retired swapchain from which an image is acquired.swapchain(long value) Sets the specified value to theswapchain()field.longtimeout()specifies how long the function waits, in nanoseconds, if no image is available.timeout(long value) Sets the specified value to thetimeout()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
SWAPCHAIN
public static final int SWAPCHAINThe struct member offsets. -
TIMEOUT
public static final int TIMEOUTThe struct member offsets. -
SEMAPHORE
public static final int SEMAPHOREThe struct member offsets. -
FENCE
public static final int FENCEThe struct member offsets. -
DEVICEMASK
public static final int DEVICEMASKThe struct member offsets.
-
-
Constructor Details
-
VkAcquireNextImageInfoKHR
Creates aVkAcquireNextImageInfoKHRinstance 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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VkAcquireNextImageInfoKHR>
-
sType
public int sType()aVkStructureTypevalue identifying this structure. -
pNext
public long pNext()NULLor a pointer to a structure extending this structure. -
swapchain
public long swapchain()a non-retired swapchain from which an image is acquired. -
timeout
public long timeout()specifies how long the function waits, in nanoseconds, if no image is available. -
semaphore
public long semaphore()NULL_HANDLEor a semaphore to signal. -
fence
public long fence()NULL_HANDLEor a fence to signal. -
deviceMask
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. -
sType
Sets the specified value to thesType()field. -
sType$Default
Sets theSTRUCTURE_TYPE_ACQUIRE_NEXT_IMAGE_INFO_KHRvalue to thesType()field. -
pNext
Sets the specified value to thepNext()field. -
swapchain
Sets the specified value to theswapchain()field. -
timeout
Sets the specified value to thetimeout()field. -
semaphore
Sets the specified value to thesemaphore()field. -
fence
Sets the specified value to thefence()field. -
deviceMask
Sets the specified value to thedeviceMask()field. -
set
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
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkAcquireNextImageInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkAcquireNextImageInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkAcquireNextImageInfoKHRinstance allocated withBufferUtils. -
create
Returns a newVkAcquireNextImageInfoKHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkAcquireNextImageInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
@Deprecated public static VkAcquireNextImageInfoKHR.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 VkAcquireNextImageInfoKHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newVkAcquireNextImageInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkAcquireNextImageInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkAcquireNextImageInfoKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VkAcquireNextImageInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType(). -
npNext
public static long npNext(long struct) Unsafe version ofpNext(). -
nswapchain
public static long nswapchain(long struct) Unsafe version ofswapchain(). -
ntimeout
public static long ntimeout(long struct) Unsafe version oftimeout(). -
nsemaphore
public static long nsemaphore(long struct) Unsafe version ofsemaphore(). -
nfence
public static long nfence(long struct) Unsafe version offence(). -
ndeviceMask
public static int ndeviceMask(long struct) Unsafe version ofdeviceMask(). -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
nswapchain
public static void nswapchain(long struct, long value) Unsafe version ofswapchain. -
ntimeout
public static void ntimeout(long struct, long value) Unsafe version oftimeout. -
nsemaphore
public static void nsemaphore(long struct, long value) Unsafe version ofsemaphore. -
nfence
public static void nfence(long struct, long value) Unsafe version offence. -
ndeviceMask
public static void ndeviceMask(long struct, int value) Unsafe version ofdeviceMask.
-