Commit Graph

5640 Commits

Author SHA1 Message Date
baldurk 2da46640d0 Add watch variables handling to qt shader viewer 2017-06-09 12:06:57 +01:00
baldurk 2319681217 Mark overrided function as override 2017-06-08 21:31:28 +01:00
baldurk 055acb05e1 Fix an unused variable warning with python parameterless callbacks 2017-06-08 21:31:21 +01:00
baldurk 8a59754bf8 Disable save/close capture menu items when there's no capture open 2017-06-08 18:23:23 +01:00
baldurk 199c26adbf Put the MainWindow in charge of handling 'global' type shortcuts
* QShortcut falls down on duplicates. It can have activatedAmbiguously
  events, but these happen in arbitrary order and the shortcuts on
  menu items just swallow the ambiguous activate so it's not useful.
* Instead we just let MainWindow pick up ShortcutOverride events and
  consult a mapping of which shortcuts to use. We can use a smarter
  selection method to choose the more 'local' shortcut if two shortcuts
  that conflict exist.
2017-06-08 18:23:10 +01:00
baldurk 085026aa91 Update toolwindowmanager to f31edfa 2017-06-08 16:35:14 +01:00
baldurk 2f1301e758 Settle on consistent 'capture' name for captured files, dropping 'log' 2017-06-08 16:35:14 +01:00
Peter Gal 4263b55ffa Fix enum flag usages in the qrenderdoc
There are a few places where the logical 'and' operator
was used to check if a given flag is enabled however
that is not the correct operator.

The binary 'and' operator should be used where
the enum acts as a flag.
2017-06-08 08:34:54 -07:00
baldurk ffcbf233d1 Link against python in python modules for now. Refs #639
* This really isn't ideal as it means the python module will only work
  with that specific major.minor version of python, when it could in
  theory work with any python version above 3.2 or so, depending on what
  features are used.
* Since we're not distributing these modules yet though, add this
  linking to support -Wl,--no-undefined.
2017-06-08 14:02:21 +01:00
Peter Gal a52206ede5 Fix aliases for EXT_disjoint_timer_query
* glGetQueryObjecti64vEXT was used twice as an alias.
* Added missing glIsQueryEXT alias.
* Removed the query related methods from the unhandled block.
2017-06-08 06:02:02 -07:00
Janos Pantos dcdb1bd5ee Extend emulated glGetInternalformativ function in case of GLES 2017-06-08 06:01:55 -07:00
Peter Gal 79c99cc106 Expose GL_OES_vertex_array_object for GLES
Add aliases for the following methods:
* glBindVertexArrayOES
* glDeleteVertexArraysOES
* glGenVertexArraysOES
* glIsVertexArrayOES
2017-06-08 06:01:48 -07:00
babymustgrowstrong 3b1ace7a53 Various fixes/improvements from Android OpenGL ES development 2017-06-08 06:01:39 -07:00
baldurk ccf3b17731 Track buffer category in GL as the union of all bound states
* This fixes a bug with replay proxies where looking at the last bound
  buffer type lead to buffers being created with insufficient flags on
  the local replay.
* It will also handle the case where a buffer is used as e.g. both
  vertex and index and needs to have the flags for both specified.
2017-06-07 23:04:15 +01:00
baldurk 4c64a3e42d Skip listing buffers in GL that aren't from the capture itself 2017-06-07 23:02:43 +01:00
baldurk 9e3a603035 Pass-through glXWaitX calls - no longer needed for link hack. Refs #638 2017-06-07 22:19:59 +01:00
baldurk fd02a3e9d4 Check the most likely resources first (buffer -> tex2d -> 3d -> 1d)
* This is a slight win by avoiding checking all the shader pools
2017-06-07 17:38:52 +01:00
baldurk cb6daea42f Unwrap IDXGIOutput before passing it to real DXGI routines.
* This is a grey area between valid and invalid. Technically we're still
  passing a valid IDXGIOutput to the functions, but in practice the
  function will then probably turn around and cast it to an internal
  concrete type which it no longer points to, and explode.
2017-06-07 17:38:04 +01:00
s.makeev_local 410d3b2c02 Workaround to fix crash in applications with invalid use of DXGI. 2017-06-07 17:32:00 +01:00
baldurk ba61697adf Handle creating buffers through DX-GL interop with GL_NONE. Refs #636 2017-06-07 17:31:33 +01:00
baldurk 8c2f109d7e Remove incorrect and unused call to vkGetImageSubresourceLayout 2017-06-07 17:31:33 +01:00
baldurk 2eb668eea8 Add a special case for naming/tagging VkSurfaceKHR
* Since the record pointer is really just the native window handle and
  not actually a record. We don't care about names for surfaces as we
  don't replay them, so just do a special unwrap and pass it along.
2017-06-07 17:31:33 +01:00
Michael Rennie 494427aac4 Save client-memory vertex and indices when using indexed draws.
Common_pre/postElements merged into CopyClientMemoryArrays.
2017-06-07 09:30:41 -07:00
baldurk 54b9263597 Persist the mesh view's dock layout between sessions 2017-06-03 00:59:57 +01:00
baldurk a4fe376c32 Add column selection popup for event browser and persist column state
* We can add in the Draw # column now, and set up the default state to
  not include the duration column.
2017-06-03 00:53:54 +01:00
baldurk 231c07d390 Make sure to initialise update queueing variable to false 2017-06-03 00:49:16 +01:00
baldurk 63bf0310d3 Fix summing of durations in event browser 2017-06-03 00:46:11 +01:00
baldurk 3b6f63be0d Make event browser columns properly resizable and re-orderable
* Annoyingly although Qt has an internal bool allowUserMoveOfSection0
  which does exactly what we want allowing the tree column to be
  movable, we can't enable it because it's private. So instead we have
  to re-implement section moving ourselves.
* Minor tweak - also made RDTreeWidgets non-movable by default since
  usually we don't want to allow it.
2017-06-03 00:38:02 +01:00
baldurk fdf04cae39 Print better error messages for failures to save textures to disk 2017-06-02 17:59:57 +01:00
baldurk 922263df83 Remove unused save dialog and use the proper dialog for error message 2017-06-02 17:56:39 +01:00
baldurk 0c3dec3b67 Go back to manually drawing PE_PanelItemViewItem in drawBranches()
* There's a messy order-of-operations thing to deal with various
  different themes, as well as a couple of minor problems, but at least
  the highlight and selection bars draw fairly consistently and don't
  leave an ugly gap over the branches.
2017-06-02 17:30:41 +01:00
baldurk d426020321 Set drawcall outputs array and depthOutput to original IDs. Refs #632
* Also ensures that the underlying image ID is used, not any view that
  uses the ID.
2017-06-02 14:54:18 +01:00
baldurk 745a4e4c76 Verify that we have the right amount of data for indirect draws, or warn 2017-06-02 14:54:18 +01:00
baldurk 2706f2e04b Add proper support for mesh dumping with nested struct outputs
* Instead of hacking in some data in unused fields in the output sig we
  side-band the data we need to form the access chain.
* We also fix some issues with the SPIR-V generation for mesh dumping
  that were caught by validation.
2017-06-02 14:54:17 +01:00
Janos Pantos 162325dbd5 Regenerate gl_hookset_defs.h file 2017-06-02 06:53:57 -07:00
Janos Pantos c72d9720d7 Fix segfault for missing glShaderStorageBlockBinding function on GLES 2017-06-02 06:53:57 -07:00
Janos Pantos fbcf86cd59 Extend list of supported GLES extensions
Add GL_EXT_multisampled_render_to_texture, GL_EXT_color_buffer_half_float
and GL_EXT_color_buffer_float to the supported GLES extensions.
2017-06-02 06:53:57 -07:00
Janos Pantos 6099b242b5 Add support for glFramebufferTexture2DMultisampleEXT function 2017-06-02 06:53:57 -07:00
baldurk 10aa73528d Reset event browser before it's added
* When we add it, if a log is already open that's when we get the
  callback to OnLogFileOpened to initialised. If we close afterwards,
  we'll be in an inconsistent state.
2017-06-01 18:50:14 +01:00
baldurk bf791b7854 Use 20% highlight colour instead of window for hovering on tree widgets 2017-06-01 18:48:05 +01:00
baldurk b311e65dbd Change margins to be a minimum instead of adding them
* The style itself may have added some margins and we don't want to add
  extra margins, just set a minimum.
2017-06-01 18:47:42 +01:00
baldurk 49243c0878 Use a style proxy setting SH_ItemView_ShowDecorationSelected to fill
* This still isn't perfect with some custom style stuff but it's next
  to impossible to get working right. In theory we should manually
  draw PE_PanelItemViewItem in the gap in drawRow() or so to make sure
  we also draw any on-hover highlight over objects, but that doesn't
  seem to work.
2017-06-01 18:28:13 +01:00
baldurk f0116c4c08 Remap topology diagrams to Base/Text palette colours instead of b/w 2017-06-01 15:22:22 +01:00
baldurk 2ddfc40182 Use the palette's lightness for highlighting matching input binds 2017-06-01 14:30:53 +01:00
baldurk fe8c76154f Draw gridlines in WindowText palette color, not just black 2017-06-01 14:23:34 +01:00
baldurk 5c877ae1ae Add default-enabled grid lines to RDTreeView (and so RDTreeWidget) 2017-06-01 14:17:36 +01:00
baldurk 3076b4337b Move size delegate into item margins implemented by RDTreeView 2017-06-01 14:17:00 +01:00
baldurk a30c704e46 Inherit RDTreeWIdget from RDTreeView instead of QTreeView 2017-06-01 14:15:17 +01:00
baldurk 39f2a6d3dc Update toolwindowmanager to 8a1543b 2017-06-01 12:41:12 +01:00
baldurk 26c4284b26 Add new ToolWindowManagerSplitter files to projects 2017-06-01 12:31:29 +01:00