bindUniform method
- UniformSlot slot,
- 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");
}
}