Flutter Engine
The Flutter Engine
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
GrMtlFramebuffer.mm
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
9
11
13 GrMtlAttachment* colorAttachment,
14 GrMtlAttachment* resolveAttachment,
15 GrMtlAttachment* stencilAttachment) {
16 // At the very least we need a colorAttachment
18
22}
23
24GrMtlFramebuffer::GrMtlFramebuffer(sk_sp<GrMtlAttachment> colorAttachment,
25 sk_sp<GrMtlAttachment> resolveAttachment,
26 sk_sp<GrMtlAttachment> stencilAttachment)
27 : fColorAttachment(std::move(colorAttachment))
28 , fResolveAttachment(std::move(resolveAttachment))
29 , fStencilAttachment(std::move(stencilAttachment)) {
30}
31
32GrMtlFramebuffer::~GrMtlFramebuffer() = default;
#define SkASSERT(cond)
Definition: SkAssert.h:116
sk_sp< T > sk_ref_sp(T *obj)
Definition: SkRefCnt.h:381
GrMtlAttachment * stencilAttachment()
GrMtlAttachment * colorAttachment()
static sk_sp< const GrMtlFramebuffer > Make(GrMtlAttachment *colorAttachment, GrMtlAttachment *resolveAttachment, GrMtlAttachment *stencilAttachment)
GrMtlAttachment * resolveAttachment()
Definition: ref_ptr.h:256