Hi, everyone.
I have a problem on Unity5(b22).
this application on iPhone5s and iPhone6,always crashes with these errors.(PC and iPhone5c, work fine.)
:138:25: error: no matching member function for call to ‘sample’
float4 texture = tex1.sample(smp1, mtl_i.texcoord1);
~~^
/System/Library/
PrivateFrameworks/GPUCompiler.framework/Versions/A/lib/clang/3.5/include/metal/metal_texture:362:25:
note: candidate function not viable: no known conversion from ‘float3’
(aka ‘vector_float3’) to ‘float2’ (aka ‘vector_float2’) for 2nd
argument
METAL_FUNC vec<T,4> sample(sampler s, float2 coord, int2 offset =
int2(0)) const {
I think it is caused by metal , but i can’t find above codes in my project.
this problem do not occur on Unity4.6.1.
is anybody have ideas?