preload static method
Preloads one or more shaders into the cache.
Call this during app initialization to avoid frame drops when an effect is first displayed.
await GKShaderLoader.preload(['glitch', 'aurora', 'dissolve']);
Implementation
static Future<void> preload(List<String> shaderNames) async {
await Future.wait(shaderNames.map(load));
}