Creates a new instance buffer for the object
(&self, instance_data: Vec<InstanceRaw>)
| 489 | |
| 490 | /// Creates a new instance buffer for the object |
| 491 | pub fn build_instance(&self, instance_data: Vec<InstanceRaw>) -> wgpu::Buffer { |
| 492 | self.device |
| 493 | .create_buffer_init(&wgpu::util::BufferInitDescriptor { |
| 494 | label: Some("Instance Buffer"), |
| 495 | contents: bytemuck::cast_slice(&instance_data), |
| 496 | usage: wgpu::BufferUsages::VERTEX, |
| 497 | }) |
| 498 | } |
| 499 | } |
| 500 | |
| 501 | impl crate::SignalStorage { |
no outgoing calls
no test coverage detected