Closed Pokechu22 closed 2 years ago
That should fix the issue I believe, though I would strongly suggest that you apply that diff on your side to give your files a default filename, as I wouldn't be surprised if other tools have bugs/issues around this since a file without a filename generally doesn't make sense. This is also likely to break in future in RenderDoc if you have multiple files without filenames as they'll no longer be distinguishable.
Thanks!
This is also likely to break in future in RenderDoc if you have multiple files without filenames as they'll no longer be distinguishable.
Wouldn't the same thing happen if all of the files have the exact same default filename? (For the most part, I haven't had any issue finding the right shader since I'm usually finding it by looking for a specific event and then debugging a specific pixel or vertex, so the name is irrelevant. Dolphin also has a lot of generated shaders, so looking through a big list of them wouldn't be super useful, but I imagine with more typical programs this is less of an issue.)
To clarify I mean having multiple source files in the same SPIR-V module with the same filename would be a problem, but different modules with the same filename is totally fine (blank or not).
Done: dolphin-emu/dolphin#10945. I believe Dolphin currently only ever has one source file per module, but that is something to keep in mind.
Description
Captures from Dolphin have no source attachment when opened in RenderDoc v1.21, though they did in the past. This seems to be related to Dolphin not setting a source file name (see #2337), as setting one does result in it working, but this still prevents using captures from older versions of Dolphin (and older versions of RenderDoc).
Steps to reproduce
This affects captures from previous versions of RenderDoc and Dolphin (including ones from some of my earlier bug reports, such as this one), not just ones saved with current Dolphin/RenderDoc.
Environment
I think this issue wasn't present in v1.20, but I'm not 100% certain of this. It definitely wasn't present in v1.19. My guess is that this is related to the "Vulkan: Don't generate an empty source file when an
OpSource
is encountered with no source, only a language (and/or filename)." change mentioned in v1.21's changelog.