﻿From HLSLCrossCompiler by James Jones:
https://github.com/James-Jones/HLSLCrossCompiler