| Flutter Impeller |

Public Member Functions | List of all members
impeller::SamplerVK Class Referencefinal

`#include <sampler_vk.h>`

Inheritance diagram for impeller::SamplerVK:

## Public Member Functions
| SamplerVK (SamplerDescriptor desc, vk::UniqueSampler sampler)
| ~SamplerVK () override
vk::Sampler | GetSampler () const
const std::shared_ptr< SharedObjectVKT< vk::Sampler > > & | GetSharedSampler () const
Public Member Functions inherited from impeller::Sampler
virtual | ~Sampler ()
const SamplerDescriptor & | GetDescriptor () const

## Additional Inherited Members
Static Public Member Functions inherited from impeller::BackendCast< SamplerVK, Sampler >
static SamplerVK & | Cast (Sampler &base)
static const SamplerVK & | Cast (const Sampler &base)
static SamplerVK * | Cast (Sampler *base)
static const SamplerVK * | Cast (const Sampler *base)
Protected Member Functions inherited from impeller::Sampler
| Sampler (SamplerDescriptor desc)
Protected Attributes inherited from impeller::Sampler
SamplerDescriptor | desc_

## Detailed Description

Definition at line 18 of file sampler_vk.h.

## Constructor & Destructor Documentation

## ◆ SamplerVK()

impeller::SamplerVK::SamplerVK | ( | SamplerDescriptor | desc,
|  | vk::UniqueSampler | sampler
| ) |  |

Definition at line 9 of file sampler_vk.cc.

10 : Sampler(std::move(desc)),
11 sampler_(MakeSharedVK<vk::Sampler>(std::move(sampler))) {
12 is_valid_ = true;
13 }

## ◆ ~SamplerVK()

impeller::SamplerVK::~SamplerVK | ( |  | ) |
| override default

## Member Function Documentation

## ◆ GetSampler()

vk::Sampler impeller::SamplerVK::GetSampler | ( |  | ) | const

Definition at line 17 of file sampler_vk.cc.

17 {
18 return *sampler_;
19 }

Referenced by impeller::BindImages().

## ◆ GetSharedSampler()

const std::shared_ptr< SharedObjectVKT< vk::Sampler > > & impeller::SamplerVK::GetSharedSampler | ( |  | ) | const

Definition at line 22 of file sampler_vk.cc.

22 {
23 return sampler_;
24 }

Referenced by impeller::BindImages().

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

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

impeller::Sampler::Sampler
Sampler(SamplerDescriptor desc)
Definition: sampler.cc:9