Semantics: Texture clamp functions are available for fragment shader only.

This commit is contained in:
Rex Xu 2017-01-24 14:36:10 +08:00
parent 2043da90df
commit 00d54b4440

View File

@ -4203,7 +4203,7 @@ void TBuiltIns::addSamplingFunctions(TSampler sampler, TString& typeName, int ve
// Add to the per-language set of built-ins // Add to the per-language set of built-ins
if (bias) if (bias || lodClamp)
stageBuiltins[EShLangFragment].append(s); stageBuiltins[EShLangFragment].append(s);
else else
commonBuiltins.append(s); commonBuiltins.append(s);