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
This commit is contained in:
parent
e4f45cbf49
commit
bf63ef05d9
3 changed files with 16 additions and 0 deletions
|
|
@ -552,6 +552,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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -263,6 +263,9 @@ class TInfoSink;
|
|||
|
||||
namespace glslang {
|
||||
|
||||
const char* GetEsslVersionString();
|
||||
const char* GetGlslVersionString();
|
||||
|
||||
class TIntermediate;
|
||||
class TProgram;
|
||||
class TPoolAllocator;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue