Commit Graph

692 Commits

Author SHA1 Message Date
baldurk 45e7b64eb4 Don't apply durations twice if there's a marker next to a drawcall 2017-01-05 11:37:30 +00:00
baldurk 07fd9c8e0c Speculative fix for crash with buffer viewer being closed early.
* I received a few crash reports with a disposed buffer viewer still
  doing work. My theory is that some operation took long enough that the
  user was able to close the viewer (perhaps *because* it was taking a
  long time) and subsequent work then didn't handle the window having
  been closed.
2017-01-04 16:47:58 +00:00
baldurk 4a2e901807 Don't display pixel context right-click context menu if no log is loaded
* This fixes an uploaded crash, where this context menu could launch
  operations that crash without a capture to work on.
2017-01-04 16:45:54 +00:00
baldurk b088b21757 Allow renaming the label on captures in the connection window. Refs #476 2017-01-03 17:53:12 +00:00
baldurk 3541731817 Clarify what type of clipping the clipping overlay shows 2017-01-03 16:33:32 +00:00
baldurk 8c8cf07385 Add helper menu items to tools menu if rdocself.dll is loaded 2017-01-02 20:16:27 +00:00
baldurk 6aee676386 Open transform feedback buffers on double click from GL pipe viewer 2017-01-02 20:16:27 +00:00
baldurk 3002c00337 Add warning message if python libraries aren't loaded (mostly for devs) 2017-01-02 20:16:26 +00:00
baldurk e494f13518 Include duration column in event browser export if available. Refs #468 2017-01-02 20:16:26 +00:00
Michael Vance 366581fb3f Add 'run to sample/load/gather' and 'run to generated inf/nan'.
- ShaderDebugState now carries a 'flags' that can be updated when the interpreter is run. Currently supported flags are 'sample/load/gather insn' or 'insn generated nan/inf'.
- DXBC interpreter now pushes operation type into results for simple intrinsics. This avoids the situation where temp decls are by default uint-typed, and any arithmetic operation on float or double operands would result in a uint shader variable. Other intrinsics are largely correct because they create temporaries with appropriate typed constructors.
- Provide icons for user interface elements, based on the existing 'run to' icons with modifications by myself.
2016-12-29 17:11:55 +00:00
Michael Rennie d249faacd3 Test Android target connection for up to MaxConnectTimeout seconds.
Added new setting to SettingsDialog, and passed it to native code via
RenderDoc::Inst().GetConfigSetting("MaxConnectTimeout")
2016-12-24 19:22:10 +00:00
Arseny Kapoulkine 45d7f14b4d Inject into the process upon a double-click
A canonical UI paradigm is that when you have a dialog with a list of
items as a central element and an "Ok" action, double-clicking the item
results in the dialog confirmation.

This change adds this behavior to the Capture dialog.
2016-12-12 10:55:50 +00:00
baldurk 553a1008c8 Rename pipeline export, it's definitely not D3D11... 2016-11-30 16:07:03 +01:00
baldurk 9ddce6fe67 Remove errant background colour from some labels 2016-11-30 16:07:02 +01:00
baldurk 27bba7ae6b Revert completely broken UI from SPIR-V disassembler change
* The progress bar in commit eaa85bf1fa is
  utter nonsense, re-implemented as a progress popup.
2016-11-22 11:11:34 +01:00
baldurk 2385e67ba4 Remove some legacy code that was never enabled 2016-11-21 18:09:48 +01:00
baldurk 32c9180f82 Don't try to show find-all dialog if it's already visible 2016-11-21 16:46:31 +01:00
baldurk b1809c1949 Support HLSL custom display shaders on D3D12 2016-11-18 16:31:33 +01:00
baldurk 0c06590df3 Remove cubemap binding from D3D/HLSL texture view. Just use 2D array 2016-11-18 16:31:05 +01:00
baldurk f7e939cda9 Sort node selection from treelistview before iterating on copy-paste. 2016-11-13 13:50:40 +01:00
Michael Rennie 8e7c920ef0 Fix error MessageBox when failing to copy to remote host. 2016-11-11 20:34:04 +01:00
baldurk 01c0ec36b0 Update URLs to point to https:// 2016-11-10 16:19:16 +01:00
baldurk f1b247fa3d Don't change filetype to PNG while trying to invoke callback 2016-11-07 18:14:48 +01:00
baldurk f260d5e2c8 Don't display 'resolve samples' option for non-resolveable formats 2016-11-07 18:14:47 +01:00
baldurk 3dc767415f Catch and handle exceptions when saving constant buffers to CSV 2016-11-04 21:45:10 +01:00
baldurk 1b475e017e Remove API text from capture pane's title 2016-11-03 17:41:26 +01:00
baldurk 503484c9c8 Make checking for process children less aggressive 2016-11-03 16:16:56 +01:00
baldurk e040249398 When selecting the final swapchain present, use present target
* It was using the last bound render target, which could be empty if
  state was reset before presentation. Instead we use the copy target
  listed in the present drawcall as the actual swap buffer presented to.
2016-11-02 23:39:35 +01:00
baldurk 5a5c576a33 Allow TGA and PNG to discard/flatten alpha as desired. Refs #407
* DDS will always save the format entirely literally, and the float
  formats do not support alpha processing currently.
* TGA and PNG will either discard the alpha and write entirely opaque,
  or they'll include it in the file. Blending to colour or checkerboard
  is not supported.
2016-11-02 23:39:35 +01:00
baldurk 175cda5f36 Fix friendly naming of registers for proper cbuffer bindpoint handling 2016-11-02 23:39:35 +01:00
baldurk 50eaf793f1 By default hide help when specifying a custom buffer format 2016-11-02 23:39:35 +01:00
baldurk a2979984ba Add a preview pane to the live capture with a full-res screenshot 2016-11-02 23:39:35 +01:00
baldurk f197156ee6 When an edit happens in the python shell, remove any line-number marker 2016-11-02 23:39:35 +01:00
baldurk 964a0f6b12 Make "no api" situation more explicit in live capture 2016-11-02 23:39:35 +01:00
Michael Rennie bcb9914665 Start remoteserver and captured packages by adb commands in native code.
Use adb to enumerate installed 3rd party packages in capture dialog.
Cleaned up all the "adb:" strcmp's.
2016-11-02 16:10:29 +01:00
Michael Rennie 8899cb8e73 If adb path is set, use adb devices to enumerate Android devices.
Process::LaunchProcess() optionally returns the child's stdout & stderr.
Added carriage return to string trim().
2016-11-02 16:10:29 +01:00
baldurk 385b719883 Make warning on inject screen much more obvious 2016-10-27 21:22:46 +02:00
baldurk 886d49fd2a Don't crash if we try to refresh a non-host node, just skip it 2016-10-27 20:35:52 +02:00
baldurk 119ff00440 Don't get cbuffer in constructor, do that in OnLogFileLoaded when shown 2016-10-21 21:44:24 +02:00
baldurk 7aec327133 Implement shader edit & replace for D3D12 2016-10-21 21:44:24 +02:00
baldurk 4545761f42 Unregister logviewer callback when constant buffer previewer is closed 2016-10-21 21:44:24 +02:00
baldurk 3e94689089 Add UAVs into UAV list 2016-10-21 21:44:24 +02:00
baldurk 1c3b4dfc94 Add support for SM5.1 bytecode changes - primarily resource arrays 2016-10-21 21:44:24 +02:00
baldurk f756cf363e Remove legacy DXBC padding of cbuffers array. Also stub reg spaces
* Historically there was no bindpoint mapping so it was convenient to
  just pad the cbuffers array so that the elements in it were indexed by
  their bind point. It doesn't make any sense anymore especially with
  D3D12's bind model, so just remove it and roll bind points into a
  struct member.
2016-10-21 21:44:24 +02:00
baldurk cc35215a12 Always call SetVariables from UI thread, don't use InvokeRequired 2016-10-21 21:44:24 +02:00
baldurk 9fb7cb81db Don't pass potentially remote path to Path.GetFileName. Refs #400 2016-10-19 19:14:58 +02:00
baldurk 459619ff0c Don't try to access file on local disk in statistics. Refs #400 2016-10-19 19:12:41 +02:00
baldurk 4253094557 Track resource event usage 2016-10-18 15:31:41 +02:00
baldurk 1f610a8b31 Treat D3D11 and D3D12 the same around the UI (for naming things, etc) 2016-10-18 10:38:53 +02:00
baldurk 820b343ef3 Remove redundant numSubresources struct member that was just mips*slices 2016-10-14 16:19:15 +02:00