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/mtl/GrMtlTypes.h" 12 13// The BackendContext contains all of the base Metal objects needed by the GrMtlGpu. The assumption 14// is that the client will set these up and pass them to the GrMtlGpu constructor. 15struct SK_API GrMtlBackendContext { 16 sk_cfp<GrMTLHandle> fDevice; 17 sk_cfp<GrMTLHandle> fQueue; 18 sk_cfp<GrMTLHandle> fBinaryArchive; 19}; 20 21#endif 22