Capture renderer draw mesh inputs

This commit is contained in:
2026-06-02 16:01:29 +02:00
parent 952a00e7d3
commit 881b5271a2
7 changed files with 29 additions and 14 deletions

View File

@@ -96,6 +96,7 @@ pp::foundation::Status RecordingCommandContext::begin_render_pass(
in_render_pass_ = true;
shader_bound_ = false;
mesh_bound_ = false;
active_mesh_ = MeshDesc {};
push_command(commands_, RecordedRenderCommand {
.kind = RecordedRenderCommandKind::begin_render_pass,
.target_desc = active_target_,
@@ -256,6 +257,7 @@ pp::foundation::Status RecordingCommandContext::bind_mesh(IMesh& mesh) noexcept
}
mesh_bound_ = true;
active_mesh_ = desc;
push_command(commands_, RecordedRenderCommand {
.kind = RecordedRenderCommandKind::bind_mesh,
.mesh_desc = desc,
@@ -277,6 +279,7 @@ pp::foundation::Status RecordingCommandContext::draw() noexcept
push_command(commands_, RecordedRenderCommand {
.kind = RecordedRenderCommandKind::draw,
.mesh_desc = active_mesh_,
});
return pp::foundation::Status::success();
}
@@ -421,6 +424,7 @@ void RecordingCommandContext::end_render_pass() noexcept
in_render_pass_ = false;
shader_bound_ = false;
mesh_bound_ = false;
active_mesh_ = MeshDesc {};
}
bool RecordingCommandContext::in_render_pass() const noexcept