Search Unity

Metal: Incompatible texture type [MTLTextureType2D]

Discussion in 'Shaders' started by jtate5, May 15, 2020.

  1. jtate5

    jtate5

    Joined:
    Jan 13, 2014
    Posts:
    24
    I'm getting the following error in the editor 2019.2.19f1 on Mac, OSX 10.15.4, AMD FirePro D700 (Mac Pro). Working fine on Windows.

    Metal: Shader[xxx]: Incompatible texture type [MTLTextureType2D] of texture bound at index 6, expected [MTLTextureType2DArray]

    Seems to be caused by this shader code:

    UNITY_DECLARE_TEX2DARRAY(_SpecularTex);

    UNITY_SAMPLE_TEX2DARRAY(_SpecularTex, fixed3(i.uv, UNITY_ACCESS_INSTANCED_PROP(Props, _SpecularTexSlice)));
     
  2. Gillissie

    Gillissie

    Joined:
    May 16, 2011
    Posts:
    305
    Gotta love the sound of crickets in these Unity forums.
     
    Hugo-ElectricMonkeys likes this.
  3. OwlBoy-

    OwlBoy-

    Joined:
    Dec 11, 2015
    Posts:
    24
    Same thing on 2018.4.20f1.
     
  4. Sami2k

    Sami2k

    Joined:
    Sep 2, 2020
    Posts:
    2
    Same on 2022.1.21f1 on Apple Silicone