380d1aedf9
This is a reland of e1e1c03229
Original change's description:
> Start on custom mesh API
>
> Bug: skia:12720
> Change-Id: I8ed0555f1c5b8b0e97e73a657635dac2c0df0ccf
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/482457
> Reviewed-by: Brian Osman <brianosman@google.com>
> Commit-Queue: Brian Salomon <bsalomon@google.com>
Bug: skia:12720
Change-Id: I5c54f37949d8bd45ea606264c439912b65158b79
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/487220
Commit-Queue: Brian Salomon <bsalomon@google.com>
Auto-Submit: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
32 lines
755 B
C++
32 lines
755 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
|
|
kCustomMeshVertex, // Vertex portion of a custom mesh
|
|
kCustomMeshFragment, // Fragment " " " " "
|
|
kGeneric,
|
|
};
|
|
|
|
} // namespace SkSL
|
|
|
|
#endif
|