From dba468f38a5c7212130313af58c2f06b22b1a189 Mon Sep 17 00:00:00 2001 From: hikitrbogithub <46833698+hikitrbogithub@users.noreply.github.com> Date: Tue, 12 Mar 2019 05:35:41 +0100 Subject: [PATCH] Hash for Format (#1170) Added derive Hash for Format --- vulkano/src/format.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vulkano/src/format.rs b/vulkano/src/format.rs index 50260159..a87cccbc 100644 --- a/vulkano/src/format.rs +++ b/vulkano/src/format.rs @@ -176,7 +176,7 @@ pub unsafe trait AcceptsPixels { macro_rules! formats { ($($name:ident => $vk:ident [$sz:expr] [$($f_ty:tt)*] {$($d_ty:tt)*},)+) => ( /// An enumeration of all the possible formats. - #[derive(Copy, Clone, Debug, PartialEq, Eq)] + #[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)] #[repr(u32)] #[allow(missing_docs)] #[allow(non_camel_case_types)]