vk: don't unwrap create_graphics_pipelines

This commit is contained in:
chyyran 2023-02-14 19:24:42 -05:00
parent 0bbf124b54
commit 4978e1f24f

View file

@ -300,8 +300,7 @@ impl VulkanGraphicsPipeline {
// panic_safety: if this is successful this should return 1 pipelines. // panic_safety: if this is successful this should return 1 pipelines.
device device
.create_graphics_pipelines(*cache, &pipeline_info, None) .create_graphics_pipelines(*cache, &pipeline_info, None)
.map_err(|e| e.1) .map_err(|e| e.1)?[0]
.unwrap()[0]
}; };
Ok(pipeline) Ok(pipeline)