bundleInfoFor static method

ShaderBundleInfo? bundleInfoFor(
  1. ShaderLibrary library
)

The parsed bundle for library once loadBundleInfo has completed, else null.

Implementation

static ShaderBundleInfo? bundleInfoFor(gpu.ShaderLibrary library) {
  final cached = _bundles[library];
  if (cached == null || cached.isStale(library)) return null;
  return cached.info;
}