From 9606401e1de1002e3ad070bc5c6384fa5bc4d9ff Mon Sep 17 00:00:00 2001 From: lucy96chen <47800040+lucy96chen@users.noreply.github.com> Date: Wed, 8 Dec 2021 11:38:14 -0800 Subject: D3D12 and Vulkan to CUDA Texture Sharing (#2038) --- tools/gfx/renderer-shared.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools/gfx/renderer-shared.h') diff --git a/tools/gfx/renderer-shared.h b/tools/gfx/renderer-shared.h index e7ea1b7f5..7859f1ad9 100644 --- a/tools/gfx/renderer-shared.h +++ b/tools/gfx/renderer-shared.h @@ -1206,6 +1206,12 @@ public: const ITextureResource::Desc& srcDesc, ITextureResource** outResource) SLANG_OVERRIDE; + virtual SLANG_NO_THROW Result SLANG_MCALL createTextureFromSharedHandle( + InteropHandle handle, + const ITextureResource::Desc& srcDesc, + const size_t size, + ITextureResource** outResource) SLANG_OVERRIDE; + virtual SLANG_NO_THROW Result SLANG_MCALL createBufferFromNativeHandle( InteropHandle handle, const IBufferResource::Desc& srcDesc, -- cgit v1.2.3