Search Unity

Tessellation on metal is capped at 16 instead of 64

Discussion in 'Shaders' started by Enrico-Monese, May 29, 2018.

  1. Enrico-Monese

    Enrico-Monese

    Joined:
    Dec 18, 2015
    Posts:
    77
    While trying to do some tessellation shaders I noticed that any value above 16 had no effect. Metal is able to go to a max of 64 according to Apple documentation. There is also mentions that MTLRenderPipelineDescriptor.maxTessellationFactor get initialized to a default value of 16.

    Is there some way to change this in Unity? If not could this be exposed or at least increased to 64?
     
  2. Invertex

    Invertex

    Joined:
    Nov 7, 2013
    Posts:
    1,550
    I'm not seeing anything with a hard set value in the CGINCLUDES, nor even metal specific functionality defined, only that UNITY_CAN_COMPILE_TESSELLATION is now set for metal as well. So it must be something on their compiler side.