Class EXTCalibratedTimestamps
Promotion to VK_KHR_calibrated_timestamps
All functionality in this extension is included in VK_KHR_calibrated_timestamps, with the suffix changed to KHR. The original enum names are still available as aliases of the KHR functionality.
- Name String
VK_EXT_calibrated_timestamps- Extension Type
- Device extension
- Registered Extension Number
- 185
- Revision
- 2
- Extension and Version Dependencies
VK_KHR_get_physical_device_properties2or Version 1.1- Deprecation State
- Promoted to
VK_KHR_calibrated_timestampsextension
- Promoted to
- Contact
- Daniel Rakos drakos-amd
- Extension Proposal
- VK_EXT_calibrated_timestamps
Other Extension Metadata
- Last Modified Date
- 2018-10-04
- IP Status
- No known IP claims.
- Contributors
- Matthaeus G. Chajdas, AMD
- Alan Harrison, AMD
- Derrick Owens, AMD
- Daniel Rakos, AMD
- Faith Ekstrand, Intel
- Keith Packard, Valve
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension name.static final intThe extension specification version.static final intExtendsVkStructureType.static final intExtendsVkTimeDomainKHR.static final intVkTimeDomainKHR - Supported time domainsstatic final intExtendsVkTimeDomainKHR.static final intVkTimeDomainKHR - Supported time domainsstatic final intExtendsVkTimeDomainKHR.static final intVkTimeDomainKHR - Supported time domainsstatic final intExtendsVkTimeDomainKHR.static final intVkTimeDomainKHR - Supported time domains -
Method Summary
Modifier and TypeMethodDescriptionstatic intnvkGetCalibratedTimestampsEXT(org.lwjgl.vulkan.VkDevice device, int timestampCount, long pTimestampInfos, long pTimestamps, long pMaxDeviation) Unsafe version of:GetCalibratedTimestampsEXTstatic intnvkGetPhysicalDeviceCalibrateableTimeDomainsEXT(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long pTimeDomainCount, long pTimeDomains) Unsafe version of:GetPhysicalDeviceCalibrateableTimeDomainsEXTstatic intvkGetCalibratedTimestampsEXT(org.lwjgl.vulkan.VkDevice device, VkCalibratedTimestampInfoKHR.Buffer pTimestampInfos, long[] pTimestamps, long[] pMaxDeviation) Array version of:GetCalibratedTimestampsEXTstatic intvkGetCalibratedTimestampsEXT(org.lwjgl.vulkan.VkDevice device, VkCalibratedTimestampInfoKHR.Buffer pTimestampInfos, LongBuffer pTimestamps, LongBuffer pMaxDeviation) static intvkGetPhysicalDeviceCalibrateableTimeDomainsEXT(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, int[] pTimeDomainCount, int @Nullable [] pTimeDomains) Array version of:GetPhysicalDeviceCalibrateableTimeDomainsEXTstatic intvkGetPhysicalDeviceCalibrateableTimeDomainsEXT(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, IntBuffer pTimeDomainCount, @Nullable IntBuffer pTimeDomains)
-
Field Details
-
VK_EXT_CALIBRATED_TIMESTAMPS_SPEC_VERSION
public static final int VK_EXT_CALIBRATED_TIMESTAMPS_SPEC_VERSIONThe extension specification version.- See Also:
-
VK_EXT_CALIBRATED_TIMESTAMPS_EXTENSION_NAME
The extension name.- See Also:
-
VK_STRUCTURE_TYPE_CALIBRATED_TIMESTAMP_INFO_EXT
public static final int VK_STRUCTURE_TYPE_CALIBRATED_TIMESTAMP_INFO_EXTExtendsVkStructureType.- See Also:
-
VK_TIME_DOMAIN_DEVICE_EXT
public static final int VK_TIME_DOMAIN_DEVICE_EXTExtendsVkTimeDomainKHR.Enum values:
- See Also:
-
VK_TIME_DOMAIN_CLOCK_MONOTONIC_EXT
public static final int VK_TIME_DOMAIN_CLOCK_MONOTONIC_EXTExtendsVkTimeDomainKHR.Enum values:
- See Also:
-
VK_TIME_DOMAIN_CLOCK_MONOTONIC_RAW_EXT
public static final int VK_TIME_DOMAIN_CLOCK_MONOTONIC_RAW_EXTExtendsVkTimeDomainKHR.Enum values:
- See Also:
-
VK_TIME_DOMAIN_QUERY_PERFORMANCE_COUNTER_EXT
public static final int VK_TIME_DOMAIN_QUERY_PERFORMANCE_COUNTER_EXTExtendsVkTimeDomainKHR.Enum values:
- See Also:
-
VK_TIME_DOMAIN_DEVICE_KHR
public static final int VK_TIME_DOMAIN_DEVICE_KHRVkTimeDomainKHR - Supported time domainsDescription
TIME_DOMAIN_DEVICE_KHRspecifies the device time domain. Timestamp values in this time domain use the same units and are comparable with device timestamp values captured usingCmdWriteTimestamporCmdWriteTimestamp2and are defined to be incrementing according to thetimestampPeriodof the device.TIME_DOMAIN_CLOCK_MONOTONIC_KHRspecifies the CLOCK_MONOTONIC time domain available on POSIX platforms. Timestamp values in this time domain are in units of nanoseconds and are comparable with platform timestamp values captured using the POSIX clock_gettime API as computed by this example:
Note
An implementation supporting
VK_KHR_calibrated_timestampsorVK_EXT_calibrated_timestampswill use the same time domain for all itsVkQueueso that timestamp values reported forTIME_DOMAIN_DEVICE_KHRcan be matched to any timestamp captured throughCmdWriteTimestamporCmdWriteTimestamp2.struct timespec tv; clock_gettime(CLOCK_MONOTONIC, &tv); return tv.tv_nsec + tv.tv_sec*1000000000ull;TIME_DOMAIN_CLOCK_MONOTONIC_RAW_KHRspecifies the CLOCK_MONOTONIC_RAW time domain available on POSIX platforms. Timestamp values in this time domain are in units of nanoseconds and are comparable with platform timestamp values captured using the POSIX clock_gettime API as computed by this example:
struct timespec tv; clock_gettime(CLOCK_MONOTONIC_RAW, &tv); return tv.tv_nsec + tv.tv_sec*1000000000ull;TIME_DOMAIN_QUERY_PERFORMANCE_COUNTER_KHRspecifies the performance counter (QPC) time domain available on Windows. Timestamp values in this time domain are in the same units as those provided by the Windows QueryPerformanceCounter API and are comparable with platform timestamp values captured using that API as computed by this example:
LARGE_INTEGER counter; QueryPerformanceCounter(&counter); return counter.QuadPart;See Also
VkCalibratedTimestampInfoKHR,GetPhysicalDeviceCalibrateableTimeDomainsEXT,GetPhysicalDeviceCalibrateableTimeDomainsKHR- See Also:
-
VK_TIME_DOMAIN_CLOCK_MONOTONIC_KHR
public static final int VK_TIME_DOMAIN_CLOCK_MONOTONIC_KHRVkTimeDomainKHR - Supported time domainsDescription
TIME_DOMAIN_DEVICE_KHRspecifies the device time domain. Timestamp values in this time domain use the same units and are comparable with device timestamp values captured usingCmdWriteTimestamporCmdWriteTimestamp2and are defined to be incrementing according to thetimestampPeriodof the device.TIME_DOMAIN_CLOCK_MONOTONIC_KHRspecifies the CLOCK_MONOTONIC time domain available on POSIX platforms. Timestamp values in this time domain are in units of nanoseconds and are comparable with platform timestamp values captured using the POSIX clock_gettime API as computed by this example:
Note
An implementation supporting
VK_KHR_calibrated_timestampsorVK_EXT_calibrated_timestampswill use the same time domain for all itsVkQueueso that timestamp values reported forTIME_DOMAIN_DEVICE_KHRcan be matched to any timestamp captured throughCmdWriteTimestamporCmdWriteTimestamp2.struct timespec tv; clock_gettime(CLOCK_MONOTONIC, &tv); return tv.tv_nsec + tv.tv_sec*1000000000ull;TIME_DOMAIN_CLOCK_MONOTONIC_RAW_KHRspecifies the CLOCK_MONOTONIC_RAW time domain available on POSIX platforms. Timestamp values in this time domain are in units of nanoseconds and are comparable with platform timestamp values captured using the POSIX clock_gettime API as computed by this example:
struct timespec tv; clock_gettime(CLOCK_MONOTONIC_RAW, &tv); return tv.tv_nsec + tv.tv_sec*1000000000ull;TIME_DOMAIN_QUERY_PERFORMANCE_COUNTER_KHRspecifies the performance counter (QPC) time domain available on Windows. Timestamp values in this time domain are in the same units as those provided by the Windows QueryPerformanceCounter API and are comparable with platform timestamp values captured using that API as computed by this example:
LARGE_INTEGER counter; QueryPerformanceCounter(&counter); return counter.QuadPart;See Also
VkCalibratedTimestampInfoKHR,GetPhysicalDeviceCalibrateableTimeDomainsEXT,GetPhysicalDeviceCalibrateableTimeDomainsKHR- See Also:
-
VK_TIME_DOMAIN_CLOCK_MONOTONIC_RAW_KHR
public static final int VK_TIME_DOMAIN_CLOCK_MONOTONIC_RAW_KHRVkTimeDomainKHR - Supported time domainsDescription
TIME_DOMAIN_DEVICE_KHRspecifies the device time domain. Timestamp values in this time domain use the same units and are comparable with device timestamp values captured usingCmdWriteTimestamporCmdWriteTimestamp2and are defined to be incrementing according to thetimestampPeriodof the device.TIME_DOMAIN_CLOCK_MONOTONIC_KHRspecifies the CLOCK_MONOTONIC time domain available on POSIX platforms. Timestamp values in this time domain are in units of nanoseconds and are comparable with platform timestamp values captured using the POSIX clock_gettime API as computed by this example:
Note
An implementation supporting
VK_KHR_calibrated_timestampsorVK_EXT_calibrated_timestampswill use the same time domain for all itsVkQueueso that timestamp values reported forTIME_DOMAIN_DEVICE_KHRcan be matched to any timestamp captured throughCmdWriteTimestamporCmdWriteTimestamp2.struct timespec tv; clock_gettime(CLOCK_MONOTONIC, &tv); return tv.tv_nsec + tv.tv_sec*1000000000ull;TIME_DOMAIN_CLOCK_MONOTONIC_RAW_KHRspecifies the CLOCK_MONOTONIC_RAW time domain available on POSIX platforms. Timestamp values in this time domain are in units of nanoseconds and are comparable with platform timestamp values captured using the POSIX clock_gettime API as computed by this example:
struct timespec tv; clock_gettime(CLOCK_MONOTONIC_RAW, &tv); return tv.tv_nsec + tv.tv_sec*1000000000ull;TIME_DOMAIN_QUERY_PERFORMANCE_COUNTER_KHRspecifies the performance counter (QPC) time domain available on Windows. Timestamp values in this time domain are in the same units as those provided by the Windows QueryPerformanceCounter API and are comparable with platform timestamp values captured using that API as computed by this example:
LARGE_INTEGER counter; QueryPerformanceCounter(&counter); return counter.QuadPart;See Also
VkCalibratedTimestampInfoKHR,GetPhysicalDeviceCalibrateableTimeDomainsEXT,GetPhysicalDeviceCalibrateableTimeDomainsKHR- See Also:
-
VK_TIME_DOMAIN_QUERY_PERFORMANCE_COUNTER_KHR
public static final int VK_TIME_DOMAIN_QUERY_PERFORMANCE_COUNTER_KHRVkTimeDomainKHR - Supported time domainsDescription
TIME_DOMAIN_DEVICE_KHRspecifies the device time domain. Timestamp values in this time domain use the same units and are comparable with device timestamp values captured usingCmdWriteTimestamporCmdWriteTimestamp2and are defined to be incrementing according to thetimestampPeriodof the device.TIME_DOMAIN_CLOCK_MONOTONIC_KHRspecifies the CLOCK_MONOTONIC time domain available on POSIX platforms. Timestamp values in this time domain are in units of nanoseconds and are comparable with platform timestamp values captured using the POSIX clock_gettime API as computed by this example:
Note
An implementation supporting
VK_KHR_calibrated_timestampsorVK_EXT_calibrated_timestampswill use the same time domain for all itsVkQueueso that timestamp values reported forTIME_DOMAIN_DEVICE_KHRcan be matched to any timestamp captured throughCmdWriteTimestamporCmdWriteTimestamp2.struct timespec tv; clock_gettime(CLOCK_MONOTONIC, &tv); return tv.tv_nsec + tv.tv_sec*1000000000ull;TIME_DOMAIN_CLOCK_MONOTONIC_RAW_KHRspecifies the CLOCK_MONOTONIC_RAW time domain available on POSIX platforms. Timestamp values in this time domain are in units of nanoseconds and are comparable with platform timestamp values captured using the POSIX clock_gettime API as computed by this example:
struct timespec tv; clock_gettime(CLOCK_MONOTONIC_RAW, &tv); return tv.tv_nsec + tv.tv_sec*1000000000ull;TIME_DOMAIN_QUERY_PERFORMANCE_COUNTER_KHRspecifies the performance counter (QPC) time domain available on Windows. Timestamp values in this time domain are in the same units as those provided by the Windows QueryPerformanceCounter API and are comparable with platform timestamp values captured using that API as computed by this example:
LARGE_INTEGER counter; QueryPerformanceCounter(&counter); return counter.QuadPart;See Also
VkCalibratedTimestampInfoKHR,GetPhysicalDeviceCalibrateableTimeDomainsEXT,GetPhysicalDeviceCalibrateableTimeDomainsKHR- See Also:
-
-
Method Details
-
nvkGetPhysicalDeviceCalibrateableTimeDomainsEXT
public static int nvkGetPhysicalDeviceCalibrateableTimeDomainsEXT(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, long pTimeDomainCount, long pTimeDomains) Unsafe version of:GetPhysicalDeviceCalibrateableTimeDomainsEXT- Parameters:
pTimeDomainCount- a pointer to an integer related to the number of calibrateable time domains available or queried, as described below.
-
vkGetPhysicalDeviceCalibrateableTimeDomainsEXT
public static int vkGetPhysicalDeviceCalibrateableTimeDomainsEXT(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, IntBuffer pTimeDomainCount, @Nullable IntBuffer pTimeDomains) - Parameters:
physicalDevice- the physical device from which to query the set of calibrateable time domains.pTimeDomainCount- a pointer to an integer related to the number of calibrateable time domains available or queried, as described below.pTimeDomains- eitherNULLor a pointer to an array ofVkTimeDomainKHRvalues, indicating the supported calibrateable time domains.
-
nvkGetCalibratedTimestampsEXT
public static int nvkGetCalibratedTimestampsEXT(org.lwjgl.vulkan.VkDevice device, int timestampCount, long pTimestampInfos, long pTimestamps, long pMaxDeviation) Unsafe version of:GetCalibratedTimestampsEXT- Parameters:
timestampCount- the number of timestamps to query.
-
vkGetCalibratedTimestampsEXT
public static int vkGetCalibratedTimestampsEXT(org.lwjgl.vulkan.VkDevice device, VkCalibratedTimestampInfoKHR.Buffer pTimestampInfos, LongBuffer pTimestamps, LongBuffer pMaxDeviation) - Parameters:
device- the logical device used to perform the query.pTimestampInfos- a pointer to an array oftimestampCountVkCalibratedTimestampInfoKHRstructures, describing the time domains the calibrated timestamps should be captured from.pTimestamps- a pointer to an array oftimestampCount64-bit unsigned integer values in which the requested calibrated timestamp values are returned.pMaxDeviation- a pointer to a 64-bit unsigned integer value in which the strictly positive maximum deviation, in nanoseconds, of the calibrated timestamp values is returned.
-
vkGetPhysicalDeviceCalibrateableTimeDomainsEXT
public static int vkGetPhysicalDeviceCalibrateableTimeDomainsEXT(org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, int[] pTimeDomainCount, int @Nullable [] pTimeDomains) Array version of:GetPhysicalDeviceCalibrateableTimeDomainsEXT -
vkGetCalibratedTimestampsEXT
public static int vkGetCalibratedTimestampsEXT(org.lwjgl.vulkan.VkDevice device, VkCalibratedTimestampInfoKHR.Buffer pTimestampInfos, long[] pTimestamps, long[] pMaxDeviation) Array version of:GetCalibratedTimestampsEXT
-