bumping nzsl version; ci skip
All checks were successful
Build / build (push) Has been skipped
Test / build (push) Has been skipped

This commit is contained in:
2026-01-19 20:47:02 +01:00
parent 0f35c35fd1
commit 9fb8cbea05
5 changed files with 135 additions and 99 deletions

View File

@@ -3,25 +3,15 @@ module;
struct FragOut
{
[location(0)] value: f32,
[location(1)] value2: f32
}
fn Half(inout color: vec3[f32], out value: f32, in inValue: f32, inValue2: f32)
{
color *= 2.0;
value = 10.0;
[location(0)] color: vec4[i32]
}
[entry(frag)]
fn main() -> FragOut
{
let output: FragOut;
let mainColor = vec3[f32](1.0, 1.0, 1.0);
let inValue = 2.0;
let inValue2 = 1.0;
Half(inout mainColor, out output.value2, in inValue, inValue2);
output.value = mainColor.x;
return output;
let base: i32 = 4;
let value: i32 = base << 3;
let output: FragOut;
output.color = vec4[i32](value, value, value, value);
return output;
}