fmt: clean up imports and features
This commit is contained in:
parent
e622479c76
commit
017a1a6232
7 changed files with 11 additions and 14 deletions
10
Cargo.lock
generated
10
Cargo.lock
generated
|
@ -37,9 +37,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ahash"
|
name = "ahash"
|
||||||
version = "0.8.7"
|
version = "0.8.8"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "77c3a9648d43b9cd48db467b3f87fdd6e146bcc88ab0180006cef2179fe11d01"
|
checksum = "42cd52102d3df161c77a887b608d7a4897d7cc112886a9537b738a887a03aaff"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg-if",
|
"cfg-if",
|
||||||
"getrandom",
|
"getrandom",
|
||||||
|
@ -1235,7 +1235,7 @@ version = "0.13.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e"
|
checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ahash 0.8.7",
|
"ahash 0.8.8",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -1244,7 +1244,7 @@ version = "0.14.3"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604"
|
checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ahash 0.8.7",
|
"ahash 0.8.8",
|
||||||
"allocator-api2",
|
"allocator-api2",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -3683,7 +3683,7 @@ version = "0.29.10"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "4c824f11941eeae66ec71111cc2674373c772f482b58939bb4066b642aa2ffcf"
|
checksum = "4c824f11941eeae66ec71111cc2674373c772f482b58939bb4066b642aa2ffcf"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ahash 0.8.7",
|
"ahash 0.8.8",
|
||||||
"android-activity",
|
"android-activity",
|
||||||
"atomic-waker",
|
"atomic-waker",
|
||||||
"bitflags 2.4.2",
|
"bitflags 2.4.2",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
use crate::error::ShaderCompileError;
|
use crate::error::ShaderCompileError;
|
||||||
use glslang::{CompilerOptions, ShaderInput, ShaderOptions};
|
use glslang::{CompilerOptions, ShaderInput};
|
||||||
use librashader_preprocess::ShaderSource;
|
use librashader_preprocess::ShaderSource;
|
||||||
|
|
||||||
use crate::front::{ShaderInputCompiler, SpirvCompilation};
|
use crate::front::{ShaderInputCompiler, SpirvCompilation};
|
||||||
|
|
|
@ -4,7 +4,6 @@ mod spirv_passes;
|
||||||
pub mod wgsl;
|
pub mod wgsl;
|
||||||
|
|
||||||
use crate::error::{SemanticsErrorKind, ShaderReflectError};
|
use crate::error::{SemanticsErrorKind, ShaderReflectError};
|
||||||
use bitflags::Flags;
|
|
||||||
|
|
||||||
use crate::front::SpirvCompilation;
|
use crate::front::SpirvCompilation;
|
||||||
use naga::{
|
use naga::{
|
||||||
|
|
|
@ -68,11 +68,10 @@ impl<'a> LinkInputs<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut val = Self {
|
Self {
|
||||||
frag_builder: frag,
|
frag_builder: frag,
|
||||||
inputs,
|
inputs,
|
||||||
};
|
}
|
||||||
val
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn do_pass(&mut self) {
|
pub fn do_pass(&mut self) {
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
use ash::vk;
|
use ash::vk;
|
||||||
use gpu_allocator::vulkan::{Allocator, AllocatorCreateDesc};
|
use gpu_allocator::vulkan::{Allocator, AllocatorCreateDesc};
|
||||||
|
|
||||||
|
use gpu_allocator::AllocationSizes;
|
||||||
use parking_lot::RwLock;
|
use parking_lot::RwLock;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use gpu_allocator::AllocationSizes;
|
|
||||||
|
|
||||||
use crate::error;
|
use crate::error;
|
||||||
use crate::error::FilterChainError;
|
use crate::error::FilterChainError;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
use ash::vk;
|
use ash::vk;
|
||||||
use gpu_allocator::vulkan::{Allocator, AllocatorCreateDesc};
|
use gpu_allocator::vulkan::{Allocator, AllocatorCreateDesc};
|
||||||
|
|
||||||
|
use gpu_allocator::AllocationSizes;
|
||||||
use parking_lot::RwLock;
|
use parking_lot::RwLock;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use gpu_allocator::AllocationSizes;
|
|
||||||
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub unsafe fn vulkan_image_layout_transition_levels(
|
pub unsafe fn vulkan_image_layout_transition_levels(
|
||||||
|
@ -57,7 +57,7 @@ pub fn create_allocator(
|
||||||
physical_device,
|
physical_device,
|
||||||
debug_settings: Default::default(),
|
debug_settings: Default::default(),
|
||||||
buffer_device_address: false,
|
buffer_device_address: false,
|
||||||
allocation_sizes: AllocationSizes::default()
|
allocation_sizes: AllocationSizes::default(),
|
||||||
})
|
})
|
||||||
.unwrap();
|
.unwrap();
|
||||||
Arc::new(RwLock::new(alloc))
|
Arc::new(RwLock::new(alloc))
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
#![deny(unsafe_op_in_unsafe_fn)]
|
#![deny(unsafe_op_in_unsafe_fn)]
|
||||||
#![feature(type_alias_impl_trait)]
|
#![feature(type_alias_impl_trait)]
|
||||||
#![feature(let_chains)]
|
#![feature(let_chains)]
|
||||||
#![feature(strict_provenance)]
|
|
||||||
|
|
||||||
mod buffer;
|
mod buffer;
|
||||||
mod draw_quad;
|
mod draw_quad;
|
||||||
|
|
Loading…
Add table
Reference in a new issue