FRDGSubresourceState::IsTransitionRequired

Given a before and after state, returns whether a resource barrier is required.