#include <SkSLModifierFlags.h>
Definition at line 53 of file SkSLModifierFlags.h.
◆ ModifierFlags()
◆ checkPermittedFlags()
Verifies that only permitted modifier flags are included. Reports errors and returns false in the event of a violation.
Definition at line 96 of file SkSLModifierFlags.cpp.
98 {
119 };
120
121 bool success = true;
123 for (
const auto&
f : kModifierFlags) {
124 if (modifierFlags &
f.flag) {
125 if (!(permittedModifierFlags &
f.flag)) {
126 context.fErrors->error(
pos,
"'" + std::string(
f.name) +
"' is not permitted here");
127 success = false;
128 }
129 modifierFlags &= ~f.flag;
130 }
131 }
133
134 return success;
135}
ModifierFlags(SkEnumBitMask< SkSL::ModifierFlag > that)
FlutterSemanticsFlag flag
DEF_SWITCHES_START aot vmservice shared library name
◆ description()
std::string SkSL::ModifierFlags::description |
( |
| ) |
const |
Definition at line 88 of file SkSLModifierFlags.cpp.
88 {
90 if (!s.empty()) {
92 }
94}
std::string paddedDescription() const
◆ isBuffer()
bool SkSL::ModifierFlags::isBuffer |
( |
| ) |
const |
|
inline |
◆ isConst()
bool SkSL::ModifierFlags::isConst |
( |
| ) |
const |
|
inline |
◆ isES3()
bool SkSL::ModifierFlags::isES3 |
( |
| ) |
const |
|
inline |
◆ isExport()
bool SkSL::ModifierFlags::isExport |
( |
| ) |
const |
|
inline |
◆ isInline()
bool SkSL::ModifierFlags::isInline |
( |
| ) |
const |
|
inline |
◆ isNoInline()
bool SkSL::ModifierFlags::isNoInline |
( |
| ) |
const |
|
inline |
◆ isPixelLocal()
bool SkSL::ModifierFlags::isPixelLocal |
( |
| ) |
const |
|
inline |
◆ isPure()
bool SkSL::ModifierFlags::isPure |
( |
| ) |
const |
|
inline |
◆ isReadOnly()
bool SkSL::ModifierFlags::isReadOnly |
( |
| ) |
const |
|
inline |
◆ isUniform()
bool SkSL::ModifierFlags::isUniform |
( |
| ) |
const |
|
inline |
◆ isWorkgroup()
bool SkSL::ModifierFlags::isWorkgroup |
( |
| ) |
const |
|
inline |
◆ isWriteOnly()
bool SkSL::ModifierFlags::isWriteOnly |
( |
| ) |
const |
|
inline |
◆ paddedDescription()
std::string SkSL::ModifierFlags::paddedDescription |
( |
| ) |
const |
Definition at line 17 of file SkSLModifierFlags.cpp.
17 {
18
22 }
25 }
28 }
31 }
34 }
35
36
39 }
41 result +=
"noperspective ";
42 }
45 }
48 }
55 }
58 }
61 }
64 }
67 }
70 }
73 }
74
75
77
79 }
81
83 }
84
86}
The documentation for this class was generated from the following files: