diff options
| author | 2020-02-19 12:56:36 +0700 | |
|---|---|---|
| committer | 2020-02-19 12:56:36 +0700 | |
| commit | e61c7e93104a551324e1229b5e8a732288266c83 (patch) | |
| tree | 6482ef7e6b4b4944203a88f0dc4983bb4f1243c9 /src | |
| parent | vk_device: add check for shaderStorageImageReadWithoutFormat (diff) | |
| download | yuzu-e61c7e93104a551324e1229b5e8a732288266c83.tar.gz yuzu-e61c7e93104a551324e1229b5e8a732288266c83.tar.xz yuzu-e61c7e93104a551324e1229b5e8a732288266c83.zip | |
vk_device: setup shaderStorageImageReadWithoutFormat
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_device.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_device.cpp b/src/video_core/renderer_vulkan/vk_device.cpp index 9840f26e5..5df6441d3 100644 --- a/src/video_core/renderer_vulkan/vk_device.cpp +++ b/src/video_core/renderer_vulkan/vk_device.cpp | |||
| @@ -106,6 +106,8 @@ bool VKDevice::Create(const vk::DispatchLoaderDynamic& dldi, vk::Instance instan | |||
| 106 | features.tessellationShader = true; | 106 | features.tessellationShader = true; |
| 107 | features.fragmentStoresAndAtomics = true; | 107 | features.fragmentStoresAndAtomics = true; |
| 108 | features.shaderImageGatherExtended = true; | 108 | features.shaderImageGatherExtended = true; |
| 109 | features.shaderStorageImageReadWithoutFormat = | ||
| 110 | is_shader_storage_img_read_without_format_supported; | ||
| 109 | features.shaderStorageImageWriteWithoutFormat = true; | 111 | features.shaderStorageImageWriteWithoutFormat = true; |
| 110 | features.textureCompressionASTC_LDR = is_optimal_astc_supported; | 112 | features.textureCompressionASTC_LDR = is_optimal_astc_supported; |
| 111 | 113 | ||
| @@ -457,6 +459,8 @@ void VKDevice::SetupFamilies(const vk::DispatchLoaderDynamic& dldi, vk::SurfaceK | |||
| 457 | 459 | ||
| 458 | void VKDevice::SetupFeatures(const vk::DispatchLoaderDynamic& dldi) { | 460 | void VKDevice::SetupFeatures(const vk::DispatchLoaderDynamic& dldi) { |
| 459 | const auto supported_features{physical.getFeatures(dldi)}; | 461 | const auto supported_features{physical.getFeatures(dldi)}; |
| 462 | is_shader_storage_img_read_without_format_supported = | ||
| 463 | supported_features.shaderStorageImageReadWithoutFormat; | ||
| 460 | is_optimal_astc_supported = IsOptimalAstcSupported(supported_features, dldi); | 464 | is_optimal_astc_supported = IsOptimalAstcSupported(supported_features, dldi); |
| 461 | } | 465 | } |
| 462 | 466 | ||
| @@ -530,6 +534,7 @@ std::unordered_map<vk::Format, vk::FormatProperties> VKDevice::GetFormatProperti | |||
| 530 | vk::Format::eBc6HUfloatBlock, | 534 | vk::Format::eBc6HUfloatBlock, |
| 531 | vk::Format::eBc6HSfloatBlock, | 535 | vk::Format::eBc6HSfloatBlock, |
| 532 | vk::Format::eBc1RgbaSrgbBlock, | 536 | vk::Format::eBc1RgbaSrgbBlock, |
| 537 | vk::Format::eBc2SrgbBlock, | ||
| 533 | vk::Format::eBc3SrgbBlock, | 538 | vk::Format::eBc3SrgbBlock, |
| 534 | vk::Format::eBc7SrgbBlock, | 539 | vk::Format::eBc7SrgbBlock, |
| 535 | vk::Format::eAstc4x4SrgbBlock, | 540 | vk::Format::eAstc4x4SrgbBlock, |