Commit Graph

3602 Commits

Author SHA1 Message Date
baldurk fbcd79b27d Don't create thumbnails until output has been created 2016-07-25 18:27:21 +02:00
baldurk b91518a2aa Prevent a crash when reloading layout, if bufferviewer is destroyed 2016-07-25 18:27:20 +02:00
baldurk 0ecb7c8a6f Fix guidance for row major matrices (row_major not rowmajor) 2016-07-25 18:27:19 +02:00
baldurk 9bc7e99d83 If no pixel shader is bound, don't show shader output in pixel history 2016-07-25 18:27:19 +02:00
baldurk 20c81be074 Make sure to catch any exceptions from processing invalid/garbage paths 2016-07-25 18:27:18 +02:00
baldurk ba7c6711ff Hide *all* remaining thumbnails after setting the visible ones up 2016-07-25 18:27:17 +02:00
baldurk 170df95924 Make usage entries menu items not labels, to be clickable 2016-07-25 18:27:16 +02:00
baldurk ca072b2d43 Fix handling of D3D11 deferred contexts that got broken 2016-07-25 18:27:16 +02:00
baldurk 535cec5b10 Don't error if GetBufferData() is called with ResourceId 0, just return 2016-07-25 18:27:15 +02:00
baldurk 15bf143352 For MultiDrawElements, make sure to divide idx offset by byte size 2016-07-25 18:27:14 +02:00
baldurk 132bef38af Calculate bytesize properly for packed formats in mesh viewer 2016-07-25 18:27:13 +02:00
baldurk eaa53adbc3 For locked textures, reset type hint so they don't inherit from previous 2016-07-25 18:27:13 +02:00
baldurk 77fe1314e2 Properly interpret format elements when calculating mesh bounding box
* This fixes mesh display of e.g. SNORM components
2016-07-25 18:27:12 +02:00
baldurk 0ebf99f0b4 Avoid exception seeking to invalid row in mesh viewer
* This happened when jumping to a primitive from pixel history if the
  views were synced.
2016-07-25 13:01:37 +02:00
baldurk 89402c03bf Add a note about the VULKAN predefined macro. 2016-07-25 11:39:50 +02:00
baldurk a001f35329 Output UVs in [0,1] from blit shader, for custom vis shaders. Refs #304 2016-07-25 11:39:49 +02:00
baldurk ffa96736ee Add required 'uniform' to glsl varaibles in documentation 2016-07-25 11:39:48 +02:00
baldurk fefb6b2526 Pass selected slice/face and sample idx to custom vis shaders. Refs #304 2016-07-25 11:39:47 +02:00
baldurk 54ea69a619 Always enable custom shaders create button, prompt for name. Refs #304 2016-07-25 11:39:47 +02:00
baldurk 12a51ee5a4 Save display type (RGB vs custom) and custom shader per-tex. Refs #304 2016-07-25 11:39:46 +02:00
baldurk 33ed86a45b Print stencil refs and masks as hex in OpenGL. Refs #303 2016-07-22 21:50:44 +02:00
baldurk 41e760dc0a Remove an old TODO 2016-07-22 19:22:07 +02:00
baldurk 889e47c166 Handle column major storage of matrices when friendly-naming registers 2016-07-22 19:19:42 +02:00
baldurk fcca358d0c Handle casting view types for swapchains (non-typeless resource) 2016-07-22 19:18:36 +02:00
baldurk d7102c1694 Don't create MS2Array pipeline if texel fetch is broken 2016-07-22 18:44:28 +02:00
baldurk 83be5e03bb Fix check that is backwards 2016-07-22 18:44:17 +02:00
baldurk ebb889a7ee Report supported windowing systems from replay, and choose which to use
* This is primarily for vulkan, which supports either xlib or xcb (and
  not necessarily both). GL still only supports xlib, windows and
  android only support one system regardless of API.
* This should also support xlib again for fetching keystates etc.
2016-07-22 18:23:30 +02:00
baldurk c1070053db Fix compile error on linux 2016-07-22 15:51:14 +02:00
baldurk bf2b62ac9a Fix missed rename of files 2016-07-22 15:48:07 +02:00
baldurk 28c1768397 Add menu item to jump from pixel history modifications to each primitive 2016-07-22 14:40:40 +02:00
baldurk bd079b7632 Add null check in TreeListView - fixes crash hitting pagedown if empty 2016-07-22 14:21:29 +02:00
baldurk 75bc04fcd0 Implement CopyTex2DMSToArray on vulkan for MS texture saving
* The reverse isn't implemented yet, so initial states of MS textures
  still can't be properly restored (although they could be saved).
2016-07-22 14:16:53 +02:00
baldurk 5b74d2f90a Add a little Ctrl-G popup on the texture viewer to jump to a pixel 2016-07-22 12:28:26 +02:00
baldurk 7e5f51cbf8 Rename spv/ folder back to glsl/ (hope this will make better history) 2016-07-22 02:44:37 +02:00
baldurk ed512a48de Remove glsl shader variants (and fix text rendering I forgot about) 2016-07-22 02:40:15 +02:00
baldurk 15d60ef6b9 Convert rest of GL shaders to use spv_ variants 2016-07-22 02:26:37 +02:00
baldurk a3fa84dbce Convert over mesh rendering and fix it up for GL while I'm at it 2016-07-22 01:12:29 +02:00
baldurk 2fe0ffe9fc Convert some more shaders 2016-07-21 23:44:37 +02:00
baldurk 96d98fa5d7 Start using common shaders for some GL shaders 2016-07-21 23:25:01 +02:00
baldurk 28645937db Use utility function for #version, #extension hoisting, "#includes", etc 2016-07-21 22:33:43 +02:00
baldurk 9e786f258c Make internal vulkan shaders compatible with GL with a few #ifdefs 2016-07-21 19:11:33 +02:00
baldurk a9f5f84a76 Fix narrowing warning for VkImageBlit taking int32_ts 2016-07-21 18:58:57 +02:00
baldurk f492ddab27 Add missing handling of uscaled and sscaled formats 2016-07-21 16:06:10 +02:00
baldurk b6e55cc8d5 Perform blit instead of copy to allow for swizzling to backbuffer fmt 2016-07-21 14:53:44 +02:00
baldurk 5958e7cc24 Calculate max formatted float size given current settings as col width
* The default (and previous) width of 100 is a little larger than the
  calculation ends up being for default float formatting values.
2016-07-21 14:01:15 +02:00
baldurk 7923ad15a8 Fix exponential float formatter to properly use min/max figures
* Previously it was treating maxfigures as the required length of the
  fractional part, so you'd get a lot of pointless 0s. it should be the
  number of significant figures, so we pretty much reuse the non-exp
  formatter.
2016-07-21 13:58:21 +02:00
baldurk f5c5618650 Fix copy-paste errors in shift operations, always shifting by .x 2016-07-21 12:09:00 +02:00
baldurk 6b32d6a4a2 Fix check for unknown DXGI format 2016-07-21 09:56:53 +02:00
baldurk d7bec406db Fix hidden variable warning 2016-07-20 20:28:56 +02:00
baldurk 7f2d86b31d [Coverity] Fix some more uninitialised values/members 2016-07-20 18:42:12 +02:00