Commit Graph

5415 Commits

Author SHA1 Message Date
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 58050e89ef Remove hardcoded version numbers from vulkan layer json, set in build
* In CMake this is easy as we're already passing it through sed, but
  in msbuild it's a little more complex as we need to write a little
  in-line C# code to read out the version number and replace the
* We also update the JSON generation for layer registration on linux.
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
baldurk 1f8a93c37a Add precompiled header file use to qrenderdoc on VS 2017-04-28 18:36:55 +01:00
baldurk 07a73d53ce Tidy up qrenderdoc warning settings a bit 2017-04-28 18:36:55 +01:00
baldurk 628df6d9c8 Fix some warnings in ToolWindowManager so we can keep level 4 globally
* Nested foreach() hiding a local variable in the macro definition.
* Declarations of 'data' parameters that hide a class member variable.
2017-04-28 18:36:55 +01:00
baldurk 8e32da581e Add qrenderdoc 3rdparty libraries to .gitignore 2017-04-28 18:36:55 +01:00
baldurk 5fa195ded8 Switch to using precompiled header files on renderdoc VS projects 2017-04-28 18:36:55 +01:00
baldurk 27035d19d8 #define NOMINMAX and WIN32_LEAN_AND_MEAN before including windows.h 2017-04-28 18:36:54 +01:00
baldurk 993aee449d Use std::min/std::max instead of windows min/max macros 2017-04-28 18:36:54 +01:00
baldurk 5ef7d76d21 Change default warning level to 3 in SPIR-V project
* Since most of the project is glslang, we instead increase the level
  per-file for our own files. It means fewer exceptions in the build
  file.
2017-04-28 18:36:54 +01:00
baldurk 6e83f27c9e Remove glslang warning disable as override is fully supported on VS2015 2017-04-28 18:36:54 +01:00
baldurk 95f366344a Rename parameters near/far to avoid conflicts with macros from windows.h 2017-04-28 18:36:54 +01:00
baldurk 199d5266ad Move disable of warning 4100 from command line to property, remove 4512
* We used to ignore C4512 but we no longer need to.
  C4100: 'identifier' : unreferenced formal parameter
  C4512: 'class' : assignment operator could not be generated
2017-04-28 18:36:54 +01:00
baldurk 4caa05c2b9 Remove reference to removed GetCommitHash function in the docs 2017-04-28 18:36:54 +01:00
Peter Gal 6fde3cbb6a Query allowed extensions when the GL driver knows which mode is it in
Previously the allowed extension list was set when the
WrappedOpenGL driver was created. However at that point it is not always
clear if we are in GL or GL ES mode.
2017-04-28 10:35:43 -07:00
Elizabeth Baumel 8f69735780 Serialisation definitions/preliminary support for D3D12 tiled resources. 2017-04-27 14:16:40 -07:00
baldurk 9e5736f03e Add context menu popup for disassembly in shader debugging 2017-04-27 19:47:50 +01:00
baldurk a7e58ae5f6 Fix a broken loop condition 2017-04-27 19:47:50 +01:00
baldurk ae50fa99ee Revamp version tagging, remove ugly suffix on git hash. Refs #571
* Tacking -official onto the git hash was a hack only needed on windows,
  and since we want more information it doesn't scale.
* Instead we track anything we need to know about the version in
  separate variables, like whether it's a stable build or a nightly/
  local build. Or if it's built by a downstream distribution then the
  version number for the downstream build.
2017-04-27 19:47:50 +01:00
baldurk 4199a857f5 Add right-click context menu to event browser with expand/collapse all 2017-04-27 19:47:50 +01:00
baldurk c2690b8211 Remove some cases where resources were being loaded and parsed @ runtime 2017-04-27 19:47:49 +01:00
baldurk 13f61eaf8e Disable edit and continue debug information, since E&C is disabled 2017-04-27 19:47:49 +01:00
baldurk 6e5a744b1a Remove some CodeAnalysis lines in the csproj that were causing a warning 2017-04-27 19:47:49 +01:00
baldurk dd2f6eb88a Don't delete objects allocated in renderdoc module outside it. 2017-04-27 19:47:49 +01:00
baldurk 5fbf49a304 Fix pixel history view launching shader debugger on qrenderdoc 2017-04-27 19:47:49 +01:00
baldurk 163bc6f47e When right-clicking on captures in a connection window, select them too 2017-04-27 19:47:49 +01:00
baldurk e0f3535a20 Fix deleting captures not removing them from the list correctly 2017-04-27 19:47:49 +01:00
baldurk 448afbc0a6 Add element column with the row number for raw buffer views 2017-04-27 19:47:49 +01:00
baldurk fee690b844 Don't remove an empty list of paths - Qt warns about it 2017-04-27 19:47:48 +01:00
baldurk 0f8e25a103 Fix a case where descriptor bind length wasn't being checked for ~0U 2017-04-27 19:47:48 +01:00
baldurk a9c500a3bf Ditch array suffix from typename in element descriptors
* The suffix is superfluous in the string name - it can be reconstructed
  using the array size data. It just confuses things when trying to
  replicate a variable declaration. E.g. int indices[4]; shouldn't be
  listed as int[4] indices[4];
2017-04-27 19:47:48 +01:00
baldurk 1529c8053d Fix a crash updating mesh preview columns when not in a mesh view 2017-04-27 19:47:48 +01:00
Michael Rennie ca553e6c5c Set the MaxConnectTimeout setting for connecting to Android packages. 2017-04-27 09:13:14 -07:00
baldurk a5199b54ba Add Qt5 svg package to linux setup 2017-04-27 15:57:00 +01:00
baldurk f65ef594f3 For GL array textures, cache glGet*TexImage data returned
* Our function to get texture data requests a single mip and a single
  array slice at a time. However this interacts badly with the GL get
  function that returns array data all at once.
* Worst case, we end up fetching N array slices N times, meaning we do
  N^2 work, and allocate way more memory than is required. There was
  also a bug that caused the allocated memory for compressed arrays to
  return all array slices instead of returning one slice, offsetted.
* Now instead we cache the returned array data and look it up for
  subsequent requests, since it's very likely that we're going to ask
  for the other array slices.
2017-04-27 15:56:59 +01:00
baldurk f415681f65 Expose a function to fetch the debug overlay's texture ID 2017-04-27 15:16:34 +01:00
baldurk b5e6596512 Make sure we build qrenderdoc with svg 2017-04-27 15:16:34 +01:00
baldurk 922b095d2d Add support for interpreting depth formats saving to HDR/EXR
* In particular, depth 24 which needs special handling
2017-04-27 15:16:34 +01:00
Michael Rennie 34d692330e Only create client memory VBOs the first time context is activated.
Also added corresponding deletion code in WrappedOpenGL::DeleteContext.
2017-04-27 06:51:18 -07:00
Peter Gal 59536d4db0 Skip GL_DEPTH_CLAMP enum usages when in GL ES mode
The GL_DEPTH_CLAMP is not valid in GL ES calls.
2017-04-27 06:50:54 -07:00
Cody Northrop 937f37e387 build: Add Android to travis config 2017-04-26 20:47:04 +01:00
Cody Northrop 5863607ba2 android: Attempt to call adb directly if path not provided 2017-04-26 20:47:04 +01:00
Cody Northrop f60968b103 android: Target android-23 explicitly for APK
Using "1" here was very specific to the build system, as noted by the comment.
When run on systems with older APIs install, it resulted in java compile errors.
2017-04-26 20:47:04 +01:00
baldurk 9759911ffd Clamp progress value to 0.0 - 1.0 before updating progress bar
* Speculative fix for a reported crash
2017-04-26 20:47:04 +01:00