Flutter Impeller
swapchain_image_vk.h
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
#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SWAPCHAIN_IMAGE_VK_H_
6
#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SWAPCHAIN_IMAGE_VK_H_
7
8
#include "flutter/fml/macros.h"
9
#include "
impeller/geometry/size.h
"
10
#include "
impeller/renderer/backend/vulkan/formats_vk.h
"
11
#include "
impeller/renderer/backend/vulkan/texture_source_vk.h
"
12
#include "
impeller/renderer/backend/vulkan/vk.h
"
13
14
namespace
impeller
{
15
16
class
SwapchainImageVK
final :
public
TextureSourceVK
{
17
public
:
18
SwapchainImageVK
(
TextureDescriptor
desc,
19
const
vk::Device& device,
20
vk::Image image);
21
22
// |TextureSourceVK|
23
~SwapchainImageVK
()
override
;
24
25
bool
IsValid
()
const
;
26
27
PixelFormat
GetPixelFormat
()
const
;
28
29
ISize
GetSize
()
const
;
30
31
// |TextureSourceVK|
32
vk::Image
GetImage
()
const override
;
33
34
std::shared_ptr<Texture>
GetMSAATexture
()
const
;
35
36
bool
HasMSAATexture
()
const
;
37
38
// |TextureSourceVK|
39
vk::ImageView
GetImageView
()
const override
;
40
41
void
SetMSAATexture
(std::shared_ptr<Texture> msaa_tex);
42
43
private
:
44
vk::Image image_ = VK_NULL_HANDLE;
45
vk::UniqueImageView image_view_ = {};
46
std::shared_ptr<Texture> msaa_tex_;
47
bool
is_valid_ =
false
;
48
49
SwapchainImageVK
(
const
SwapchainImageVK
&) =
delete
;
50
51
SwapchainImageVK
& operator=(
const
SwapchainImageVK
&) =
delete
;
52
};
53
54
}
// namespace impeller
55
56
#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SWAPCHAIN_IMAGE_VK_H_
impeller::TextureSourceVK
Definition:
texture_source_vk.h:22
impeller::SwapchainImageVK::SetMSAATexture
void SetMSAATexture(std::shared_ptr< Texture > msaa_tex)
Definition:
swapchain_image_vk.cc:46
impeller::SwapchainImageVK
Definition:
swapchain_image_vk.h:16
impeller::SwapchainImageVK::IsValid
bool IsValid() const
Definition:
swapchain_image_vk.cc:34
impeller::SwapchainImageVK::GetImage
vk::Image GetImage() const override
Definition:
swapchain_image_vk.cc:59
texture_source_vk.h
impeller::SwapchainImageVK::GetPixelFormat
PixelFormat GetPixelFormat() const
Definition:
swapchain_image_vk.cc:50
impeller::SwapchainImageVK::HasMSAATexture
bool HasMSAATexture() const
Definition:
swapchain_image_vk.cc:42
formats_vk.h
vk.h
impeller::PixelFormat
PixelFormat
The Pixel formats supported by Impeller. The naming convention denotes the usage of the component,...
Definition:
formats.h:94
impeller::TSize< int64_t >
impeller::SwapchainImageVK::GetMSAATexture
std::shared_ptr< Texture > GetMSAATexture() const
Definition:
swapchain_image_vk.cc:38
impeller::SwapchainImageVK::GetSize
ISize GetSize() const
Definition:
swapchain_image_vk.cc:54
impeller::SwapchainImageVK::~SwapchainImageVK
~SwapchainImageVK() override
impeller::TextureDescriptor
A lightweight object that describes the attributes of a texture that can then used an allocator to cr...
Definition:
texture_descriptor.h:37
impeller::SwapchainImageVK::GetImageView
vk::ImageView GetImageView() const override
Definition:
swapchain_image_vk.cc:64
impeller
Definition:
aiks_context.cc:10
size.h
impeller::SwapchainImageVK::SwapchainImageVK
SwapchainImageVK(TextureDescriptor desc, const vk::Device &device, vk::Image image)
Definition:
swapchain_image_vk.cc:9
impeller
renderer
backend
vulkan
swapchain_image_vk.h
Generated by
1.8.17