Flutter Engine
The Flutter Engine
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
12#include "include/gpu/GrTypes.h"
15
16class GrMtlAttachment;
17
18class GrMtlFramebuffer : public SkRefCnt {
19public:
23
24 GrMtlAttachment* colorAttachment() { return fColorAttachment.get(); }
25 GrMtlAttachment* resolveAttachment() { return fResolveAttachment.get(); }
26 GrMtlAttachment* stencilAttachment() { return fStencilAttachment.get(); }
27
28private:
32
33 ~GrMtlFramebuffer() override;
34
35 sk_sp<GrMtlAttachment> fColorAttachment;
36 sk_sp<GrMtlAttachment> fResolveAttachment;
37 sk_sp<GrMtlAttachment> fStencilAttachment;
38};
39
40#endif
GrMtlAttachment * stencilAttachment()
GrMtlAttachment * colorAttachment()
static sk_sp< const GrMtlFramebuffer > Make(GrMtlAttachment *colorAttachment, GrMtlAttachment *resolveAttachment, GrMtlAttachment *stencilAttachment)
GrMtlAttachment * resolveAttachment()
T * get() const
Definition: SkRefCnt.h:303