Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 671 of file SkSLSPIRVCodeGenerator.cpp.

Member Function Documentation

◆ operator()()

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

Definition at line 672 of file SkSLSPIRVCodeGenerator.cpp.

672 {
673 uint32_t hash = key.fResultKind;
674 hash = SkChecksum::Hash32(&key.fOp, sizeof(key.fOp), hash);
675 hash = SkChecksum::Hash32(key.fWords.data(), key.fWords.size() * sizeof(int32_t), hash);
676 return hash;
677 }
static uint32_t hash(const SkShaderBase::GradientInfo &v)
uint32_t Hash32(const void *data, size_t bytes, uint32_t seed)

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