<div dir="ltr"><div><div><div><div>Hi,<br><br></div>Is ShaderEffect QML element supposed to work on device (I'm on 1.0.4.20)?<br><br></div>I'm always getting this error (content of log property):<br><br>
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Monospace';font-size:9pt;color:rgb(60,60,60)">QOpenGLShader::compile(Fragment): failed</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Monospace';font-size:9pt;color:rgb(60,60,60)">*** Problematic Fragment shader source code ***</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Monospace';font-size:9pt;color:rgb(60,60,60)">[W] QOpenGLShaderPrivate::compile:326 - #ifndef GL_FRAGMENT_PRECISION_HIGH</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Monospace';font-size:9pt;color:rgb(60,60,60)">#define highp mediump</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Monospace';font-size:9pt;color:rgb(60,60,60)">#endif</span></p>
<p style="margin:0px;text-indent:0px;font-family:'Monospace';font-size:9pt;color:rgb(60,60,60)"><br></p><p style="margin:0px;text-indent:0px;font-family:'Monospace';font-size:9pt;color:rgb(60,60,60)">[... my shader code ...]</p>
<p style="margin:0px;text-indent:0px;font-family:'Monospace';font-size:9pt;color:rgb(60,60,60)"><br></p><p style="margin:0px;text-indent:0px;font-family:'Monospace';font-size:9pt;color:rgb(60,60,60)">
<style type="text/css">
p, li { white-space: pre-wr</style>
</p><p style="margin:0px;text-indent:0px"><span style="font-family:'Monospace';font-size:9pt;color:rgb(60,60,60)">***</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Monospace';font-size:9pt;color:rgb(60,60,60)">QQuickCustomMaterialShader: Shader compilation failed:</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Monospace';font-size:9pt;color:rgb(60,60,60)">[W] QQuickCustomMaterialShader::compile:285 - "failed" </span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Monospace';font-size:9pt;color:rgb(60,60,60)">*** Fragment shader ***</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Monospace';font-size:9pt;color:rgb(60,60,60)">failed</span></p>
<p style="margin:0px;text-indent:0px;font-family:'Monospace';font-size:9pt;font-weight:600;color:rgb(20,20,190)"><br></p><br clear="all"></div>It works just fine on emulator though.<br><br></div><div>Are there some (known) differencies from the GLSL code "understood" by the emulator and a real device?<br>
<br></div><div>Thanks,<br></div><div><div><div><div><div><br>-- <br>Luca Donaggio
</div></div></div></div></div></div>