2020-06-21 13:25:46 +02:00
|
|
|
package main
|
|
|
|
|
|
|
|
func Foo1() vec4 {
|
|
|
|
x0 := 5 / 2
|
|
|
|
x1 := 5.0 / 2
|
|
|
|
x2 := 5 / 2.0
|
|
|
|
x3 := 5.0 / 2.0
|
2023-07-27 17:13:40 +02:00
|
|
|
return vec4(float(x0), x1, x2, x3)
|
2020-06-21 13:25:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func Foo2() vec4 {
|
|
|
|
var x0 = 5 / 2
|
|
|
|
var x1 = 5.0 / 2
|
|
|
|
var x2 = 5 / 2.0
|
|
|
|
var x3 = 5.0 / 2.0
|
2023-07-27 17:13:40 +02:00
|
|
|
return vec4(float(x0), x1, x2, x3)
|
2020-06-21 13:25:46 +02:00
|
|
|
}
|
2023-07-23 16:40:22 +02:00
|
|
|
|
|
|
|
func Foo3() vec4 {
|
|
|
|
var x0, x1, x2, x3 = 5 / 2, 5.0 / 2, 5 / 2.0, 5.0 / 2.0
|
2023-07-27 17:13:40 +02:00
|
|
|
return vec4(float(x0), x1, x2, x3)
|
2023-07-23 16:40:22 +02:00
|
|
|
}
|