use bevy_default() for texture format in post_processing (#5601)
# Objective Fixes https://github.com/bevyengine/bevy/issues/5599 ## Solution Use bevy_default() for texture format in example to get proper texture format for wasm.
This commit is contained in:
parent
c27cc59e0d
commit
cd19d2757b
@ -13,6 +13,7 @@ use bevy::{
|
||||
AsBindGroup, Extent3d, ShaderRef, TextureDescriptor, TextureDimension, TextureFormat,
|
||||
TextureUsages,
|
||||
},
|
||||
texture::BevyDefault,
|
||||
view::RenderLayers,
|
||||
},
|
||||
sprite::{Material2d, Material2dPlugin, MaterialMesh2dBundle},
|
||||
@ -56,7 +57,7 @@ fn setup(
|
||||
label: None,
|
||||
size,
|
||||
dimension: TextureDimension::D2,
|
||||
format: TextureFormat::Bgra8UnormSrgb,
|
||||
format: TextureFormat::bevy_default(),
|
||||
mip_level_count: 1,
|
||||
sample_count: 1,
|
||||
usage: TextureUsages::TEXTURE_BINDING
|
||||
|
||||
Loading…
Reference in New Issue
Block a user