diff options
| author | Yong He <yonghe@outlook.com> | 2021-12-07 13:45:49 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-07 13:45:49 -0800 |
| commit | 90d8af888b40c83b33f9f0c037bd2ab8c19a35f4 (patch) | |
| tree | 21ada472ea0d768352f46da7db64f9dc449d1209 /tools/gfx/renderer-shared.cpp | |
| parent | 646eecc6af878ea7682c814c15b4e838c3231ee3 (diff) | |
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 <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx/renderer-shared.cpp')
| -rw-r--r-- | tools/gfx/renderer-shared.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
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<IFence*>(this); + return nullptr; +} + IResource* BufferResource::getInterface(const Slang::Guid& guid) { if (guid == GfxGUID::IID_ISlangUnknown || guid == GfxGUID::IID_IResource || |
