mirror of
https://github.com/libretro/glslang.git
synced 2024-12-12 18:26:50 +00:00
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:
parent
11f9fc7247
commit
3ac3578968
34
LinuxDoAll.bash
Executable file
34
LinuxDoAll.bash
Executable file
@ -0,0 +1,34 @@
|
||||
#! /bin/bash
|
||||
|
||||
svn update
|
||||
|
||||
rm -f StandAlone/glslangValidator
|
||||
rm -f Test/glslangValidator
|
||||
rm -f glslang/MachineIndependent/lib/libglslang.so
|
||||
rm -f Install/Linux/libglslang.so
|
||||
rm -f Install/Linux/glslangValidator
|
||||
|
||||
cd StandAlone
|
||||
make clean
|
||||
cd ../glslang/MachineIndependent
|
||||
make clean
|
||||
cd ../..
|
||||
|
||||
# build the StandAlone app and all it's dependencies
|
||||
make -C StandAlone
|
||||
|
||||
# so we can find the shared library
|
||||
#LD_LIBRARY_PATH=`pwd`/glslang/MachineIndependent/lib
|
||||
#export LD_LIBRARY_PATH
|
||||
|
||||
# install
|
||||
cd Install/Linux
|
||||
./install
|
||||
|
||||
# run using test data
|
||||
cd Test
|
||||
../StandAlone/glslangValidator -i sample.vert sample.frag
|
||||
|
||||
cd ../../Test
|
||||
chmod +x runtests
|
||||
./runtests
|
0
Test/runtests
Normal file → Executable file
0
Test/runtests
Normal file → Executable 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");
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user