score::gfx::GenericNodeRenderer Class Reference
Generic renderer. More...
Inheritance diagram for score::gfx::GenericNodeRenderer:
Detailed Description
Generic renderer.
Used for the common case of a single pass node with a vertex & fragment shader, samplers, and a single render target.
Public Member Functions | |
GenericNodeRenderer (const NodeModel &node) noexcept | |
TextureRenderTarget | renderTargetForInput (const Port &p) override |
void | defaultMeshInit (RenderList &renderer, const Mesh &mesh, QRhiResourceUpdateBatch &res) |
void | processUBOInit (RenderList &renderer) |
void | defaultPassesInit (RenderList &renderer, const Mesh &mesh) |
void | defaultPassesInit (RenderList &renderer, const Mesh &mesh, const QShader &v, const QShader &f, std::span< QRhiShaderResourceBinding > additionalBindings={}) |
void | init (RenderList &renderer, QRhiResourceUpdateBatch &res) override |
void | defaultUBOUpdate (RenderList &renderer, QRhiResourceUpdateBatch &res) |
void | defaultMeshUpdate (RenderList &renderer, QRhiResourceUpdateBatch &res) |
void | update (RenderList &renderer, QRhiResourceUpdateBatch &res) override |
void | defaultRelease (RenderList &) |
void | release (RenderList &) override |
void | defaultRenderPass (RenderList &, const Mesh &mesh, QRhiCommandBuffer &commands, Edge &edge) |
void | defaultRenderPass (RenderList &, const Mesh &mesh, QRhiCommandBuffer &commands, Edge &edge, PassMap &passes) |
void | runRenderPass (RenderList &, QRhiCommandBuffer &commands, Edge &edge) override |
Public Member Functions inherited from score::gfx::NodeRenderer | |
virtual void | inputAboutToFinish (RenderList &renderer, const Port &p, QRhiResourceUpdateBatch *&) |
virtual void | runInitialPasses (RenderList &, QRhiCommandBuffer &commands, QRhiResourceUpdateBatch *&res, Edge &edge) |
Public Attributes | |
const NodeModel & | node |
std::vector< Sampler > | m_samplers |
QShader | m_vertexS |
QShader | m_fragmentS |
PassMap | m_p |
MeshBuffers | m_meshbufs |
QRhiBuffer * | m_processUBO {} |
DefaultShaderMaterial | m_material |
int64_t | materialChangedIndex {-1} |
int64_t | geometryChangedIndex {-1} |
const score::gfx::Mesh * | m_mesh {} |
Public Attributes inherited from score::gfx::NodeRenderer | |
int32_t | id {-1} |
The documentation for this class was generated from the following files:
- NodeRenderer.hpp
- NodeRenderer.cpp