updateNumber method

dynamic updateNumber(
  1. dynamic uniform
)

Implementation

updateNumber(uniform) {
  var updated = false;

  var a = this.buffer;
  var v = uniform.getValue();
  var offset = uniform.offset;

  if (a[offset] != v) {
    a[offset] = v.toDouble();
    updated = true;
  }

  return updated;
}