diff options
| author | Tobin Ehlis <tobine@google.com> | 2016-11-21 08:31:01 -0700 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-11-21 08:59:44 -0700 |
| commit | 92d20e9c602e6cbb968989d82e8bc677daa1d61c (patch) | |
| tree | 6ed2006445b55f23234c17385b166a8b50a1dc9d /scripts | |
| parent | 0c64542997555318f2b54a8661e6ce566e1cf56d (diff) | |
| download | usermoji-92d20e9c602e6cbb968989d82e8bc677daa1d61c.tar.xz | |
layers:Warn on cmd buffer invalidate
From Mikko Strandborg
When a resource gets deleted, any command buffer that references it
gets invalidated, and an error gets thrown whenever that command buffer
is submitted. However, for a developer, it's quite hard to deduce what
exactly caused that to happen. This patch emits a warning whenever a
command buffer that's in CB_RECORDING state (meaning that it has had
its vkBeginCommandBuffer called but not End). This way the developer
can set a breakpoint on that to see exactly what causes the buffer to
be invalidated.
Destroying a resource that's being used in an open command buffer is
almost certainly a bug, but there might still be cases where it might
be valid behavior (for example, when the application decides to abort
an operation), therefore it's not an error but a warning instead.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
