2021-04-09 19:33:53 +00:00
|
|
|
/*
|
|
|
|
* 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,
|
2021-04-12 13:49:20 +00:00
|
|
|
kRuntimeColorFilter, // Runtime effect only suitable as SkColorFilter
|
|
|
|
kRuntimeShader, // " " " " " SkShader
|
2021-06-16 15:33:13 +00:00
|
|
|
kRuntimeBlender, // " " " " " SkBlender
|
2021-12-21 15:36:58 +00:00
|
|
|
kCustomMeshVertex, // Vertex portion of a custom mesh
|
|
|
|
kCustomMeshFragment, // Fragment " " " " "
|
2021-04-09 19:33:53 +00:00
|
|
|
kGeneric,
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace SkSL
|
|
|
|
|
|
|
|
#endif
|