forked from StrafesNET/strafe-client
graphics: drop model_buf after upload
This commit is contained in:
parent
410f8d390b
commit
9508382998
@ -26,7 +26,6 @@ impl Indices{
|
|||||||
}
|
}
|
||||||
struct GraphicsModel{
|
struct GraphicsModel{
|
||||||
indices:Indices,
|
indices:Indices,
|
||||||
model_buf:wgpu::Buffer,
|
|
||||||
vertex_buf:wgpu::Buffer,
|
vertex_buf:wgpu::Buffer,
|
||||||
bind_group:wgpu::BindGroup,
|
bind_group:wgpu::BindGroup,
|
||||||
instance_count:u32,
|
instance_count:u32,
|
||||||
@ -501,7 +500,6 @@ impl GraphicsState{
|
|||||||
model_graphics::Indices::U16(indices)=>Indices::new(device,indices,wgpu::IndexFormat::Uint16),
|
model_graphics::Indices::U16(indices)=>Indices::new(device,indices,wgpu::IndexFormat::Uint16),
|
||||||
},
|
},
|
||||||
bind_group,
|
bind_group,
|
||||||
model_buf,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user