Add support for GLSL source-level debugging with RenderDoc (--generate-spirv-debug-info)
This commit is contained in:
parent
4714e95896
commit
80a36ff985
5 changed files with 25 additions and 18 deletions
|
|
@ -458,6 +458,7 @@ void Main::print_help(const char *p_binary) {
|
|||
#if DEBUG_ENABLED
|
||||
OS::get_singleton()->print(" --gpu-abort Abort on graphics API usage errors (usually validation layer errors). May help see the problem if your system freezes.\n");
|
||||
#endif
|
||||
OS::get_singleton()->print(" --generate-spirv-debug-info Generate SPIR-V debug information. This allows source-level shader debugging with RenderDoc.\n");
|
||||
OS::get_singleton()->print(" --remote-debug <uri> Remote debug (<protocol>://<host/IP>[:<port>], e.g. tcp://127.0.0.1:6007).\n");
|
||||
OS::get_singleton()->print(" --single-threaded-scene Scene tree runs in single-threaded mode. Sub-thread groups are disabled and run on the main thread.\n");
|
||||
#if defined(DEBUG_ENABLED)
|
||||
|
|
@ -1019,6 +1020,8 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
|||
} else if (I->get() == "--gpu-abort") {
|
||||
Engine::singleton->abort_on_gpu_errors = true;
|
||||
#endif
|
||||
} else if (I->get() == "--generate-spirv-debug-info") {
|
||||
Engine::singleton->generate_spirv_debug_info = true;
|
||||
} else if (I->get() == "--tablet-driver") {
|
||||
if (I->next()) {
|
||||
tablet_driver = I->next()->get();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue