summaryrefslogtreecommitdiffstats
path: root/tools/gfx/open-gl/render-gl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/open-gl/render-gl.cpp')
-rw-r--r--tools/gfx/open-gl/render-gl.cpp23
1 files changed, 2 insertions, 21 deletions
diff --git a/tools/gfx/open-gl/render-gl.cpp b/tools/gfx/open-gl/render-gl.cpp
index c0b739096..fb8502485 100644
--- a/tools/gfx/open-gl/render-gl.cpp
+++ b/tools/gfx/open-gl/render-gl.cpp
@@ -201,17 +201,9 @@ public:
GLsizei offset;
};
- 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:
VertexAttributeDesc m_attributes[kMaxVertexStreams];
UInt m_attributeCount = 0;
};
@@ -329,20 +321,9 @@ public:
GLuint m_bufferID;
};
- 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;