mirror of
https://github.com/italicsjenga/ash-molten.git
synced 2024-12-23 13:21:30 +11:00
Update to ash 0.30.0 (#15)
* Update to ash 0.30.0 * clippy * Replace mk_version macro
This commit is contained in:
parent
5b3e7f415b
commit
e9a124d646
|
@ -13,10 +13,10 @@ homepage = "https://github.com/EmbarkStudios/ash-molten"
|
|||
documentation = "https://docs.rs/ash-molten"
|
||||
|
||||
[dependencies]
|
||||
ash = "0.29"
|
||||
ash = "0.30"
|
||||
|
||||
[features]
|
||||
external = []
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
default-target = "x86_64-apple-darwin"
|
||||
default-target = "x86_64-apple-darwin"
|
||||
|
|
5
build.rs
5
build.rs
|
@ -7,7 +7,7 @@ mod mac {
|
|||
pub(crate) fn is_external_enabled() -> bool {
|
||||
std::env::vars()
|
||||
.filter_map(|(flag, _)| {
|
||||
const NAME: &'static str = "CARGO_FEATURE_";
|
||||
const NAME: &str = "CARGO_FEATURE_";
|
||||
if flag.starts_with(NAME) {
|
||||
let feature = flag.split(NAME).nth(1).expect("").to_string();
|
||||
println!("{:?}", feature);
|
||||
|
@ -15,8 +15,7 @@ mod mac {
|
|||
}
|
||||
None
|
||||
})
|
||||
.find(|f| f == "EXTERNAL")
|
||||
.is_some()
|
||||
.any(|f| f == "EXTERNAL")
|
||||
}
|
||||
|
||||
pub(crate) fn build_molten<P: AsRef<Path>>(target_dir: &P) -> &'static str {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use ash::{
|
||||
version::{EntryV1_0, InstanceV1_0},
|
||||
vk, vk_make_version,
|
||||
vk,
|
||||
};
|
||||
use std::ffi::CString;
|
||||
fn main() {
|
||||
|
@ -13,7 +13,7 @@ fn main() {
|
|||
.application_version(0)
|
||||
.engine_name(&app_name)
|
||||
.engine_version(0)
|
||||
.api_version(vk_make_version!(1, 0, 0));
|
||||
.api_version(vk::make_version(1, 0, 0));
|
||||
|
||||
let create_info = vk::InstanceCreateInfo::builder().application_info(&appinfo);
|
||||
let instance = entry.create_instance(&create_info, None).expect("Instance");
|
||||
|
|
Loading…
Reference in a new issue