From d546786f4f015f5224563b5212706bbc5570fbb2 Mon Sep 17 00:00:00 2001 From: Evan Mark Hopkins Date: Tue, 17 Oct 2023 00:32:13 -0400 Subject: [PATCH] Remove extra level checks --- src/back/glsl/mod.rs | 1 - src/back/hlsl/writer.rs | 1 - src/back/msl/writer.rs | 1 - 3 files changed, 3 deletions(-) diff --git a/src/back/glsl/mod.rs b/src/back/glsl/mod.rs index bfeef7d88c..655e831422 100644 --- a/src/back/glsl/mod.rs +++ b/src/back/glsl/mod.rs @@ -1862,7 +1862,6 @@ impl<'a, W: Write> Writer<'a, W> { // If we are going to write a `textureSampleBaseClampToEdge` next, // precompute the half-texel before clamping the coordinates. if let crate::Expression::ImageSample { - level: crate::SampleLevel::Zero, clamp_to_edge: true, image, .. diff --git a/src/back/hlsl/writer.rs b/src/back/hlsl/writer.rs index 64980ce3f3..81253356b2 100644 --- a/src/back/hlsl/writer.rs +++ b/src/back/hlsl/writer.rs @@ -1346,7 +1346,6 @@ impl<'a, W: fmt::Write> super::Writer<'a, W> { // If we are going to write a `textureSampleBaseClampToEdge` next, // precompute the half-texel before clamping the coordinates. if let crate::Expression::ImageSample { - level: crate::SampleLevel::Zero, clamp_to_edge: true, image, .. diff --git a/src/back/msl/writer.rs b/src/back/msl/writer.rs index c5a81bb931..d4de0ac74e 100644 --- a/src/back/msl/writer.rs +++ b/src/back/msl/writer.rs @@ -2673,7 +2673,6 @@ impl Writer { // If we are going to write a `textureSampleBaseClampToEdge` next, // precompute the half-texel before clamping the coordinates. if let crate::Expression::ImageSample { - level: crate::SampleLevel::Zero, clamp_to_edge: true, image, ..