Print the uniform variable that's missing a binding point

This commit is contained in:
Pierre Krieger 2016-03-09 11:48:31 +01:00
parent 5d07058537
commit d0738e20e8

View File

@ -40,7 +40,7 @@ pub fn write_descriptor_sets(doc: &parse::Spirv) -> String {
},
_ => None, // TODO: other types
}
}).next().expect("A uniform is missing a binding");
}).next().expect(&format!("Uniform `{}` is missing a binding", name));
// find informations about the kind of binding for this descriptor
let (desc_ty, bind_ty, bind_start, bind_end) = doc.instructions.iter().filter_map(|i| {