Flutter Engine
The Flutter Engine
third_party
skia
src
gpu
ganesh
vk
GrVkMSAALoadManager.h
Go to the documentation of this file.
1
/*
2
* Copyright 2020 Google LLC
3
*
4
* Use of this source code is governed by a BSD-style license that can be
5
* found in the LICENSE file.
6
*/
7
8
#ifndef GrVkMSAALoadManager_DEFINED
9
#define GrVkMSAALoadManager_DEFINED
10
11
#include "
include/gpu/GrTypes.h
"
12
#include "
include/gpu/vk/GrVkTypes.h
"
13
#include "
src/gpu/ganesh/GrNativeRect.h
"
14
#include "
src/gpu/ganesh/vk/GrVkDescriptorSetManager.h
"
15
16
class
GrAttachment
;
17
class
GrSurface
;
18
class
GrVkCommandBuffer
;
19
class
GrVkGpu
;
20
class
GrVkImage
;
21
class
GrVkRenderPass
;
22
struct
SkIRect
;
23
24
class
GrVkMSAALoadManager
{
25
public
:
26
GrVkMSAALoadManager
();
27
28
~GrVkMSAALoadManager
();
29
30
bool
loadMSAAFromResolve
(
GrVkGpu
* gpu,
31
GrVkCommandBuffer
* commandBuffer,
32
const
GrVkRenderPass
& renderPass,
33
GrAttachment
*
dst
,
34
GrVkImage
*
src
,
35
const
SkIRect
& srcRect);
36
37
void
destroyResources
(
GrVkGpu
* gpu);
38
39
private
:
40
bool
createMSAALoadProgram(
GrVkGpu
* gpu);
41
42
// Everything below is only created once and shared by all msaa load pipelines
43
VkShaderModule fVertShaderModule;
44
VkShaderModule fFragShaderModule;
45
VkPipelineShaderStageCreateInfo
fShaderStageInfo[2];
46
47
// All pipelines used by this class use the same VkPipelineLayout. Therefore, unlike regular
48
// GrVkPipelines, we have the manager own the layout instead of the GrVkPipeline.
49
VkPipelineLayout fPipelineLayout;
50
};
51
52
#endif
53
GrNativeRect.h
GrTypes.h
GrVkDescriptorSetManager.h
GrVkTypes.h
GrAttachment
Definition:
GrAttachment.h:25
GrSurface
Definition:
GrSurface.h:22
GrVkCommandBuffer
Definition:
GrVkCommandBuffer.h:25
GrVkGpu
Definition:
GrVkGpu.h:42
GrVkImage
Definition:
GrVkImage.h:32
GrVkMSAALoadManager
Definition:
GrVkMSAALoadManager.h:24
GrVkMSAALoadManager::GrVkMSAALoadManager
GrVkMSAALoadManager()
Definition:
GrVkMSAALoadManager.cpp:25
GrVkMSAALoadManager::~GrVkMSAALoadManager
~GrVkMSAALoadManager()
Definition:
GrVkMSAALoadManager.cpp:30
GrVkMSAALoadManager::loadMSAAFromResolve
bool loadMSAAFromResolve(GrVkGpu *gpu, GrVkCommandBuffer *commandBuffer, const GrVkRenderPass &renderPass, GrAttachment *dst, GrVkImage *src, const SkIRect &srcRect)
Definition:
GrVkMSAALoadManager.cpp:117
GrVkMSAALoadManager::destroyResources
void destroyResources(GrVkGpu *gpu)
Definition:
GrVkMSAALoadManager.cpp:220
GrVkRenderPass
Definition:
GrVkRenderPass.h:24
gn.cp.dst
dst
Definition:
cp.py:12
mskp_parser.src
src
Definition:
mskp_parser.py:22
SkIRect
Definition:
SkRect.h:32
VkPipelineShaderStageCreateInfo
Definition:
vulkan_core.h:3506
Generated on Sun Jun 23 2024 21:56:25 for Flutter Engine by
1.9.4