diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2021-07-24 17:32:49 +0200 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2021-07-24 17:32:49 +0200 |
| commit | 6bdf3ab65a7c1e98595ad167479b94a82184a444 (patch) | |
| tree | de1113e28d78ae5325aa9417b059ba9963407e26 /src/vk-api.cpp | |
| parent | 44e63fdbd30e9d43a02ab894c548467039397aa0 (diff) | |
Clean up includes, scene class, simplify scene buffer access from main
Diffstat (limited to 'src/vk-api.cpp')
| -rw-r--r-- | src/vk-api.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 <cassert> #include <memory> +#include <iostream> #include "vk-api.hpp" #include "window.hpp" @@ -377,7 +378,7 @@ Pipeline vkapi::create_compute_pipeline(const char* shader_name, std::vector<VkD char shader_path[256] = {}; sprintf(shader_path, "%s%s%s", "./shaders/", shader_name, ".comp.spv"); - std::vector<uint8_t> shader_code = get_shader_code(shader_path); + std::vector<uint8_t> 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<Vk char shader_path[256] = {}; sprintf(shader_path, "%s%s%s%s", "./shaders/", shader_name, shader_stage_extension(stage_flag), ".spv"); - std::vector<uint8_t> shader_code = get_shader_code(shader_path); + std::vector<uint8_t> shader_code = read_file(shader_path); if (shader_code.size() == 0) { exit(1); } |
