• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1  /*
2   * Copyright 2021 Google LLC.
3   *
4   * Use of this source code is governed by a BSD-style license that can be
5   * found in the LICENSE file.
6   */
7  
8  #ifndef SkSLProgramKind_DEFINED
9  #define SkSLProgramKind_DEFINED
10  
11  #include <cinttypes>
12  
13  namespace SkSL {
14  
15  /**
16   * SkSL supports several different program kinds.
17   */
18  enum class ProgramKind : int8_t {
19      kFragment,
20      kVertex,
21      kRuntimeColorFilter,  // Runtime effect only suitable as SkColorFilter
22      kRuntimeShader,       //   "       "     "      "     "  SkShader
23      kRuntimeBlender,      //   "       "     "      "     "  SkBlender
24      kGeneric,
25  };
26  
27  } // namespace SkSL
28  
29  #endif
30