decode method

The decoded members when exactly one declared block matches, else null. Needs the shaders' bundle reflection loaded (see ShaderReflection.loadBundleInfo).

Implementation

List<ShaderUniformValue>? decode(CapturedDraw draw) {
  final candidates = candidatesFor(draw);
  if (candidates.length != 1) return null;
  return decodeUniformBlock(candidates.single, bytes);
}