I'm having issues with text not rendering on new iPhone and iPad models (2018 devices, such as the new iPhone Xs). On other iOS devices Glyphy is working as expected.
I've been debugging the issue and I've isolated the problem to Glyphy shaders, specifically the "glyphy_texture1D_func" in the demo-atlas.glsl file:
uniform sampler2D u_atlas_tex;
uniform ivec4 u_atlas_info;
#define GLYPHY_TEXTURE1D_EXTRA_DECLS , sampler2D _tex, ivec4 _atlas_info, ivec2 _atlas_pos
#define GLYPHY_TEXTURE1D_EXTRA_ARGS , _tex, _atlas_info, _atlas_pos
#define GLYPHY_DEMO_EXTRA_ARGS , u_atlas_tex, u_atlas_info, gi.atlas_pos
vec4
glyphy_texture1D_func (int offset GLYPHY_TEXTURE1D_EXTRA_DECLS)
{
vec2 pos = (vec2 (_atlas_pos.xy * item_geom +
ivec2 (mod (float (offset), float (item_geom.x)), offset / item_geom.x)) +
+ vec2 (.5, .5)) / vec2(_atlas_info.xy);
return texture2D (_tex, pos);
}
It seems that there is an issue with the _tex sampler2D variable passed to the texture2D function.
This is the error that I'm getting in the iOS app...
Compiler failed with XPC_ERROR_CONNECTION_INTERRUPTED
Compiler failed with XPC_ERROR_CONNECTION_INTERRUPTED
Compiler failed with XPC_ERROR_CONNECTION_INTERRUPTED
MTLCompiler: Compilation failed with XPC_ERROR_CONNECTION_INTERRUPTED on 3 try
GLDDevice failed to build pipeline state: Compiler encountered an internal error
GLDDevice failed to build pipeline state: Compiler encountered an internal error
GLDDevice failed to build pipeline state: Compiler encountered an internal error
GLDDevice failed to build pipeline state: Compiler encountered an internal error
GLDDevice failed to build pipeline state: Compiler encountered an internal error
GLDDevice failed to build pipeline state: Compiler encountered an internal error
GLDDevice failed to build pipeline state: Compiler encountered an internal error
GLDDevice failed to build pipeline state: Compiler encountered an internal error
GLDDevice failed to build pipeline state: Compiler encountered an internal error
GLDDevice failed to build pipeline state: Compiler encountered an internal error
Is this a driver issue with the new Apple iOS devices? If so, is there a workaround?
Thank you.