|
7 | 7 |
|
8 | 8 | #include "Cafe/HW/Latte/Core/LatteBufferCache.h"
|
9 | 9 | #include "Cafe/HW/Latte/Core/LattePerformanceMonitor.h"
|
| 10 | +#include "Cafe/HW/Latte/Core/LatteOverlay.h" |
10 | 11 |
|
11 | 12 | #include "Cafe/HW/Latte/LegacyShaderDecompiler/LatteDecompiler.h"
|
12 | 13 |
|
|
29 | 30 | #include <glslang/Public/ShaderLang.h>
|
30 | 31 |
|
31 | 32 | #include <wx/msgdlg.h>
|
| 33 | +#include <wx/intl.h> // for localization |
32 | 34 |
|
33 | 35 | #ifndef VK_API_VERSION_MAJOR
|
34 | 36 | #define VK_API_VERSION_MAJOR(version) (((uint32_t)(version) >> 22) & 0x7FU)
|
@@ -285,7 +287,7 @@ void VulkanRenderer::GetDeviceFeatures()
|
285 | 287 | cemuLog_log(LogType::Force, "VK_EXT_pipeline_creation_cache_control not supported. Cannot use asynchronous shader and pipeline compilation");
|
286 | 288 | // if async shader compilation is enabled show warning message
|
287 | 289 | if (GetConfig().async_compile)
|
288 |
| - wxMessageBox(_("The currently installed graphics driver does not support the Vulkan extension necessary for asynchronous shader compilation. Asynchronous compilation cannot be used.\n \nRequired extension: VK_EXT_pipeline_creation_cache_control\n\nInstalling the latest graphics driver may solve this error."), _("Information"), wxOK | wxCENTRE); |
| 290 | + LatteOverlay_pushNotification(_("Async shader compile is enabled but not supported by the graphics driver\nCemu will use synchronous compilation which can cause additional stutter").utf8_string(), 10000); |
289 | 291 | }
|
290 | 292 | if (!m_featureControl.deviceExtensions.custom_border_color_without_format)
|
291 | 293 | {
|
@@ -2439,6 +2441,11 @@ void VulkanRenderer::GetTextureFormatInfoVK(Latte::E_GX2SURFFMT format, bool isD
|
2439 | 2441 | // used by Color Splash and Resident Evil
|
2440 | 2442 | formatInfoOut->vkImageFormat = VK_FORMAT_R8G8B8A8_UINT; // todo - should we use ABGR format?
|
2441 | 2443 | formatInfoOut->decoder = TextureDecoder_X24_G8_UINT::getInstance(); // todo - verify
|
| 2444 | + case Latte::E_GX2SURFFMT::R32_X8_FLOAT: |
| 2445 | + // seen in Disney Infinity 3.0 |
| 2446 | + formatInfoOut->vkImageFormat = VK_FORMAT_R32_SFLOAT; |
| 2447 | + formatInfoOut->decoder = TextureDecoder_NullData64::getInstance(); |
| 2448 | + break; |
2442 | 2449 | default:
|
2443 | 2450 | cemuLog_log(LogType::Force, "Unsupported color texture format {:04x}", (uint32)format);
|
2444 | 2451 | cemu_assert_debug(false);
|
|
0 commit comments