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.44k stars 369 forks source link

Add c_initialRead/UAVTargetState to help with PC vs. Xbox warnings #217

Closed walbourn closed 3 months ago

walbourn commented 3 months ago

The PC debug layer will warn in places where you are using specific resource states when common-state promotion handles it. On Xbox, common-state is opt-in. To support this, there are some defines in DirectXHelpers.h to provide the optimal state for Xbox vs. PC. This PR two more.