diff options
Diffstat (limited to 'wgpu/src/quad')
-rw-r--r-- | wgpu/src/quad/gradient.rs | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/wgpu/src/quad/gradient.rs b/wgpu/src/quad/gradient.rs index 1b45c9f4..6db37252 100644 --- a/wgpu/src/quad/gradient.rs +++ b/wgpu/src/quad/gradient.rs @@ -96,24 +96,26 @@ impl Pipeline { as u64, step_mode: wgpu::VertexStepMode::Instance, attributes: &wgpu::vertex_attr_array!( - // 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 1-8 + 5 => Uint32x4, // Direction - 5 => Float32x4, - // Position & Scale 6 => Float32x4, - // Border color + // Position & Scale 7 => Float32x4, - // Border radius + // Border color 8 => Float32x4, + // Border radius + 9 => Float32x4, // Border width - 9 => Float32 + 10 => Float32 ), }, ], |