|  a7be8a2655 # Objective
The physical width and height (pixels) of an image is always integers,
but for `GpuImage` bevy currently stores them as `Vec2` (`f32`).
Switching to `UVec2` makes this more consistent with the [underlying
texture data](https://docs.rs/wgpu/latest/wgpu/struct.Extent3d.html).
I'm not sure if this is worth the change in the surface level API. If
not, feel free to close this PR.
## Solution
- Replace uses of `Vec2` with `UVec2` when referring to texture
dimensions.
- Use integer types for the texture atlas dimensions and sections.
[`Sprite::rect`]( | ||
|---|---|---|
| .. | ||
| color_material.rs | ||
| color_material.wgsl | ||
| material.rs | ||
| mesh2d_bindings.wgsl | ||
| mesh2d_functions.wgsl | ||
| mesh2d_types.wgsl | ||
| mesh2d_vertex_output.wgsl | ||
| mesh2d_view_bindings.wgsl | ||
| mesh2d_view_types.wgsl | ||
| mesh2d.wgsl | ||
| mesh.rs | ||
| mod.rs | ||