Have memory counters normally turned off, to avoid cross-windows-platform linking...
authorJohn Kessenich <cepheus@frii.com>
Fri, 12 Sep 2014 17:25:16 +0000 (17:25 +0000)
committerJohn Kessenich <cepheus@frii.com>
Fri, 12 Sep 2014 17:25:16 +0000 (17:25 +0000)
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@28078 e7fa87d3-cd2b-0410-9028-fcbf551c1848

BIL/BilDoc.cpp
BIL/BilDoc.h
BIL/GLSL450Lib.h [new file with mode: 0644]
StandAlone/StandAlone.cpp
glslang/OSDependent/Windows/ossource.cpp

index 036a6cd..caa37f8 100644 (file)
 \r
 #include "BilDoc.h"\r
 \r
-#if ! defined(INCLUDE_BIL_DOC)\r
-\r
 namespace glbil {\r
 \r
-    void PrintDoc()\r
-    {\r
-    }\r
+#if ! defined(INCLUDE_BIL_DOC)\r
 \r
-}; // end glbil namespace\r
+void Parameterize()\r
+{\r
+}\r
 \r
-#else\r
+void PrintDoc()\r
+{\r
+}\r
 \r
-namespace glbil {\r
+#else\r
 \r
 void PrintDoc()\r
 {\r
 }\r
 \r
-}; // end glbil namespace\r
-\r
 #endif\r
+\r
+}; // end glbil namespace\r
index 4e3e787..6d87a89 100644 (file)
@@ -44,6 +44,7 @@
 \r
 namespace glbil {\r
 \r
+    void Parameterize();\r
     void PrintDoc();\r
 \r
 };  // end glbil namespace\r
diff --git a/BIL/GLSL450Lib.h b/BIL/GLSL450Lib.h
new file mode 100644 (file)
index 0000000..92ad0ed
--- /dev/null
@@ -0,0 +1,14 @@
+namespace GLSL_STD_450 {\r
+\r
+enum Entrypoints {\r
+    Round,\r
+    Count\r
+};\r
+\r
+extern const char* Names[Count];\r
+\r
+inline void Initialize()\r
+{\r
+}\r
+\r
+}; // end namespace GLSL_STD_450\r
index 3ee056f..55e557c 100644 (file)
@@ -43,6 +43,7 @@
 #include "../BIL/GlslangToBil.h"
 #include "../BIL/BilDisassemble.h"
 #include "../BIL/BilDoc.h"
+#include "../BIL/GLSL450Lib.h"
 #include <string.h>
 #include <stdlib.h>
 #include <math.h>
@@ -711,6 +712,7 @@ int C_DECL main(int argc, char* argv[])
     //
     if (Options & EOptionLinkProgram) {
         glslang::InitializeProcess();
+        GLSL_STD_450::Initialize();
         CompileAndLinkShaders();
         glslang::FinalizeProcess();
     } else {
index 4c6caf0..4566114 100644 (file)
@@ -134,9 +134,13 @@ void OS_Sleep(int milliseconds)
 
 void OS_DumpMemoryCounters()
 {
+#ifdef DUMP_COUNTERS
     PROCESS_MEMORY_COUNTERS counters;
     GetProcessMemoryInfo(GetCurrentProcess(), &counters, sizeof(counters));
     printf("Working set size: %d\n", counters.WorkingSetSize);
+#else
+    printf("Recompile with DUMP_COUNTERS defined to see counters.\n");
+#endif
 }
 
 } // namespace glslang