• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright 2015 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 // dxgi_support_table:
7 //   Queries for DXGI support of various texture formats. Depends on DXGI
8 //   version, D3D feature level, and is sometimes guaranteed or optional.
9 //
10 
11 #ifndef LIBANGLE_RENDERER_DXGI_SUPPORT_TABLE_H_
12 #define LIBANGLE_RENDERER_DXGI_SUPPORT_TABLE_H_
13 
14 #include "common/platform.h"
15 
16 namespace rx
17 {
18 
19 namespace d3d11
20 {
21 
22 struct DXGISupport
23 {
DXGISupportDXGISupport24     DXGISupport() : alwaysSupportedFlags(0), neverSupportedFlags(0), optionallySupportedFlags(0) {}
25 
DXGISupportDXGISupport26     DXGISupport(UINT alwaysSupportedIn, UINT neverSupportedIn, UINT optionallySupportedIn)
27         : alwaysSupportedFlags(alwaysSupportedIn),
28           neverSupportedFlags(neverSupportedIn),
29           optionallySupportedFlags(optionallySupportedIn)
30     {}
31 
32     UINT alwaysSupportedFlags;
33     UINT neverSupportedFlags;
34     UINT optionallySupportedFlags;
35 };
36 
37 const DXGISupport &GetDXGISupport(DXGI_FORMAT dxgiFormat, D3D_FEATURE_LEVEL featureLevel);
38 
39 }  // namespace d3d11
40 
41 }  // namespace rx
42 
43 #endif  // LIBANGLE_RENDERER_DXGI_SUPPORT_TABLE_H_
44