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

            GL.BindBufferBase(BufferRangeTarget.UniformBuffer, bindingPoint.Number, Handle);
        }