[glsl][ir] Polyfill `textureSampleLevel`
This Cl replaces the WGSL `textureSampleLevel` call with the needed
GLSL polyfill.
Bug: 42251044
Change-Id: I22f63ed6c580975de8f3f0fef2f7abaf6c808cb8
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/209536
Commit-Queue: dan sinclair <dsinclair@chromium.org>
Reviewed-by: James Price <jrprice@google.com>
diff --git a/src/tint/lang/glsl/builtin_fn.cc b/src/tint/lang/glsl/builtin_fn.cc
index 779e729..ead1558 100644
--- a/src/tint/lang/glsl/builtin_fn.cc
+++ b/src/tint/lang/glsl/builtin_fn.cc
@@ -90,6 +90,14 @@
return "texture";
case BuiltinFn::kTextureOffset:
return "textureOffset";
+ case BuiltinFn::kTextureLod:
+ return "textureLod";
+ case BuiltinFn::kExtTextureLod:
+ return "extTextureLod";
+ case BuiltinFn::kTextureLodOffset:
+ return "textureLodOffset";
+ case BuiltinFn::kExtTextureLodOffset:
+ return "extTextureLodOffset";
case BuiltinFn::kTextureGradOffset:
return "textureGradOffset";
case BuiltinFn::kTextureGather: