diff options
author | 2023-05-26 10:07:52 -0700 | |
---|---|---|
committer | 2023-05-26 10:13:18 -0700 | |
commit | 902e333148a1ceed85aba36262a849aaed8d3ac9 (patch) | |
tree | d1b0db241d1f693798ca4dce4d19728d413454fb /wgpu/src/layer | |
parent | 413526ad09d006853eb9659efabee168f4a0e0a4 (diff) | |
download | iced-902e333148a1ceed85aba36262a849aaed8d3ac9.tar.gz iced-902e333148a1ceed85aba36262a849aaed8d3ac9.tar.bz2 iced-902e333148a1ceed85aba36262a849aaed8d3ac9.zip |
Changed gradient::Packed to be `repr(C)` for direct gpu upload.
Diffstat (limited to 'wgpu/src/layer')
-rw-r--r-- | wgpu/src/layer/quad.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wgpu/src/layer/quad.rs b/wgpu/src/layer/quad.rs index 9913cfe0..0bf7837a 100644 --- a/wgpu/src/layer/quad.rs +++ b/wgpu/src/layer/quad.rs @@ -1,5 +1,5 @@ //! A rectangle with certain styled properties. - +use crate::graphics::gradient; use bytemuck::{Pod, Zeroable}; /// The properties of a quad. @@ -38,7 +38,7 @@ pub struct Solid { #[repr(C)] pub struct Gradient { /// The background gradient data of the quad. - pub gradient: [f32; 44], + pub gradient: gradient::Packed, /// The [`Quad`] data of the [`Gradient`]. pub quad: Quad, |