Go to the source code of this file.
|
static bool | valid_input (SkScalar baseX, SkScalar baseY, int numOctaves, const SkISize *tileSize, SkScalar seed) |
|
void | SkRegisterPerlinNoiseShaderFlattenable () |
|
SK_API sk_sp< SkShader > | SkShaders::MakeFractalNoise (SkScalar baseFrequencyX, SkScalar baseFrequencyY, int numOctaves, SkScalar seed, const SkISize *tileSize=nullptr) |
|
SK_API sk_sp< SkShader > | SkShaders::MakeTurbulence (SkScalar baseFrequencyX, SkScalar baseFrequencyY, int numOctaves, SkScalar seed, const SkISize *tileSize=nullptr) |
|
◆ SkRegisterPerlinNoiseShaderFlattenable()
void SkRegisterPerlinNoiseShaderFlattenable |
( |
| ) |
|
Definition at line 128 of file SkPerlinNoiseShaderImpl.cpp.
128 {
130
132}
#define SK_REGISTER_FLATTENABLE(type)
static void Register(const char name[], Factory)
◆ valid_input()
Definition at line 111 of file SkPerlinNoiseShaderImpl.cpp.
112 {
113 if (!(baseX >= 0 && baseY >= 0)) {
114 return false;
115 }
117 return false;
118 }
119 if (tileSize && !(tileSize->
width() >= 0 && tileSize->
height() >= 0)) {
120 return false;
121 }
123 return false;
124 }
125 return true;
126}
static bool SkIsFinite(T x, Pack... values)
static const int kMaxOctaves
constexpr int32_t width() const
constexpr int32_t height() const