Skip to content

Commit f5363c6

Browse files
authored
smaa: use textureSampleLevel for WebGPU support (#20505)
# Objective - Fixes #14578 ## Solution - Use `textureSampleLevel` instead of `textureSample` (#11893)
1 parent 12d88fa commit f5363c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_anti_aliasing/src/smaa/smaa.wgsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ fn area(dist: vec2<f32>, e1: f32, e2: f32, offset: f32) -> vec2<f32> {
894894
tex_coord.y += SMAA_AREATEX_SUBTEX_SIZE * offset;
895895

896896
// Do it!
897-
return textureSample(area_texture, edges_sampler, tex_coord).rg;
897+
return textureSampleLevel(area_texture, edges_sampler, tex_coord, 0.0).rg;
898898
}
899899

900900
//-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)