mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-27 20:28:54 +01:00
88be4c5b7c
Closes #2712
23 lines
376 B
Go
23 lines
376 B
Go
package main
|
|
|
|
func Foo1() vec4 {
|
|
x0 := 5 / 2
|
|
x1 := 5.0 / 2
|
|
x2 := 5 / 2.0
|
|
x3 := 5.0 / 2.0
|
|
return vec4(float(x0), x1, x2, x3)
|
|
}
|
|
|
|
func Foo2() vec4 {
|
|
var x0 = 5 / 2
|
|
var x1 = 5.0 / 2
|
|
var x2 = 5 / 2.0
|
|
var x3 = 5.0 / 2.0
|
|
return vec4(float(x0), x1, x2, x3)
|
|
}
|
|
|
|
func Foo3() vec4 {
|
|
var x0, x1, x2, x3 = 5 / 2, 5.0 / 2, 5 / 2.0, 5.0 / 2.0
|
|
return vec4(float(x0), x1, x2, x3)
|
|
}
|