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