• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright 2016 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 // Helper routines for the D3D11 texture format table.
7 
8 #include "libANGLE/renderer/d3d/d3d11/texture_format_table.h"
9 
10 #include "libANGLE/renderer/load_functions_table.h"
11 
12 namespace rx
13 {
14 
15 namespace d3d11
16 {
17 
getSwizzleFormat(const Renderer11DeviceCaps & deviceCaps) const18 const Format &Format::getSwizzleFormat(const Renderer11DeviceCaps &deviceCaps) const
19 {
20     return (swizzleFormat == internalFormat ? *this : Format::Get(swizzleFormat, deviceCaps));
21 }
22 
getLoadFunctions() const23 LoadFunctionMap Format::getLoadFunctions() const
24 {
25     return GetLoadFunctionsMap(internalFormat, formatID);
26 }
27 
format() const28 const angle::Format &Format::format() const
29 {
30     return angle::Format::Get(formatID);
31 }
32 
33 }  // namespace d3d11
34 
35 }  // namespace rx
36