Commit Graph

16851 Commits

Author SHA1 Message Date
Jake Turner 8fcbe0c2c2 Remove use of ResourceUsage view parameter from D3D11 pixel history
When doing history on depth targts, for ClearDepthStencil events, generate the DepthStencilView dimension from the depth target resource description instead of using the ResourceUsage view member.

Don't early ignore events by using the ResourceUsage view parameter, test the event for any modification.
2026-03-19 09:37:03 +00:00
baldurk d02d3de052 Add observed new NV 51:13 UBO descriptor format on 50 series
* The address is 64-byte aligned so shifted by 6, and the range 16-byte aligned
  so shifted by 4.
* The max UBO range is still 64k so 13 bits is 1 more than needed to represent
  all ranges.
2026-03-17 14:06:49 +00:00
baldurk dc8d61b028 Only fetch initial states for occlusion query heaps 2026-03-16 23:48:24 +00:00
baldurk aebb1f90ee Fix AoS output in mesh viewer being incorrect with mesh shaders
* This would generally only come up with gl_PerVertex, and was hidden before
  because gl_Position is the first member. It likely would also reproduce if a
  user had a struct output from the mesh shader.
2026-03-16 15:12:30 +00:00
baldurk 4f3fc2f0ff Remove unused indextype that is invalid for points. Refs #3816 2026-03-16 14:05:32 +00:00
baldurk 705ab0ea51 Tight alignment D3D12 bug workaround should apply to textures as well 2026-03-16 11:50:21 +00:00
baldurk 507a34d0fb Handle root signatures that alias our own
* We deduplicate on capture, but out root signatures are created before the
  replay so we use a replacement to handle that.
2026-03-16 11:49:41 +00:00
baldurk b157bd509d Reduce the timeout for auto-locking issues 2026-03-15 17:19:10 +00:00
baldurk ecfa3f2eb3 Change copy mode for qrenderdoc dependencies to Always
* This doesn't trigger a rebuild if nothing else has changed, but it does mean
  these files can't be customised without going through the build process as
  they'll be overwritten on any rebuild. It looks like IfDifferent doesn't work
  properly or maybe isn't available on all msbuild versions.
2026-03-14 12:36:02 +00:00
baldurk 7bb20b1d3a Fix for linux macro #define minor() 2026-03-14 10:31:47 +00:00
baldurk 74f895f650 Remove file that confuses old cmake 2026-03-13 21:41:23 +00:00
baldurk a3e8451857 Update CMakeLists.txt for new glslang files 2026-03-13 21:30:22 +00:00
baldurk 403725f69f Check global handle from correct object in extension loading 2026-03-13 18:21:33 +00:00
Jake Turner 337f5f20e5 Update VK_Parameter_Zoo test to macth the extra submit in the test 2026-03-13 17:31:17 +00:00
baldurk 1730e6b5af For callable docstrings allow either std::function or Callback typedef 2026-03-13 13:07:44 +00:00
baldurk 109e524d5c Improve cross-module references in docstrings 2026-03-13 13:07:44 +00:00
baldurk fc85e44a06 Output stderr as warnings, not necessarily errors 2026-03-13 13:07:44 +00:00
baldurk a72ea34c6c Don't use sys.stdout to find global handle
* Instead store sys._renderdoc_internal that won't be overwritten.
2026-03-13 13:07:44 +00:00
baldurk 6e3a0201a8 Determine python version from python module directly 2026-03-13 13:07:44 +00:00
baldurk d32b8a0371 Fix compatibility with python 3.14 2026-03-13 13:07:44 +00:00
baldurk 34b2cfdc40 Copy qrenderdoc dependencies if different during build 2026-03-13 13:07:44 +00:00
baldurk 08d2fa96b6 Fix for compiling on 32-bit without if constexpr 2026-03-13 13:07:44 +00:00
baldurk 1f10092108 Fixes to glslang for compiling on Android and linux 2026-03-13 13:07:43 +00:00
baldurk 2054748153 Add custom glslang feature to allow specifying I/O automap base location 2026-03-13 11:40:18 +00:00
baldurk 9a6981b015 Allow glslang global lock to be used during process teardown
* During capture we may have to shutdown glslang from inside a global
  destructor, we need to ensure the lock is still valid.
2026-03-13 11:40:18 +00:00
baldurk 6cf068670f Add macro helper to glslang for new C++ attributes 2026-03-13 11:40:18 +00:00
baldurk 4046052d16 Warning fixes in glslang
* These could likely be upstreamed but are extremely minor (just silencing
  warnings, not fixing issues) and we will have local changes either way.
2026-03-13 11:40:18 +00:00
baldurk 8008ea8d8b Make downstream changes to glslang 16.2.0 to support compiling
* Remove use of newer STL classes like std::filesystem, std::variant and
  std::optional.
* Do not use inline variables - the only instance is also static constexpr
* Explicitly initialise std::array variables with type and size (also add extra
  {}s to appease an old clang warning)
* Work around old libstdc++ bug with move assignment and non-assignable
  allocators
* Remove redundant constexpr that warns on older compilers
* Remove use of declaration-inside-if statements
2026-03-13 11:40:18 +00:00
baldurk dff059ff7a Update glslang to 16.2.0
* THIS COMMIT IS NOT EXPECTED TO COMPILE.
* Local changes will follow with downstream compile fixes.
2026-03-13 11:40:17 +00:00
baldurk 09bce82078 Always try to use exception-based thread naming
* VS2015 doesn't support the windows 10 thread naming so we want to do both if
  possible
2026-03-13 11:40:17 +00:00
Jake Turner e48450cc53 ImageViewer get the Custom Texture Description from the proxy
Use the cached Texture Description for all other Textures which matches the behaviour of GetTextureData()

When saving a texture when a custom visualisation shader is in use:
- fixes a crash when saving as HDR or EXT
- fixes incorrect image saved to DDS
2026-03-13 10:27:41 +00:00
Jake Turner 0fd4e8cff7 Fix EID being wrong if vkQueueSubmit has multiple submit infos
Move the m_RootEventID-- to outside the loop over the number of submits
2026-03-12 13:02:12 +00:00
Jake Turner c2636d7250 Add vkQueueSubmit with two submits to VK_Parameter_Zoo 2026-03-12 13:02:12 +00:00
baldurk ef0b68d76d Fix annotations tests to check for new vector member names 2026-03-12 12:44:35 +00:00
Artem Kharytoniuk 195a4e6d6b Detect unused fields in VkDescriptorImageInfo
The Vulkan specification allows to have uninitialized fields in
VkDescriptorImageInfo based on descriptor type. Such fields should not
be touched by the implementation (which includes drivers, validation
layers and tools).
2026-03-12 20:52:05 +09:00
baldurk 71704d2885 Rejig to avoid cast that some compilers might warn on 2026-03-11 23:27:29 +00:00
baldurk dc82c117f5 Fix edge case of bitfield extract with count == numbits. Closes #3813
* This is only legal if offset is 0 and so degenerate, but it is valid and needs
  to be handled.
2026-03-11 22:43:24 +00:00
baldurk faf3e01248 Command annotations do not produce EIDs 2026-03-11 22:26:54 +00:00
baldurk c2147b0233 Clarify that most info is unavailable for pixel history on secondaries
* Also fix a potential crash if dynamic rendering is used in secondaries.
2026-03-10 12:40:02 +00:00
baldurk 9ab2b12c60 Note if dynamic rendering is active in a secondary 2026-03-10 12:24:37 +00:00
baldurk c984ff829a Fix crash if application submits the same command buffer multiple times
* Proper applications should not do this within a frame but it is legal and some
  may.
2026-03-09 12:36:13 +00:00
baldurk da56cab59d Rename vector members in annotations to preserve order 2026-03-09 10:06:10 +00:00
baldurk eeb4bf9f04 Fix extra checkbox added for ordered list editors 2026-03-05 16:35:04 +00:00
baldurk a3d4f47865 Add correct return type for new functions in API docs 2026-03-05 16:33:52 +00:00
baldurk ef663a70e6 Set descriptor set for push descriptor serialise to check valid members 2026-03-05 10:33:38 +00:00
Jake Turner b243f125d9 Removed unused comment and code from VK_Custom_Resolve test 2026-03-05 08:43:39 +00:00
Jake Turner d0b7ff8b60 Change Spirv debug wrapper to have thread safety for input variables
FillInputVariable : can be called from any thread but the input variable data must be marked as read only
Made the input variable data containers private with a writable accessor
Mark the input variable data as read only just before calling BeginDebug
2026-03-04 07:29:20 +00:00
baldurk 6b6480fafb Fix detection of semantic arrays to not falsely merge separated elements
* It's impossible to distinguish a separate TEXCOORD0 and TEXCOORD1 from an
  array at TEXCOORD0. However making this an array by that same logic is fine.
  We can't make an array though if there is another element in between they must
  be contiguous.
2026-03-03 18:05:57 +00:00
baldurk c5df93bbfa Check for samplers potentially being garbage in descriptor updates
* If immutable samplers are used the sampler parameter of a descriptor update
  could be garbage. Checked for elsewhere but not handled in descriptor update
  template unwrap.
2026-03-03 17:54:46 +00:00
Jake Turner 0b9465fff8 Make pixel history pre mod invalid for events after BeginCustomResolve
Fix validation errors in pixel history related to custom resolve events
2026-03-03 16:53:14 +00:00