ebiten/internal/shader/testdata/number_unary.go

26 lines
465 B
Go
Raw Normal View History

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)
}