

def get_sampler_type(self, tex, can_write=False):
    ' Returns the matching GLSL sampler type for a Texture, or image type\n        in case write access is required '
    if (not can_write):
        return 'sampler2D'
    else:
        return 'writeonly image2D'

dataset/ETHPy150Open tobspr/RenderPipeline/rpcore/stages/update_previous_pipes_stage.py UpdatePreviousPipesStage.get_sampler_type/original