// d3d12-framebuffer.h #pragma once #include "d3d12-base.h" #include "d3d12-resource-views.h" namespace gfx { namespace d3d12 { using namespace Slang; class FramebufferLayoutImpl : public FramebufferLayoutBase { public: ShortList m_renderTargets; bool m_hasDepthStencil = false; IFramebufferLayout::TargetLayout m_depthStencil; }; class FramebufferImpl : public FramebufferBase { public: ShortList> renderTargetViews; RefPtr depthStencilView; ShortList renderTargetDescriptors; struct Color4f { float values[4]; }; ShortList renderTargetClearValues; D3D12_CPU_DESCRIPTOR_HANDLE depthStencilDescriptor; DepthStencilClearValue depthStencilClearValue; }; } // namespace d3d12 } // namespace gfx