Skip to content

Commit 75e7575

Browse files
authored
Update instance_data.rs
1 parent fc946a2 commit 75e7575

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

neothesia-core/src/render/waterfall/pipeline/instance_data.rs

+3-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use wgpu_jumpstart::wgpu;
2+
23
use bytemuck::{Pod, Zeroable};
34
use wgpu::vertex_attr_array;
45

@@ -9,18 +10,11 @@ pub struct NoteInstance {
910
pub size: [f32; 2],
1011
pub color: [f32; 3],
1112
pub radius: f32,
12-
pub note_name: [u8; 4], // Add this line
1313
}
1414

1515
impl NoteInstance {
16-
pub fn attributes() -> [wgpu::VertexAttribute; 5] { // Update number of attributes
17-
vertex_attr_array!(
18-
1 => Float32x2,
19-
2 => Float32x2,
20-
3 => Float32x3,
21-
4 => Float32,
22-
5 => Uint32x4 // Add this line for note_name
23-
)
16+
pub fn attributes() -> [wgpu::VertexAttribute; 4] {
17+
vertex_attr_array!(1 => Float32x2, 2 => Float32x2, 3 => Float32x3, 4 => Float32)
2418
}
2519

2620
pub fn layout(attributes: &[wgpu::VertexAttribute]) -> wgpu::VertexBufferLayout {

0 commit comments

Comments
 (0)