eden/src/shader_recompiler
rayman30 643f11d972
[VK, MacOS] Fix strict output type mismatch on Metal (MK8D/TOTK fix) (#3414)
Metal validation requires fragment shader output types to strictly match the render target format (e.g., writing float to RGBA32Uint is invalid).

This commit:
1. Adds color_output_types to RuntimeInfo.
2. Detects Integer/SignedInteger render targets in the Vulkan backend (MoltenVK only).
3. Updates the SPIR-V emitter to declare the correct output type (Uint/Sint) and bitcast values accordingly.

This fixes the VK_ERROR_INITIALIZATION_FAILED crash on macOS.

Co-authored-by: crueter <crueter@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3414
Co-authored-by: rayman30 <silentbitdev@gmail.com>
Co-committed-by: rayman30 <silentbitdev@gmail.com>
2026-01-29 17:24:36 +01:00
..
backend [VK, MacOS] Fix strict output type mismatch on Metal (MK8D/TOTK fix) (#3414) 2026-01-29 17:24:36 +01:00
frontend [video_core] Fix 1x graphics bugs without performance loss (#3385) 2026-01-26 03:36:30 +01:00
ir_opt [vk] properly handle multithreading with global constants without using TLS (#3368) 2026-01-22 11:34:08 +01:00
CMakeLists.txt [shader_recompiler] macro-ify flow_test and attribute (#2900) 2025-11-13 13:22:02 +01:00
environment.h [vk] properly handle multithreading with global constants without using TLS (#3368) 2026-01-22 11:34:08 +01:00
exception.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
host_translate_info.h shader_recompiler: Align SSBO offsets to meet host requirements 2023-10-31 20:10:54 -04:00
object_pool.h Move to Clang Format 15 2023-01-29 17:49:42 -07:00
profile.h shader_recompiler: throw on missing geometry streams in geometry shaders 2024-02-19 00:34:00 -05:00
program_header.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
runtime_info.h [VK, MacOS] Fix strict output type mismatch on Metal (MK8D/TOTK fix) (#3414) 2026-01-29 17:24:36 +01:00
shader_info.h [android, feat] add "Fix Bloom Effects" toggle (#3359) 2026-01-26 06:59:59 +01:00
stage.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
varying_state.h MacroHLE: Add HLE replacement for base vertex and base instance. 2023-01-01 16:43:57 -05:00