File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 11use crate :: TextureAtlasLayout ;
22use bevy_image:: { Image , TextureFormatPixelInfo } ;
33use bevy_math:: { URect , UVec2 } ;
4- use bevy_render:: {
5- render_asset:: { RenderAsset , RenderAssetUsages } ,
6- texture:: GpuImage ,
7- } ;
4+ use bevy_render:: render_asset:: RenderAssetUsages ;
85use guillotiere:: { size2, Allocation , AtlasAllocator } ;
96
107/// Helper utility to update [`TextureAtlasLayout`] on the fly.
@@ -53,9 +50,8 @@ impl DynamicTextureAtlasBuilder {
5350 ) ) ;
5451 if let Some ( allocation) = allocation {
5552 assert ! (
56- <GpuImage as RenderAsset >:: asset_usage( atlas_texture)
57- . contains( RenderAssetUsages :: MAIN_WORLD ) ,
58- "The asset at atlas_texture_handle must have the RenderAssetUsages::MAIN_WORLD usage flag set"
53+ atlas_texture. asset_usage. contains( RenderAssetUsages :: MAIN_WORLD ) ,
54+ "The atlas_texture image must have the RenderAssetUsages::MAIN_WORLD usage flag set"
5955 ) ;
6056
6157 self . place_texture ( atlas_texture, allocation, texture) ;
You can’t perform that action at this time.
0 commit comments