mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-15 07:27:32 +01:00
88be4c5b7c
Closes #2712
26 lines
465 B
Go
26 lines
465 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(float(x0), float(x1), float(x2), float(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(float(x0), float(x1), float(x2), float(x3)) + vec4(x4, x5, x6, x7)
|
|
}
|