diff options
author | 2022-10-05 16:07:43 -0700 | |
---|---|---|
committer | 2022-10-05 16:07:43 -0700 | |
commit | 1eb8d972ba60592da7bfc27fe7ec80138e64dd7b (patch) | |
tree | 1951255bcb8d2b87767da406eb87b80ab5a709cc /graphics/src | |
parent | f7ce7244d017ec16545a3e52b6e7cf634bbffd4a (diff) | |
download | iced-1eb8d972ba60592da7bfc27fe7ec80138e64dd7b.tar.gz iced-1eb8d972ba60592da7bfc27fe7ec80138e64dd7b.tar.bz2 iced-1eb8d972ba60592da7bfc27fe7ec80138e64dd7b.zip |
Reduced memory transfer of OpenGL gradient uniform upload. Rearranged gradient uniforms on OpenGL side to be more performant.
Diffstat (limited to 'graphics/src')
-rw-r--r-- | graphics/src/widget/canvas.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/graphics/src/widget/canvas.rs b/graphics/src/widget/canvas.rs index 6ed3a12f..4a2c5b2d 100644 --- a/graphics/src/widget/canvas.rs +++ b/graphics/src/widget/canvas.rs @@ -28,6 +28,7 @@ pub use stroke::{LineCap, LineDash, LineJoin, Stroke}; pub use text::Text; use crate::{Backend, Primitive, Renderer}; +pub use crate::gradient::Gradient; use iced_native::layout::{self, Layout}; use iced_native::mouse; @@ -37,8 +38,6 @@ use iced_native::{ Clipboard, Element, Length, Point, Rectangle, Shell, Size, Vector, Widget, }; -pub use crate::gradient::Gradient; - use std::marker::PhantomData; /// A widget capable of drawing 2D graphics. |