yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
5eee6b03c
master
1// d3d11-framebuffer.h 2#pragma once 3 4#include "d3d11-base.h" 5 6namespace gfx 7{ 8 9using namespace Slang ; 10 11namespace d3d11 12{ 13 14enum 15{ 16kMaxUAVs = 64 , 17kMaxRTVs = 8 , 18}; 19 20class FramebufferLayoutImpl :public FramebufferLayoutBase 21{ 22public : 23ShortList < IFramebufferLayout ::TargetLayout > m_renderTargets ; 24bool m_hasDepthStencil = false; 25IFramebufferLayout ::TargetLayout m_depthStencil ; 26}; 27 28class FramebufferImpl :public FramebufferBase 29{ 30public : 31ShortList < RefPtr < RenderTargetViewImpl > ,kMaxRTVs > renderTargetViews ; 32ShortList < ID3D11RenderTargetView * ,kMaxRTVs > d3dRenderTargetViews ; 33RefPtr < DepthStencilViewImpl > depthStencilView ; 34ID3D11DepthStencilView * d3dDepthStencilView ; 35}; 36 37}// namespace d3d11 38}// namespace gfx