Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
impeller
renderer
backend
vulkan
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_
backend_cast.h
impeller::BackendCast
Definition
backend_cast.h:11
impeller::ShaderFunctionVK
Definition
shader_function_vk.h:19
impeller::ShaderFunctionVK::~ShaderFunctionVK
~ShaderFunctionVK() override
Definition
shader_function_vk.cc:19
impeller::ShaderFunctionVK::GetModule
const vk::ShaderModule & GetModule() const
Definition
shader_function_vk.cc:28
impeller::ShaderFunction
Definition
shader_function.h:16
impeller::ShaderLibraryVK
Definition
shader_library_vk.h:18
device_holder_vk.h
name
const char * name
Definition
fuchsia.cc:50
impeller
Definition
texture.h:18
impeller::ShaderStage
ShaderStage
Definition
shader_types.h:22
shader_function.h
shader_function_vk.h
impeller::UniqueID
Definition
comparable.h:16
vk.h
Generated on Fri Apr 26 2024 06:14:13 for Flutter Engine by
1.9.8