#include <SkSLExtension.h>
#extension <name> : enable
Definition at line 26 of file SkSLExtension.h.
◆ Extension()
SkSL::Extension::Extension |
( |
Position |
pos, |
|
|
std::string_view |
name |
|
) |
| |
|
inline |
Definition at line 30 of file SkSLExtension.h.
static constexpr Kind kIRNodeKind
std::string_view name() const
◆ Convert()
std::unique_ptr< Extension > Extension::Convert |
( |
const Context & |
context, |
|
|
Position |
pos, |
|
|
std::string_view |
name, |
|
|
std::string_view |
behaviorText |
|
) |
| |
|
static |
Definition at line 17 of file SkSLExtension.cpp.
20 {
22
23 context.fErrors->error(
pos,
"unsupported directive '#extension'");
24 return nullptr;
25 }
26 if (behaviorText == "disable") {
27
28 return nullptr;
29 }
30 if (behaviorText != "require" && behaviorText != "enable" && behaviorText != "warn") {
31 context.fErrors->error(
pos,
"expected 'require', 'enable', 'warn', or 'disable'");
32 return nullptr;
33 }
34
36}
static std::unique_ptr< Extension > Make(const Context &context, Position pos, std::string_view name)
static bool IsRuntimeEffect(ProgramKind kind)
◆ description()
std::string SkSL::Extension::description |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ Make()
◆ name()
std::string_view SkSL::Extension::name |
( |
| ) |
const |
|
inline |
◆ kIRNodeKind
The documentation for this class was generated from the following files: