Reset recording renderer state on clear
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user