Flutter Impeller
blit_command.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_BLIT_COMMAND_H_
6 #define FLUTTER_IMPELLER_RENDERER_BLIT_COMMAND_H_
7 
8 #include <cstdint>
10 #include "impeller/core/texture.h"
11 #include "impeller/geometry/rect.h"
12 
13 namespace impeller {
14 
15 struct BlitCommand {
16  std::string label;
17 };
18 
20  std::shared_ptr<Texture> source;
21  std::shared_ptr<Texture> destination;
24 };
25 
27  std::shared_ptr<Texture> source;
28  std::shared_ptr<Texture> destination;
29 };
30 
32  std::shared_ptr<Texture> source;
33  std::shared_ptr<DeviceBuffer> destination;
36 };
37 
40  std::shared_ptr<Texture> destination;
42  uint32_t mip_level = 0;
43  uint32_t slice = 0;
44 };
45 
47  std::shared_ptr<Texture> texture;
48 };
49 
50 } // namespace impeller
51 
52 #endif // FLUTTER_IMPELLER_RENDERER_BLIT_COMMAND_H_
std::shared_ptr< Texture > destination
Definition: blit_command.h:40
std::shared_ptr< DeviceBuffer > destination
Definition: blit_command.h:33
std::shared_ptr< Texture > source
Definition: blit_command.h:32
std::shared_ptr< Texture > destination
Definition: blit_command.h:21
std::shared_ptr< Texture > source
Definition: blit_command.h:20
std::shared_ptr< Texture > texture
Definition: blit_command.h:47
std::shared_ptr< Texture > destination
Definition: blit_command.h:28
std::shared_ptr< Texture > source
Definition: blit_command.h:27