From 3ea0b58ec841b35bc5d7f6a3a69aa323f1b0d749 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Mon, 3 Jul 2023 11:15:27 +0100 Subject: [PATCH] Inline unneccesary variables --- src/voxel/brickmap.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/voxel/brickmap.rs b/src/voxel/brickmap.rs index d6a2ce6..54dedd1 100644 --- a/src/voxel/brickmap.rs +++ b/src/voxel/brickmap.rs @@ -170,10 +170,7 @@ impl BrickmapManager { let grid_dims = self.state_uniform.brickgrid_dims; for i in 0..request_count { // Extract brickgrid position of the requested brickmap - let grid_x = data[i * 4]; - let grid_y = data[i * 4 + 1]; - let grid_z = data[i * 4 + 2]; - let grid_pos = glam::uvec3(grid_x, grid_y, grid_z); + let grid_pos = glam::uvec3(data[i * 4], data[i * 4 + 1], data[i * 4 + 2]); let grid_idx = math::to_1d_index( grid_pos, glam::uvec3(grid_dims[0], grid_dims[1], grid_dims[2]),