Spliting Pic on a Material for Optimization

As the attachment, me would like to get the method to split the material into multiple single black blocks so that each of them could be used separately.
Now, plz kindly suggest with the material nodes pic. Many thanks!

I think you want to use material functions for that.

HTH