5 #ifndef FLUTTER_IMPELLER_RENDERER_BLIT_PASS_H_
6 #define FLUTTER_IMPELLER_RENDERER_BLIT_PASS_H_
30 virtual bool IsValid()
const = 0;
54 bool AddCopy(std::shared_ptr<Texture> source,
55 std::shared_ptr<Texture> destination,
56 std::optional<IRect> source_region = std::nullopt,
57 IPoint destination_origin = {},
58 std::string label =
"");
78 bool AddCopy(std::shared_ptr<Texture> source,
79 std::shared_ptr<DeviceBuffer> destination,
80 std::optional<IRect> source_region = std::nullopt,
81 size_t destination_offset = 0,
82 std::string label =
"");
100 std::shared_ptr<Texture> destination,
101 IPoint destination_origin = {},
102 std::string label =
"");
113 bool GenerateMipmap(std::shared_ptr<Texture> texture, std::string label =
"");
124 const std::shared_ptr<Allocator>& transients_allocator)
const = 0;
129 virtual void OnSetLabel(std::string label) = 0;
132 std::shared_ptr<Texture> source,
133 std::shared_ptr<Texture> destination,
135 IPoint destination_origin,
136 std::string label) = 0;
139 std::shared_ptr<Texture> source,
140 std::shared_ptr<DeviceBuffer> destination,
142 size_t destination_offset,
143 std::string label) = 0;
147 std::shared_ptr<Texture> destination,
148 IPoint destination_origin,
149 std::string label) = 0;
152 std::string label) = 0;
162 #endif // FLUTTER_IMPELLER_RENDERER_BLIT_PASS_H_