summaryrefslogtreecommitdiff
path: root/tools/gfx/cuda/render-cuda.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-02-03 19:17:30 -0800
committerGitHub <noreply@github.com>2022-02-03 19:17:30 -0800
commitd06a78d935b2743494d47ed5cd3f36e38ac9c5ac (patch)
tree7615fd89cb826f2c463b4a221f19139d3a5d4a9d /tools/gfx/cuda/render-cuda.cpp
parent5eb835f0332868fd56ac14ce7560e0ae9cfafec9 (diff)
Add gfx interop to allow more direct D3D12 usage scenarios. (#2117)
* Add gfx interop to allow more direct D3D12 usage scenarios. * Fix compile error in win32. * gfx: Implement IFence::getNativeHandle() on d3d12. * More GFX-D3D interop interface. * Fix cuda. 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.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/tools/gfx/cuda/render-cuda.cpp b/tools/gfx/cuda/render-cuda.cpp
index 0446dc055..cb8f779f4 100644
--- a/tools/gfx/cuda/render-cuda.cpp
+++ b/tools/gfx/cuda/render-cuda.cpp
@@ -944,6 +944,12 @@ public:
return static_cast<ICommandBuffer*>(this);
return nullptr;
}
+
+ virtual SLANG_NO_THROW Result SLANG_MCALL resetDescriptorHeaps() override
+ {
+ return SLANG_OK;
+ }
+
public:
CUDADevice* m_device;
@@ -1178,11 +1184,9 @@ public:
virtual SLANG_NO_THROW void SLANG_MCALL close() override {}
- virtual SLANG_NO_THROW Result SLANG_MCALL
- getNativeHandle(NativeHandle* outHandle) override
+ virtual SLANG_NO_THROW Result SLANG_MCALL getNativeHandle(InteropHandle* outHandle) override
{
- *outHandle = 0;
- return SLANG_OK;
+ return SLANG_FAIL;
}
};
@@ -1251,11 +1255,9 @@ public:
return SLANG_FAIL;
}
- virtual SLANG_NO_THROW Result SLANG_MCALL
- getNativeHandle(NativeHandle* outHandle) override
+ virtual SLANG_NO_THROW Result SLANG_MCALL getNativeHandle(InteropHandle* outHandle) override
{
- *outHandle = (uint64_t)stream;
- return SLANG_OK;
+ return SLANG_FAIL;
}
public: