Add compute shader support
This commit is contained in:
8
main.cpp
8
main.cpp
@@ -1,6 +1,3 @@
|
||||
// main.cpp (updated)
|
||||
|
||||
// Standard
|
||||
#include <filesystem>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
@@ -8,16 +5,12 @@
|
||||
#include <cctype>
|
||||
#include <chrono>
|
||||
#include <stdexcept>
|
||||
#include <cstdlib>
|
||||
|
||||
// Manifest
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
// Logging
|
||||
#include <spdlog/spdlog.h>
|
||||
#include <spdlog/sinks/stdout_color_sinks.h>
|
||||
|
||||
// Your shader compiler header
|
||||
#include "ShaderCompiler.h"
|
||||
|
||||
namespace fs = std::filesystem;
|
||||
@@ -122,6 +115,7 @@ int main(int argc, char** argv) {
|
||||
if (args.clean && fs::exists(args.output)) {
|
||||
spdlog::info("Cleaning output dir: {}", args.output.string());
|
||||
fs::remove_all(args.output);
|
||||
return 0;
|
||||
}
|
||||
fs::create_directories(args.output);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user