blob: f431ec81076914e8382041d61eb7061f34bc1d89 [file] [log] [blame]
/*
* 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&);
uint32_t GrMtlFormatChannels(GrMTLPixelFormat);
#if GR_TEST_UTILS
const char* GrMtlFormatToStr(GrMTLPixelFormat mtlFormat);
bool GrMtlFormatIsBGRA8(GrMTLPixelFormat mtlFormat);
#endif
#endif