Runtime ShaderCompilation with Include Features

This commit is contained in:
Metehan Tuncbilek
2024-07-15 17:31:02 +03:00
parent 5aa84db3e2
commit 2b36969a84
8 changed files with 180 additions and 12 deletions

View File

@@ -17,10 +17,17 @@
#include <vector>
#include <string>
#include "Shader/ShaderCompiler.hpp"
using namespace OpenVulkano;
int main(int argc, char** argv)
{
// TEST CASE
if (false)
ShaderCompiler::CompileGLSLToSpirv(R"(D:\Projects\OpenVulkano\openVulkanoCpp\Shader\grid.vert)", "", "main",
shaderc_vertex_shader, false);
std::vector<std::string> examples = {
"Cubes Example App",
"Moving Cube Example App",