Skip to content

Commit

Permalink
wip: add GpuBuffer constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Oct 24, 2020
1 parent 79b3e83 commit 718ef61
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Assets/MediaPipe/SDK/Scripts/Gpu/GpuBuffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ public class GpuBuffer : ResourceHandle {

public GpuBuffer(GpuBufferPtr ptr, bool isOwner = true) : base(ptr, isOwner) {}

// TODO: investigate glTextureBuffer's state after initialization
public GpuBuffer(GlTextureBuffer glTextureBuffer) : base(UnsafeNativeMethods.MpGpuBufferCreate(glTextureBuffer.GetPtr())) {}

protected override void Dispose(bool disposing) {
if (_disposed) return;

Expand Down

0 comments on commit 718ef61

Please sign in to comment.