From 8ebcad3daf2854d5bbfe99bdd3d3f35371e85ef3 Mon Sep 17 00:00:00 2001 From: maik klein Date: Thu, 5 Jan 2017 09:44:49 +0100 Subject: [PATCH] Adds missing unsafe for some device functions --- src/device.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/device.rs b/src/device.rs index a6ccc59..deded2b 100644 --- a/src/device.rs +++ b/src/device.rs @@ -421,7 +421,7 @@ pub trait DeviceV1_0 { } } - fn create_pipeline_layout(&self, + unsafe fn create_pipeline_layout(&self, create_info: &vk::PipelineLayoutCreateInfo, allocation_callbacks: Option<&vk::AllocationCallbacks>) -> VkResult { @@ -462,7 +462,7 @@ pub trait DeviceV1_0 { self.fp_v1_0().unmap_memory(self.handle(), memory); } - fn create_framebuffer(&self, + unsafe fn create_framebuffer(&self, create_info: &vk::FramebufferCreateInfo, allocation_callbacks: Option<&vk::AllocationCallbacks>) -> VkResult {