Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
impeller::ImmutableSamplerKeyVK Struct Reference

#include <yuv_conversion_vk.h>

Inheritance diagram for impeller::ImmutableSamplerKeyVK:
impeller::Comparable< ImmutableSamplerKeyVK > impeller::ComparableBase

Public Member Functions

 ImmutableSamplerKeyVK (const SamplerVK &sampler)
 
std::size_t GetHash () const override
 
bool IsEqual (const ImmutableSamplerKeyVK &other) const override
 
virtual std::size_t GetHash () const=0
 
virtual bool IsEqual (const ImmutableSamplerKeyVK &other) const=0
 

Public Attributes

SamplerDescriptor sampler
 
YUVConversionDescriptorVK yuv_conversion
 

Detailed Description

Definition at line 94 of file yuv_conversion_vk.h.

Constructor & Destructor Documentation

◆ ImmutableSamplerKeyVK()

impeller::ImmutableSamplerKeyVK::ImmutableSamplerKeyVK ( const SamplerVK sampler)
explicit

Definition at line 102 of file yuv_conversion_vk.cc.

103 : sampler(sampler.GetDescriptor()) {
104 if (const auto& conversion = sampler.GetYUVConversion()) {
105 yuv_conversion = conversion->GetDescriptor();
106 }
107}
YUVConversionDescriptorVK yuv_conversion

Member Function Documentation

◆ GetHash()

std::size_t impeller::ImmutableSamplerKeyVK::GetHash ( ) const
overridevirtual

Implements impeller::Comparable< ImmutableSamplerKeyVK >.

Definition at line 114 of file yuv_conversion_vk.cc.

114 {
116 YUVConversionDescriptorVKHash{}(yuv_conversion));
117}
constexpr std::size_t HashCombine()
Definition: hash_combine.h:25
std::size_t GetHash() const override

◆ IsEqual()

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

Implements impeller::Comparable< ImmutableSamplerKeyVK >.

Definition at line 109 of file yuv_conversion_vk.cc.

109 {
110 return sampler.IsEqual(other.sampler) &&
111 YUVConversionDescriptorVKEqual{}(yuv_conversion, other.yuv_conversion);
112}
bool IsEqual(const SamplerDescriptor &o) const override

Member Data Documentation

◆ sampler

SamplerDescriptor impeller::ImmutableSamplerKeyVK::sampler

Definition at line 95 of file yuv_conversion_vk.h.

◆ yuv_conversion

YUVConversionDescriptorVK impeller::ImmutableSamplerKeyVK::yuv_conversion

Definition at line 96 of file yuv_conversion_vk.h.


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