Debian Codegraph @

include/gpu/ganesh/mtl/GrMtlBackendContext.h

raw
1 /*
2 * Copyright 2020 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 GrMtlBackendContext_DEFINED
9 #define GrMtlBackendContext_DEFINED
10
11 #include "include/gpu/ganesh/mtl/GrMtlTypes.h"
12 #include "include/ports/SkCFObject.h"
13
14 // The BackendContext contains all of the base Metal objects needed by the GrMtlGpu. The assumption
15 // is that the client will set these up and pass them to the GrMtlGpu constructor.
16 struct SK_API GrMtlBackendContext {
17 sk_cfp<GrMTLHandle> fDevice;
18 sk_cfp<GrMTLHandle> fQueue;
19 };
20
21 #endif