ShaderSet typedef

ShaderSet = ({String root, Map<String, String> sources, Map<String, ({String file, bool fragment})> stages})

Every shader file, keyed the way an #include <…> spells it, beside the manifest's entry points in the order it lists them, and the shaders/ directory both were read from — which impellerc needs as an include root, and which has to be this one rather than one found again, or two sections of one bundle could be built against two trees.

Implementation

typedef ShaderSet = ({
  String root,
  Map<String, String> sources,
  Map<String, ({String file, bool fragment})> stages,
});