Currently the image layout was fixed when creating pipeline barriers. This PR determined the image layout an image is in based on its access mask. This extends the usage of the render graph and its pipeline barrier generation for render attachments. In future it can be extended to support other layouts. Pull Request: https://projects.blender.org/blender/blender/pulls/121646