Go to the source code of this file.
|
| REG_FIDDLE (SkSL_CoordinateSpaces, 128, 128, false, 5) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
SkSL_CoordinateSpaces |
, |
|
|
128 |
, |
|
|
128 |
, |
|
|
false |
, |
|
|
5 |
|
|
) |
| |
Definition at line 4 of file SkSL_CoordinateSpaces.cpp.
4 {
6 const char* sksl =
7 "uniform shader image;"
8 "half4 main(float2 coord) {"
9 " coord.x += sin(coord.y / 3) * 4;"
10 " return image.eval(coord);"
11 "}";
12
13
14
15
17
18
20
21
23
24
26 { children, 1 });
27
28
30 p.setShader(myShader);
32
33}}
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))