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 zero
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 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
Member documentation
sType– the type of this structure.pNext–NULLor 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_HANDLEor a semaphore to signal.fence–NULL_HANDLEor 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.
Layout
struct VkAcquireNextImageInfoKHR { VkStructureType sType; void const * pNext; VkSwapchainKHR swapchain; uint64_t timeout; VkSemaphore semaphore; VkFence fence; uint32_t deviceMask; }
-
-
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 Modifier and Type Method Description static VkAcquireNextImageInfoKHRcalloc()Returns a newVkAcquireNextImageInfoKHRinstance allocated withmemCalloc.static VkAcquireNextImageInfoKHR.Buffercalloc(int capacity)Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated withmemCalloc.static VkAcquireNextImageInfoKHRcallocStack()Returns a newVkAcquireNextImageInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkAcquireNextImageInfoKHR.BuffercallocStack(int capacity)Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkAcquireNextImageInfoKHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAcquireNextImageInfoKHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkAcquireNextImageInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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()Returns the value of thedeviceMaskfield.VkAcquireNextImageInfoKHRdeviceMask(int value)Sets the specified value to thedeviceMaskfield.longfence()Returns the value of thefencefield.VkAcquireNextImageInfoKHRfence(long value)Sets the specified value to thefencefield.static VkAcquireNextImageInfoKHRmalloc()Returns a newVkAcquireNextImageInfoKHRinstance allocated withmemAlloc.static VkAcquireNextImageInfoKHR.Buffermalloc(int capacity)Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated withmemAlloc.static VkAcquireNextImageInfoKHRmallocStack()Returns a newVkAcquireNextImageInfoKHRinstance allocated on the thread-localMemoryStack.static VkAcquireNextImageInfoKHR.BuffermallocStack(int capacity)Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.static VkAcquireNextImageInfoKHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkAcquireNextImageInfoKHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkAcquireNextImageInfoKHRinstance allocated on the specifiedMemoryStack.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()Returns the value of thepNextfield.VkAcquireNextImageInfoKHRpNext(long value)Sets the specified value to thepNextfield.longsemaphore()Returns the value of thesemaphorefield.VkAcquireNextImageInfoKHRsemaphore(long value)Sets the specified value to thesemaphorefield.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()Returns the value of thesTypefield.VkAcquireNextImageInfoKHRsType(int value)Sets the specified value to thesTypefield.longswapchain()Returns the value of theswapchainfield.VkAcquireNextImageInfoKHRswapchain(long value)Sets the specified value to theswapchainfield.longtimeout()Returns the value of thetimeoutfield.VkAcquireNextImageInfoKHRtimeout(long value)Sets the specified value to thetimeoutfield.
-
-
-
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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
swapchain
public long swapchain()
Returns the value of theswapchainfield.
-
timeout
public long timeout()
Returns the value of thetimeoutfield.
-
semaphore
public long semaphore()
Returns the value of thesemaphorefield.
-
fence
public long fence()
Returns the value of thefencefield.
-
deviceMask
public int deviceMask()
Returns the value of thedeviceMaskfield.
-
sType
public VkAcquireNextImageInfoKHR sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkAcquireNextImageInfoKHR pNext(long value)
Sets the specified value to thepNextfield.
-
swapchain
public VkAcquireNextImageInfoKHR swapchain(long value)
Sets the specified value to theswapchainfield.
-
timeout
public VkAcquireNextImageInfoKHR timeout(long value)
Sets the specified value to thetimeoutfield.
-
semaphore
public VkAcquireNextImageInfoKHR semaphore(long value)
Sets the specified value to thesemaphorefield.
-
fence
public VkAcquireNextImageInfoKHR fence(long value)
Sets the specified value to thefencefield.
-
deviceMask
public VkAcquireNextImageInfoKHR deviceMask(int value)
Sets the specified value to thedeviceMaskfield.
-
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
public static VkAcquireNextImageInfoKHR mallocStack()
Returns a newVkAcquireNextImageInfoKHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkAcquireNextImageInfoKHR callocStack()
Returns a newVkAcquireNextImageInfoKHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkAcquireNextImageInfoKHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkAcquireNextImageInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkAcquireNextImageInfoKHR callocStack(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
-
mallocStack
public static VkAcquireNextImageInfoKHR.Buffer mallocStack(int capacity)
Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkAcquireNextImageInfoKHR.Buffer callocStack(int capacity)
Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkAcquireNextImageInfoKHR.Buffer mallocStack(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
-
callocStack
public static VkAcquireNextImageInfoKHR.Buffer callocStack(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.
-
-