shaderexp: add initial shader explorer tool (#245)

* shaderexp: first commit
* shaderexp: further improve error handling
* shaderexp: attribute ray_marching example

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
Co-authored-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
PiergiorgioZagaria 2022-04-21 13:44:02 +02:00 committed by GitHub
parent 8d574e772c
commit 8df8b043ad
Failed to generate hash of commit
9 changed files with 646 additions and 0 deletions

View file

@ -52,6 +52,20 @@ pub fn build(b: *std.build.Builder) void {
const example_run_step = b.step("run-example-" ++ example.name, "Run the example");
example_run_step.dependOn(&example_run_cmd.step);
}
const shaderexp_exe = b.addExecutable("shaderexp", "shaderexp/main.zig");
shaderexp_exe.setTarget(target);
shaderexp_exe.setBuildMode(mode);
shaderexp_exe.addPackage(pkg);
shaderexp_exe.addPackage(gpu.pkg);
shaderexp_exe.addPackage(glfw.pkg);
link(b, shaderexp_exe, options);
shaderexp_exe.install();
const shaderexp_run_cmd = shaderexp_exe.run();
shaderexp_run_cmd.step.dependOn(b.getInstallStep());
const shaderexp_run_step = b.step("run-shaderexp", "Run shaderexp");
shaderexp_run_step.dependOn(&shaderexp_run_cmd.step);
}
pub const Options = struct {