Commit Graph

8317 Commits

Author SHA1 Message Date
baldurk 796b05d76e Add markers to D3D11 video textures demo, around video update & blit 2018-12-12 23:53:34 +00:00
baldurk 92f48ea54b Implement ID3D11Multithread support for automatic locking
* Unfortunately ID3D11Multithread::SetMultithreadProtected adds an auto-locking
  thread safe mode for all D3D functions, so we have to add a check for it and a
  lock to every context function. This will add a small amount of overhead even
  when the mode isn't enabled, but it shouldn't be significant.
2018-12-12 23:53:15 +00:00
baldurk 6fcba1ced4 Add use of MediaFoundation to decode video in D3D11 video texture demo
* Where available - on Win8+ basically. On win7 the video doesn't play (but most
  of the demo also doesn't work, so that's not much change).
* Added a short 10kb clip from Caminandes (http://www.caminandes.com/sharing)
2018-12-12 13:55:17 +00:00
baldurk d777f6bf9d Allow sourcing data from disk in demos program 2018-12-12 13:55:17 +00:00
baldurk 360ab71a56 Update demos copy of DX official headers 2018-12-12 13:55:17 +00:00
baldurk 1f0192ba3e Fix python not calling bgraOrder function right (it used to be a flag) 2018-12-12 13:55:16 +00:00
baldurk 18050c70c4 Strip lunarg assistant layer on replay 2018-12-12 13:55:16 +00:00
baldurk bf9f41f2b1 Remove accidental commit of validation layer enabling 2018-12-12 13:55:16 +00:00
baldurk 3bac064362 Remove Resources\resource.h from qrenderdoc project 2018-12-12 13:55:16 +00:00
baldurk 208b6facff Add a couple of helper D3D/DXGI smart pointers 2018-12-12 13:55:16 +00:00
baldurk 7880cc5d7b Allow customising D3D11 device creation flags in D3D11 demos 2018-12-12 13:55:16 +00:00
Pierre-Olivier Konecki 556cd39276 vk_info: fix uninitialized DescriptorSetSlot 2018-12-12 13:51:27 +00:00
baldurk 19aed5b1f2 If a path already has a : treat it as if it were already native
* wslpath seems to fail on converting "C:\foo" to windows path even though it
  has nothing to do.
2018-12-12 11:13:35 +00:00
baldurk ac196bde79 Fix compilation on linux 2018-12-12 09:31:17 +00:00
MichelVachon 04edbc6b82 Add partial OpenSharedHandle support
Add partial (as in write only, no initial data) D3D12 OpenSharedHandle support
2018-12-11 19:57:22 +00:00
baldurk f8720b94af Add demos testing video (YUV / YCbCr) formats on D3D11, D3D12, Vulkan 2018-12-11 19:57:22 +00:00
baldurk b9f5ecaaa8 Add GPU selection on command line to VK/D3D11/D3D12 tests 2018-12-11 19:57:22 +00:00
baldurk f1d2258c5b Update copyright years in demos project 2018-12-11 19:57:22 +00:00
baldurk b530df00a2 Add helper for VkDescriptorImageInfo 2018-12-11 19:57:21 +00:00
baldurk d4ee873013 Disallow copying AllocatedImage/Buffer, but allow create-in-place 2018-12-11 19:57:21 +00:00
baldurk ab89b074d2 Support texture SRVs with swizzle/planeslice parameters on D3D12 2018-12-11 19:57:21 +00:00
baldurk 5e2971a79f Fix initial state for upload/readback buffers on D3D12 2018-12-11 19:57:21 +00:00
baldurk 4c3d70b612 Add D3D11 helper for making sampler objects 2018-12-11 19:57:21 +00:00
baldurk 38644934c5 Add helpers for loading XPM texture, and add simple example texture 2018-12-11 19:57:21 +00:00
baldurk a5a952855c Fix location of khrplatform.h in demos VS project 2018-12-11 19:57:20 +00:00
baldurk 2b802b1ba8 Allow custom display shaders in image viewer 2018-12-11 19:57:20 +00:00
baldurk 8a47aabb94 Remove un-needed resource.h in qrenderdoc project 2018-12-11 19:57:20 +00:00
baldurk 68b23c5f62 Add support for YUV resource formats
* We handle 4:4:4, 4:2:2, and 4:2:0, with packed, 2-plane and 3-plane formats,
  for 8, 10, 12, and 16 bit depths.
* This covers most common formats but still leaves a few out - NV11, palettised
  formats, V208/V408 JPG formats.
2018-12-11 19:57:20 +00:00
baldurk 2411ce70ea Add flags to ResourceFormat to replace bgraOrder/srgbCorrected
* Allows for future expansion as well
2018-12-11 19:57:20 +00:00
Amit Prakash 2db56c2a86 Remove peak clock flag in opening GPA context
* Remove peak clock flag while interrogating GPA about counter
information.
2018-12-11 11:08:28 +00:00
Sebastian Krzyszkowiak 9d21221617 TextureViewer: fix wheel zooming on HiDPI screens
Without adjusting for pixel ratio it zoomed in into a wrong place.
2018-12-11 11:05:49 +00:00
baldurk bba5e6ee5e Handle PNG thumbnails in XML codec (and Raw, just in case) 2018-12-07 18:19:58 +00:00
MichelVachon 76848d493b depth and render classification
Change depth and render texture resource classification
2018-12-07 12:31:35 +00:00
baldurk 5b11cfea0a If recompressed capture doesn't match, include captures in artifacts 2018-12-06 16:36:14 +00:00
baldurk 3ff48cbaa6 For any images that don't have an initial layout recorded, use GENERAL
* This could happen if the image is created mid-frame and its layout isn't
  serialised out in the BeginCaptureFrame chunk, and prevents us from trying to
  use an image while it's UNDEFINED.
2018-12-06 14:26:34 +00:00
baldurk b28b3313d0 When no depth is bound for depth overlay, use NoDepthRP renderpass
* This ensures we're entirely compatible with the renderpass we use for drawing
2018-12-06 14:25:42 +00:00
baldurk d4e4a31dc1 Fix handling of implicit barriers around renderpasses when replaying
* When we replay a draw and artificially call our loadRP renderpasses, we need
  to be careful to handle the barriers to and from the expected image layouts
  when the renderpass itself has layout transitions.
2018-12-06 13:59:10 +00:00
baldurk ae3fbe2085 Select text in find dialog when opening it e.g. with ctrl-f 2018-12-06 12:50:46 +00:00
baldurk 7194374347 If a valid path is entered into the filename field, browse to it 2018-12-06 12:46:16 +00:00
baldurk d450a4f2f8 Don't try to look up home folder before all roots are found 2018-12-06 12:46:05 +00:00
baldurk 7a541b673d Don't expire lookup-in-progress until all GUIInvokes have completed. 2018-12-06 12:32:08 +00:00
baldurk dcf92ca040 Fix accidental commit with vulkan validation layers turned on 2018-12-06 11:05:17 +00:00
baldurk 3f84eff79c Allow python extensions with uppercase letters. Refs #991 2018-12-06 10:52:14 +00:00
baldurk aad7551e4b Fix a couple of CPU memory leaks in D3D12 2018-12-04 23:54:40 +00:00
baldurk 217b584d15 Fix D3D12 internal refcounting to ensure D3D12 device doesn't leak 2018-12-04 23:54:39 +00:00
baldurk 7908577cce Fix refcounting in D3D tests, don't lose ref creating COM smartptr
* If we create in a bare pointer then just cast to a smart pointer, it adds a
  ref instead of stealing it. Just only allow creating smart pointers in the
  first place.
2018-12-04 23:54:39 +00:00
baldurk 6a9f74cddb Add some missing refcount releases in D3D12 driver 2018-12-04 23:54:39 +00:00
baldurk bc051afbe2 Only use basePipeline* if VK_PIPELINE_CREATE_DERIVATIVE_BIT was set
* This prevents us from trying to read an invalid index or handle that shouldn't
  be used at all.
2018-12-04 23:54:39 +00:00
baldurk 3889ecb552 Use WNetGetUniversalName to convert paths to UNC in vulkan registration
* If we use a mounted network drive as the JSON path but then elevate to
  register, the elevated run will not get the mounted drive but the full UNC
  path. This will cause renderdoc to constantly think it needs to re-register.
* Converting to UNC first gives us a baseline comparison.
2018-12-04 23:54:39 +00:00
baldurk 59f0bfeefd Don't try to add live resource for proxy case 2018-12-04 23:54:39 +00:00