summaryrefslogtreecommitdiffstats
path: root/tools/gfx/cuda/render-cuda.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-12-07 13:45:49 -0800
committerGitHub <noreply@github.com>2021-12-07 13:45:49 -0800
commit90d8af888b40c83b33f9f0c037bd2ab8c19a35f4 (patch)
tree21ada472ea0d768352f46da7db64f9dc449d1209 /tools/gfx/cuda/render-cuda.cpp
parent646eecc6af878ea7682c814c15b4e838c3231ee3 (diff)
gfx: D3D12 and VK Fence implementation. (#2048)
* gfx: D3D12 and VK Fence implementation. * Fix. * Update project files. * Revert project file changes. * Remove project files Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx/cuda/render-cuda.cpp')
-rw-r--r--tools/gfx/cuda/render-cuda.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/gfx/cuda/render-cuda.cpp b/tools/gfx/cuda/render-cuda.cpp
index a3c288ab0..7abf51ef3 100644
--- a/tools/gfx/cuda/render-cuda.cpp
+++ b/tools/gfx/cuda/render-cuda.cpp
@@ -1212,7 +1212,7 @@ public:
}
}
- virtual SLANG_NO_THROW void SLANG_MCALL wait() override
+ virtual SLANG_NO_THROW void SLANG_MCALL waitOnHost() override
{
auto resultCode = cuStreamSynchronize(stream);
if (resultCode != cudaSuccess)
@@ -1220,6 +1220,12 @@ public:
}
virtual SLANG_NO_THROW Result SLANG_MCALL
+ waitForFences(uint32_t fenceCount, IFence** fences, uint64_t* waitValues) override
+ {
+ return SLANG_FAIL;
+ }
+
+ virtual SLANG_NO_THROW Result SLANG_MCALL
getNativeHandle(NativeHandle* outHandle) override
{
*outHandle = (uint64_t)stream;