public GpuBuffer(GlTextureBuffer glTextureBuffer) : base() { UnsafeNativeMethods.mp_GpuBuffer__PSgtb(glTextureBuffer.sharedPtr, out var ptr).Assert(); glTextureBuffer.Dispose(); // respect move semantics this.ptr = ptr; }
public GpuBuffer(GlTextureBuffer glTextureBuffer) : base() { UnsafeNativeMethods.mp_GpuBuffer__PSgtb(glTextureBuffer.sharedPtr, out var ptr).Assert(); this.ptr = ptr; }