When the shaders share some code (e.g. structs or functions), MGL cannot produce a metal library, supposedly because it first concatenates all shader sources into one single file to be compiled.
An example, with slightly modified texture_test shaders (I added an add_vec4 in both vertex and frag shaders):
When the shaders share some code (e.g. structs or functions), MGL cannot produce a metal library, supposedly because it first concatenates all shader sources into one single file to be compiled.
An example, with slightly modified texture_test shaders (I added an add_vec4 in both vertex and frag shaders):