Flutter Engine
The Flutter Engine
|
#include "include/core/SkTypes.h"
Go to the source code of this file.
Enumerations | |
enum class | SkSLType : char { kVoid , kBool , kBool2 , kBool3 , kBool4 , kShort , kShort2 , kShort3 , kShort4 , kUShort , kUShort2 , kUShort3 , kUShort4 , kFloat , kFloat2 , kFloat3 , kFloat4 , kFloat2x2 , kFloat3x3 , kFloat4x4 , kHalf , kHalf2 , kHalf3 , kHalf4 , kHalf2x2 , kHalf3x3 , kHalf4x4 , kInt , kInt2 , kInt3 , kInt4 , kUInt , kUInt2 , kUInt3 , kUInt4 , kTexture2DSampler , kTextureExternalSampler , kTexture2DRectSampler , kTexture2D , kSampler , kInput , kLast = kInput } |
Functions | |
const char * | SkSLTypeString (SkSLType t) |
static constexpr bool | SkSLTypeIsFloatType (SkSLType type) |
static constexpr bool | SkSLTypeIsIntegralType (SkSLType type) |
static constexpr int | SkSLTypeVecLength (SkSLType type) |
static constexpr bool | SkSLTypeCanBeUniformValue (SkSLType type) |
bool | SkSLTypeIsFullPrecisionNumericType (SkSLType type) |
int | SkSLTypeMatrixSize (SkSLType type) |
bool | SkSLTypeIsCombinedSamplerType (SkSLType type) |
Variables | |
static const int | kSkSLTypeCount = static_cast<int>(SkSLType::kLast) + 1 |
|
strong |
Types of shader-language-specific boxed variables we can create.
Definition at line 16 of file SkSLTypeShared.h.
|
staticconstexpr |
Is the shading language type supported as a uniform (ie, does it have a corresponding set function on GrGLSLProgramDataManager)?
Definition at line 229 of file SkSLTypeShared.h.
bool SkSLTypeIsCombinedSamplerType | ( | SkSLType | type | ) |
If the type represents a square matrix, return its size; otherwise, -1.
Definition at line 165 of file SkSLTypeShared.cpp.
|
staticconstexpr |
Is the shading language type float (including vectors/matrices)?
Definition at line 67 of file SkSLTypeShared.h.
bool SkSLTypeIsFullPrecisionNumericType | ( | SkSLType | type | ) |
Is the shading language type full precision?
Definition at line 58 of file SkSLTypeShared.cpp.
|
staticconstexpr |
Is the shading language type integral (including vectors)?
Definition at line 118 of file SkSLTypeShared.h.
If the type represents a square matrix, return its size; otherwise, -1.
Definition at line 111 of file SkSLTypeShared.cpp.
const char * SkSLTypeString | ( | SkSLType | t | ) |
Returns the SkSL typename for this type.
Definition at line 10 of file SkSLTypeShared.cpp.
If the type represents a single value or vector return the vector length; otherwise, -1.
Definition at line 169 of file SkSLTypeShared.h.
|
static |
Definition at line 61 of file SkSLTypeShared.h.