KHR_vulkan_glsl: name mangle distinguish pure textures.
Fixes issue #252.
This commit is contained in:
parent
22e0d41448
commit
2921e0c54a
3 changed files with 15 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue