yuzu/src/shader_recompiler/backend/glsl
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
..
emit_glsl_atomic.cpp general: fix spelling mistakes 2023-03-12 11:33:01 -04:00
emit_glsl_barriers.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
emit_glsl_bitwise_conversion.cpp shader_recompiler: Remove S32 IR type 2023-01-25 22:03:15 -05:00
emit_glsl_composite.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
emit_glsl_context_get_set.cpp Video_core: Address feedback 2023-01-04 14:39:42 -05:00
emit_glsl_control_flow.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
emit_glsl_convert.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
emit_glsl_floating_point.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
emit_glsl_image.cpp shader_recompiler: Add subpixel offset for correct rounding at ImageGather 2023-04-08 16:12:30 +02:00
emit_glsl_instructions.h Merge pull request #9694 from ameerj/txq-mips 2023-01-29 12:27:26 -05:00
emit_glsl_integer.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
emit_glsl_logical.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
emit_glsl_memory.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
emit_glsl_not_implemented.cpp CMakeLists: Disable C4100 and C4324 2022-10-22 15:02:04 -04:00
emit_glsl_select.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
emit_glsl_shared_memory.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
emit_glsl_special.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
emit_glsl_undefined.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
emit_glsl_warp.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
emit_glsl.cpp MacroHLE: Add OpenGL Support 2023-01-01 16:43:58 -05:00
emit_glsl.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
glsl_emit_context.cpp glsl_emit_context: Remove redeclarations of gl_SampleID and gl_SampleMask 2023-02-08 19:34:39 -05:00
glsl_emit_context.h general: fix spelling mistakes 2023-03-12 11:33:01 -04:00
var_alloc.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
var_alloc.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00