mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
parent
de05ede27e
commit
d3b72d4ef9
12
internal/shader/testdata/issue2011.expected.vs
vendored
Normal file
12
internal/shader/testdata/issue2011.expected.vs
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
void F0(out float l0);
|
||||
void F1(out int l0);
|
||||
|
||||
void F0(out float l0) {
|
||||
l0 = 1.0;
|
||||
return;
|
||||
}
|
||||
|
||||
void F1(out int l0) {
|
||||
l0 = 2;
|
||||
return;
|
||||
}
|
13
internal/shader/testdata/issue2011.go
vendored
Normal file
13
internal/shader/testdata/issue2011.go
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
package main
|
||||
|
||||
const F = float(1)
|
||||
|
||||
func Foo() float {
|
||||
return F
|
||||
}
|
||||
|
||||
const I = int(2.0)
|
||||
|
||||
func Bar() int {
|
||||
return I
|
||||
}
|
Loading…
Reference in New Issue
Block a user