#include <sampler_vk.h>
Definition at line 18 of file sampler_vk.h.
◆ SamplerVK()
Definition at line 110 of file sampler_vk.cc.
115 sampler_(MakeSharedVK<vk::Sampler>(
117 yuv_conversion_(std::move(yuv_conversion)) {
118 is_valid_ = sampler_ && !!sampler_->Get();
119}
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 127 of file sampler_vk.cc.
128 {
129 if (!conversion || !is_valid_) {
130 return nullptr;
131 }
132 return std::make_shared<SamplerVK>(device_,
desc_, std::move(conversion));
133}
◆ GetSampler()
vk::Sampler impeller::SamplerVK::GetSampler |
( |
| ) |
const |
◆ GetYUVConversion()
const std::shared_ptr< YUVConversionVK > & impeller::SamplerVK::GetYUVConversion |
( |
| ) |
const |
Definition at line 135 of file sampler_vk.cc.
135 {
136 return yuv_conversion_;
137}
The documentation for this class was generated from the following files: