diff options
| author | Yong He <yonghe@outlook.com> | 2021-06-23 11:33:30 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-23 11:33:30 -0700 |
| commit | 0f2d11dc994c6323b4bfb955b522f3123e731fe0 (patch) | |
| tree | bc1316bba9217b22f3708dcb03727d70d2d8351a /tools/gfx/cuda/render-cuda.cpp | |
| parent | 0afa24a3fe7d0e1787cc909f9c7641f477c30e5c (diff) | |
[gfx] Add `IBufferResource::getDeviceAddress()`. (#1892)
Diffstat (limited to 'tools/gfx/cuda/render-cuda.cpp')
| -rw-r--r-- | tools/gfx/cuda/render-cuda.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/gfx/cuda/render-cuda.cpp b/tools/gfx/cuda/render-cuda.cpp index 3e93c090a..5a7e7babf 100644 --- a/tools/gfx/cuda/render-cuda.cpp +++ b/tools/gfx/cuda/render-cuda.cpp @@ -188,6 +188,11 @@ public: void* m_cudaMemory = nullptr; RefPtr<CUDAContext> m_cudaContext; + + virtual SLANG_NO_THROW DeviceAddress SLANG_MCALL getDeviceAddress() override + { + return (DeviceAddress)m_cudaMemory; + } }; class TextureCUDAResource : public TextureResource |
