Make name of function parameter more explicit

This commit is contained in:
Hanno Braun 2024-11-25 22:16:22 +01:00
parent 8fc8453f57
commit 2199a3d523

View File

@ -87,9 +87,12 @@ impl Renderer {
})
}
pub fn render(&mut self, operation: &impl Operation) -> anyhow::Result<()> {
let vertices = Geometry::vertices(&self.device, operation);
let triangles = Geometry::triangles(&self.device, operation);
pub fn render(
&mut self,
selected_operation: &impl Operation,
) -> anyhow::Result<()> {
let vertices = Geometry::vertices(&self.device, selected_operation);
let triangles = Geometry::triangles(&self.device, selected_operation);
let mut encoder = self
.device