Commit Graph

1570 Commits

Author SHA1 Message Date
baldurk dfd800c0f8 Add serialiser utility functions checking read/write mode externally 2015-08-23 21:44:45 +02:00
baldurk 357735d1d2 Linux compile fixes 2015-08-23 20:38:13 +02:00
baldurk 6c9120ff61 Update official GL headers to latest 2015-08-23 15:36:46 +02:00
baldurk 4ae911c9f9 Add 'easy' to support new GL extensions, note future ones. Refs #146 2015-08-23 15:36:33 +02:00
baldurk 4609fa710b Update RenderDoc application-facing API to a stable/mature version.
* This API is now intended to be forward and backward compatible as much
  as possible. Meaning applications should be able to run without
  changing on many RenderDoc versions after the one they are built
  against without breaking.
* All function pointers are fetched at once in one versioned GetAPI()
  function, to save on constant GetProcAddress/dlsym'ing.
* Otherwise, it's largely similar to the previous API.
2015-08-23 15:12:05 +02:00
baldurk a54fc564ad Update glslang to latest code (on renderdoc branch, with my changes) 2015-08-23 13:59:52 +02:00
baldurk 6a2344d9d8 Show correct inputs/outputs for copy and dispatch calls. Refs #147
* Next step is to display VS and other stage inputs on the input panel.
* Also need to tidy up the fetching of highest mip/array slice etc to
  use the same codepath.
2015-08-23 13:20:23 +02:00
baldurk d58d5b76b3 Use shader variable name for CS UAV slots, if available 2015-08-23 13:15:09 +02:00
baldurk 9333228fc5 Highlight empty viewports that are still enabled in the UI. Refs #144 2015-08-23 11:49:00 +02:00
baldurk 89e5b1e62b Workaround nvidia crash seen in the wild, with jump into unloaded dll 2015-08-23 11:48:59 +02:00
baldurk bfc1904fdf Make errors much more useful in crash report logs.. 2015-08-23 11:48:58 +02:00
baldurk f6b4b2fe22 Change python embedding to get standard library from zip, not a dll
* This seems way more reliable and smaller than shipping a compiled .dll
* For some reason I didn't find this method before (I only knew that
  you could ship the loose files which wasn't a good solution).
2015-08-23 11:17:46 +02:00
baldurk bc5afeeef4 Call GetSizedFormat everywhere
* In future should maybe warn for 1D/2D/3D variants that are
  only from storage calls, where it's invalid.
* It's needed for multisampled since we pipe TexImage*
  through these common functions, which can use unzied
  internalFormats.
2015-08-08 14:56:45 -07:00
baldurk 249b79e383 Don't fetch or use FBO attach params when object is 0 2015-08-08 14:54:36 -07:00
baldurk 3616524484 Push/pop draw FBO and render in-program overlay to default FBO 2015-08-08 14:53:30 -07:00
baldurk d3ea351c5b Fix typo that was reported 2015-08-06 08:09:15 +02:00
baldurk 120b42c15b Don't assign NULL to GLXDrawable 2015-08-06 07:49:31 +02:00
baldurk 16f8ad5c94 Compile fix 2015-08-05 20:19:41 +02:00
baldurk f67681c4c4 Don't do anything in SwapBuffers if no GL context is active 2015-08-05 18:52:17 +02:00
baldurk da87eaf55a Remove infinite loops clearing GL error flags in case something breaks 2015-08-05 18:47:17 +02:00
baldurk 32ae45d992 Create any parent directory required for log file 2015-08-02 15:42:33 +02:00
baldurk ada7306e1a Expand capture pathnames to full before passing over remote access
* This fixes the issue where an application might have set the capture
  path as relative, and a relative path is passed to the UI which has
  no idea what working directory the path is relative to.
2015-07-31 22:24:37 +02:00
baldurk 286dcb65fe imm_atomic_consume needs to prefix decrement 2015-07-30 19:37:26 +02:00
baldurk 2ee14c1ad9 Add the final bit of horrible code to pretty-ify ifs and loops 2015-07-30 01:10:13 +02:00
baldurk 5a82b6be07 Erase func-parameter declarations as well when inlining them 2015-07-30 01:09:51 +02:00
baldurk 7a71dd4172 Remove gotos before labels even if those labels are ref'd elsewhere 2015-07-30 01:08:05 +02:00
baldurk 4c90182cdf Add super-ultra ugly code to remove temporary 'param' variables 2015-07-30 00:37:19 +02:00
baldurk 6de5e5e144 Don't declare void result that's unused for void function calls 2015-07-30 00:36:53 +02:00
baldurk 8dd535eb26 Fix operation folding checking instruction, not argument 2015-07-29 23:51:56 +02:00
baldurk bce7cde005 Remove the old disassemble-to-string code 2015-07-29 23:47:57 +02:00
baldurk aec9a3a79f Support VectorTimesScalar 2015-07-29 23:47:46 +02:00
baldurk a329ea3f90 Show struct types, and add semicolons to "disassembly" 2015-07-29 23:05:11 +02:00
baldurk 36e3a2489b Remove redundant goto/label pairs 2015-07-29 22:37:28 +02:00
baldurk d011b14cac Implement folding up small instructions with a simple heuristic 2015-07-29 22:27:16 +02:00
baldurk 9af27bff8b Disassemble from module structs 2015-07-29 22:03:12 +02:00
baldurk c5acba7f1f Finished (for limited instruction set) parsing out SPIR-V to structs 2015-07-29 00:50:05 +02:00
baldurk 551fbdd294 Most SPIR-V structs now fleshed out 2015-07-28 23:43:25 +02:00
baldurk 3a792d7136 Further progress including type information parsed out 2015-07-28 23:43:14 +02:00
baldurk 00feb49424 Filling out some global properties, and the operations vector 2015-07-28 19:17:22 +02:00
baldurk acbf5cd0fe Fill out module with some data 2015-07-28 19:07:08 +02:00
baldurk fb9c673bdb Add a struct for a SPIR-V file, and for an operation 2015-07-28 18:44:49 +02:00
Baldur Karlsson 4ba6b556b7 Add some pretty screenshots to README.md 2015-07-25 21:58:25 +02:00
baldurk 99b7f529b6 Fix range bounds check being set up wrongly in shader debug. Refs #143
* The offset is independent of checking the index against the number
  of elements in the view. Otherwise e.g. offset=5 and numelems=1 would
  never be in bounds.
2015-07-25 20:12:26 +02:00
baldurk 8ca621a649 Handle invalid characters in shader filename paths everywhere 2015-07-25 10:33:52 +02:00
baldurk 8cf1a878cc Add locks around static use of CustomMarshal properties
* These locks shouldn't cover much work as generally the caches will
  quickly fill up and the inside-lock work will be quick.
* Also they shouldn't contend as it's quite rare for anything but the
  render thread to go through CustomMarshal.
2015-07-24 00:17:52 +02:00
baldurk 2967a8a5ce Catch overflow exception handling bounding box 2015-07-24 00:16:45 +02:00
baldurk 7c6790d1d7 Check that there are enough children before indexing into nodes 2015-07-24 00:04:52 +02:00
baldurk 98656764b3 Bail out of picking vertices if there are no vertices to pick 2015-07-23 23:49:36 +02:00
baldurk 8fd2fe5932 Separate out calls to glLabelObjectEXT from glObjectLabel
* This is necessary since some of the identifiers are different.
2015-07-23 23:30:06 +02:00
baldurk 5de056135a We need to require GL_ARB_buffer_storage as well as EXT_dsa 2015-07-23 23:10:53 +02:00