This commit is contained in:
2026-08-12 11:03:16 +08:00
parent 0910b73ea4
commit 898a58b554
18 changed files with 521 additions and 277 deletions
+3 -2
View File
@@ -60,7 +60,8 @@ void Renderable::build_task_graph(Renderable_Task_Graph& graph) {
void Renderable::build_paint_task_graph(Renderable_Task_Graph& graph) {
add_paint_task(graph, "paint", [this](detail::Painter& painter,
const Render_State_View& state) {
const Render_State_View& state,
const Scene_Render_Context&) {
paint(painter, state);
});
}
@@ -78,7 +79,7 @@ Renderable_Task_Graph::Task Renderable::add_paint_task(
return;
detail::Painter painter(*cache, viewport_size());
if (painter)
function(painter, render_state_view());
function(painter, render_state_view(), context);
},
std::move(name));
}