Reset recording renderer state on clear

This commit is contained in:
2026-06-02 17:53:17 +02:00
parent 9b00acec6f
commit 860e5ad31e
5 changed files with 70 additions and 4 deletions

View File

@@ -172,6 +172,7 @@ public:
void end_render_pass() noexcept override;
[[nodiscard]] bool in_render_pass() const noexcept;
void reset() noexcept;
private:
std::vector<RecordedRenderCommand>* commands_ = nullptr;
@@ -188,6 +189,7 @@ public:
[[nodiscard]] pp::foundation::Status marker(const char* component, const char* name) noexcept override;
[[nodiscard]] pp::foundation::Status begin_scope(const char* component, const char* name) noexcept override;
[[nodiscard]] pp::foundation::Status end_scope() noexcept override;
void reset() noexcept;
private:
std::vector<RecordedRenderCommand>* commands_ = nullptr;