Syntax
cgfx2json [options]
Converts a CgFX file into a JSON file.
Shader parameter semantics are ignored, parameters will be matched at runtime by the variable name.
It is recommended that the CgFX file compiles program code either to GLSL profiles or to latest, the later is required if assembly programs are requested.
For more information about the CgFX file format please read the NVidia tutorial.
For more information about JSON please visit json.org.
Show version number and exit.
Show help message and exit.
Verbose output.
Generate assembly programs instead of GLSL shaders.
JSON output pretty printing indent size, defaults to 0.
Input file to process.
Output file to process.
Output dependencies.
Dependencies output to FILE.
In order to convert a CgFX file to a JSON file you must provide both the input and the output.
"tools/bin/*PLATFORM*/cgfx2json" -v -j 2 -i assets/shaders/standard.cgfx -o apps/sampleapp/shaders/standard.cgfx.json