5 #ifndef FLUTTER_IMPELLER_RENDERER_BLIT_PASS_H_
6 #define FLUTTER_IMPELLER_RENDERER_BLIT_PASS_H_
30 virtual bool IsValid()
const = 0;
40 const std::shared_ptr<Texture>& texture);
61 bool AddCopy(std::shared_ptr<Texture> source,
62 std::shared_ptr<Texture> destination,
63 std::optional<IRect> source_region = std::nullopt,
64 IPoint destination_origin = {},
65 std::string label =
"");
84 bool AddCopy(std::shared_ptr<Texture> source,
85 std::shared_ptr<DeviceBuffer> destination,
86 std::optional<IRect> source_region = std::nullopt,
87 size_t destination_offset = 0,
88 std::string label =
"");
118 std::shared_ptr<Texture> destination,
119 std::optional<IRect> destination_region = std::nullopt,
120 std::string label =
"",
122 bool convert_to_read =
true);
132 bool GenerateMipmap(std::shared_ptr<Texture> texture, std::string label =
"");
143 const std::shared_ptr<Allocator>& transients_allocator)
const = 0;
148 virtual void OnSetLabel(std::string label) = 0;
151 std::shared_ptr<Texture> source,
152 std::shared_ptr<Texture> destination,
154 IPoint destination_origin,
155 std::string label) = 0;
158 std::shared_ptr<Texture> source,
159 std::shared_ptr<DeviceBuffer> destination,
161 size_t destination_offset,
162 std::string label) = 0;
166 std::shared_ptr<Texture> destination,
167 IRect destination_region,
170 bool convert_to_read) = 0;
173 std::string label) = 0;
183 #endif // FLUTTER_IMPELLER_RENDERER_BLIT_PASS_H_