/// Ends building of the current function.
Ends building of the current function.
Ends building of the current function .
pub fn end_function(&mut self) -> BuildResult<()> {
        let selected_function = match self.selected_function {
            Some(f) => f,
            None => return Err(Error::MismatchedFunctionEnd),
        };
        self.module.functions[selected_function].end = Some(dr::Instruction::new(
            spirv::Op::FunctionEnd,
            None,
            None,
            vec![],
        ));
        self.selected_function = None;
        Ok(())
    }
pub fn end_function ( & mut self ) -> BuildResult < ( ) > { let selected_function = match self . selected_function { Some ( f ) => f , None => return Err ( Error :: MismatchedFunctionEnd ) , } ; self . module . functions [ selected_function ] . end = Some ( dr :: Instruction :: new ( spirv :: Op :: FunctionEnd , None , None , vec ! [ ] , ) ) ; self . selected_function = None ; Ok ( ( ) ) }
Ends building of the current function.
Ends building of the current function .
&mut self