diff options
author | 2023-09-24 15:12:32 +0200 | |
---|---|---|
committer | 2023-09-24 15:12:32 +0200 | |
commit | bcc55e6036df0a2f9bdc7a21bf6ac98c03dd29ae (patch) | |
tree | 039146cac6d6d1f7f9deba4aa1dad64adfc11462 /wgpu/src/shader/quad | |
parent | 3f467d121229142177ef1b2f417fe87c7bf7fdf2 (diff) | |
download | iced-bcc55e6036df0a2f9bdc7a21bf6ac98c03dd29ae.tar.gz iced-bcc55e6036df0a2f9bdc7a21bf6ac98c03dd29ae.tar.bz2 iced-bcc55e6036df0a2f9bdc7a21bf6ac98c03dd29ae.zip |
Reassign attribute locations
Diffstat (limited to 'wgpu/src/shader/quad')
-rw-r--r-- | wgpu/src/shader/quad/gradient.wgsl | 20 | ||||
-rw-r--r-- | wgpu/src/shader/quad/solid.wgsl | 12 |
2 files changed, 16 insertions, 16 deletions
diff --git a/wgpu/src/shader/quad/gradient.wgsl b/wgpu/src/shader/quad/gradient.wgsl index 36cae61c..4ad2fea8 100644 --- a/wgpu/src/shader/quad/gradient.wgsl +++ b/wgpu/src/shader/quad/gradient.wgsl @@ -1,15 +1,15 @@ struct GradientVertexInput { @builtin(vertex_index) vertex_index: u32, - @location(1) @interpolate(flat) colors_1: vec4<u32>, - @location(2) @interpolate(flat) colors_2: vec4<u32>, - @location(3) @interpolate(flat) colors_3: vec4<u32>, - @location(4) @interpolate(flat) colors_4: vec4<u32>, - @location(5) @interpolate(flat) offsets: vec4<u32>, - @location(6) direction: vec4<f32>, - @location(7) position_and_scale: vec4<f32>, - @location(8) border_color: vec4<f32>, - @location(9) border_radius: vec4<f32>, - @location(10) border_width: f32, + @location(0) @interpolate(flat) colors_1: vec4<u32>, + @location(1) @interpolate(flat) colors_2: vec4<u32>, + @location(2) @interpolate(flat) colors_3: vec4<u32>, + @location(3) @interpolate(flat) colors_4: vec4<u32>, + @location(4) @interpolate(flat) offsets: vec4<u32>, + @location(5) direction: vec4<f32>, + @location(6) position_and_scale: vec4<f32>, + @location(7) border_color: vec4<f32>, + @location(8) border_radius: vec4<f32>, + @location(9) border_width: f32, } struct GradientVertexOutput { diff --git a/wgpu/src/shader/quad/solid.wgsl b/wgpu/src/shader/quad/solid.wgsl index 5fc5b13a..f84dd7ab 100644 --- a/wgpu/src/shader/quad/solid.wgsl +++ b/wgpu/src/shader/quad/solid.wgsl @@ -1,11 +1,11 @@ struct SolidVertexInput { @builtin(vertex_index) vertex_index: u32, - @location(1) color: vec4<f32>, - @location(2) pos: vec2<f32>, - @location(3) scale: vec2<f32>, - @location(4) border_color: vec4<f32>, - @location(5) border_radius: vec4<f32>, - @location(6) border_width: f32, + @location(0) color: vec4<f32>, + @location(1) pos: vec2<f32>, + @location(2) scale: vec2<f32>, + @location(3) border_color: vec4<f32>, + @location(4) border_radius: vec4<f32>, + @location(5) border_width: f32, } struct SolidVertexOutput { |