Skip to content

Commit

Permalink
GpuImage::size f32 -> u32 via UVec2
Browse files Browse the repository at this point in the history
[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`.
  • Loading branch information
ChristopherBiscardi committed Jun 7, 2024
1 parent b6fe345 commit 484e7c7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/render/texture_array_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::{TilemapSpacing, TilemapTexture, TilemapTextureSize, TilemapTileSize}
use bevy::asset::Assets;
use bevy::prelude::Resource;
use bevy::{
prelude::{Image, Res},
prelude::{Image, Res, UVec2},
render::{
render_asset::RenderAssets,
render_resource::{
Expand Down Expand Up @@ -205,7 +205,10 @@ impl TextureArrayCache {
texture: gpu_texture,
sampler,
texture_view,
size: tile_size.into(),
size: UVec2 {
x: tile_size.x as u32,
y: tile_size.y as u32,
},
mip_level_count,
};

Expand Down

0 comments on commit 484e7c7

Please sign in to comment.