GS-vk: Fix initialization shader warnings.

This commit is contained in:
lightningterror 2023-07-15 02:57:25 +02:00
parent 65a3a97ab2
commit 9b3d31cd47
2 changed files with 6 additions and 4 deletions

View File

@ -53,7 +53,7 @@ void main()
AU2 gxy = ARmp8x8(gl_LocalInvocationID.x)+AU2(gl_WorkGroupID.x<<4u,gl_WorkGroupID.y<<4u); AU2 gxy = ARmp8x8(gl_LocalInvocationID.x)+AU2(gl_WorkGroupID.x<<4u,gl_WorkGroupID.y<<4u);
// Filter. // Filter.
AF4 c; AF4 c = vec4(0.0f);
CasFilter(c.r, c.g, c.b, gxy, const0, const1, sharpenOnly != 0); CasFilter(c.r, c.g, c.b, gxy, const0, const1, sharpenOnly != 0);
imageStore(imgDst, ASU2(gxy), c); imageStore(imgDst, ASU2(gxy), c);
gxy.x += 8u; gxy.x += 8u;

View File

@ -348,7 +348,7 @@ layout(push_constant) uniform cb10
void ps_yuv() void ps_yuv()
{ {
vec4 i = sample_c(v_tex); vec4 i = sample_c(v_tex);
vec4 o; vec4 o = vec4(0.0f);
mat3 rgb2yuv; mat3 rgb2yuv;
rgb2yuv[0] = vec3(0.587, -0.311, -0.419); 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 Cr = float(0xE0)/255.0f * yuv.y + float(0x80)/255.0f;
float Cb = float(0xE0)/255.0f * yuv.z + float(0x80)/255.0f; float Cb = float(0xE0)/255.0f * yuv.z + float(0x80)/255.0f;
switch(EMODA) { switch(EMODA)
{
case 0: case 0:
o.a = i.a; o.a = i.a;
break; break;
@ -376,7 +377,8 @@ void ps_yuv()
break; break;
} }
switch(EMODC) { switch(EMODC)
{
case 0: case 0:
o.rgb = i.rgb; o.rgb = i.rgb;
break; break;