(self)
Finalize the template to make sure that shaders are compilable.
        
        This is the place to implement any post-processing algorithm on the
        shader sources, like custom template replacements at runtime.
Finalize the template to make sure that shaders are compilable.
        
        This is the place to implement any post-processing algorithm on the
        shader sources, like custom template replacements at runtime.
Finalize the template to make sure that shaders are compilable . This is the place to implement any post - processing algorithm on the shader sources like custom template replacements at runtime .
def finalize(self):
        """Finalize the template to make sure that shaders are compilable.
        
        This is the place to implement any post-processing algorithm on the
        shader sources, like custom template replacements at runtime.
        
        """
        
        # self.size is a mandatory variable
        assert self.size is not None
        
        # default rendering options
        if self.bounds is None:
            self.bounds = [0, self.size]
        # ensure the type of bounds
        self.bounds = np.array(self.bounds, dtype=np.int32)
    
        if self.fragdata is not None:
            self.set_fragdata(self.fragdata)
    
        if self.primitive_type is None:
            self.primitive_type = 'LINE_STRIP'
def finalize ( self ) : # self.size is a mandatory variable assert self . size is not None # default rendering options if self . bounds is None : self . bounds = [ 0 , self . size ] # ensure the type of bounds self . bounds = np . array ( self . bounds , dtype = np . int32 ) if self . fragdata is not None : self . set_fragdata ( self . fragdata ) if self . primitive_type is None : self . primitive_type = 'LINE_STRIP'