2020-06-21 14:47:23 +02:00
|
|
|
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)
|
2023-07-27 17:13:40 +02:00
|
|
|
return vec4(float(x0), float(x1), float(x2), float(x3)) + vec4(x4, x5, x6, x7)
|
2020-06-21 14:47:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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)
|
2023-07-27 17:13:40 +02:00
|
|
|
return vec4(float(x0), float(x1), float(x2), float(x3)) + vec4(x4, x5, x6, x7)
|
2020-06-21 14:47:23 +02:00
|
|
|
}
|