Package org.lwjgl.vulkan
Class VkSemaphoreSignalInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSemaphoreSignalInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkSemaphoreSignalInfoKHR
public class VkSemaphoreSignalInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure containing information about a semaphore signal operation.Valid Usage
semaphoremust have been created with aVkSemaphoreTypeofSEMAPHORE_TYPE_TIMELINEvaluemust have a value greater than the current value of the semaphorevaluemust be less than the value of any pending semaphore signal operationsvaluemust have a value which does not differ from the current value of the semaphore or the value of any outstanding semaphore wait or signal operation onsemaphoreby more thanmaxTimelineSemaphoreValueDifference
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_SEMAPHORE_SIGNAL_INFOpNextmust beNULLsemaphoremust be a validVkSemaphorehandle
See Also
SignalSemaphore,SignalSemaphoreKHRLayout
struct VkSemaphoreSignalInfo { VkStructureTypesType(); void const *pNext(); VkSemaphoresemaphore(); uint64_tvalue(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkSemaphoreSignalInfo.BufferAn array ofVkSemaphoreSignalInfostructs.
-
Constructor Summary
Constructors Constructor Description VkSemaphoreSignalInfo(java.nio.ByteBuffer container)Creates aVkSemaphoreSignalInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkSemaphoreSignalInfocalloc()Returns a newVkSemaphoreSignalInfoinstance allocated withmemCalloc.static VkSemaphoreSignalInfo.Buffercalloc(int capacity)Returns a newVkSemaphoreSignalInfo.Bufferinstance allocated withmemCalloc.static VkSemaphoreSignalInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSemaphoreSignalInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSemaphoreSignalInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSemaphoreSignalInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSemaphoreSignalInfocreate()Returns a newVkSemaphoreSignalInfoinstance allocated withBufferUtils.static VkSemaphoreSignalInfo.Buffercreate(int capacity)Returns a newVkSemaphoreSignalInfo.Bufferinstance allocated withBufferUtils.static VkSemaphoreSignalInfocreate(long address)Returns a newVkSemaphoreSignalInfoinstance for the specified memory address.static VkSemaphoreSignalInfo.Buffercreate(long address, int capacity)Create aVkSemaphoreSignalInfo.Bufferinstance at the specified memory.static VkSemaphoreSignalInfocreateSafe(long address)static VkSemaphoreSignalInfo.BuffercreateSafe(long address, int capacity)static VkSemaphoreSignalInfomalloc()Returns a newVkSemaphoreSignalInfoinstance allocated withmemAlloc.static VkSemaphoreSignalInfo.Buffermalloc(int capacity)Returns a newVkSemaphoreSignalInfo.Bufferinstance allocated withmemAlloc.static VkSemaphoreSignalInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSemaphoreSignalInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkSemaphoreSignalInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSemaphoreSignalInfoinstance allocated on the specifiedMemoryStack.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 longnvalue(long struct)Unsafe version ofvalue().static voidnvalue(long struct, long value)Unsafe version ofvalue.longpNext()NULLor a pointer to a structure extending this structure.VkSemaphoreSignalInfopNext(long value)Sets the specified value to thepNext()field.longsemaphore()the handle of the semaphore to signal.VkSemaphoreSignalInfosemaphore(long value)Sets the specified value to thesemaphore()field.VkSemaphoreSignalInfoset(int sType, long pNext, long semaphore, long value)Initializes this struct with the specified values.VkSemaphoreSignalInfoset(VkSemaphoreSignalInfo src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkSemaphoreSignalInfosType(int value)Sets the specified value to thesType()field.VkSemaphoreSignalInfosType$Default()Sets theSTRUCTURE_TYPE_SEMAPHORE_SIGNAL_INFOvalue to thesType()field.longvalue()the value to signal.VkSemaphoreSignalInfovalue(long value)Sets the specified value to thevalue()field.
-
-
-
Constructor Detail
-
VkSemaphoreSignalInfo
public VkSemaphoreSignalInfo(java.nio.ByteBuffer container)
Creates aVkSemaphoreSignalInfoinstance 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.
-
semaphore
public long semaphore()
the handle of the semaphore to signal.
-
value
public long value()
the value to signal.
-
sType
public VkSemaphoreSignalInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkSemaphoreSignalInfo sType$Default()
Sets theSTRUCTURE_TYPE_SEMAPHORE_SIGNAL_INFOvalue to thesType()field.
-
pNext
public VkSemaphoreSignalInfo pNext(long value)
Sets the specified value to thepNext()field.
-
semaphore
public VkSemaphoreSignalInfo semaphore(long value)
Sets the specified value to thesemaphore()field.
-
value
public VkSemaphoreSignalInfo value(long value)
Sets the specified value to thevalue()field.
-
set
public VkSemaphoreSignalInfo set(int sType, long pNext, long semaphore, long value)
Initializes this struct with the specified values.
-
set
public VkSemaphoreSignalInfo set(VkSemaphoreSignalInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkSemaphoreSignalInfo malloc()
Returns a newVkSemaphoreSignalInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkSemaphoreSignalInfo calloc()
Returns a newVkSemaphoreSignalInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkSemaphoreSignalInfo create()
Returns a newVkSemaphoreSignalInfoinstance allocated withBufferUtils.
-
create
public static VkSemaphoreSignalInfo create(long address)
Returns a newVkSemaphoreSignalInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkSemaphoreSignalInfo createSafe(long address)
-
malloc
public static VkSemaphoreSignalInfo.Buffer malloc(int capacity)
Returns a newVkSemaphoreSignalInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkSemaphoreSignalInfo.Buffer calloc(int capacity)
Returns a newVkSemaphoreSignalInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkSemaphoreSignalInfo.Buffer create(int capacity)
Returns a newVkSemaphoreSignalInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkSemaphoreSignalInfo.Buffer create(long address, int capacity)
Create aVkSemaphoreSignalInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkSemaphoreSignalInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static VkSemaphoreSignalInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkSemaphoreSignalInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkSemaphoreSignalInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkSemaphoreSignalInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkSemaphoreSignalInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSemaphoreSignalInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkSemaphoreSignalInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSemaphoreSignalInfo.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().
-
nsemaphore
public static long nsemaphore(long struct)
Unsafe version ofsemaphore().
-
nvalue
public static long nvalue(long struct)
Unsafe version ofvalue().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nsemaphore
public static void nsemaphore(long struct, long value)Unsafe version ofsemaphore.
-
nvalue
public static void nvalue(long struct, long value)Unsafe version ofvalue.
-
-