Fix tests

This commit is contained in:
luboslenco
2025-04-01 11:08:07 +02:00
parent 7b4766442a
commit 04e3c9d0bb
15 changed files with 152 additions and 132 deletions
+24
View File
@@ -0,0 +1,24 @@
struct vert_in {
pos: float3;
}
struct vert_out {
pos: float4;
}
fun test_vert(input: vert_in): vert_out {
var output: vert_out;
output.pos = float4(input.pos, 1.0);
return output;
}
fun test_frag(input: vert_out): float4 {
return float4(1.0, 0.0, 0.0, 1.0);
}
#[pipe]
struct pipe {
vertex = test_vert;
fragment = test_frag;
}