Fixes a bug when using vulkan-shaders macro with multiple shaders in release mode (#1765)

This commit is contained in:
Ilya Lakhin 2021-11-24 22:53:43 +07:00 committed by GitHub
parent 8152f3b9d1
commit 29dcd28dc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = {