Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
skia
src
gpu
graphite
RenderPassDesc.h
Go to the documentation of this file.
1
/*
2
* Copyright 2024 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 skgpu_graphite_RenderPassDesc_DEFINED
9
#define skgpu_graphite_RenderPassDesc_DEFINED
10
11
#include "
include/core/SkString.h
"
12
#include "
include/gpu/graphite/TextureInfo.h
"
13
#include "
src/gpu/graphite/ResourceTypes.h
"
14
15
#include "
src/gpu/Swizzle.h
"
16
17
#include <array>
18
19
namespace
skgpu::graphite
{
20
21
class
Caps;
22
23
struct
AttachmentDesc
{
24
TextureInfo
fTextureInfo
;
25
LoadOp
fLoadOp
;
26
StoreOp
fStoreOp
;
27
28
SkString
toString
()
const
;
29
};
30
31
struct
RenderPassDesc
{
32
static
RenderPassDesc
Make
(
const
Caps
* caps,
33
const
TextureInfo
& targetInfo,
34
LoadOp
loadOp,
35
StoreOp
storeOp,
36
SkEnumBitMask<DepthStencilFlags>
depthStencilFlags,
37
const
std::array<float, 4>& clearColor,
38
bool
requiresMSAA,
39
Swizzle
writeSwizzle);
40
41
AttachmentDesc
fColorAttachment
;
42
std::array<float, 4>
fClearColor
;
43
AttachmentDesc
fColorResolveAttachment
;
44
45
AttachmentDesc
fDepthStencilAttachment
;
46
float
fClearDepth
;
47
uint32_t
fClearStencil
;
48
49
Swizzle
fWriteSwizzle
;
50
51
// This samples count usually matches fColorAttachment & fDepthStencilAttachment's samples
52
// count. The only exceptional case is when multisampled render to single sampled is used. In
53
// that case, the fColorAttachment's samples count will be 1 and fSampleCount will be > 1.
54
uint32_t
fSampleCount
;
55
56
SkString
toString
()
const
;
57
58
// TODO:
59
// * bounds (TBD whether exact bounds vs. granular)
60
// * input attachments
61
// * subpass makeup information
62
};
63
64
}
// namespace skgpu::graphite
65
66
#endif
// skgpu_graphite_RenderPassDesc_DEFINED
ResourceTypes.h
SkString.h
Swizzle.h
TextureInfo.h
SkEnumBitMask
Definition
SkEnumBitMask.h:34
SkString
Definition
SkString.h:118
skgpu::Swizzle
Definition
Swizzle.h:27
skgpu::graphite::Caps
Definition
Caps.h:70
skgpu::graphite::TextureInfo
Definition
TextureInfo.h:31
skgpu::graphite
Definition
BoundsManagerBench.cpp:27
skgpu::graphite::StoreOp
StoreOp
Definition
ResourceTypes.h:45
skgpu::graphite::LoadOp
LoadOp
Definition
ResourceTypes.h:33
skgpu::graphite::AttachmentDesc
Definition
RenderPassDesc.h:23
skgpu::graphite::AttachmentDesc::toString
SkString toString() const
Definition
RenderPassDesc.cpp:117
skgpu::graphite::AttachmentDesc::fStoreOp
StoreOp fStoreOp
Definition
RenderPassDesc.h:26
skgpu::graphite::AttachmentDesc::fLoadOp
LoadOp fLoadOp
Definition
RenderPassDesc.h:25
skgpu::graphite::AttachmentDesc::fTextureInfo
TextureInfo fTextureInfo
Definition
RenderPassDesc.h:24
skgpu::graphite::RenderPassDesc
Definition
RenderPassDesc.h:31
skgpu::graphite::RenderPassDesc::fSampleCount
uint32_t fSampleCount
Definition
RenderPassDesc.h:54
skgpu::graphite::RenderPassDesc::fDepthStencilAttachment
AttachmentDesc fDepthStencilAttachment
Definition
RenderPassDesc.h:45
skgpu::graphite::RenderPassDesc::fClearStencil
uint32_t fClearStencil
Definition
RenderPassDesc.h:47
skgpu::graphite::RenderPassDesc::toString
SkString toString() const
Definition
RenderPassDesc.cpp:107
skgpu::graphite::RenderPassDesc::fColorResolveAttachment
AttachmentDesc fColorResolveAttachment
Definition
RenderPassDesc.h:43
skgpu::graphite::RenderPassDesc::fClearColor
std::array< float, 4 > fClearColor
Definition
RenderPassDesc.h:42
skgpu::graphite::RenderPassDesc::fWriteSwizzle
Swizzle fWriteSwizzle
Definition
RenderPassDesc.h:49
skgpu::graphite::RenderPassDesc::fClearDepth
float fClearDepth
Definition
RenderPassDesc.h:46
skgpu::graphite::RenderPassDesc::fColorAttachment
AttachmentDesc fColorAttachment
Definition
RenderPassDesc.h:41
skgpu::graphite::RenderPassDesc::Make
static RenderPassDesc Make(const Caps *caps, const TextureInfo &targetInfo, LoadOp loadOp, StoreOp storeOp, SkEnumBitMask< DepthStencilFlags > depthStencilFlags, const std::array< float, 4 > &clearColor, bool requiresMSAA, Swizzle writeSwizzle)
Definition
RenderPassDesc.cpp:37
Generated on Fri Apr 26 2024 06:17:19 for Flutter Engine by
1.9.8