Slightly better error message in descriptor set gen

This commit is contained in:
Pierre Krieger 2016-03-06 21:00:28 +01:00
parent 6b06fdd693
commit 38f083fa4c

View File

@ -76,7 +76,7 @@ pub fn write_descriptor_sets(doc: &parse::Spirv) -> String {
},
_ => None, // TODO: other types
}
}).next().expect(&format!("Couldn't find relevant type for uniform `{}` (maybe unimplemented)", name));
}).next().expect(&format!("Couldn't find relevant type for uniform `{}` (type {}, maybe unimplemented)", name, pointed_ty));
descriptors.push(Descriptor {
name: name,