m_primaryBuffer could be nullptr when a pipeline was inactive before, causing a crash
m_primaryBuffer