mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-14 01:41:10 +00:00
Add option to hard-break on validation errors in tests
* On D3D we also start checking for leaking objects on shutdown (Vulkan this is done by default, GL we have no control over validation).
This commit is contained in:
14 files changed
+1102
-3
No files matched your search
@@ -445,6 +445,7 @@ std::string GraphicsTest::dataRoot;
|
||||
int GraphicsTest::screenWidth = 400;
|
||||
int GraphicsTest::screenHeight = 300;
|
||||
bool GraphicsTest::debugDevice = false;
|
||||
bool GraphicsTest::breakOnDebug = false;
|
||||
|
||||
void GraphicsTest::Prepare(int argc, char **argv)
|
||||
{
|
||||
@@ -476,6 +477,11 @@ void GraphicsTest::Prepare(int argc, char **argv)
|
||||
debugDevice = true;
|
||||
}
|
||||
|
||||
if(!strcmp(argv[i], "--break-on-debug"))
|
||||
{
|
||||
breakOnDebug = true;
|
||||
}
|
||||
|
||||
if(i + 1 < argc && (!strcmp(argv[i], "--frames") || !strcmp(argv[i], "--framecount") ||
|
||||
!strcmp(argv[i], "--max-frames")))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user