]> git.nega.tv - josh/narcissus/commit
narcissus-gpu: Fix slice size mismatch
authorJoshua Simmons <josh@nega.tv>
Sat, 1 Jul 2023 09:13:23 +0000 (11:13 +0200)
committerJoshua Simmons <josh@nega.tv>
Sat, 1 Jul 2023 09:13:23 +0000 (11:13 +0200)
commitb775d5f481410d114f8c7e22ba2454349a3f6caf
tree98631d46efbc519fb62e331688bc6ecd166cee6c
parent9f629ed8c5eee155d60b372e43c15b893363d968
narcissus-gpu: Fix slice size mismatch

It's possible that returned memory is larger than the requested size, so
we need to truncate the destination slice to match the input data.
libs/narcissus-gpu/src/backend/vulkan/mod.rs