#include <sampler_library_vk.h>
Definition at line 15 of file sampler_library_vk.h.
◆ ~SamplerLibraryVK()
impeller::SamplerLibraryVK::~SamplerLibraryVK |
( |
| ) |
|
|
overridedefault |
◆ GetSampler()
Retrieve a backend specific sampler object for the given sampler descriptor.
If the descriptor is invalid or there is a loss of rendering context, this method may return a nullptr.
The sampler library implementations must cache this sampler object and guarantee that the reference will continue to be valid throughout the lifetime of the Impeller context.
Implements impeller::SamplerLibrary.
Definition at line 21 of file sampler_library_vk.cc.
22 {
23 auto found = samplers_.find(desc);
24 if (found != samplers_.end()) {
25 return found->second;
26 }
27 auto device_holder = device_holder_.lock();
28 if (!device_holder || !device_holder->GetDevice()) {
30 }
31 return (samplers_[desc] =
32 std::make_unique<SamplerVK>(device_holder->GetDevice(), desc));
33}
static const std::unique_ptr< const Sampler > kNullSampler
◆ ContextVK
The documentation for this class was generated from the following files: