mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2025-02-27 06:23:31 +00:00
Fix non-compiling tests
This commit is contained in:
parent
faa6537157
commit
02a8c813c5
@ -802,7 +802,7 @@ mod tests {
|
||||
&queue).unwrap();
|
||||
|
||||
match BufferView::new(&buffer) {
|
||||
BufferViewCreationError::WrongBufferUsage => (),
|
||||
Err(BufferViewCreationError::WrongBufferUsage) => (),
|
||||
_ => panic!()
|
||||
}
|
||||
}
|
||||
|
@ -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 }
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user