@@ -123,6 +123,12 @@ VkDevice create_logical_device(
123123 defined (ETVK_INSPECT_PIPELINES )
124124 VK_KHR_PIPELINE_EXECUTABLE_PROPERTIES_EXTENSION_NAME ,
125125#endif /* VK_KHR_pipeline_executable_properties && ETVK_INSPECT_PIPELINES */
126+ #ifdef VK_KHR_cooperative_matrix
127+ VK_KHR_COOPERATIVE_MATRIX_EXTENSION_NAME ,
128+ #endif /* VK_KHR_cooperative_matrix */
129+ #ifdef VK_NV_cooperative_matrix2
130+ VK_NV_COOPERATIVE_MATRIX_2_EXTENSION_NAME ,
131+ #endif /* VK_NV_cooperative_matrix2 */
126132 };
127133
128134 std::vector<const char *> enabled_device_extensions;
@@ -179,6 +185,20 @@ VkDevice create_logical_device(
179185 extension_list_top = &shader_int_dot_product_features;
180186#endif /* VK_KHR_shader_integer_dot_product */
181187
188+ #ifdef VK_KHR_cooperative_matrix
189+ VkPhysicalDeviceCooperativeMatrixFeaturesKHR cooperative_matrix_features{
190+ physical_device.cooperative_matrix_features };
191+ cooperative_matrix_features.pNext = extension_list_top;
192+ extension_list_top = &cooperative_matrix_features;
193+ #endif /* VK_KHR_cooperative_matrix */
194+
195+ #ifdef VK_NV_cooperative_matrix2
196+ VkPhysicalDeviceCooperativeMatrix2FeaturesNV cooperative_matrix2_features{
197+ physical_device.cooperative_matrix2_features };
198+ cooperative_matrix2_features.pNext = extension_list_top;
199+ extension_list_top = &cooperative_matrix2_features;
200+ #endif /* VK_NV_cooperative_matrix2 */
201+
182202 device_create_info.pNext = extension_list_top;
183203
184204 VkDevice handle = nullptr ;
0 commit comments