diff options
Diffstat (limited to 'tools/gfx/d3d11/render-d3d11.cpp')
| -rw-r--r-- | tools/gfx/d3d11/render-d3d11.cpp | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/tools/gfx/d3d11/render-d3d11.cpp b/tools/gfx/d3d11/render-d3d11.cpp index f5dbcc0a7..a011f2760 100644 --- a/tools/gfx/d3d11/render-d3d11.cpp +++ b/tools/gfx/d3d11/render-d3d11.cpp @@ -265,20 +265,9 @@ protected: float m_clearValue[4]; }; - class FramebufferLayoutImpl - : public IFramebufferLayout - , public ComObject + class FramebufferLayoutImpl : public FramebufferLayoutBase { public: - SLANG_COM_OBJECT_IUNKNOWN_ALL - IFramebufferLayout* getInterface(const Guid& guid) - { - if (guid == GfxGUID::IID_ISlangUnknown || guid == GfxGUID::IID_IFramebufferLayout) - return static_cast<IFramebufferLayout*>(this); - return nullptr; - } - - public: ShortList<IFramebufferLayout::AttachmentLayout> m_renderTargets; bool m_hasDepthStencil = false; IFramebufferLayout::AttachmentLayout m_depthStencil; @@ -345,17 +334,9 @@ protected: } }; - class InputLayoutImpl: public IInputLayout, public ComObject + class InputLayoutImpl: public InputLayoutBase { public: - SLANG_COM_OBJECT_IUNKNOWN_ALL - IInputLayout* getInterface(const Guid& guid) - { - if (guid == GfxGUID::IID_ISlangUnknown || guid == GfxGUID::IID_IInputLayout) - return static_cast<IInputLayout*>(this); - return nullptr; - } - public: ComPtr<ID3D11InputLayout> m_layout; }; |
