public IDisposable StartRenderPass(IntPtr surfacePointer) { _imageSource.Lock(); _imageSource.SetBackBuffer(D3DResourceType.IDirect3DSurface9, surfacePointer); return new ImageUnlocker(_imageSource); }