+ Build nzsl from sources

This commit is contained in:
REMqb
2024-04-30 01:47:30 +02:00
parent 57ae2d9c2f
commit 97c82cd688
10 changed files with 600 additions and 0 deletions

14
examples/mandelbrot.zig git.filemode.normal_file
View File

@@ -0,0 +1,14 @@
const std= @import("std");
const nzsl = @import("nzslzig");
pub fn main() !void {
const mandelbrotModule = try nzsl.parseFromFile("./mandelbrot.nzsl");
defer mandelbrotModule.release();
const glslWriter = nzsl.GlslWriter.create();
defer glslWriter.release();
const output = try glslWriter.generate(mandelbrotModule);
defer output.release();
}