Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@zanderso
Copy link
Member

@zanderso zanderso commented Aug 4, 2022

A recent change made redefinition of builtin functions forbidden in SkSL. To ensure that impellerc's SPIRV to SkSL translator is always generating valid SkSL, this change prefixes user defined functions with a distinctive string. Then, if the name of a user defined function is the same as an SkSL builtin in the input, the prefix added by impellerc in the output will disambiguate from the builtin.

@zanderso zanderso requested a review from chinmaygarde August 4, 2022 14:18
@zanderso zanderso changed the title [impellerc] Namespace user functions [impellerc] Namespace user functions in SkSL output Aug 4, 2022
@zanderso zanderso merged commit 9d75cd4 into flutter:main Aug 4, 2022
@zanderso zanderso deleted the sksl-namespace-user-funcs branch August 4, 2022 19:10
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 4, 2022
betrevisan pushed a commit to betrevisan/engine that referenced this pull request Aug 5, 2022
emilyabest pushed a commit to emilyabest/engine that referenced this pull request Aug 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants