Package org.lwjgl.vulkan
Class VkPhysicalDeviceTimelineSemaphoreFeatures
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceTimelineSemaphoreFeatures
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceTimelineSemaphoreFeaturesKHR
public class VkPhysicalDeviceTimelineSemaphoreFeatures extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing timeline semaphore features that can be supported by an implementation.Description
If the
VkPhysicalDeviceTimelineSemaphoreFeaturesstructure is included in thepNextchain of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceTimelineSemaphoreFeaturescan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceTimelineSemaphoreFeatures { VkStructureTypesType(); void *pNext(); VkBool32timelineSemaphore(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceTimelineSemaphoreFeatures.BufferAn array ofVkPhysicalDeviceTimelineSemaphoreFeaturesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intPNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
TIMELINESEMAPHOREThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceTimelineSemaphoreFeatures(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceTimelineSemaphoreFeaturesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceTimelineSemaphoreFeaturescalloc()Returns a newVkPhysicalDeviceTimelineSemaphoreFeaturesinstance allocated withmemCalloc.static VkPhysicalDeviceTimelineSemaphoreFeatures.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceTimelineSemaphoreFeatures.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceTimelineSemaphoreFeatures.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceTimelineSemaphoreFeatures.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceTimelineSemaphoreFeaturescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceTimelineSemaphoreFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceTimelineSemaphoreFeaturescreate()Returns a newVkPhysicalDeviceTimelineSemaphoreFeaturesinstance allocated withBufferUtils.static VkPhysicalDeviceTimelineSemaphoreFeatures.Buffercreate(int capacity)Returns a newVkPhysicalDeviceTimelineSemaphoreFeatures.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceTimelineSemaphoreFeaturescreate(long address)Returns a newVkPhysicalDeviceTimelineSemaphoreFeaturesinstance for the specified memory address.static VkPhysicalDeviceTimelineSemaphoreFeatures.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceTimelineSemaphoreFeatures.Bufferinstance at the specified memory.static VkPhysicalDeviceTimelineSemaphoreFeaturescreateSafe(long address)static VkPhysicalDeviceTimelineSemaphoreFeatures.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceTimelineSemaphoreFeaturesmalloc()Returns a newVkPhysicalDeviceTimelineSemaphoreFeaturesinstance allocated withmemAlloc.static VkPhysicalDeviceTimelineSemaphoreFeatures.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceTimelineSemaphoreFeatures.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceTimelineSemaphoreFeatures.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceTimelineSemaphoreFeatures.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceTimelineSemaphoreFeaturesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceTimelineSemaphoreFeaturesinstance allocated on the specifiedMemoryStack.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 intntimelineSemaphore(long struct)Unsafe version oftimelineSemaphore().static voidntimelineSemaphore(long struct, int value)Unsafe version oftimelineSemaphore.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceTimelineSemaphoreFeaturespNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceTimelineSemaphoreFeaturesset(int sType, long pNext, boolean timelineSemaphore)Initializes this struct with the specified values.VkPhysicalDeviceTimelineSemaphoreFeaturesset(VkPhysicalDeviceTimelineSemaphoreFeatures src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceTimelineSemaphoreFeaturessType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceTimelineSemaphoreFeaturessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_FEATURESvalue to thesType()field.booleantimelineSemaphore()indicates whether semaphores created with aVkSemaphoreTypeofSEMAPHORE_TYPE_TIMELINEare supported.VkPhysicalDeviceTimelineSemaphoreFeaturestimelineSemaphore(boolean value)Sets the specified value to thetimelineSemaphore()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceTimelineSemaphoreFeatures
public VkPhysicalDeviceTimelineSemaphoreFeatures(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceTimelineSemaphoreFeaturesinstance 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.
-
timelineSemaphore
public boolean timelineSemaphore()
indicates whether semaphores created with aVkSemaphoreTypeofSEMAPHORE_TYPE_TIMELINEare supported.
-
sType
public VkPhysicalDeviceTimelineSemaphoreFeatures sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceTimelineSemaphoreFeatures sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_FEATURESvalue to thesType()field.
-
pNext
public VkPhysicalDeviceTimelineSemaphoreFeatures pNext(long value)
Sets the specified value to thepNext()field.
-
timelineSemaphore
public VkPhysicalDeviceTimelineSemaphoreFeatures timelineSemaphore(boolean value)
Sets the specified value to thetimelineSemaphore()field.
-
set
public VkPhysicalDeviceTimelineSemaphoreFeatures set(int sType, long pNext, boolean timelineSemaphore)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceTimelineSemaphoreFeatures set(VkPhysicalDeviceTimelineSemaphoreFeatures src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceTimelineSemaphoreFeatures malloc()
Returns a newVkPhysicalDeviceTimelineSemaphoreFeaturesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceTimelineSemaphoreFeatures calloc()
Returns a newVkPhysicalDeviceTimelineSemaphoreFeaturesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceTimelineSemaphoreFeatures create()
Returns a newVkPhysicalDeviceTimelineSemaphoreFeaturesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceTimelineSemaphoreFeatures create(long address)
Returns a newVkPhysicalDeviceTimelineSemaphoreFeaturesinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceTimelineSemaphoreFeatures createSafe(long address)
-
malloc
public static VkPhysicalDeviceTimelineSemaphoreFeatures.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceTimelineSemaphoreFeatures.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceTimelineSemaphoreFeatures.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceTimelineSemaphoreFeatures.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceTimelineSemaphoreFeatures.Buffer create(int capacity)
Returns a newVkPhysicalDeviceTimelineSemaphoreFeatures.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceTimelineSemaphoreFeatures.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceTimelineSemaphoreFeatures.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceTimelineSemaphoreFeatures.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceTimelineSemaphoreFeatures malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTimelineSemaphoreFeaturesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceTimelineSemaphoreFeatures calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTimelineSemaphoreFeaturesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceTimelineSemaphoreFeatures.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTimelineSemaphoreFeatures.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceTimelineSemaphoreFeatures.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTimelineSemaphoreFeatures.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().
-
ntimelineSemaphore
public static int ntimelineSemaphore(long struct)
Unsafe version oftimelineSemaphore().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
ntimelineSemaphore
public static void ntimelineSemaphore(long struct, int value)Unsafe version oftimelineSemaphore.
-
-