hajimehoshi / ebiten

Ebitengine - A dead simple 2D game engine for Go
https://ebitengine.org
Apache License 2.0
11.1k stars 665 forks source link

internal/shader: support `switch` statement for Kage #3142

Open hajimehoshi opened 1 month ago

hajimehoshi commented 1 month ago

Operating System

What feature would you like to be added?

Go has switch statements, so why not?

The tricky thing would be fallthrough statement and default case in a middle of switch.

Why is this needed?

No response