CompileMSL supports marking vertex attributes and resource bindings as to whether they are used by the shader, and feeding back to caller.