Paint > Shape > Make Mask Shape

Creates a mask from curves.

Ensure that you are working on a paint layer. Mask shapes cannot be created on shape layers.

Double-clicking Paint > Shape > Make Mask Shape opens the Shape Editor which lets you modify the parameters of the shape.