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
bf63ef05
Commit
bf63ef05
authored
Nov 14, 2013
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add GetEsslVersionString() and GetGlslVersionString().
git-svn-id:
https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@24054
e7fa87d3-cd2b-0410-9028-fcbf551c1848
parent
e4f45cbf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
StandAlone.cpp
StandAlone/StandAlone.cpp
+3
-0
ShaderLang.cpp
glslang/MachineIndependent/ShaderLang.cpp
+10
-0
ShaderLang.h
glslang/Public/ShaderLang.h
+3
-0
No files found.
StandAlone/StandAlone.cpp
View file @
bf63ef05
...
...
@@ -551,6 +551,9 @@ void CompileAndLinkShaders()
{
// keep track of what to free
std
::
list
<
glslang
::
TShader
*>
shaders
;
//printf("%s\n", glslang::GetEsslVersionString());
//printf("%s\n", glslang::GetGlslVersionString());
EShMessages
messages
=
EShMsgDefault
;
SetMessageOptions
(
messages
);
...
...
glslang/MachineIndependent/ShaderLang.cpp
View file @
bf63ef05
...
...
@@ -912,6 +912,16 @@ int ShGetUniformLocation(const ShHandle handle, const char* name)
namespace
glslang
{
const
char
*
GetEsslVersionString
()
{
return
"OpenGL ES GLSL 3.00 glslang"
;
}
const
char
*
GetGlslVersionString
()
{
return
"4.20 glslang"
;
}
bool
InitializeProcess
()
{
return
ShInitialize
()
!=
0
;
...
...
glslang/Public/ShaderLang.h
View file @
bf63ef05
...
...
@@ -263,6 +263,9 @@ class TInfoSink;
namespace
glslang
{
const
char
*
GetEsslVersionString
();
const
char
*
GetGlslVersionString
();
class
TIntermediate
;
class
TProgram
;
class
TPoolAllocator
;
...
...
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