KHR_vulkan_glsl: name mangle distinguish pure textures.

Fixes issue #252.
This commit is contained in:
John Kessenich 2016-05-20 16:59:27 -06:00
parent 22e0d41448
commit 2921e0c54a
3 changed files with 15 additions and 3 deletions

View file

@ -73,9 +73,13 @@ void TType::buildMangledName(TString& mangledName)
default: break; // some compilers want this
}
if (sampler.image)
mangledName += "I";
mangledName += "I"; // a normal image
else if (sampler.sampler)
mangledName += "p"; // a "pure" sampler
else if (!sampler.combined)
mangledName += "t"; // a "pure" texture
else
mangledName += "s";
mangledName += "s"; // traditional combined sampler
if (sampler.arrayed)
mangledName += "A";
if (sampler.shadow)