mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-08 13:21:45 +00:00
Make sure BDA capture/replay bit is enabled
This commit is contained in:
2 files changed
+16
-1
No files matched your search
@@ -2995,7 +2995,19 @@ bool WrappedVulkan::Serialise_vkCreateDevice(SerialiserType &ser, VkPhysicalDevi
|
||||
(VkPhysicalDeviceBufferDeviceAddressFeaturesEXT *)FindNextStruct(
|
||||
&createInfo, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES_EXT);
|
||||
|
||||
if(!existingKHR && !existingEXT)
|
||||
if(existingKHR)
|
||||
{
|
||||
if(existingKHR->bufferDeviceAddress)
|
||||
existingKHR->bufferDeviceAddressCaptureReplay = VK_TRUE;
|
||||
existingKHR->bufferDeviceAddress = VK_TRUE;
|
||||
}
|
||||
else if(existingEXT)
|
||||
{
|
||||
if(existingEXT->bufferDeviceAddress)
|
||||
existingEXT->bufferDeviceAddressCaptureReplay = VK_TRUE;
|
||||
existingEXT->bufferDeviceAddress = VK_TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
// don't add a new VkPhysicalDeviceVulkan12Features to the pNext chain because if we do
|
||||
// we have to remove any components etc. Instead just add the individual
|
||||
|
||||
@@ -135,6 +135,9 @@ void main()
|
||||
if(!bufaddrFeatures.bufferDeviceAddress)
|
||||
Avail = "Buffer device address feature 'bufferDeviceAddress' not available";
|
||||
|
||||
bufaddrFeatures.bufferDeviceAddressCaptureReplay = 0;
|
||||
bufaddrFeatures.bufferDeviceAddressMultiDevice = 0;
|
||||
|
||||
devInfoNext = &bufaddrFeatures;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user