/// Returns information about the entry point with the provided name. Returns `None` if no entry
/// point with that name exists in the shader module or if multiple entry points with the same
/// name exist.
Returns information about the entry point with the provided name. Returns `None` if no entry
point with that name exists in the shader module or if multiple entry points with the same
name exist.
Returns information about the entry point with the provided name . Returns ` None ` if no entry point with that name exists in the shader module or if multiple entry points with the same name exist .
pub fn entry_point<'a>(&'a self, name: &str) -> Option<EntryPoint<'a>> {
        self.entry_points.get(name).and_then(|infos| {
            if infos.len() == 1 {
                infos.iter().next().map(|(_, info)| EntryPoint {
                    module: self,
                    name: CString::new(name).unwrap(),
                    info,
                })
            } else {
                None
            }
        })
    }
pub fn entry_point < ' a > ( & ' a self , name : & str ) -> Option < EntryPoint < ' a > > { self . entry_points . get ( name ) . and_then ( | infos | { if infos . len ( ) == 1 { infos . iter ( ) . next ( ) . map ( | ( _ , info ) | EntryPoint { module : self , name : CString :: new ( name ) . unwrap ( ) , info , } ) } else { None } } ) }
Returns information about the entry point with the provided name.
Returns information about the entry point with the provided name .
&'a self
name
&str