Skip to content

Document writing custom shaders on the website #107929

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

Closed
zanderso opened this issue Jul 19, 2022 · 3 comments · Fixed by flutter/website#7902 or flutter/engine#38273
Closed

Document writing custom shaders on the website #107929

zanderso opened this issue Jul 19, 2022 · 3 comments · Fixed by flutter/website#7902 or flutter/engine#38273
Assignees
Labels
c: new feature Nothing broken; request for a new capability engine flutter/engine repository. See also e: labels. P3 Issues that are less important to the Flutter project

Comments

@zanderso
Copy link
Member

When the APIs are stable, we should add documentation or a tutorial to the website on writing custom shaders.

In particular:

  • What input formats are supported
  • How to add one to an app
  • How to obtain a FragmentProgram
  • How to use a FragmentProgram to obtain a Shader
  • How to use that shader in a scene/widget
  • Best practices for structuring this code efficiently
@zanderso zanderso added c: new feature Nothing broken; request for a new capability engine flutter/engine repository. See also e: labels. documentation P3 Issues that are less important to the Flutter project labels Jul 19, 2022
@jonahwilliams
Copy link
Member

From #108307 : also include information on premultiplied outputs, conversion helpers, et cetera

@jonahwilliams
Copy link
Member

We also need to update https://master-api.flutter.dev/flutter/dart-ui/FragmentProgram-class.html to point to this documentation. Since its not updated yet this is a likely CP candidate to update the link

@github-actions
Copy link

github-actions bot commented Mar 5, 2023

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 Mar 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c: new feature Nothing broken; request for a new capability engine flutter/engine repository. See also e: labels. P3 Issues that are less important to the Flutter project
Projects
None yet
2 participants