Commit Graph

4285 Commits

Author SHA1 Message Date
baldurk d72e0f0cf4 Add missing MIT license from some files 2016-10-11 21:34:06 +02:00
baldurk 48a60104bb Create more of a directory structure for qrenderdoc files 2016-10-11 21:31:57 +02:00
baldurk db5bdbb05e Add range histogram 2016-10-11 18:33:37 +02:00
baldurk 35d4bddaec Add keypress event to RDLineEdit 2016-10-11 18:32:43 +02:00
baldurk b4b45835b0 Delete thread when it's cleaned up, not automatically 2016-10-11 18:32:34 +02:00
baldurk 6b99f40b2b Remove direct use of RENDERDOC_LogText in favour of Qt's logging 2016-10-10 18:50:39 +02:00
baldurk ea587608cb Don't allow dropping dockables onto the tabs where textures sit 2016-10-10 18:50:11 +02:00
baldurk 2507634df9 Add filterable texture list to texture viewer 2016-10-10 18:48:38 +02:00
baldurk a1e9554e66 Implement the ctrl-g texture goto popup 2016-10-10 16:41:48 +02:00
baldurk 7d73ad7c0e Only apply anisotropy level when it's enabled 2016-10-10 14:01:02 +02:00
baldurk 3bdd631146 Fix scrollbar positions not updating properly 2016-10-10 13:58:15 +02:00
baldurk 3a772f26ce Implement locked texture tabs and partially complete event usage popup 2016-10-10 13:52:00 +02:00
baldurk dbb0254556 Add double-click event handling to RDLabel, CustomPaintWidget & thumb 2016-10-10 13:30:01 +02:00
baldurk 3051c48357 Add RefreshStatus to force-replay to the current event 2016-10-10 13:29:05 +02:00
baldurk 9d49b7ae38 Add menu-showing function to RDDialog (using manual event loop pump) 2016-10-10 13:28:52 +02:00
baldurk 400c596894 Make sure we don't trample over our own memory when unwrapping infos 2016-10-07 22:09:12 +02:00
baldurk 83334f01d1 Make sure we don't accidentally propagate bad GetLastError() values
* When relevant we do SetLastError(S_OK) before calling the 'real'
  function, and likewise do GetLastError() to preserve the result if
  we're doing work after the real function.
2016-10-07 22:08:48 +02:00
baldurk e64359b40d Fix picky clang warning about comparing enums, which is on purpose 2016-10-07 22:08:03 +02:00
baldurk 7f6e7583b0 Fix weird clang-format confusion on X-macro 2016-10-07 21:26:53 +02:00
baldurk a451efcc59 Use now available config 2016-10-07 19:51:06 +02:00
baldurk 2d4c79b244 Rename main.cpp to qrenderdoc.cpp to be more clear 2016-10-07 19:51:06 +02:00
baldurk 03eb2ea696 Save and load persistant config file 2016-10-07 19:51:05 +02:00
baldurk 3ec1be62ff Paint custom render widgets properly without output, recreate as needed 2016-10-07 19:51:05 +02:00
baldurk 2f461a5029 Handle keypress events for clipboard copy and pixel nudging 2016-10-07 19:51:04 +02:00
baldurk 2fe5165481 Make sure zoomOption box is big enough even for the largest zoom 2016-10-07 19:51:03 +02:00
baldurk 63b92f76c8 Pass IReplayRenderer to INVOKE_MEMFN calls 2016-10-07 19:51:03 +02:00
baldurk ff6da5d81e Add layout loading/saving to main window 2016-10-07 19:51:02 +02:00
baldurk 33e727e4f6 Call AddLogViewer after initialising pixel context & render
* The other way around, if the texture viewer is created after a log has
  already been opened then we end up un-setting the already configured
  outputs.
2016-10-07 15:58:51 +02:00
baldurk e32e26eb83 Save texture viewer dock layout & background colour in persist data 2016-10-07 15:58:50 +02:00
baldurk e64c666883 Allow configuring a callback to create tool windows on-demand
* This means we can start with an empty manager, load a layout, and just
  create the needed windows as we go according to what the layout needs.
2016-10-07 15:58:50 +02:00
baldurk f8b7f0ca87 Serialise area objects as [name, data] pairs, with custom persist data
* This works by presuming a property 'persistData' set up on an object.
  If configured, it will be set and restored in the data value.
2016-10-07 15:58:49 +02:00
baldurk 560fe1a120 Save and restore ToolWindowManager state directly as QVariantMap 2016-10-07 15:58:49 +02:00
baldurk b87968ae21 If a wrapper should be maximised, re-maximise it on restore to force 2016-10-07 15:58:48 +02:00
baldurk bd7b3e3399 Save wrapper and splitter state as base64 so it encodes to JSON 2016-10-07 15:58:47 +02:00
baldurk 4d2f27d905 Only save direct child splitters in a wrapper 2016-10-07 15:58:47 +02:00
baldurk b96d49190c Avoid naming manually connected slots on_x_y() 2016-10-07 15:58:45 +02:00
baldurk bfac4adfb8 Expose full logging to UI layer, pipe Qt messages etc into main logs 2016-10-07 15:58:45 +02:00
baldurk ccfa1ceaed Add some utility functions to rdctype::array/str
* Avoids the need to directly reference .elems to cast to const char*
  for strings, and has begin()/end() for C++11 foreach loops
2016-10-07 15:58:44 +02:00
baldurk a901fc0d5b Fix isRunning check - just wait for m_Thread to be NULL 2016-10-07 15:58:43 +02:00
Michael Rennie 149e83ba76 Set same default API level for ANDROID_ABI=armeabi-v7a as for arm64-v8a.
Also switch to 32bit build by default, as almost all content is 32bit.
2016-10-07 15:10:42 +02:00
baldurk 09e3d9a81c When remapping down, read subsequently from mip 0. Refs #390 2016-10-06 18:09:26 +02:00
baldurk d2b2e77d35 Clean up GL/Vulkan display shader, fixes remapping of mips. Refs #390 2016-10-06 18:09:06 +02:00
baldurk 44706c3f7b Need to remap for 8-bit formats with less than 4 channels 2016-10-06 18:07:02 +02:00
baldurk aadde675a9 Fix crash when switching back to local context with connections open 2016-10-06 15:24:18 +02:00
baldurk 5b02be386f Don't read off the end of IB when up-converting to mesh pick
* This could lead to a crash at least on vulkan, where the memcpy reads
  off the end of the data. On GL this could mean the index data doesn't
  get read back.
2016-10-06 15:18:26 +02:00
baldurk a52ca923b2 Check for File I/O failures when opening log in replay driver.
* I got a crash report that seemed to have a file become invalid or
  unavailable in between it being opened to determine the driver (which
  already handles I/O failures) and the driver opening it. This check
  just makes that more robust
2016-10-06 14:36:24 +02:00
baldurk fdedbaf103 Fix potential crash creating a brush for an empty rect 2016-10-06 14:15:37 +02:00
Michael Rennie 6931d0b954 Tool menu option to start the Android remote server.
The option launches a batch file that starts the apk in remoteserver mode,
as well as taking care of port forwarding.

Also have a batch file for manually starting and capturing an APK by its
package name. They are both copied to the TargetDir as a PostBuildEvent.
2016-10-06 13:14:42 +02:00
Adrian Bucur eaa85bf1fa Enable SPIR-V External Disassembler Tool
- Added the ability to select an external SPIR-V disassembler and to use
  it for editing any of the shaders in the pipeline.
  Tested with SPIRV-Cross (https://github.com/KhronosGroup/SPIRV-Cross)
  Fragment, Vertex, Geometry, Compute shaders
2016-10-06 13:02:23 +02:00
baldurk 2c9de11a89 Fix histogram slice sampling for 3D textures
* This changed earlier when the mip/slice indexing changed to be more
  sensible.
2016-10-06 12:52:54 +02:00