Work around missing Vulkan shaderStorageImageReadWithoutFormat on Intel GPUs

(cherry picked from commit 83b97d0e1c13efad0bad86c80dcecff0f0b4628c)
This commit is contained in:
Stephen Saunders 2023-10-17 14:07:53 -04:00
parent e37ede5f7f
commit f434a650db

View file

@ -225,6 +225,7 @@ private:
#if USE_OPTICK
VK_GOOGLE_DISPLAY_TIMING_EXTENSION_NAME,
#endif
VK_KHR_FORMAT_FEATURE_FLAGS_2_EXTENSION_NAME,
VK_KHR_SYNCHRONIZATION_2_EXTENSION_NAME
},
};
@ -849,9 +850,12 @@ bool DeviceManager_VK::createDevice()
APPEND_EXTENSION( sync2Supported, sync2Features )
#undef APPEND_EXTENSION
vk::PhysicalDeviceFeatures actualDeviceFeatures;
m_VulkanPhysicalDevice.getFeatures( &actualDeviceFeatures );
auto deviceFeatures = vk::PhysicalDeviceFeatures()
.setShaderImageGatherExtended( true )
.setShaderStorageImageReadWithoutFormat( true )
.setShaderStorageImageReadWithoutFormat( actualDeviceFeatures.shaderStorageImageReadWithoutFormat )
.setSamplerAnisotropy( true )
.setTessellationShader( true )
.setTextureCompressionBC( true )