diff options
author | Zephyron <zephyron@citron-emu.org> | 2025-02-03 17:17:22 +1000 |
---|---|---|
committer | Zephyron <zephyron@citron-emu.org> | 2025-02-03 17:17:22 +1000 |
commit | 94c4ef8946ab880ab0b30e0ce2a5d4513f9d8da8 (patch) | |
tree | c53ac680f23cb8a2c51b170dffac2aa2d17075a9 /src/citron/main.cpp | |
parent | 14065ae7cb139a7b2639ace7701038c36d9abd6b (diff) |
video_core/vulkan: Improve texture format conversion handling
Refactors and improves the texture format conversion system in the Vulkan
renderer:
- Adds proper sRGB to linear conversion for depth formats
- Improves shader accuracy for ABGR8 SRGB to D24S8 conversion
- Adds gamma correction and proper depth range clamping
- Moves GetSupportedFormat implementation to header
- Cleans up format conversion switch statement
- Removes redundant format conversion paths
The changes improve accuracy when converting between color and depth
formats, particularly for sRGB sources. The shader improvements ensure
proper gamma correction and depth range handling.
Technical changes:
- Improves sRGB to linear conversion in fragment shader
- Adds proper depth value clamping
- Consolidates format conversion logic
- Removes duplicate GetSupportedFormat implementation
Diffstat (limited to 'src/citron/main.cpp')
0 files changed, 0 insertions, 0 deletions