Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FragmentShader] Create package for transpiling GLSL into Flutter-ready SPIR-V code #93498

Closed
clocksmith opened this issue Nov 11, 2021 · 5 comments
Assignees
Labels
engine flutter/engine repository. See also e: labels. P3 Issues that are less important to the Flutter project

Comments

@clocksmith
Copy link
Contributor

No description provided.

@clocksmith clocksmith added P3 Issues that are less important to the Flutter project e: spirv labels Nov 11, 2021
@clocksmith clocksmith self-assigned this Nov 11, 2021
@ueman
Copy link
Contributor

ueman commented Jan 25, 2022

How is the progress on this? As far as I can tell https://github.com/flutter/engine/tree/main/lib/spirv seems to be already functional, but it isn't exported by dart:ui nor is it available on pub.dev.

@danagbemava-nc danagbemava-nc added the engine flutter/engine repository. See also e: labels. label Jan 26, 2022
@zanderso
Copy link
Member

This has been superseded by #102674, which added a mechanism in the Flutter CLI for compiling GLSL assets to SPIR-V.

Engine - SPIR-V API via FragmentShader automation moved this from In Progress to Done May 30, 2022
@creativecreatorormaybenot
Copy link
Contributor

@zanderso that sounds awesome! How can we use it?

@zanderso
Copy link
Member

@creativecreatorormaybenot Sorry this is in development, and not well documented yet. But if you put a GLSL shader in a file ending with .frag in the assets list in pubspec.yaml, when the app is built, that file will be translated to SPIR-V, and be available as an asset that you can then pass to the FragmentProgram API. See the treatment of ink_sparkle.frag in the linked PR.

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
engine flutter/engine repository. See also e: labels. P3 Issues that are less important to the Flutter project
Projects
No open projects
Development

No branches or pull requests

6 participants