Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use STATE_COMMON to read/write resource data
When reading or writing resource data in Dx12ResourceDataUtil, transition the resource to D3D12_RESOURCE_STATE_COMMON instead of D3D12_RESOURCE_STATE_GENERIC_READ or D3D12_RESOURCE_STATE_COPY_DEST. The resource should automatically be promoted to COPY_SOURCE or COPY_DEST by the command list. This fixes corruption occasionally seen in the first frame of trimmed captures.
- Loading branch information