pub fn build(&self) -> Result<Shader, ShaderError> {
        let vert_src = self.vert_src.as_str();
        let frag_src = if self.frag_src.is_empty() { None } else { Some(self.frag_src.as_str()) };
        let geom_src = if self.geom_src.is_empty() { None } else { Some(self.geom_src.as_str()) };

        Shader::new(vert_src, geom_src, frag_src, self.transform_feedback_outputs.clone())
    }
/// Converts this prototype into a shader
Converts this prototype into a shader
Converts this prototype into a shader
pub fn build(&self) -> Result<Shader, ShaderError> {
        let vert_src = self.vert_src.as_str();
        let frag_src = if self.frag_src.is_empty() { None } else { Some(self.frag_src.as_str()) };
        let geom_src = if self.geom_src.is_empty() { None } else { Some(self.geom_src.as_str()) };
        Shader::new(vert_src, geom_src, frag_src, self.transform_feedback_outputs.clone())
    }
pub fn build ( & self ) -> Result < Shader , ShaderError > { let vert_src = self . vert_src . as_str ( ) ; let frag_src = if self . frag_src . is_empty ( ) { None } else { Some ( self . frag_src . as_str ( ) ) } ; let geom_src = if self . geom_src . is_empty ( ) { None } else { Some ( self . geom_src . as_str ( ) ) } ; Shader :: new ( vert_src , geom_src , frag_src , self . transform_feedback_outputs . clone ( ) ) }
Converts this prototype into a shader
Converts this prototype into a shader
&self
&self