loadShader static method

Future<FragmentProgram> loadShader(
  1. String name
)

Implementation

static Future<FragmentProgram> loadShader(String name) async {
  try {
    return await FragmentProgram.fromAsset(assetKey(name));
  } catch (e) {
    error("Failed to load shader: $name");
    error(e);
    return Future.error(e);
  }
}