4#include <imgui_impl_vulkan.h>
5#include <imgui_internal.h>
9#include <tracy/Tracy.hpp>
10#include <vulkan/vulkan.hpp>
28 static auto create(
const std::shared_ptr<wren::Application> &app,
29 const std::filesystem::path &project_path)
32 Editor(
const std::shared_ptr<wren::Context> &ctx);
52 std::shared_ptr<wren::scene::Scene>
scene_;
60 std::vector<VkDescriptorSet>
dset_{};
Editor(const std::shared_ptr< wren::Context > &ctx)
Definition editor.cpp:73
std::shared_ptr< wren::Context > wren_ctx_
Definition editor.hpp:54
std::shared_ptr< wren::vk::Shader > viewer_shader_
Definition editor.hpp:57
auto load_scene() -> wren::expected< void >
Definition editor.cpp:198
wren::math::Vec2f last_scene_size_
Definition editor.hpp:64
std::shared_ptr< wren::vk::Shader > mesh_shader_
Definition editor.hpp:56
void on_update()
Definition editor.cpp:78
vk::Sampler texture_sampler_
Definition editor.hpp:61
Camera camera_
Definition editor.hpp:46
Context editor_context_
Definition editor.hpp:43
static auto create(const std::shared_ptr< wren::Application > &app, const std::filesystem::path &project_path) -> wren::expected< std::shared_ptr< Editor > >
Definition editor.cpp:11
std::optional< wren::math::Vec2f > scene_resized_
Definition editor.hpp:63
std::vector< VkDescriptorSet > dset_
Definition editor.hpp:60
std::shared_ptr< wren::scene::Scene > scene_
Definition editor.hpp:52
auto build_render_graph(const std::shared_ptr< wren::Context > &ctx) -> wren::expected< wren::GraphBuilder >
Definition editor.cpp:210
std::optional< flecs::entity > selected_entity_
Definition editor.hpp:49
std::expected< T, Err > expected
Definition result.hpp:49
Definition vector.hpp:124