Added fix to work for versions 1.2.55+ of vulkan headers
This commit is contained in:
parent
482aa29426
commit
8abac9fb58
6 changed files with 16 additions and 17 deletions
|
|
@ -2,7 +2,7 @@
|
|||
#if DEBUG
|
||||
#if KOMPUTE_ENABLE_SPDLOG
|
||||
// Only enabled if spdlog is enabled
|
||||
#include <fmt/ranges.h>
|
||||
#include <spdlog/fmt/bundled/ranges.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
@ -357,7 +357,7 @@ Tensor::freeMemoryDestroyGPUResources()
|
|||
"Kompose Tensor expected to free buffer but got null buffer");
|
||||
} else {
|
||||
SPDLOG_DEBUG("Kompose Tensor destroying buffer");
|
||||
this->mDevice->destroy(*this->mBuffer);
|
||||
this->mDevice->destroy(*this->mBuffer, (vk::Optional<const vk::AllocationCallbacks>)nullptr);
|
||||
this->mBuffer = nullptr;
|
||||
}
|
||||
}
|
||||
|
|
@ -368,7 +368,7 @@ Tensor::freeMemoryDestroyGPUResources()
|
|||
"Kompose Tensor expected to free buffer but got null memory");
|
||||
} else {
|
||||
SPDLOG_DEBUG("Kompose Tensor freeing memory");
|
||||
this->mDevice->freeMemory(*this->mMemory);
|
||||
this->mDevice->freeMemory(*this->mMemory, (vk::Optional<const vk::AllocationCallbacks>)nullptr);
|
||||
this->mDevice = nullptr;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue