]> git.nega.tv - josh/narcissus/commit
Improve lifetimes command buffer tokens
authorJoshua Simmons <josh@nega.tv>
Sat, 5 Nov 2022 10:00:23 +0000 (11:00 +0100)
committerJoshua Simmons <josh@nega.tv>
Sat, 5 Nov 2022 10:29:40 +0000 (11:29 +0100)
commit0479d0855951e36f5d1897892437607b421d8759
treeed731947321a696c46a07baa941b2ddae3ea312b
parent1b87d0565a0b16fc5ab03dd7ef267933dfe0a8fa
Improve lifetimes command buffer tokens

Not binding to the lifetime of the thread token meant you could create
multiple mut references to the same command buffer with
`command_buffer_mut`.

Relax requirements for mut references on the command buffer tokens in
the API as they're not required.
narcissus-gpu/src/lib.rs
narcissus-gpu/src/vulkan.rs
narcissus/src/main.rs