yum-mirror/slang

Making it easier to work with shaders

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

Ellie Hermaszewskaformatf65d756bf

master
736 B28 linesraw
1// simple-render-pass-layout.h
2#pragma once
3
4// Implementation of a dummy render pass layout object that stores and holds its
5// desc value. Used by targets that does not expose an API object for the render pass
6// concept.
7
8#include "core/slang-basic.h"
9#include "core/slang-com-object.h"
10#include "slang-gfx.h"
11
12namespace gfx
13{
14
15class SimpleRenderPassLayout : public IRenderPassLayout, public Slang::ComObject
16{
17public:
18    SLANG_COM_OBJECT_IUNKNOWN_ALL
19    IRenderPassLayout* getInterface(const Slang::Guid& guid);
20
21public:
22    Slang::ShortList<TargetAccessDesc> m_renderTargetAccesses;
23    TargetAccessDesc m_depthStencilAccess;
24    bool m_hasDepthStencil;
25    void init(const IRenderPassLayout::Desc& desc);
26};
27
28} // namespace gfx