baldurk / renderdoc

RenderDoc is a stand-alone graphics debugging tool.
https://renderdoc.org
MIT License
8.62k stars 1.3k forks source link

fixed assert if task and mesh shader entrypoint names differ #3317

Closed Firestar99 closed 1 month ago

Firestar99 commented 1 month ago

Description

If the entrypoint name of the task and mesh shaders differ, this assert is triggered: https://github.com/baldurk/renderdoc/blob/5eac79c19c74fbd42b4706662442204724a995ad/renderdoc/driver/vulkan/vk_postvs.cpp#L1604

This PR fixes a typo where the entrypoint of the mesh shader is being passed over instead of the task: https://github.com/baldurk/renderdoc/blob/5eac79c19c74fbd42b4706662442204724a995ad/renderdoc/driver/vulkan/vk_postvs.cpp#L3025

You can rename the spirv entry point with: glslangValidator -V bla.task -e notMainEntryPoint --source-entrypoint main --target-env vulkan1.2 Small repo capture: varying_entrypoint_names_crash.zip