Merge pull request #498 from JustSid/master

Added generation of the textureXYZGrad() legacy GLSL instruction
This commit is contained in:
Hans-Kristian Arntzen 2018-03-11 21:11:32 +01:00 committed by GitHub
commit 29315f3b3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)