Simply
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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)");
|
||||||
|
|||||||
Reference in New Issue
Block a user