Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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"
14
15namespace impeller {
16
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_
const vk::ShaderModule & GetModule() const
const char * name
Definition fuchsia.cc:50