Loading...
Searching...
No Matches
ScenePreprocessorNode.hpp
1#pragma once
2#include <Gfx/Graph/Node.hpp>
3
4namespace score::gfx
5{
6
14SCORE_PLUGIN_GFX_EXPORT bool
15copiesGpuIndices(QRhi::Implementation backend, ossia::index_format format) noexcept;
16
21SCORE_PLUGIN_GFX_EXPORT bool
22widensGpuIndices(QRhi::Implementation backend, ossia::index_format format) noexcept;
23
28SCORE_PLUGIN_GFX_EXPORT void forceGpuIndexWidening(bool force) noexcept;
29
69class SCORE_PLUGIN_GFX_EXPORT ScenePreprocessorNode : public ProcessNode
70{
71public:
73 ~ScenePreprocessorNode() override;
74
75 score::gfx::NodeRenderer* createRenderer(RenderList& r) const noexcept override;
76};
77
78}
Renderer for a given node.
Definition NodeRenderer.hpp:11
Common base class for nodes that map to score processes.
Definition score-plugin-gfx/Gfx/Graph/Node.hpp:250
List of nodes to be rendered to an output.
Definition RenderList.hpp:33
Bridge from scene_spec (hierarchical, CPU) to geometry_spec (flat, GPU-resident).
Definition ScenePreprocessorNode.hpp:70
Graphics rendering pipeline for ossia score.
Definition Filter/PreviewWidget.hpp:11
bool copiesGpuIndices(QRhi::Implementation backend, ossia::index_format format) noexcept
Whether the Scene Preprocessor can copy a GPU index buffer of this index size into its uint32 index s...
Definition ScenePreprocessorNode.cpp:6425
void forceGpuIndexWidening(bool force) noexcept
Widen uint16 GPU indices with the compute pass on every backend, so that the Metal path can be tested...
Definition ScenePreprocessorNode.cpp:6438
bool widensGpuIndices(QRhi::Implementation backend, ossia::index_format format) noexcept
Whether GPU indices of this size are widened to uint32 by a compute pass instead of copied: uint16 on...
Definition ScenePreprocessorNode.cpp:6432