From 90d8af888b40c83b33f9f0c037bd2ab8c19a35f4 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 7 Dec 2021 13:45:49 -0800 Subject: 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 --- tools/gfx/renderer-shared.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tools/gfx/renderer-shared.cpp') diff --git a/tools/gfx/renderer-shared.cpp b/tools/gfx/renderer-shared.cpp index c212f21eb..101e02d47 100644 --- a/tools/gfx/renderer-shared.cpp +++ b/tools/gfx/renderer-shared.cpp @@ -65,6 +65,13 @@ return gfx::StageType::TO } } +IFence* FenceBase::getInterface(const Slang::Guid& guid) +{ + if (guid == GfxGUID::IID_ISlangUnknown || guid == GfxGUID::IID_IFence) + return static_cast(this); + return nullptr; +} + IResource* BufferResource::getInterface(const Slang::Guid& guid) { if (guid == GfxGUID::IID_ISlangUnknown || guid == GfxGUID::IID_IResource || -- cgit v1.2.3