| Flutter Impeller |

sampler_vk.cc
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "impeller/renderer/backend/vulkan/sampler_vk.h"
6
7 namespace impeller {
8
9 SamplerVK::SamplerVK(SamplerDescriptor desc, vk::UniqueSampler sampler)
10 : Sampler(std::move(desc)),
11 sampler_(MakeSharedVK<vk::Sampler>(std::move(sampler))) {
12 is_valid_ = true;
13 }
14
15 SamplerVK::~SamplerVK() = default;
16
17 vk::Sampler SamplerVK::GetSampler() const {
18 return *sampler_;
19 }
20
21 const std::shared_ptr<SharedObjectVKT<vk::Sampler>>&
22 SamplerVK::GetSharedSampler() const {
23 return sampler_;
24 }
25
26 bool SamplerVK::IsValid() const {
27 return is_valid_;
28 }
29
30 } // namespace impeller
impeller::SamplerVK::SamplerVK
SamplerVK(SamplerDescriptor desc, vk::UniqueSampler sampler)
Definition: sampler_vk.cc:9
impeller::SamplerDescriptor
Definition: sampler_descriptor.h:15
impeller::Sampler
Definition: sampler.h:15
impeller::SamplerVK::GetSampler
vk::Sampler GetSampler() const
Definition: sampler_vk.cc:17
impeller::MakeSharedVK
auto MakeSharedVK(vk::UniqueHandle< T, VULKAN_HPP_DEFAULT_DISPATCHER_TYPE > handle)
Definition: shared_object_vk.h:43
std
Definition: comparable.h:95
sampler_vk.h
impeller::SamplerVK::~SamplerVK
~SamplerVK() override
impeller
Definition: aiks_context.cc:10
impeller::SamplerVK::GetSharedSampler
const std::shared_ptr< SharedObjectVKT< vk::Sampler > > & GetSharedSampler() const
Definition: sampler_vk.cc:22