Using layer mask in raycast

For some reason theres something Im not getting. And Im having trouble setting this up right.

I want the raycast to only cast a ray against layer 12.

This is what I thought I needed to do:

Physics.Raycast(ray_point3_point7, out hit_point7,1000,0 << 11);

Then you need to shift:

 1 << 12

See this page for some more details. Shifting 0 won’t do anything since a 0 shifted any number of places is still 0.