Pre-existing, and hardly critical, but since we're touching it:
- /* Array lenght, or HLSL_ARRAY_ELEMENTS_COUNT_IMPLICIT if it is unknown yet while parsing. */ + /* Array length, or HLSL_ARRAY_ELEMENTS_COUNT_IMPLICIT if it is unknown yet while parsing. */
I'd propose "not known yet", and possibly "at parse time".
- /* Whether the parser is inside an state block (effects' metadata) inside a variable declarition. */ + /* Whether the parser is inside an state block (effects' metadata) inside a variable declaration. */
"a state block"
- /* This redudant load is expected to be deleted later by DCE */ + /* This redundant load is expected to be deleted later by DCE */
Missing punctuation. There are a couple of other instances of this as well.