Add debug compiler
This commit is contained in:
@@ -51,3 +51,4 @@ if (MSVC)
|
||||
else()
|
||||
target_compile_options(TheChef PRIVATE -Wall -Wextra -Wpedantic)
|
||||
endif()
|
||||
|
||||
|
||||
2
main.cpp
2
main.cpp
@@ -130,6 +130,8 @@ int main(int argc, char** argv) {
|
||||
// ----------------------------
|
||||
SpirvShaderCompiler::Options scOpt;
|
||||
scOpt.debugInfo = false; // set true if you want debug info in SPIR-V
|
||||
scOpt.defines = { "DEBUG=1" };
|
||||
|
||||
|
||||
// Common conventions (adjust to your folder layout):
|
||||
// - shaders live under <input>/shaders
|
||||
|
||||
Reference in New Issue
Block a user