From 6bdf3ab65a7c1e98595ad167479b94a82184a444 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Sat, 24 Jul 2021 17:32:49 +0200 Subject: Clean up includes, scene class, simplify scene buffer access from main --- src/vk-api.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/vk-api.cpp') diff --git a/src/vk-api.cpp b/src/vk-api.cpp index 1d0c8a5..e5705fb 100644 --- a/src/vk-api.cpp +++ b/src/vk-api.cpp @@ -1,5 +1,6 @@ #include #include +#include #include "vk-api.hpp" #include "window.hpp" @@ -377,7 +378,7 @@ Pipeline vkapi::create_compute_pipeline(const char* shader_name, std::vector shader_code = get_shader_code(shader_path); + std::vector shader_code = read_file(shader_path); if (shader_code.size() == 0) { exit(1); } @@ -455,7 +456,7 @@ Pipeline vkapi::create_graphics_pipeline(const char* shader_name, std::vector shader_code = get_shader_code(shader_path); + std::vector shader_code = read_file(shader_path); if (shader_code.size() == 0) { exit(1); } -- cgit v1.3