FRDGSubresourceState::IsMergeAllowed

Given a before and after state, returns whether they can be merged into a single state.