KhronosGroup/Vulkan-LoaderAndValidationLayers

Providing stack trace in messages when validation is delayed

fduranleau-gl opened this issue · 3 comments

We know that some validation can not be done immediately when recording a command (e.g. tracking image layout). So some of them are deferred at submission time. However, if we hit an error (or a warning) there, then we lose the context from where the offending command comes.

So, a nice (and non-intrusive) feature that would be very practical is if, for such deferred validation, information about the call stack could be saved (at record time) and displayed along with messages. This should be possible to implement at least on some platforms.

This is a really neat idea, but likely expensive to do... 👍

There certainly is a cost. Maybe it could be an opt-in feature?