internal void CreateWindowSurface(Window wnd) { //create window surface IntPtr surfaceHandle; Result result = (Result)Vulkan.CreateWindowSurface( mInstance.GetInstance().Handle, wnd, IntPtr.Zero, out surfaceHandle); if (result != Result.Success) { ErrorSpew("Window surface creation failed: " + result.ToString()); return; } AllocationCallbacks?superAnnoyingParameter = null; mSurface = new SurfaceKhr(mInstance.GetInstance(), ref superAnnoyingParameter, surfaceHandle.ToInt64()); }