Page MenuHomePhabricator

[HLSL] add -P option for dxc mode.
Needs ReviewPublic

Authored by python3kgae on May 15 2022, 8:02 PM.



A new option -P is added for dxc mode.
The format is -P proprecossed_file_name
It will make compile preprocess only and output to proprecossed_file_name.

Internally it will be translated into -E -o proprecossed_file_name.

When -P exists, other output compile option like -Fo will be ignored because compiler will run preprocess only.
A warning will be report if this happened.

Diff Detail