Comic Shader Error: implicit truncation of vector type

  • nu_bie
  • Topic Author
More
4 years 8 months ago #1 by nu_bie Comic Shader Error: implicit truncation of vector type was created 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.

  • nu_bie
  • Topic Author
More
4 years 8 months ago #2 by nu_bie Replied by nu_bie on topic Comic Shader Error: implicit truncation of vector type
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.

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.