mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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 = "";
|
||||
|
||||
Reference in New Issue
Block a user