Posts

Post not yet marked as solved
3 Replies
1.8k Views
I have a vertex/fragment shader pair that passes a color to the fragment shader with the 'flat' qualifier. On iOS (9.2.1, iPad Mini 2) it's generating a "mismatch between vertex and fragment function" error when I attempt to create a pipeline. According to the Metal Shading Language docs though:"Sampling and interpolation qualifiers are used with inputs to fragment functions declared with the stage_in qualifier."Which suggests you should *not* put any type of interpolation qualifier on vertex shader output. If I do add the 'flat' in the vertex shader then everything seems to work fine. On OSX there is no error in either case. Is this a bug in the compiler, or are the docs wrong?
Posted
by eodabash.
Last updated
.