| Flutter Impeller |

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

`#include <yuv_conversion_vk.h>`

Inheritance diagram for impeller::ImmutableSamplerKeyVK:

## 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 }
impeller::ImmutableSamplerKeyVK::yuv_conversion
YUVConversionDescriptorVK yuv_conversion
Definition: yuv_conversion_vk.h:96
impeller::ImmutableSamplerKeyVK::sampler
SamplerDescriptor sampler
Definition: yuv_conversion_vk.h:95

References 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 {
117 return fml::HashCombine(SamplerDescriptor::ToKey(sampler),
118 YUVConversionDescriptorVKHash{}(yuv_conversion));
119 }
impeller::SamplerDescriptor::ToKey
static uint64_t ToKey(const SamplerDescriptor &d)
Definition: sampler_descriptor.h:32

References 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 {
111 return SamplerDescriptor::ToKey(sampler) ==
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:

- impeller/renderer/backend/vulkan/yuv_conversion_vk.h
- impeller/renderer/backend/vulkan/yuv_conversion_vk.cc