| Flutter Impeller |

Public Member Functions | Protected Member Functions | List of all members
impeller::SamplerLibrary Class Referenceabstract

`#include <sampler_library.h>`

Inheritance diagram for impeller::SamplerLibrary:

## Public Member Functions
virtual | ~SamplerLibrary ()
virtual const std::unique_ptr< const Sampler > & | GetSampler (SamplerDescriptor descriptor)=0
| Retrieve a backend specific sampler object for the given sampler descriptor. More...

## Protected Member Functions
| SamplerLibrary ()

## Detailed Description

Definition at line 13 of file sampler_library.h.

## Constructor & Destructor Documentation

## ◆ ~SamplerLibrary()

impeller::SamplerLibrary::~SamplerLibrary | ( |  | ) |
| virtualdefault

## ◆ SamplerLibrary()

impeller::SamplerLibrary::SamplerLibrary | ( |  | ) |
| protecteddefault

## Member Function Documentation

## ◆ GetSampler()

virtual const std::unique_ptr<const Sampler>& impeller::SamplerLibrary::GetSampler | ( | SamplerDescriptor | descriptor | ) |
| pure virtual

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.

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

- impeller/renderer/sampler_library.h
- impeller/renderer/sampler_library.cc