Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkSL::SPIRVCodeGenerator::Instruction::Hash Struct Reference

Public Member Functions

uint32_t operator() (const SPIRVCodeGenerator::Instruction &key) const
 

Detailed Description

Definition at line 687 of file SkSLSPIRVCodeGenerator.cpp.

Member Function Documentation

◆ operator()()

uint32_t SkSL::SPIRVCodeGenerator::Instruction::Hash::operator() ( const SPIRVCodeGenerator::Instruction &  key) const
inline

Definition at line 688 of file SkSLSPIRVCodeGenerator.cpp.

688 {
689 uint32_t hash = key.fResultKind;
690 hash = SkChecksum::Hash32(&key.fOp, sizeof(key.fOp), hash);
691 hash = SkChecksum::Hash32(key.fWords.data(), key.fWords.size() * sizeof(int32_t), hash);
692 return hash;
693 }
static uint32_t hash(const SkShaderBase::GradientInfo &v)
uint32_t Hash32(const void *data, size_t bytes, uint32_t seed)
Definition: SkChecksum.cpp:113

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