Take into account the number of locations taken up by a uniform
When assigning uniform locations it now takes into account the number of locations occupied by the type. For uniforms, all types except arrays and structs take up one location. For arrays the base location count is multiplied by the array dimensions and for structs it is the sum of the locations of each member.
Showing
- glslang/MachineIndependent/iomapper.cpp 5 additions, 1 deletionglslang/MachineIndependent/iomapper.cpp
- glslang/MachineIndependent/linkValidate.cpp 30 additions, 0 deletionsglslang/MachineIndependent/linkValidate.cpp
- glslang/MachineIndependent/localintermediate.h 1 addition, 0 deletionsglslang/MachineIndependent/localintermediate.h
Please register or sign in to comment