Fix non-compiling tests

This commit is contained in:
Pierre Krieger 2016-03-13 11:45:44 +01:00
parent faa6537157
commit 02a8c813c5
3 changed files with 6 additions and 2 deletions

View File

@ -802,7 +802,7 @@ mod tests {
&queue).unwrap();
match BufferView::new(&buffer) {
BufferViewCreationError::WrongBufferUsage => (),
Err(BufferViewCreationError::WrongBufferUsage) => (),
_ => panic!()
}
}

View File

@ -109,6 +109,10 @@ pub unsafe trait Data {
}
// TODO: that's just an example ; implement for all common data types
unsafe impl Data for i8 {
#[inline]
fn ty() -> Format { Format::R8Sint }
}
unsafe impl Data for u8 {
#[inline]
fn ty() -> Format { Format::R8Uint }

View File

@ -10,7 +10,7 @@ macro_rules! instance {
engine_name: "vulkano tests", engine_version: 1
};
match instance::Instance::new(Some(&app), &instance::Extensions::none(), None) {
match instance::Instance::new(Some(&app), &instance::InstanceExtensions::none(), None) {
Ok(i) => i,
Err(_) => return
}