99ddd2a98d
Bug: skia:8451 skia:10827 Change-Id: I5b38a1d72cd4558f8e2a92aaf9b12f05efce0923 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/442683 Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Chris Dalton <csmartdalton@google.com> Reviewed-by: John Stiles <johnstiles@google.com>
30 lines
632 B
C++
30 lines
632 B
C++
/*
|
|
* Copyright 2021 Google LLC.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef SkSLProgramKind_DEFINED
|
|
#define SkSLProgramKind_DEFINED
|
|
|
|
#include <cinttypes>
|
|
|
|
namespace SkSL {
|
|
|
|
/**
|
|
* SkSL supports several different program kinds.
|
|
*/
|
|
enum class ProgramKind : int8_t {
|
|
kFragment,
|
|
kVertex,
|
|
kRuntimeColorFilter, // Runtime effect only suitable as SkColorFilter
|
|
kRuntimeShader, // " " " " " SkShader
|
|
kRuntimeBlender, // " " " " " SkBlender
|
|
kGeneric,
|
|
};
|
|
|
|
} // namespace SkSL
|
|
|
|
#endif
|