MCPcopy Create free account
hub / github.com/crosire/reshade / print_usage

Function print_usage

tools/fxc.cpp:14–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#include <iostream>
13
14static void print_usage(const char *path)
15{
16 printf(R"(usage: %s [options] <filename>
17
18Options:
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
43int main(int argc, char *argv[])
44{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected