fmt: clean up imports and features

This commit is contained in:
chyyran 2024-02-16 00:38:28 -05:00 committed by Ronny Chan
parent e622479c76
commit 017a1a6232
7 changed files with 11 additions and 14 deletions

10
Cargo.lock generated
View file

@ -37,9 +37,9 @@ dependencies = [
[[package]]
name = "ahash"
version = "0.8.7"
version = "0.8.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77c3a9648d43b9cd48db467b3f87fdd6e146bcc88ab0180006cef2179fe11d01"
checksum = "42cd52102d3df161c77a887b608d7a4897d7cc112886a9537b738a887a03aaff"
dependencies = [
"cfg-if",
"getrandom",
@ -1235,7 +1235,7 @@ version = "0.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e"
dependencies = [
"ahash 0.8.7",
"ahash 0.8.8",
]
[[package]]
@ -1244,7 +1244,7 @@ version = "0.14.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604"
dependencies = [
"ahash 0.8.7",
"ahash 0.8.8",
"allocator-api2",
]
@ -3683,7 +3683,7 @@ version = "0.29.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4c824f11941eeae66ec71111cc2674373c772f482b58939bb4066b642aa2ffcf"
dependencies = [
"ahash 0.8.7",
"ahash 0.8.8",
"android-activity",
"atomic-waker",
"bitflags 2.4.2",

View file

@ -1,5 +1,5 @@
use crate::error::ShaderCompileError;
use glslang::{CompilerOptions, ShaderInput, ShaderOptions};
use glslang::{CompilerOptions, ShaderInput};
use librashader_preprocess::ShaderSource;
use crate::front::{ShaderInputCompiler, SpirvCompilation};

View file

@ -4,7 +4,6 @@ mod spirv_passes;
pub mod wgsl;
use crate::error::{SemanticsErrorKind, ShaderReflectError};
use bitflags::Flags;
use crate::front::SpirvCompilation;
use naga::{

View file

@ -68,11 +68,10 @@ impl<'a> LinkInputs<'a> {
}
}
let mut val = Self {
Self {
frag_builder: frag,
inputs,
};
val
}
}
pub fn do_pass(&mut self) {

View file

@ -1,9 +1,9 @@
use ash::vk;
use gpu_allocator::vulkan::{Allocator, AllocatorCreateDesc};
use gpu_allocator::AllocationSizes;
use parking_lot::RwLock;
use std::sync::Arc;
use gpu_allocator::AllocationSizes;
use crate::error;
use crate::error::FilterChainError;

View file

@ -1,9 +1,9 @@
use ash::vk;
use gpu_allocator::vulkan::{Allocator, AllocatorCreateDesc};
use gpu_allocator::AllocationSizes;
use parking_lot::RwLock;
use std::sync::Arc;
use gpu_allocator::AllocationSizes;
#[inline(always)]
pub unsafe fn vulkan_image_layout_transition_levels(
@ -57,7 +57,7 @@ pub fn create_allocator(
physical_device,
debug_settings: Default::default(),
buffer_device_address: false,
allocation_sizes: AllocationSizes::default()
allocation_sizes: AllocationSizes::default(),
})
.unwrap();
Arc::new(RwLock::new(alloc))

View file

@ -5,7 +5,6 @@
#![deny(unsafe_op_in_unsafe_fn)]
#![feature(type_alias_impl_trait)]
#![feature(let_chains)]
#![feature(strict_provenance)]
mod buffer;
mod draw_quad;