public void BindBlock(string blockName, BindingPoint bindingPoint) { if (_uniformBlockLocations.TryGetValue(blockName, out var location)) { GL.UniformBlockBinding(Handle, location, bindingPoint.Number); } }
public void SetBindingPoint(BindingPoint bindingPoint) { if (Target != BufferTarget.UniformBuffer) { throw new InvalidOperationException(); } GL.BindBufferBase(BufferRangeTarget.UniformBuffer, bindingPoint.Number, Handle); }