#include <sampler_vk.h>
Definition at line 19 of file sampler_vk.h.
◆ SamplerVK()
Definition at line 98 of file sampler_vk.cc.
103 sampler_(MakeSharedVK<vk::Sampler>(
105 yuv_conversion_(std::move(yuv_conversion)) {
106 is_valid_ = sampler_ && !!sampler_->Get();
107}
Sampler(SamplerDescriptor desc)
static vk::UniqueSampler CreateSampler(const vk::Device &device, const SamplerDescriptor &desc, const std::shared_ptr< YUVConversionVK > &yuv_conversion)
◆ ~SamplerVK()
impeller::SamplerVK::~SamplerVK |
( |
| ) |
|
|
overridedefault |
◆ CreateVariantForConversion()
std::shared_ptr< SamplerVK > impeller::SamplerVK::CreateVariantForConversion |
( |
std::shared_ptr< YUVConversionVK > |
conversion | ) |
const |
Definition at line 115 of file sampler_vk.cc.
116 {
117 if (!conversion || !is_valid_) {
118 return nullptr;
119 }
120 return std::make_shared<SamplerVK>(device_,
desc_, std::move(conversion));
121}
◆ GetSampler()
vk::Sampler impeller::SamplerVK::GetSampler |
( |
| ) |
const |
◆ GetYUVConversion()
const std::shared_ptr< YUVConversionVK > & impeller::SamplerVK::GetYUVConversion |
( |
| ) |
const |
Definition at line 123 of file sampler_vk.cc.
123 {
124 return yuv_conversion_;
125}
The documentation for this class was generated from the following files: