blob: 47c6eb50c1d98426755609d3890536a9d9b67cfc [file] [log] [blame]
Brian Salomonf391d0f2018-12-14 09:18:50 -05001/*
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
Mike Kleinc0bd9f92019-04-23 12:05:21 -050011#include "include/gpu/mtl/GrMtlTypes.h"
Brian Salomonf391d0f2018-12-14 09:18:50 -050012
13// Utilities that can be used from cpp files (rather than .mm).
14
15GrMTLPixelFormat GrGetMTLPixelFormatFromMtlTextureInfo(const GrMtlTextureInfo&);
16
Robert Phillipsbac46722019-08-01 15:09:17 -040017#if GR_TEST_UTILS
18const char* GrMtlFormatToStr(GrMTLPixelFormat mtlFormat);
Robert Phillips7f367982019-09-26 14:01:36 -040019bool GrMtlFormatIsBGRA(GrMTLPixelFormat mtlFormat);
Robert Phillipsbac46722019-08-01 15:09:17 -040020#endif
Brian Salomonf391d0f2018-12-14 09:18:50 -050021
22#endif