Add message indicating level of completeness for not-yet-complete versions.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23313 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
e29e4af7a7
commit
447fc3613a
77 changed files with 104 additions and 4 deletions
|
|
@ -74,11 +74,12 @@ int MapVersionToIndex(int version)
|
|||
case 410: return 9;
|
||||
case 420: return 10;
|
||||
case 430: return 11;
|
||||
default: // |
|
||||
case 440: return 12;
|
||||
default: // |
|
||||
return 0; // |
|
||||
} // |
|
||||
} // V
|
||||
const int VersionCount = 12;
|
||||
} // |
|
||||
} // V
|
||||
const int VersionCount = 13; // number of case statements above
|
||||
|
||||
// only one of these needed for non-ES; ES needs 2 for different precision defaults of built-ins
|
||||
enum EPrecisionClass {
|
||||
|
|
@ -359,6 +360,23 @@ bool DeduceVersionProfile(TInfoSink& infoSink, EShLanguage stage, bool versionNo
|
|||
infoSink.info.message(EPrefixError, "#version: statement must appear first in es-profile shader; before comments or newlines");
|
||||
}
|
||||
|
||||
// A metecheck on the condition the compiler itself...
|
||||
switch(version) {
|
||||
case 100:
|
||||
case 300:
|
||||
// versions are complete
|
||||
break;
|
||||
case 110:
|
||||
case 120:
|
||||
case 130:
|
||||
case 140:
|
||||
infoSink.info << "Warning, version " << version << " is not yet complete; most features are present, but a few are missing.\n";
|
||||
break;
|
||||
default:
|
||||
infoSink.info << "Warning, version " << version << " is not yet complete; some version-specific are present, but many are missing.\n";
|
||||
break;
|
||||
}
|
||||
|
||||
return correct;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue