Have memory counters normally turned off, to avoid cross-windows-platform linking problems.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@28078 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
01fd50e4f2
commit
cf74ae1b2d
@ -42,24 +42,24 @@
|
|||||||
|
|
||||||
#include "BilDoc.h"
|
#include "BilDoc.h"
|
||||||
|
|
||||||
|
namespace glbil {
|
||||||
|
|
||||||
#if ! defined(INCLUDE_BIL_DOC)
|
#if ! defined(INCLUDE_BIL_DOC)
|
||||||
|
|
||||||
namespace glbil {
|
void Parameterize()
|
||||||
|
{
|
||||||
void PrintDoc()
|
}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
}; // end glbil namespace
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
namespace glbil {
|
|
||||||
|
|
||||||
void PrintDoc()
|
void PrintDoc()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
}; // end glbil namespace
|
#else
|
||||||
|
|
||||||
|
void PrintDoc()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
}; // end glbil namespace
|
||||||
|
@ -44,6 +44,7 @@
|
|||||||
|
|
||||||
namespace glbil {
|
namespace glbil {
|
||||||
|
|
||||||
|
void Parameterize();
|
||||||
void PrintDoc();
|
void PrintDoc();
|
||||||
|
|
||||||
}; // end glbil namespace
|
}; // end glbil namespace
|
||||||
|
14
BIL/GLSL450Lib.h
Normal file
14
BIL/GLSL450Lib.h
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
namespace GLSL_STD_450 {
|
||||||
|
|
||||||
|
enum Entrypoints {
|
||||||
|
Round,
|
||||||
|
Count
|
||||||
|
};
|
||||||
|
|
||||||
|
extern const char* Names[Count];
|
||||||
|
|
||||||
|
inline void Initialize()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
}; // end namespace GLSL_STD_450
|
@ -43,6 +43,7 @@
|
|||||||
#include "../BIL/GlslangToBil.h"
|
#include "../BIL/GlslangToBil.h"
|
||||||
#include "../BIL/BilDisassemble.h"
|
#include "../BIL/BilDisassemble.h"
|
||||||
#include "../BIL/BilDoc.h"
|
#include "../BIL/BilDoc.h"
|
||||||
|
#include "../BIL/GLSL450Lib.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
@ -711,6 +712,7 @@ int C_DECL main(int argc, char* argv[])
|
|||||||
//
|
//
|
||||||
if (Options & EOptionLinkProgram) {
|
if (Options & EOptionLinkProgram) {
|
||||||
glslang::InitializeProcess();
|
glslang::InitializeProcess();
|
||||||
|
GLSL_STD_450::Initialize();
|
||||||
CompileAndLinkShaders();
|
CompileAndLinkShaders();
|
||||||
glslang::FinalizeProcess();
|
glslang::FinalizeProcess();
|
||||||
} else {
|
} else {
|
||||||
|
@ -134,9 +134,13 @@ void OS_Sleep(int milliseconds)
|
|||||||
|
|
||||||
void OS_DumpMemoryCounters()
|
void OS_DumpMemoryCounters()
|
||||||
{
|
{
|
||||||
|
#ifdef DUMP_COUNTERS
|
||||||
PROCESS_MEMORY_COUNTERS counters;
|
PROCESS_MEMORY_COUNTERS counters;
|
||||||
GetProcessMemoryInfo(GetCurrentProcess(), &counters, sizeof(counters));
|
GetProcessMemoryInfo(GetCurrentProcess(), &counters, sizeof(counters));
|
||||||
printf("Working set size: %d\n", counters.WorkingSetSize);
|
printf("Working set size: %d\n", counters.WorkingSetSize);
|
||||||
|
#else
|
||||||
|
printf("Recompile with DUMP_COUNTERS defined to see counters.\n");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace glslang
|
} // namespace glslang
|
||||||
|
Loading…
x
Reference in New Issue
Block a user