This website requires JavaScript.
Explore
Help
Sign In
mth
/
ebiten
Watch
1
Star
0
Fork
0
You've already forked ebiten
mirror of
https://github.com/hajimehoshi/ebiten.git
synced
2024-11-15 07:27:32 +01:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
adacd71167
ebiten
/
internal
/
shader
/
testdata
/
if_init.go
10 lines
107 B
Go
Raw
Normal View
History
Unescape
Escape
shader: Treat if's 'init' part correctly Updates #1230
2020-07-04 20:29:34 +02:00
package
main
shader: Bug fix: Wrong out-params when returning is in a block
2020-07-04 21:30:14 +02:00
func
Foo
(
x
vec2
)
vec2
{
shader: Treat if's 'init' part correctly Updates #1230
2020-07-04 20:29:34 +02:00
v
:=
vec2
(
0
)
if
v
:=
vec2
(
1
)
;
v
.
x
==
1
{
return
v
}
return
v
}
Reference in New Issue
Copy Permalink