Files
Renderive/Core/architecture/Plot_Render_Context.h
T
2026-08-02 16:02:15 +08:00

30 lines
816 B
C++

#pragma once
#include "Frame_Scheduler.h"
#include <atomic>
#include <cstdint>
#include <functional>
#include <memory>
#include <memory_resource>
#include <mutex>
namespace renderive {
class Plot_Core;
class Timeline_Stream;
struct Plot_Render_Context {
std::atomic_bool destroying{false};
std::atomic_bool first_resize{true};
std::atomic_bool first_prepare_data{true};
std::atomic_int render_width{0};
std::atomic_int render_height{0};
std::atomic<std::uint64_t> viewport_version{0};
std::atomic<std::uint32_t> background_rgba{0xff000000u};
std::shared_ptr<Frame_Lifecycle_Observer> frame_lifecycle_observer;
std::mutex performance_update_callback_mutex;
std::function<void()> performance_update_callback;
std::atomic<Plot_Core*> owner{};
};
} // namespace renderive