Handle EnumerateDeviceExtensionProperties() calls for android loader

This commit is contained in:
baldurk
2016-08-02 23:40:29 +02:00
parent 1474f735d1
commit e1441f5767
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -704,8 +704,8 @@ public:
void SetDrawcallCB(DrawcallCallback *cb) { m_DrawcallCallback = cb; }
VkResult FilterDeviceExtensionProperties(VkPhysicalDevice physDev, uint32_t *pPropertyCount,
VkExtensionProperties *pProperties);
VkResult GetProvidedExtensionProperties(uint32_t *pPropertyCount,
VkExtensionProperties *pProperties);
static VkResult GetProvidedExtensionProperties(uint32_t *pPropertyCount,
VkExtensionProperties *pProperties);
// Device initialization
+3 -3
View File
@@ -233,13 +233,13 @@ VK_LAYER_EXPORT VkResult VKAPI_CALL VK_LAYER_RENDERDOC_CaptureEnumerateDeviceExt
VkPhysicalDevice physicalDevice, const char *pLayerName, uint32_t *pPropertyCount,
VkExtensionProperties *pProperties)
{
// if pLayerName is NULL we're calling down through the layer chain to the ICD.
// if pLayerName is NULL or not ours we're calling down through the layer chain to the ICD.
// This is our chance to filter out any reported extensions that we don't support
if(pLayerName == NULL)
if(physicalDevice != NULL && (pLayerName == NULL || strcmp(pLayerName, RENDERDOC_LAYER_NAME)))
return CoreDisp(physicalDevice)
->FilterDeviceExtensionProperties(physicalDevice, pPropertyCount, pProperties);
return CoreDisp(physicalDevice)->GetProvidedExtensionProperties(pPropertyCount, pProperties);
return WrappedVulkan::GetProvidedExtensionProperties(pPropertyCount, pProperties);
}
#undef HookInit