Files
qdrant/lib/gpu/src/allocation_callbacks.rs
Ivan Pleshkov 33441df49d Vulkan api wrapper crate (#5297)
* vulkan api wrapper crate

* fmt

* gpu is not a workspace member

* are you happy codespell

* try to fix CI

* exclude gpu from workspace

* fix build for macos

* disable tests for gpu crate

* fix codespell

* provide gpu feature into gpu trait

* ash version up

* change collection for pipeline builder

* gpu test

* gpu is not optional

* check extensions and layers presense

* check device features

* remove feature

* make all fields private

* more comments

* shader compilation options

* are you happy clippy

* are you happy fmt

* Update lib/gpu/Cargo.toml

Co-authored-by: Andrey Vasnetsov <andrey@vasnetsov.com>

* qdrant team as authors

* merge more changes from magic branch

* are you happy clippy

---------

Co-authored-by: Andrey Vasnetsov <andrey@vasnetsov.com>
2024-11-18 11:24:45 +01:00

10 lines
488 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;
}