mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-04-24 10:38:53 +00:00
Work around missing Vulkan shaderStorageImageReadWithoutFormat on Intel GPUs
(cherry picked from commit 83b97d0e1c13efad0bad86c80dcecff0f0b4628c)
This commit is contained in:
parent
e37ede5f7f
commit
f434a650db
1 changed files with 5 additions and 1 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue