Commit Graph

6685 Commits

Author SHA1 Message Date
baldurk 08c67f2149 Revert accidental commit setting RENDERDOC_OFFICIAL_BUILD to 1
* This was during testing and accidentally got rolled in. My bad!
2017-12-19 16:08:04 +00:00
baldurk b7952cfdf0 Minor tidying making function private 2017-12-19 13:05:06 +00:00
baldurk 85071f38e7 Remove no-longer needed variables 2017-12-19 12:27:36 +00:00
baldurk f2e7f8f1a0 Refactor crash/bug reporter system
* The UI dialog is now in Qt. We run qrenderdoc.exe with a very minimal
  startup to display the dialog and send the report.
* The flow has been simplified to have less text and an easier time to
  just click through and send.
* On the first report, the user is gently nudged to enter their email
  address for contact and by default the email is saved for next time.
  They're not nagged more than once about this.
* Optionally the user can select to upload the capture. This is always
  default off, and there is a confirmation dialog making sure the user
  intended to select it.
* After the bug is reported, a unique URL is generated and returned
  which the user can then click back on to see if there's any update. By
  default the UI will also remember the URL and check it every couple
  of days and alert the user in the help menu that there's an update.
2017-12-19 12:26:34 +00:00
baldurk 1e36e73ed9 Remove reference to hash_version.sh script 2017-12-19 12:26:34 +00:00
baldurk a104d8516e Add function to read whole of a (maybe active) logfile into memory 2017-12-19 12:26:34 +00:00
baldurk fd09c323b3 Add helper functions in win32 renderdoccmd for wchar <-> UTF8 conversion 2017-12-19 12:26:34 +00:00
baldurk 67090cc085 Add handling to both RDStyle and RDTweakedNativeStyle for menus w/ icons 2017-12-19 12:26:33 +00:00
Neil Forbes-Richardson da650b0481 Remove manual pitch calculation.
Since the pitch is calculated by GetResourcePitchForSubresource, there is no need to calculate it manually, or even erroneously as were the case by using the resource pitch determined by the D3D11 API.
2017-12-19 13:26:24 +01:00
Neil Forbes-Richardson a091dea6f8 D3D11 texture serialisation size estimation fix.
During size estimation phase of serialisation, the row + depth pitch were not conservative enough estimates on some drivers. To remedy this, it's determined exactly at estimation time by attempting to map the resources.
2017-12-19 13:26:24 +01:00
Cody Northrop 82f4e82155 Add version checking to Android workflow
* Tag the RenderDoc layer with a version string that
  matches the host, including git hash.
* In developer builds, check the version when scanning the
  application for RenderDoc support.
* Pass the warning back to the UI to offer ways to fix.
* Update APK patching to remove existing layer.
2017-12-19 13:26:11 +01:00
baldurk 03a0a06f60 Remove use of itoa (not portable) 2017-12-15 18:12:01 +00:00
baldurk 8c5f14436f Add cmake option to strip the output of android builds 2017-12-15 17:33:56 +00:00
baldurk 8d5a621ee1 Re-enable python API docs 2017-12-15 17:33:55 +00:00
baldurk 229febfbcb Update python API references to latest renames/reorganisations 2017-12-15 17:33:54 +00:00
baldurk f27e5d48f6 Fix typo in in_application_api restructuredText, missing colon on param 2017-12-15 17:33:54 +00:00
baldurk 2460bc998d Add sphinx_paramlinks extension and use :paramref:`` to reference params 2017-12-15 17:33:53 +00:00
baldurk 8d29758851 Remove members of public structs called 'bytes'
* It is at best confusing, and at worst could cause errors by aliasing
  with the python type.
2017-12-15 17:33:53 +00:00
baldurk de6e95845c When specifying a built-in type return type, always put it in ``s 2017-12-15 17:33:52 +00:00
baldurk 0c0c2969df Add python modules to default VS .sln 2017-12-15 17:33:51 +00:00
baldurk cc442b7aee Fix compilation of python modules on windows and rename generated files 2017-12-15 17:33:51 +00:00
baldurk 1a6db595a0 Ignore -Wmaybe-uninitialized on GCC. Refs #815 2017-12-15 12:28:41 +00:00
baldurk 1c9addae52 Skip raw filetype when enumerating texture save formats 2017-12-15 12:28:41 +00:00
baldurk 51cd28b62f Add ToStr case for raw filetype 2017-12-15 12:28:41 +00:00
baldurk 84220b9aaf Fix uninitialised data in rich resource text layout Refs #820 2017-12-15 12:28:41 +00:00
Richard Khoury a1c8d1d256 Missed a file change from the previous commit. 2017-12-15 13:20:26 +01:00
Richard Khoury 61b227580d Removing unnecessary addition of the ReplayOutput::GetTextureDisplay.
This member function wasn't required and the TextureDisplay was
accessible from within the TexxtureViewer as m_TexDisplay.
2017-12-15 13:20:26 +01:00
Richard Khoury 937c8e7c91 Missing Qt UI file change from previous commits. 2017-12-15 13:20:26 +01:00
Richard Khoury d8bc07f945 Added ability to save out overlay textures using the TextureSaveDialog.
This is part of the work specified by github Issue 586, allowing the
ability to save out the overlay in the TextureViewer.  If no overlays
are on then there is no option to save the overlay. Currently there is
no option to remap the overlay to a grayscale or absolute value range
before saving. This can be a future task.

NOTE: the overlay texture resource that's saved out is not the blended
texture that the user will see in the TextureViewer, it is just the
overlay itself. The ability to save out the blended texture would be a
future task.
2017-12-15 13:20:26 +01:00
baldurk a68e55e814 Add fallback for determining LibGit2SharpPath
* Relying on $(DevEnvDir) won't work when invoking msbuild directly in
  e.g. a build process, so instead we look relative to $(VSInstallDir).
2017-12-15 10:26:17 +00:00
baldurk 92aaf0d547 Fix memory alignment checks and error message format strings. Refs #821 2017-12-14 18:51:05 +00:00
baldurk 0c10b20bc6 Fix comment for GetIBuffer 2017-12-14 18:45:45 +00:00
baldurk 64ab04c42c Fix display of live chunk count 2017-12-14 18:39:18 +00:00
baldurk 26d879df12 Hide renderdoc's packages from enumerated list 2017-12-14 16:46:59 +00:00
baldurk 316cb41af2 Set a proper title for the virtual file browser 2017-12-14 16:45:39 +00:00
baldurk 78890e9c30 Tweak emphasis in vulkan layer patching message, to focus on Vulkan req. 2017-12-14 14:50:35 +00:00
baldurk b3e48a7576 Add search logic to find android tools automagically, which we ship
* We search first in specified folders by the user (they can browse to
  the android SDK and java JDK).
* If the tools we want aren't found there, we look relative to the UI
  as we now distribute the required tools with windows builds.
* If we still don't find them, we prefer to look in PATH since the user
  has 'opted in' to any tools found in there. If the tool isn't in PATH
  either then we look relative to known environment variables.
2017-12-14 14:38:39 +00:00
baldurk f62096f986 Remove ntohl from GetRemoteIP on android (Thanks @cnorthrop for catch)
* Since android uses local abstract sockets, this seems to not be needed
2017-12-14 13:42:54 +00:00
Peter Gal bca909adef Android abstract socket
Replace Android TCP communication with unix abstract sockets.
This makes it possible to not require INTERNET permission for
Android applications.
2017-12-14 13:41:06 +00:00
baldurk 8c241f13b7 Remove hash_version.sh - no longer needed on windows now
* The VS project fetches the git hash if we're in a git clone inside the
  build process.
2017-12-14 13:36:10 +00:00
baldurk ac5574c5c7 Fix sizing of pages column on left side of settings dialog 2017-12-14 13:33:03 +00:00
baldurk db0e2400f8 Disable vulkan validation layers that were accidentally enabled 2017-12-14 12:48:48 +00:00
baldurk fcba572fb2 Don't set -DSWIGWORDSIZE64 on apple, where uint64_t typedef is different 2017-12-14 10:26:25 +00:00
baldurk 1fe736fdab Also don't pass -Wno-unused-lambda-capture on apple's clang 2017-12-14 09:11:11 +00:00
baldurk 965bcac6ea Try again to detect clang 5.0, because cmake doesn't have a version >= 2017-12-14 02:21:07 +00:00
baldurk 60becb1bb3 Only pass -Wno-unused-lambda-capture on clang 5 and above 2017-12-14 01:33:43 +00:00
baldurk 7838e2c0c6 Disable -Wunused-lambda-capture which complains about nonsense sometimes 2017-12-14 00:20:52 +00:00
baldurk 1752a96ba9 Specify -DSWIGWORDSIZE64 on linux to fix problems with uint64_t on swig 2017-12-13 22:43:06 +00:00
baldurk 53e669748e Add emulation of python list functions/interface in rdcarray bindings 2017-12-13 22:43:05 +00:00
baldurk a75a036a12 Add operator== and operator< to many interface structs
* This will enable the last few python list emulation functions, like
  index (which needs operator== to find objects) and sort (which
  obviously needs operator< to sort).
2017-12-13 22:43:03 +00:00