title: What is the correct sequence for uploading a uniform block?
body: <p>In the example page at <a href="https://www.lighthouse3d.com/tutorials/glsl-tutorial/uniform-blocks/" rel="nofollow noreferrer">https://www.lighthouse3d.com/tutorials/glsl-tutorial/uniform-blocks/</a> has this:</p>
  
  <ol>
  <li>uniformBlockBinding()</li>
  <li>bindBuffer()</li>
  <li>bufferData()</li>
  <li>bindBufferBase()</li>
  </ol>
  
  <p>But conceptually, wouldn't this be more correct?</p>
  
  <ol>
  <li>bindBuffer()</li>
  <li>bufferData()</li>
  <li>uniformBlockBinding()</li>
  <li>bindBufferBase()</li>
  </ol>
  
  <p>The idea being that uploading to a buffer (bindBuffer+bufferData) should be agnostic about what the buffer will be used for - and then, separately, uniformBlockBinding()+bindBufferBase() would be used to update those uniforms, per shader, when the relevant buffer has changed?</p>