@@ -324,14 +324,17 @@ class VKDevice : public offloadtest::Device {
324
324
Features12.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES;
325
325
VkPhysicalDeviceVulkan13Features Features13{};
326
326
Features13.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_FEATURES;
327
+ #ifdef VK_VERSION_1_4
327
328
VkPhysicalDeviceVulkan14Features Features14{};
328
329
Features14.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_4_FEATURES;
330
+ #endif
329
331
330
332
Features.pNext = &Features11;
331
333
Features11.pNext = &Features12;
332
334
Features12.pNext = &Features13;
335
+ #ifdef VK_VERSION_1_4
333
336
Features13.pNext = &Features14;
334
- Features14. pNext = NULL ;
337
+ # endif
335
338
vkGetPhysicalDeviceFeatures2 (Device, &Features);
336
339
337
340
Caps.insert (std::make_pair (
@@ -356,9 +359,11 @@ class VKDevice : public offloadtest::Device {
356
359
#define VULKAN13_FEATURE_BOOL (Name ) \
357
360
Caps.insert ( \
358
361
std::make_pair (#Name, make_capability<bool >(#Name, Features13.Name )));
362
+ #ifdef VK_VERSION_1_4
359
363
#define VULKAN14_FEATURE_BOOL (Name ) \
360
364
Caps.insert ( \
361
365
std::make_pair (#Name, make_capability<bool >(#Name, Features14.Name )));
366
+ #endif
362
367
#include " VKFeatures.def"
363
368
}
364
369
@@ -426,14 +431,17 @@ class VKDevice : public offloadtest::Device {
426
431
Features12.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES;
427
432
VkPhysicalDeviceVulkan13Features Features13{};
428
433
Features13.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_FEATURES;
434
+ #ifdef VK_VERSION_1_4
429
435
VkPhysicalDeviceVulkan14Features Features14{};
430
436
Features14.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_4_FEATURES;
437
+ #endif
431
438
432
439
Features.pNext = &Features11;
433
440
Features11.pNext = &Features12;
434
441
Features12.pNext = &Features13;
442
+ #ifdef VK_VERSION_1_4
435
443
Features13.pNext = &Features14;
436
- Features14. pNext = NULL ;
444
+ # endif
437
445
vkGetPhysicalDeviceFeatures2 (Device, &Features);
438
446
439
447
DeviceInfo.pEnabledFeatures = &Features.features ;
0 commit comments