23 lines
352 B
Plaintext
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;
|
|
}
|