mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-24 18:02:02 +01:00
shader: Add more tests using a for-loop
This commit is contained in:
parent
5d2606b6a5
commit
e534fe8246
3
internal/shader/testdata/for4.expected.vs
vendored
3
internal/shader/testdata/for4.expected.vs
vendored
@ -8,6 +8,7 @@ void F0(in int l0, out int l1) {
|
||||
|
||||
void F1(out int l0) {
|
||||
int l1 = 0;
|
||||
int l3 = 0;
|
||||
l1 = 0;
|
||||
for (int l2 = 0; l2 < 10; l2++) {
|
||||
int l3 = 0;
|
||||
@ -16,6 +17,8 @@ void F1(out int l0) {
|
||||
l4 = l3;
|
||||
l1 = (l1) + (l4);
|
||||
}
|
||||
l3 = 0;
|
||||
l1 = (l1) + (l3);
|
||||
l0 = l1;
|
||||
return;
|
||||
}
|
||||
|
2
internal/shader/testdata/for4.go
vendored
2
internal/shader/testdata/for4.go
vendored
@ -10,5 +10,7 @@ func Foo() int {
|
||||
x := Ident(i)
|
||||
sum += x
|
||||
}
|
||||
y := 0
|
||||
sum += y
|
||||
return sum
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user