2020-11-12 20:21:11 +00:00
|
|
|
/*
|
|
|
|
* 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/mtl/GrMtlTypes.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 {
|
2021-02-22 14:41:27 +00:00
|
|
|
sk_cfp<GrMTLHandle> fDevice;
|
|
|
|
sk_cfp<GrMTLHandle> fQueue;
|
|
|
|
sk_cfp<GrMTLHandle> fBinaryArchive;
|
2020-11-12 20:21:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|