Package org.lwjgl.vulkan
Class VkPhysicalDeviceTimelineSemaphoreProperties
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceTimelineSemaphoreProperties
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkPhysicalDeviceTimelineSemaphorePropertiesKHR
public class VkPhysicalDeviceTimelineSemaphoreProperties extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing timeline semaphore properties that can be supported by an implementation.Description
If the
VkPhysicalDeviceTimelineSemaphorePropertiesstructure is included in thepNextchain of theVkPhysicalDeviceProperties2structure passed toGetPhysicalDeviceProperties2, it is filled in with each corresponding implementation-dependent property.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceTimelineSemaphoreProperties { VkStructureTypesType(); void *pNext(); uint64_tmaxTimelineSemaphoreValueDifference(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceTimelineSemaphoreProperties.BufferAn array ofVkPhysicalDeviceTimelineSemaphorePropertiesstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMAXTIMELINESEMAPHOREVALUEDIFFERENCE
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceTimelineSemaphoreProperties(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceTimelineSemaphorePropertiesinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceTimelineSemaphorePropertiescalloc()Returns a newVkPhysicalDeviceTimelineSemaphorePropertiesinstance allocated withmemCalloc.static VkPhysicalDeviceTimelineSemaphoreProperties.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceTimelineSemaphoreProperties.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceTimelineSemaphoreProperties.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceTimelineSemaphoreProperties.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceTimelineSemaphorePropertiescalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceTimelineSemaphorePropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceTimelineSemaphorePropertiescreate()Returns a newVkPhysicalDeviceTimelineSemaphorePropertiesinstance allocated withBufferUtils.static VkPhysicalDeviceTimelineSemaphoreProperties.Buffercreate(int capacity)Returns a newVkPhysicalDeviceTimelineSemaphoreProperties.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceTimelineSemaphorePropertiescreate(long address)Returns a newVkPhysicalDeviceTimelineSemaphorePropertiesinstance for the specified memory address.static VkPhysicalDeviceTimelineSemaphoreProperties.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceTimelineSemaphoreProperties.Bufferinstance at the specified memory.static VkPhysicalDeviceTimelineSemaphorePropertiescreateSafe(long address)static VkPhysicalDeviceTimelineSemaphoreProperties.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceTimelineSemaphorePropertiesmalloc()Returns a newVkPhysicalDeviceTimelineSemaphorePropertiesinstance allocated withmemAlloc.static VkPhysicalDeviceTimelineSemaphoreProperties.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceTimelineSemaphoreProperties.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceTimelineSemaphoreProperties.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceTimelineSemaphoreProperties.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceTimelineSemaphorePropertiesmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceTimelineSemaphorePropertiesinstance allocated on the specifiedMemoryStack.longmaxTimelineSemaphoreValueDifference()indicates the maximum difference allowed by the implementation between the current value of a timeline semaphore and any pending signal or wait operations.static longnmaxTimelineSemaphoreValueDifference(long struct)Unsafe version ofmaxTimelineSemaphoreValueDifference().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.longpNext()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceTimelineSemaphorePropertiespNext(long value)Sets the specified value to thepNext()field.VkPhysicalDeviceTimelineSemaphorePropertiesset(int sType, long pNext)Initializes this struct with the specified values.VkPhysicalDeviceTimelineSemaphorePropertiesset(VkPhysicalDeviceTimelineSemaphoreProperties src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkPhysicalDeviceTimelineSemaphorePropertiessType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceTimelineSemaphorePropertiessType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_PROPERTIESvalue to thesType()field.
-
-
-
Constructor Detail
-
VkPhysicalDeviceTimelineSemaphoreProperties
public VkPhysicalDeviceTimelineSemaphoreProperties(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceTimelineSemaphorePropertiesinstance 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.
-
maxTimelineSemaphoreValueDifference
public long maxTimelineSemaphoreValueDifference()
indicates the maximum difference allowed by the implementation between the current value of a timeline semaphore and any pending signal or wait operations.
-
sType
public VkPhysicalDeviceTimelineSemaphoreProperties sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceTimelineSemaphoreProperties sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_PROPERTIESvalue to thesType()field.
-
pNext
public VkPhysicalDeviceTimelineSemaphoreProperties pNext(long value)
Sets the specified value to thepNext()field.
-
set
public VkPhysicalDeviceTimelineSemaphoreProperties set(int sType, long pNext)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceTimelineSemaphoreProperties set(VkPhysicalDeviceTimelineSemaphoreProperties src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceTimelineSemaphoreProperties malloc()
Returns a newVkPhysicalDeviceTimelineSemaphorePropertiesinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceTimelineSemaphoreProperties calloc()
Returns a newVkPhysicalDeviceTimelineSemaphorePropertiesinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceTimelineSemaphoreProperties create()
Returns a newVkPhysicalDeviceTimelineSemaphorePropertiesinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceTimelineSemaphoreProperties create(long address)
Returns a newVkPhysicalDeviceTimelineSemaphorePropertiesinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceTimelineSemaphoreProperties createSafe(long address)
-
malloc
public static VkPhysicalDeviceTimelineSemaphoreProperties.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceTimelineSemaphoreProperties.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceTimelineSemaphoreProperties.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceTimelineSemaphoreProperties.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceTimelineSemaphoreProperties.Buffer create(int capacity)
Returns a newVkPhysicalDeviceTimelineSemaphoreProperties.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceTimelineSemaphoreProperties.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceTimelineSemaphoreProperties.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceTimelineSemaphoreProperties.Buffer createSafe(long address, int capacity)
-
malloc
public static VkPhysicalDeviceTimelineSemaphoreProperties malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTimelineSemaphorePropertiesinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceTimelineSemaphoreProperties calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTimelineSemaphorePropertiesinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkPhysicalDeviceTimelineSemaphoreProperties.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTimelineSemaphoreProperties.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceTimelineSemaphoreProperties.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceTimelineSemaphoreProperties.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().
-
nmaxTimelineSemaphoreValueDifference
public static long nmaxTimelineSemaphoreValueDifference(long struct)
Unsafe version ofmaxTimelineSemaphoreValueDifference().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
-