Add offscreen render targets and rename AssetRegistry to ResourceRegistry #8

Merged
burkkyy merged 26 commits from dev into main 2026-09-25 20:39:26 -07:00
3 changed files with 3 additions and 7 deletions
Showing only changes of commit fe40d4a629 - Show all commits
-2
View File
@@ -5,8 +5,6 @@
#include <imgui_impl_vulkan.h> #include <imgui_impl_vulkan.h>
#include <imgui_internal.h> #include <imgui_internal.h>
#include <sophia/resource_registry.hpp>
#include "render_target.hpp" #include "render_target.hpp"
namespace sophia { namespace sophia {
+1 -2
View File
@@ -3,6 +3,7 @@
#include <imgui.h> #include <imgui.h>
#include <sophia/handles.hpp> #include <sophia/handles.hpp>
#include <sophia/resource_registry.hpp>
#include <sophia/types.hpp> #include <sophia/types.hpp>
#include <sophia/ui/dock_layout.hpp> #include <sophia/ui/dock_layout.hpp>
#include <unordered_map> #include <unordered_map>
@@ -12,8 +13,6 @@
namespace sophia { namespace sophia {
class ResourceRegistry;
class ImGuiRenderer { class ImGuiRenderer {
public: public:
ImGuiRenderer(const ImGuiRenderer&) = delete; ImGuiRenderer(const ImGuiRenderer&) = delete;
+2 -3
View File
@@ -74,9 +74,8 @@ void Shader::load(const std::string& path, ShaderStage shaderStage) {
throw std::runtime_error("invalid SPIR-V binary: " + path); throw std::runtime_error("invalid SPIR-V binary: " + path);
} }
this->spirv.assign( this->spirv.assign(reinterpret_cast<const u32*>(bytes.data()),
reinterpret_cast<const u32*>(bytes.data()), reinterpret_cast<const u32*>(bytes.data() + bytes.size()));
reinterpret_cast<const u32*>(bytes.data() + bytes.size()));
log::info("Loaded precompiled shader: " + path + " (" + log::info("Loaded precompiled shader: " + path + " (" +
std::to_string(bytes.size()) + " bytes)"); std::to_string(bytes.size()) + " bytes)");