@@ -94,18 +94,18 @@ Instead of manually checking for features and extensions, you can define your pr
9494
9595[,c++]
9696----
97- // Define the Best Practices profile
98- const VpProfileProperties bestPracticesProfile = {
99- VP_BEST_PRACTICES_PROFILE_NAME ,
100- VP_BEST_PRACTICES_PROFILE_SPEC_VERSION
97+ // Define the profile we want to use
98+ const VpProfileProperties profile = {
99+ VP_KHR_ROADMAP_2022_NAME ,
100+ VP_KHR_ROADMAP_2022_SPEC_VERSION
101101};
102102
103103// Check if the profile is supported
104104VkBool32 supported = false;
105- vpGetPhysicalDeviceProfileSupport(instance, physicalDevice, &bestPracticesProfile , &supported);
105+ vpGetPhysicalDeviceProfileSupport(instance, physicalDevice, &profile , &supported);
106106
107107if (!supported) {
108- throw std::runtime_error("Best Practices profile is not supported on this device");
108+ throw std::runtime_error("Roadmap 2022 profile is not supported on this device");
109109}
110110----
111111
@@ -256,18 +256,18 @@ With profiles, all of that complexity is reduced to:
256256[,c++]
257257----
258258// Define the profile
259- const VpProfileProperties bestPracticesProfile = {
260- VP_BEST_PRACTICES_PROFILE_NAME ,
261- VP_BEST_PRACTICES_PROFILE_SPEC_VERSION
259+ const VpProfileProperties profile = {
260+ VP_KHR_ROADMAP_2022_NAME ,
261+ VP_KHR_ROADMAP_2022_SPEC_VERSION
262262};
263263
264264// Check if the profile is supported
265265VkBool32 supported = false;
266- vpGetPhysicalDeviceProfileSupport(instance, physicalDevice, &bestPracticesProfile , &supported);
266+ vpGetPhysicalDeviceProfileSupport(instance, physicalDevice, &profile , &supported);
267267
268268if (supported) {
269269 // Create device with the profile - all features enabled automatically
270- vpCreateDevice(physicalDevice, &deviceCreateInfo, &bestPracticesProfile , nullptr, &device);
270+ vpCreateDevice(physicalDevice, &deviceCreateInfo, &profile , nullptr, &device);
271271
272272 // Now we can use any feature guaranteed by the profile without checks
273273 // For example, dynamic rendering is always available:
0 commit comments