• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright 2020 The ANGLE Project. 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 // constants.h: Declare some constant values to be used by metal defaultshaders.
7 
8 #ifndef LIBANGLE_RENDERER_METAL_SHADERS_ENUM_H_
9 #define LIBANGLE_RENDERER_METAL_SHADERS_ENUM_H_
10 
11 namespace rx
12 {
13 namespace mtl_shader
14 {
15 
16 enum
17 {
18     kTextureType2D            = 0,
19     kTextureType2DMultisample = 1,
20     kTextureType2DArray       = 2,
21     kTextureTypeCube          = 3,
22     kTextureType3D            = 4,
23     kTextureTypeCount         = 5,
24 };
25 
26 // Metal doesn't support constexpr to be used as array size, so we need to use macro here
27 #define kGenerateMipThreadGroupSizePerDim 8
28 
29 }  // namespace mtl_shader
30 }  // namespace rx
31 
32 #endif
33