Dev-Owl / flutter_shader_loader

Loading animation using a widget with a shader
MIT License
5 stars 0 forks source link

crash inside compile => [UmbraShader.compile] #1

Closed FMotalleb closed 2 years ago

FMotalleb commented 2 years ago

I manually converted a shadertoy glsl to Umbra compatible file and received this exception

please note

Exception:

an exception has occurred.
TranspileException (59: 6 is an unsupported Storage Class)

Stack Trace:

Example.compile (~/Documents/GitHub/flutter_shader_loader/lib/example.dart:17)
<asynchronous gap> (Unknown Source:0)
main (~/Documents/GitHub/flutter_shader_loader/lib/main.dart:9)
<asynchronous gap> (Unknown Source:0)

generated Dart file: https://gist.github.com/FMotalleb/6c0980b812f736e310435c9911db2b63

glsl file after converting: https://gist.github.com/28eee3d27beb23d05421f4afcd5445ab

shadertoy link: https://www.shadertoy.com/view/tlVGDt

Basic Flutter doctor result:

[✓] Flutter (Channel stable, 3.0.2, on Debian GNU/Linux bookworm/sid 5.17.0-3-amd64, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2021.1)
[✓] VS Code (version 1.68.0)
[✓] Connected device (2 available)
[✓] HTTP Host Availability

Flutter doctor -v: https://gist.github.com/17149807ea144be736d1773af78184f1

FMotalleb commented 2 years ago

Basic Flutter doctor result:

[✓] Flutter (Channel stable, 3.0.2, on Debian GNU/Linux bookworm/sid 5.17.0-3-amd64, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2021.1)
[✓] VS Code (version 1.68.0)
[✓] Connected device (2 available)
[✓] HTTP Host Availability

Flutter doctor -v: https://gist.github.com/17149807ea144be736d1773af78184f1

FMotalleb commented 2 years ago

based on: this twit the issue is the glsl file that I am using is referencing an unsupported method "mat2"