File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Samples/UWP/D3D12Fullscreen/src Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 2929#include < pix.h>
3030
3131//
32- // DXGI tearing feature available in KB3156421.
32+ // The DXGI tearing feature is available on Windows 10 systems with KB3156421 or the
33+ // Anniversary Update installed. Since the 10586 SDK will not be patched, we define
34+ // the relevant symbols if they are missing.
3335//
34- #ifndef __dxgi1_5_h__
36+ #ifdef DXGI_PRESENT_ALLOW_TEARING
37+ #include < dxgi1_5.h>
38+ #else
39+ #define DXGI_PRESENT_ALLOW_TEARING 0x00000200UL
40+ #define DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING 2048
41+
3542 typedef
3643 enum DXGI_FEATURE
3744 {
4754 _Inout_updates_bytes_ (FeatureSupportDataSize) void *pFeatureSupportData,
4855 UINT FeatureSupportDataSize) = 0 ;
4956 };
50-
51- #define DXGI_PRESENT_ALLOW_TEARING 0x00000200UL
52- #define DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING 2048
5357#endif
5458
5559#include < wrl.h>
You can’t perform that action at this time.
0 commit comments