Flutter Engine
The Flutter Engine
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Properties
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
y
Enumerator
b
c
d
e
f
g
h
k
l
m
n
p
r
s
t
u
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
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
// Only includes fixed state relevant to pipeline creation
58
SkString
toPipelineLabel
()
const
;
59
60
// TODO:
61
// * bounds (TBD whether exact bounds vs. granular)
62
// * input attachments
63
// * subpass makeup information
64
};
65
66
}
// namespace skgpu::graphite
67
68
#endif
// skgpu_graphite_RenderPassDesc_DEFINED
ResourceTypes.h
SkString.h
Swizzle.h
TextureInfo.h
SkEnumBitMask< DepthStencilFlags >
SkString
Definition:
SkString.h:118
skgpu::Swizzle
Definition:
Swizzle.h:27
skgpu::graphite::Caps
Definition:
Caps.h:71
skgpu::graphite::TextureInfo
Definition:
TextureInfo.h:31
skgpu::graphite
Definition:
BoundsManagerBench.cpp:27
skgpu::graphite::StoreOp
StoreOp
Definition:
ResourceTypes.h:46
skgpu::graphite::LoadOp
LoadOp
Definition:
ResourceTypes.h:34
skgpu::graphite::AttachmentDesc
Definition:
RenderPassDesc.h:23
skgpu::graphite::AttachmentDesc::toString
SkString toString() const
Definition:
RenderPassDesc.cpp:140
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::toPipelineLabel
SkString toPipelineLabel() const
Definition:
RenderPassDesc.cpp:120
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 Sun Jun 23 2024 21:56:27 for Flutter Engine by
1.9.4