summaryrefslogtreecommitdiffstats
path: root/tools/gfx/vulkan/render-vk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/vulkan/render-vk.cpp')
-rw-r--r--tools/gfx/vulkan/render-vk.cpp23
1 files changed, 2 insertions, 21 deletions
diff --git a/tools/gfx/vulkan/render-vk.cpp b/tools/gfx/vulkan/render-vk.cpp
index 2ce51790a..315c8d7ce 100644
--- a/tools/gfx/vulkan/render-vk.cpp
+++ b/tools/gfx/vulkan/render-vk.cpp
@@ -153,17 +153,9 @@ public:
const VulkanApi* m_api;
};
- 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:
List<VkVertexInputAttributeDescription> m_vertexDescs;
int m_vertexSize;
};
@@ -310,20 +302,9 @@ public:
VkDeviceSize size;
};
- 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:
VkRenderPass m_renderPass;
RefPtr<VKDevice> m_renderer;
Array<VkAttachmentDescription, kMaxAttachments> m_attachmentDescs;