File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Graphics/GraphicsEngineVulkan/src Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1251,6 +1251,13 @@ void EngineFactoryVkImpl::CreateDeviceAndContextsVk(const EngineVkCreateInfo& En
12511251 VERIFY_EXPR (PhysicalDevice->IsExtensionSupported (VK_EXT_HOST_IMAGE_COPY_EXTENSION_NAME));
12521252 DeviceExtensions.push_back (VK_EXT_HOST_IMAGE_COPY_EXTENSION_NAME);
12531253
1254+ const uint32_t vkVersion = Instance->GetVersion ();
1255+ if (Version{VK_VERSION_MAJOR (vkVersion), VK_VERSION_MINOR (vkVersion)} < Version{1 , 3 })
1256+ {
1257+ DeviceExtensions.push_back (VK_KHR_COPY_COMMANDS_2_EXTENSION_NAME);
1258+ DeviceExtensions.push_back (VK_KHR_FORMAT_FEATURE_FLAGS_2_EXTENSION_NAME);
1259+ }
1260+
12541261 EnabledExtFeats.HostImageCopy = DeviceExtFeatures.HostImageCopy ;
12551262
12561263 *NextExt = &EnabledExtFeats.HostImageCopy ;
You can’t perform that action at this time.
0 commit comments