Some built-in functions like dFdx is not available in a vertex shader, then a function that calls such built-in function should not be in a vertex shader. Closes #1701