diff options
| author | 2023-06-07 10:47:57 -0700 | |
|---|---|---|
| committer | 2023-06-07 11:18:26 -0700 | |
| commit | 677f564f087b009842207e6df74aed343454ea17 (patch) | |
| tree | c241fd569e1eacc07850618423c8d052c8405c77 /wgpu/src/triangle | |
| parent | 9554c78f3adc9846b76e9d3b96af06e98fb69aa0 (diff) | |
| download | iced-677f564f087b009842207e6df74aed343454ea17.tar.gz iced-677f564f087b009842207e6df74aed343454ea17.tar.bz2 iced-677f564f087b009842207e6df74aed343454ea17.zip | |
Switched to packing using f16s to maintain acceptable precision.
Diffstat (limited to '')
| -rw-r--r-- | wgpu/src/triangle.rs | 16 | 
1 files changed, 9 insertions, 7 deletions
| diff --git a/wgpu/src/triangle.rs b/wgpu/src/triangle.rs index 3f633e14..3f3635cf 100644 --- a/wgpu/src/triangle.rs +++ b/wgpu/src/triangle.rs @@ -652,16 +652,18 @@ mod gradient {                              attributes: &wgpu::vertex_attr_array!(                                  // Position                                  0 => Float32x2, -                                // Colors 1-4 +                                // Colors 1-2                                  1 => Uint32x4, -                                // Colors 5-8, +                                // Colors 3-4                                  2 => Uint32x4, -                                // Offsets 1-4 -                                3 => Float32x4, -                                // Offsets 5-8 -                                4 => Float32x4, +                                // Colors 5-6 +                                3 => Uint32x4, +                                // Colors 7-8 +                                4 => Uint32x4, +                                // Offsets +                                5 => Uint32x4,                                  // Direction -                                5 => Float32x4 +                                6 => Float32x4                              ),                          }],                      }, | 
