bindUniform method

void bindUniform(
  1. UniformSlot slot,
  2. ByteBuffer buffer
)

Bind a uniform slot to the buffer.

Implementation

void bindUniform(gpu.UniformSlot slot, ByteBuffer buffer) {
  _renderPass.bindUniform(slot, _hostBuffer.emplace(buffer.asByteData()));
}