infoSink(sink),
size(0),
isMatrix(false),
- matrixSize(0) {
+ matrixRows(0) {
}
bool error;
TInfoSink& infoSink;
size_t size; // size of the constructor ( 4 for vec4)
bool isMatrix;
- int matrixSize; // dimension of the matrix (nominal size and not the instance size)
+ int matrixRows; // number of rows in the matrix (nominal size and not the instance size)
};
//
if (node->getType().isMatrix()) {
isMatrix = true;
- matrixSize = node->getType().getNominalSize();
+ matrixRows = node->getType().getSecondarySize();
}
}
constructorType = EOpNull;
size = 0;
isMatrix = false;
- matrixSize = 0;
+ matrixRows = 0;
}
return false;
}
for(size_t i = index; i < totalSize; i++) {
if (i >= instanceSize)
return;
- if (element - i == 0 || (i - element) % (matrixSize + 1) == 0 )
+ if (element - i == 0 || (i - element) % (matrixRows + 1) == 0 )
leftUnionArray[i].cast(basicType, rightUnionArray[0]);
else
leftUnionArray[i].setFConst(0.0f);