Package org.lwjgl.vulkan
Class VkAcquireNextImageInfoKHR
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class VkAcquireNextImageInfoKHR
extends Struct<VkAcquireNextImageInfoKHR>
implements NativeResource
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
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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, MemoryStack stack) Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAcquireNextImageInfoKHRcalloc(MemoryStack stack) Returns a newVkAcquireNextImageInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAcquireNextImageInfoKHRDeprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, MemoryStack stack) Deprecated.static VkAcquireNextImageInfoKHRcallocStack(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) intdeviceMask(int value) Sets the specified value to thedeviceMaskfield.longfence()fence(long value) Sets the specified value to thefencefield.static VkAcquireNextImageInfoKHRmalloc()Returns a newVkAcquireNextImageInfoKHRinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkAcquireNextImageInfoKHRmalloc(MemoryStack stack) Returns a newVkAcquireNextImageInfoKHRinstance allocated on the specifiedMemoryStack.static VkAcquireNextImageInfoKHRDeprecated.mallocStack(int capacity) Deprecated.mallocStack(int capacity, MemoryStack stack) Deprecated.static VkAcquireNextImageInfoKHRmallocStack(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()pNext(long value) Sets the specified value to thepNextfield.longsemaphore(long value) Sets the specified value to thesemaphorefield.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()Returnssizeof(struct).intsType()sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_ACQUIRE_NEXT_IMAGE_INFO_KHRvalue to thesTypefield.longswapchain(long value) Sets the specified value to theswapchainfield.longtimeout()timeout(long value) Sets the specified value to thetimeoutfield.Methods 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkAcquireNextImageInfoKHR>
-
sType
public int sType()- Returns:
- the value of the
sTypefield.
-
pNext
public long pNext()- Returns:
- the value of the
pNextfield.
-
swapchain
public long swapchain()- Returns:
- the value of the
swapchainfield.
-
timeout
public long timeout()- Returns:
- the value of the
timeoutfield.
-
semaphore
public long semaphore()- Returns:
- the value of the
semaphorefield.
-
fence
public long fence()- Returns:
- the value of the
fencefield.
-
deviceMask
public int deviceMask()- Returns:
- the value of the
deviceMaskfield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_ACQUIRE_NEXT_IMAGE_INFO_KHRvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
swapchain
Sets the specified value to theswapchainfield. -
timeout
Sets the specified value to thetimeoutfield. -
semaphore
Sets the specified value to thesemaphorefield. -
fence
Sets the specified value to thefencefield. -
deviceMask
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
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, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static VkAcquireNextImageInfoKHR.Buffer callocStack(int capacity, 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
Returns a newVkAcquireNextImageInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
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.
-