(&mut self, object_count: usize)
| 157 | } |
| 158 | |
| 159 | pub fn build_ubos_for_objects(&mut self, object_count: usize) { |
| 160 | |
| 161 | let ubo_bind_group_layout; |
| 162 | { |
| 163 | let mut builder = bind_group_layout::Builder::new(&self.device); |
| 164 | builder.add_ubo(); |
| 165 | ubo_bind_group_layout = builder.build("UBO Bind Group Layout"); |
| 166 | } |
| 167 | self.ubo = Some(UBO::new(&self.device, object_count, ubo_bind_group_layout)); |
| 168 | } |
| 169 | |
| 170 | fn render(&mut self, quads: &Vec<Object>, tris: &Vec<Object>) -> Result<(), wgpu::SurfaceError>{ |
| 171 |