microsoft / DirectXTK12

The DirectX Tool Kit (aka DirectXTK12) is a collection of helper classes for writing DirectX 12 code in C++
https://walbourn.github.io/directx-tool-kit-for-directx-12/
MIT License
1.48k stars 393 forks source link

ResourceUploadBatch updated to support copy & compute queues #71

Closed walbourn closed 4 years ago

walbourn commented 4 years ago

The ResourceUploadBatch as originally implemented only worked on DIRECT command queues, which are the kind created by DeviceResources.

This PR adds supports for both COPY and COMPUTE command queues as an option.

The only other supported command queue types are VIDEO_* which are not relevant here.

walbourn commented 4 years ago

For test coverage, see this PR