bindUniform method

void bindUniform(
  1. UniformSlot slot,
  2. BufferView bufferView
)

Implementation

void bindUniform(UniformSlot slot, BufferView bufferView) {
  bool success = bufferView.buffer._bindAsUniform(
      this, slot, bufferView.offsetInBytes, bufferView.lengthInBytes);
  if (!success) {
    throw Exception("Failed to bind uniform");
  }
}