Matteo Bruni : d3dcompiler: Add some checks to function definitions.