Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
texture_wrapper_mtl.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_TEXTURE_WRAPPER_MTL_H_
6#define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_TEXTURE_WRAPPER_MTL_H_
7
9
10namespace impeller {
11
12std::shared_ptr<Texture> WrapTextureMTL(
13 TextureDescriptor desc,
14 const void* mtl_texture,
15 std::function<void()> deletion_proc = nullptr);
16
17} // namespace impeller
18
19#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_TEXTURE_WRAPPER_MTL_H_
std::shared_ptr< Texture > WrapTextureMTL(TextureDescriptor desc, const void *mtl_texture, std::function< void()> deletion_proc=nullptr)