1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// SPDX-License-Identifier: Apache-2.0
//! An integration of [Vulkan Memory Allocator](https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator) with [`vulkanalia`](https://github.com/KyleMayes/vulkanalia).
//!
//! ### Example
//!
//! ```
//! use vulkanalia::prelude::v1_0::*;
//! use vulkanalia_vma::{self as vma, Alloc};
//!
//! fn example(instance: &Instance, device: &Device, physical_device: vk::PhysicalDevice) {
//! // Create an allocator.
//! let allocator_options = vma::AllocatorOptions::new(instance, device, physical_device);
//! let allocator = unsafe { vma::Allocator::new(&allocator_options) }.unwrap();
//!
//! // Allocate a buffer using the allocator.
//! let buffer_create_info = vk::BufferCreateInfo::builder()
//! .size(65_536)
//! .usage(vk::BufferUsageFlags::VERTEX_BUFFER)
//! .sharing_mode(vk::SharingMode::CONCURRENT);
//! let allocation_options = vma::AllocationOptions::default();
//! let (buffer, allocation) = unsafe { allocator.create_buffer(buffer_create_info, &allocation_options) }.unwrap();
//!
//! // Deallocate the buffer using the allocator.
//! unsafe { allocator.destroy_buffer(buffer, allocation) };
//! }
//! ```
extern crate alloc;
/// Raw bindings to VMA.
pub use *;
pub use *;
pub use *;
pub use *;
pub use *;
pub use r#virtual::*;