MCPcopy Create free account
hub / github.com/LunarG/VulkanTools / initDeviceTable

Function initDeviceTable

layersvt/vk_layer_table.cpp:129–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129VkuDeviceDispatchTable *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
146VkuDeviceDispatchTable *initDeviceTable(VkDevice device, const PFN_vkGetDeviceProcAddr gpa) {
147 return initDeviceTable(device, gpa, tableMap);

Callers 1

vkCreateDeviceFunction · 0.85

Calls 1

get_dispatch_keyFunction · 0.85

Tested by

no test coverage detected