Loading...
Searching...
No Matches
score::gfx::KmsOutputNode Class Reference

OutputNode scanning out directly through DRM/KMS. More...

Inheritance diagram for score::gfx::KmsOutputNode:
score::gfx::OutputNode score::gfx::Node

Detailed Description

OutputNode scanning out directly through DRM/KMS.

Classes

struct  Impl
 

Public Member Functions

 KmsOutputNode (KmsOutputSettings settings)
 
void setRenderer (std::shared_ptr< RenderList >) override
 
RenderListrenderer () const override
 
OutputNodeRenderercreateRenderer (RenderList &r) const noexcept override
 Create a renderer in a given context for this node.
 
void startRendering () override
 
void render () override
 
void stopRendering () override
 
bool canRender () const override
 
void onRendererChange () override
 
void createOutput (OutputConfiguration conf) override
 
void destroyOutput () override
 
std::shared_ptr< RenderStaterenderState () const override
 
Configuration configuration () const noexcept override
 
TextureRenderTarget currentRenderTarget () const noexcept override
 
std::string engagedDescription () const
 What the device actually gave us, for harnesses and the settings UI.
 
- Public Member Functions inherited from score::gfx::OutputNode
virtual void setVSyncCallback (std::function< void()>)
 Set a callback to drive rendering when there is a single output.
 
virtual void updateGraphicsAPI (GraphicsApi)
 
GpuResourceRegistryacquireRegistry ()
 Persistent GPU resource registry for this output.
 
GpuResourceRegistryregistry () const noexcept
 Non-owning accessor. Returns null if no registry has been acquired yet (e.g. queried before the first RenderList::init).
 
void releaseRegistry ()
 Tear down the registry's QRhi resources directly. Idempotent.
 
- Public Member Functions inherited from score::gfx::Node
 Node (const Node &)=delete
 
 Node (Node &&)=delete
 
Nodeoperator= (const Node &)=delete
 
Nodeoperator= (Node &&)=delete
 
virtual void renderedNodesChanged ()
 Whenever render nodes are added / removed.
 
virtual void process (Message &&msg)
 Process a message from the execution engine.
 
virtual void update ()
 
void materialChange () noexcept
 Used to notify a material change from the model to the renderers.
 
bool hasMaterialChanged (int64_t &renderer) const noexcept
 
void renderTargetChange () noexcept
 Used to notify a render target (texture inlet) change from the model to the renderers.
 
bool hasRenderTargetChanged (int64_t &renderer) const noexcept
 
bool hasExplicitRenderTargetSize (int32_t port) const noexcept
 Whether a given port has a user-specified render target size.
 
QSize resolveRenderTargetSize (int32_t port, RenderList &renderer) const noexcept
 
RenderTargetSpecs resolveRenderTargetSpecs (int32_t port, RenderList &renderer) const noexcept
 
void process (int32_t port, const ossia::render_target_spec &v)
 

Additional Inherited Members

- Public Attributes inherited from score::gfx::Node
std::vector< Port * > input
 Input ports of that node.
 
ossia::small_pod_vector< Port *, 1 > output
 Output ports of that node.
 
ossia::flat_map< RenderList *, score::gfx::NodeRenderer * > renderedNodes
 Map associating each RenderList to a Renderer for this model.
 
ossia::flat_map< int32_t, ossia::render_target_spec > renderTargetSpecs
 Render target info.
 
std::atomic_int64_t materialChanged {0}
 
std::atomic_int64_t renderTargetSpecChanged {-1}
 
int32_t nodeId = score::gfx::invalid_node_index
 
bool requiresDepth {}
 
- Protected Member Functions inherited from score::gfx::OutputNode
void releaseOwnedRenderList ()
 Invoke OutputConfiguration::onReleaseRenderList, if any.
 
- Protected Attributes inherited from score::gfx::OutputNode
std::function< void()> m_onReleaseRenderList
 
std::unique_ptr< GpuResourceRegistrym_registry
 

Member Function Documentation

◆ canRender()

bool score::gfx::KmsOutputNode::canRender ( ) const
overridevirtual

◆ configuration()

OutputNode::Configuration score::gfx::KmsOutputNode::configuration ( ) const
overridevirtualnoexcept

◆ createOutput()

void score::gfx::KmsOutputNode::createOutput ( OutputConfiguration  conf)
overridevirtual

◆ createRenderer()

OutputNodeRenderer * score::gfx::KmsOutputNode::createRenderer ( RenderList r) const
overridevirtualnoexcept

Create a renderer in a given context for this node.

Implements score::gfx::OutputNode.

◆ currentRenderTarget()

TextureRenderTarget score::gfx::KmsOutputNode::currentRenderTarget ( ) const
overridevirtualnoexcept

The slot the graph must render into for the frame being built. Rotates, which is exactly what this hook exists for.

Reimplemented from score::gfx::OutputNode.

◆ destroyOutput()

void score::gfx::KmsOutputNode::destroyOutput ( )
overridevirtual

◆ onRendererChange()

void score::gfx::KmsOutputNode::onRendererChange ( )
overridevirtual

◆ render()

void score::gfx::KmsOutputNode::render ( )
overridevirtual

◆ renderer()

RenderList * score::gfx::KmsOutputNode::renderer ( ) const
overridevirtual

◆ renderState()

std::shared_ptr< RenderState > score::gfx::KmsOutputNode::renderState ( ) const
overridevirtual

◆ setRenderer()

void score::gfx::KmsOutputNode::setRenderer ( std::shared_ptr< RenderList )
overridevirtual

◆ startRendering()

void score::gfx::KmsOutputNode::startRendering ( )
overridevirtual

◆ stopRendering()

void score::gfx::KmsOutputNode::stopRendering ( )
overridevirtual

The documentation for this class was generated from the following files: