Skip to content

Commit 66a0f14

Browse files
aqnuepcharles-lunarg
authored andcommitted
build: API parameterization changes
1 parent 2aa686f commit 66a0f14

19 files changed

+270
-169
lines changed

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# ~~~
22
# Copyright (c) 2014-2023 Valve Corporation
33
# Copyright (c) 2014-2023 LunarG, Inc.
4+
# Copyright (c) 2021-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
5+
# Copyright (c) 2023-2023 RasterGrid Kft.
46
#
57
# Licensed under the Apache License, Version 2.0 (the "License");
68
# you may not use this file except in compliance with the License.
@@ -18,6 +20,10 @@ cmake_minimum_required(VERSION 3.17.2)
1820

1921
project(VULKAN_LOADER VERSION 1.3.274 LANGUAGES C)
2022

23+
# This variable enables downstream users to customize the target API
24+
# variant (e.g. Vulkan SC)
25+
set(API_TYPE "vulkan")
26+
2127
add_subdirectory(scripts)
2228

2329
set(CMAKE_C_STANDARD 99)
@@ -209,7 +215,7 @@ if(LOADER_CODEGEN)
209215
add_custom_target(loader_codegen
210216
COMMAND Python3::Interpreter ${PROJECT_SOURCE_DIR}/scripts/generate_source.py
211217
"${VULKAN_HEADERS_INSTALL_DIR}/${CMAKE_INSTALL_DATADIR}/vulkan/registry"
212-
--generated-version ${VulkanHeaders_VERSION} --incremental
218+
--generated-version ${VulkanHeaders_VERSION} --incremental --api ${API_TYPE}
213219
)
214220
endif()
215221

loader/CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Copyright (c) 2014-2023 Valve Corporation
44
# Copyright (c) 2014-2023 LunarG, Inc.
55
# Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
6+
# Copyright (c) 2023-2023 RasterGrid Kft.
67
#
78
# Licensed under the Apache License, Version 2.0 (the "License");
89
# you may not use this file except in compliance with the License.
@@ -328,7 +329,7 @@ if(WIN32)
328329
SHARED
329330
${NORMAL_LOADER_SRCS}
330331
${LOADER_UNKNOWN_CHAIN_LIBRARY}
331-
${CMAKE_CURRENT_SOURCE_DIR}/vulkan-1.def
332+
${CMAKE_CURRENT_SOURCE_DIR}/${API_TYPE}-1.def
332333
${RC_FILE_LOCATION})
333334

334335
target_link_libraries(vulkan PRIVATE loader_specific_options loader-opt)
@@ -338,7 +339,7 @@ if(WIN32)
338339
# msvc: vulkan-1.lib / vulkan-1.dll
339340
set_target_properties(vulkan
340341
PROPERTIES
341-
OUTPUT_NAME vulkan-1)
342+
OUTPUT_NAME ${API_TYPE}-1)
342343
if(MINGW)
343344
# generate the same DLL with mingw
344345
set_target_properties(vulkan
@@ -385,6 +386,8 @@ else()
385386

386387
target_link_libraries(vulkan PRIVATE ${CMAKE_DL_LIBS} m Threads::Threads)
387388

389+
set_target_properties(vulkan PROPERTIES OUTPUT_NAME ${API_TYPE})
390+
388391
if (LOADER_ENABLE_ADDRESS_SANITIZER)
389392
target_compile_options(vulkan PUBLIC -fsanitize=address)
390393
target_link_options(vulkan PUBLIC -fsanitize=address)
@@ -506,5 +509,5 @@ if (PKG_CONFIG_FOUND)
506509
file(RELATIVE_PATH CMAKE_INSTALL_INCLUDEDIR_PC ${CMAKE_INSTALL_PREFIX} ${CMAKE_INSTALL_FULL_INCLUDEDIR})
507510
endif()
508511
configure_file("vulkan.pc.in" "vulkan.pc" @ONLY)
509-
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/vulkan.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
512+
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/vulkan.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig" RENAME "${API_TYPE}.pc")
510513
endif()

loader/generated/vk_layer_dispatch_table.h

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* Copyright (c) 2015-2022 The Khronos Group Inc.
66
* Copyright (c) 2015-2022 Valve Corporation
77
* Copyright (c) 2015-2022 LunarG, Inc.
8+
* Copyright (c) 2021-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
9+
* Copyright (c) 2023-2023 RasterGrid Kft.
810
*
911
* Licensed under the Apache License, Version 2.0 (the "License");
1012
* you may not use this file except in compliance with the License.
@@ -34,7 +36,7 @@ typedef struct VkLayerInstanceDispatchTable_ {
3436
// Manually add in GetPhysicalDeviceProcAddr entry
3537
PFN_GetPhysicalDeviceProcAddr GetPhysicalDeviceProcAddr;
3638

37-
// ---- Core 1_0 commands
39+
// ---- Core Vulkan 1.0 commands
3840
PFN_vkCreateInstance CreateInstance;
3941
PFN_vkDestroyInstance DestroyInstance;
4042
PFN_vkEnumeratePhysicalDevices EnumeratePhysicalDevices;
@@ -52,7 +54,7 @@ typedef struct VkLayerInstanceDispatchTable_ {
5254
PFN_vkEnumerateDeviceLayerProperties EnumerateDeviceLayerProperties;
5355
PFN_vkGetPhysicalDeviceSparseImageFormatProperties GetPhysicalDeviceSparseImageFormatProperties;
5456

55-
// ---- Core 1_1 commands
57+
// ---- Core Vulkan 1.1 commands
5658
PFN_vkEnumerateInstanceVersion EnumerateInstanceVersion;
5759
PFN_vkEnumeratePhysicalDeviceGroups EnumeratePhysicalDeviceGroups;
5860
PFN_vkGetPhysicalDeviceFeatures2 GetPhysicalDeviceFeatures2;
@@ -66,7 +68,7 @@ typedef struct VkLayerInstanceDispatchTable_ {
6668
PFN_vkGetPhysicalDeviceExternalFenceProperties GetPhysicalDeviceExternalFenceProperties;
6769
PFN_vkGetPhysicalDeviceExternalSemaphoreProperties GetPhysicalDeviceExternalSemaphoreProperties;
6870

69-
// ---- Core 1_3 commands
71+
// ---- Core Vulkan 1.3 commands
7072
PFN_vkGetPhysicalDeviceToolProperties GetPhysicalDeviceToolProperties;
7173

7274
// ---- VK_KHR_surface extension commands
@@ -293,7 +295,7 @@ typedef struct VkLayerInstanceDispatchTable_ {
293295
typedef struct VkLayerDispatchTable_ {
294296
uint64_t magic; // Should be DEVICE_DISP_TABLE_MAGIC_NUMBER
295297

296-
// ---- Core 1_0 commands
298+
// ---- Core Vulkan 1.0 commands
297299
PFN_vkGetDeviceProcAddr GetDeviceProcAddr;
298300
PFN_vkDestroyDevice DestroyDevice;
299301
PFN_vkGetDeviceQueue GetDeviceQueue;
@@ -416,7 +418,7 @@ typedef struct VkLayerDispatchTable_ {
416418
PFN_vkCmdEndRenderPass CmdEndRenderPass;
417419
PFN_vkCmdExecuteCommands CmdExecuteCommands;
418420

419-
// ---- Core 1_1 commands
421+
// ---- Core Vulkan 1.1 commands
420422
PFN_vkBindBufferMemory2 BindBufferMemory2;
421423
PFN_vkBindImageMemory2 BindImageMemory2;
422424
PFN_vkGetDeviceGroupPeerMemoryFeatures GetDeviceGroupPeerMemoryFeatures;
@@ -434,7 +436,7 @@ typedef struct VkLayerDispatchTable_ {
434436
PFN_vkUpdateDescriptorSetWithTemplate UpdateDescriptorSetWithTemplate;
435437
PFN_vkGetDescriptorSetLayoutSupport GetDescriptorSetLayoutSupport;
436438

437-
// ---- Core 1_2 commands
439+
// ---- Core Vulkan 1.2 commands
438440
PFN_vkCmdDrawIndirectCount CmdDrawIndirectCount;
439441
PFN_vkCmdDrawIndexedIndirectCount CmdDrawIndexedIndirectCount;
440442
PFN_vkCreateRenderPass2 CreateRenderPass2;
@@ -449,7 +451,7 @@ typedef struct VkLayerDispatchTable_ {
449451
PFN_vkGetBufferOpaqueCaptureAddress GetBufferOpaqueCaptureAddress;
450452
PFN_vkGetDeviceMemoryOpaqueCaptureAddress GetDeviceMemoryOpaqueCaptureAddress;
451453

452-
// ---- Core 1_3 commands
454+
// ---- Core Vulkan 1.3 commands
453455
PFN_vkCreatePrivateDataSlot CreatePrivateDataSlot;
454456
PFN_vkDestroyPrivateDataSlot DestroyPrivateDataSlot;
455457
PFN_vkSetPrivateData SetPrivateData;

loader/generated/vk_loader_extensions.c

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* Copyright (c) 2015-2022 The Khronos Group Inc.
66
* Copyright (c) 2015-2022 Valve Corporation
77
* Copyright (c) 2015-2022 LunarG, Inc.
8+
* Copyright (c) 2021-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
9+
* Copyright (c) 2023-2023 RasterGrid Kft.
810
*
911
* Licensed under the Apache License, Version 2.0 (the "License");
1012
* 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,
6365
} while (0)
6466

6567

66-
// ---- Core 1_0
68+
// ---- Core Vulkan 1.0
6769
LOOKUP_REQUIRED_GIPA(DestroyInstance);
6870
LOOKUP_REQUIRED_GIPA(EnumeratePhysicalDevices);
6971
LOOKUP_REQUIRED_GIPA(GetPhysicalDeviceFeatures);
@@ -77,7 +79,7 @@ VKAPI_ATTR bool VKAPI_CALL loader_icd_init_entries(struct loader_instance* inst,
7779
LOOKUP_REQUIRED_GIPA(EnumerateDeviceExtensionProperties);
7880
LOOKUP_REQUIRED_GIPA(GetPhysicalDeviceSparseImageFormatProperties);
7981

80-
// ---- Core 1_1
82+
// ---- Core Vulkan 1.1
8183
LOOKUP_GIPA(EnumeratePhysicalDeviceGroups);
8284
LOOKUP_GIPA(GetPhysicalDeviceFeatures2);
8385
LOOKUP_GIPA(GetPhysicalDeviceProperties2);
@@ -90,7 +92,7 @@ VKAPI_ATTR bool VKAPI_CALL loader_icd_init_entries(struct loader_instance* inst,
9092
LOOKUP_GIPA(GetPhysicalDeviceExternalFenceProperties);
9193
LOOKUP_GIPA(GetPhysicalDeviceExternalSemaphoreProperties);
9294

93-
// ---- Core 1_3
95+
// ---- Core Vulkan 1.3
9496
LOOKUP_GIPA(GetPhysicalDeviceToolProperties);
9597

9698
// ---- VK_KHR_surface extension commands
@@ -324,7 +326,7 @@ VKAPI_ATTR void VKAPI_CALL loader_init_device_dispatch_table(struct loader_dev_d
324326
if (table->magic != DEVICE_DISP_TABLE_MAGIC_NUMBER) { abort(); }
325327
for (uint32_t i = 0; i < MAX_NUM_UNKNOWN_EXTS; i++) dev_table->ext_dispatch[i] = (PFN_vkDevExt)vkDevExtError;
326328

327-
// ---- Core 1_0 commands
329+
// ---- Core Vulkan 1.0 commands
328330
table->GetDeviceProcAddr = gpa;
329331
table->DestroyDevice = (PFN_vkDestroyDevice)gpa(dev, "vkDestroyDevice");
330332
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
447449
table->CmdEndRenderPass = (PFN_vkCmdEndRenderPass)gpa(dev, "vkCmdEndRenderPass");
448450
table->CmdExecuteCommands = (PFN_vkCmdExecuteCommands)gpa(dev, "vkCmdExecuteCommands");
449451

450-
// ---- Core 1_1 commands
452+
// ---- Core Vulkan 1.1 commands
451453
table->BindBufferMemory2 = (PFN_vkBindBufferMemory2)gpa(dev, "vkBindBufferMemory2");
452454
table->BindImageMemory2 = (PFN_vkBindImageMemory2)gpa(dev, "vkBindImageMemory2");
453455
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
465467
table->UpdateDescriptorSetWithTemplate = (PFN_vkUpdateDescriptorSetWithTemplate)gpa(dev, "vkUpdateDescriptorSetWithTemplate");
466468
table->GetDescriptorSetLayoutSupport = (PFN_vkGetDescriptorSetLayoutSupport)gpa(dev, "vkGetDescriptorSetLayoutSupport");
467469

468-
// ---- Core 1_2 commands
470+
// ---- Core Vulkan 1.2 commands
469471
table->CmdDrawIndirectCount = (PFN_vkCmdDrawIndirectCount)gpa(dev, "vkCmdDrawIndirectCount");
470472
table->CmdDrawIndexedIndirectCount = (PFN_vkCmdDrawIndexedIndirectCount)gpa(dev, "vkCmdDrawIndexedIndirectCount");
471473
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
480482
table->GetBufferOpaqueCaptureAddress = (PFN_vkGetBufferOpaqueCaptureAddress)gpa(dev, "vkGetBufferOpaqueCaptureAddress");
481483
table->GetDeviceMemoryOpaqueCaptureAddress = (PFN_vkGetDeviceMemoryOpaqueCaptureAddress)gpa(dev, "vkGetDeviceMemoryOpaqueCaptureAddress");
482484

483-
// ---- Core 1_3 commands
485+
// ---- Core Vulkan 1.3 commands
484486
table->CreatePrivateDataSlot = (PFN_vkCreatePrivateDataSlot)gpa(dev, "vkCreatePrivateDataSlot");
485487
table->DestroyPrivateDataSlot = (PFN_vkDestroyPrivateDataSlot)gpa(dev, "vkDestroyPrivateDataSlot");
486488
table->SetPrivateData = (PFN_vkSetPrivateData)gpa(dev, "vkSetPrivateData");
@@ -1197,7 +1199,7 @@ VKAPI_ATTR void VKAPI_CALL loader_init_device_extension_dispatch_table(struct lo
11971199
VKAPI_ATTR void VKAPI_CALL loader_init_instance_core_dispatch_table(VkLayerInstanceDispatchTable *table, PFN_vkGetInstanceProcAddr gpa,
11981200
VkInstance inst) {
11991201

1200-
// ---- Core 1_0 commands
1202+
// ---- Core Vulkan 1.0 commands
12011203
table->DestroyInstance = (PFN_vkDestroyInstance)gpa(inst, "vkDestroyInstance");
12021204
table->EnumeratePhysicalDevices = (PFN_vkEnumeratePhysicalDevices)gpa(inst, "vkEnumeratePhysicalDevices");
12031205
table->GetPhysicalDeviceFeatures = (PFN_vkGetPhysicalDeviceFeatures)gpa(inst, "vkGetPhysicalDeviceFeatures");
@@ -1211,7 +1213,7 @@ VKAPI_ATTR void VKAPI_CALL loader_init_instance_core_dispatch_table(VkLayerInsta
12111213
table->EnumerateDeviceLayerProperties = (PFN_vkEnumerateDeviceLayerProperties)gpa(inst, "vkEnumerateDeviceLayerProperties");
12121214
table->GetPhysicalDeviceSparseImageFormatProperties = (PFN_vkGetPhysicalDeviceSparseImageFormatProperties)gpa(inst, "vkGetPhysicalDeviceSparseImageFormatProperties");
12131215

1214-
// ---- Core 1_1 commands
1216+
// ---- Core Vulkan 1.1 commands
12151217
table->EnumeratePhysicalDeviceGroups = (PFN_vkEnumeratePhysicalDeviceGroups)gpa(inst, "vkEnumeratePhysicalDeviceGroups");
12161218
table->GetPhysicalDeviceFeatures2 = (PFN_vkGetPhysicalDeviceFeatures2)gpa(inst, "vkGetPhysicalDeviceFeatures2");
12171219
table->GetPhysicalDeviceProperties2 = (PFN_vkGetPhysicalDeviceProperties2)gpa(inst, "vkGetPhysicalDeviceProperties2");
@@ -1224,7 +1226,7 @@ VKAPI_ATTR void VKAPI_CALL loader_init_instance_core_dispatch_table(VkLayerInsta
12241226
table->GetPhysicalDeviceExternalFenceProperties = (PFN_vkGetPhysicalDeviceExternalFenceProperties)gpa(inst, "vkGetPhysicalDeviceExternalFenceProperties");
12251227
table->GetPhysicalDeviceExternalSemaphoreProperties = (PFN_vkGetPhysicalDeviceExternalSemaphoreProperties)gpa(inst, "vkGetPhysicalDeviceExternalSemaphoreProperties");
12261228

1227-
// ---- Core 1_3 commands
1229+
// ---- Core Vulkan 1.3 commands
12281230
table->GetPhysicalDeviceToolProperties = (PFN_vkGetPhysicalDeviceToolProperties)gpa(inst, "vkGetPhysicalDeviceToolProperties");
12291231
}
12301232

@@ -1524,7 +1526,7 @@ VKAPI_ATTR void* VKAPI_CALL loader_lookup_device_dispatch_table(const VkLayerDis
15241526
uint32_t api_version = VK_MAKE_API_VERSION(0, inst->app_api_version.major, inst->app_api_version.minor, inst->app_api_version.patch);
15251527

15261528

1527-
// ---- Core 1_0 commands
1529+
// ---- Core Vulkan 1.0 commands
15281530
if (!strcmp(name, "GetDeviceProcAddr")) {
15291531
if (dev->should_ignore_device_commands_from_newer_version && api_version < VK_API_VERSION_1_0) return NULL;
15301532
return (void *)table->GetDeviceProcAddr;
@@ -2010,7 +2012,7 @@ VKAPI_ATTR void* VKAPI_CALL loader_lookup_device_dispatch_table(const VkLayerDis
20102012
return (void *)table->CmdExecuteCommands;
20112013
}
20122014

2013-
// ---- Core 1_1 commands
2015+
// ---- Core Vulkan 1.1 commands
20142016
if (!strcmp(name, "BindBufferMemory2")) {
20152017
if (dev->should_ignore_device_commands_from_newer_version && api_version < VK_API_VERSION_1_1) return NULL;
20162018
return (void *)table->BindBufferMemory2;
@@ -2076,7 +2078,7 @@ VKAPI_ATTR void* VKAPI_CALL loader_lookup_device_dispatch_table(const VkLayerDis
20762078
return (void *)table->GetDescriptorSetLayoutSupport;
20772079
}
20782080

2079-
// ---- Core 1_2 commands
2081+
// ---- Core Vulkan 1.2 commands
20802082
if (!strcmp(name, "CmdDrawIndirectCount")) {
20812083
if (dev->should_ignore_device_commands_from_newer_version && api_version < VK_API_VERSION_1_2) return NULL;
20822084
return (void *)table->CmdDrawIndirectCount;
@@ -2130,7 +2132,7 @@ VKAPI_ATTR void* VKAPI_CALL loader_lookup_device_dispatch_table(const VkLayerDis
21302132
return (void *)table->GetDeviceMemoryOpaqueCaptureAddress;
21312133
}
21322134

2133-
// ---- Core 1_3 commands
2135+
// ---- Core Vulkan 1.3 commands
21342136
if (!strcmp(name, "CreatePrivateDataSlot")) {
21352137
if (dev->should_ignore_device_commands_from_newer_version && api_version < VK_API_VERSION_1_3) return NULL;
21362138
return (void *)table->CreatePrivateDataSlot;
@@ -2955,7 +2957,7 @@ VKAPI_ATTR void* VKAPI_CALL loader_lookup_instance_dispatch_table(const VkLayerI
29552957
*found_name = true;
29562958
name += 2;
29572959

2958-
// ---- Core 1_0 commands
2960+
// ---- Core Vulkan 1.0 commands
29592961
if (!strcmp(name, "DestroyInstance")) return (void *)table->DestroyInstance;
29602962
if (!strcmp(name, "EnumeratePhysicalDevices")) return (void *)table->EnumeratePhysicalDevices;
29612963
if (!strcmp(name, "GetPhysicalDeviceFeatures")) return (void *)table->GetPhysicalDeviceFeatures;
@@ -2969,7 +2971,7 @@ VKAPI_ATTR void* VKAPI_CALL loader_lookup_instance_dispatch_table(const VkLayerI
29692971
if (!strcmp(name, "EnumerateDeviceLayerProperties")) return (void *)table->EnumerateDeviceLayerProperties;
29702972
if (!strcmp(name, "GetPhysicalDeviceSparseImageFormatProperties")) return (void *)table->GetPhysicalDeviceSparseImageFormatProperties;
29712973

2972-
// ---- Core 1_1 commands
2974+
// ---- Core Vulkan 1.1 commands
29732975
if (!strcmp(name, "EnumeratePhysicalDeviceGroups")) return (void *)table->EnumeratePhysicalDeviceGroups;
29742976
if (!strcmp(name, "GetPhysicalDeviceFeatures2")) return (void *)table->GetPhysicalDeviceFeatures2;
29752977
if (!strcmp(name, "GetPhysicalDeviceProperties2")) return (void *)table->GetPhysicalDeviceProperties2;
@@ -2982,7 +2984,7 @@ VKAPI_ATTR void* VKAPI_CALL loader_lookup_instance_dispatch_table(const VkLayerI
29822984
if (!strcmp(name, "GetPhysicalDeviceExternalFenceProperties")) return (void *)table->GetPhysicalDeviceExternalFenceProperties;
29832985
if (!strcmp(name, "GetPhysicalDeviceExternalSemaphoreProperties")) return (void *)table->GetPhysicalDeviceExternalSemaphoreProperties;
29842986

2985-
// ---- Core 1_3 commands
2987+
// ---- Core Vulkan 1.3 commands
29862988
if (!strcmp(name, "GetPhysicalDeviceToolProperties")) return (void *)table->GetPhysicalDeviceToolProperties;
29872989

29882990
// ---- VK_KHR_surface extension commands
@@ -11881,7 +11883,7 @@ PFN_vkVoidFunction get_extension_device_proc_terminator(struct loader_device *de
1188111883
// pointers to "terminator functions".
1188211884
const VkLayerInstanceDispatchTable instance_disp = {
1188311885

11884-
// ---- Core 1_0 commands
11886+
// ---- Core Vulkan 1.0 commands
1188511887
.DestroyInstance = terminator_DestroyInstance,
1188611888
.EnumeratePhysicalDevices = terminator_EnumeratePhysicalDevices,
1188711889
.GetPhysicalDeviceFeatures = terminator_GetPhysicalDeviceFeatures,
@@ -11895,7 +11897,7 @@ const VkLayerInstanceDispatchTable instance_disp = {
1189511897
.EnumerateDeviceLayerProperties = terminator_EnumerateDeviceLayerProperties,
1189611898
.GetPhysicalDeviceSparseImageFormatProperties = terminator_GetPhysicalDeviceSparseImageFormatProperties,
1189711899

11898-
// ---- Core 1_1 commands
11900+
// ---- Core Vulkan 1.1 commands
1189911901
.EnumeratePhysicalDeviceGroups = terminator_EnumeratePhysicalDeviceGroups,
1190011902
.GetPhysicalDeviceFeatures2 = terminator_GetPhysicalDeviceFeatures2,
1190111903
.GetPhysicalDeviceProperties2 = terminator_GetPhysicalDeviceProperties2,
@@ -11908,7 +11910,7 @@ const VkLayerInstanceDispatchTable instance_disp = {
1190811910
.GetPhysicalDeviceExternalFenceProperties = terminator_GetPhysicalDeviceExternalFenceProperties,
1190911911
.GetPhysicalDeviceExternalSemaphoreProperties = terminator_GetPhysicalDeviceExternalSemaphoreProperties,
1191011912

11911-
// ---- Core 1_3 commands
11913+
// ---- Core Vulkan 1.3 commands
1191211914
.GetPhysicalDeviceToolProperties = terminator_GetPhysicalDeviceToolProperties,
1191311915

1191411916
// ---- VK_KHR_surface extension commands

loader/generated/vk_loader_extensions.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
* Copyright (c) 2015-2022 The Khronos Group Inc.
66
* Copyright (c) 2015-2022 Valve Corporation
77
* Copyright (c) 2015-2022 LunarG, Inc.
8+
* Copyright (c) 2021-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
9+
* Copyright (c) 2023-2023 RasterGrid Kft.
810
*
911
* Licensed under the Apache License, Version 2.0 (the "License");
1012
* you may not use this file except in compliance with the License.
@@ -208,7 +210,7 @@ VKAPI_ATTR VkResult VKAPI_CALL terminator_GetPhysicalDeviceToolProperties(
208210
// ICD function pointer dispatch table
209211
struct loader_icd_term_dispatch {
210212

211-
// ---- Core 1_0 commands
213+
// ---- Core Vulkan 1.0 commands
212214
PFN_vkCreateInstance CreateInstance;
213215
PFN_vkDestroyInstance DestroyInstance;
214216
PFN_vkEnumeratePhysicalDevices EnumeratePhysicalDevices;
@@ -225,7 +227,7 @@ struct loader_icd_term_dispatch {
225227
PFN_vkEnumerateInstanceLayerProperties EnumerateInstanceLayerProperties;
226228
PFN_vkGetPhysicalDeviceSparseImageFormatProperties GetPhysicalDeviceSparseImageFormatProperties;
227229

228-
// ---- Core 1_1 commands
230+
// ---- Core Vulkan 1.1 commands
229231
PFN_vkEnumerateInstanceVersion EnumerateInstanceVersion;
230232
PFN_vkEnumeratePhysicalDeviceGroups EnumeratePhysicalDeviceGroups;
231233
PFN_vkGetPhysicalDeviceFeatures2 GetPhysicalDeviceFeatures2;
@@ -239,7 +241,7 @@ struct loader_icd_term_dispatch {
239241
PFN_vkGetPhysicalDeviceExternalFenceProperties GetPhysicalDeviceExternalFenceProperties;
240242
PFN_vkGetPhysicalDeviceExternalSemaphoreProperties GetPhysicalDeviceExternalSemaphoreProperties;
241243

242-
// ---- Core 1_3 commands
244+
// ---- Core Vulkan 1.3 commands
243245
PFN_vkGetPhysicalDeviceToolProperties GetPhysicalDeviceToolProperties;
244246

245247
// ---- VK_KHR_surface extension commands

0 commit comments

Comments
 (0)