Screw rendergraphs (for now)

This commit is contained in:
Dynamitos
2021-10-01 19:55:04 +02:00
parent bd739068d6
commit 5dfc8300c5
25 changed files with 222 additions and 226 deletions
+13 -5
View File
@@ -5,11 +5,8 @@ using namespace Seele;
InspectorView::InspectorView(Gfx::PGraphics graphics, PWindow window, const ViewportCreateInfo &createInfo)
: View(graphics, window, createInfo)
, renderGraph(UIPass(graphics, viewport, new Gfx::SwapchainAttachment(window->getGfxHandle())))
{
renderGraph = new RenderGraph();
Gfx::PRenderTargetAttachment attachment = new Gfx::SwapchainAttachment(window->getGfxHandle());
renderGraph->addRenderPass(new UIPass(renderGraph, graphics, viewport, attachment));
renderGraph->setup();
}
InspectorView::~InspectorView()
@@ -20,12 +17,23 @@ void InspectorView::beginFrame()
{
}
void InspectorView::render()
void InspectorView::update()
{
}
void InspectorView::endFrame()
{
}
void InspectorView::prepareRender()
{
}
void InspectorView::render()
{
}
void InspectorView::keyCallback(KeyCode code, InputAction action, KeyModifier modifier)