16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 15:49:18 +02:00
Files
maszyna/betterRenderer/mashadercompiler/src/main.cpp
2025-04-15 01:32:56 +02:00

18 lines
394 B
C++

#include <iostream>
#include "shader_compiler.hpp"
int main(int argc, const char** argv) {
if (argc != 4) {
return -1;
}
#ifdef WIN32
std::cout << "DXIL path: " << argv[1] << std::endl;
SetDllDirectoryA(argv[1]);
#endif
setlocale(LC_ALL, ".UTF8");
MaShaderCompiler compiler{};
compiler.m_project_path = argv[2];
compiler.m_output_path = argv[3];
return compiler.Run();
}