Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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/gpu/GrTypes.h
"
12
#include "
include/gpu/ganesh/mtl/GrMtlTypes.h
"
13
#include "
include/private/gpu/ganesh/GrTypesPriv.h
"
14
15
class
GrMtlAttachment
;
16
17
class
GrMtlFramebuffer
:
public
SkRefCnt
{
18
public
:
19
static
sk_sp<const GrMtlFramebuffer>
Make
(
GrMtlAttachment
*
colorAttachment
,
20
GrMtlAttachment
*
resolveAttachment
,
21
GrMtlAttachment
*
stencilAttachment
);
22
23
GrMtlAttachment
*
colorAttachment
() {
return
fColorAttachment.
get
(); }
24
GrMtlAttachment
*
resolveAttachment
() {
return
fResolveAttachment.
get
(); }
25
GrMtlAttachment
*
stencilAttachment
() {
return
fStencilAttachment.
get
(); }
26
27
private
:
28
GrMtlFramebuffer
(
sk_sp<GrMtlAttachment>
colorAttachment
,
29
sk_sp<GrMtlAttachment>
resolveAttachment
,
30
sk_sp<GrMtlAttachment>
stencilAttachment
);
31
32
~GrMtlFramebuffer
()
override
{}
33
34
sk_sp<GrMtlAttachment>
fColorAttachment;
35
sk_sp<GrMtlAttachment>
fResolveAttachment;
36
sk_sp<GrMtlAttachment>
fStencilAttachment;
37
};
38
39
#endif
GrMtlTypes.h
GrTypesPriv.h
GrTypes.h
GrMtlAttachment
Definition
GrMtlAttachment.h:19
GrMtlFramebuffer
Definition
GrMtlFramebuffer.h:17
GrMtlFramebuffer::~GrMtlFramebuffer
~GrMtlFramebuffer() override
Definition
GrMtlFramebuffer.h:32
GrMtlFramebuffer::stencilAttachment
GrMtlAttachment * stencilAttachment()
Definition
GrMtlFramebuffer.h:25
GrMtlFramebuffer::colorAttachment
GrMtlAttachment * colorAttachment()
Definition
GrMtlFramebuffer.h:23
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:24
SkRefCnt
Definition
SkRefCnt.h:119
sk_sp
Definition
SkRefCnt.h:220
sk_sp::get
T * get() const
Definition
SkRefCnt.h:303
Generated on Fri Apr 26 2024 06:17:07 for Flutter Engine by
1.9.8