1 /* 2 * Copyright 2018 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 GrMtlCppUtil_DEFINED 9 #define GrMtlCppUtil_DEFINED 10 11 #include "include/gpu/mtl/GrMtlTypes.h" 12 13 // Utilities that can be used from cpp files (rather than .mm). 14 15 GrMTLPixelFormat GrGetMTLPixelFormatFromMtlTextureInfo(const GrMtlTextureInfo&); 16 17 #if GR_TEST_UTILS 18 const char* GrMtlFormatToStr(GrMTLPixelFormat mtlFormat); 19 #endif 20 21 #endif 22