Inline unneccesary variables
This commit is contained in:
parent
374dd254b2
commit
3ea0b58ec8
|
@ -170,10 +170,7 @@ impl BrickmapManager {
|
||||||
let grid_dims = self.state_uniform.brickgrid_dims;
|
let grid_dims = self.state_uniform.brickgrid_dims;
|
||||||
for i in 0..request_count {
|
for i in 0..request_count {
|
||||||
// Extract brickgrid position of the requested brickmap
|
// Extract brickgrid position of the requested brickmap
|
||||||
let grid_x = data[i * 4];
|
let grid_pos = glam::uvec3(data[i * 4], data[i * 4 + 1], data[i * 4 + 2]);
|
||||||
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_idx = math::to_1d_index(
|
let grid_idx = math::to_1d_index(
|
||||||
grid_pos,
|
grid_pos,
|
||||||
glam::uvec3(grid_dims[0], grid_dims[1], grid_dims[2]),
|
glam::uvec3(grid_dims[0], grid_dims[1], grid_dims[2]),
|
||||||
|
|
Loading…
Reference in New Issue