Mark Lobodzinski | 6eda00a | 2016-02-02 15:55:36 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2015-2016 The Khronos Group Inc. |
| 2 | * Copyright (c) 2015-2016 Valve Corporation |
| 3 | * Copyright (c) 2015-2016 LunarG, Inc. |
Michael Lentine | 0a369f6 | 2016-02-03 16:51:46 -0600 | [diff] [blame] | 4 | * Copyright (c) 2015-2016 Google, Inc. |
Jon Ashburn | 9eed289 | 2015-06-01 10:02:09 -0600 | [diff] [blame] | 5 | * |
Jon Ashburn | 3ebf125 | 2016-04-19 11:30:31 -0600 | [diff] [blame] | 6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | * you may not use this file except in compliance with the License. |
| 8 | * You may obtain a copy of the License at |
Jon Ashburn | 9eed289 | 2015-06-01 10:02:09 -0600 | [diff] [blame] | 9 | * |
Jon Ashburn | 3ebf125 | 2016-04-19 11:30:31 -0600 | [diff] [blame] | 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
Jon Ashburn | 9eed289 | 2015-06-01 10:02:09 -0600 | [diff] [blame] | 11 | * |
Jon Ashburn | 3ebf125 | 2016-04-19 11:30:31 -0600 | [diff] [blame] | 12 | * Unless required by applicable law or agreed to in writing, software |
| 13 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | * See the License for the specific language governing permissions and |
| 16 | * limitations under the License. |
Courtney Goeltzenleuchter | 0555952 | 2015-10-30 11:14:30 -0600 | [diff] [blame] | 17 | * |
| 18 | * Author: Tobin Ehlis <tobin@lunarg.com> |
Jon Ashburn | 9eed289 | 2015-06-01 10:02:09 -0600 | [diff] [blame] | 19 | */ |
| 20 | #include <assert.h> |
| 21 | #include <unordered_map> |
| 22 | #include "vk_dispatch_table_helper.h" |
David Pinedo | 9316d3b | 2015-11-06 12:54:48 -0700 | [diff] [blame] | 23 | #include "vulkan/vk_layer.h" |
Tobin Ehlis | a0cb02e | 2015-07-03 10:15:26 -0600 | [diff] [blame] | 24 | #include "vk_layer_table.h" |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 25 | static device_table_map tableMap; |
| 26 | static instance_table_map tableInstanceMap; |
Jon Ashburn | 9eed289 | 2015-06-01 10:02:09 -0600 | [diff] [blame] | 27 | |
Jon Ashburn | 94f36d9 | 2015-06-15 09:30:12 -0600 | [diff] [blame] | 28 | #define DISPATCH_MAP_DEBUG 0 |
Jon Ashburn | 9eed289 | 2015-06-01 10:02:09 -0600 | [diff] [blame] | 29 | |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 30 | // Map lookup must be thread safe |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 31 | VkLayerDispatchTable *device_dispatch_table(void *object) { |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 32 | dispatch_key key = get_dispatch_key(object); |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 33 | device_table_map::const_iterator it = tableMap.find((void *)key); |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 34 | assert(it != tableMap.end() && "Not able to find device dispatch entry"); |
| 35 | return it->second; |
| 36 | } |
| 37 | |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 38 | VkLayerInstanceDispatchTable *instance_dispatch_table(void *object) { |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 39 | dispatch_key key = get_dispatch_key(object); |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 40 | instance_table_map::const_iterator it = tableInstanceMap.find((void *)key); |
Courtney Goeltzenleuchter | e3d3f5d | 2015-06-13 21:48:26 -0600 | [diff] [blame] | 41 | #if DISPATCH_MAP_DEBUG |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 42 | if (it != tableInstanceMap.end()) { |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 43 | fprintf(stderr, "instance_dispatch_table: map: %p, object: %p, key: %p, table: %p\n", &tableInstanceMap, object, key, |
| 44 | it->second); |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 45 | } else { |
Mark Lobodzinski | 1ed594e | 2016-02-03 09:57:14 -0700 | [diff] [blame] | 46 | fprintf(stderr, "instance_dispatch_table: map: %p, object: %p, key: %p, table: UNKNOWN\n", &tableInstanceMap, object, key); |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 47 | } |
Courtney Goeltzenleuchter | e3d3f5d | 2015-06-13 21:48:26 -0600 | [diff] [blame] | 48 | #endif |
Mark Lobodzinski | 1ed594e | 2016-02-03 09:57:14 -0700 | [diff] [blame] | 49 | assert(it != tableInstanceMap.end() && "Not able to find instance dispatch entry"); |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 50 | return it->second; |
| 51 | } |
| 52 | |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 53 | void destroy_dispatch_table(device_table_map &map, dispatch_key key) { |
Courtney Goeltzenleuchter | e3d3f5d | 2015-06-13 21:48:26 -0600 | [diff] [blame] | 54 | #if DISPATCH_MAP_DEBUG |
Michael Lentine | 0a369f6 | 2016-02-03 16:51:46 -0600 | [diff] [blame] | 55 | device_table_map::const_iterator it = map.find((void *)key); |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 56 | if (it != map.end()) { |
Mark Lobodzinski | 1ed594e | 2016-02-03 09:57:14 -0700 | [diff] [blame] | 57 | fprintf(stderr, "destroy device dispatch_table: map: %p, key: %p, table: %p\n", &map, key, it->second); |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 58 | } else { |
Mark Lobodzinski | 1ed594e | 2016-02-03 09:57:14 -0700 | [diff] [blame] | 59 | fprintf(stderr, "destroy device dispatch table: map: %p, key: %p, table: UNKNOWN\n", &map, key); |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 60 | assert(it != map.end()); |
| 61 | } |
Courtney Goeltzenleuchter | e3d3f5d | 2015-06-13 21:48:26 -0600 | [diff] [blame] | 62 | #endif |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 63 | map.erase(key); |
| 64 | } |
| 65 | |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 66 | void destroy_dispatch_table(instance_table_map &map, dispatch_key key) { |
Courtney Goeltzenleuchter | e3d3f5d | 2015-06-13 21:48:26 -0600 | [diff] [blame] | 67 | #if DISPATCH_MAP_DEBUG |
Michael Lentine | 0a369f6 | 2016-02-03 16:51:46 -0600 | [diff] [blame] | 68 | instance_table_map::const_iterator it = map.find((void *)key); |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 69 | if (it != map.end()) { |
Mark Lobodzinski | 1ed594e | 2016-02-03 09:57:14 -0700 | [diff] [blame] | 70 | fprintf(stderr, "destroy instance dispatch_table: map: %p, key: %p, table: %p\n", &map, key, it->second); |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 71 | } else { |
Mark Lobodzinski | 1ed594e | 2016-02-03 09:57:14 -0700 | [diff] [blame] | 72 | fprintf(stderr, "destroy instance dispatch table: map: %p, key: %p, table: UNKNOWN\n", &map, key); |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 73 | assert(it != map.end()); |
| 74 | } |
Courtney Goeltzenleuchter | e3d3f5d | 2015-06-13 21:48:26 -0600 | [diff] [blame] | 75 | #endif |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 76 | map.erase(key); |
| 77 | } |
| 78 | |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 79 | void destroy_device_dispatch_table(dispatch_key key) { destroy_dispatch_table(tableMap, key); } |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 80 | |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 81 | void destroy_instance_dispatch_table(dispatch_key key) { destroy_dispatch_table(tableInstanceMap, key); } |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 82 | |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 83 | VkLayerDispatchTable *get_dispatch_table(device_table_map &map, void *object) { |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 84 | dispatch_key key = get_dispatch_key(object); |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 85 | device_table_map::const_iterator it = map.find((void *)key); |
Courtney Goeltzenleuchter | e3d3f5d | 2015-06-13 21:48:26 -0600 | [diff] [blame] | 86 | #if DISPATCH_MAP_DEBUG |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 87 | if (it != map.end()) { |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 88 | fprintf(stderr, "device_dispatch_table: map: %p, object: %p, key: %p, table: %p\n", &tableInstanceMap, object, key, |
| 89 | it->second); |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 90 | } else { |
Mark Lobodzinski | 1ed594e | 2016-02-03 09:57:14 -0700 | [diff] [blame] | 91 | fprintf(stderr, "device_dispatch_table: map: %p, object: %p, key: %p, table: UNKNOWN\n", &tableInstanceMap, object, key); |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 92 | } |
Courtney Goeltzenleuchter | e3d3f5d | 2015-06-13 21:48:26 -0600 | [diff] [blame] | 93 | #endif |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 94 | assert(it != map.end() && "Not able to find device dispatch entry"); |
| 95 | return it->second; |
| 96 | } |
| 97 | |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 98 | VkLayerInstanceDispatchTable *get_dispatch_table(instance_table_map &map, void *object) { |
| 99 | // VkLayerInstanceDispatchTable *pDisp = *(VkLayerInstanceDispatchTable **) object; |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 100 | dispatch_key key = get_dispatch_key(object); |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 101 | instance_table_map::const_iterator it = map.find((void *)key); |
Courtney Goeltzenleuchter | e3d3f5d | 2015-06-13 21:48:26 -0600 | [diff] [blame] | 102 | #if DISPATCH_MAP_DEBUG |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 103 | if (it != map.end()) { |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 104 | fprintf(stderr, "instance_dispatch_table: map: %p, object: %p, key: %p, table: %p\n", &tableInstanceMap, object, key, |
| 105 | it->second); |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 106 | } else { |
Mark Lobodzinski | 1ed594e | 2016-02-03 09:57:14 -0700 | [diff] [blame] | 107 | fprintf(stderr, "instance_dispatch_table: map: %p, object: %p, key: %p, table: UNKNOWN\n", &tableInstanceMap, object, key); |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 108 | } |
Courtney Goeltzenleuchter | e3d3f5d | 2015-06-13 21:48:26 -0600 | [diff] [blame] | 109 | #endif |
Courtney Goeltzenleuchter | c08e72d | 2015-06-13 21:18:30 -0600 | [diff] [blame] | 110 | assert(it != map.end() && "Not able to find instance dispatch entry"); |
| 111 | return it->second; |
| 112 | } |
| 113 | |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 114 | VkLayerInstanceCreateInfo *get_chain_info(const VkInstanceCreateInfo *pCreateInfo, VkLayerFunction func) { |
| 115 | VkLayerInstanceCreateInfo *chain_info = (VkLayerInstanceCreateInfo *)pCreateInfo->pNext; |
| 116 | while (chain_info && !(chain_info->sType == VK_STRUCTURE_TYPE_LOADER_INSTANCE_CREATE_INFO && chain_info->function == func)) { |
| 117 | chain_info = (VkLayerInstanceCreateInfo *)chain_info->pNext; |
Courtney Goeltzenleuchter | 93a89cc | 2016-01-08 11:52:37 -0700 | [diff] [blame] | 118 | } |
| 119 | assert(chain_info != NULL); |
| 120 | return chain_info; |
| 121 | } |
| 122 | |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 123 | VkLayerDeviceCreateInfo *get_chain_info(const VkDeviceCreateInfo *pCreateInfo, VkLayerFunction func) { |
| 124 | VkLayerDeviceCreateInfo *chain_info = (VkLayerDeviceCreateInfo *)pCreateInfo->pNext; |
| 125 | while (chain_info && !(chain_info->sType == VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO && chain_info->function == func)) { |
| 126 | chain_info = (VkLayerDeviceCreateInfo *)chain_info->pNext; |
Courtney Goeltzenleuchter | 93a89cc | 2016-01-08 11:52:37 -0700 | [diff] [blame] | 127 | } |
| 128 | assert(chain_info != NULL); |
| 129 | return chain_info; |
| 130 | } |
| 131 | |
Mark Lobodzinski | 1ed594e | 2016-02-03 09:57:14 -0700 | [diff] [blame] | 132 | /* Various dispatchable objects will use the same underlying dispatch table if they |
Jon Ashburn | 9eed289 | 2015-06-01 10:02:09 -0600 | [diff] [blame] | 133 | * are created from that "parent" object. Thus use pointer to dispatch table |
| 134 | * as the key to these table maps. |
| 135 | * Instance -> PhysicalDevice |
Chia-I Wu | 3432a0c | 2015-10-27 18:04:07 +0800 | [diff] [blame] | 136 | * Device -> CommandBuffer or Queue |
Mark Lobodzinski | 1ed594e | 2016-02-03 09:57:14 -0700 | [diff] [blame] | 137 | * If use the object themselves as key to map then implies Create entrypoints have to be intercepted |
Jon Ashburn | 9eed289 | 2015-06-01 10:02:09 -0600 | [diff] [blame] | 138 | * and a new key inserted into map */ |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 139 | VkLayerInstanceDispatchTable *initInstanceTable(VkInstance instance, const PFN_vkGetInstanceProcAddr gpa, instance_table_map &map) { |
Jon Ashburn | 9eed289 | 2015-06-01 10:02:09 -0600 | [diff] [blame] | 140 | VkLayerInstanceDispatchTable *pTable; |
Courtney Goeltzenleuchter | 00150eb | 2016-01-08 12:18:43 -0700 | [diff] [blame] | 141 | dispatch_key key = get_dispatch_key(instance); |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 142 | instance_table_map::const_iterator it = map.find((void *)key); |
Jon Ashburn | 9eed289 | 2015-06-01 10:02:09 -0600 | [diff] [blame] | 143 | |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 144 | if (it == map.end()) { |
| 145 | pTable = new VkLayerInstanceDispatchTable; |
| 146 | map[(void *)key] = pTable; |
Courtney Goeltzenleuchter | e3d3f5d | 2015-06-13 21:48:26 -0600 | [diff] [blame] | 147 | #if DISPATCH_MAP_DEBUG |
Mark Lobodzinski | 1ed594e | 2016-02-03 09:57:14 -0700 | [diff] [blame] | 148 | fprintf(stderr, "New, Instance: map: %p, key: %p, table: %p\n", &map, key, pTable); |
Courtney Goeltzenleuchter | e3d3f5d | 2015-06-13 21:48:26 -0600 | [diff] [blame] | 149 | #endif |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 150 | } else { |
Courtney Goeltzenleuchter | e3d3f5d | 2015-06-13 21:48:26 -0600 | [diff] [blame] | 151 | #if DISPATCH_MAP_DEBUG |
Mark Lobodzinski | 1ed594e | 2016-02-03 09:57:14 -0700 | [diff] [blame] | 152 | fprintf(stderr, "Instance: map: %p, key: %p, table: %p\n", &map, key, it->second); |
Courtney Goeltzenleuchter | e3d3f5d | 2015-06-13 21:48:26 -0600 | [diff] [blame] | 153 | #endif |
Jon Ashburn | 9eed289 | 2015-06-01 10:02:09 -0600 | [diff] [blame] | 154 | return it->second; |
| 155 | } |
| 156 | |
Courtney Goeltzenleuchter | 00150eb | 2016-01-08 12:18:43 -0700 | [diff] [blame] | 157 | layer_init_instance_dispatch_table(instance, pTable, gpa); |
Jon Ashburn | 9eed289 | 2015-06-01 10:02:09 -0600 | [diff] [blame] | 158 | |
| 159 | return pTable; |
| 160 | } |
| 161 | |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 162 | VkLayerInstanceDispatchTable *initInstanceTable(VkInstance instance, const PFN_vkGetInstanceProcAddr gpa) { |
Courtney Goeltzenleuchter | 00150eb | 2016-01-08 12:18:43 -0700 | [diff] [blame] | 163 | return initInstanceTable(instance, gpa, tableInstanceMap); |
Courtney Goeltzenleuchter | e45acec | 2015-06-14 12:03:26 -0600 | [diff] [blame] | 164 | } |
| 165 | |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 166 | VkLayerDispatchTable *initDeviceTable(VkDevice device, const PFN_vkGetDeviceProcAddr gpa, device_table_map &map) { |
Courtney Goeltzenleuchter | 00150eb | 2016-01-08 12:18:43 -0700 | [diff] [blame] | 167 | VkLayerDispatchTable *pTable; |
| 168 | dispatch_key key = get_dispatch_key(device); |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 169 | device_table_map::const_iterator it = map.find((void *)key); |
Jon Ashburn | 9eed289 | 2015-06-01 10:02:09 -0600 | [diff] [blame] | 170 | |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 171 | if (it == map.end()) { |
| 172 | pTable = new VkLayerDispatchTable; |
| 173 | map[(void *)key] = pTable; |
Courtney Goeltzenleuchter | e3d3f5d | 2015-06-13 21:48:26 -0600 | [diff] [blame] | 174 | #if DISPATCH_MAP_DEBUG |
Mark Lobodzinski | 1ed594e | 2016-02-03 09:57:14 -0700 | [diff] [blame] | 175 | fprintf(stderr, "New, Device: map: %p, key: %p, table: %p\n", &map, key, pTable); |
Courtney Goeltzenleuchter | e3d3f5d | 2015-06-13 21:48:26 -0600 | [diff] [blame] | 176 | #endif |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 177 | } else { |
Courtney Goeltzenleuchter | e3d3f5d | 2015-06-13 21:48:26 -0600 | [diff] [blame] | 178 | #if DISPATCH_MAP_DEBUG |
Mark Lobodzinski | 1ed594e | 2016-02-03 09:57:14 -0700 | [diff] [blame] | 179 | fprintf(stderr, "Device: map: %p, key: %p, table: %p\n", &map, key, it->second); |
Courtney Goeltzenleuchter | e3d3f5d | 2015-06-13 21:48:26 -0600 | [diff] [blame] | 180 | #endif |
Jon Ashburn | 9eed289 | 2015-06-01 10:02:09 -0600 | [diff] [blame] | 181 | return it->second; |
| 182 | } |
| 183 | |
Courtney Goeltzenleuchter | 00150eb | 2016-01-08 12:18:43 -0700 | [diff] [blame] | 184 | layer_init_device_dispatch_table(device, pTable, gpa); |
Jon Ashburn | 9eed289 | 2015-06-01 10:02:09 -0600 | [diff] [blame] | 185 | |
Courtney Goeltzenleuchter | 00150eb | 2016-01-08 12:18:43 -0700 | [diff] [blame] | 186 | return pTable; |
Courtney Goeltzenleuchter | e45acec | 2015-06-14 12:03:26 -0600 | [diff] [blame] | 187 | } |
| 188 | |
Jon Ashburn | 5484e0c | 2016-03-08 17:48:44 -0700 | [diff] [blame] | 189 | VkLayerDispatchTable *initDeviceTable(VkDevice device, const PFN_vkGetDeviceProcAddr gpa) { |
Courtney Goeltzenleuchter | 00150eb | 2016-01-08 12:18:43 -0700 | [diff] [blame] | 190 | return initDeviceTable(device, gpa, tableMap); |
Jon Ashburn | 9eed289 | 2015-06-01 10:02:09 -0600 | [diff] [blame] | 191 | } |