Add an example program for simple C++ API usage
The program demonstrates basic shader compilation using the Shaderc C++ API. For clarity, each method is deliberately self-contained. Techniques demonstrated: - Preprocessing GLSL source text - Compiling a shader to SPIR-V assembly text - Compliing a shader to a SPIR-V binary module - Setting basic options: setting a preprocessor symbol. - Checking compilation status and extracting an error message.
Showing
- CMakeLists.txt 1 addition, 0 deletionsCMakeLists.txt
- README.md 1 addition, 0 deletionsREADME.md
- examples/CMakeLists.txt 1 addition, 0 deletionsexamples/CMakeLists.txt
- examples/online-compile/CMakeLists.txt 3 additions, 0 deletionsexamples/online-compile/CMakeLists.txt
- examples/online-compile/main.cc 123 additions, 0 deletionsexamples/online-compile/main.cc
Loading
Please register or sign in to comment