yuzu/src/shader_recompiler/backend
Wollnashorn 780240e697 shader_recompiler: Add subpixel offset for correct rounding at ImageGather
On AMD a subpixel offset of 1/512 of the texel size is applied to the texture coordinates at a ImageGather call to ensure the rounding at the texel centers is done the same way as in Maxwell or other Nvidia architectures.
See https://www.reedbeta.com/blog/texture-gathers-and-coordinate-precision/ for more details why this might be necessary.

This should fix shadow artifacts at object edges in Zelda: Breath of the Wild (#9957, #6956).
2023-04-08 16:12:30 +02:00
..
glasm emit_glasm_image: Fix TXQ with MSAA textures 2023-01-29 13:42:34 -05:00
glsl shader_recompiler: Add subpixel offset for correct rounding at ImageGather 2023-04-08 16:12:30 +02:00
spirv shader_recompiler: Add subpixel offset for correct rounding at ImageGather 2023-04-08 16:12:30 +02:00
bindings.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00