| Flutter Impeller |

Public Member Functions | List of all members
impeller::PipelineLibraryGLES::ProgramKey::Hash Struct Reference

`#include <pipeline_library_gles.h>`

## Public Member Functions
std::size_t | operator() (const ProgramKey &key) const

## Detailed Description

Definition at line 60 of file pipeline_library_gles.h.

## Member Function Documentation

## ◆ operator()()

std::size_t impeller::PipelineLibraryGLES::ProgramKey::Hash::operator() | ( | const ProgramKey & | key | ) | const
| inline

Definition at line 61 of file pipeline_library_gles.h.

61 {
62 auto seed = fml::HashCombine();
63 if (key.vertex_shader) {
64 fml::HashCombineSeed(seed, key.vertex_shader->GetHash());
65 }
66 if (key.fragment_shader) {
67 fml::HashCombineSeed(seed, key.fragment_shader->GetHash());
68 }
69 for (const auto& constant : key.specialization_constants) {
70 fml::HashCombineSeed(seed, constant);
71 }
72 return seed;
73 }

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

- impeller/renderer/backend/gles/pipeline_library_gles.h