mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Use remapped set of physical devices to create device. Closes #1062
* m_ReplayPhysicalDevices contains the physical devices enumerated on replay, which could be arbitrary and not matching etc. * m_PhysicalDevices contains the physical devices remapped in order to produce the closets match to the capture's PD in each slot, using the PDs available.
This commit is contained in:
@@ -969,7 +969,7 @@ bool WrappedVulkan::Serialise_vkCreateDevice(SerialiserType &ser, VkPhysicalDevi
|
||||
|
||||
// see above in Serialise_vkEnumeratePhysicalDevices where this is encoded
|
||||
uint32_t physicalDeviceIndex = GetPhysicalDeviceIndexFromHandle(Unwrap(physicalDevice));
|
||||
physicalDevice = m_ReplayPhysicalDevices[physicalDeviceIndex];
|
||||
physicalDevice = m_PhysicalDevices[physicalDeviceIndex];
|
||||
|
||||
// we must make any modifications locally, so the free of pointers
|
||||
// in the serialised VkDeviceCreateInfo don't double-free
|
||||
|
||||
Reference in New Issue
Block a user