| 12 | #include <iostream> |
| 13 | |
| 14 | static void print_usage(const char *path) |
| 15 | { |
| 16 | printf(R"(usage: %s [options] <filename> |
| 17 | |
| 18 | Options: |
| 19 | -h, --help Print this help. |
| 20 | --version Print ReShade version. |
| 21 | |
| 22 | -D <id>=<text> Define a preprocessor macro. |
| 23 | -I <path> Add directory to include search path. |
| 24 | -P <path> Pre-process to file. If <path> is "-", then result is written to standard output instead. |
| 25 | |
| 26 | -Fo <file> Output SPIR-V binary to the given file. |
| 27 | -Fe <file> Output warnings and errors to the given file. |
| 28 | |
| 29 | --glsl Print GLSL code for the previously specified entry point. |
| 30 | --hlsl Print HLSL code for the previously specified entry point. |
| 31 | --shader-model <value> HLSL shader model version. Can be 30, 40, 41, 50, ... |
| 32 | |
| 33 | --width <value> Value of the 'BUFFER_WIDTH' preprocessor macro. |
| 34 | --height <value> Value of the 'BUFFER_HEIGHT' preprocessor macro. |
| 35 | --invert-y Insert code to invert the Y component of the output position in vertex shaders (only applies to SPIR-V). |
| 36 | --spec-constants Convert uniform variables to specialization constants. |
| 37 | --vulkan-semantics Generate GLSL/SPIR-V code under Vulkan semantics, instead of OpenGL semantics. |
| 38 | |
| 39 | -Zi Enable debug information. |
| 40 | )", path); |
| 41 | } |
| 42 | |
| 43 | int main(int argc, char *argv[]) |
| 44 | { |