We need some way to save what state a resource was in last frame, and issue barrier from that state to the current state Maybe a StateTracker class that handles all state tracking?