Package org.lwjgl.vulkan
Class VkAcquireProfilingLockInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkAcquireProfilingLockInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkAcquireProfilingLockInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying parameters to acquire the profiling lock.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_ACQUIRE_PROFILING_LOCK_INFO_KHRpNextmust beNULLflagsmust be 0
If
timeoutis 0,vkAcquireProfilingLockKHRwill not block while attempting to acquire the profling lock. IftimeoutisUINT64_MAX, the function will not return until the profiling lock was acquired.See Also
Layout
struct VkAcquireProfilingLockInfoKHR { VkStructureTypesType(); void const *pNext(); VkAcquireProfilingLockFlagsKHRflags(); uint64_ttimeout(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkAcquireProfilingLockInfoKHR.BufferAn array ofVkAcquireProfilingLockInfoKHRstructs.
-
Constructor Summary
Constructors Constructor Description VkAcquireProfilingLockInfoKHR(java.nio.ByteBuffer container)Creates aVkAcquireProfilingLockInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkAcquireProfilingLockInfoKHRcalloc()Returns a newVkAcquireProfilingLockInfoKHRinstance allocated withmemCalloc.static VkAcquireProfilingLockInfoKHR.Buffercalloc(int capacity)Returns a newVkAcquireProfilingLockInfoKHR.Bufferinstance allocated withmemCalloc.static VkAcquireProfilingLockInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAcquireProfilingLockInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAcquireProfilingLockInfoKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAcquireProfilingLockInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAcquireProfilingLockInfoKHRcreate()Returns a newVkAcquireProfilingLockInfoKHRinstance allocated withBufferUtils.static VkAcquireProfilingLockInfoKHR.Buffercreate(int capacity)Returns a newVkAcquireProfilingLockInfoKHR.Bufferinstance allocated withBufferUtils.static VkAcquireProfilingLockInfoKHRcreate(long address)Returns a newVkAcquireProfilingLockInfoKHRinstance for the specified memory address.static VkAcquireProfilingLockInfoKHR.Buffercreate(long address, int capacity)Create aVkAcquireProfilingLockInfoKHR.Bufferinstance at the specified memory.static VkAcquireProfilingLockInfoKHRcreateSafe(long address)static VkAcquireProfilingLockInfoKHR.BuffercreateSafe(long address, int capacity)intflags()reserved for future use.VkAcquireProfilingLockInfoKHRflags(int value)Sets the specified value to theflags()field.static VkAcquireProfilingLockInfoKHRmalloc()Returns a newVkAcquireProfilingLockInfoKHRinstance allocated withmemAlloc.static VkAcquireProfilingLockInfoKHR.Buffermalloc(int capacity)Returns a newVkAcquireProfilingLockInfoKHR.Bufferinstance allocated withmemAlloc.static VkAcquireProfilingLockInfoKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAcquireProfilingLockInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkAcquireProfilingLockInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAcquireProfilingLockInfoKHRinstance allocated on the specifiedMemoryStack.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.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.VkAcquireProfilingLockInfoKHRpNext(long value)Sets the specified value to thepNext()field.VkAcquireProfilingLockInfoKHRset(int sType, long pNext, int flags, long timeout)Initializes this struct with the specified values.VkAcquireProfilingLockInfoKHRset(VkAcquireProfilingLockInfoKHR src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkAcquireProfilingLockInfoKHRsType(int value)Sets the specified value to thesType()field.VkAcquireProfilingLockInfoKHRsType$Default()Sets theSTRUCTURE_TYPE_ACQUIRE_PROFILING_LOCK_INFO_KHRvalue to thesType()field.longtimeout()indicates how long the function waits, in nanoseconds, if the profiling lock is not available.VkAcquireProfilingLockInfoKHRtimeout(long value)Sets the specified value to thetimeout()field.
-
-
-
Constructor Detail
-
VkAcquireProfilingLockInfoKHR
public VkAcquireProfilingLockInfoKHR(java.nio.ByteBuffer container)
Creates aVkAcquireProfilingLockInfoKHRinstance 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.
-
flags
public int flags()
reserved for future use.
-
timeout
public long timeout()
indicates how long the function waits, in nanoseconds, if the profiling lock is not available.
-
sType
public VkAcquireProfilingLockInfoKHR sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkAcquireProfilingLockInfoKHR sType$Default()
Sets theSTRUCTURE_TYPE_ACQUIRE_PROFILING_LOCK_INFO_KHRvalue to thesType()field.
-
pNext
public VkAcquireProfilingLockInfoKHR pNext(long value)
Sets the specified value to thepNext()field.
-
flags
public VkAcquireProfilingLockInfoKHR flags(int value)
Sets the specified value to theflags()field.
-
timeout
public VkAcquireProfilingLockInfoKHR timeout(long value)
Sets the specified value to thetimeout()field.
-
set
public VkAcquireProfilingLockInfoKHR set(int sType, long pNext, int flags, long timeout)
Initializes this struct with the specified values.
-
set
public VkAcquireProfilingLockInfoKHR set(VkAcquireProfilingLockInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkAcquireProfilingLockInfoKHR malloc()
Returns a newVkAcquireProfilingLockInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkAcquireProfilingLockInfoKHR calloc()
Returns a newVkAcquireProfilingLockInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkAcquireProfilingLockInfoKHR create()
Returns a newVkAcquireProfilingLockInfoKHRinstance allocated withBufferUtils.
-
create
public static VkAcquireProfilingLockInfoKHR create(long address)
Returns a newVkAcquireProfilingLockInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkAcquireProfilingLockInfoKHR createSafe(long address)
-
malloc
public static VkAcquireProfilingLockInfoKHR.Buffer malloc(int capacity)
Returns a newVkAcquireProfilingLockInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkAcquireProfilingLockInfoKHR.Buffer calloc(int capacity)
Returns a newVkAcquireProfilingLockInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkAcquireProfilingLockInfoKHR.Buffer create(int capacity)
Returns a newVkAcquireProfilingLockInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkAcquireProfilingLockInfoKHR.Buffer create(long address, int capacity)
Create aVkAcquireProfilingLockInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkAcquireProfilingLockInfoKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkAcquireProfilingLockInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAcquireProfilingLockInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkAcquireProfilingLockInfoKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAcquireProfilingLockInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkAcquireProfilingLockInfoKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAcquireProfilingLockInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkAcquireProfilingLockInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAcquireProfilingLockInfoKHR.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().
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
ntimeout
public static long ntimeout(long struct)
Unsafe version oftimeout().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nflags
public static void nflags(long struct, int value)Unsafe version offlags.
-
ntimeout
public static void ntimeout(long struct, long value)Unsafe version oftimeout.
-
-