yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

lucy96chenSplit render-d3d11.cpp into smaller files (#2307)5eee6b03c

master
742 B38 linesraw
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{
16    kMaxUAVs = 64,
17    kMaxRTVs = 8,
18};
19
20class FramebufferLayoutImpl : public FramebufferLayoutBase
21{
22public:
23    ShortList<IFramebufferLayout::TargetLayout> m_renderTargets;
24    bool m_hasDepthStencil = false;
25    IFramebufferLayout::TargetLayout m_depthStencil;
26};
27
28class FramebufferImpl : public FramebufferBase
29{
30public:
31    ShortList<RefPtr<RenderTargetViewImpl>, kMaxRTVs> renderTargetViews;
32    ShortList<ID3D11RenderTargetView*, kMaxRTVs> d3dRenderTargetViews;
33    RefPtr<DepthStencilViewImpl> depthStencilView;
34    ID3D11DepthStencilView* d3dDepthStencilView;
35};
36
37} // namespace d3d11
38} // namespace gfx