| Flutter Impeller |

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
8 #include "flutter/fml/status.h"
9 #include "impeller/core/texture.h"
10 #include "impeller/renderer/command_buffer.h"
11 #include "impeller/renderer/context.h"
12
13 namespace impeller {
14
15 std::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.
22 [[nodiscard]] fml::Status AddMipmapGeneration(
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_
command_buffer.h
texture.h
impeller
Definition: allocation.cc:12
impeller::AddMipmapGeneration
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.
Definition: texture_util.cc:37
impeller::CreateTexture
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)
Definition: texture_util.cc:11
context.h
data
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:67