From 09950676b3f73bb9967aea183d27a30d63098475 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 8 Jul 2021 13:30:17 -0700 Subject: Implement gfx inline ray tracing on D3D12. (#1902) * Update VS projects to 2019. * Empty commit to trigger build * Implement gfx inline ray tracing on D3D12. --- tools/gfx/renderer-shared.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'tools/gfx/renderer-shared.h') diff --git a/tools/gfx/renderer-shared.h b/tools/gfx/renderer-shared.h index e3580b9b6..6863a95a0 100644 --- a/tools/gfx/renderer-shared.h +++ b/tools/gfx/renderer-shared.h @@ -245,22 +245,30 @@ protected: Desc m_desc; }; +class ResourceViewInternalBase : public Slang::ComObject +{}; + class ResourceViewBase : public IResourceView - , public Slang::ComObject + , public ResourceViewInternalBase { public: + Desc m_desc = {}; SLANG_COM_OBJECT_IUNKNOWN_ALL IResourceView* getInterface(const Slang::Guid& guid); + virtual SLANG_NO_THROW Desc* SLANG_MCALL getViewDesc() override { return &m_desc; } }; class AccelerationStructureBase : public IAccelerationStructure - , public Slang::ComObject + , public ResourceViewInternalBase { public: + IResourceView::Desc m_desc = {}; + SLANG_COM_OBJECT_IUNKNOWN_ALL IAccelerationStructure* getInterface(const Slang::Guid& guid); + virtual SLANG_NO_THROW Desc* SLANG_MCALL getViewDesc() override { return &m_desc; } }; class RendererBase; -- cgit v1.2.3