Crash: There is no active graphics context on this command list. There may be a missing call to SwitchPipeline()

This might help