aboutsummaryrefslogtreecommitdiff
path: root/src/deps/skia/include/private/SkSLProgramKind.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/deps/skia/include/private/SkSLProgramKind.h')
-rw-r--r--src/deps/skia/include/private/SkSLProgramKind.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/deps/skia/include/private/SkSLProgramKind.h b/src/deps/skia/include/private/SkSLProgramKind.h
new file mode 100644
index 000000000..96826a70b
--- /dev/null
+++ b/src/deps/skia/include/private/SkSLProgramKind.h
@@ -0,0 +1,31 @@
+/*
+ * 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
+ kCustomMeshVertex, // Vertex portion of a custom mesh
+ kCustomMeshFragment, // Fragment " " " " "
+ kGeneric,
+};
+
+} // namespace SkSL
+
+#endif