Flutter Engine
 
Loading...
Searching...
No Matches
texture_util.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_TEXTURE_UTIL_H_
6#define FLUTTER_IMPELLER_RENDERER_TEXTURE_UTIL_H_
7
12
13namespace impeller {
14
15std::shared_ptr<Texture> CreateTexture(
16 const TextureDescriptor& texture_descriptor,
17 const std::vector<uint8_t>& data,
18 const std::shared_ptr<impeller::Context>& context,
19 std::string_view debug_label);
20
21/// Adds a blit command to the render pass.
23 const std::shared_ptr<CommandBuffer>& command_buffer,
24 const std::shared_ptr<Context>& context,
25 const std::shared_ptr<Texture>& texture);
26
27} // namespace impeller
28
29#endif // FLUTTER_IMPELLER_RENDERER_TEXTURE_UTIL_H_
FlTexture * texture
fml::Status AddMipmapGeneration(const std::shared_ptr< CommandBuffer > &command_buffer, const std::shared_ptr< Context > &context, const std::shared_ptr< Texture > &texture)
Adds a blit command to the render pass.
std::shared_ptr< Texture > CreateTexture(const TextureDescriptor &texture_descriptor, const std::vector< uint8_t > &data, const std::shared_ptr< impeller::Context > &context, std::string_view debug_label)
std::shared_ptr< const fml::Mapping > data