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.47k stars 393 forks source link

Autogen format support made more robust #54

Closed walbourn closed 5 years ago

walbourn commented 5 years ago

The list of formats supported for the UAV path was assuming D3D12_FEATURE_DATA_D3D12_OPTIONS.TypedUAVLoadAdditionalFormats was always set. This change makes sure that is validated.

Also allows optional device support for other UAV formats to cover almost all the same formats that DX11 could support for autogen mips.

Had to make IsSupportedForGenerateMips a non-static method, which required some code refactoring for the texture loaders.