Files
qdrant/lib/gpu/src/allocation_callbacks.rs
2025-08-11 13:16:42 +02:00

10 lines
492 B
Rust

use ash::vk;
/// AllocationCallbacks is a trait that provides access to Vulkan allocation callbacks.
/// It's used to provide custom memory allocation and deallocation functions on CPU side.
/// GPU memory allocation is managed by the `gpu-allocator` crate.
/// Even though Vulkan provides default allocation callbacks, it's helpful at least for debugging purposes.
pub trait AllocationCallbacks: Send + Sync + 'static {
fn allocation_callbacks(&self) -> &vk::AllocationCallbacks<'_>;
}