summaryrefslogtreecommitdiff
path: root/tools/gfx/vulkan/vk-render-pass.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/vulkan/vk-render-pass.h')
-rw-r--r--tools/gfx/vulkan/vk-render-pass.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/tools/gfx/vulkan/vk-render-pass.h b/tools/gfx/vulkan/vk-render-pass.h
new file mode 100644
index 000000000..7cc1a581f
--- /dev/null
+++ b/tools/gfx/vulkan/vk-render-pass.h
@@ -0,0 +1,32 @@
+// vk-render-pass.h
+#pragma once
+
+#include "vk-base.h"
+#include "vk-device.h"
+
+namespace gfx
+{
+
+using namespace Slang;
+
+namespace vk
+{
+
+class RenderPassLayoutImpl
+ : public IRenderPassLayout
+ , public ComObject
+{
+public:
+ SLANG_COM_OBJECT_IUNKNOWN_ALL
+ IRenderPassLayout* getInterface(const Guid& guid);
+
+public:
+ VkRenderPass m_renderPass;
+ RefPtr<DeviceImpl> m_renderer;
+ ~RenderPassLayoutImpl();
+
+ Result init(DeviceImpl* renderer, const IRenderPassLayout::Desc& desc);
+};
+
+} // namespace vk
+} // namespace gfx