Flutter Engine
The Flutter Engine
third_party
skia
src
gpu
ganesh
mtl
GrMtlFramebuffer.h
Go to the documentation of this file.
1
/*
2
* Copyright 2021 Google Inc.
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 GrMtlFramebuffer_DEFINED
9
#define GrMtlFramebuffer_DEFINED
10
11
#include "
include/core/SkRefCnt.h
"
12
#include "
include/gpu/GrTypes.h
"
13
#include "
include/gpu/ganesh/mtl/GrMtlTypes.h
"
14
#include "
include/private/gpu/ganesh/GrTypesPriv.h
"
15
16
class
GrMtlAttachment
;
17
18
class
GrMtlFramebuffer
:
public
SkRefCnt
{
19
public
:
20
static
sk_sp<const GrMtlFramebuffer>
Make
(
GrMtlAttachment
*
colorAttachment
,
21
GrMtlAttachment
*
resolveAttachment
,
22
GrMtlAttachment
*
stencilAttachment
);
23
24
GrMtlAttachment
*
colorAttachment
() {
return
fColorAttachment.
get
(); }
25
GrMtlAttachment
*
resolveAttachment
() {
return
fResolveAttachment.
get
(); }
26
GrMtlAttachment
*
stencilAttachment
() {
return
fStencilAttachment.
get
(); }
27
28
private
:
29
GrMtlFramebuffer
(
sk_sp<GrMtlAttachment>
colorAttachment
,
30
sk_sp<GrMtlAttachment>
resolveAttachment
,
31
sk_sp<GrMtlAttachment>
stencilAttachment
);
32
33
~GrMtlFramebuffer
()
override
;
34
35
sk_sp<GrMtlAttachment>
fColorAttachment;
36
sk_sp<GrMtlAttachment>
fResolveAttachment;
37
sk_sp<GrMtlAttachment>
fStencilAttachment;
38
};
39
40
#endif
GrMtlTypes.h
GrTypesPriv.h
GrTypes.h
SkRefCnt.h
GrMtlAttachment
Definition:
GrMtlAttachment.h:19
GrMtlFramebuffer
Definition:
GrMtlFramebuffer.h:18
GrMtlFramebuffer::stencilAttachment
GrMtlAttachment * stencilAttachment()
Definition:
GrMtlFramebuffer.h:26
GrMtlFramebuffer::colorAttachment
GrMtlAttachment * colorAttachment()
Definition:
GrMtlFramebuffer.h:24
GrMtlFramebuffer::Make
static sk_sp< const GrMtlFramebuffer > Make(GrMtlAttachment *colorAttachment, GrMtlAttachment *resolveAttachment, GrMtlAttachment *stencilAttachment)
Definition:
GrMtlFramebuffer.mm:12
GrMtlFramebuffer::resolveAttachment
GrMtlAttachment * resolveAttachment()
Definition:
GrMtlFramebuffer.h:25
SkRefCnt
Definition:
SkRefCnt.h:119
sk_sp< const GrMtlFramebuffer >
sk_sp::get
T * get() const
Definition:
SkRefCnt.h:303
Generated on Sun Jun 23 2024 21:56:22 for Flutter Engine by
1.9.4