diff options
author | 2023-09-24 15:26:10 +0200 | |
---|---|---|
committer | 2023-09-24 15:26:10 +0200 | |
commit | 41dec5bd203ff5b1574a33a17d5f7358ae1beea2 (patch) | |
tree | 2c65672612ada8aefee0a813f2b3a3039171bc26 /wgpu/src/image.rs | |
parent | 5fb877ab5984dd1c4a3f3dcccf87103393da4e0c (diff) | |
download | iced-41dec5bd203ff5b1574a33a17d5f7358ae1beea2.tar.gz iced-41dec5bd203ff5b1574a33a17d5f7358ae1beea2.tar.bz2 iced-41dec5bd203ff5b1574a33a17d5f7358ae1beea2.zip |
Reassign attribute locations for image shader
Diffstat (limited to 'wgpu/src/image.rs')
-rw-r--r-- | wgpu/src/image.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/wgpu/src/image.rs b/wgpu/src/image.rs index 384138a2..36c1e228 100644 --- a/wgpu/src/image.rs +++ b/wgpu/src/image.rs @@ -218,11 +218,16 @@ impl Pipeline { array_stride: mem::size_of::<Instance>() as u64, step_mode: wgpu::VertexStepMode::Instance, attributes: &wgpu::vertex_attr_array!( + // Position + 0 => Float32x2, + // Scale 1 => Float32x2, + // Atlas position 2 => Float32x2, + // Atlas scale 3 => Float32x2, - 4 => Float32x2, - 5 => Sint32, + // Layer + 4 => Sint32, ), }], }, |