Fix #1395: GLSL volatile maps to SPIR-V Volatile and Coherent.

The major version number was bumped in the previous commit to support
this.
This commit is contained in:
John Kessenich
2018-06-04 15:36:03 -06:00
parent d6c975572e
commit 14b85d3ff3
3 changed files with 6 additions and 2 deletions

View File

@@ -340,8 +340,10 @@ void TranslateMemoryDecoration(const glslang::TQualifier& qualifier, std::vector
{
if (qualifier.coherent)
memory.push_back(spv::DecorationCoherent);
if (qualifier.volatil)
if (qualifier.volatil) {
memory.push_back(spv::DecorationVolatile);
memory.push_back(spv::DecorationCoherent);
}
if (qualifier.restrict)
memory.push_back(spv::DecorationRestrict);
if (qualifier.readonly)