ID3D12CommandAllocator::Reset should not be called before the command execution is complete. However, if only one ID3D12CommandAllocator is used, the previous command may not be completed in time.
This fix uses multiple ID3D12CommandAllocator so that the ID3D12CommandAllocator in use is not discarded.
There is a previous fix here. https://github.com/Unity-Technologies/com.unity.webrtc/pull/939
ID3D12CommandAllocator::Reset should not be called before the command execution is complete. However, if only one ID3D12CommandAllocator is used, the previous command may not be completed in time.
This fix uses multiple ID3D12CommandAllocator so that the ID3D12CommandAllocator in use is not discarded.