Add a single-flush-validate flush after each initial state application

This commit is contained in:
baldurk
2016-09-19 14:33:00 +02:00
parent 25e1d634fe
commit 39b0804cdb
+5
View File
@@ -1011,6 +1011,11 @@ void D3D12ResourceManager::Apply_InitialState(ID3D12DeviceChild *live, InitialCo
list->ResourceBarrier((UINT)barriers.size(), &barriers[0]);
list->Close();
#if defined(SINGLE_FLUSH_VALIDATE)
m_Device->ExecuteLists();
m_Device->FlushLists(true);
#endif
}
}
else