Comic Shader Error: implicit truncation of vector type

More
9 months 1 week ago #1 by nu_bie
Been getting this error since 4.8.2 with no discernable negatives, but it's doing weird artifacts on 4.90 now.
\reshade-shaders\Shaders\Comic.fx(414, 33): warning X3206: implicit truncation of vector type
\reshade-shaders\Shaders\Comic.fx(416, 17): warning X3206: implicit truncation of vector type
\reshade-shaders\Shaders\Comic.fx(417, 17): warning X3206: implicit truncation of vector type
\reshade-shaders\Shaders\Comic.fx(418, 17): warning X3206: implicit truncation of vector type
\reshade-shaders\Shaders\Comic.fx(419, 17): warning X3206: implicit truncation of vector type
\reshade-shaders\Shaders\Comic.fx(422, 17): warning X3206: implicit truncation of vector type
\reshade-shaders\Shaders\Comic.fx(423, 17): warning X3206: implicit truncation of vector type
\reshade-shaders\Shaders\Comic.fx(424, 17): warning X3206: implicit truncation of vector type
\reshade-shaders\Shaders\Comic.fx(425, 17): warning X3206: implicit truncation of vector type

The lines in question
        float3 colorC = tex2Dfetch(s, int4(vpos, 0, 0)).rgb;//C
        float3 color1[4] = {
            tex2Dfetch(s, int4(vpos + int2( 0, -1), 0, 0)).rgb,//N
            tex2Dfetch(s, int4(vpos + int2( 1, -1), 0, 0)).rgb,//NE
            tex2Dfetch(s, int4(vpos + int2( 1,  0), 0, 0)).rgb,//E
            tex2Dfetch(s, int4(vpos + int2( 1,  1), 0, 0)).rgb,//SE
        };
        float3 color2[4] = {    
            tex2Dfetch(s, int4(vpos + int2( 0,  1), 0, 0)).rgb,//S
            tex2Dfetch(s, int4(vpos + int2(-1,  1), 0, 0)).rgb,//SW
            tex2Dfetch(s, int4(vpos + int2(-1,  0), 0, 0)).rgb,//W
            tex2Dfetch(s, int4(vpos + int2(-1, -1), 0, 0)).rgb //NW
        };
Any help appreciated

Please Log in or Create an account to join the conversation.

More
9 months 1 week ago #2 by nu_bie
so after some searching, found out the problem (int4 to int2 and delete the 0,0). the warning is gone but the artifact remains. looks like the shader is broken in 4.9 unrelated to the warning. shame, guess I'll rollback.

Please Log in or Create an account to join the conversation.