Go to the source code of this file.
|
| REG_FIDDLE (SkSL_EvaluatingImageShader, 128, 128, false, 5) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
SkSL_EvaluatingImageShader |
, |
|
|
128 |
, |
|
|
128 |
, |
|
|
false |
, |
|
|
5 |
|
|
) |
| |
Definition at line 4 of file SkSL_EvaluatingImageShader.cpp.
4 {
6
8
9 const char* sksl =
10 "uniform shader image;"
11 "half4 main(float2 coord) {"
12 " return image.eval(coord).bgra;"
13 "}";
14
15
17
18
20
21
23 { children, 1 });
24
25
27 p.setShader(myShader);
29}}
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawPaint(const SkPaint &paint)
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix=nullptr) const
static Result MakeForShader(SkString sksl, const Options &)
sk_sp< const SkImage > image
SkSamplingOptions(SkFilterMode::kLinear))