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.NativeResource
Structure specifying the input parameters of a calibrated timestamp query.Valid Usage
timeDomain
must be one of theVkTimeDomainEXT
values returned byGetPhysicalDeviceCalibrateableTimeDomainsEXT
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_CALIBRATED_TIMESTAMP_INFO_EXT
pNext
must beNULL
timeDomain
must be a validVkTimeDomainEXT
value
See Also
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.timeDomain
– aVkTimeDomainEXT
value 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 class
VkCalibratedTimestampInfoEXT.Buffer
An array ofVkCalibratedTimestampInfoEXT
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
PNEXT
The struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
TIMEDOMAINThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkCalibratedTimestampInfoEXT(java.nio.ByteBuffer container)
Creates aVkCalibratedTimestampInfoEXT
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkCalibratedTimestampInfoEXT
calloc()
Returns a newVkCalibratedTimestampInfoEXT
instance allocated withmemCalloc
.static VkCalibratedTimestampInfoEXT.Buffer
calloc(int capacity)
Returns a newVkCalibratedTimestampInfoEXT.Buffer
instance allocated withmemCalloc
.static VkCalibratedTimestampInfoEXT
callocStack()
Returns a newVkCalibratedTimestampInfoEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkCalibratedTimestampInfoEXT.Buffer
callocStack(int capacity)
Returns a newVkCalibratedTimestampInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkCalibratedTimestampInfoEXT.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCalibratedTimestampInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkCalibratedTimestampInfoEXT
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCalibratedTimestampInfoEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkCalibratedTimestampInfoEXT
create()
Returns a newVkCalibratedTimestampInfoEXT
instance allocated withBufferUtils
.static VkCalibratedTimestampInfoEXT.Buffer
create(int capacity)
Returns a newVkCalibratedTimestampInfoEXT.Buffer
instance allocated withBufferUtils
.static VkCalibratedTimestampInfoEXT
create(long address)
Returns a newVkCalibratedTimestampInfoEXT
instance for the specified memory address.static VkCalibratedTimestampInfoEXT.Buffer
create(long address, int capacity)
Create aVkCalibratedTimestampInfoEXT.Buffer
instance at the specified memory.static VkCalibratedTimestampInfoEXT
createSafe(long address)
static VkCalibratedTimestampInfoEXT.Buffer
createSafe(long address, int capacity)
static VkCalibratedTimestampInfoEXT
malloc()
Returns a newVkCalibratedTimestampInfoEXT
instance allocated withmemAlloc
.static VkCalibratedTimestampInfoEXT.Buffer
malloc(int capacity)
Returns a newVkCalibratedTimestampInfoEXT.Buffer
instance allocated withmemAlloc
.static VkCalibratedTimestampInfoEXT
mallocStack()
Returns a newVkCalibratedTimestampInfoEXT
instance allocated on the thread-localMemoryStack
.static VkCalibratedTimestampInfoEXT.Buffer
mallocStack(int capacity)
Returns a newVkCalibratedTimestampInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
.static VkCalibratedTimestampInfoEXT.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCalibratedTimestampInfoEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkCalibratedTimestampInfoEXT
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCalibratedTimestampInfoEXT
instance allocated on the specifiedMemoryStack
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.static int
ntimeDomain(long struct)
Unsafe version oftimeDomain()
.static void
ntimeDomain(long struct, int value)
Unsafe version oftimeDomain
.long
pNext()
Returns the value of thepNext
field.VkCalibratedTimestampInfoEXT
pNext(long value)
Sets the specified value to thepNext
field.VkCalibratedTimestampInfoEXT
set(int sType, long pNext, int timeDomain)
Initializes this struct with the specified values.VkCalibratedTimestampInfoEXT
set(VkCalibratedTimestampInfoEXT src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkCalibratedTimestampInfoEXT
sType(int value)
Sets the specified value to thesType
field.int
timeDomain()
Returns the value of thetimeDomain
field.VkCalibratedTimestampInfoEXT
timeDomain(int value)
Sets the specified value to thetimeDomain
field.
-
-
-
Constructor Detail
-
VkCalibratedTimestampInfoEXT
public VkCalibratedTimestampInfoEXT(java.nio.ByteBuffer container)
Creates aVkCalibratedTimestampInfoEXT
instance at the current position of the specifiedByteBuffer
container. 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:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
timeDomain
public int timeDomain()
Returns the value of thetimeDomain
field.
-
sType
public VkCalibratedTimestampInfoEXT sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkCalibratedTimestampInfoEXT pNext(long value)
Sets the specified value to thepNext
field.
-
timeDomain
public VkCalibratedTimestampInfoEXT timeDomain(int value)
Sets the specified value to thetimeDomain
field.
-
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 newVkCalibratedTimestampInfoEXT
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkCalibratedTimestampInfoEXT calloc()
Returns a newVkCalibratedTimestampInfoEXT
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkCalibratedTimestampInfoEXT create()
Returns a newVkCalibratedTimestampInfoEXT
instance allocated withBufferUtils
.
-
create
public static VkCalibratedTimestampInfoEXT create(long address)
Returns a newVkCalibratedTimestampInfoEXT
instance for the specified memory address.
-
createSafe
@Nullable public static VkCalibratedTimestampInfoEXT createSafe(long address)
-
malloc
public static VkCalibratedTimestampInfoEXT.Buffer malloc(int capacity)
Returns a newVkCalibratedTimestampInfoEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkCalibratedTimestampInfoEXT.Buffer calloc(int capacity)
Returns a newVkCalibratedTimestampInfoEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkCalibratedTimestampInfoEXT.Buffer create(int capacity)
Returns a newVkCalibratedTimestampInfoEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkCalibratedTimestampInfoEXT.Buffer create(long address, int capacity)
Create aVkCalibratedTimestampInfoEXT.Buffer
instance 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 newVkCalibratedTimestampInfoEXT
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkCalibratedTimestampInfoEXT callocStack()
Returns a newVkCalibratedTimestampInfoEXT
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkCalibratedTimestampInfoEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCalibratedTimestampInfoEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkCalibratedTimestampInfoEXT callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCalibratedTimestampInfoEXT
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkCalibratedTimestampInfoEXT.Buffer callocStack(int capacity)
Returns a newVkCalibratedTimestampInfoEXT.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-