GS-ogl: Fix initialization shader warnings.

This commit is contained in:
lightningterror 2023-07-15 02:56:42 +02:00
parent f81d391546
commit e3593574b0
2 changed files with 6 additions and 4 deletions

View File

@ -46,7 +46,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, CAS_SHARPEN_ONLY);
imageStore(imgDst, ASU2(gxy), c);
gxy.x += 8u;

View File

@ -367,7 +367,7 @@ uniform ivec2 EMOD;
void ps_yuv()
{
vec4 i = sample_c();
vec4 o;
vec4 o = vec4(0.0f);
mat3 rgb2yuv; // Value from GS manual
rgb2yuv[0] = vec3(0.587, -0.311, -0.419);
@ -380,7 +380,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(EMOD.x) {
switch(EMOD.x)
{
case 0:
o.a = i.a;
break;
@ -395,7 +396,8 @@ void ps_yuv()
break;
}
switch(EMOD.y) {
switch(EMOD.y)
{
case 0:
o.rgb = i.rgb;
break;