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 #pragma once
6 
7 #include "flutter/fml/macros.h"
13 
14 namespace impeller {
15 
16 class ShaderFunctionVK final
17  : public ShaderFunction,
18  public BackendCast<ShaderFunctionVK, ShaderFunction> {
19  public:
20  // |ShaderFunction|
21  ~ShaderFunctionVK() override;
22 
23  const vk::ShaderModule& GetModule() const;
24 
25  private:
26  friend class ShaderLibraryVK;
27 
28  vk::UniqueShaderModule module_;
29  std::weak_ptr<DeviceHolder> device_holder_;
30 
31  ShaderFunctionVK(const std::weak_ptr<DeviceHolder>& device_holder,
32  UniqueID parent_library_id,
33  std::string name,
34  ShaderStage stage,
35  vk::UniqueShaderModule module);
36 
37  FML_DISALLOW_COPY_AND_ASSIGN(ShaderFunctionVK);
38 };
39 
40 } // namespace impeller
impeller::ShaderLibraryVK
Definition: shader_library_vk.h:17
shader_function.h
device_holder.h
impeller::ShaderStage
ShaderStage
Definition: shader_types.h:20
impeller::ShaderFunctionVK::GetModule
const vk::ShaderModule & GetModule() const
Definition: shader_function_vk.cc:28
vk.h
impeller::ShaderFunction
Definition: shader_function.h:14
backend_cast.h
impeller::ShaderFunctionVK::~ShaderFunctionVK
~ShaderFunctionVK() override
Definition: shader_function_vk.cc:19
impeller::BackendCast
Definition: backend_cast.h:12
impeller::UniqueID
Definition: comparable.h:19
shader_function_vk.h
impeller
Definition: aiks_context.cc:10
impeller::ShaderFunctionVK
Definition: shader_function_vk.h:16