Godot Version
4.6.3
Question
I created a CompositorEffect compute shader that cannot not write back directly into the “color_image”, because it can’t be parallel. so I created a tmp buffer. I saw examples where they have a 2nd shader that copies the buffer back to the image, eg: Godot-HBAO/addons/Godot_HBAO at main · KawaiiPrincess/Godot-HBAO · GitHub
but that seems to be too complicated.
I tried to use rd.texture_copy or td.texture_update, but it seems the screen buffer does not have the correct access bits set. but updating the image in the compute shader works… so I wonder why?
thanks.