2 * Copyright 2021 Google LLC
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
8 #ifndef skgpu_graphite_MtlBackendContext_DEFINED
9 #define skgpu_graphite_MtlBackendContext_DEFINED
11 #include "include/gpu/graphite/mtl/MtlTypes.h"
13 namespace skgpu::graphite {
15 // The MtlBackendContext 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 MtlBackendContext {
18 sk_cfp<CFTypeRef> fDevice;
19 sk_cfp<CFTypeRef> fQueue;
22 } // namespace skgpu::graphite
24 #endif // skgpu_graphite_MtlBackendContext_DEFINED