名称优化

This commit is contained in:
2026-08-02 03:43:39 +08:00
parent d8e023cea7
commit 3d027967b9
109 changed files with 1699 additions and 3979 deletions
+23
View File
@@ -0,0 +1,23 @@
#pragma once
#include "Plot_Frame_Pipeline.h"
#include "../render/Image_View.h"
#include <cstdint>
#include <memory>
namespace renderive {
class Present_Frame_Lease {
public:
Present_Frame_Lease();
Present_Frame_Lease(Present_Frame_Lease&&) noexcept;
Present_Frame_Lease& operator=(Present_Frame_Lease&&) noexcept;
~Present_Frame_Lease();
[[nodiscard]] explicit operator bool() const;
[[nodiscard]] bool new_frame() const;
[[nodiscard]] bool request_was_pending() const;
[[nodiscard]] Image_View image() const;
private:
friend class Plot_Core;
std::unique_ptr<Plot_Frame_Lease> lease_;
bool is_new_frame{};
bool update_was_pending{};
};
} // namespace renderive