Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkSL::WGSLCodeGenerator::VectorComponentLValue Class Reference
Inheritance diagram for SkSL::WGSLCodeGenerator::VectorComponentLValue:
SkSL::WGSLCodeGenerator::LValue

Public Member Functions

 VectorComponentLValue (std::string name)
 
std::string load () override
 
std::string store (const std::string &value) override
 
- Public Member Functions inherited from SkSL::WGSLCodeGenerator::LValue
virtual ~LValue ()=default
 
virtual std::string load ()=0
 
virtual std::string store (const std::string &value)=0
 

Detailed Description

Definition at line 1142 of file SkSLWGSLCodeGenerator.cpp.

Constructor & Destructor Documentation

◆ VectorComponentLValue()

SkSL::WGSLCodeGenerator::VectorComponentLValue::VectorComponentLValue ( std::string  name)
inline

Definition at line 1146 of file SkSLWGSLCodeGenerator.cpp.

1146: fName(std::move(name)) {}
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32

Member Function Documentation

◆ load()

std::string SkSL::WGSLCodeGenerator::VectorComponentLValue::load ( )
inlineoverridevirtual

Implements SkSL::WGSLCodeGenerator::LValue.

Definition at line 1148 of file SkSLWGSLCodeGenerator.cpp.

1148 {
1149 return fName;
1150 }

◆ store()

std::string SkSL::WGSLCodeGenerator::VectorComponentLValue::store ( const std::string &  value)
inlineoverridevirtual

Implements SkSL::WGSLCodeGenerator::LValue.

Definition at line 1152 of file SkSLWGSLCodeGenerator.cpp.

1152 {
1153 return fName + " = " + value + ";";
1154 }
uint8_t value

The documentation for this class was generated from the following file: