From 68c7d5cda2d6f2eb7bfb3a7e15860eb3ded25424 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Tue, 4 Apr 2023 18:00:16 -0400 Subject: 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. --- tools/gfx/d3d11/d3d11-device.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/gfx/d3d11/d3d11-device.cpp') diff --git a/tools/gfx/d3d11/d3d11-device.cpp b/tools/gfx/d3d11/d3d11-device.cpp index e32bdf7ed..cc2eda089 100644 --- a/tools/gfx/d3d11/d3d11-device.cpp +++ b/tools/gfx/d3d11/d3d11-device.cpp @@ -196,6 +196,11 @@ SlangResult DeviceImpl::initialize(const Desc& desc) m_features.add("atomic-float"); } + // If we have NVAPI well assume we have realtime clock + { + m_features.add("realtime-clock"); + } + m_nvapi = true; #endif } -- cgit v1.2.3