diff --git a/src/device.rs b/src/device.rs index a7c0740..0c21973 100644 --- a/src/device.rs +++ b/src/device.rs @@ -425,7 +425,7 @@ pub trait DeviceV1_0 { pipeline_cache: vk::PipelineCache, create_infos: &[vk::GraphicsPipelineCreateInfo], allocation_callbacks: Option<&vk::AllocationCallbacks>) - -> VkResult> { + -> (Vec, VkResult<()>) { let mut pipelines = Vec::with_capacity(create_infos.len()); let err_code = self.fp_v1_0() .create_graphics_pipelines(self.handle(), @@ -436,8 +436,8 @@ pub trait DeviceV1_0 { pipelines.as_mut_ptr()); pipelines.set_len(create_infos.len()); match err_code { - vk::Result::Success => Ok(pipelines), - _ => Err(err_code), + vk::Result::Success => (pipelines, Ok(())), + _ => (pipelines, Err(err_code)), } }