bindUniform method
Bind a uniform slot of name
with the data
on the shader
.
Implementation
void bindUniform(gpu.Shader shader, String name, ByteData data) {
_renderPass.bindUniform(
shader.getUniformSlot(name),
_hostBuffer.emplace(data),
);
}