Include specification revision as part of the version string.
This commit is contained in:
parent
279012d8c4
commit
9e55f633bc
@ -2545,9 +2545,9 @@ namespace glslang {
|
|||||||
|
|
||||||
void GetSpirvVersion(std::string& version)
|
void GetSpirvVersion(std::string& version)
|
||||||
{
|
{
|
||||||
const int bufSize = 10;
|
const int bufSize = 100;
|
||||||
char buf[bufSize];
|
char buf[bufSize];
|
||||||
snprintf(buf, bufSize, "0.%d", spv::Version);
|
snprintf(buf, bufSize, "%d, Revision %d", spv::Version, spv::Revision);
|
||||||
version = buf;
|
version = buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -50,6 +50,7 @@ namespace spv {
|
|||||||
|
|
||||||
const int MagicNumber = 0x07230203;
|
const int MagicNumber = 0x07230203;
|
||||||
const int Version = 99;
|
const int Version = 99;
|
||||||
|
const int Revision = 30;
|
||||||
|
|
||||||
typedef unsigned int Id;
|
typedef unsigned int Id;
|
||||||
|
|
||||||
@ -679,6 +680,7 @@ enum Op {
|
|||||||
|
|
||||||
const int SpvMagicNumber = 0x07230203;
|
const int SpvMagicNumber = 0x07230203;
|
||||||
const int SpvVersion = 99;
|
const int SpvVersion = 99;
|
||||||
|
const int SpvRevision = 30;
|
||||||
|
|
||||||
typedef unsigned int SpvId;
|
typedef unsigned int SpvId;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user