blob: 5dffe257ab8c54930ea41769115e6d2836536c85 [file] [log] [blame]
/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrMtlTypes_DEFINED
#define GrMtlTypes_DEFINED
#include "include/gpu/GrTypes.h"
/**
* Declares typedefs for Metal types used in Ganesh cpp code
*/
typedef unsigned int GrMTLPixelFormat;
///////////////////////////////////////////////////////////////////////////////
/**
* Types for interacting with Metal resources created externally to Skia. Holds the MTLTexture as a
* const void*. This is used by GrBackendObjects.
*/
struct GrMtlTextureInfo {
public:
const void* fTexture; // Pointer to MTLTexture
bool operator==(const GrMtlTextureInfo& that) const {
return fTexture == that.fTexture;
}
};
#endif