8#ifndef GrMtlTypes_DEFINED
9#define GrMtlTypes_DEFINED
26#include <TargetConditionals.h>
28#if TARGET_OS_SIMULATOR
29#define SK_API_AVAILABLE_CA_METAL_LAYER SK_API_AVAILABLE(macos(10.11), ios(13.0), tvos(13.0))
31#define SK_API_AVAILABLE_CA_METAL_LAYER SK_API_AVAILABLE(macos(10.11), ios(8.0), tvos(9.0))
38struct GrMtlTextureInfo {
42 sk_cfp<GrMTLHandle> fTexture;
44 bool operator==(
const GrMtlTextureInfo& that)
const {
return fTexture == that.fTexture; }
47struct GrMtlSurfaceInfo {
48 uint32_t fSampleCount = 1;
49 uint32_t fLevelCount = 0;
unsigned int GrMTLStorageMode
unsigned int GrMTLPixelFormat
unsigned int GrMTLTextureUsage
bool operator==(C p1, const scoped_nsprotocol< C > &p2)