VulkanRust/src/ffi.rs
Stephen Seo 05cf805c03 Suppress some clippy warnings for ffi module
No need to heed clippy warnings on code automatically generated by
bindgen.
2024-03-18 16:37:40 +09:00

17 lines
516 B
Rust

#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(unused_imports)]
#![allow(dead_code)]
#![allow(clippy::complexity)]
#![allow(clippy::style)]
include!(concat!(env!("OUT_DIR"), "/glfw_vk_bindings.rs"));
pub fn VK_MAKE_VERSION(major: u32, minor: u32, patch: u32) -> u32 {
(major << 22) | (minor << 12) | patch
}
pub fn VK_MAKE_API_VERSION(variant: u32, major: u32, minor: u32, patch: u32) -> u32 {
(variant << 29) | (major << 22) | (minor << 12) | patch
}