(&self, device: &wgpu::Device)
| 79 | } |
| 80 | |
| 81 | pub fn create_buffer(&self, device: &wgpu::Device) -> wgpu::Buffer { |
| 82 | device.create_buffer_init( |
| 83 | &wgpu::util::BufferInitDescriptor { |
| 84 | label: None, |
| 85 | contents: bytemuck::cast_slice(&[self.entity_uniforms]), |
| 86 | usage: wgpu::BufferUsages::STORAGE | wgpu::BufferUsages::COPY_DST, |
| 87 | } |
| 88 | ) |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | impl<const MAX_ENTITIES: usize, T, U> Default for ArrayBuffer<MAX_ENTITIES, T, U> |
no outgoing calls
no test coverage detected