private GlUniformBlockBinding(int bindingPoint, string key) { BindingPoint = bindingPoint; Key = key; BindingsByBlockName[key] = BindingsByBindingPoint[bindingPoint] = this; BufferRef = new GlBufferRef(); }
/// <summary> /// Initializes a new instance of the <see cref="GlBufferRef"/> class, /// that refers to the same buffer as a given existing reference. /// </summary> /// <param name="bufferRef">The existing buffer reference.</param> public GlBufferRef(GlBufferRef bufferRef) { this.buffer = bufferRef.buffer; this.buffer.Use(); }