When using a texture as attachment it must be created witht the GPU_TEXTURE_USAGE_ATTACHMENT flag. If this is not the case it would lead to incorrect usage in Vulkan. This change adds asserts to detect incorrect usage. Pull Request: https://projects.blender.org/blender/blender/pulls/131656