mirror of
https://github.com/qdrant/qdrant.git
synced 2026-08-06 18:10:58 -05:00
* 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>
10 lines
488 B
Rust
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;
|
|
}
|