Invalid bit depths now generate a compile error.