Fix default capture options not being applied in 0.20 and above

* These capture options used to be propagated through from the C++ struct
  when there was a C++/CLI dll used for interop between C# and C++. Now
  that we use P/Invoke this needs to be added back so a couple of default
  options can be enabled
This commit is contained in:
baldurk
2014-05-26 13:53:30 +01:00
parent 07d16672a4
commit 3ccd8980a3
2 changed files with 21 additions and 1 deletions
+20
View File
@@ -78,5 +78,25 @@ namespace renderdoc
public bool RefAllResources;
public bool SaveAllInitials;
public bool CaptureAllCmdLists;
public static CaptureOptions Defaults
{
get
{
CaptureOptions defs = new CaptureOptions();
defs.AllowVSync = true;
defs.AllowFullscreen = true;
defs.DebugDeviceMode = false;
defs.CaptureCallstacks = false;
defs.CaptureCallstacksOnlyDraws = false;
defs.DelayForDebugger = 0;
defs.CacheStateObjects = true;
defs.HookIntoChildren = false;
defs.RefAllResources = false;
defs.SaveAllInitials = false;
defs.CaptureAllCmdLists = false;
return defs;
}
}
};
};
+1 -1
View File
@@ -42,7 +42,7 @@ namespace renderdocui.Windows.Dialogs
{
public class CaptureSettings
{
public CaptureOptions Options = new CaptureOptions();
public CaptureOptions Options = CaptureOptions.Defaults;
public bool Inject = false;
public bool AutoStart = false;
public string Executable = "";