Loading...
Searching...
No Matches
score::gfx::MultiWindowRenderer Class Referencefinal
Inheritance diagram for score::gfx::MultiWindowRenderer:
score::gfx::OutputNodeRenderer score::gfx::NodeRenderer

Classes

struct  PerWindowData
 

Public Member Functions

 MultiWindowRenderer (const MultiWindowNode &node, const score::gfx::RenderState &state)
 
score::gfx::TextureRenderTarget renderTargetForInput (const score::gfx::Port &p) override
 
void init (score::gfx::RenderList &renderer, QRhiResourceUpdateBatch &res) override
 
void buildWindowPipeline (int index, score::gfx::RenderList &renderer, QRhiResourceUpdateBatch *res)
 
void releaseWindowPipeline (int index)
 
void update (score::gfx::RenderList &renderer, QRhiResourceUpdateBatch &res, score::gfx::Edge *edge) override
 
void release (score::gfx::RenderList &) override
 
void finishFrame (score::gfx::RenderList &, QRhiCommandBuffer &, QRhiResourceUpdateBatch *&) override
 
void renderToWindow (int windowIndex, score::gfx::RenderList &renderer, QRhiCommandBuffer &cb)
 
- Public Member Functions inherited from score::gfx::OutputNodeRenderer
void removeOutputPass (RenderList &, Edge &) override
 
- Public Member Functions inherited from score::gfx::NodeRenderer
 NodeRenderer (const Node &node)
 
virtual BufferView bufferForInput (const Port &input)
 
virtual BufferView bufferForOutput (const Port &output)
 
virtual QRhiTexture * textureForOutput (const Port &output)
 
virtual void updateInputTexture (const Port &input, QRhiTexture *tex, QRhiTexture *depthTex=nullptr)
 
virtual void updateInputSamplerFilter (const Port &input, const RenderTargetSpecs &spec)
 
virtual void inputAboutToFinish (RenderList &renderer, const Port &p, QRhiResourceUpdateBatch *&)
 
virtual void runInitialPasses (RenderList &, QRhiCommandBuffer &commands, QRhiResourceUpdateBatch *&res, Edge &edge)
 
virtual void runRenderPass (RenderList &, QRhiCommandBuffer &commands, Edge &edge)
 
virtual QRhiGraphicsPipeline::CompareOp depthCompare () const noexcept
 The depth compare this renderer's pipeline was built with.
 
void checkForChanges ()
 
void syncRenderTargetIndex ()
 
void process (int32_t port, const ossia::geometry_spec &v)
 
void process (int32_t port, const ossia::scene_spec &v)
 
virtual void process (int32_t port, const ossia::transform3d &v)
 
void process (int32_t port, const ossia::geometry_spec &v, const void *source_key)
 
void process (int32_t port, const ossia::scene_spec &v, const void *source_key)
 
const ossia::geometry_spec * findGeometryByPort (int32_t port) const
 
template<typename F >
void forEachSceneOnPort (int32_t port, F &&fn) const
 
virtual void initState (RenderList &renderer, QRhiResourceUpdateBatch &res)
 
virtual void releaseState (RenderList &renderer)
 
virtual void addOutputPass (RenderList &renderer, Edge &edge, QRhiResourceUpdateBatch &res)
 Create a pass for a new output edge (pipeline, SRB, processUBO).
 
virtual void addInputEdge (RenderList &renderer, Edge &edge, QRhiResourceUpdateBatch &res)
 
virtual void removeInputEdge (RenderList &renderer, Edge &edge)
 Notify the renderer that an input edge was disconnected.
 
virtual bool hasOutputPassForEdge (Edge &edge) const
 Check if this renderer already has an output pass for the given edge.
 
virtual void seedInitialOutputs (RenderList &renderer)
 
virtual bool followsRenderSize () const noexcept
 
virtual const Mesh * currentMesh () const noexcept
 

Public Attributes

QShader m_vertexS
 
QShader m_fragmentS
 
score::gfx::MeshBuffers m_mesh {}
 
std::vector< PerWindowData > m_perWindow
 
const MultiWindowNode & m_multiNode
 
bool m_initialized {false}
 
- Public Attributes inherited from score::gfx::NodeRenderer
const Node & node
 
ossia::geometry_spec geometry
 The geometry to use.
 
ossia::small_flat_map< PortSourceKey, ossia::geometry_spec, 4 > m_portGeometries
 
ossia::scene_spec scene
 The scene to use (when receiving scene_spec data).
 
ossia::small_flat_map< PortSourceKey, ossia::scene_spec, 4 > m_portScenes
 Per-(port, source) scene storage. See m_portGeometries comment.
 
ossia::small_vector< MergeCacheKey, 4 > m_mergeCacheInputs
 
ossia::scene_spec m_mergeCacheOutput
 
ossia::small_flat_map< PortSourceKey, std::pair< ossia::geometry_spec, ossia::scene_spec >, 4 > m_wrapCache
 
int32_t nodeId {-1}
 
bool materialChanged {false}
 
bool geometryChanged {false}
 
bool sceneChanged {false}
 
bool renderTargetSpecsChanged {false}
 
bool m_initialized {false}
 

Additional Inherited Members

- Public Types inherited from score::gfx::NodeRenderer
using PortSourceKey = std::pair< int32_t, const void * >
 
using MergeCacheKey = std::pair< const ossia::scene_state *, int64_t >
 

Member Function Documentation

◆ finishFrame()

void score::gfx::MultiWindowRenderer::finishFrame ( score::gfx::RenderList &  ,
QRhiCommandBuffer &  ,
QRhiResourceUpdateBatch *&   
)
inlineoverridevirtual

Reimplemented from score::gfx::OutputNodeRenderer.

◆ init()

void score::gfx::MultiWindowRenderer::init ( score::gfx::RenderList &  renderer,
QRhiResourceUpdateBatch &  res 
)
inlineoverridevirtual

◆ release()

void score::gfx::MultiWindowRenderer::release ( score::gfx::RenderList &  )
inlineoverridevirtual

◆ renderTargetForInput()

score::gfx::TextureRenderTarget score::gfx::MultiWindowRenderer::renderTargetForInput ( const score::gfx::Port &  p)
inlineoverridevirtual

Reimplemented from score::gfx::NodeRenderer.

◆ update()

void score::gfx::MultiWindowRenderer::update ( score::gfx::RenderList &  renderer,
QRhiResourceUpdateBatch &  res,
score::gfx::Edge *  edge 
)
inlineoverridevirtual

The documentation for this class was generated from the following file:
  • MultiWindowNode.cpp