mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-25 08:14:20 +00:00
Fixes a bug when using vulkan-shaders macro with multiple shaders in release mode (#1765)
This commit is contained in:
parent
8152f3b9d1
commit
29dcd28dc4
@ -240,7 +240,7 @@ fn write_struct<'a>(
|
||||
return (quote! {}, total_size);
|
||||
}
|
||||
|
||||
debug_assert!(types_registry.insert(name, target_type).is_none());
|
||||
assert!(types_registry.insert(name, target_type).is_none());
|
||||
}
|
||||
|
||||
// We can only implement Clone if there's no unsized member in the struct.
|
||||
@ -804,7 +804,7 @@ pub(super) fn write_specialization_constants<'a>(
|
||||
return quote! {};
|
||||
}
|
||||
|
||||
debug_assert!(types_registry.insert(name, target_type).is_none());
|
||||
assert!(types_registry.insert(name, target_type).is_none());
|
||||
}
|
||||
|
||||
let map_entries = {
|
||||
|
Loading…
Reference in New Issue
Block a user