Pasta is usually made from either wheat flour or rice flour , but it can be made with other types of flour . Outside Italy , dry pasta is frequently made from other types of flour ( such as wheat flour ) , but this yields a softer product that can not be cooked al dente the same way . There are many types of wheat flour with varying gluten and protein depending on variety of grain used .