var viewport = new VkViewport { x = 0.0f, y = MainWindow.Extent.height, width = MainWindow.Extent.width, height = -MainWindow.Extent.height, minDepth = 0.0f, maxDepth = 1.0f }; vkCmdSetViewport(commandBuffer, viewport);