summaryrefslogtreecommitdiffstats
path: root/tools/gfx/d3d12/d3d12-render-pass.cpp
blob: bdd159fd5cf80cc19d0b2b4d01a844f4fa15582d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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