Skip to content

Allow for shader loading at runtime #169442

@matthew-carroll

Description

@matthew-carroll

Use case

I'm building a desktop app with Flutter, whose purpose is to let developers write, edit, and explore shaders for use in Flutter apps.

Flutter currently won't let me load shaders from anywhere but assets, which prevents any runtime shader work.

Proposal

This app requires that shader source code be compiled and loaded at runtime. It doesn't necessarily require that Flutter provide full support for shader compilation at runtime, assuming I'm able to include some other package that does compilation. However, this use-case does require that I be able to somehow load a shader at runtime that comes from somewhere other than assets.

There was a related issue to this that was closed: #124759

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Fluttercustomer: crowdAffects or could affect many people, though not necessarily a specific customer.engineflutter/engine related. See also e: labels.r: duplicateIssue is closed as a duplicate of an existing issueteam-engineOwned by Engine team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions