From 9a0356364c5fb59ea47fa18adc8cf98bfafcbdb2 Mon Sep 17 00:00:00 2001 From: Phoenix Date: Tue, 10 Sep 2024 15:59:03 +1000 Subject: [PATCH] chore: remove unused shader code for frame interpolation - Removed fragment shader that blended previous and current frames with a 50% linear interpolation - This shader was no longer required or used in the current pipeline - Better Interpolation Method Used --- .../host_shaders/vulkan_interpolation.frag | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 src/video_core/host_shaders/vulkan_interpolation.frag diff --git a/src/video_core/host_shaders/vulkan_interpolation.frag b/src/video_core/host_shaders/vulkan_interpolation.frag deleted file mode 100644 index 18d1eb736..000000000 --- a/src/video_core/host_shaders/vulkan_interpolation.frag +++ /dev/null @@ -1,16 +0,0 @@ -#version 450 - -layout (binding = 0) uniform sampler2D previous_frame; -layout (binding = 1) uniform sampler2D current_frame; -layout (binding = 2, rgba8) uniform writeonly image2D result_image; - -void main() { - vec2 uv = gl_FragCoord.xy / imageSize(result_image); - vec4 prev_color = texture(previous_frame, uv); - vec4 curr_color = texture(current_frame, uv); - - // Simple linear interpolation (50% blend) - vec4 interpolated_color = mix(prev_color, curr_color, 0.5); - - imageStore(result_image, ivec2(gl_FragCoord.xy), interpolated_color); -} \ No newline at end of file