From 5eee6b03c391d0bb6ed0ded2d8d91c2e525fdb97 Mon Sep 17 00:00:00 2001 From: lucy96chen <47800040+lucy96chen@users.noreply.github.com> Date: Thu, 30 Jun 2022 11:09:45 -0700 Subject: Split render-d3d11.cpp into smaller files (#2307) * render-d3d11 split, does not compile * Compiles but unit tests failing * ran premake.bat * Readded constructor code that was accidentally removed --- tools/gfx/d3d11/d3d11-framebuffer.h | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 tools/gfx/d3d11/d3d11-framebuffer.h (limited to 'tools/gfx/d3d11/d3d11-framebuffer.h') diff --git a/tools/gfx/d3d11/d3d11-framebuffer.h b/tools/gfx/d3d11/d3d11-framebuffer.h new file mode 100644 index 000000000..b0b55901a --- /dev/null +++ b/tools/gfx/d3d11/d3d11-framebuffer.h @@ -0,0 +1,38 @@ +// d3d11-framebuffer.h +#pragma once + +#include "d3d11-base.h" + +namespace gfx +{ + +using namespace Slang; + +namespace d3d11 +{ + +enum +{ + kMaxUAVs = 64, + kMaxRTVs = 8, +}; + +class FramebufferLayoutImpl : public FramebufferLayoutBase +{ +public: + ShortList m_renderTargets; + bool m_hasDepthStencil = false; + IFramebufferLayout::TargetLayout m_depthStencil; +}; + +class FramebufferImpl : public FramebufferBase +{ +public: + ShortList, kMaxRTVs> renderTargetViews; + ShortList d3dRenderTargetViews; + RefPtr depthStencilView; + ID3D11DepthStencilView* d3dDepthStencilView; +}; + +} // namespace d3d11 +} // namespace gfx -- cgit v1.2.3