You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (strstr(var->name, "gl_") == var->name)
{
if (NULL == strstr(var->name, "gl_FragData_") ) {
if (!var->data.used && !var->data.assigned)
continue;
}
}
The problem is that there are vars gl_FragData, and gl_FragData_0/1/etc.. gl_FragData is used and assigned, but gl_FragData_0/1/etc are not. In that case xlatMtlShaderOutput structure is just left empty causing error when building with metal compiler.
The text was updated successfully, but these errors were encountered:
I had to add this code to fix metal printer:
bkaradzic@22be3e7
The problem is that there are vars
gl_FragData
, andgl_FragData_0/1/etc.
.gl_FragData
is used and assigned, butgl_FragData_0/1/etc
are not. In that casexlatMtlShaderOutput
structure is just left empty causing error when building with metal compiler.The text was updated successfully, but these errors were encountered: