Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
9e55f633
Commit
9e55f633
authored
Jul 15, 2015
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include specification revision as part of the version string.
parent
279012d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
GlslangToSpv.cpp
SPIRV/GlslangToSpv.cpp
+2
-2
spirv.h
SPIRV/spirv.h
+2
-0
No files found.
SPIRV/GlslangToSpv.cpp
View file @
9e55f633
...
@@ -2545,9 +2545,9 @@ namespace glslang {
...
@@ -2545,9 +2545,9 @@ namespace glslang {
void
GetSpirvVersion
(
std
::
string
&
version
)
void
GetSpirvVersion
(
std
::
string
&
version
)
{
{
const
int
bufSize
=
10
;
const
int
bufSize
=
10
0
;
char
buf
[
bufSize
];
char
buf
[
bufSize
];
snprintf
(
buf
,
bufSize
,
"
0.%d"
,
spv
::
Ver
sion
);
snprintf
(
buf
,
bufSize
,
"
%d, Revision %d"
,
spv
::
Version
,
spv
::
Revi
sion
);
version
=
buf
;
version
=
buf
;
}
}
...
...
SPIRV/spirv.h
View file @
9e55f633
...
@@ -50,6 +50,7 @@ namespace spv {
...
@@ -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 {
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment