infoFor static method

ShaderInfo? infoFor(
  1. Shader shader
)

Reflection for shader, or null before its library's bundle info loaded.

Implementation

static ShaderInfo? infoFor(gpu.Shader shader) {
  final identity = _identities[shader];
  if (identity == null) return null;
  return bundleInfoFor(identity.library)?[identity.name];
}