| Flutter Impeller |

shader_function_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_SHADER_FUNCTION_VK_H_
6 #define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SHADER_FUNCTION_VK_H_
7
8 #include "flutter/fml/macros.h"
9 #include "impeller/base/backend_cast.h"
10 #include "impeller/renderer/backend/vulkan/device_holder_vk.h"
11 #include "impeller/renderer/backend/vulkan/shader_function_vk.h"
12 #include "impeller/renderer/backend/vulkan/vk.h"
13 #include "impeller/renderer/shader_function.h"
14
15 namespace impeller {
16
17 class ShaderFunctionVK final
18 : public ShaderFunction,
19 public BackendCast<ShaderFunctionVK, ShaderFunction> {
20 public:
21 // |ShaderFunction|
22 ~ShaderFunctionVK() override;
23
24 const vk::ShaderModule& GetModule() const;
25
26 private:
27 friend class ShaderLibraryVK;
28
29 vk::UniqueShaderModule module_;
30 std::weak_ptr<DeviceHolderVK> device_holder_;
31
32 ShaderFunctionVK(const std::weak_ptr<DeviceHolderVK>& device_holder,
33 UniqueID parent_library_id,
34 std::string name,
35 ShaderStage stage,
36 vk::UniqueShaderModule module);
37
38 ShaderFunctionVK(const ShaderFunctionVK&) = delete;
39
40 ShaderFunctionVK& operator=(const ShaderFunctionVK&) = delete;
41 };
42
43 } // namespace impeller
44
45 #endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SHADER_FUNCTION_VK_H_
impeller::ShaderLibraryVK
Definition: shader_library_vk.h:18
shader_function.h
impeller::ShaderStage
ShaderStage
Definition: shader_types.h:22
impeller::ShaderFunctionVK::GetModule
const vk::ShaderModule & GetModule() const
Definition: shader_function_vk.cc:28
vk.h
device_holder_vk.h
impeller::ShaderFunction
Definition: shader_function.h:16
backend_cast.h
impeller::ShaderFunctionVK::~ShaderFunctionVK
~ShaderFunctionVK() override
Definition: shader_function_vk.cc:19
impeller::BackendCast
Definition: backend_cast.h:11
impeller::UniqueID
Definition: comparable.h:16
shader_function_vk.h
impeller
Definition: aiks_blur_unittests.cc:20
impeller::ShaderFunctionVK
Definition: shader_function_vk.h:17