Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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}
#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