Commit bf63ef05 by John Kessenich

Add GetEsslVersionString() and GetGlslVersionString().

parent e4f45cbf
...@@ -551,6 +551,9 @@ void CompileAndLinkShaders() ...@@ -551,6 +551,9 @@ void CompileAndLinkShaders()
{ {
// keep track of what to free // keep track of what to free
std::list<glslang::TShader*> shaders; std::list<glslang::TShader*> shaders;
//printf("%s\n", glslang::GetEsslVersionString());
//printf("%s\n", glslang::GetGlslVersionString());
EShMessages messages = EShMsgDefault; EShMessages messages = EShMsgDefault;
SetMessageOptions(messages); SetMessageOptions(messages);
......
...@@ -912,6 +912,16 @@ int ShGetUniformLocation(const ShHandle handle, const char* name) ...@@ -912,6 +912,16 @@ int ShGetUniformLocation(const ShHandle handle, const char* name)
namespace glslang { namespace glslang {
const char* GetEsslVersionString()
{
return "OpenGL ES GLSL 3.00 glslang";
}
const char* GetGlslVersionString()
{
return "4.20 glslang";
}
bool InitializeProcess() bool InitializeProcess()
{ {
return ShInitialize() != 0; return ShInitialize() != 0;
......
...@@ -263,6 +263,9 @@ class TInfoSink; ...@@ -263,6 +263,9 @@ class TInfoSink;
namespace glslang { namespace glslang {
const char* GetEsslVersionString();
const char* GetGlslVersionString();
class TIntermediate; class TIntermediate;
class TProgram; class TProgram;
class TPoolAllocator; class TPoolAllocator;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment