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