File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -1035,6 +1035,11 @@ impl PhysicalDeviceProperties {
1035
1035
if requested_features. intersects ( wgt:: Features :: EXPERIMENTAL_MESH_SHADER ) {
1036
1036
extensions. push ( khr:: maintenance4:: NAME ) ;
1037
1037
}
1038
+
1039
+ // Optional `VK_KHR_shader_integer_dot_product`
1040
+ if self . supports_extension ( khr:: shader_integer_dot_product:: NAME ) {
1041
+ extensions. push ( khr:: shader_integer_dot_product:: NAME ) ;
1042
+ }
1038
1043
}
1039
1044
1040
1045
// Optional `VK_KHR_swapchain_mutable_format`
@@ -2011,6 +2016,17 @@ impl super::Adapter {
2011
2016
if features. contains ( wgt:: Features :: EXPERIMENTAL_RAY_HIT_VERTEX_RETURN ) {
2012
2017
capabilities. push ( spv:: Capability :: RayQueryPositionFetchKHR )
2013
2018
}
2019
+ if self . phd_capabilities . device_api_version >= vk:: API_VERSION_1_3
2020
+ || enabled_extensions. contains ( & khr:: shader_integer_dot_product:: NAME )
2021
+ {
2022
+ // See <https://registry.khronos.org/vulkan/specs/latest/man/html/VK_KHR_shader_integer_dot_product.html#_new_spir_v_capabilities>.
2023
+ capabilities. extend ( & [
2024
+ spv:: Capability :: DotProductInputAllKHR ,
2025
+ spv:: Capability :: DotProductInput4x8BitKHR ,
2026
+ spv:: Capability :: DotProductInput4x8BitPackedKHR ,
2027
+ spv:: Capability :: DotProductKHR ,
2028
+ ] ) ;
2029
+ }
2014
2030
spv:: Options {
2015
2031
lang_version : match self . phd_capabilities . device_api_version {
2016
2032
// Use maximum supported SPIR-V version according to
You can’t perform that action at this time.
0 commit comments