Files
SPIRV-Interpreter/example/shader.nzsl
Kbz-8 9868b34f92
All checks were successful
Build / build (push) Successful in 2m2s
Test / build (push) Successful in 5m10s
adding loops tests
2026-01-18 18:18:21 +01:00

23 lines
352 B
Plaintext

[nzsl_version("1.1")]
[feature(float64)]
module;
struct FragOut
{
[location(0)] color: vec4[f32]
}
[entry(frag)]
fn main() -> FragOut
{
let value: f32 = 1.0;
for i in 1 -> 5 {
if (i == 3)
continue;
value *= f32(i);
}
let output: FragOut;
output.color = vec4[f32](value, value, value, value);
return output;
}