Crafter.Build/tests/Shader/inner/project.cpp

21 lines
611 B
C++
Raw Normal View History

2026-04-29 03:52:08 +02:00
import std;
import Crafter.Build;
namespace fs = std::filesystem;
using namespace Crafter;
extern "C" Configuration CrafterBuildProject(std::span<const std::string_view>) {
Configuration cfg;
cfg.path = "./";
cfg.name = "shader-test";
cfg.outputName = "shader-test";
cfg.target = "x86_64-pc-linux-gnu";
cfg.type = ConfigurationType::Executable;
std::array<fs::path, 0> ifaces = {};
std::array<fs::path, 1> impls = { "main" };
cfg.GetInterfacesAndImplementations(ifaces, impls);
cfg.shaders.emplace_back("triangle.glsl", "main", ShaderType::Vertex);
return cfg;
}