Loading...
Searching...
No Matches
InvertYRenderer.hpp
1#pragma once
2
3#include <Gfx/Graph/NodeRenderer.hpp>
4#include <Gfx/Graph/OutputNode.hpp>
5namespace Gfx
6{
7
8class SCORE_PLUGIN_GFX_EXPORT InvertYRenderer final
10{
11public:
12 explicit InvertYRenderer(
14 QRhiReadbackResult& readback);
15
18
19 QShader m_vertexS, m_fragmentS;
20
21 std::vector<score::gfx::Sampler> m_samplers;
22
24
26
28 renderTargetForInput(const score::gfx::Port& p) override
29 {
30 return m_inputTarget;
31 }
32
33 void finishFrame(
34 score::gfx::RenderList& renderer, QRhiCommandBuffer& cb,
35 QRhiResourceUpdateBatch*& res) override;
36
37 void init(score::gfx::RenderList& renderer, QRhiResourceUpdateBatch& res) override;
38 void update(
39 score::gfx::RenderList& renderer, QRhiResourceUpdateBatch& res,
40 score::gfx::Edge* edge) override;
41 void release(score::gfx::RenderList&) override;
42
43 void updateReadback(QRhiReadbackResult& rb) { m_readback = &rb; }
44
45private:
46 QRhiReadbackResult* m_readback{};
47};
48
49}
Definition InvertYRenderer.hpp:10
Root data model for visual nodes.
Definition score-plugin-gfx/Gfx/Graph/Node.hpp:75
Definition OutputNode.hpp:11
List of nodes to be rendered to an output.
Definition RenderList.hpp:19
Binds the rendering pipeline to ossia processes.
Definition CameraDevice.cpp:28
Connection between two score::gfx::Port.
Definition score-plugin-gfx/Gfx/Graph/Utils.hpp:66
Definition Mesh.hpp:15
Useful abstraction for storing a graphics pipeline and associated resource bindings.
Definition score-plugin-gfx/Gfx/Graph/Utils.hpp:93
Port of a score::gfx::Node.
Definition score-plugin-gfx/Gfx/Graph/Utils.hpp:48
Useful abstraction for storing all the data related to a render target.
Definition score-plugin-gfx/Gfx/Graph/Utils.hpp:111