mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 19:28:57 +01:00
c36d2165e6
Fixes #1190
26 lines
409 B
Go
26 lines
409 B
Go
package main
|
|
|
|
func Foo1() vec4 {
|
|
x0 := +(+5)
|
|
x1 := +(-5)
|
|
x2 := -(+5)
|
|
x3 := -(-5)
|
|
x4 := +(+5.0)
|
|
x5 := +(-5.0)
|
|
x6 := -(+5.0)
|
|
x7 := -(-5.0)
|
|
return vec4(x0, x1, x2, x3) + vec4(x4, x5, x6, x7)
|
|
}
|
|
|
|
func Foo2() vec4 {
|
|
var x0 = +(+5)
|
|
var x1 = +(-5)
|
|
var x2 = -(+5)
|
|
var x3 = -(-5)
|
|
var x4 = +(+5.0)
|
|
var x5 = +(-5.0)
|
|
var x6 = -(+5.0)
|
|
var x7 = -(-5.0)
|
|
return vec4(x0, x1, x2, x3) + vec4(x4, x5, x6, x7)
|
|
}
|