diff options
| author | Jon Ashburn <jon@lunarg.com> | 2015-11-02 17:37:20 -0700 |
|---|---|---|
| committer | Jon Ashburn <jon@lunarg.com> | 2015-11-03 14:51:46 -0700 |
| commit | 0ff01aaf3046a0b7c21391efaa239658af6c264e (patch) | |
| tree | 103ba906c90bb47f465403d32d9ecf99b13343e6 /layers/image.cpp | |
| parent | fa754692ec72ad6f40e095421ed571b5517bfa1d (diff) | |
| download | usermoji-0ff01aaf3046a0b7c21391efaa239658af6c264e.tar.xz | |
layers: Allow calling down chain with vkEnumerateDeviceExtensionProperties
Diffstat (limited to 'layers/image.cpp')
| -rw-r--r-- | layers/image.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/layers/image.cpp b/layers/image.cpp index c84fa9c1..b210d640 100644 --- a/layers/image.cpp +++ b/layers/image.cpp @@ -204,8 +204,19 @@ VK_LAYER_EXPORT VkResult VKAPI vkEnumerateDeviceExtensionProperties( uint32_t* pCount, VkExtensionProperties* pProperties) { - // ParamChecker does not have any physical device extensions - return util_GetExtensionProperties(0, NULL, pCount, pProperties); + // Image does not have any physical device extensions + if (pLayerName == NULL) { + dispatch_key key = get_dispatch_key(physicalDevice); + layer_data *my_data = get_my_data_ptr(key, layer_data_map); + VkLayerInstanceDispatchTable *pTable = my_data->instance_dispatch_table; + return pTable->EnumerateDeviceExtensionProperties( + physicalDevice, + NULL, + pCount, + pProperties); + } else { + return util_GetExtensionProperties(0, NULL, pCount, pProperties); + } } VK_LAYER_EXPORT VkResult VKAPI vkEnumerateDeviceLayerProperties( |
