Skip to content
Snippets Groups Projects
Verified Commit 28fb98d1 authored by Tobias Frisch's avatar Tobias Frisch
Browse files

[#73] Added todo mark and fixed a warning

parent b0a74090
No related branches found
No related tags found
1 merge request!60Resolve "Runtime shader compilation"
Pipeline #25638 failed
...@@ -184,7 +184,9 @@ namespace vkcv::shader { ...@@ -184,7 +184,9 @@ namespace vkcv::shader {
return false; return false;
} }
std::streamsize fileSize = static_cast<std::streamsize>(spirv.size()) * sizeof(uint32_t); const auto fileSize = static_cast<std::streamsize>(
sizeof(uint32_t) * spirv.size()
);
file.seekp(0); file.seekp(0);
file.write(reinterpret_cast<const char*>(spirv.data()), fileSize); file.write(reinterpret_cast<const char*>(spirv.data()), fileSize);
...@@ -256,6 +258,10 @@ namespace vkcv::shader { ...@@ -256,6 +258,10 @@ namespace vkcv::shader {
} }
std::filesystem::remove(tmp_path); std::filesystem::remove(tmp_path);
if (update) {
// TODO: Shader hot compilation during runtime
}
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment