add support for VR end-of-frame markers via glDebugMessageInsert

This commit is contained in:
Remi Palandri
2018-05-31 09:44:48 +01:00
committed by Baldur Karlsson
parent 569f11b757
commit 83ba2e95e7
4 changed files with 18 additions and 28 deletions
+2 -1
View File
@@ -200,9 +200,10 @@ ExecuteResult StartAndroidPackageForCapture(const char *host, const char *packag
adbExecCommand(deviceID, "shell am force-stop " + packageName);
// enable the vulkan layer (will only be used by vulkan programs)
adbExecCommand(deviceID, "shell setprop debug.vulkan.layers " RENDERDOC_VULKAN_LAYER_NAME);
// if in VR mode, enable frame delimiter markers
adbExecCommand(deviceID, "shell setprop debug.vr.profiler 1");
// create the data directory we will use for storing, in case the application doesn't
adbExecCommand(deviceID, "shell mkdir -p /sdcard/Android/data/" + packageName);
// set our property with the capture options encoded, to be picked up by the library on the device
adbExecCommand(deviceID, StringFormat::Fmt("shell setprop debug.rdoc.RENDERDOC_CAPTUREOPTS %s",
opts.EncodeAsString().c_str()));