ChangeAttributeBuffer method
Implementation
void ChangeAttributeBuffer(String canonical, GlBuffer buffer) {
_buffers[canonical] = buffer;
final bool instanced = canonical.codeUnitAt(0) == prefixInstancer;
final ShaderVarDesc desc = RetrieveShaderVarDesc(canonical);
final int index = _locationMap[canonical]!;
_cgl.bindVertexArray(_vao);
_cgl.enableVertexAttribArray(index, instanced ? 1 : 0);
_cgl.vertexAttribPointer(
buffer, index, desc.GetSize(), GL_FLOAT, false, 0, 0);
}