5
5
* Copyright (c) 2015-2022 The Khronos Group Inc.
6
6
* Copyright (c) 2015-2022 Valve Corporation
7
7
* Copyright (c) 2015-2022 LunarG, Inc.
8
+ * Copyright (c) 2021-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
9
+ * Copyright (c) 2023-2023 RasterGrid Kft.
8
10
*
9
11
* Licensed under the Apache License, Version 2.0 (the "License");
10
12
* you may not use this file except in compliance with the License.
@@ -63,7 +65,7 @@ VKAPI_ATTR bool VKAPI_CALL loader_icd_init_entries(struct loader_instance* inst,
63
65
} while (0)
64
66
65
67
66
- // ---- Core 1_0
68
+ // ---- Core Vulkan 1.0
67
69
LOOKUP_REQUIRED_GIPA(DestroyInstance);
68
70
LOOKUP_REQUIRED_GIPA(EnumeratePhysicalDevices);
69
71
LOOKUP_REQUIRED_GIPA(GetPhysicalDeviceFeatures);
@@ -77,7 +79,7 @@ VKAPI_ATTR bool VKAPI_CALL loader_icd_init_entries(struct loader_instance* inst,
77
79
LOOKUP_REQUIRED_GIPA(EnumerateDeviceExtensionProperties);
78
80
LOOKUP_REQUIRED_GIPA(GetPhysicalDeviceSparseImageFormatProperties);
79
81
80
- // ---- Core 1_1
82
+ // ---- Core Vulkan 1.1
81
83
LOOKUP_GIPA(EnumeratePhysicalDeviceGroups);
82
84
LOOKUP_GIPA(GetPhysicalDeviceFeatures2);
83
85
LOOKUP_GIPA(GetPhysicalDeviceProperties2);
@@ -90,7 +92,7 @@ VKAPI_ATTR bool VKAPI_CALL loader_icd_init_entries(struct loader_instance* inst,
90
92
LOOKUP_GIPA(GetPhysicalDeviceExternalFenceProperties);
91
93
LOOKUP_GIPA(GetPhysicalDeviceExternalSemaphoreProperties);
92
94
93
- // ---- Core 1_3
95
+ // ---- Core Vulkan 1.3
94
96
LOOKUP_GIPA(GetPhysicalDeviceToolProperties);
95
97
96
98
// ---- VK_KHR_surface extension commands
@@ -324,7 +326,7 @@ VKAPI_ATTR void VKAPI_CALL loader_init_device_dispatch_table(struct loader_dev_d
324
326
if (table->magic != DEVICE_DISP_TABLE_MAGIC_NUMBER) { abort(); }
325
327
for (uint32_t i = 0; i < MAX_NUM_UNKNOWN_EXTS; i++) dev_table->ext_dispatch[i] = (PFN_vkDevExt)vkDevExtError;
326
328
327
- // ---- Core 1_0 commands
329
+ // ---- Core Vulkan 1.0 commands
328
330
table->GetDeviceProcAddr = gpa;
329
331
table->DestroyDevice = (PFN_vkDestroyDevice)gpa(dev, "vkDestroyDevice");
330
332
table->GetDeviceQueue = (PFN_vkGetDeviceQueue)gpa(dev, "vkGetDeviceQueue");
@@ -447,7 +449,7 @@ VKAPI_ATTR void VKAPI_CALL loader_init_device_dispatch_table(struct loader_dev_d
447
449
table->CmdEndRenderPass = (PFN_vkCmdEndRenderPass)gpa(dev, "vkCmdEndRenderPass");
448
450
table->CmdExecuteCommands = (PFN_vkCmdExecuteCommands)gpa(dev, "vkCmdExecuteCommands");
449
451
450
- // ---- Core 1_1 commands
452
+ // ---- Core Vulkan 1.1 commands
451
453
table->BindBufferMemory2 = (PFN_vkBindBufferMemory2)gpa(dev, "vkBindBufferMemory2");
452
454
table->BindImageMemory2 = (PFN_vkBindImageMemory2)gpa(dev, "vkBindImageMemory2");
453
455
table->GetDeviceGroupPeerMemoryFeatures = (PFN_vkGetDeviceGroupPeerMemoryFeatures)gpa(dev, "vkGetDeviceGroupPeerMemoryFeatures");
@@ -465,7 +467,7 @@ VKAPI_ATTR void VKAPI_CALL loader_init_device_dispatch_table(struct loader_dev_d
465
467
table->UpdateDescriptorSetWithTemplate = (PFN_vkUpdateDescriptorSetWithTemplate)gpa(dev, "vkUpdateDescriptorSetWithTemplate");
466
468
table->GetDescriptorSetLayoutSupport = (PFN_vkGetDescriptorSetLayoutSupport)gpa(dev, "vkGetDescriptorSetLayoutSupport");
467
469
468
- // ---- Core 1_2 commands
470
+ // ---- Core Vulkan 1.2 commands
469
471
table->CmdDrawIndirectCount = (PFN_vkCmdDrawIndirectCount)gpa(dev, "vkCmdDrawIndirectCount");
470
472
table->CmdDrawIndexedIndirectCount = (PFN_vkCmdDrawIndexedIndirectCount)gpa(dev, "vkCmdDrawIndexedIndirectCount");
471
473
table->CreateRenderPass2 = (PFN_vkCreateRenderPass2)gpa(dev, "vkCreateRenderPass2");
@@ -480,7 +482,7 @@ VKAPI_ATTR void VKAPI_CALL loader_init_device_dispatch_table(struct loader_dev_d
480
482
table->GetBufferOpaqueCaptureAddress = (PFN_vkGetBufferOpaqueCaptureAddress)gpa(dev, "vkGetBufferOpaqueCaptureAddress");
481
483
table->GetDeviceMemoryOpaqueCaptureAddress = (PFN_vkGetDeviceMemoryOpaqueCaptureAddress)gpa(dev, "vkGetDeviceMemoryOpaqueCaptureAddress");
482
484
483
- // ---- Core 1_3 commands
485
+ // ---- Core Vulkan 1.3 commands
484
486
table->CreatePrivateDataSlot = (PFN_vkCreatePrivateDataSlot)gpa(dev, "vkCreatePrivateDataSlot");
485
487
table->DestroyPrivateDataSlot = (PFN_vkDestroyPrivateDataSlot)gpa(dev, "vkDestroyPrivateDataSlot");
486
488
table->SetPrivateData = (PFN_vkSetPrivateData)gpa(dev, "vkSetPrivateData");
@@ -1197,7 +1199,7 @@ VKAPI_ATTR void VKAPI_CALL loader_init_device_extension_dispatch_table(struct lo
1197
1199
VKAPI_ATTR void VKAPI_CALL loader_init_instance_core_dispatch_table(VkLayerInstanceDispatchTable *table, PFN_vkGetInstanceProcAddr gpa,
1198
1200
VkInstance inst) {
1199
1201
1200
- // ---- Core 1_0 commands
1202
+ // ---- Core Vulkan 1.0 commands
1201
1203
table->DestroyInstance = (PFN_vkDestroyInstance)gpa(inst, "vkDestroyInstance");
1202
1204
table->EnumeratePhysicalDevices = (PFN_vkEnumeratePhysicalDevices)gpa(inst, "vkEnumeratePhysicalDevices");
1203
1205
table->GetPhysicalDeviceFeatures = (PFN_vkGetPhysicalDeviceFeatures)gpa(inst, "vkGetPhysicalDeviceFeatures");
@@ -1211,7 +1213,7 @@ VKAPI_ATTR void VKAPI_CALL loader_init_instance_core_dispatch_table(VkLayerInsta
1211
1213
table->EnumerateDeviceLayerProperties = (PFN_vkEnumerateDeviceLayerProperties)gpa(inst, "vkEnumerateDeviceLayerProperties");
1212
1214
table->GetPhysicalDeviceSparseImageFormatProperties = (PFN_vkGetPhysicalDeviceSparseImageFormatProperties)gpa(inst, "vkGetPhysicalDeviceSparseImageFormatProperties");
1213
1215
1214
- // ---- Core 1_1 commands
1216
+ // ---- Core Vulkan 1.1 commands
1215
1217
table->EnumeratePhysicalDeviceGroups = (PFN_vkEnumeratePhysicalDeviceGroups)gpa(inst, "vkEnumeratePhysicalDeviceGroups");
1216
1218
table->GetPhysicalDeviceFeatures2 = (PFN_vkGetPhysicalDeviceFeatures2)gpa(inst, "vkGetPhysicalDeviceFeatures2");
1217
1219
table->GetPhysicalDeviceProperties2 = (PFN_vkGetPhysicalDeviceProperties2)gpa(inst, "vkGetPhysicalDeviceProperties2");
@@ -1224,7 +1226,7 @@ VKAPI_ATTR void VKAPI_CALL loader_init_instance_core_dispatch_table(VkLayerInsta
1224
1226
table->GetPhysicalDeviceExternalFenceProperties = (PFN_vkGetPhysicalDeviceExternalFenceProperties)gpa(inst, "vkGetPhysicalDeviceExternalFenceProperties");
1225
1227
table->GetPhysicalDeviceExternalSemaphoreProperties = (PFN_vkGetPhysicalDeviceExternalSemaphoreProperties)gpa(inst, "vkGetPhysicalDeviceExternalSemaphoreProperties");
1226
1228
1227
- // ---- Core 1_3 commands
1229
+ // ---- Core Vulkan 1.3 commands
1228
1230
table->GetPhysicalDeviceToolProperties = (PFN_vkGetPhysicalDeviceToolProperties)gpa(inst, "vkGetPhysicalDeviceToolProperties");
1229
1231
}
1230
1232
@@ -1524,7 +1526,7 @@ VKAPI_ATTR void* VKAPI_CALL loader_lookup_device_dispatch_table(const VkLayerDis
1524
1526
uint32_t api_version = VK_MAKE_API_VERSION(0, inst->app_api_version.major, inst->app_api_version.minor, inst->app_api_version.patch);
1525
1527
1526
1528
1527
- // ---- Core 1_0 commands
1529
+ // ---- Core Vulkan 1.0 commands
1528
1530
if (!strcmp(name, "GetDeviceProcAddr")) {
1529
1531
if (dev->should_ignore_device_commands_from_newer_version && api_version < VK_API_VERSION_1_0) return NULL;
1530
1532
return (void *)table->GetDeviceProcAddr;
@@ -2010,7 +2012,7 @@ VKAPI_ATTR void* VKAPI_CALL loader_lookup_device_dispatch_table(const VkLayerDis
2010
2012
return (void *)table->CmdExecuteCommands;
2011
2013
}
2012
2014
2013
- // ---- Core 1_1 commands
2015
+ // ---- Core Vulkan 1.1 commands
2014
2016
if (!strcmp(name, "BindBufferMemory2")) {
2015
2017
if (dev->should_ignore_device_commands_from_newer_version && api_version < VK_API_VERSION_1_1) return NULL;
2016
2018
return (void *)table->BindBufferMemory2;
@@ -2076,7 +2078,7 @@ VKAPI_ATTR void* VKAPI_CALL loader_lookup_device_dispatch_table(const VkLayerDis
2076
2078
return (void *)table->GetDescriptorSetLayoutSupport;
2077
2079
}
2078
2080
2079
- // ---- Core 1_2 commands
2081
+ // ---- Core Vulkan 1.2 commands
2080
2082
if (!strcmp(name, "CmdDrawIndirectCount")) {
2081
2083
if (dev->should_ignore_device_commands_from_newer_version && api_version < VK_API_VERSION_1_2) return NULL;
2082
2084
return (void *)table->CmdDrawIndirectCount;
@@ -2130,7 +2132,7 @@ VKAPI_ATTR void* VKAPI_CALL loader_lookup_device_dispatch_table(const VkLayerDis
2130
2132
return (void *)table->GetDeviceMemoryOpaqueCaptureAddress;
2131
2133
}
2132
2134
2133
- // ---- Core 1_3 commands
2135
+ // ---- Core Vulkan 1.3 commands
2134
2136
if (!strcmp(name, "CreatePrivateDataSlot")) {
2135
2137
if (dev->should_ignore_device_commands_from_newer_version && api_version < VK_API_VERSION_1_3) return NULL;
2136
2138
return (void *)table->CreatePrivateDataSlot;
@@ -2955,7 +2957,7 @@ VKAPI_ATTR void* VKAPI_CALL loader_lookup_instance_dispatch_table(const VkLayerI
2955
2957
*found_name = true;
2956
2958
name += 2;
2957
2959
2958
- // ---- Core 1_0 commands
2960
+ // ---- Core Vulkan 1.0 commands
2959
2961
if (!strcmp(name, "DestroyInstance")) return (void *)table->DestroyInstance;
2960
2962
if (!strcmp(name, "EnumeratePhysicalDevices")) return (void *)table->EnumeratePhysicalDevices;
2961
2963
if (!strcmp(name, "GetPhysicalDeviceFeatures")) return (void *)table->GetPhysicalDeviceFeatures;
@@ -2969,7 +2971,7 @@ VKAPI_ATTR void* VKAPI_CALL loader_lookup_instance_dispatch_table(const VkLayerI
2969
2971
if (!strcmp(name, "EnumerateDeviceLayerProperties")) return (void *)table->EnumerateDeviceLayerProperties;
2970
2972
if (!strcmp(name, "GetPhysicalDeviceSparseImageFormatProperties")) return (void *)table->GetPhysicalDeviceSparseImageFormatProperties;
2971
2973
2972
- // ---- Core 1_1 commands
2974
+ // ---- Core Vulkan 1.1 commands
2973
2975
if (!strcmp(name, "EnumeratePhysicalDeviceGroups")) return (void *)table->EnumeratePhysicalDeviceGroups;
2974
2976
if (!strcmp(name, "GetPhysicalDeviceFeatures2")) return (void *)table->GetPhysicalDeviceFeatures2;
2975
2977
if (!strcmp(name, "GetPhysicalDeviceProperties2")) return (void *)table->GetPhysicalDeviceProperties2;
@@ -2982,7 +2984,7 @@ VKAPI_ATTR void* VKAPI_CALL loader_lookup_instance_dispatch_table(const VkLayerI
2982
2984
if (!strcmp(name, "GetPhysicalDeviceExternalFenceProperties")) return (void *)table->GetPhysicalDeviceExternalFenceProperties;
2983
2985
if (!strcmp(name, "GetPhysicalDeviceExternalSemaphoreProperties")) return (void *)table->GetPhysicalDeviceExternalSemaphoreProperties;
2984
2986
2985
- // ---- Core 1_3 commands
2987
+ // ---- Core Vulkan 1.3 commands
2986
2988
if (!strcmp(name, "GetPhysicalDeviceToolProperties")) return (void *)table->GetPhysicalDeviceToolProperties;
2987
2989
2988
2990
// ---- VK_KHR_surface extension commands
@@ -11881,7 +11883,7 @@ PFN_vkVoidFunction get_extension_device_proc_terminator(struct loader_device *de
11881
11883
// pointers to "terminator functions".
11882
11884
const VkLayerInstanceDispatchTable instance_disp = {
11883
11885
11884
- // ---- Core 1_0 commands
11886
+ // ---- Core Vulkan 1.0 commands
11885
11887
.DestroyInstance = terminator_DestroyInstance,
11886
11888
.EnumeratePhysicalDevices = terminator_EnumeratePhysicalDevices,
11887
11889
.GetPhysicalDeviceFeatures = terminator_GetPhysicalDeviceFeatures,
@@ -11895,7 +11897,7 @@ const VkLayerInstanceDispatchTable instance_disp = {
11895
11897
.EnumerateDeviceLayerProperties = terminator_EnumerateDeviceLayerProperties,
11896
11898
.GetPhysicalDeviceSparseImageFormatProperties = terminator_GetPhysicalDeviceSparseImageFormatProperties,
11897
11899
11898
- // ---- Core 1_1 commands
11900
+ // ---- Core Vulkan 1.1 commands
11899
11901
.EnumeratePhysicalDeviceGroups = terminator_EnumeratePhysicalDeviceGroups,
11900
11902
.GetPhysicalDeviceFeatures2 = terminator_GetPhysicalDeviceFeatures2,
11901
11903
.GetPhysicalDeviceProperties2 = terminator_GetPhysicalDeviceProperties2,
@@ -11908,7 +11910,7 @@ const VkLayerInstanceDispatchTable instance_disp = {
11908
11910
.GetPhysicalDeviceExternalFenceProperties = terminator_GetPhysicalDeviceExternalFenceProperties,
11909
11911
.GetPhysicalDeviceExternalSemaphoreProperties = terminator_GetPhysicalDeviceExternalSemaphoreProperties,
11910
11912
11911
- // ---- Core 1_3 commands
11913
+ // ---- Core Vulkan 1.3 commands
11912
11914
.GetPhysicalDeviceToolProperties = terminator_GetPhysicalDeviceToolProperties,
11913
11915
11914
11916
// ---- VK_KHR_surface extension commands
0 commit comments