Flutter Impeller
impeller::ShaderFunction Class Reference

#include <shader_function.h>

Inheritance diagram for impeller::ShaderFunction:
impeller::Comparable< ShaderFunction > impeller::ComparableBase impeller::ShaderFunctionGLES impeller::ShaderFunctionMTL impeller::ShaderFunctionVK

Public Member Functions

virtual ~ShaderFunction ()
 
ShaderStage GetStage () const
 
std::size_t GetHash () const override
 
bool IsEqual (const ShaderFunction &other) const override
 
- Public Member Functions inherited from impeller::Comparable< ShaderFunction >
virtual std::size_t GetHash () const=0
 

Protected Member Functions

 ShaderFunction (UniqueID parent_library_id, std::string name, ShaderStage stage)
 

Detailed Description

Definition at line 14 of file shader_function.h.

Constructor & Destructor Documentation

◆ ~ShaderFunction()

impeller::ShaderFunction::~ShaderFunction ( )
virtualdefault

◆ ShaderFunction()

impeller::ShaderFunction::ShaderFunction ( UniqueID  parent_library_id,
std::string  name,
ShaderStage  stage 
)
protected

Definition at line 9 of file shader_function.cc.

12  : parent_library_id_(parent_library_id),
13  name_(std::move(name)),
14  stage_(stage) {}

Member Function Documentation

◆ GetHash()

std::size_t impeller::ShaderFunction::GetHash ( ) const
override

Definition at line 23 of file shader_function.cc.

23  {
24  return fml::HashCombine(parent_library_id_, name_, stage_);
25 }

◆ GetStage()

ShaderStage impeller::ShaderFunction::GetStage ( ) const

Definition at line 18 of file shader_function.cc.

18  {
19  return stage_;
20 }

◆ IsEqual()

bool impeller::ShaderFunction::IsEqual ( const ShaderFunction other) const
overridevirtual

Implements impeller::Comparable< ShaderFunction >.

Definition at line 28 of file shader_function.cc.

28  {
29  return parent_library_id_ == other.parent_library_id_ &&
30  name_ == other.name_ && stage_ == other.stage_;
31 }

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