big rework towards Zig 0.15

This commit is contained in:
Kbz-8
2025-10-24 17:31:36 +02:00
parent dcc40e46b9
commit f52052da90
15 changed files with 439 additions and 443 deletions

View File

@@ -1,4 +1,4 @@
[nzsl_version("1.0")]
[nzsl_version("1.1")]
[desc("Mandelbrot shader from http://nuclear.mutantstargoat.com/articles/sdr_fract")]
[feature(primitive_externals)] //< Required since SFML doesn't use UBO
module;
@@ -53,8 +53,8 @@ fn main(input: Input) -> Output
else
u = 0.0;
let out: Output;
out.color = palette.Sample(vec2[f32](u, 0.0));
let output: Output;
output.color = palette.Sample(vec2[f32](u, 0.0));
return out;
return output;
}