Package org.lwjgl.vulkan
Class VkAcquireNextImageInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkAcquireNextImageInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkAcquireNextImageInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters of the acquire.Description
If
AcquireNextImageKHRis used, the device mask is considered to include all physical devices in the logical device.Note
AcquireNextImage2KHRsignals at most one semaphore, even if the application requests waiting for multiple physical devices to be ready via thedeviceMask. 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_HANDLEit must be unsignaled - If
semaphoreis notNULL_HANDLEit must not have any uncompleted signal or wait operations pending - If
fenceis notNULL_HANDLEit must be unsignaled and must 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 sameVkInstance
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 { VkStructureTypesType(); void const *pNext(); VkSwapchainKHRswapchain(); uint64_ttimeout(); VkSemaphoresemaphore(); VkFencefence(); uint32_tdeviceMask(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkAcquireNextImageInfoKHR.BufferAn array ofVkAcquireNextImageInfoKHRstructs.
-
Constructor Summary
Constructors Constructor Description VkAcquireNextImageInfoKHR(java.nio.ByteBuffer container)Creates aVkAcquireNextImageInfoKHRinstance 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 VkAcquireNextImageInfoKHRcalloc()Returns a newVkAcquireNextImageInfoKHRinstance allocated withmemCalloc.static VkAcquireNextImageInfoKHR.Buffercalloc(int capacity)Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated withmemCalloc.static VkAcquireNextImageInfoKHR.Buffercalloc(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 VkAcquireNextImageInfoKHRcallocStack()Deprecated.static VkAcquireNextImageInfoKHR.BuffercallocStack(int capacity)Deprecated.static VkAcquireNextImageInfoKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkAcquireNextImageInfoKHRcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkAcquireNextImageInfoKHRcreate()Returns a newVkAcquireNextImageInfoKHRinstance allocated withBufferUtils.static VkAcquireNextImageInfoKHR.Buffercreate(int capacity)Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated withBufferUtils.static VkAcquireNextImageInfoKHRcreate(long address)Returns a newVkAcquireNextImageInfoKHRinstance for the specified memory address.static VkAcquireNextImageInfoKHR.Buffercreate(long address, int capacity)Create aVkAcquireNextImageInfoKHR.Bufferinstance at the specified memory.static VkAcquireNextImageInfoKHRcreateSafe(long address)static VkAcquireNextImageInfoKHR.BuffercreateSafe(long address, int capacity)intdeviceMask()a mask of physical devices for which the swapchain image will be ready to use when the semaphore or fence is signaled.VkAcquireNextImageInfoKHRdeviceMask(int value)Sets the specified value to thedeviceMask()field.longfence()NULL_HANDLEor a fence to signal.VkAcquireNextImageInfoKHRfence(long value)Sets the specified value to thefence()field.static VkAcquireNextImageInfoKHRmalloc()Returns a newVkAcquireNextImageInfoKHRinstance allocated withmemAlloc.static VkAcquireNextImageInfoKHR.Buffermalloc(int capacity)Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated withmemAlloc.static VkAcquireNextImageInfoKHR.Buffermalloc(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 VkAcquireNextImageInfoKHRmallocStack()Deprecated.static VkAcquireNextImageInfoKHR.BuffermallocStack(int capacity)Deprecated.static VkAcquireNextImageInfoKHR.BuffermallocStack(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.VkAcquireNextImageInfoKHRpNext(long value)Sets the specified value to thepNext()field.longsemaphore()NULL_HANDLEor a semaphore to signal.VkAcquireNextImageInfoKHRsemaphore(long value)Sets the specified value to thesemaphore()field.VkAcquireNextImageInfoKHRset(int sType, long pNext, long swapchain, long timeout, long semaphore, long fence, int deviceMask)Initializes this struct with the specified values.VkAcquireNextImageInfoKHRset(VkAcquireNextImageInfoKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkAcquireNextImageInfoKHRsType(int value)Sets the specified value to thesType()field.VkAcquireNextImageInfoKHRsType$Default()Sets theSTRUCTURE_TYPE_ACQUIRE_NEXT_IMAGE_INFO_KHRvalue to thesType()field.longswapchain()a non-retired swapchain from which an image is acquired.VkAcquireNextImageInfoKHRswapchain(long value)Sets the specified value to theswapchain()field.longtimeout()specifies how long the function waits, in nanoseconds, if no image is available.VkAcquireNextImageInfoKHRtimeout(long value)Sets the specified value to thetimeout()field.
-
-
-
Constructor Detail
-
VkAcquireNextImageInfoKHR
public VkAcquireNextImageInfoKHR(java.nio.ByteBuffer container)
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 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.
-
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
public VkAcquireNextImageInfoKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkAcquireNextImageInfoKHR sType$Default()
Sets theSTRUCTURE_TYPE_ACQUIRE_NEXT_IMAGE_INFO_KHRvalue to thesType()field.
-
pNext
public VkAcquireNextImageInfoKHR pNext(long value)
Sets the specified value to thepNext()field.
-
swapchain
public VkAcquireNextImageInfoKHR swapchain(long value)
Sets the specified value to theswapchain()field.
-
timeout
public VkAcquireNextImageInfoKHR timeout(long value)
Sets the specified value to thetimeout()field.
-
semaphore
public VkAcquireNextImageInfoKHR semaphore(long value)
Sets the specified value to thesemaphore()field.
-
fence
public VkAcquireNextImageInfoKHR fence(long value)
Sets the specified value to thefence()field.
-
deviceMask
public VkAcquireNextImageInfoKHR deviceMask(int value)
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
public VkAcquireNextImageInfoKHR set(VkAcquireNextImageInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkAcquireNextImageInfoKHR malloc()
Returns a newVkAcquireNextImageInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkAcquireNextImageInfoKHR calloc()
Returns a newVkAcquireNextImageInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkAcquireNextImageInfoKHR create()
Returns a newVkAcquireNextImageInfoKHRinstance allocated withBufferUtils.
-
create
public static VkAcquireNextImageInfoKHR create(long address)
Returns a newVkAcquireNextImageInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkAcquireNextImageInfoKHR createSafe(long address)
-
malloc
public static VkAcquireNextImageInfoKHR.Buffer malloc(int capacity)
Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkAcquireNextImageInfoKHR.Buffer calloc(int capacity)
Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkAcquireNextImageInfoKHR.Buffer create(int capacity)
Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkAcquireNextImageInfoKHR.Buffer create(long address, int capacity)
Create aVkAcquireNextImageInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkAcquireNextImageInfoKHR.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkAcquireNextImageInfoKHR mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkAcquireNextImageInfoKHR callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkAcquireNextImageInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkAcquireNextImageInfoKHR callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkAcquireNextImageInfoKHR.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkAcquireNextImageInfoKHR.Buffer callocStack(int capacity)
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
public static VkAcquireNextImageInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAcquireNextImageInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkAcquireNextImageInfoKHR calloc(org.lwjgl.system.MemoryStack stack)
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:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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:
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().
-
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.
-
-