pub unsafe fn create_instance(&self, create_info: &InstanceCreateInfo,
            allocator: Option<*const vks::VkAllocationCallbacks>) -> VdResult<InstanceHandle> {
        let allocator = allocator.unwrap_or(ptr::null());
        let mut handle = ptr::null_mut();
        let result = self.core_global().vkCreateInstance(create_info.as_raw(), allocator, &mut handle);
        error::check(result, "vkCreateInstance", InstanceHandle(handle))
    }
/// Creates and returns a new Vulkan instance.
///
/// https://www.khronos.org/registry/vulkan/specs/1.0/man/html/vkCreateInstance.html
//
// *PFN_vkCreateInstance)(const VkInstanceCreateInfo* pCreateInfo, const
// VkAllocationCallbacks* pAllocator, VkInstance* pInstance);
Creates and returns a new Vulkan instance.


Creates and returns a new Vulkan instance .
pub unsafe fn create_instance(&self, create_info: &InstanceCreateInfo,
            allocator: Option<*const vks::VkAllocationCallbacks>) -> VdResult<InstanceHandle> {
        let allocator = allocator.unwrap_or(ptr::null());
        let mut handle = ptr::null_mut();
        let result = self.core_global().vkCreateInstance(create_info.as_raw(), allocator, &mut handle);
        error::check(result, "vkCreateInstance", InstanceHandle(handle))
    }
pub unsafe fn create_instance ( & self , create_info : & InstanceCreateInfo , allocator : Option < * const vks :: VkAllocationCallbacks > ) -> VdResult < InstanceHandle > { let allocator = allocator . unwrap_or ( ptr :: null ( ) ) ; let mut handle = ptr :: null_mut ( ) ; let result = self . core_global ( ) . vkCreateInstance ( create_info . as_raw ( ) , allocator , & mut handle ) ; error :: check ( result , " " , InstanceHandle ( handle ) ) }
Creates and returns a new Vulkan instance.
Creates and returns a new Vulkan instance .
&self
create_info
&InstanceCreateInfo
allocator
Option<*const vks::VkAllocationCallbacks>
&self
create_info
&InstanceCreateInfo
allocator
Option<*const vks::VkAllocationCallbacks>