Don't use std::function in the renderer hot paths (#1883)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
mwilsnd
2023-11-27 10:36:03 -05:00
committed by GitHub
parent bf472b0703
commit 71d4ceabcd
27 changed files with 260 additions and 311 deletions

View File

@@ -324,7 +324,7 @@ void Renderer::Impl::render(const RenderTree& renderTree,
{
const auto debugGroup(parameters.renderPass->createDebugGroup("debug"));
orchestrator.visitDebugLayerGroups([&](LayerGroupBase& layerGroup) {
layerGroup.visitDrawables([&](gfx::Drawable& drawable) { drawable.draw(parameters); });
visitLayerGroupDrawables(layerGroup, [&](gfx::Drawable& drawable) { drawable.draw(parameters); });
});
}
};