adding functions management
Some checks failed
Build / build (push) Successful in 1m57s
Test / build (push) Failing after 6m35s

This commit is contained in:
2026-01-17 13:39:45 +01:00
parent db82448ac0
commit 8b0b0a72ae
6 changed files with 132 additions and 73 deletions

View File

@@ -7,15 +7,15 @@ struct FragOut
[location(0)] color: vec4[f32]
}
fn computeColor() -> f32
fn computeColor(val: f32) -> f32
{
return 1.0;
return 2.0 * val;
}
[entry(frag)]
fn main() -> FragOut
{
let output: FragOut;
output.color = vec4[f32](computeColor(), computeColor(), computeColor(), computeColor());
output.color = vec4[f32](computeColor(1.0), computeColor(2.0), computeColor(3.0), computeColor(4.0));
return output;
}