mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-11 20:40:30 +00:00
Nominally check vkGetPhysicalDeviceSurfaceSupportKHR
This commit is contained in:
@@ -559,6 +559,7 @@ public:
|
||||
|
||||
// return the pre-selected device and queue
|
||||
VkDevice GetDev() { RDCASSERT(m_Device != VK_NULL_HANDLE); return m_Device; }
|
||||
uint32_t GetQFamilyIdx() { return m_QueueFamilyIdx; }
|
||||
VkQueue GetQ() { RDCASSERT(m_Device != VK_NULL_HANDLE); return m_Queue; }
|
||||
VkInstance GetInstance() { RDCASSERT(m_Instance != VK_NULL_HANDLE); return m_Instance; }
|
||||
VkPhysicalDevice GetPhysDev() { RDCASSERT(m_PhysicalDevice != VK_NULL_HANDLE); return m_PhysicalDevice; }
|
||||
|
||||
@@ -261,6 +261,12 @@ void VulkanReplay::OutputWindow::Create(WrappedVulkan *driver, VkDevice device,
|
||||
}
|
||||
}
|
||||
|
||||
VkBool32 supported = false;
|
||||
ObjDisp(inst)->GetPhysicalDeviceSurfaceSupportKHR(Unwrap(phys), driver->GetQFamilyIdx(), Unwrap(surface), &supported);
|
||||
|
||||
// can't really recover from this anyway
|
||||
RDCASSERT(supported);
|
||||
|
||||
VkSwapchainCreateInfoKHR swapInfo = {
|
||||
VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR, NULL,
|
||||
0, Unwrap(surface),
|
||||
|
||||
Reference in New Issue
Block a user