Flutter Engine
The Flutter Engine
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 {
23
24class MtlSharedContext;
25
26sk_cfp<id<MTLLibrary>> MtlCompileShaderLibrary(const MtlSharedContext* sharedContext,
27 std::string_view label,
28 std::string_view msl,
29 ShaderErrorHandler* errorHandler);
30} // namespace skgpu::graphite
31
32#endif // skgpu_graphite_MtlGraphiteUtilsPriv_DEFINED
sk_cfp< id< MTLLibrary > > MtlCompileShaderLibrary(const MtlSharedContext *sharedContext, std::string_view label, std::string_view msl, ShaderErrorHandler *errorHandler)
Definition: GpuTools.h:21