Package org.lwjgl.vulkan
Class VkSemaphoreTypeCreateInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSemaphoreTypeCreateInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkSemaphoreTypeCreateInfoKHR
public class VkSemaphoreTypeCreateInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying the type of a newly created semaphore.Description
To create a semaphore of a specific type, add a
VkSemaphoreTypeCreateInfostructure to theVkSemaphoreCreateInfo::pNextchain.If no
VkSemaphoreTypeCreateInfostructure is included in thepNextchain ofVkSemaphoreCreateInfo, then the created semaphore will have a defaultVkSemaphoreTypeofSEMAPHORE_TYPE_BINARY.Valid Usage
- If the
timelineSemaphorefeature is not enabled,semaphoreTypemust not equalSEMAPHORE_TYPE_TIMELINE - If
semaphoreTypeisSEMAPHORE_TYPE_BINARY,initialValuemust be zero
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_SEMAPHORE_TYPE_CREATE_INFOsemaphoreTypemust be a validVkSemaphoreTypevalue
Layout
struct VkSemaphoreTypeCreateInfo { VkStructureTypesType(); void const *pNext(); VkSemaphoreTypesemaphoreType(); uint64_tinitialValue(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkSemaphoreTypeCreateInfo.BufferAn array ofVkSemaphoreTypeCreateInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intINITIALVALUE
PNEXT
SEMAPHORETYPEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkSemaphoreTypeCreateInfo(java.nio.ByteBuffer container)Creates aVkSemaphoreTypeCreateInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkSemaphoreTypeCreateInfocalloc()Returns a newVkSemaphoreTypeCreateInfoinstance allocated withmemCalloc.static VkSemaphoreTypeCreateInfo.Buffercalloc(int capacity)Returns a newVkSemaphoreTypeCreateInfo.Bufferinstance allocated withmemCalloc.static VkSemaphoreTypeCreateInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSemaphoreTypeCreateInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSemaphoreTypeCreateInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSemaphoreTypeCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSemaphoreTypeCreateInfocreate()Returns a newVkSemaphoreTypeCreateInfoinstance allocated withBufferUtils.static VkSemaphoreTypeCreateInfo.Buffercreate(int capacity)Returns a newVkSemaphoreTypeCreateInfo.Bufferinstance allocated withBufferUtils.static VkSemaphoreTypeCreateInfocreate(long address)Returns a newVkSemaphoreTypeCreateInfoinstance for the specified memory address.static VkSemaphoreTypeCreateInfo.Buffercreate(long address, int capacity)Create aVkSemaphoreTypeCreateInfo.Bufferinstance at the specified memory.static VkSemaphoreTypeCreateInfocreateSafe(long address)static VkSemaphoreTypeCreateInfo.BuffercreateSafe(long address, int capacity)longinitialValue()the initial payload value ifsemaphoreTypeisSEMAPHORE_TYPE_TIMELINE.VkSemaphoreTypeCreateInfoinitialValue(long value)Sets the specified value to theinitialValue()field.static VkSemaphoreTypeCreateInfomalloc()Returns a newVkSemaphoreTypeCreateInfoinstance allocated withmemAlloc.static VkSemaphoreTypeCreateInfo.Buffermalloc(int capacity)Returns a newVkSemaphoreTypeCreateInfo.Bufferinstance allocated withmemAlloc.static VkSemaphoreTypeCreateInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSemaphoreTypeCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.static VkSemaphoreTypeCreateInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSemaphoreTypeCreateInfoinstance allocated on the specifiedMemoryStack.static longninitialValue(long struct)Unsafe version ofinitialValue().static voidninitialValue(long struct, long value)Unsafe version ofinitialValue.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsemaphoreType(long struct)Unsafe version ofsemaphoreType().static voidnsemaphoreType(long struct, int value)Unsafe version ofsemaphoreType.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.VkSemaphoreTypeCreateInfopNext(long value)Sets the specified value to thepNext()field.intsemaphoreType()aVkSemaphoreTypevalue specifying the type of the semaphore.VkSemaphoreTypeCreateInfosemaphoreType(int value)Sets the specified value to thesemaphoreType()field.VkSemaphoreTypeCreateInfoset(int sType, long pNext, int semaphoreType, long initialValue)Initializes this struct with the specified values.VkSemaphoreTypeCreateInfoset(VkSemaphoreTypeCreateInfo src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkSemaphoreTypeCreateInfosType(int value)Sets the specified value to thesType()field.VkSemaphoreTypeCreateInfosType$Default()Sets theSTRUCTURE_TYPE_SEMAPHORE_TYPE_CREATE_INFOvalue to thesType()field.
-
-
-
Constructor Detail
-
VkSemaphoreTypeCreateInfo
public VkSemaphoreTypeCreateInfo(java.nio.ByteBuffer container)
Creates aVkSemaphoreTypeCreateInfoinstance 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.
-
semaphoreType
public int semaphoreType()
aVkSemaphoreTypevalue specifying the type of the semaphore.
-
initialValue
public long initialValue()
the initial payload value ifsemaphoreTypeisSEMAPHORE_TYPE_TIMELINE.
-
sType
public VkSemaphoreTypeCreateInfo sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkSemaphoreTypeCreateInfo sType$Default()
Sets theSTRUCTURE_TYPE_SEMAPHORE_TYPE_CREATE_INFOvalue to thesType()field.
-
pNext
public VkSemaphoreTypeCreateInfo pNext(long value)
Sets the specified value to thepNext()field.
-
semaphoreType
public VkSemaphoreTypeCreateInfo semaphoreType(int value)
Sets the specified value to thesemaphoreType()field.
-
initialValue
public VkSemaphoreTypeCreateInfo initialValue(long value)
Sets the specified value to theinitialValue()field.
-
set
public VkSemaphoreTypeCreateInfo set(int sType, long pNext, int semaphoreType, long initialValue)
Initializes this struct with the specified values.
-
set
public VkSemaphoreTypeCreateInfo set(VkSemaphoreTypeCreateInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkSemaphoreTypeCreateInfo malloc()
Returns a newVkSemaphoreTypeCreateInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkSemaphoreTypeCreateInfo calloc()
Returns a newVkSemaphoreTypeCreateInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkSemaphoreTypeCreateInfo create()
Returns a newVkSemaphoreTypeCreateInfoinstance allocated withBufferUtils.
-
create
public static VkSemaphoreTypeCreateInfo create(long address)
Returns a newVkSemaphoreTypeCreateInfoinstance for the specified memory address.
-
createSafe
@Nullable public static VkSemaphoreTypeCreateInfo createSafe(long address)
-
malloc
public static VkSemaphoreTypeCreateInfo.Buffer malloc(int capacity)
Returns a newVkSemaphoreTypeCreateInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkSemaphoreTypeCreateInfo.Buffer calloc(int capacity)
Returns a newVkSemaphoreTypeCreateInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkSemaphoreTypeCreateInfo.Buffer create(int capacity)
Returns a newVkSemaphoreTypeCreateInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkSemaphoreTypeCreateInfo.Buffer create(long address, int capacity)
Create aVkSemaphoreTypeCreateInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkSemaphoreTypeCreateInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static VkSemaphoreTypeCreateInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkSemaphoreTypeCreateInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkSemaphoreTypeCreateInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkSemaphoreTypeCreateInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkSemaphoreTypeCreateInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSemaphoreTypeCreateInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkSemaphoreTypeCreateInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSemaphoreTypeCreateInfo.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().
-
nsemaphoreType
public static int nsemaphoreType(long struct)
Unsafe version ofsemaphoreType().
-
ninitialValue
public static long ninitialValue(long struct)
Unsafe version ofinitialValue().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nsemaphoreType
public static void nsemaphoreType(long struct, int value)Unsafe version ofsemaphoreType.
-
ninitialValue
public static void ninitialValue(long struct, long value)Unsafe version ofinitialValue.
-
-