It is fairly trivial to add, likely to be useful; and global variables are not nearly so bad in single-file programs.
Migrated to https://github.com/gpuweb/WHLSL/issues/114