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

[Impeller] Add ability to unregister shaders#37229

Merged
bdero merged 1 commit intoflutter:mainfrom
bdero:bdero/unregister-shaders
Nov 2, 2022
Merged

[Impeller] Add ability to unregister shaders#37229
bdero merged 1 commit intoflutter:mainfrom
bdero:bdero/unregister-shaders

Conversation

@bdero
Copy link
Contributor

@bdero bdero commented Nov 2, 2022

  • I haven't comprehensively verified that this doesn't leak GPU resources.
  • For Metal, since GetFunction searches through the libraries to find a matching function if one doesn't exist in the function map, I do the same and delete the library if found. I think we should tighten this up at some point by either back shader keys to specific libraries, or perhaps separate RegisterFunction libraries into their own list distinct from those passed in through the ctor.

@bdero bdero self-assigned this Nov 2, 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