Fix some Linux issues.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23939 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich 2013-11-07 01:36:56 +00:00
parent 11f9fc7247
commit 3ac3578968
4 changed files with 39 additions and 5 deletions

View file

@ -312,14 +312,14 @@ void TReflection::dump()
{
printf("Uniform reflection:\n");
for (size_t i = 0; i < indexToUniform.size(); ++i) {
printf("%d:", i);
printf("%d:", (int)i);
indexToUniform[i].dump();
}
printf("\n");
printf("Uniform block reflection:\n");
for (size_t i = 0; i < indexToUniformBlock.size(); ++i) {
printf("%d: ", i);
printf("%d: ", (int)i);
indexToUniformBlock[i].dump();
}
printf("\n");

View file

@ -54,10 +54,10 @@ class TLiveTraverser;
// Data needed for just a single object at the granularity exchanged by the reflection API
class TObjectReflection {
public:
TObjectReflection(const TString pName, int pOffset, int pGLDefineType, int pSize, int pIndex) :
TObjectReflection(const TString& pName, int pOffset, int pGLDefineType, int pSize, int pIndex) :
name(pName), offset(pOffset), glDefineType(pGLDefineType), size(pSize), index(pIndex) { }
void dump() const { printf("%s: offset %d, type %d, arraySize %d, index %d\n", name.c_str(), offset, glDefineType, size, index); }
const TString name;
TString name;
int offset;
int glDefineType;
int size; // data size in bytes for a block, array size for a (non-block) object that's an array
@ -119,4 +119,4 @@ protected:
} // end namespace glslang
#endif _REFLECTION_INCLUDED
#endif // _REFLECTION_INCLUDED