### Godot version

4.1 beta 3, 4.1 beta 1

### System information

Windows 10 - 4.1 beta 3 - Android 12

### Issue description

Crash when using SoftBody on android mobile.

### Steps to reproduce

- Simple scene setup using a plane softbody, camera.
- Export to android mobile.
- Immediate crash when open the app.

### Minimal reproduction project

[SoftbodyMobileTest.zip](https://github.com/godotengine/godot/files/11871734/SoftbodyMobileTest.zip)

case INITIAL_ACTION_CLEAR_REGION_CONTINUE:
				case INITIAL_ACTION_CONTINUE: {
					if (p_attachments[i].usage_flags & TEXTURE_USAGE_COLOR_ATTACHMENT_BIT) {
						description.loadOp = VK_ATTACHMENT_LOAD_OP_LOAD;
						description.initialLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL;
						description.stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE;
					} else if (p_attachments[i].usage_flags & TEXTURE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT) {
						description.loadOp = VK_ATTACHMENT_LOAD_OP_LOAD;
						description.initialLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL;
						description.stencilLoadOp = VK_ATTACHMENT_LOAD_OP_LOAD;
					} else {
						description.loadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE;
						description.stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE;
						description.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED; 
						dependency_from_external.srcStageMask |= reading_stages;
					}
				} break;
				default: {
					ERR_FAIL_V(VK_NULL_HANDLE); 
				}
			}
		}
		bool used_last = false;
		{
			int last_pass = p_passes.size() - 1;
			if (is_depth) {
				
				if (p_passes[last_pass].depth_attachment == i) {
					used_last = true;
				}