Expose vulkan layer registration in renderdoccmd on win32. Closes #1690

* This is needed so that the functional tests can elevate and run renderdoccmd
  to register the vulkan layer, if needed.
* At the same time remove the old spammy message and ignore flag - this dates
  back to before the UI existed, and that should be the way users run RenderDoc
  generally and it has a good UI for walking through layer registration if
  needed.
* The command is always available, but will only show up in help if attention is
  needed.
* Also fix registering installs on shared drives.
This commit is contained in:
baldurk
2020-01-20 11:46:48 +00:00
parent 78c68d643a
commit 42841e23be
7 changed files with 292 additions and 221 deletions
+3 -1
View File
@@ -515,9 +515,11 @@ void CaptureDialog::vulkanLayerWarn_mouseClick()
QStringList renderdoccmdParams;
renderdoccmdParams << lit("vulkanregister");
renderdoccmdParams << lit("vulkanlayer");
if(system)
renderdoccmdParams << lit("--system");
else
renderdoccmdParams << lit("--user");
if(!RunProcessAsAdmin(cmd, renderdoccmdParams, this, true, regComplete))
regComplete();