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/draw_state.cpp | |
| parent | fa754692ec72ad6f40e095421ed571b5517bfa1d (diff) | |
| download | usermoji-0ff01aaf3046a0b7c21391efaa239658af6c264e.tar.xz | |
layers: Allow calling down chain with vkEnumerateDeviceExtensionProperties
Diffstat (limited to 'layers/draw_state.cpp')
| -rwxr-xr-x | layers/draw_state.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp index 17bc4217..341f95ed 100755 --- a/layers/draw_state.cpp +++ b/layers/draw_state.cpp @@ -1709,9 +1709,20 @@ VK_LAYER_EXPORT VkResult VKAPI vkEnumerateDeviceExtensionProperties( uint32_t* pCount, VkExtensionProperties* pProperties) { - /* Mem tracker does not have any physical device extensions */ - return util_GetExtensionProperties(ARRAY_SIZE(ds_device_extensions), ds_device_extensions, - pCount, pProperties); + 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(ARRAY_SIZE(ds_device_extensions), + ds_device_extensions, + pCount, pProperties); + } } VK_LAYER_EXPORT VkResult VKAPI vkEnumerateDeviceLayerProperties( |
