Mapping Shaders?

Ok, dont’ know if there is already a thread on this under a different name; haven’t found one so far.

Ok, here’s the question / quest. I’m trying to find a way to use an image texture (such as a checker pattern) to control the display of shaders. For example, using said checker pattern, black shows a glass shader, and the white, an emission shader is shown.

Use the texture as the mix factor of a mix shader node which mixes both the two material shaders
Black = 0 = 100% top mix shader input
White = 1 = 100% bottom mix shader input