There are no layer1 switches.
Layer 2 understands MAC, he can make decisions based on MAC only.
Layer 3 understands IP, he can make decisions based on IP as well as MAC. A Layer 3 switch is automatically also layer 2 capable.
For comprehensive understanding of the subject, WIKI OSI MODEL.