summaryrefslogtreecommitdiff
path: root/tools/gfx/d3d12/d3d12-render-pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/d3d12/d3d12-render-pass.cpp')
-rw-r--r--tools/gfx/d3d12/d3d12-render-pass.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/gfx/d3d12/d3d12-render-pass.cpp b/tools/gfx/d3d12/d3d12-render-pass.cpp
new file mode 100644
index 000000000..bdd159fd5
--- /dev/null
+++ b/tools/gfx/d3d12/d3d12-render-pass.cpp
@@ -0,0 +1,19 @@
+// d3d12-render-pass.cpp
+#include "d3d12-render-pass.h"
+
+namespace gfx
+{
+namespace d3d12
+{
+
+using namespace Slang;
+
+void RenderPassLayoutImpl::init(const IRenderPassLayout::Desc& desc)
+{
+ SimpleRenderPassLayout::init(desc);
+ m_framebufferLayout = static_cast<FramebufferLayoutImpl*>(desc.framebufferLayout);
+ m_hasDepthStencil = m_framebufferLayout->m_hasDepthStencil;
+}
+
+} // namespace d3d12
+} // namespace gfx