return VK_SUCCESS;
}
-void
-vk_set_physical_device_features_1_0(struct vk_features *all_features,
- const VkPhysicalDeviceFeatures *pFeatures)
+VKAPI_ATTR void VKAPI_CALL
+vk_common_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
+ VkPhysicalDeviceFeatures2 *pFeatures)
{
+ VK_FROM_HANDLE(vk_physical_device, pdevice, physicalDevice);
+
% for flag in pdev_features:
- if (pFeatures->${flag})
- all_features->${flag} = true;
+ pFeatures->features.${flag} = pdevice->supported_features.${flag};
+% endfor
+
+ vk_foreach_struct(ext, pFeatures) {
+ switch (ext->sType) {
+% for f in feature_structs:
+ case ${f.s_type}: {
+ ${f.c_type} *features = (void *) ext;
+% for flag in f.features:
+ features->${flag} = pdevice->supported_features.${get_renamed_feature(f.c_type, flag)};
+% endfor
+ break;
+ }
+
% endfor
+ default:
+ break;
+ }
+ }
}
void
}
}
-VKAPI_ATTR void VKAPI_CALL
-vk_common_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
- VkPhysicalDeviceFeatures2 *pFeatures)
+void
+vk_set_physical_device_features_1_0(struct vk_features *all_features,
+ const VkPhysicalDeviceFeatures *pFeatures)
{
- VK_FROM_HANDLE(vk_physical_device, pdevice, physicalDevice);
-
% for flag in pdev_features:
- pFeatures->features.${flag} = pdevice->supported_features.${flag};
-% endfor
-
- vk_foreach_struct(ext, pFeatures) {
- switch (ext->sType) {
-% for f in feature_structs:
- case ${f.s_type}: {
- ${f.c_type} *features = (void *) ext;
-% for flag in f.features:
- features->${flag} = pdevice->supported_features.${get_renamed_feature(f.c_type, flag)};
-% endfor
- break;
- }
-
+ if (pFeatures->${flag})
+ all_features->${flag} = true;
% endfor
- default:
- break;
- }
- }
}
""", output_encoding='utf-8')
};
void
-vk_set_physical_device_features_1_0(struct vk_features *all_features,
- const VkPhysicalDeviceFeatures *pFeatures);
-
-void
vk_set_physical_device_features(struct vk_features *all_features,
const VkPhysicalDeviceFeatures2 *pFeatures);
+void
+vk_set_physical_device_features_1_0(struct vk_features *all_features,
+ const VkPhysicalDeviceFeatures *pFeatures);
+
#ifdef __cplusplus
}
#endif