Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
MtlGraphiteUtilsPriv.h
Go to the documentation of this file.
1/*
2 * Copyright 2021 Google LLC
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 skgpu_graphite_MtlGraphiteUtilsPriv_DEFINED
9#define skgpu_graphite_MtlGraphiteUtilsPriv_DEFINED
10
13
14#include <string_view>
15
16#import <Metal/Metal.h>
17
18namespace skgpu {
19class ShaderErrorHandler;
20}
21
22namespace skgpu::graphite {
23class MtlSharedContext;
24
27
28sk_cfp<id<MTLLibrary>> MtlCompileShaderLibrary(const MtlSharedContext* sharedContext,
29 std::string_view label,
30 std::string_view msl,
31 ShaderErrorHandler* errorHandler);
32} // namespace skgpu::graphite
33
34#endif // skgpu_graphite_MtlGraphiteUtilsPriv_DEFINED
SkEnumBitMask< DepthStencilFlags > MtlFormatToDepthStencilFlags(MTLPixelFormat format)
MTLPixelFormat MtlDepthStencilFlagsToFormat(SkEnumBitMask< DepthStencilFlags > mask)
sk_cfp< id< MTLLibrary > > MtlCompileShaderLibrary(const MtlSharedContext *sharedContext, std::string_view label, std::string_view msl, ShaderErrorHandler *errorHandler)