diff options
| author | lucy96chen <47800040+lucy96chen@users.noreply.github.com> | 2021-12-08 11:38:14 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-08 11:38:14 -0800 |
| commit | 9606401e1de1002e3ad070bc5c6384fa5bc4d9ff (patch) | |
| tree | 7a557a14fadf5220a34f6df9faf1a5535100743f /tools/gfx/renderer-shared.cpp | |
| parent | 90d8af888b40c83b33f9f0c037bd2ab8c19a35f4 (diff) | |
D3D12 and Vulkan to CUDA Texture Sharing (#2038)
Diffstat (limited to 'tools/gfx/renderer-shared.cpp')
| -rw-r--r-- | tools/gfx/renderer-shared.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/gfx/renderer-shared.cpp b/tools/gfx/renderer-shared.cpp index 101e02d47..df6ebd37e 100644 --- a/tools/gfx/renderer-shared.cpp +++ b/tools/gfx/renderer-shared.cpp @@ -365,6 +365,19 @@ SLANG_NO_THROW Result SLANG_MCALL RendererBase::createTextureFromNativeHandle( return SLANG_E_NOT_AVAILABLE; } +SLANG_NO_THROW Result SLANG_MCALL RendererBase::createTextureFromSharedHandle( + InteropHandle handle, + const ITextureResource::Desc& srcDesc, + const size_t size, + ITextureResource** outResource) +{ + SLANG_UNUSED(handle); + SLANG_UNUSED(srcDesc); + SLANG_UNUSED(size); + SLANG_UNUSED(outResource); + return SLANG_E_NOT_AVAILABLE; +} + SLANG_NO_THROW Result SLANG_MCALL RendererBase::createBufferFromNativeHandle( InteropHandle handle, const IBufferResource::Desc& srcDesc, @@ -381,6 +394,7 @@ SLANG_NO_THROW Result SLANG_MCALL RendererBase::createBufferFromSharedHandle( const IBufferResource::Desc& srcDesc, IBufferResource** outResource) { + SLANG_UNUSED(handle); SLANG_UNUSED(srcDesc); SLANG_UNUSED(outResource); return SLANG_E_NOT_AVAILABLE; |
