ebiten/internal/shader/testdata/var_multiple.go

16 lines
232 B
Go
Raw Normal View History

2020-06-08 04:18:27 +02:00
package main
func Foo(foo vec2) vec4 {
var bar1, bar2 vec2 = foo, foo
return vec4(bar1, bar2)
}
2020-06-19 17:20:17 +02:00
func Foo2(foo vec2) vec4 {
var bar1, bar2 = Bar()
return vec4(bar1, bar2)
}
func Bar() (vec2, vec2) {
return vec2(0), vec2(0)
}