46 const std::vector<Scalar>& stops) {
49 std::vector<StopData>
result(stops.size());
50 for (
auto i = 0u; i < stops.size(); i++) {
51 result[i] = {.color = colors[i], .stop = stops[i]};
std::shared_ptr< Texture > CreateGradientTexture(const GradientData &gradient_data, const std::shared_ptr< impeller::Context > &context)
Create a host visible texture that contains the gradient defined by the provided gradient data.
A lightweight object that describes the attributes of a texture that can then used an allocator to cr...