diff --git a/bin/resources/shaders/vulkan/cas.glsl b/bin/resources/shaders/vulkan/cas.glsl index 4099852998..8a71173095 100644 --- a/bin/resources/shaders/vulkan/cas.glsl +++ b/bin/resources/shaders/vulkan/cas.glsl @@ -53,7 +53,7 @@ void main() AU2 gxy = ARmp8x8(gl_LocalInvocationID.x)+AU2(gl_WorkGroupID.x<<4u,gl_WorkGroupID.y<<4u); // Filter. - AF4 c; + AF4 c = vec4(0.0f); CasFilter(c.r, c.g, c.b, gxy, const0, const1, sharpenOnly != 0); imageStore(imgDst, ASU2(gxy), c); gxy.x += 8u; diff --git a/bin/resources/shaders/vulkan/convert.glsl b/bin/resources/shaders/vulkan/convert.glsl index e780c1b9e3..46acdbee45 100644 --- a/bin/resources/shaders/vulkan/convert.glsl +++ b/bin/resources/shaders/vulkan/convert.glsl @@ -348,7 +348,7 @@ layout(push_constant) uniform cb10 void ps_yuv() { vec4 i = sample_c(v_tex); - vec4 o; + vec4 o = vec4(0.0f); mat3 rgb2yuv; rgb2yuv[0] = vec3(0.587, -0.311, -0.419); @@ -361,7 +361,8 @@ void ps_yuv() float Cr = float(0xE0)/255.0f * yuv.y + float(0x80)/255.0f; float Cb = float(0xE0)/255.0f * yuv.z + float(0x80)/255.0f; - switch(EMODA) { + switch(EMODA) + { case 0: o.a = i.a; break; @@ -376,7 +377,8 @@ void ps_yuv() break; } - switch(EMODC) { + switch(EMODC) + { case 0: o.rgb = i.rgb; break;