Fixed particle shader descriptor

This commit is contained in:
Ben Wallis 2021-08-17 22:28:49 +01:00
parent ffa0482433
commit 0f8288b0a6

View File

@ -170,7 +170,7 @@ impl Instance {
pub fn with_color(&mut self, color: Vec3<f32>) { self.inst_col = color.into_array(); }
fn desc<'a>() -> wgpu::VertexBufferLayout<'a> {
const ATTRIBUTES: [wgpu::VertexAttribute; 6] = wgpu::vertex_attr_array![2 => Float32, 3 => Float32, 4 => Float32, 5 => Sint32, 6 => Float32x3, 7 => Float32x3];
const ATTRIBUTES: [wgpu::VertexAttribute; 7] = wgpu::vertex_attr_array![2 => Float32, 3 => Float32, 4 => Float32, 5 => Sint32, 6 => Float32x3, 7 => Float32x3, 8 => Float32x3];
wgpu::VertexBufferLayout {
array_stride: mem::size_of::<Self>() as wgpu::BufferAddress,
step_mode: wgpu::InputStepMode::Instance,