public GlTexture CreateDestinationTexture(GpuBuffer gpuBuffer) { UnsafeNativeMethods.mp_GlCalculatorHelper__CreateDestinationTexture__Rgb(mpPtr, gpuBuffer.mpPtr, out var texturePtr).Assert(); GC.KeepAlive(this); GC.KeepAlive(gpuBuffer); return(new GlTexture(texturePtr)); }
public GlTexture CreateSourceTexture(GpuBuffer gpuBuffer, int plane) { UnsafeNativeMethods.mp_GlCalculatorHelper__CreateSourceTexture__Rgb_i(mpPtr, gpuBuffer.mpPtr, plane, out var texturePtr).Assert(); GC.KeepAlive(this); GC.KeepAlive(gpuBuffer); return(new GlTexture(texturePtr)); }
public GlTexture CreateSourceTexture(GpuBuffer gpuBuffer) { return(new GlTexture(UnsafeNativeMethods.MpGlCalculatorHelperCreateSourceTextureForGpuBuffer(ptr, gpuBuffer.GetPtr()))); }