| 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 "impeller/core/device_buffer.h"
9 #include "impeller/core/texture.h"
10 #include "impeller/geometry/rect.h"
11
12 namespace impeller {
13
14 struct BlitCommand {
15 std::string label;
16 };
17
18 struct BlitCopyTextureToTextureCommand : public BlitCommand {
19 std::shared_ptr<Texture> source;
20 std::shared_ptr<Texture> destination;
21 IRect source_region;
22 IPoint destination_origin;
23 };
24
25 struct BlitCopyTextureToBufferCommand : public BlitCommand {
26 std::shared_ptr<Texture> source;
27 std::shared_ptr<DeviceBuffer> destination;
28 IRect source_region;
29 size_t destination_offset;
30 };
31
32 struct BlitCopyBufferToTextureCommand : public BlitCommand {
33 BufferView source;
34 std::shared_ptr<Texture> destination;
35 IPoint destination_origin;
36 };
37
38 struct BlitGenerateMipmapCommand : public BlitCommand {
39 std::shared_ptr<Texture> texture;
40 };
41
42 } // namespace impeller
43
44 #endif // FLUTTER_IMPELLER_RENDERER_BLIT_COMMAND_H_
impeller::BlitGenerateMipmapCommand
Definition: blit_command.h:38
device_buffer.h
impeller::BlitCopyTextureToTextureCommand::destination
std::shared_ptr< Texture > destination
Definition: blit_command.h:20
impeller::BlitCopyTextureToTextureCommand::destination_origin
IPoint destination_origin
Definition: blit_command.h:22
impeller::BlitCopyBufferToTextureCommand
Definition: blit_command.h:32
impeller::BlitGenerateMipmapCommand::texture
std::shared_ptr< Texture > texture
Definition: blit_command.h:39
impeller::BlitCopyTextureToBufferCommand
Definition: blit_command.h:25
impeller::BlitCommand::label
std::string label
Definition: blit_command.h:15
impeller::BlitCopyBufferToTextureCommand::source
BufferView source
Definition: blit_command.h:33
impeller::BlitCopyTextureToBufferCommand::destination_offset
size_t destination_offset
Definition: blit_command.h:29
impeller::BlitCopyTextureToBufferCommand::destination
std::shared_ptr< DeviceBuffer > destination
Definition: blit_command.h:27
impeller::BlitCopyTextureToTextureCommand::source
std::shared_ptr< Texture > source
Definition: blit_command.h:19
impeller::BlitCommand
Definition: blit_command.h:14
impeller::BufferView
Definition: buffer_view.h:15
rect.h
impeller::TPoint< int64_t >
impeller::BlitCopyTextureToBufferCommand::source
std::shared_ptr< Texture > source
Definition: blit_command.h:26
texture.h
impeller::BlitCopyTextureToTextureCommand::source_region
IRect source_region
Definition: blit_command.h:21
impeller::BlitCopyBufferToTextureCommand::destination_origin
IPoint destination_origin
Definition: blit_command.h:35
impeller
Definition: aiks_blur_unittests.cc:20
impeller::BlitCopyTextureToBufferCommand::source_region
IRect source_region
Definition: blit_command.h:28
impeller::TRect< int64_t >
impeller::BlitCopyBufferToTextureCommand::destination
std::shared_ptr< Texture > destination
Definition: blit_command.h:34
impeller::BlitCopyTextureToTextureCommand
Definition: blit_command.h:18