blob: 8e8835a21746cf8dee3c119bf93ac81998a01cda [file] [log] [blame] [edit]
/*
* Copyright 2020 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrMtlBackendContext_DEFINED
#define GrMtlBackendContext_DEFINED
#include "include/gpu/ganesh/mtl/GrMtlTypes.h"
#include "include/ports/SkCFObject.h"
// The BackendContext contains all of the base Metal objects needed by the GrMtlGpu. The assumption
// is that the client will set these up and pass them to the GrMtlGpu constructor.
struct SK_API GrMtlBackendContext {
sk_cfp<GrMTLHandle> fDevice;
sk_cfp<GrMTLHandle> fQueue;
};
#endif