Commit Graph

587 Commits

Author SHA1 Message Date
baldurk f8d10850f8 Fix ambiguous QVariant casts from uint64_t on linux 2017-05-17 13:59:17 +01:00
baldurk 9831a8eb24 Fix compile error comparing enums 2017-05-17 13:20:51 +01:00
baldurk 5b5e30cf54 Add HTML pipeline export for qrenderdoc 2017-05-15 10:11:56 +01:00
baldurk a6c77b5dee Give little tag structs unique names so we don't violate the ODR 2017-05-15 10:11:56 +01:00
baldurk f9908927ad Add RDTreeWidgetItem overload that constructs from QVariantList 2017-05-15 10:11:55 +01:00
baldurk 83f155855b Hex formatted numbers are always uppercase 2017-05-15 10:11:55 +01:00
baldurk 5986f209e1 Use Formatter::Format for formatting hex numbers 2017-05-15 10:11:55 +01:00
baldurk 08fa2ec411 Fix formatting of blend factor in pipeline state 2017-05-15 10:11:55 +01:00
baldurk 870f0cc166 Filename filters should be translated 2017-05-15 10:11:55 +01:00
baldurk 505dacfd21 Fix incorrect array index 2017-05-10 18:51:32 +01:00
baldurk f277e06ba0 Show the row offset control in the raw buffer viewer too 2017-05-10 18:10:23 +01:00
baldurk 3bd6adddc8 Implement right-click-to-toggle on channels buttons 2017-05-10 17:20:40 +01:00
baldurk 441d136177 Add extended RDToolButton 2017-05-10 17:20:39 +01:00
baldurk f8bf45fa47 Fix sizing for matrix elements in buffer views 2017-05-10 17:20:39 +01:00
baldurk 7c7cd32c17 Populate the buffer format specifier with the initial format 2017-05-10 17:20:38 +01:00
baldurk 1ca55a8237 Add an optional 'rgb' specifier to colour buffer cells backgrounds
* When opening a texture as a buffer we can make use of this.
2017-05-10 17:20:37 +01:00
baldurk 6941444796 Add byte range offset/length controls to raw buffer viewer. Refs #224 2017-05-10 17:20:37 +01:00
baldurk c3e521f254 Set the tag for samplers on GL so the resource can be opened 2017-05-10 17:20:36 +01:00
baldurk 5b384f3c4a Don't hide RWs on GL if there are no subroutines 2017-05-10 17:20:35 +01:00
baldurk 007e0f7b40 Disable optimisation for QTDebug target in qrenderdoc too 2017-05-10 17:20:35 +01:00
baldurk 886d6f608b Fix case that samplers are now "IsSRV" (renamed to IsReadOnly elsewhere) 2017-05-10 17:20:33 +01:00
baldurk 4fb8b22b2d QBrush() is not a 'use default' return value from a model, QVariant() is 2017-05-09 18:49:44 +01:00
baldurk 6c2f2c0401 Rename "Capture Executable" to "Launch Application" & add to window menu 2017-05-09 17:28:38 +01:00
baldurk c18e846c69 Fix a broken UTF-8 string on Qt MSVC builds 2017-05-09 15:26:31 +01:00
baldurk b8d7726822 Make SPIR-V disassembly more robust over empty structs or cbuffers 2017-05-09 15:26:31 +01:00
baldurk c854294dc8 Add calls to XInitThreads() to allow driver multithreading optimisations 2017-05-05 16:45:29 +01:00
baldurk bbff0fce1c Implement row colouring and tree colouring in event browser.
* Also do custom painting of branches to do proper full-row colouring
  instead of leaving an ugly gap around the tree controls.
2017-05-04 20:36:46 +01:00
baldurk ab432f24fc Implement the UI option for preferring monospaced font 2017-05-04 20:36:46 +01:00
baldurk 0b868e45c0 Explicitly set a fixed-width font for scintilla editors 2017-05-04 20:36:46 +01:00
baldurk ba3b76a61a Fix GL's vertex buffer columns to be consistent: Stride | Offset | Divis 2017-05-03 20:00:10 +01:00
baldurk 576edd6104 Fix handling of indices for PostVS data and draw index offset 2017-05-03 20:00:10 +01:00
baldurk ba59a28eba Fix shader label click handler - lambdas have QObject::sender() == NULL 2017-05-03 20:00:10 +01:00
baldurk a744316838 Rename overlay from 'Clipping' to 'Histogram Clipping' to clarify 2017-05-03 20:00:09 +01:00
baldurk 0e9c8127b0 Default m_TimeUnit to invalid so that UpdateDurationColumn runs 1st time 2017-05-03 20:00:09 +01:00
baldurk 8b3c06ac67 QStringLiteral compile fix for static qrenderdoc code 2017-05-03 08:53:56 +01:00
baldurk e4a5b80bdd Don't depend swig targets on renderdoc target, just interface headers
* This avoids rebuilding swig every time if some internal cpp in the
  renderdoc target changes, but will still rebuild it if the interface
  headers change.
2017-05-02 22:58:12 +01:00
baldurk 0ecc6ca877 Enable QT_NO_CAST_FROM_ASCII & QT_NO_CAST_TO_ASCII
* Added a couple of utility macros to help with the conversion. lit() is
  paired with tr() for untranslated text.
* QFormatStr is more explicitly for non-textual formatting strings.
* Both are just #define'd to QStringLiteral()
2017-05-02 22:58:12 +01:00
baldurk 474ba91d8b Make qprocessinfo.cpp compatible with no QString <-> const char* convs 2017-05-02 22:58:11 +01:00
baldurk 0b410e9879 Make Qt scintilla code compatible with no-const-char conversions 2017-05-02 22:58:11 +01:00
baldurk ce53be8511 Use QStringLiteral in ToolWindowManager to convert at compile-time 2017-05-02 22:58:11 +01:00
baldurk 22c5b7863d Get some VS null changes to the vcxproj's xml out of the way 2017-05-02 22:58:11 +01:00
baldurk da4813afbd Move functions in statistics viewer into class and operate on members
* This means we can translate strings in the functions via QObject::tr()
  as well as being a bit tidier
2017-05-02 22:58:11 +01:00
baldurk e5ec2c7280 Fix warning about struct initialisation 2017-04-28 19:46:17 +01:00
baldurk 829e1aa77e Fix handling of 'slots' Qt keyword clashing with python
* On linux without any PCH we have a slightly different case to windows
  with the PCH, so we need to be careful not to redefine the macro.
2017-04-28 19:36:09 +01:00
baldurk c05bea4563 Hook up compute thread debugging in qrenderdoc's D3D11 pipe viewer 2017-04-28 18:36:56 +01:00
baldurk 18d3eae1c8 Ensure that constant buffer views are grouped together in docking 2017-04-28 18:36:56 +01:00
baldurk e0191ccba4 Close transient log-specific windows when a log closes
* Shader viewers already close themselves, but the pixel history view,
  non-mesh buffer viewers, and constant buffer views also close.
2017-04-28 18:36:56 +01:00
baldurk f3508f57b1 Don't completely reset a constant buffer view if the vars are the same
* It's annoying to have the constant buffer view reset and collapse
  everything, especially if moving between draws where the variables are
  the same because the shader hasn't changed.
* We can just compare the previous set of variables to the new set and
  if the types and structures (member variables etc) are the same, then
  just update the values in-place.
2017-04-28 18:36:56 +01:00
baldurk f62777459b Fix index used for constant buffer slots in D3D11 pipeline viewer 2017-04-28 18:36:55 +01:00
baldurk 8580b7b2c7 Hand-edit vcxproj files to remove duplicated properties
* By default VS creates a huge section of properties copy-pasted for
  every Configuration|Platform combination, which is almost all the
  same for each one.
* We instead create a common section with most of the properties that
  are fixed, and then override/add to them for the few that vary (e.g.
  optimisation settings for release, preprocessor macros).
2017-04-28 18:36:55 +01:00