diff --git a/crates/metal2vulkan-validation/runtime-sources.sha256 b/crates/metal2vulkan-validation/runtime-sources.sha256 index 7917788a1..46dac7408 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -8e8b7862a25effbb1f60354e4b30d1e4eab06e81b6922f9d83c85ee89e8e9c23 +adc5019c5b781a14ab277dc76a011ba17fca0d721685a02e7f6dd4b509616ecc diff --git a/crates/metal2vulkan/src/bind/graphics/tests.rs b/crates/metal2vulkan/src/bind/graphics/tests.rs index 2570051af..2f63122df 100644 --- a/crates/metal2vulkan/src/bind/graphics/tests.rs +++ b/crates/metal2vulkan/src/bind/graphics/tests.rs @@ -116,9 +116,8 @@ fn draws_map_to_the_vulkan_draw_of_the_same_arguments() { #[test] fn only_vertex_and_fragment_stages_are_render_stages() { use vk::ShaderStage as S; - let stages = |modules: &[S], tessellated| { - metal_stages(modules.iter().copied(), (tessellated, false), false) - }; + let stages = + |modules: &[S], tessellated| metal_stages(modules.iter().copied(), (tessellated, false)); let tessellation = [ S::VERTEX, S::TESSELLATION_CONTROL, @@ -126,7 +125,7 @@ fn only_vertex_and_fragment_stages_are_render_stages() { S::FRAGMENT, ]; assert_eq!( - metal_stages(tessellation.iter().copied(), (false, true), false), + metal_stages(tessellation.iter().copied(), (false, true)), Ok(vec![ (Stage::Vertex, S::VERTEX), (Stage::Fragment, S::FRAGMENT) diff --git a/crates/metal2vulkan/src/lower/dispatch.rs b/crates/metal2vulkan/src/lower/dispatch.rs index caaef6277..a3a593540 100644 --- a/crates/metal2vulkan/src/lower/dispatch.rs +++ b/crates/metal2vulkan/src/lower/dispatch.rs @@ -195,8 +195,7 @@ use crate::spirv::builder::{FunctionBuilder, ModuleBuilder}; use crate::spirv::error::BResult; use crate::spirv::ids::{ConstId, DemoteTy, GlobalId, ScalarTy, TypeId, Value as SValue}; use crate::spirv::ir::{ - BinOp, ConstBits, Constant, ConvOp, ExecMode, GlslOp, IoDir, MemAccess, SpecOp, StorageClass, - Type, UnOp, + BinOp, ConstBits, Constant, ConvOp, ExecMode, GlslOp, IoDir, MemAccess, SpecOp, Type, UnOp, }; /// The builder's error for a value the declarations do not hold. diff --git a/crates/metal2vulkan/src/pipeline/link.rs b/crates/metal2vulkan/src/pipeline/link.rs index e74469a2c..5c107b81d 100644 --- a/crates/metal2vulkan/src/pipeline/link.rs +++ b/crates/metal2vulkan/src/pipeline/link.rs @@ -428,7 +428,7 @@ pub fn link( mesh::payload(&ifaces)?; } let mut table = LinkTable::default(); - let synthesized: Vec<(ResourceSlot, vk::ShaderStageFlags)> = plan + let mut synthesized: Vec<(ResourceSlot, vk::ShaderStageFlags)> = plan .as_ref() .map(tessellation::ControlPlan::slots) .unwrap_or_default()