Skip to content

Commit 484e7c7

Browse files
GpuImage::size f32 -> u32 via UVec2
[11698](bevyengine/bevy#11698) changed `GpuImage::size` to `UVec2`. Right above this, `Extent3d` does the same thing, so I'm taking a small leap and assuming can `as`.
1 parent b6fe345 commit 484e7c7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/render/texture_array_cache.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use crate::{TilemapSpacing, TilemapTexture, TilemapTextureSize, TilemapTileSize}
33
use bevy::asset::Assets;
44
use bevy::prelude::Resource;
55
use bevy::{
6-
prelude::{Image, Res},
6+
prelude::{Image, Res, UVec2},
77
render::{
88
render_asset::RenderAssets,
99
render_resource::{
@@ -205,7 +205,10 @@ impl TextureArrayCache {
205205
texture: gpu_texture,
206206
sampler,
207207
texture_view,
208-
size: tile_size.into(),
208+
size: UVec2 {
209+
x: tile_size.x as u32,
210+
y: tile_size.y as u32,
211+
},
209212
mip_level_count,
210213
};
211214

0 commit comments

Comments
 (0)