vk/vulkan.h: Switch to the split ProcAddr functions in 130

This commit is contained in:
Jason Ekstrand
2015-07-07 18:51:53 -07:00
parent db24afee2f
commit e7acdda184
3 changed files with 20 additions and 5 deletions
+9 -2
View File
@@ -274,8 +274,15 @@ VkResult anv_GetPhysicalDeviceInfo(
}
void * vkGetProcAddr(
VkPhysicalDevice physicalDevice,
PFN_vkVoidFunction anv_GetInstanceProcAddr(
VkInstance instance,
const char* pName)
{
return anv_lookup_entrypoint(pName);
}
PFN_vkVoidFunction anv_GetDeviceProcAddr(
VkDevice device,
const char* pName)
{
return anv_lookup_entrypoint(pName);
+2
View File
@@ -67,6 +67,8 @@ i = 0
for line in fileinput.input():
m = p.match(line)
if (m):
if m.group(2) == 'VoidFunction':
continue
fullname = "vk" + m.group(2)
h = hash(fullname)
entrypoints.append((m.group(1), m.group(2), m.group(3), i, h))