Skip to content

Commit

Permalink
use bevy_default() for texture format in post_processing (bevyengine#…
Browse files Browse the repository at this point in the history
…5601)

# Objective

Fixes bevyengine#5599

## Solution

Use bevy_default() for texture format in example to get proper texture format for wasm.
  • Loading branch information
contagnas authored and ItsDoot committed Feb 1, 2023
1 parent e96748d commit ba25036
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/shader/post_processing.rs
Expand Up @@ -13,6 +13,7 @@ use bevy::{
AsBindGroup, Extent3d, ShaderRef, TextureDescriptor, TextureDimension, TextureFormat,
TextureUsages,
},
texture::BevyDefault,
view::RenderLayers,
},
sprite::{Material2d, Material2dPlugin, MaterialMesh2dBundle},
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ba25036

Please sign in to comment.