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
a372a3ed
Commit
a372a3ed
authored
Nov 02, 2017
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Versioning: Update some version strings. Still need better overall version.
parent
9f0b6fa4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
8 deletions
+13
-8
GlslangToSpv.cpp
SPIRV/GlslangToSpv.cpp
+9
-6
GlslangToSpv.h
SPIRV/GlslangToSpv.h
+1
-0
StandAlone.cpp
StandAlone/StandAlone.cpp
+1
-0
ShaderLang.cpp
glslang/MachineIndependent/ShaderLang.cpp
+2
-2
No files found.
SPIRV/GlslangToSpv.cpp
View file @
a372a3ed
...
...
@@ -78,11 +78,6 @@ using namespace spvtools;
namespace
{
// For low-order part of the generator's magic number. Bump up
// when there is a change in the style (e.g., if SSA form changes,
// or a different instruction sequence to do something gets used).
const
int
GeneratorVersion
=
2
;
namespace
{
class
SpecConstantOpModeGuard
{
public
:
...
...
@@ -885,7 +880,7 @@ TGlslangToSpvTraverser::TGlslangToSpvTraverser(const glslang::TIntermediate* gls
options
(
options
),
shaderEntry
(
nullptr
),
currentFunction
(
nullptr
),
sequenceDepth
(
0
),
logger
(
buildLogger
),
builder
((
glslang
::
GetKhronosToolId
()
<<
16
)
|
GeneratorVersion
,
logger
),
builder
((
glslang
::
GetKhronosToolId
()
<<
16
)
|
glslang
::
GetSpirvGeneratorVersion
()
,
logger
),
inEntryPoint
(
false
),
entryPointTerminated
(
false
),
linkageOnly
(
false
),
glslangIntermediate
(
glslangIntermediate
)
{
...
...
@@ -5959,6 +5954,14 @@ void GetSpirvVersion(std::string& version)
version
=
buf
;
}
// For low-order part of the generator's magic number. Bump up
// when there is a change in the style (e.g., if SSA form changes,
// or a different instruction sequence to do something gets used).
int
GetSpirvGeneratorVersion
()
{
return
2
;
}
// Write SPIR-V out to a binary file
void
OutputSpvBin
(
const
std
::
vector
<
unsigned
int
>&
spirv
,
const
char
*
baseName
)
{
...
...
SPIRV/GlslangToSpv.h
View file @
a372a3ed
...
...
@@ -56,6 +56,7 @@ struct SpvOptions {
};
void
GetSpirvVersion
(
std
::
string
&
);
int
GetSpirvGeneratorVersion
();
void
GlslangToSpv
(
const
glslang
::
TIntermediate
&
intermediate
,
std
::
vector
<
unsigned
int
>&
spirv
,
SpvOptions
*
options
=
nullptr
);
void
GlslangToSpv
(
const
glslang
::
TIntermediate
&
intermediate
,
std
::
vector
<
unsigned
int
>&
spirv
,
...
...
StandAlone/StandAlone.cpp
View file @
a372a3ed
...
...
@@ -1049,6 +1049,7 @@ int C_DECL main(int argc, char* argv[])
printf
(
"SPIR-V Version %s
\n
"
,
spirvVersion
.
c_str
());
printf
(
"GLSL.std.450 Version %d, Revision %d
\n
"
,
GLSLstd450Version
,
GLSLstd450Revision
);
printf
(
"Khronos Tool ID %d
\n
"
,
glslang
::
GetKhronosToolId
());
printf
(
"SPIR-V Generator Version %d
\n
"
,
glslang
::
GetSpirvGeneratorVersion
());
printf
(
"GL_KHR_vulkan_glsl version %d
\n
"
,
100
);
printf
(
"ARB_GL_gl_spirv version %d
\n
"
,
100
);
if
(
workList
.
empty
())
...
...
glslang/MachineIndependent/ShaderLang.cpp
View file @
a372a3ed
...
...
@@ -1572,12 +1572,12 @@ namespace glslang {
const
char
*
GetEsslVersionString
()
{
return
"OpenGL ES GLSL 3.
00 glslang LunarG
Khronos."
GLSLANG_REVISION
" "
GLSLANG_DATE
;
return
"OpenGL ES GLSL 3.
20 glslang
Khronos."
GLSLANG_REVISION
" "
GLSLANG_DATE
;
}
const
char
*
GetGlslVersionString
()
{
return
"4.
20 glslang LunarG
Khronos."
GLSLANG_REVISION
" "
GLSLANG_DATE
;
return
"4.
60 glslang
Khronos."
GLSLANG_REVISION
" "
GLSLANG_DATE
;
}
int
GetKhronosToolId
()
...
...
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