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.5k stars 404 forks source link

GenerateMips #17

Closed walbourn closed 7 years ago

walbourn commented 7 years ago

Auto-gen mipmaps on Windows 10 (14393) for BGRA formats are triggering a SDK debug layer failure.

You can repro this problem using LoadTest.

walbourn commented 7 years ago

In October 2016, the SDK debug layer was updated to fail when doing a CopyResource from a BGRA <-> RGBA (which was already present for CopySubresourceRegion). This breaks the 'non-UAV' codepath in the autogen mipmaper.

Ignoring the error ends up working on most hardware, but is technically outside the WDDM spec.

walbourn commented 7 years ago

Workaround applied for February 2017 release in this commit