summaryrefslogtreecommitdiff
path: root/tools/gfx/d3d11
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/d3d11')
-rw-r--r--tools/gfx/d3d11/d3d11-device.cpp5
-rw-r--r--tools/gfx/d3d11/d3d11-scopeNVAPI.cpp2
2 files changed, 6 insertions, 1 deletions
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
}
diff --git a/tools/gfx/d3d11/d3d11-scopeNVAPI.cpp b/tools/gfx/d3d11/d3d11-scopeNVAPI.cpp
index b230623fe..1a662e999 100644
--- a/tools/gfx/d3d11/d3d11-scopeNVAPI.cpp
+++ b/tools/gfx/d3d11/d3d11-scopeNVAPI.cpp
@@ -20,7 +20,7 @@ SlangResult ScopeNVAPI::init(DeviceImpl* device, Index regIndex)
}
#ifdef GFX_NVAPI
- NvAPI_Status nvapiStatus = NvAPI_D3D11_SetNvShaderExtnSlot(renderer->m_device, NvU32(regIndex));
+ NvAPI_Status nvapiStatus = NvAPI_D3D11_SetNvShaderExtnSlot(device->m_device, NvU32(regIndex));
if (nvapiStatus != NVAPI_OK)
{
return SLANG_FAIL;