mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
internal/shader: add tests for arrays
This commit is contained in:
parent
e6d4eac218
commit
eabc697022
13
internal/shader/testdata/array3.expected.vs
vendored
Normal file
13
internal/shader/testdata/array3.expected.vs
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
void F0(void);
|
||||
|
||||
void F0(void) {
|
||||
float l0[2];
|
||||
l0[0] = float(0);
|
||||
l0[1] = float(0);
|
||||
float l1[2];
|
||||
l1[0] = float(0);
|
||||
l1[1] = float(0);
|
||||
(l0)[0] = 1.0;
|
||||
l1[0] = l0[0];
|
||||
l1[1] = l0[1];
|
||||
}
|
7
internal/shader/testdata/array3.go
vendored
Normal file
7
internal/shader/testdata/array3.go
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
package main
|
||||
|
||||
func Foo() {
|
||||
a := [2]float{1}
|
||||
_ = a
|
||||
return
|
||||
}
|
Loading…
Reference in New Issue
Block a user