Files
SPIRV-Interpreter/example/shader.nzsl
Kbz-8 14e802709c
All checks were successful
Test / build (push) Successful in 46s
Build / build (push) Successful in 58s
adding OpFMul
2026-01-12 16:59:53 +01:00

18 lines
273 B
Plaintext

[nzsl_version("1.1")]
module;
struct FragOut
{
[location(0)] color: vec4[f32]
}
[entry(frag)]
fn main() -> FragOut
{
let ratio = vec4[f32](2.0, 2.0, 8.0, 0.25);
let output: FragOut;
output.color = vec4[f32](4.0, 3.0, 2.0, 1.0) * ratio;
return output;
}