| 127 | } |
| 128 | |
| 129 | VkuDeviceDispatchTable *initDeviceTable(VkDevice device, const PFN_vkGetDeviceProcAddr gpa, device_table_map &map) { |
| 130 | VkuDeviceDispatchTable *pTable; |
| 131 | dispatch_key key = get_dispatch_key(device); |
| 132 | device_table_map::const_iterator it = map.find((void *)key); |
| 133 | |
| 134 | if (it == map.end()) { |
| 135 | pTable = new VkuDeviceDispatchTable; |
| 136 | map[(void *)key] = pTable; |
| 137 | } else { |
| 138 | return it->second; |
| 139 | } |
| 140 | |
| 141 | vkuInitDeviceDispatchTable(device, pTable, gpa); |
| 142 | |
| 143 | return pTable; |
| 144 | } |
| 145 | |
| 146 | VkuDeviceDispatchTable *initDeviceTable(VkDevice device, const PFN_vkGetDeviceProcAddr gpa) { |
| 147 | return initDeviceTable(device, gpa, tableMap); |
no test coverage detected