Package org.lwjgl.vulkan
Class VkCalibratedTimestampInfoEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkCalibratedTimestampInfoEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkCalibratedTimestampInfoEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying the input parameters of a calibrated timestamp query.Valid Usage
timeDomainmust be one of theVkTimeDomainEXTvalues returned byGetPhysicalDeviceCalibrateableTimeDomainsEXT
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_CALIBRATED_TIMESTAMP_INFO_EXTpNextmust beNULLtimeDomainmust be a validVkTimeDomainEXTvalue
See Also
Member documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.timeDomain– aVkTimeDomainEXTvalue specifying the time domain from which the calibrated timestamp value should be returned.
Layout
struct VkCalibratedTimestampInfoEXT { VkStructureType sType; void const * pNext; VkTimeDomainEXT timeDomain; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkCalibratedTimestampInfoEXT.BufferAn array ofVkCalibratedTimestampInfoEXTstructs.
-
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
TIMEDOMAINThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkCalibratedTimestampInfoEXT(java.nio.ByteBuffer container)Creates aVkCalibratedTimestampInfoEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkCalibratedTimestampInfoEXTcalloc()Returns a newVkCalibratedTimestampInfoEXTinstance allocated withmemCalloc.static VkCalibratedTimestampInfoEXT.Buffercalloc(int capacity)Returns a newVkCalibratedTimestampInfoEXT.Bufferinstance allocated withmemCalloc.static VkCalibratedTimestampInfoEXTcallocStack()Returns a newVkCalibratedTimestampInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkCalibratedTimestampInfoEXT.BuffercallocStack(int capacity)Returns a newVkCalibratedTimestampInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkCalibratedTimestampInfoEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkCalibratedTimestampInfoEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCalibratedTimestampInfoEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkCalibratedTimestampInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCalibratedTimestampInfoEXTcreate()Returns a newVkCalibratedTimestampInfoEXTinstance allocated withBufferUtils.static VkCalibratedTimestampInfoEXT.Buffercreate(int capacity)Returns a newVkCalibratedTimestampInfoEXT.Bufferinstance allocated withBufferUtils.static VkCalibratedTimestampInfoEXTcreate(long address)Returns a newVkCalibratedTimestampInfoEXTinstance for the specified memory address.static VkCalibratedTimestampInfoEXT.Buffercreate(long address, int capacity)Create aVkCalibratedTimestampInfoEXT.Bufferinstance at the specified memory.static VkCalibratedTimestampInfoEXTcreateSafe(long address)static VkCalibratedTimestampInfoEXT.BuffercreateSafe(long address, int capacity)static VkCalibratedTimestampInfoEXTmalloc()Returns a newVkCalibratedTimestampInfoEXTinstance allocated withmemAlloc.static VkCalibratedTimestampInfoEXT.Buffermalloc(int capacity)Returns a newVkCalibratedTimestampInfoEXT.Bufferinstance allocated withmemAlloc.static VkCalibratedTimestampInfoEXTmallocStack()Returns a newVkCalibratedTimestampInfoEXTinstance allocated on the thread-localMemoryStack.static VkCalibratedTimestampInfoEXT.BuffermallocStack(int capacity)Returns a newVkCalibratedTimestampInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkCalibratedTimestampInfoEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkCalibratedTimestampInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkCalibratedTimestampInfoEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkCalibratedTimestampInfoEXTinstance 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 intntimeDomain(long struct)Unsafe version oftimeDomain().static voidntimeDomain(long struct, int value)Unsafe version oftimeDomain.longpNext()Returns the value of thepNextfield.VkCalibratedTimestampInfoEXTpNext(long value)Sets the specified value to thepNextfield.VkCalibratedTimestampInfoEXTset(int sType, long pNext, int timeDomain)Initializes this struct with the specified values.VkCalibratedTimestampInfoEXTset(VkCalibratedTimestampInfoEXT src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkCalibratedTimestampInfoEXTsType(int value)Sets the specified value to thesTypefield.inttimeDomain()Returns the value of thetimeDomainfield.VkCalibratedTimestampInfoEXTtimeDomain(int value)Sets the specified value to thetimeDomainfield.
-
-
-
Constructor Detail
-
VkCalibratedTimestampInfoEXT
public VkCalibratedTimestampInfoEXT(java.nio.ByteBuffer container)
Creates aVkCalibratedTimestampInfoEXTinstance 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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
timeDomain
public int timeDomain()
Returns the value of thetimeDomainfield.
-
sType
public VkCalibratedTimestampInfoEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkCalibratedTimestampInfoEXT pNext(long value)
Sets the specified value to thepNextfield.
-
timeDomain
public VkCalibratedTimestampInfoEXT timeDomain(int value)
Sets the specified value to thetimeDomainfield.
-
set
public VkCalibratedTimestampInfoEXT set(int sType, long pNext, int timeDomain)
Initializes this struct with the specified values.
-
set
public VkCalibratedTimestampInfoEXT set(VkCalibratedTimestampInfoEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkCalibratedTimestampInfoEXT malloc()
Returns a newVkCalibratedTimestampInfoEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkCalibratedTimestampInfoEXT calloc()
Returns a newVkCalibratedTimestampInfoEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkCalibratedTimestampInfoEXT create()
Returns a newVkCalibratedTimestampInfoEXTinstance allocated withBufferUtils.
-
create
public static VkCalibratedTimestampInfoEXT create(long address)
Returns a newVkCalibratedTimestampInfoEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkCalibratedTimestampInfoEXT createSafe(long address)
-
malloc
public static VkCalibratedTimestampInfoEXT.Buffer malloc(int capacity)
Returns a newVkCalibratedTimestampInfoEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkCalibratedTimestampInfoEXT.Buffer calloc(int capacity)
Returns a newVkCalibratedTimestampInfoEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkCalibratedTimestampInfoEXT.Buffer create(int capacity)
Returns a newVkCalibratedTimestampInfoEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkCalibratedTimestampInfoEXT.Buffer create(long address, int capacity)
Create aVkCalibratedTimestampInfoEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkCalibratedTimestampInfoEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkCalibratedTimestampInfoEXT mallocStack()
Returns a newVkCalibratedTimestampInfoEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkCalibratedTimestampInfoEXT callocStack()
Returns a newVkCalibratedTimestampInfoEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkCalibratedTimestampInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCalibratedTimestampInfoEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkCalibratedTimestampInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCalibratedTimestampInfoEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkCalibratedTimestampInfoEXT.Buffer mallocStack(int capacity)
Returns a newVkCalibratedTimestampInfoEXT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkCalibratedTimestampInfoEXT.Buffer callocStack(int capacity)
Returns a newVkCalibratedTimestampInfoEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkCalibratedTimestampInfoEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCalibratedTimestampInfoEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkCalibratedTimestampInfoEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCalibratedTimestampInfoEXT.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().
-
ntimeDomain
public static int ntimeDomain(long struct)
Unsafe version oftimeDomain().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
ntimeDomain
public static void ntimeDomain(long struct, int value)Unsafe version oftimeDomain.
-
-