Adds missing unsafe for some device functions

This commit is contained in:
maik klein 2017-01-05 09:44:49 +01:00
parent aa79ab05d7
commit 8ebcad3daf

View file

@ -421,7 +421,7 @@ pub trait DeviceV1_0 {
} }
} }
fn create_pipeline_layout(&self, unsafe fn create_pipeline_layout(&self,
create_info: &vk::PipelineLayoutCreateInfo, create_info: &vk::PipelineLayoutCreateInfo,
allocation_callbacks: Option<&vk::AllocationCallbacks>) allocation_callbacks: Option<&vk::AllocationCallbacks>)
-> VkResult<vk::PipelineLayout> { -> VkResult<vk::PipelineLayout> {
@ -462,7 +462,7 @@ pub trait DeviceV1_0 {
self.fp_v1_0().unmap_memory(self.handle(), memory); self.fp_v1_0().unmap_memory(self.handle(), memory);
} }
fn create_framebuffer(&self, unsafe fn create_framebuffer(&self,
create_info: &vk::FramebufferCreateInfo, create_info: &vk::FramebufferCreateInfo,
allocation_callbacks: Option<&vk::AllocationCallbacks>) allocation_callbacks: Option<&vk::AllocationCallbacks>)
-> VkResult<vk::Framebuffer> { -> VkResult<vk::Framebuffer> {