pub fn enumerate_layers() -> Result<impl Iterator<Item = String>, VkError> {
        let layers = LIBRARY
            .enumerate_instance_layer_properties()?
            .into_iter()
            .map(|properties| {
                // SAFETY: Vulkan guarantees the string is null terminated.
                let c_str = unsafe { CStr::from_ptr(&properties.layer_name as *const _) };
                c_str.to_str().expect("Invalid UTF-8 in layer name").to_owned()
            });

        Ok(layers)
    }
/// Enumerates over the available instance layers on the system.
Enumerates over the available instance layers on the system.
Enumerates over the available instance layers on the system .
pub fn enumerate_layers() -> Result<impl Iterator<Item = String>, VkError> {
        let layers = LIBRARY
            .enumerate_instance_layer_properties()?
            .into_iter()
            .map(|properties| {
                // SAFETY: Vulkan guarantees the string is null terminated.
                let c_str = unsafe { CStr::from_ptr(&properties.layer_name as *const _) };
                c_str.to_str().expect("Invalid UTF-8 in layer name").to_owned()
            });
        Ok(layers)
    }
pub fn enumerate_layers ( ) -> Result < impl Iterator < Item = String > , VkError > { let layers = LIBRARY . enumerate_instance_layer_properties ( ) ? . into_iter ( ) . map ( | properties | { // SAFETY: Vulkan guarantees the string is null terminated. let c_str = unsafe { CStr :: from_ptr ( & properties . layer_name as * const _ ) } ; c_str . to_str ( ) . expect ( " " ) . to_owned ( ) } ) ; Ok ( layers ) }
Enumerates over the available instance layers on the system.
Enumerates over the available instance layers on the system .