From e66fd6c2a000e2fd5130d3c127df112ca473ecea Mon Sep 17 00:00:00 2001 From: Sidney Just Date: Mon, 12 Mar 2018 00:59:06 +1000 Subject: [PATCH] Added generation of the textureXYZGrad() legacy GLSL instruction --- spirv_glsl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spirv_glsl.cpp b/spirv_glsl.cpp index d515c37c..1f4dd6c3 100644 --- a/spirv_glsl.cpp +++ b/spirv_glsl.cpp @@ -3384,6 +3384,8 @@ string CompilerGLSL::legacy_tex_op(const std::string &op, const SPIRType &imgtyp } else if (op == "textureProj") return join("texture", type, "Proj"); + else if (op == "textureGrad") + return join("texture", type, "Grad"); else if (op == "textureProjLod") { if (use_explicit_lod)