summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-stdlib-textures.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang-stdlib-textures.cpp b/source/slang/slang-stdlib-textures.cpp
index e5af1367f..bec3a7155 100644
--- a/source/slang/slang-stdlib-textures.cpp
+++ b/source/slang/slang-stdlib-textures.cpp
@@ -948,6 +948,7 @@ void TextureTypeInfo::writeSampleFunctions()
cat("texture($p, vec", arrCoordCount + 1, "($2, $3))")
);
+ sb << "__glsl_extension(GL_EXT_texture_shadow_lod)\n";
writeFunc(
"float",
"SampleCmpLevelZero",
@@ -980,6 +981,7 @@ void TextureTypeInfo::writeSampleFunctions()
cat("textureOffset($p, vec", arrCoordCount + 1, "($2, $3), $4)")
);
+ sb << "__glsl_extension(GL_EXT_texture_shadow_lod)\n";
writeFunc(
"float",
"SampleCmpLevelZero",