adding branching and conversions
All checks were successful
Build / build (push) Successful in 1m53s
Test / build (push) Successful in 5m16s

This commit is contained in:
2026-01-16 23:41:11 +01:00
parent 5466cbcced
commit 076abf5d6a
11 changed files with 609 additions and 183 deletions

View File

@@ -41,9 +41,13 @@ pub fn build(b: *std.Build) void {
const run_example = b.addRunArtifact(example_exe);
run_example.step.dependOn(&example_install.step);
const run_example_step = b.step("example", "Run the basic example");
const run_example_step = b.step("example", "Run the example");
run_example_step.dependOn(&run_example.step);
const compile_shader_cmd = b.addSystemCommand(&[_][]const u8{ "nzslc", "example/shader.nzsl", "--compile=spv,spv-dis", "-o", "example" });
const compile_shader_step = b.step("example-shader", "Compiles example's shader");
compile_shader_step.dependOn(&compile_shader_cmd.step);
// Zig unit tests setup
const nzsl = b.lazyDependency("NZSL", .{}) orelse return;