Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Namespaces | Macros | Typedefs | Enumerations | Functions
SkSLIntrinsicList.h File Reference
#include "src/core/SkTHash.h"
#include <cstdint>
#include <initializer_list>
#include <string_view>

Go to the source code of this file.

Namespaces

namespace  SkSL
 

Macros

#define SKSL_INTRINSIC_LIST
 
#define SKSL_INTRINSIC(name)   k_##name##_IntrinsicKind,
 

Typedefs

using SkSL::IntrinsicMap = skia_private::THashMap< std::string_view, IntrinsicKind >
 

Enumerations

enum  SkSL::IntrinsicKind : int8_t { SkSL::kNotIntrinsic = -1 , SkSL::SKSL_INTRINSIC_LIST }
 

Functions

const IntrinsicMapSkSL::GetIntrinsicMap ()
 
IntrinsicKind SkSL::FindIntrinsicKind (std::string_view functionName)
 

Macro Definition Documentation

◆ SKSL_INTRINSIC

#define SKSL_INTRINSIC (   name)    k_##name##_IntrinsicKind,

Definition at line 126 of file SkSLIntrinsicList.h.

◆ SKSL_INTRINSIC_LIST

#define SKSL_INTRINSIC_LIST

Definition at line 19 of file SkSLIntrinsicList.h.

122 {
123
124// The `IntrinsicKind` enum holds every intrinsic supported by SkSL.
125#define SKSL_INTRINSIC(name) k_##name##_IntrinsicKind,
126enum IntrinsicKind : int8_t {
127 kNotIntrinsic = -1,
129};
130#undef SKSL_INTRINSIC
131
132// Returns a map which allows IntrinsicKind values to be looked up by name.
135
136// Looks up intrinsic functions by name.
137IntrinsicKind FindIntrinsicKind(std::string_view functionName);
138
139}
140
141#endif
#define SKSL_INTRINSIC_LIST
const IntrinsicMap & GetIntrinsicMap()
IntrinsicKind FindIntrinsicKind(std::string_view functionName)
skia_private::THashMap< std::string_view, IntrinsicKind > IntrinsicMap