+ Build nzsl from sources
This commit is contained in:
14
examples/mandelbrot.zig
git.filemode.normal_file
14
examples/mandelbrot.zig
git.filemode.normal_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();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user