5 #ifndef FLUTTER_IMPELLER_RENDERER_BLIT_PASS_H_
6 #define FLUTTER_IMPELLER_RENDERER_BLIT_PASS_H_
32 virtual bool IsValid()
const = 0;
58 bool AddCopy(std::shared_ptr<Texture> source,
59 std::shared_ptr<Texture> destination,
60 std::optional<IRect> source_region = std::nullopt,
61 IPoint destination_origin = {},
62 std::string label =
"");
82 bool AddCopy(std::shared_ptr<Texture> source,
83 std::shared_ptr<DeviceBuffer> destination,
84 std::optional<IRect> source_region = std::nullopt,
85 size_t destination_offset = 0,
86 std::string label =
"");
104 std::shared_ptr<Texture> destination,
105 IPoint destination_origin = {},
106 std::string label =
"");
117 bool GenerateMipmap(std::shared_ptr<Texture> texture, std::string label =
"");
128 const std::shared_ptr<Allocator>& transients_allocator)
const = 0;
135 virtual void OnSetLabel(std::string label) = 0;
138 std::shared_ptr<Texture> source,
139 std::shared_ptr<Texture> destination,
141 IPoint destination_origin,
142 std::string label) = 0;
145 std::shared_ptr<Texture> source,
146 std::shared_ptr<DeviceBuffer> destination,
148 size_t destination_offset,
149 std::string label) = 0;
153 std::shared_ptr<Texture> destination,
154 IPoint destination_origin,
155 std::string label) = 0;
158 std::string label) = 0;
168 #endif // FLUTTER_IMPELLER_RENDERER_BLIT_PASS_H_