Update vk-bootstrap to 1.3

This commit is contained in:
Charles Giessen 2022-02-05 18:26:21 -07:00 committed by Charles Giessen
parent d61be2cbc3
commit d2898f822d
5 changed files with 834 additions and 224 deletions

View File

@ -18,7 +18,7 @@ else ()
FetchContent_Declare(
VulkanHeaders
GIT_REPOSITORY https://github.com/KhronosGroup/Vulkan-Headers
GIT_TAG v1.2.171
GIT_TAG v1.3.204
)
FetchContent_MakeAvailable(VulkanHeaders)
target_link_libraries(vk-bootstrap-vulkan-headers INTERFACE Vulkan::Headers)

View File

@ -1,8 +1,9 @@
#
# generate_dispatch.py
#
#
# Copyright © 2021 Cody Goodson (contact@vibimanx.com)
# Copyright © 2022 Charles Giessen (charles@lunarg.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
# documentation files (the “Software”), to deal in the Software without restriction, including without
@ -63,8 +64,8 @@ if xmltodict_missing:
import urllib.request
import xmltodict
try:
response = urllib.request.urlopen('https://raw.githubusercontent.com/KhronosGroup/Vulkan-Headers/master/registry/vk.xml')
try:
response = urllib.request.urlopen('https://raw.githubusercontent.com/KhronosGroup/Vulkan-Headers/main/registry/vk.xml')
except urllib.error.URLError as error:
print("Failed to download vk.xml due to error:");
print(error.reason)
@ -171,6 +172,7 @@ for command in device_commands:
# License
license = '/* \n'
license += ' * Copyright © 2021 Cody Goodson (contact@vibimanx.com)\n'
license += ' * Copyright © 2022 Charles Giessen (charles@lunarg.com)\n'
license += ' * \n'
license += ' * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated\n'
license += ' * documentation files (the “Software”), to deal in the Software without restriction, including without\n'
@ -290,6 +292,6 @@ header = license + info + body
header_file = codecs.open("../src/VkBootstrapDispatch.h", "w", "utf-8")
header_file.write(header)
header_file.close();
header_file.close()
input("Generation finished. Press Enter to continue...")
print("Generation finished.")

View File

@ -1331,6 +1331,14 @@ PhysicalDeviceSelector& PhysicalDeviceSelector::set_required_features_12(
return *this;
}
#endif
#if defined(VK_API_VERSION_1_3)
PhysicalDeviceSelector& PhysicalDeviceSelector::set_required_features_13(
VkPhysicalDeviceVulkan13Features features_13) {
features_13.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_FEATURES;
add_required_extension_features(features_13);
return *this;
}
#endif
PhysicalDeviceSelector& PhysicalDeviceSelector::defer_surface_initialization() {
criteria.defer_surface_initialization = true;
return *this;

View File

@ -538,6 +538,11 @@ class PhysicalDeviceSelector {
// Must have vulkan version 1.2
PhysicalDeviceSelector& set_required_features_12(VkPhysicalDeviceVulkan12Features features_12);
#endif
#if defined(VK_API_VERSION_1_3)
// Require a physical device which supports the features in VkPhysicalDeviceVulkan13Features.
// Must have vulkan version 1.3
PhysicalDeviceSelector& set_required_features_13(VkPhysicalDeviceVulkan13Features features_13);
#endif
// Used when surface creation happens after physical device selection.
// Warning: This disables checking if the physical device supports a given surface.

File diff suppressed because it is too large Load Diff