def get_sampler_type(self, tex, can_write=False):  # pylint: disable=unused-argument
        """ Returns the matching GLSL sampler type for a Texture, or image type
        in case write access is required """
        # TODO: Add more sampler types based on texture type
        if not can_write:
            return "sampler2D"
        else:
            return "writeonly image2D"
 Returns the matching GLSL sampler type for a Texture, or image type
        in case write access is required 
metadrive/render_pipeline/rpcore/stages/update_previous_pipes_stage.py