blob: ab06407b569f17cc801a24a18b71ade2a0baa464 [file] [log] [blame] [edit]
/*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrMtlCppUtil_DEFINED
#define GrMtlCppUtil_DEFINED
#include "include/gpu/mtl/GrMtlTypes.h"
// Utilities that can be used from cpp files (rather than .mm).
GrMTLPixelFormat GrGetMTLPixelFormatFromMtlTextureInfo(const GrMtlTextureInfo&);
#if GR_TEST_UTILS
const char* GrMtlFormatToStr(GrMTLPixelFormat mtlFormat);
bool GrMtlFormatIsBGRA8(GrMTLPixelFormat mtlFormat);
#endif
#endif