Flutter Engine
 
Loading...
Searching...
No Matches
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
 

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 103 of file yuv_conversion_vk.cc.

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

References impeller::Sampler::GetDescriptor(), sampler, and yuv_conversion.

Member Function Documentation

◆ GetHash()

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

Implements impeller::Comparable< ImmutableSamplerKeyVK >.

Definition at line 116 of file yuv_conversion_vk.cc.

116 {
118 YUVConversionDescriptorVKHash{}(yuv_conversion));
119}
constexpr std::size_t HashCombine()
static uint64_t ToKey(const SamplerDescriptor &d)

References fml::HashCombine(), sampler, impeller::SamplerDescriptor::ToKey(), and yuv_conversion.

◆ IsEqual()

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

Implements impeller::Comparable< ImmutableSamplerKeyVK >.

Definition at line 110 of file yuv_conversion_vk.cc.

110 {
112 SamplerDescriptor::ToKey(other.sampler) &&
113 YUVConversionDescriptorVKEqual{}(yuv_conversion, other.yuv_conversion);
114}

References sampler, impeller::SamplerDescriptor::ToKey(), and yuv_conversion.

Member Data Documentation

◆ sampler

SamplerDescriptor impeller::ImmutableSamplerKeyVK::sampler

Definition at line 95 of file yuv_conversion_vk.h.

Referenced by GetHash(), ImmutableSamplerKeyVK(), and IsEqual().

◆ yuv_conversion

YUVConversionDescriptorVK impeller::ImmutableSamplerKeyVK::yuv_conversion

Definition at line 96 of file yuv_conversion_vk.h.

Referenced by GetHash(), ImmutableSamplerKeyVK(), and IsEqual().


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