• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2021 Google LLC
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 skgpu_MtlBackendContext_DEFINED
9 #define skgpu_MtlBackendContext_DEFINED
10 
11 #include "experimental/graphite/include/mtl/MtlTypes.h"
12 
13 namespace skgpu::mtl {
14 
15 // The BackendContext contains all of the base Metal objects needed by the MtlGpu. The assumption
16 // is that the client will set these up and pass them to the MtlGpu constructor.
17 struct SK_API BackendContext {
18     sk_cfp<CFTypeRef> fDevice;
19     sk_cfp<CFTypeRef> fQueue;
20 };
21 
22 } // namespace skgpu::mtl
23 
24 #endif // skgpu_MtlBackendContext_DEFINED
25