Resource barriers expect a pre-state as well as a post-state. Does that pre state have to match the current state of the resource in the driver? Or can you have "don't care" states where you are just transitioning from an unknown state to something new.
For instance, in my frame I might have a transition after the buffer flip that goes from "present" to "render target" mode, and vice versa at the end of the frame.
But what if I create the resource in some other initial state (like common), do I have to explicitly transform it before I hit the main render loop? Or can it go from a common "uninitialized" state to the render target state without issue?
Thanks!