Search Unity

Shader limitation?

Discussion in 'Shaders' started by ruhua, Sep 3, 2013.

  1. ruhua

    ruhua

    Joined:
    Jul 12, 2013
    Posts:
    8
    Is there a limit for the length of the frag/vertx shader?
    I have custom shader that works on desktop and some android device. But on one android pad, the systeminfo shows 0 graphicsMemorySize and -2048 systemMemorySize.

    So just curious about the limitation of the shader.
    Does that stop working(fallback to another) when there is not enough vram avaiable?Or even the gpu is not working when the vram is determined to be of size 0? $Untitled-2.png
     
  2. imaginaryhuman

    imaginaryhuman

    Joined:
    Mar 21, 2010
    Posts:
    5,834
    It might be that its just not reporting the numbers properly?
     
  3. ruhua

    ruhua

    Joined:
    Jul 12, 2013
    Posts:
    8
    Well,one of the shader does not work properly. It falls back to the diffuse shader indeed.
    The hardware inspectation shows that the gpu is mali 400, and it supports es 2.0. But seems like it is not compatible with the shader targeting 2.0 version.

    So my guess is it's either a bug of the hardware driver or one bug for unity to support 2GB memory shared with gpu.