How to apply padding in Compute Shader

Hello there,
I am working on a project and it involves dealing with image processing. Considering that image processing is quite a taxing process, I am looking for a way to save some performance.

Sometimes I only need to update part of an image, currently when that happens I re-process the entire image, although I was curious is there a way to only update a block of a texture only? So let’s say start at some x and y and update a chuck of a certain width and height. Is that possible to do with Compute Shader?

My idea is to pre divide the texture into chunks end update them one by one. With that you could find all the chunks that need to be updated in your selection instead of the entire texture.