protected override void Dispose(bool disposing) { dev.WaitIdle(); uiImage?.Dispose(); iFace.Dispose(); base.Dispose(disposing); }
void crow_thread_func() { vkvgDev = new vkvg.Device(instance.Handle, phy.Handle, dev.VkDev.Handle, presentQueue.qFamIndex, vkvg.SampleCount.Sample_4, presentQueue.index); crow = new Interface(vkvgDev, (int)swapChain.Width, (int)swapChain.Height); isRunning = true; while (isRunning) { crow.Update(); Thread.Sleep(2); } dev.WaitIdle(); crow.Dispose(); vkvgDev.Dispose(); crow = null; }