Skip to main content

vk/
lib.rs

1#![cfg_attr(feature = "loader", doc = include_str!("../../README.md"))]
2#![cfg_attr(
3	not(feature = "loader"),
4	doc = "Vulkan ABI declarations and cached nullable dispatch tables. Cargo package: `vkrust`; Rust namespace: `vk`. All binding definitions live at the crate root. Enable `loader` for library loading and the `Instance` / `Device` wrappers; enable `allocator` for the work-in-progress Rust-native allocator based on VMA."
5)]
6
7#[path = "constant.gen.rs"]
8mod constants;
9#[path = "dispatch.gen.rs"]
10mod dispatch;
11#[path = "enum.gen.rs"]
12mod enums;
13#[path = "export.gen.rs"]
14mod exports;
15#[path = "extension.gen.rs"]
16mod extensions;
17#[path = "pfn.gen.rs"]
18mod pfn;
19#[path = "type.gen.rs"]
20mod types;
21#[doc(inline)]
22pub use exports::*;
23mod construction;
24pub use construction::{ConstructionError, Extends};
25#[path = "construction.gen.rs"]
26mod construction_generated;
27mod version;
28pub use version::*;
29
30#[cfg(feature = "loader")]
31mod device;
32#[cfg(feature = "loader")]
33mod instance;
34#[cfg(feature = "loader")]
35pub use device::*;
36#[cfg(feature = "loader")]
37pub use instance::*;
38
39#[cfg(feature = "loader")]
40pub(crate) mod command;
41
42#[cfg(feature = "loader")]
43#[path = "command.gen.rs"]
44mod operations;
45#[cfg(feature = "loader")]
46pub use operations::*;
47
48#[cfg(feature = "loader")]
49pub use crate::load::{
50	enumerate_instance_extension_properties, enumerate_instance_layer_properties,
51	enumerate_instance_version,
52};
53
54#[cfg(feature = "loader")]
55pub mod load;
56#[cfg(feature = "loader")]
57pub use load::{
58	CallError, Capabilities, CommandSupport, CreatedHandle, Entry, FeatureValue, Features,
59	InitializationFailure, LoadError,
60};
61#[cfg(feature = "allocator")]
62pub mod mem;
63#[cfg(feature = "allocator")]
64pub use mem::{
65	AllocError, AllocRequest, Allocation, AllocationInfo, Allocator, Pool, SynchronizedAllocator,
66	SynchronizedVirtualBlock, VirtualAllocation, VirtualBlock,
67};