Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
 

Detailed Description

Definition at line 1140 of file SkSLWGSLCodeGenerator.cpp.

Constructor & Destructor Documentation

◆ VectorComponentLValue()

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

Definition at line 1144 of file SkSLWGSLCodeGenerator.cpp.

1144: fName(std::move(name)) {}
const char * name
Definition fuchsia.cc:50

Member Function Documentation

◆ load()

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

Implements SkSL::WGSLCodeGenerator::LValue.

Definition at line 1146 of file SkSLWGSLCodeGenerator.cpp.

1146 {
1147 return fName;
1148 }

◆ store()

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

Implements SkSL::WGSLCodeGenerator::LValue.

Definition at line 1150 of file SkSLWGSLCodeGenerator.cpp.

1150 {
1151 return fName + " = " + value + ";";
1152 }
uint8_t value

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