Add an option to set the base uniform location

This will be used to generate uniform locations with --aml
This commit is contained in:
Neil Roberts 2018-03-20 17:41:05 +01:00 committed by Alejandro Piñeiro
parent 16f53474c8
commit b0f3d794c8
5 changed files with 22 additions and 2 deletions

View file

@ -359,7 +359,7 @@ struct TDefaultIoResolverBase : public glslang::TIoMapResolver
{
TDefaultIoResolverBase(const TIntermediate &intermediate) :
intermediate(intermediate),
nextUniformLocation(0),
nextUniformLocation(intermediate.getUniformLocationBase()),
nextInputLocation(0),
nextOutputLocation(0)
{ }