Search Unity

too many parameters in function call at line 115 - Error meaning?

Discussion in 'Shaders' started by drudiverse, Sep 21, 2014.

  1. drudiverse

    drudiverse

    Joined:
    May 16, 2013
    Posts:
    218
    i have a simple function and when i add some maths to it it sais:

    too many parameters in function call at line 115

    in pragma target 3.0 with 65k instructions limit

    What does it mean?
     
  2. mouurusai

    mouurusai

    Joined:
    Dec 2, 2011
    Posts:
    350
    I absolutely not sure but maybe you can pass one fat structure instead many separate parameters.
     
  3. Farfarer

    Farfarer

    Joined:
    Aug 17, 2010
    Posts:
    2,249
    Well, post the code, maybe we can help.

    But the error means that you're trying to do something like lerp(a,b,c,d) when lerp only takes a,b and c.
     
  4. drudiverse

    drudiverse

    Joined:
    May 16, 2013
    Posts:
    218
    I had called a function with 2 floats instead of a float2 , thisfunction(A, B) instead of thisfunction(float2(A,B))

    thanks!