Update name of struct field

This commit is contained in:
Hanno Braun 2025-01-13 20:05:10 +01:00
parent e5c98273f4
commit 72c035a842

View File

@ -12,7 +12,7 @@ pub struct Renderer {
pub device: wgpu::Device, pub device: wgpu::Device,
pub queue: wgpu::Queue, pub queue: wgpu::Queue,
pub surface_config: wgpu::SurfaceConfiguration, pub surface_config: wgpu::SurfaceConfiguration,
pub pipelines: Pipeline, pub pipeline: Pipeline,
pub depth_view: wgpu::TextureView, pub depth_view: wgpu::TextureView,
pub text_renderer: TextRenderer, pub text_renderer: TextRenderer,
} }
@ -81,7 +81,7 @@ impl Renderer {
device, device,
queue, queue,
surface_config, surface_config,
pipelines, pipeline: pipelines,
depth_view, depth_view,
text_renderer, text_renderer,
}) })
@ -128,7 +128,7 @@ impl Renderer {
occlusion_query_set: None, occlusion_query_set: None,
}); });
self.pipelines.draw(&mut render_pass, &triangles); self.pipeline.draw(&mut render_pass, &triangles);
self.text_renderer.render( self.text_renderer.render(
operations, operations,
&self.device, &self.device,