Skip to content

Commit

Permalink
Updated Vulkan headers to 1.3.267
Browse files Browse the repository at this point in the history
  • Loading branch information
SaschaWillems committed Oct 7, 2023
1 parent 04eb935 commit 6a29453
Show file tree
Hide file tree
Showing 7 changed files with 354 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Vulkan-Headers
Submodule Vulkan-Headers updated 74 files
+8 −0 .gitattributes
+0 −1 .github/ISSUE_TEMPLATE/bug_report.md
+0 −1 .github/pull_request_template.md
+45 −16 .github/workflows/ci.yml
+8 −0 .gitignore
+15 −0 .reuse/dep5
+3 −13 BUILD.gn
+6 −2 BUILD.md
+14 −36 CMakeLists.txt
+10 −0 CODE_OF_CONDUCT.adoc
+0 −1 CODE_OF_CONDUCT.md
+7 −1 CONTRIBUTING.md
+6 −0 INTEGRATION.md
+18 −0 LICENSE.md
+0 −0 LICENSES/Apache-2.0.txt
+9 −0 LICENSES/MIT.txt
+31 −6 README.md
+11 −0 SECURITY.md
+0 −5 cmake/VulkanHeadersConfig.cmake.in
+3 −1 include/vk_video/vulkan_video_codec_h264std.h
+3 −1 include/vk_video/vulkan_video_codec_h264std_decode.h
+34 −28 include/vk_video/vulkan_video_codec_h264std_encode.h
+8 −5 include/vk_video/vulkan_video_codec_h265std.h
+3 −1 include/vk_video/vulkan_video_codec_h265std_decode.h
+56 −49 include/vk_video/vulkan_video_codec_h265std_encode.h
+5 −0 include/vk_video/vulkan_video_codecs_common.h
+4 −18 include/vulkan/vk_icd.h
+4 −18 include/vulkan/vk_layer.h
+3,199 −0 include/vulkan/vulkan.cppm
+1,618 −684 include/vulkan/vulkan.hpp
+28 −0 include/vulkan/vulkan_android.h
+418 −142 include/vulkan/vulkan_beta.h
+1,289 −52 include/vulkan/vulkan_core.h
+1 −0 include/vulkan/vulkan_directfb.h
+939 −193 include/vulkan/vulkan_enums.hpp
+425 −357 include/vulkan/vulkan_extension_inspection.hpp
+63 −9 include/vulkan/vulkan_format_traits.hpp
+4 −0 include/vulkan/vulkan_fuchsia.h
+1,206 −106 include/vulkan/vulkan_funcs.hpp
+2 −0 include/vulkan/vulkan_ggp.h
+614 −24 include/vulkan/vulkan_handles.hpp
+1,436 −118 include/vulkan/vulkan_hash.hpp
+270 −0 include/vulkan/vulkan_hpp_macros.hpp
+1 −0 include/vulkan/vulkan_ios.h
+1 −0 include/vulkan/vulkan_macos.h
+2 −0 include/vulkan/vulkan_metal.h
+1,321 −446 include/vulkan/vulkan_raii.hpp
+54 −0 include/vulkan/vulkan_screen.h
+988 −0 include/vulkan/vulkan_shared.hpp
+636 −19 include/vulkan/vulkan_static_assertions.hpp
+10,675 −937 include/vulkan/vulkan_structs.hpp
+813 −208 include/vulkan/vulkan_to_string.hpp
+1 −0 include/vulkan/vulkan_vi.h
+2,699 −0 include/vulkan/vulkan_video.hpp
+1 −0 include/vulkan/vulkan_wayland.h
+9 −0 include/vulkan/vulkan_win32.h
+1 −0 include/vulkan/vulkan_xcb.h
+1 −0 include/vulkan/vulkan_xlib.h
+1 −0 include/vulkan/vulkan_xlib_xrandr.h
+11 −1 registry/apiconventions.py
+2 −0 registry/cgenerator.py
+33 −0 registry/generator.py
+278 −7 registry/genvk.py
+115 −45 registry/parse_dependency.py
+134 −9 registry/reg.py
+60,761 −45,663 registry/validusage.json
+89 −65 registry/video.xml
+2,092 −352 registry/vk.xml
+19 −0 registry/vkconventions.py
+12 −12 tests/CMakeLists.txt
+30 −0 tests/add_subdirectory/CMakeLists.txt
+7 −9 tests/find_package/CMakeLists.txt
+8 −0 tests/vk_icd.c
+8 −0 tests/vk_layer.c
301 changes: 300 additions & 1 deletion VulkanDeviceInfoExtensions.cpp

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions VulkanDeviceInfoExtensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* THIS HEADER IS AUTO-GENERATED, DO NOT CHANGE
*
* Copyright (C) 2022 by Sascha Willems (www.saschawillems.de)
* Copyright (C) 2022-2023 by Sascha Willems (www.saschawillems.de)
*
* This code is free software, you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -55,6 +55,10 @@ class VulkanDeviceInfoExtensions
bool extensionSupported(const char* extensionName);
void readPhysicalFeatures_AMD();
void readPhysicalProperties_AMD();
void readPhysicalFeatures_AMDX();
void readPhysicalProperties_AMDX();
void readPhysicalFeatures_ANDROID();
void readPhysicalProperties_ANDROID();
void readPhysicalFeatures_ARM();
void readPhysicalProperties_ARM();
void readPhysicalFeatures_EXT();
Expand All @@ -64,16 +68,18 @@ class VulkanDeviceInfoExtensions
void readPhysicalFeatures_INTEL();
void readPhysicalFeatures_KHR();
void readPhysicalProperties_KHR();
void readPhysicalProperties_MSFT();
void readPhysicalFeatures_NV();
void readPhysicalProperties_NV();
void readPhysicalProperties_NVX();
void readPhysicalFeatures_QCOM();
void readPhysicalProperties_QCOM();
void readPhysicalFeatures_QNX();
void readPhysicalFeatures_SEC();
void readPhysicalFeatures_VALVE();

public:
const uint32_t vkHeaderVersion = 250;
const uint32_t vkHeaderVersion = 267;
std::vector<Feature2> features2;
std::vector<Property2> properties2;
std::vector<VkExtensionProperties> extensions;
Expand Down
22 changes: 22 additions & 0 deletions extensionlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ VK_AMD_shader_core_properties
VK_AMD_shader_core_properties2
VK_AMD_device_coherent_memory
VK_AMD_shader_early_and_late_fragment_tests
AMDX
VK_AMDX_shader_enqueue
ANDROID
VK_ANDROID_external_format_resolve
ARM
VK_ARM_rasterization_order_attachment_access
VK_ARM_shader_core_properties
Expand Down Expand Up @@ -38,10 +42,12 @@ VK_EXT_shader_atomic_float
VK_EXT_host_query_reset
VK_EXT_index_type_uint8
VK_EXT_extended_dynamic_state
VK_EXT_host_image_copy
VK_EXT_shader_atomic_float2
VK_EXT_swapchain_maintenance1
VK_EXT_shader_demote_to_helper_invocation
VK_EXT_texel_buffer_alignment
VK_EXT_depth_bias_control
VK_EXT_device_memory_report
VK_EXT_robustness2
VK_EXT_custom_border_color
Expand All @@ -64,6 +70,7 @@ VK_EXT_device_address_binding_report
VK_EXT_depth_clip_control
VK_EXT_primitive_topology_list_restart
VK_EXT_pipeline_properties
VK_EXT_frame_boundary
VK_EXT_multisampled_render_to_single_sampled
VK_EXT_extended_dynamic_state2
VK_EXT_color_write_enable
Expand All @@ -80,6 +87,7 @@ VK_EXT_image_sliced_view_of_3d
VK_EXT_depth_clamp_zero_one
VK_EXT_non_seamless_cube_map
VK_EXT_image_compression_control_swapchain
VK_EXT_nested_command_buffer
VK_EXT_extended_dynamic_state3
VK_EXT_subpass_merge_feedback
VK_EXT_shader_module_identifier
Expand All @@ -89,6 +97,7 @@ VK_EXT_pipeline_protected_access
VK_EXT_shader_object
VK_EXT_mutable_descriptor_type
VK_EXT_pipeline_library_group_handles
VK_EXT_dynamic_rendering_unused_attachments
VK_EXT_attachment_feedback_loop_dynamic_state
HUAWEI
VK_HUAWEI_subpass_shading
Expand Down Expand Up @@ -141,7 +150,11 @@ VK_KHR_zero_initialize_workgroup_memory
VK_KHR_workgroup_memory_explicit_layout
VK_KHR_ray_tracing_maintenance1
VK_KHR_maintenance4
VK_KHR_maintenance5
VK_KHR_ray_tracing_position_fetch
VK_KHR_cooperative_matrix
MSFT
VK_MSFT_layered_driver
NV
VK_NV_corner_sampled_image
VK_NV_shader_sm_builtins
Expand All @@ -166,9 +179,12 @@ VK_NV_external_memory_rdma
VK_NV_displacement_micromap
VK_NV_copy_memory_indirect
VK_NV_memory_decompression
VK_NV_device_generated_commands_compute
VK_NV_linear_color_attachment
VK_NV_optical_flow
VK_NV_ray_tracing_invocation_reorder
VK_NV_extended_sparse_address_space
VK_NV_descriptor_pool_overallocation
NVX
VK_NVX_multiview_per_view_attributes
QCOM
Expand All @@ -177,6 +193,12 @@ VK_QCOM_image_processing
VK_QCOM_tile_properties
VK_QCOM_multiview_per_view_viewports
VK_QCOM_multiview_per_view_render_areas
VK_QCOM_image_processing2
VK_QCOM_filter_cubic_weights
VK_QCOM_ycbcr_degamma
VK_QCOM_filter_cubic_clamp
QNX
VK_QNX_external_memory_screen_buffer
SEC
VK_SEC_amigo_profiling
VALVE
Expand Down
24 changes: 21 additions & 3 deletions tools/deviceExtensionsFileGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ function __construct($xml, $typecontainer)
// Skip Vulkan SC only extensions
if ($ext_node['supported'] == 'vulkansc') {
continue;
}
}
$features2_node = null;
$properties2_node = null;
// We're only interested in extensions with property or feature types
// We're only interested in extensions with property or feature types
foreach ($ext_node->require as $require) {
foreach ($require as $requirement) {
if (strcasecmp($requirement->getName, 'type')) {
Expand Down Expand Up @@ -176,7 +176,7 @@ public function generateFeatures2CodeBlock($extension)
if (in_array($type, ['VkStructureType', 'void'])) {
continue;
}
$name = (string)$member->name;
$name = (string)$member->name;
$res .= "\t\tpushFeature2(extension, \"$name\", extFeatures->$name);\n";
}
$res .= "\t\tdelete extFeatures;\n";
Expand Down Expand Up @@ -287,9 +287,18 @@ public function writeImplementation(string $file_name, string $output_dir, $exte
if (count($ext_arr) > 0) {
$cpp_features_block .= "void VulkanDeviceInfoExtensions::readPhysicalFeatures_$ext_group() {\n";
$cpp_features_block .= "\tVkPhysicalDeviceFeatures2 deviceFeatures2{};\n";
if ($ext_group == 'QNX') {
$cpp_features_block .= "#if defined(VK_USE_PLATFORM_SCREEN_QNX)\n";
}
if ($ext_group == 'ANDROID') {
$cpp_features_block .= "#if defined(VK_USE_PLATFORM_ANDROID)\n";
}
foreach ($ext_arr as $extension) {
$cpp_features_block .= $this->generateFeatures2CodeBlock($extension);
}
if (in_array($ext_group, ['QNX', 'ANDROID']) != false) {
$cpp_features_block .= "#endif\n";
}
$cpp_features_block .= "}\n";
}
// Properties2
Expand All @@ -299,9 +308,18 @@ public function writeImplementation(string $file_name, string $output_dir, $exte
if (count($ext_arr) > 0) {
$cpp_properties_block .= "void VulkanDeviceInfoExtensions::readPhysicalProperties_$ext_group() {\n";
$cpp_properties_block .= "\tVkPhysicalDeviceProperties2 deviceProps2{};\n";
if ($ext_group == 'QNX') {
$cpp_properties_block .= "#if defined(VK_USE_PLATFORM_SCREEN_QNX)\n";
}
if ($ext_group == 'ANDROID') {
$cpp_properties_block .= "#if defined(VK_USE_PLATFORM_ANDROID)\n";
}
foreach ($ext_arr as $extension) {
$cpp_properties_block .= $this->generateProperties2CodeBlock($extension);
}
if (in_array($ext_group, ['QNX', 'ANDROID']) != false) {
$cpp_properties_block .= "#endif\n";
}
$cpp_properties_block .= "}\n";
}
}
Expand Down
2 changes: 1 addition & 1 deletion tools/templates/VulkanDeviceInfoExtensions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* THIS HEADER IS AUTO-GENERATED, DO NOT CHANGE
*
* Copyright (C) 2022 by Sascha Willems (www.saschawillems.de)
* Copyright (C) 2022-2023 by Sascha Willems (www.saschawillems.de)
*
* This code is free software, you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion tools/templates/VulkanDeviceInfoExtensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* THIS HEADER IS AUTO-GENERATED, DO NOT CHANGE
*
* Copyright (C) 2022 by Sascha Willems (www.saschawillems.de)
* Copyright (C) 2022-2023 by Sascha Willems (www.saschawillems.de)
*
* This code is free software, you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down

0 comments on commit 6a29453

Please sign in to comment.