summaryrefslogtreecommitdiff
path: root/tools/gfx/vulkan/vk-api.h
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2023-04-04 18:00:16 -0400
committerGitHub <noreply@github.com>2023-04-04 18:00:16 -0400
commit68c7d5cda2d6f2eb7bfb3a7e15860eb3ded25424 (patch)
treeac4e8384108e70109b084782b414296d015f92b8 /tools/gfx/vulkan/vk-api.h
parent7bb2de1bc40e535fae93940113db97b5ea44a6f2 (diff)
Preliminary support for realtime clock (#2772)
* #include an absolute path didn't work - because paths were taken to always be relative. * Initial support for realtime clock. * Add realtime-clock render feature where seems appropriate. * Fixes to make NVAPI compile properly. Change realtime-clock.slang check to use maths that can't overflow.
Diffstat (limited to 'tools/gfx/vulkan/vk-api.h')
-rw-r--r--tools/gfx/vulkan/vk-api.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/gfx/vulkan/vk-api.h b/tools/gfx/vulkan/vk-api.h
index af2234f55..c34372f45 100644
--- a/tools/gfx/vulkan/vk-api.h
+++ b/tools/gfx/vulkan/vk-api.h
@@ -270,6 +270,11 @@ struct VulkanExtendedFeatureProperties
// Robustness2 features
VkPhysicalDeviceRobustness2FeaturesEXT robustness2Features = {
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ROBUSTNESS_2_FEATURES_EXT};
+
+ // Clock features
+ VkPhysicalDeviceShaderClockFeaturesKHR clockFeatures = {
+ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CLOCK_FEATURES_KHR
+ };
};
struct VulkanApi