Search Issue Tracker

Won't Fix

Votes

0

Found in

5.5.3f1

Issue ID

914293

Regression

No

Vertex shader compiling fails with "No matching function for call to 'TRANSFORM_TEX'" message

Mobile

-

Reproduction steps:
1) Download and open user's attached project
2) Build and run Test.unity scene on a device
-- Notice that one sphere is yellow and "No matching function for call to 'TRANSFORM_TEX" error is thrown inside logs

Expected result:
Both spheres should be yellow

Reproduced with:
5.5.0f3, 5.5.3p3, 5.6.1p1, 2017.2.0a1, 2018.1.7f1, 2018.2.4f1, 2018.3.0a8

Devices used to test:
Samsung Galaxy S9 (GLES 3.2) Android 8.0, GPU: Adreno 630
Sony Xperia Z3 (GLES 3.0) Android 6.0.1, GPU: Adreno 330
Google Nexus 7 (GLES 2.0) Android 5.1.1, GPU: NVIDIA Tegra 3
Huawei P9 (GLES 3.2) Android 7.0, GPU: Mali-T880

iPhone 6 iOS 10.2.1

  1. Resolution Note (2018.3.X):

    if you check UnityCG.glslinc you would see the reason specified:

    // Transforms float2 UV by scale/bias property (new method)
    // GLSL ES does not support ## concat operator so we also provide macro that expects xxx_ST
    #define TRANSFORM_TEX_ST(tex,namest) (tex.xy * namest.xy + namest.zw)
    #ifndef GL_ES
    #define TRANSFORM_TEX(tex,name) TRANSFORM_TEX_ST(tex, name##_ST)
    #endif

    so you should use TRANSFORM_TEX_ST if you insist on using glsl and running on gles

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.